~ubuntu-branches/ubuntu/feisty/libxfont/feisty-security

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Rodrigo Parra Novo
  • Date: 2006-07-19 16:05:02 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20060719160502-f769vluylmsem3vz
Tags: 1:1.2.0-0ubuntu1
* New Upstream version
* Dropped (empty) patch directory
* Re-Dropped libfontcache.so.0 from libxfont1.install

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.59 for libXfont 1.0.0.
 
3
# Generated by GNU Autoconf 2.59 for libXfont 1.2.0.
4
4
#
5
5
# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6
6
#
280
280
 
281
281
# The HP-UX ksh and POSIX shell print the target directory to stdout
282
282
# if CDPATH is set.
283
 
if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
 
283
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
284
284
 
285
285
if test -z "$ECHO"; then
286
286
if test "X${echo_test_string+set}" != Xset; then
287
287
# find a string as large as possible, as long as the shell can cope with it
288
288
  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289
289
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290
 
    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
291
 
       echo_test_string="`eval $cmd`" &&
 
290
    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
 
291
       echo_test_string=`eval $cmd` &&
292
292
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
293
293
    then
294
294
      break
423
423
# Identity of this package.
424
424
PACKAGE_NAME='libXfont'
425
425
PACKAGE_TARNAME='libXfont'
426
 
PACKAGE_VERSION='1.0.0'
427
 
PACKAGE_STRING='libXfont 1.0.0'
 
426
PACKAGE_VERSION='1.2.0'
 
427
PACKAGE_STRING='libXfont 1.2.0'
428
428
PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
429
429
 
430
430
# Factoring default headers for most tests.
464
464
# include <unistd.h>
465
465
#endif"
466
466
 
467
 
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL PKG_CONFIG ac_pt_PKG_CONFIG ENCODINGSDIR XFONT_FREETYPE_TRUE XFONT_FREETYPE_FALSE FREETYPE_CFLAGS FREETYPE_LIBS ft_config FREETYPE_REQUIRES XFONT_CID_TRUE XFONT_CID_FALSE XFONT_TYPE1_TRUE XFONT_TYPE1_FALSE XFONT_SPEEDO_TRUE XFONT_SPEEDO_FALSE X_GZIP_FONT_COMPRESSION XFONT_BUILTINS_TRUE XFONT_BUILTINS_FALSE XFONT_PCFFORMAT_TRUE XFONT_PCFFORMAT_FALSE XFONT_BDFFORMAT_TRUE XFONT_BDFFORMAT_FALSE XFONT_SNFFORMAT_TRUE XFONT_SNFFORMAT_FALSE XFONT_BITMAP_TRUE XFONT_BITMAP_FALSE XFONT_FONTFILE_TRUE XFONT_FONTFILE_FALSE XFONT_FONTCACHE_TRUE XFONT_FONTCACHE_FALSE FONTCACHEPROTO_CFLAGS FONTCACHEPROTO_LIBS XFONT_FC_TRUE XFONT_FC_FALSE Z_LIBS MATH_LIBS XFONT_CFLAGS XFONT_LIBS LIBOBJS LTLIBOBJS'
 
467
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL PKG_CONFIG ac_pt_PKG_CONFIG ENCODINGSDIR XFONT_FREETYPE_TRUE XFONT_FREETYPE_FALSE FREETYPE_CFLAGS FREETYPE_LIBS ft_config FREETYPE_REQUIRES XFONT_CID_TRUE XFONT_CID_FALSE XFONT_TYPE1_TRUE XFONT_TYPE1_FALSE XFONT_SPEEDO_TRUE XFONT_SPEEDO_FALSE X_GZIP_FONT_COMPRESSION XFONT_BUILTINS_TRUE XFONT_BUILTINS_FALSE XFONT_PCFFORMAT_TRUE XFONT_PCFFORMAT_FALSE XFONT_BDFFORMAT_TRUE XFONT_BDFFORMAT_FALSE XFONT_SNFFORMAT_TRUE XFONT_SNFFORMAT_FALSE XFONT_BITMAP_TRUE XFONT_BITMAP_FALSE XFONT_FONTFILE_TRUE XFONT_FONTFILE_FALSE XFONT_FONTCACHE_TRUE XFONT_FONTCACHE_FALSE FONTCACHEPROTO_CFLAGS FONTCACHEPROTO_LIBS XFONT_FC_TRUE XFONT_FC_FALSE Z_LIBS MATH_LIBS XFONT_CFLAGS XFONT_LIBS LIBOBJS LTLIBOBJS'
468
468
ac_subst_files=''
469
469
 
470
470
# Initialize some variables set by options.
981
981
  # Omit some internal or obsolete options to make the list less imposing.
982
982
  # This message is too long to be a string in the A/UX 3.1 sh.
983
983
  cat <<_ACEOF
984
 
\`configure' configures libXfont 1.0.0 to adapt to many kinds of systems.
 
984
\`configure' configures libXfont 1.2.0 to adapt to many kinds of systems.
985
985
 
986
986
Usage: $0 [OPTION]... [VAR=VALUE]...
987
987
 
1047
1047
 
1048
1048
if test -n "$ac_init_help"; then
1049
1049
  case $ac_init_help in
1050
 
     short | recursive ) echo "Configuration of libXfont 1.0.0:";;
 
1050
     short | recursive ) echo "Configuration of libXfont 1.2.0:";;
1051
1051
   esac
1052
1052
  cat <<\_ACEOF
1053
1053
 
1054
1054
Optional Features:
1055
1055
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1056
1056
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1057
 
  --disable-dependency-tracking Speeds up one-time builds
1058
 
  --enable-dependency-tracking  Do not reject slow dependency extractors
 
1057
  --disable-dependency-tracking  speeds up one-time build
 
1058
  --enable-dependency-tracking   do not reject slow dependency extractors
1059
1059
  --enable-shared[=PKGS]
1060
1060
                          build shared libraries [default=yes]
1061
1061
  --enable-static[=PKGS]
1216
1216
test -n "$ac_init_help" && exit 0
1217
1217
if $ac_init_version; then
1218
1218
  cat <<\_ACEOF
1219
 
libXfont configure 1.0.0
 
1219
libXfont configure 1.2.0
1220
1220
generated by GNU Autoconf 2.59
1221
1221
 
1222
1222
Copyright (C) 2003 Free Software Foundation, Inc.
1230
1230
This file contains any messages produced by compilers while
1231
1231
running configure, to aid debugging if configure makes a mistake.
1232
1232
 
1233
 
It was created by libXfont $as_me 1.0.0, which was
 
1233
It was created by libXfont $as_me 1.2.0, which was
1234
1234
generated by GNU Autoconf 2.59.  Invocation command line was
1235
1235
 
1236
1236
  $ $0 $@
1566
1566
 
1567
1567
 
1568
1568
 
1569
 
am__api_version="1.7"
 
1569
am__api_version="1.9"
1570
1570
ac_aux_dir=
1571
1571
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1572
1572
  if test -f $ac_dir/install-sh; then
1729
1729
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1730
1730
rm conftest.sed
1731
1731
 
1732
 
 
1733
1732
# expand $ac_aux_dir to an absolute path
1734
1733
am_aux_dir=`cd $ac_aux_dir && pwd`
1735
1734
 
1743
1742
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1744
1743
fi
1745
1744
 
 
1745
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
 
1746
  # We used to keeping the `.' as first argument, in order to
 
1747
  # allow $(mkdir_p) to be used without argument.  As in
 
1748
  #   $(mkdir_p) $(somedir)
 
1749
  # where $(somedir) is conditionally defined.  However this is wrong
 
1750
  # for two reasons:
 
1751
  #  1. if the package is installed by a user who cannot write `.'
 
1752
  #     make install will fail,
 
1753
  #  2. the above comment should most certainly read
 
1754
  #     $(mkdir_p) $(DESTDIR)$(somedir)
 
1755
  #     so it does not work when $(somedir) is undefined and
 
1756
  #     $(DESTDIR) is not.
 
1757
  #  To support the latter case, we have to write
 
1758
  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
 
1759
  #  so the `.' trick is pointless.
 
1760
  mkdir_p='mkdir -p --'
 
1761
else
 
1762
  # On NextStep and OpenStep, the `mkdir' command does not
 
1763
  # recognize any option.  It will interpret all options as
 
1764
  # directories to create, and then abort because `.' already
 
1765
  # exists.
 
1766
  for d in ./-p ./--version;
 
1767
  do
 
1768
    test -d $d && rmdir $d
 
1769
  done
 
1770
  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
 
1771
  if test -f "$ac_aux_dir/mkinstalldirs"; then
 
1772
    mkdir_p='$(mkinstalldirs)'
 
1773
  else
 
1774
    mkdir_p='$(install_sh) -d'
 
1775
  fi
 
1776
fi
 
1777
 
1746
1778
for ac_prog in gawk mawk nawk awk
1747
1779
do
1748
1780
  # Extract the first word of "$ac_prog", so it can be a program name with args.
1821
1853
fi
1822
1854
rmdir .tst 2>/dev/null
1823
1855
 
1824
 
 # test to see if srcdir already configured
 
1856
# test to see if srcdir already configured
1825
1857
if test "`cd $srcdir && pwd`" != "`pwd`" &&
1826
1858
   test -f $srcdir/config.status; then
1827
1859
  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1841
1873
 
1842
1874
# Define the identity of the package.
1843
1875
 PACKAGE='libXfont'
1844
 
 VERSION='1.0.0'
 
1876
 VERSION='1.2.0'
1845
1877
 
1846
1878
 
1847
1879
cat >>confdefs.h <<_ACEOF
1869
1901
 
1870
1902
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1871
1903
 
1872
 
 
1873
 
AMTAR=${AMTAR-"${am_missing_run}tar"}
1874
 
 
1875
1904
install_sh=${install_sh-"$am_aux_dir/install-sh"}
1876
1905
 
1877
1906
# Installed binaries are usually stripped using `strip' when the user
1964
1993
 
1965
1994
# We need awk for the "check" target.  The system "awk" is bad on
1966
1995
# some platforms.
 
1996
# Always define AMTAR for backward compatibility.
 
1997
 
 
1998
AMTAR=${AMTAR-"${am_missing_run}tar"}
 
1999
 
 
2000
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
 
2001
 
 
2002
 
1967
2003
 
1968
2004
 
1969
2005
 
3009
3045
    : > sub/conftest.c
3010
3046
    for i in 1 2 3 4 5 6; do
3011
3047
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3012
 
      : > sub/conftst$i.h
 
3048
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
3049
      # Solaris 8's {/usr,}/bin/sh.
 
3050
      touch sub/conftst$i.h
3013
3051
    done
3014
3052
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3015
3053
 
3037
3075
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3038
3076
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3039
3077
      # icc doesn't choke on unknown options, it will just issue warnings
3040
 
      # (even with -Werror).  So we grep stderr for any message
3041
 
      # that says an option was ignored.
3042
 
      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
 
3078
      # or remarks (even with -Werror).  So we grep stderr for any message
 
3079
      # that says an option was ignored or not supported.
 
3080
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
3081
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
3082
      # The diagnosis changed in icc 8.0:
 
3083
      #   icc: Command line remark: option '-MP' not supported
 
3084
      if (grep 'ignoring option' conftest.err ||
 
3085
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3043
3086
        am_cv_CC_dependencies_compiler_type=$depmode
3044
3087
        break
3045
3088
      fi
3221
3264
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3222
3265
# along with /bin/sed that truncates output.
3223
3266
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3224
 
  test ! -f $lt_ac_sed && break
 
3267
  test ! -f $lt_ac_sed && continue
3225
3268
  cat /dev/null > conftest.in
3226
3269
  lt_ac_count=0
3227
3270
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3246
3289
    fi
3247
3290
  done
3248
3291
done
 
3292
 
 
3293
fi
 
3294
 
3249
3295
SED=$lt_cv_path_SED
3250
 
 
3251
 
fi
3252
 
 
3253
3296
echo "$as_me:$LINENO: result: $SED" >&5
3254
3297
echo "${ECHO_T}$SED" >&6
3255
3298
 
3326
3369
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3327
3370
      lt_cv_path_LD="$ac_dir/$ac_prog"
3328
3371
      # Check to see if the program is GNU ld.  I'd rather use --version,
3329
 
      # but apparently some GNU ld's only accept -v.
 
3372
      # but apparently some variants of GNU ld only accept -v.
3330
3373
      # Break only if it was the GNU/non-GNU ld that we prefer.
3331
3374
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3332
3375
      *GNU* | *'with BFD'*)
3360
3403
if test "${lt_cv_prog_gnu_ld+set}" = set; then
3361
3404
  echo $ECHO_N "(cached) $ECHO_C" >&6
3362
3405
else
3363
 
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
 
3406
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
3364
3407
case `$LD -v 2>&1 </dev/null` in
3365
3408
*GNU* | *'with BFD'*)
3366
3409
  lt_cv_prog_gnu_ld=yes
3390
3433
*) reload_flag=" $reload_flag" ;;
3391
3434
esac
3392
3435
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
3436
case $host_os in
 
3437
  darwin*)
 
3438
    if test "$GCC" = yes; then
 
3439
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
 
3440
    else
 
3441
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
3442
    fi
 
3443
    ;;
 
3444
esac
3393
3445
 
3394
3446
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3395
3447
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3400
3452
  # Let the user override the test.
3401
3453
  lt_cv_path_NM="$NM"
3402
3454
else
3403
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3404
 
  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3405
 
    IFS="$lt_save_ifs"
3406
 
    test -z "$ac_dir" && ac_dir=.
3407
 
    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3408
 
    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3409
 
      # Check to see if the nm accepts a BSD-compat flag.
3410
 
      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3411
 
      #   nm: unknown option "B" ignored
3412
 
      # Tru64's nm complains that /dev/null is an invalid object file
3413
 
      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3414
 
      */dev/null* | *'Invalid file or object type'*)
3415
 
        lt_cv_path_NM="$tmp_nm -B"
3416
 
        break
3417
 
        ;;
3418
 
      *)
3419
 
        case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3420
 
        */dev/null*)
3421
 
          lt_cv_path_NM="$tmp_nm -p"
 
3455
  lt_nm_to_check="${ac_tool_prefix}nm"
 
3456
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
 
3457
    lt_nm_to_check="$lt_nm_to_check nm"
 
3458
  fi
 
3459
  for lt_tmp_nm in $lt_nm_to_check; do
 
3460
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
3461
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
 
3462
      IFS="$lt_save_ifs"
 
3463
      test -z "$ac_dir" && ac_dir=.
 
3464
      tmp_nm="$ac_dir/$lt_tmp_nm"
 
3465
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
3466
        # Check to see if the nm accepts a BSD-compat flag.
 
3467
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
3468
        #   nm: unknown option "B" ignored
 
3469
        # Tru64's nm complains that /dev/null is an invalid object file
 
3470
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
3471
        */dev/null* | *'Invalid file or object type'*)
 
3472
          lt_cv_path_NM="$tmp_nm -B"
3422
3473
          break
3423
3474
          ;;
3424
3475
        *)
3425
 
          lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3426
 
          continue # so that we can try to find one that supports BSD flags
 
3476
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
3477
          */dev/null*)
 
3478
            lt_cv_path_NM="$tmp_nm -p"
 
3479
            break
 
3480
            ;;
 
3481
          *)
 
3482
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
3483
            continue # so that we can try to find one that supports BSD flags
 
3484
            ;;
 
3485
          esac
3427
3486
          ;;
3428
3487
        esac
3429
 
      esac
3430
 
    fi
 
3488
      fi
 
3489
    done
 
3490
    IFS="$lt_save_ifs"
3431
3491
  done
3432
 
  IFS="$lt_save_ifs"
3433
3492
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3434
3493
fi
3435
3494
fi
3476
3535
  lt_cv_deplibs_check_method=pass_all
3477
3536
  ;;
3478
3537
 
3479
 
bsdi4*)
 
3538
bsdi[45]*)
3480
3539
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3481
3540
  lt_cv_file_magic_cmd='/usr/bin/file -L'
3482
3541
  lt_cv_file_magic_test_file=/shlib/libc.so
3483
3542
  ;;
3484
3543
 
3485
3544
cygwin*)
3486
 
  # win32_libid is a shell function defined in ltmain.sh
 
3545
  # func_win32_libid is a shell function defined in ltmain.sh
3487
3546
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3488
 
  lt_cv_file_magic_cmd='win32_libid'
 
3547
  lt_cv_file_magic_cmd='func_win32_libid'
3489
3548
  ;;
3490
3549
 
3491
3550
mingw* | pw32*)
3492
3551
  # Base MSYS/MinGW do not provide the 'file' command needed by
3493
 
  # win32_libid shell function, so use a weaker test based on 'objdump'.
 
3552
  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3494
3553
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3495
3554
  lt_cv_file_magic_cmd='$OBJDUMP -f'
3496
3555
  ;;
3499
3558
  lt_cv_deplibs_check_method=pass_all
3500
3559
  ;;
3501
3560
 
3502
 
freebsd* | kfreebsd*-gnu)
 
3561
freebsd* | kfreebsd*-gnu | dragonfly*)
3503
3562
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3504
3563
    case $host_cpu in
3505
3564
    i*86 )
3506
3565
      # Not sure whether the presence of OpenBSD here was a mistake.
3507
3566
      # Let's accept both of them until this is cleared up.
3508
 
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
 
3567
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3509
3568
      lt_cv_file_magic_cmd=/usr/bin/file
3510
3569
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3511
3570
      ;;
3521
3580
 
3522
3581
hpux10.20* | hpux11*)
3523
3582
  lt_cv_file_magic_cmd=/usr/bin/file
3524
 
  case "$host_cpu" in
 
3583
  case $host_cpu in
3525
3584
  ia64*)
3526
3585
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3527
3586
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3537
3596
  esac
3538
3597
  ;;
3539
3598
 
 
3599
interix3*)
 
3600
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
 
3601
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
 
3602
  ;;
 
3603
 
3540
3604
irix5* | irix6* | nonstopux*)
3541
3605
  case $LD in
3542
3606
  *-32|*"-32 ") libmagic=32-bit;;
3549
3613
 
3550
3614
# This must be Linux ELF.
3551
3615
linux*)
3552
 
  case $host_cpu in
3553
 
  alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*|x86_64*)
3554
 
    lt_cv_deplibs_check_method=pass_all ;;
3555
 
  *)
3556
 
    # glibc up to 2.1.1 does not perform some relocations on ARM
3557
 
    # this will be overridden with pass_all, but let us keep it just in case
3558
 
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3559
 
  esac
3560
 
  lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3561
3616
  lt_cv_deplibs_check_method=pass_all
3562
3617
  ;;
3563
3618
 
3580
3635
  ;;
3581
3636
 
3582
3637
openbsd*)
3583
 
  lt_cv_file_magic_cmd=/usr/bin/file
3584
 
  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3585
3638
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3586
 
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
 
3639
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3587
3640
  else
3588
 
    lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
 
3641
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3589
3642
  fi
3590
3643
  ;;
3591
3644
 
3593
3646
  lt_cv_deplibs_check_method=pass_all
3594
3647
  ;;
3595
3648
 
3596
 
sco3.2v5*)
3597
 
  lt_cv_deplibs_check_method=pass_all
3598
 
  ;;
3599
 
 
3600
3649
solaris*)
3601
3650
  lt_cv_deplibs_check_method=pass_all
3602
3651
  ;;
3603
3652
 
3604
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
3653
sysv4 | sysv4.3*)
3605
3654
  case $host_vendor in
3606
3655
  motorola)
3607
3656
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
3622
3671
  siemens)
3623
3672
    lt_cv_deplibs_check_method=pass_all
3624
3673
    ;;
 
3674
  pc)
 
3675
    lt_cv_deplibs_check_method=pass_all
 
3676
    ;;
3625
3677
  esac
3626
3678
  ;;
3627
3679
 
3628
 
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
 
3680
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3629
3681
  lt_cv_deplibs_check_method=pass_all
3630
3682
  ;;
3631
3683
esac
3643
3695
# If no C compiler was specified, use CC.
3644
3696
LTCC=${LTCC-"$CC"}
3645
3697
 
 
3698
# If no C compiler flags were specified, use CFLAGS.
 
3699
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
3700
 
3646
3701
# Allow CC to be a program name with arguments.
3647
3702
compiler=$CC
3648
3703
 
3678
3733
  ;;
3679
3734
*-*-irix6*)
3680
3735
  # Find out which ABI we are using.
3681
 
  echo '#line 3681 "configure"' > conftest.$ac_ext
 
3736
  echo '#line 3736 "configure"' > conftest.$ac_ext
3682
3737
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3683
3738
  (eval $ac_compile) 2>&5
3684
3739
  ac_status=$?
3721
3776
  ac_status=$?
3722
3777
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3723
3778
  (exit $ac_status); }; then
3724
 
    case "`/usr/bin/file conftest.o`" in
 
3779
    case `/usr/bin/file conftest.o` in
3725
3780
    *32-bit*)
3726
3781
      case $host in
3727
3782
        x86_64-*linux*)
3759
3814
  rm -rf conftest*
3760
3815
  ;;
3761
3816
 
3762
 
*-*-linux*)
3763
 
  # Test if the compiler is 64bit
3764
 
  echo 'int i;' > conftest.$ac_ext
3765
 
  lt_cv_cc_64bit_output=no
3766
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3767
 
  (eval $ac_compile) 2>&5
3768
 
  ac_status=$?
3769
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3770
 
  (exit $ac_status); }; then
3771
 
    case `/usr/bin/file conftest.$ac_objext` in
3772
 
    *"ELF 64"*)
3773
 
      lt_cv_cc_64bit_output=yes
3774
 
      ;;
3775
 
    esac
3776
 
  fi
3777
 
  rm -rf conftest*
3778
 
  ;;
3779
 
 
3780
3817
*-*-sco3.2v5*)
3781
3818
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3782
3819
  SAVE_CFLAGS="$CFLAGS"
3852
3889
    CFLAGS="$SAVE_CFLAGS"
3853
3890
  fi
3854
3891
  ;;
 
3892
sparc*-*solaris*)
 
3893
  # Find out which ABI we are using.
 
3894
  echo 'int i;' > conftest.$ac_ext
 
3895
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3896
  (eval $ac_compile) 2>&5
 
3897
  ac_status=$?
 
3898
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3899
  (exit $ac_status); }; then
 
3900
    case `/usr/bin/file conftest.o` in
 
3901
    *64-bit*)
 
3902
      case $lt_cv_prog_gnu_ld in
 
3903
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
 
3904
      *)    LD="${LD-ld} -64" ;;
 
3905
      esac
 
3906
      ;;
 
3907
    esac
 
3908
  fi
 
3909
  rm -rf conftest*
 
3910
  ;;
 
3911
 
3855
3912
 
3856
3913
esac
3857
3914
 
4877
4934
    : > sub/conftest.c
4878
4935
    for i in 1 2 3 4 5 6; do
4879
4936
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4880
 
      : > sub/conftst$i.h
 
4937
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
4938
      # Solaris 8's {/usr,}/bin/sh.
 
4939
      touch sub/conftst$i.h
4881
4940
    done
4882
4941
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4883
4942
 
4905
4964
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4906
4965
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4907
4966
      # icc doesn't choke on unknown options, it will just issue warnings
4908
 
      # (even with -Werror).  So we grep stderr for any message
4909
 
      # that says an option was ignored.
4910
 
      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
 
4967
      # or remarks (even with -Werror).  So we grep stderr for any message
 
4968
      # that says an option was ignored or not supported.
 
4969
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
4970
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
4971
      # The diagnosis changed in icc 8.0:
 
4972
      #   icc: Command line remark: option '-MP' not supported
 
4973
      if (grep 'ignoring option' conftest.err ||
 
4974
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4911
4975
        am_cv_CXX_dependencies_compiler_type=$depmode
4912
4976
        break
4913
4977
      fi
4938
5002
fi
4939
5003
 
4940
5004
 
4941
 
ac_ext=cc
 
5005
 
 
5006
 
 
5007
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
5008
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
5009
    (test "X$CXX" != "Xg++"))) ; then
 
5010
  ac_ext=cc
4942
5011
ac_cpp='$CXXCPP $CPPFLAGS'
4943
5012
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4944
5013
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5168
5237
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5169
5238
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5170
5239
 
 
5240
fi
 
5241
 
5171
5242
 
5172
5243
ac_ext=f
5173
5244
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5261
5332
 
5262
5333
 
5263
5334
# Provide some information about the compiler.
5264
 
echo "$as_me:5264:" \
 
5335
echo "$as_me:5335:" \
5265
5336
     "checking for Fortran 77 compiler version" >&5
5266
5337
ac_compiler=`set X $ac_compile; echo $2`
5267
5338
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5416
5487
  echo $ECHO_N "(cached) $ECHO_C" >&6
5417
5488
else
5418
5489
    i=0
5419
 
  testring="ABCD"
 
5490
  teststring="ABCD"
5420
5491
 
5421
5492
  case $build_os in
5422
5493
  msdosdjgpp*)
5451
5522
    lt_cv_sys_max_cmd_len=8192;
5452
5523
    ;;
5453
5524
 
5454
 
 *)
 
5525
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
 
5526
    # This has been around since 386BSD, at least.  Likely further.
 
5527
    if test -x /sbin/sysctl; then
 
5528
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
 
5529
    elif test -x /usr/sbin/sysctl; then
 
5530
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
 
5531
    else
 
5532
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
 
5533
    fi
 
5534
    # And add a safety zone
 
5535
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
5536
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
5537
    ;;
 
5538
 
 
5539
  interix*)
 
5540
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
 
5541
    lt_cv_sys_max_cmd_len=196608
 
5542
    ;;
 
5543
 
 
5544
  osf*)
 
5545
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
 
5546
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
 
5547
    # nice to cause kernel panics so lets avoid the loop below.
 
5548
    # First set a reasonable default.
 
5549
    lt_cv_sys_max_cmd_len=16384
 
5550
    #
 
5551
    if test -x /sbin/sysconfig; then
 
5552
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
 
5553
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
 
5554
      esac
 
5555
    fi
 
5556
    ;;
 
5557
  sco3.2v5*)
 
5558
    lt_cv_sys_max_cmd_len=102400
 
5559
    ;;
 
5560
  sysv5* | sco5v6* | sysv4.2uw2*)
 
5561
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
 
5562
    if test -n "$kargmax"; then
 
5563
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
 
5564
    else
 
5565
      lt_cv_sys_max_cmd_len=32768
 
5566
    fi
 
5567
    ;;
 
5568
  *)
5455
5569
    # If test is not a shell built-in, we'll probably end up computing a
5456
5570
    # maximum length that is only half of the actual maximum length, but
5457
5571
    # we can't tell.
5458
 
    while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5459
 
               = "XX$testring") >/dev/null 2>&1 &&
5460
 
            new_result=`expr "X$testring" : ".*" 2>&1` &&
 
5572
    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
5573
    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
 
5574
               = "XX$teststring") >/dev/null 2>&1 &&
 
5575
            new_result=`expr "X$teststring" : ".*" 2>&1` &&
5461
5576
            lt_cv_sys_max_cmd_len=$new_result &&
5462
5577
            test $i != 17 # 1/2 MB should be enough
5463
5578
    do
5464
5579
      i=`expr $i + 1`
5465
 
      testring=$testring$testring
 
5580
      teststring=$teststring$teststring
5466
5581
    done
5467
 
    testring=
 
5582
    teststring=
5468
5583
    # Add a significant safety factor because C++ compilers can tack on massive
5469
5584
    # amounts of additional arguments before passing them to the linker.
5470
5585
    # It appears as though 1/2 is a usable value.
5501
5616
# Regexp to match symbols that can be accessed directly from C.
5502
5617
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5503
5618
 
5504
 
# Transform the above into a raw symbol and a C symbol.
5505
 
symxfrm='\1 \2\3 \3'
5506
 
 
5507
5619
# Transform an extracted symbol line into a proper C declaration
5508
5620
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5509
5621
 
5525
5637
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5526
5638
  lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
5527
5639
  ;;
 
5640
linux*)
 
5641
  if test "$host_cpu" = ia64; then
 
5642
    symcode='[ABCDGIRSTW]'
 
5643
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
5644
    lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
 
5645
  fi
 
5646
  ;;
5528
5647
irix* | nonstopux*)
5529
5648
  symcode='[BCDEGRST]'
5530
5649
  ;;
5531
5650
osf*)
5532
5651
  symcode='[BCDEGQRST]'
5533
5652
  ;;
5534
 
solaris* | sysv5*)
 
5653
solaris*)
5535
5654
  symcode='[BDRT]'
5536
5655
  ;;
 
5656
sco3.2v5*)
 
5657
  symcode='[DT]'
 
5658
  ;;
 
5659
sysv4.2uw2*)
 
5660
  symcode='[DT]'
 
5661
  ;;
 
5662
sysv5* | sco5v6* | unixware* | OpenUNIX*)
 
5663
  symcode='[ABDT]'
 
5664
  ;;
5537
5665
sysv4)
5538
5666
  symcode='[DFNSTU]'
5539
5667
  ;;
5556
5684
# Try without a prefix undercore, then with it.
5557
5685
for ac_symprfx in "" "_"; do
5558
5686
 
 
5687
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
 
5688
  symxfrm="\\1 $ac_symprfx\\2 \\2"
 
5689
 
5559
5690
  # Write the raw and C identifiers.
5560
 
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
 
5691
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5561
5692
 
5562
5693
  # Check to see that the pipe works correctly.
5563
5694
  pipe_works=no
5719
5850
 
5720
5851
# Sed substitution that helps us do robust quoting.  It backslashifies
5721
5852
# metacharacters that are still active within double-quoted strings.
5722
 
Xsed='sed -e s/^X//'
 
5853
Xsed='sed -e 1s/^X//'
5723
5854
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5724
5855
 
5725
5856
# Same as above, but do not quote variable references.
5739
5870
default_ofile=libtool
5740
5871
can_build_shared=yes
5741
5872
 
5742
 
# All known linkers require a `.a' archive for static linking (except M$VC,
 
5873
# All known linkers require a `.a' archive for static linking (except MSVC,
5743
5874
# which needs '.lib').
5744
5875
libext=a
5745
5876
ltmain="$ac_aux_dir/ltmain.sh"
5996
6127
test -z "$AS" && AS=as
5997
6128
test -z "$CC" && CC=cc
5998
6129
test -z "$LTCC" && LTCC=$CC
 
6130
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
5999
6131
test -z "$DLLTOOL" && DLLTOOL=dlltool
6000
6132
test -z "$LD" && LD=ld
6001
6133
test -z "$LN_S" && LN_S="ln -s"
6015
6147
if test -n "$RANLIB"; then
6016
6148
  case $host_os in
6017
6149
  openbsd*)
6018
 
    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
 
6150
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6019
6151
    ;;
6020
6152
  *)
6021
 
    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
 
6153
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6022
6154
    ;;
6023
6155
  esac
6024
6156
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6025
6157
fi
6026
6158
 
 
6159
for cc_temp in $compiler""; do
 
6160
  case $cc_temp in
 
6161
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
6162
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
6163
    \-*) ;;
 
6164
    *) break;;
 
6165
  esac
 
6166
done
 
6167
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
6168
 
 
6169
 
6027
6170
# Only perform the check for file, if the check method requires it
6028
6171
case $deplibs_check_method in
6029
6172
file_magic*)
6049
6192
      if test -n "$file_magic_test_file"; then
6050
6193
        case $deplibs_check_method in
6051
6194
        "file_magic "*)
6052
 
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
 
6195
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6053
6196
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6054
6197
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6055
6198
            $EGREP "$file_magic_regex" > /dev/null; then
6111
6254
      if test -n "$file_magic_test_file"; then
6112
6255
        case $deplibs_check_method in
6113
6256
        "file_magic "*)
6114
 
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
 
6257
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6115
6258
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6116
6259
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6117
6260
            $EGREP "$file_magic_regex" > /dev/null; then
6206
6349
# If no C compiler was specified, use CC.
6207
6350
LTCC=${LTCC-"$CC"}
6208
6351
 
 
6352
# If no C compiler flags were specified, use CFLAGS.
 
6353
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
6354
 
6209
6355
# Allow CC to be a program name with arguments.
6210
6356
compiler=$CC
6211
6357
 
6212
6358
 
6213
 
#
6214
 
# Check for any special shared library compilation flags.
6215
 
#
6216
 
lt_prog_cc_shlib=
6217
 
if test "$GCC" = no; then
6218
 
  case $host_os in
6219
 
  sco3.2v5*)
6220
 
    lt_prog_cc_shlib='-belf'
6221
 
    ;;
6222
 
  esac
6223
 
fi
6224
 
if test -n "$lt_prog_cc_shlib"; then
6225
 
  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6226
 
echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6227
 
  if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
6228
 
  else
6229
 
    { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6230
 
echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6231
 
    lt_cv_prog_cc_can_build_shared=no
6232
 
  fi
6233
 
fi
6234
 
 
6235
 
 
6236
 
#
6237
 
# Check to make sure the static flag actually works.
6238
 
#
6239
 
echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6240
 
echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6241
 
if test "${lt_prog_compiler_static_works+set}" = set; then
6242
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6243
 
else
6244
 
  lt_prog_compiler_static_works=no
6245
 
   save_LDFLAGS="$LDFLAGS"
6246
 
   LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6247
 
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
6248
 
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6249
 
     # The compiler can only warn and ignore the option if not recognized
6250
 
     # So say no if there are warnings
6251
 
     if test -s conftest.err; then
6252
 
       # Append any errors to the config.log.
6253
 
       cat conftest.err 1>&5
6254
 
     else
6255
 
       lt_prog_compiler_static_works=yes
6256
 
     fi
6257
 
   fi
6258
 
   $rm conftest*
6259
 
   LDFLAGS="$save_LDFLAGS"
6260
 
 
6261
 
fi
6262
 
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6263
 
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6264
 
 
6265
 
if test x"$lt_prog_compiler_static_works" = xyes; then
6266
 
    :
6267
 
else
6268
 
    lt_prog_compiler_static=
6269
 
fi
6270
 
 
 
6359
# save warnings/boilerplate of simple test code
 
6360
ac_outfile=conftest.$ac_objext
 
6361
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
6362
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
6363
_lt_compiler_boilerplate=`cat conftest.err`
 
6364
$rm conftest*
 
6365
 
 
6366
ac_outfile=conftest.$ac_objext
 
6367
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
6368
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
6369
_lt_linker_boilerplate=`cat conftest.err`
 
6370
$rm conftest*
6271
6371
 
6272
6372
 
6273
6373
 
6292
6392
   # with a dollar sign (not a hyphen), so the echo should work correctly.
6293
6393
   # The option is referenced via a variable to avoid confusing sed.
6294
6394
   lt_compile=`echo "$ac_compile" | $SED \
6295
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
6395
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6296
6396
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6297
6397
   -e 's:$: $lt_compiler_flag:'`
6298
 
   (eval echo "\"\$as_me:6298: $lt_compile\"" >&5)
 
6398
   (eval echo "\"\$as_me:6398: $lt_compile\"" >&5)
6299
6399
   (eval "$lt_compile" 2>conftest.err)
6300
6400
   ac_status=$?
6301
6401
   cat conftest.err >&5
6302
 
   echo "$as_me:6302: \$? = $ac_status" >&5
 
6402
   echo "$as_me:6402: \$? = $ac_status" >&5
6303
6403
   if (exit $ac_status) && test -s "$ac_outfile"; then
6304
6404
     # The compiler can only warn and ignore the option if not recognized
6305
 
     # So say no if there are warnings
6306
 
     if test ! -s conftest.err; then
 
6405
     # So say no if there are warnings other than the usual output.
 
6406
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
6407
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
6408
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6307
6409
       lt_cv_prog_compiler_rtti_exceptions=yes
6308
6410
     fi
6309
6411
   fi
6364
6466
      lt_prog_compiler_pic='-fno-common'
6365
6467
      ;;
6366
6468
 
 
6469
    interix3*)
 
6470
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
6471
      # Instead, we relocate shared libraries at runtime.
 
6472
      ;;
 
6473
 
6367
6474
    msdosdjgpp*)
6368
6475
      # Just because we use GCC doesn't mean we suddenly get shared libraries
6369
6476
      # on systems that don't support them.
6380
6487
    hpux*)
6381
6488
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6382
6489
      # not for PA HP-UX.
6383
 
      case "$host_cpu" in
 
6490
      case $host_cpu in
6384
6491
      hppa*64*|ia64*)
6385
6492
        # +Z the default
6386
6493
        ;;
6406
6513
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6407
6514
      fi
6408
6515
      ;;
 
6516
      darwin*)
 
6517
        # PIC is the default on this platform
 
6518
        # Common symbols not allowed in MH_DYLIB files
 
6519
       case $cc_basename in
 
6520
         xlc*)
 
6521
         lt_prog_compiler_pic='-qnocommon'
 
6522
         lt_prog_compiler_wl='-Wl,'
 
6523
         ;;
 
6524
       esac
 
6525
       ;;
6409
6526
 
6410
6527
    mingw* | pw32* | os2*)
6411
6528
      # This hack is so that the source file can tell whether it is being
6417
6534
      lt_prog_compiler_wl='-Wl,'
6418
6535
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6419
6536
      # not for PA HP-UX.
6420
 
      case "$host_cpu" in
 
6537
      case $host_cpu in
6421
6538
      hppa*64*|ia64*)
6422
6539
        # +Z the default
6423
6540
        ;;
6441
6558
      ;;
6442
6559
 
6443
6560
    linux*)
6444
 
      case $CC in
 
6561
      case $cc_basename in
6445
6562
      icc* | ecc*)
6446
6563
        lt_prog_compiler_wl='-Wl,'
6447
6564
        lt_prog_compiler_pic='-KPIC'
6448
6565
        lt_prog_compiler_static='-static'
6449
6566
        ;;
 
6567
      pgcc* | pgf77* | pgf90* | pgf95*)
 
6568
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
6569
        # which looks to be a dead project)
 
6570
        lt_prog_compiler_wl='-Wl,'
 
6571
        lt_prog_compiler_pic='-fpic'
 
6572
        lt_prog_compiler_static='-Bstatic'
 
6573
        ;;
6450
6574
      ccc*)
6451
6575
        lt_prog_compiler_wl='-Wl,'
6452
6576
        # All Alpha code is PIC.
6461
6585
      lt_prog_compiler_static='-non_shared'
6462
6586
      ;;
6463
6587
 
6464
 
    sco3.2v5*)
6465
 
      lt_prog_compiler_pic='-Kpic'
6466
 
      lt_prog_compiler_static='-dn'
6467
 
      ;;
6468
 
 
6469
6588
    solaris*)
6470
 
      lt_prog_compiler_wl='-Wl,'
6471
6589
      lt_prog_compiler_pic='-KPIC'
6472
6590
      lt_prog_compiler_static='-Bstatic'
 
6591
      case $cc_basename in
 
6592
      f77* | f90* | f95*)
 
6593
        lt_prog_compiler_wl='-Qoption ld ';;
 
6594
      *)
 
6595
        lt_prog_compiler_wl='-Wl,';;
 
6596
      esac
6473
6597
      ;;
6474
6598
 
6475
6599
    sunos4*)
6478
6602
      lt_prog_compiler_static='-Bstatic'
6479
6603
      ;;
6480
6604
 
6481
 
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
6605
    sysv4 | sysv4.2uw2* | sysv4.3*)
6482
6606
      lt_prog_compiler_wl='-Wl,'
6483
6607
      lt_prog_compiler_pic='-KPIC'
6484
6608
      lt_prog_compiler_static='-Bstatic'
6491
6615
      fi
6492
6616
      ;;
6493
6617
 
 
6618
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
6619
      lt_prog_compiler_wl='-Wl,'
 
6620
      lt_prog_compiler_pic='-KPIC'
 
6621
      lt_prog_compiler_static='-Bstatic'
 
6622
      ;;
 
6623
 
 
6624
    unicos*)
 
6625
      lt_prog_compiler_wl='-Wl,'
 
6626
      lt_prog_compiler_can_build_shared=no
 
6627
      ;;
 
6628
 
6494
6629
    uts4*)
6495
6630
      lt_prog_compiler_pic='-pic'
6496
6631
      lt_prog_compiler_static='-Bstatic'
6525
6660
   # with a dollar sign (not a hyphen), so the echo should work correctly.
6526
6661
   # The option is referenced via a variable to avoid confusing sed.
6527
6662
   lt_compile=`echo "$ac_compile" | $SED \
6528
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
6663
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6529
6664
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6530
6665
   -e 's:$: $lt_compiler_flag:'`
6531
 
   (eval echo "\"\$as_me:6531: $lt_compile\"" >&5)
 
6666
   (eval echo "\"\$as_me:6666: $lt_compile\"" >&5)
6532
6667
   (eval "$lt_compile" 2>conftest.err)
6533
6668
   ac_status=$?
6534
6669
   cat conftest.err >&5
6535
 
   echo "$as_me:6535: \$? = $ac_status" >&5
 
6670
   echo "$as_me:6670: \$? = $ac_status" >&5
6536
6671
   if (exit $ac_status) && test -s "$ac_outfile"; then
6537
6672
     # The compiler can only warn and ignore the option if not recognized
6538
 
     # So say no if there are warnings
6539
 
     if test ! -s conftest.err; then
 
6673
     # So say no if there are warnings other than the usual output.
 
6674
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
6675
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
6676
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6540
6677
       lt_prog_compiler_pic_works=yes
6541
6678
     fi
6542
6679
   fi
6557
6694
fi
6558
6695
 
6559
6696
fi
6560
 
case "$host_os" in
 
6697
case $host_os in
6561
6698
  # For platforms which do not support PIC, -DPIC is meaningless:
6562
6699
  *djgpp*)
6563
6700
    lt_prog_compiler_pic=
6567
6704
    ;;
6568
6705
esac
6569
6706
 
 
6707
#
 
6708
# Check to make sure the static flag actually works.
 
6709
#
 
6710
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
 
6711
echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
6712
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
 
6713
if test "${lt_prog_compiler_static_works+set}" = set; then
 
6714
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6715
else
 
6716
  lt_prog_compiler_static_works=no
 
6717
   save_LDFLAGS="$LDFLAGS"
 
6718
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
6719
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
6720
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
6721
     # The linker can only warn and ignore the option if not recognized
 
6722
     # So say no if there are warnings
 
6723
     if test -s conftest.err; then
 
6724
       # Append any errors to the config.log.
 
6725
       cat conftest.err 1>&5
 
6726
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
6727
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
6728
       if diff conftest.exp conftest.er2 >/dev/null; then
 
6729
         lt_prog_compiler_static_works=yes
 
6730
       fi
 
6731
     else
 
6732
       lt_prog_compiler_static_works=yes
 
6733
     fi
 
6734
   fi
 
6735
   $rm conftest*
 
6736
   LDFLAGS="$save_LDFLAGS"
 
6737
 
 
6738
fi
 
6739
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
 
6740
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
 
6741
 
 
6742
if test x"$lt_prog_compiler_static_works" = xyes; then
 
6743
    :
 
6744
else
 
6745
    lt_prog_compiler_static=
 
6746
fi
 
6747
 
 
6748
 
6570
6749
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6571
6750
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6572
6751
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6585
6764
   # Note that $ac_compile itself does not contain backslashes and begins
6586
6765
   # with a dollar sign (not a hyphen), so the echo should work correctly.
6587
6766
   lt_compile=`echo "$ac_compile" | $SED \
6588
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
6767
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6589
6768
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6590
6769
   -e 's:$: $lt_compiler_flag:'`
6591
 
   (eval echo "\"\$as_me:6591: $lt_compile\"" >&5)
 
6770
   (eval echo "\"\$as_me:6770: $lt_compile\"" >&5)
6592
6771
   (eval "$lt_compile" 2>out/conftest.err)
6593
6772
   ac_status=$?
6594
6773
   cat out/conftest.err >&5
6595
 
   echo "$as_me:6595: \$? = $ac_status" >&5
 
6774
   echo "$as_me:6774: \$? = $ac_status" >&5
6596
6775
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
6597
6776
   then
6598
6777
     # The compiler can only warn and ignore the option if not recognized
6599
6778
     # So say no if there are warnings
6600
 
     if test ! -s out/conftest.err; then
 
6779
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
6780
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
6781
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6601
6782
       lt_cv_prog_compiler_c_o=yes
6602
6783
     fi
6603
6784
   fi
6604
 
   chmod u+w .
 
6785
   chmod u+w . 2>&5
6605
6786
   $rm conftest*
6606
6787
   # SGI C++ compiler will create directory out/ii_files/ for
6607
6788
   # template instantiation
6677
6858
  # rely on this symbol name, it's probably fine to never include it in
6678
6859
  # preloaded symbol tables.
6679
6860
  extract_expsyms_cmds=
 
6861
  # Just being paranoid about ensuring that cc_basename is set.
 
6862
  for cc_temp in $compiler""; do
 
6863
  case $cc_temp in
 
6864
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
6865
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
6866
    \-*) ;;
 
6867
    *) break;;
 
6868
  esac
 
6869
done
 
6870
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6680
6871
 
6681
6872
  case $host_os in
6682
6873
  cygwin* | mingw* | pw32*)
6687
6878
      with_gnu_ld=no
6688
6879
    fi
6689
6880
    ;;
 
6881
  interix*)
 
6882
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
6883
    with_gnu_ld=yes
 
6884
    ;;
6690
6885
  openbsd*)
6691
6886
    with_gnu_ld=no
6692
6887
    ;;
6697
6892
    # If archive_cmds runs LD, not CC, wlarc should be empty
6698
6893
    wlarc='${wl}'
6699
6894
 
 
6895
    # Set some defaults for GNU ld with shared library support. These
 
6896
    # are reset later if shared libraries are not supported. Putting them
 
6897
    # here allows them to be overridden if necessary.
 
6898
    runpath_var=LD_RUN_PATH
 
6899
    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
 
6900
    export_dynamic_flag_spec='${wl}--export-dynamic'
 
6901
    # ancient GNU ld didn't support --whole-archive et. al.
 
6902
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
6903
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
6904
      else
 
6905
        whole_archive_flag_spec=
 
6906
    fi
 
6907
    supports_anon_versioning=no
 
6908
    case `$LD -v 2>/dev/null` in
 
6909
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
6910
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
6911
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
6912
      *\ 2.11.*) ;; # other 2.11 versions
 
6913
      *) supports_anon_versioning=yes ;;
 
6914
    esac
 
6915
 
6700
6916
    # See if GNU ld supports shared libraries.
6701
6917
    case $host_os in
6702
6918
    aix3* | aix4* | aix5*)
6747
6963
      allow_undefined_flag=unsupported
6748
6964
      always_export_symbols=no
6749
6965
      enable_shared_with_static_runtimes=yes
6750
 
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
6966
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6751
6967
 
6752
6968
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6753
 
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
6969
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6754
6970
        # If the export-symbols file already is a .def file (1st line
6755
6971
        # is EXPORTS), use it as is; otherwise, prepend...
6756
6972
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6759
6975
          echo EXPORTS > $output_objdir/$soname.def;
6760
6976
          cat $export_symbols >> $output_objdir/$soname.def;
6761
6977
        fi~
6762
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
6978
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
6979
      else
 
6980
        ld_shlibs=no
 
6981
      fi
 
6982
      ;;
 
6983
 
 
6984
    interix3*)
 
6985
      hardcode_direct=no
 
6986
      hardcode_shlibpath_var=no
 
6987
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
6988
      export_dynamic_flag_spec='${wl}-E'
 
6989
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
6990
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
6991
      # default) and relocated if they conflict, which is a slow very memory
 
6992
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
6993
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
6994
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
6995
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
6996
      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'
 
6997
      ;;
 
6998
 
 
6999
    linux*)
 
7000
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
7001
        tmp_addflag=
 
7002
        case $cc_basename,$host_cpu in
 
7003
        pgcc*)                          # Portland Group C compiler
 
7004
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
7005
          tmp_addflag=' $pic_flag'
 
7006
          ;;
 
7007
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
7008
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
7009
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
7010
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
7011
          tmp_addflag=' -i_dynamic' ;;
 
7012
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
7013
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
7014
        ifc* | ifort*)                  # Intel Fortran compiler
 
7015
          tmp_addflag=' -nofor_main' ;;
 
7016
        esac
 
7017
        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7018
 
 
7019
        if test $supports_anon_versioning = yes; then
 
7020
          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
 
7021
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
7022
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
7023
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
7024
        fi
6763
7025
      else
6764
7026
        ld_shlibs=no
6765
7027
      fi
6775
7037
      fi
6776
7038
      ;;
6777
7039
 
6778
 
    solaris* | sysv5*)
 
7040
    solaris*)
6779
7041
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6780
7042
        ld_shlibs=no
6781
7043
        cat <<EOF 1>&2
6796
7058
      fi
6797
7059
      ;;
6798
7060
 
 
7061
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
7062
      case `$LD -v 2>&1` in
 
7063
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
7064
        ld_shlibs=no
 
7065
        cat <<_LT_EOF 1>&2
 
7066
 
 
7067
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
7068
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
7069
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
7070
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
7071
*** your PATH or compiler configuration so that the native linker is
 
7072
*** used, and then restart.
 
7073
 
 
7074
_LT_EOF
 
7075
        ;;
 
7076
        *)
 
7077
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
7078
            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
7079
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
7080
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
7081
          else
 
7082
            ld_shlibs=no
 
7083
          fi
 
7084
        ;;
 
7085
      esac
 
7086
      ;;
 
7087
 
6799
7088
    sunos4*)
6800
7089
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6801
7090
      wlarc=
6803
7092
      hardcode_shlibpath_var=no
6804
7093
      ;;
6805
7094
 
6806
 
  linux*)
6807
 
    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6808
 
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6809
 
        archive_cmds="$tmp_archive_cmds"
6810
 
      supports_anon_versioning=no
6811
 
      case `$LD -v 2>/dev/null` in
6812
 
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6813
 
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6814
 
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6815
 
        *\ 2.11.*) ;; # other 2.11 versions
6816
 
        *) supports_anon_versioning=yes ;;
6817
 
      esac
6818
 
      if test $supports_anon_versioning = yes; then
6819
 
        archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6820
 
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6821
 
$echo "local: *; };" >> $output_objdir/$libname.ver~
6822
 
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6823
 
      else
6824
 
        archive_expsym_cmds="$tmp_archive_cmds"
6825
 
      fi
6826
 
    else
6827
 
      ld_shlibs=no
6828
 
    fi
6829
 
    ;;
6830
 
 
6831
7095
    *)
6832
7096
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6833
7097
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6838
7102
      ;;
6839
7103
    esac
6840
7104
 
6841
 
    if test "$ld_shlibs" = yes; then
6842
 
      runpath_var=LD_RUN_PATH
6843
 
      hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6844
 
      export_dynamic_flag_spec='${wl}--export-dynamic'
6845
 
      # ancient GNU ld didn't support --whole-archive et. al.
6846
 
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6847
 
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6848
 
      else
6849
 
        whole_archive_flag_spec=
6850
 
      fi
 
7105
    if test "$ld_shlibs" = no; then
 
7106
      runpath_var=
 
7107
      hardcode_libdir_flag_spec=
 
7108
      export_dynamic_flag_spec=
 
7109
      whole_archive_flag_spec=
6851
7110
    fi
6852
7111
  else
6853
7112
    # PORTME fill in a description of your system's linker (not GNU ld)
6859
7118
      # Note: this linker hardcodes the directories in LIBPATH if there
6860
7119
      # are no directories specified by -L.
6861
7120
      hardcode_minus_L=yes
6862
 
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
7121
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
6863
7122
        # Neither direct hardcoding nor static linking is supported with a
6864
7123
        # broken collect2.
6865
7124
        hardcode_direct=unsupported
6893
7152
            break
6894
7153
          fi
6895
7154
          done
 
7155
          ;;
6896
7156
        esac
6897
7157
 
6898
7158
        exp_sym_flag='-bexport'
6911
7171
      link_all_deplibs=yes
6912
7172
 
6913
7173
      if test "$GCC" = yes; then
6914
 
        case $host_os in aix4.012|aix4.012.*)
 
7174
        case $host_os in aix4.[012]|aix4.[012].*)
6915
7175
        # We only want to do this on AIX 4.2 and lower, the check
6916
7176
        # below for broken collect2 doesn't work under 4.3+
6917
7177
          collect2name=`${CC} -print-prog-name=collect2`
6930
7190
          hardcode_libdir_flag_spec='-L$libdir'
6931
7191
          hardcode_libdir_separator=
6932
7192
          fi
 
7193
          ;;
6933
7194
        esac
6934
7195
        shared_flag='-shared'
 
7196
        if test "$aix_use_runtimelinking" = yes; then
 
7197
          shared_flag="$shared_flag "'${wl}-G'
 
7198
        fi
6935
7199
      else
6936
7200
        # not using gcc
6937
7201
        if test "$host_cpu" = ia64; then
6939
7203
        # chokes on -Wl,-G. The following line is correct:
6940
7204
          shared_flag='-G'
6941
7205
        else
6942
 
        if test "$aix_use_runtimelinking" = yes; then
 
7206
          if test "$aix_use_runtimelinking" = yes; then
6943
7207
            shared_flag='${wl}-G'
6944
7208
          else
6945
7209
            shared_flag='${wl}-bM:SRE'
6946
 
        fi
 
7210
          fi
6947
7211
        fi
6948
7212
      fi
6949
7213
 
7008
7272
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7009
7273
 
7010
7274
       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7011
 
        archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
7275
        archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7012
7276
       else
7013
7277
        if test "$host_cpu" = ia64; then
7014
7278
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7015
7279
          allow_undefined_flag="-z nodefs"
7016
 
          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
 
7280
          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"
7017
7281
        else
7018
7282
         # Determine the default libpath from the value encoded in an empty executable.
7019
7283
         cat >conftest.$ac_ext <<_ACEOF
7073
7337
          # -berok will link without error, but may produce a broken library.
7074
7338
          no_undefined_flag=' ${wl}-bernotok'
7075
7339
          allow_undefined_flag=' ${wl}-berok'
7076
 
          # -bexpall does not export symbols beginning with underscore (_)
7077
 
          always_export_symbols=yes
7078
7340
          # Exported symbols can be pulled into shared objects from archives
7079
 
          whole_archive_flag_spec=' '
 
7341
          whole_archive_flag_spec='$convenience'
7080
7342
          archive_cmds_need_lc=yes
7081
 
          # This is similar to how AIX traditionally builds it's shared libraries.
7082
 
          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
7343
          # This is similar to how AIX traditionally builds its shared libraries.
 
7344
          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'
7083
7345
        fi
7084
7346
      fi
7085
7347
      ;;
7092
7354
      ld_shlibs=no
7093
7355
      ;;
7094
7356
 
7095
 
    bsdi4*)
 
7357
    bsdi[45]*)
7096
7358
      export_dynamic_flag_spec=-rdynamic
7097
7359
      ;;
7098
7360
 
7106
7368
      # Tell ltmain to make .lib files, not .a files.
7107
7369
      libext=lib
7108
7370
      # Tell ltmain to make .dll files, not .so files.
7109
 
      shrext=".dll"
 
7371
      shrext_cmds=".dll"
7110
7372
      # FIXME: Setting linknames here is a bad hack.
7111
7373
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7112
7374
      # The linker will automatically build a .lib file if we build a DLL.
7118
7380
      ;;
7119
7381
 
7120
7382
    darwin* | rhapsody*)
7121
 
    if test "$GXX" = yes ; then
 
7383
      case $host_os in
 
7384
        rhapsody* | darwin1.[012])
 
7385
         allow_undefined_flag='${wl}-undefined ${wl}suppress'
 
7386
         ;;
 
7387
       *) # Darwin 1.3 on
 
7388
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
7389
           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
7390
         else
 
7391
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
7392
             10.[012])
 
7393
               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
7394
               ;;
 
7395
             10.*)
 
7396
               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
 
7397
               ;;
 
7398
           esac
 
7399
         fi
 
7400
         ;;
 
7401
      esac
7122
7402
      archive_cmds_need_lc=no
7123
 
      case "$host_os" in
7124
 
      rhapsody* | darwin1.[012])
7125
 
        allow_undefined_flag='-undefined suppress'
7126
 
        ;;
7127
 
      *) # Darwin 1.3 on
7128
 
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7129
 
        allow_undefined_flag='-flat_namespace -undefined suppress'
7130
 
      else
7131
 
        case ${MACOSX_DEPLOYMENT_TARGET} in
7132
 
          10.[012])
7133
 
            allow_undefined_flag='-flat_namespace -undefined suppress'
7134
 
            ;;
7135
 
          10.*)
7136
 
            allow_undefined_flag='-undefined dynamic_lookup'
7137
 
            ;;
7138
 
        esac
7139
 
      fi
7140
 
        ;;
7141
 
      esac
7142
 
        lt_int_apple_cc_single_mod=no
7143
 
        output_verbose_link_cmd='echo'
7144
 
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7145
 
          lt_int_apple_cc_single_mod=yes
7146
 
        fi
7147
 
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7148
 
          archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7149
 
        else
7150
 
        archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7151
 
      fi
7152
 
      module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7153
 
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7154
 
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7155
 
          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7156
 
        else
7157
 
          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7158
 
        fi
7159
 
          module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7160
7403
      hardcode_direct=no
7161
7404
      hardcode_automatic=yes
7162
7405
      hardcode_shlibpath_var=unsupported
7163
 
      whole_archive_flag_spec='-all_load $convenience'
 
7406
      whole_archive_flag_spec=''
7164
7407
      link_all_deplibs=yes
 
7408
    if test "$GCC" = yes ; then
 
7409
        output_verbose_link_cmd='echo'
 
7410
        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
7411
      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
7412
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
7413
      archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
7414
      module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7165
7415
    else
7166
 
      ld_shlibs=no
 
7416
      case $cc_basename in
 
7417
        xlc*)
 
7418
         output_verbose_link_cmd='echo'
 
7419
         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
7420
         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
7421
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
7422
         archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
7423
          module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
7424
          ;;
 
7425
       *)
 
7426
         ld_shlibs=no
 
7427
          ;;
 
7428
      esac
7167
7429
    fi
7168
7430
      ;;
7169
7431
 
7197
7459
      ;;
7198
7460
 
7199
7461
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7200
 
    freebsd* | kfreebsd*-gnu)
 
7462
    freebsd* | kfreebsd*-gnu | dragonfly*)
7201
7463
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7202
7464
      hardcode_libdir_flag_spec='-R$libdir'
7203
7465
      hardcode_direct=yes
7220
7482
      export_dynamic_flag_spec='${wl}-E'
7221
7483
      ;;
7222
7484
 
7223
 
    hpux10* | hpux11*)
7224
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7225
 
        case "$host_cpu" in
7226
 
        hppa*64*|ia64*)
 
7485
    hpux10*)
 
7486
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
7487
        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
7488
      else
 
7489
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
7490
      fi
 
7491
      if test "$with_gnu_ld" = no; then
 
7492
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
7493
        hardcode_libdir_separator=:
 
7494
 
 
7495
        hardcode_direct=yes
 
7496
        export_dynamic_flag_spec='${wl}-E'
 
7497
 
 
7498
        # hardcode_minus_L: Not really in the search PATH,
 
7499
        # but as the default location of the library.
 
7500
        hardcode_minus_L=yes
 
7501
      fi
 
7502
      ;;
 
7503
 
 
7504
    hpux11*)
 
7505
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
7506
        case $host_cpu in
 
7507
        hppa*64*)
7227
7508
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7228
7509
          ;;
 
7510
        ia64*)
 
7511
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
7512
          ;;
7229
7513
        *)
7230
7514
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7231
7515
          ;;
7232
7516
        esac
7233
7517
      else
7234
 
        case "$host_cpu" in
7235
 
        hppa*64*|ia64*)
7236
 
          archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7518
        case $host_cpu in
 
7519
        hppa*64*)
 
7520
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7521
          ;;
 
7522
        ia64*)
 
7523
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7237
7524
          ;;
7238
7525
        *)
7239
 
          archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
7526
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7240
7527
          ;;
7241
7528
        esac
7242
7529
      fi
7243
7530
      if test "$with_gnu_ld" = no; then
7244
 
        case "$host_cpu" in
7245
 
        hppa*64*)
7246
 
          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
7531
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
7532
        hardcode_libdir_separator=:
 
7533
 
 
7534
        case $host_cpu in
 
7535
        hppa*64*|ia64*)
7247
7536
          hardcode_libdir_flag_spec_ld='+b $libdir'
7248
 
          hardcode_libdir_separator=:
7249
 
          hardcode_direct=no
7250
 
          hardcode_shlibpath_var=no
7251
 
          ;;
7252
 
        ia64*)
7253
 
          hardcode_libdir_flag_spec='-L$libdir'
7254
 
          hardcode_direct=no
7255
 
          hardcode_shlibpath_var=no
7256
 
 
7257
 
          # hardcode_minus_L: Not really in the search PATH,
7258
 
          # but as the default location of the library.
7259
 
          hardcode_minus_L=yes
 
7537
          hardcode_direct=no
 
7538
          hardcode_shlibpath_var=no
7260
7539
          ;;
7261
7540
        *)
7262
 
          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7263
 
          hardcode_libdir_separator=:
7264
7541
          hardcode_direct=yes
7265
7542
          export_dynamic_flag_spec='${wl}-E'
7266
7543
 
7308
7585
      hardcode_shlibpath_var=no
7309
7586
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7310
7587
        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
7588
        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7311
7589
        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7312
7590
        export_dynamic_flag_spec='${wl}-E'
7313
7591
      else
7353
7631
        allow_undefined_flag=' -expect_unresolved \*'
7354
7632
        archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7355
7633
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7356
 
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
 
7634
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
7357
7635
 
7358
7636
        # Both c and cxx compiler support -rpath directly
7359
7637
        hardcode_libdir_flag_spec='-rpath $libdir'
7361
7639
      hardcode_libdir_separator=:
7362
7640
      ;;
7363
7641
 
7364
 
    sco3.2v5*)
7365
 
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7366
 
      hardcode_shlibpath_var=no
7367
 
      export_dynamic_flag_spec='${wl}-Bexport'
7368
 
      runpath_var=LD_RUN_PATH
7369
 
      hardcode_runpath_var=yes
7370
 
      ;;
7371
 
 
7372
7642
    solaris*)
7373
7643
      no_undefined_flag=' -z text'
7374
7644
      if test "$GCC" = yes; then
 
7645
        wlarc='${wl}'
7375
7646
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7376
7647
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7377
7648
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7378
7649
      else
 
7650
        wlarc=''
7379
7651
        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7380
7652
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7381
7653
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7384
7656
      hardcode_shlibpath_var=no
7385
7657
      case $host_os in
7386
7658
      solaris2.[0-5] | solaris2.[0-5].*) ;;
7387
 
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7388
 
        whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
 
7659
      *)
 
7660
        # The compiler driver will combine linker options so we
 
7661
        # cannot just pass the convience library names through
 
7662
        # without $wl, iff we do not link with $LD.
 
7663
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
7664
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
7665
        case $wlarc in
 
7666
        '')
 
7667
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
 
7668
        *)
 
7669
          whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
 
7670
        esac ;;
7389
7671
      esac
7390
7672
      link_all_deplibs=yes
7391
7673
      ;;
7442
7724
      fi
7443
7725
      ;;
7444
7726
 
7445
 
    sysv4.2uw2*)
7446
 
      archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7447
 
      hardcode_direct=yes
7448
 
      hardcode_minus_L=no
7449
 
      hardcode_shlibpath_var=no
7450
 
      hardcode_runpath_var=yes
7451
 
      runpath_var=LD_RUN_PATH
7452
 
      ;;
7453
 
 
7454
 
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7455
 
      no_undefined_flag='${wl}-z ${wl}text'
7456
 
      if test "$GCC" = yes; then
7457
 
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7458
 
      else
7459
 
        archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7460
 
      fi
7461
 
      runpath_var='LD_RUN_PATH'
7462
 
      hardcode_shlibpath_var=no
7463
 
      ;;
7464
 
 
7465
 
    sysv5*)
7466
 
      no_undefined_flag=' -z text'
7467
 
      # $CC -shared without GNU ld will not create a library from C++
7468
 
      # object files and a static libstdc++, better avoid it by now
7469
 
      archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7470
 
      archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7471
 
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7472
 
      hardcode_libdir_flag_spec=
7473
 
      hardcode_shlibpath_var=no
7474
 
      runpath_var='LD_RUN_PATH'
 
7727
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
 
7728
      no_undefined_flag='${wl}-z,text'
 
7729
      archive_cmds_need_lc=no
 
7730
      hardcode_shlibpath_var=no
 
7731
      runpath_var='LD_RUN_PATH'
 
7732
 
 
7733
      if test "$GCC" = yes; then
 
7734
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7735
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7736
      else
 
7737
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7738
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7739
      fi
 
7740
      ;;
 
7741
 
 
7742
    sysv5* | sco3.2v5* | sco5v6*)
 
7743
      # Note: We can NOT use -z defs as we might desire, because we do not
 
7744
      # link with -lc, and that would cause any symbols used from libc to
 
7745
      # always be unresolved, which means just about no library would
 
7746
      # ever link correctly.  If we're not using GNU ld we use -z text
 
7747
      # though, which does catch some bad symbols but isn't as heavy-handed
 
7748
      # as -z defs.
 
7749
      no_undefined_flag='${wl}-z,text'
 
7750
      allow_undefined_flag='${wl}-z,nodefs'
 
7751
      archive_cmds_need_lc=no
 
7752
      hardcode_shlibpath_var=no
 
7753
      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
7754
      hardcode_libdir_separator=':'
 
7755
      link_all_deplibs=yes
 
7756
      export_dynamic_flag_spec='${wl}-Bexport'
 
7757
      runpath_var='LD_RUN_PATH'
 
7758
 
 
7759
      if test "$GCC" = yes; then
 
7760
        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7761
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7762
      else
 
7763
        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7764
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7765
      fi
7475
7766
      ;;
7476
7767
 
7477
7768
    uts4*)
7490
7781
echo "${ECHO_T}$ld_shlibs" >&6
7491
7782
test "$ld_shlibs" = no && can_build_shared=no
7492
7783
 
7493
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7494
 
if test "$GCC" = yes; then
7495
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7496
 
fi
7497
 
 
7498
7784
#
7499
7785
# Do we need to explicitly link libc?
7500
7786
#
7527
7813
        libobjs=conftest.$ac_objext
7528
7814
        deplibs=
7529
7815
        wl=$lt_prog_compiler_wl
 
7816
        pic_flag=$lt_prog_compiler_pic
7530
7817
        compiler_flags=-v
7531
7818
        linker_flags=-v
7532
7819
        verstring=
7562
7849
library_names_spec=
7563
7850
libname_spec='lib$name'
7564
7851
soname_spec=
7565
 
shrext=".so"
 
7852
shrext_cmds=".so"
7566
7853
postinstall_cmds=
7567
7854
postuninstall_cmds=
7568
7855
finish_cmds=
7659
7946
  shlibpath_var=LIBRARY_PATH
7660
7947
  ;;
7661
7948
 
7662
 
bsdi4*)
 
7949
bsdi[45]*)
7663
7950
  version_type=linux
7664
7951
  need_version=no
7665
7952
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7675
7962
 
7676
7963
cygwin* | mingw* | pw32*)
7677
7964
  version_type=windows
7678
 
  shrext=".dll"
 
7965
  shrext_cmds=".dll"
7679
7966
  need_version=no
7680
7967
  need_lib_prefix=no
7681
7968
 
7687
7974
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7688
7975
      dldir=$destdir/`dirname \$dlpath`~
7689
7976
      test -d \$dldir || mkdir -p \$dldir~
7690
 
      $install_prog $dir/$dlname \$dldir/$dlname'
 
7977
      $install_prog $dir/$dlname \$dldir/$dlname~
 
7978
      chmod a+x \$dldir/$dlname'
7691
7979
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7692
7980
      dlpath=$dir/\$dldll~
7693
7981
       $rm \$dlpath'
7717
8005
      ;;
7718
8006
    pw32*)
7719
8007
      # pw32 DLLs use 'pw' prefix rather than 'lib'
7720
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
8008
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7721
8009
      ;;
7722
8010
    esac
7723
8011
    ;;
7724
8012
 
7725
 
  linux*)
7726
 
    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
7727
 
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7728
 
      supports_anon_versioning=no
7729
 
      case `$LD -v 2>/dev/null` in
7730
 
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7731
 
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7732
 
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7733
 
        *\ 2.11.*) ;; # other 2.11 versions
7734
 
        *) supports_anon_versioning=yes ;;
7735
 
      esac
7736
 
      if test $supports_anon_versioning = yes; then
7737
 
        archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7738
 
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7739
 
$echo "local: *; };" >> $output_objdir/$libname.ver~
7740
 
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7741
 
      else
7742
 
        $archive_expsym_cmds="$archive_cmds"
7743
 
      fi
7744
 
    else
7745
 
      ld_shlibs=no
7746
 
    fi
7747
 
    ;;
7748
 
 
7749
8013
  *)
7750
8014
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7751
8015
    ;;
7764
8028
  soname_spec='${libname}${release}${major}$shared_ext'
7765
8029
  shlibpath_overrides_runpath=yes
7766
8030
  shlibpath_var=DYLD_LIBRARY_PATH
7767
 
  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
 
8031
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
7768
8032
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7769
8033
  if test "$GCC" = yes; then
7770
8034
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
7799
8063
  dynamic_linker='GNU ld.so'
7800
8064
  ;;
7801
8065
 
7802
 
freebsd*)
7803
 
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
8066
freebsd* | dragonfly*)
 
8067
  # DragonFly does not have aout.  When/if they implement a new
 
8068
  # versioning mechanism, adjust this.
 
8069
  if test -x /usr/bin/objformat; then
 
8070
    objformat=`/usr/bin/objformat`
 
8071
  else
 
8072
    case $host_os in
 
8073
    freebsd[123]*) objformat=aout ;;
 
8074
    *) objformat=elf ;;
 
8075
    esac
 
8076
  fi
7804
8077
  version_type=freebsd-$objformat
7805
8078
  case $version_type in
7806
8079
    freebsd-elf*)
7818
8091
  freebsd2*)
7819
8092
    shlibpath_overrides_runpath=yes
7820
8093
    ;;
7821
 
  freebsd3.01* | freebsdelf3.01*)
 
8094
  freebsd3.[01]* | freebsdelf3.[01]*)
7822
8095
    shlibpath_overrides_runpath=yes
7823
8096
    hardcode_into_libs=yes
7824
8097
    ;;
7825
 
  *) # from 3.2 on
 
8098
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
8099
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
7826
8100
    shlibpath_overrides_runpath=no
7827
8101
    hardcode_into_libs=yes
7828
8102
    ;;
 
8103
  freebsd*) # from 4.6 on
 
8104
    shlibpath_overrides_runpath=yes
 
8105
    hardcode_into_libs=yes
 
8106
    ;;
7829
8107
  esac
7830
8108
  ;;
7831
8109
 
7845
8123
  version_type=sunos
7846
8124
  need_lib_prefix=no
7847
8125
  need_version=no
7848
 
  case "$host_cpu" in
 
8126
  case $host_cpu in
7849
8127
  ia64*)
7850
 
    shrext='.so'
 
8128
    shrext_cmds='.so'
7851
8129
    hardcode_into_libs=yes
7852
8130
    dynamic_linker="$host_os dld.so"
7853
8131
    shlibpath_var=LD_LIBRARY_PATH
7862
8140
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7863
8141
    ;;
7864
8142
   hppa*64*)
7865
 
     shrext='.sl'
 
8143
     shrext_cmds='.sl'
7866
8144
     hardcode_into_libs=yes
7867
8145
     dynamic_linker="$host_os dld.sl"
7868
8146
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7873
8151
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7874
8152
     ;;
7875
8153
   *)
7876
 
    shrext='.sl'
 
8154
    shrext_cmds='.sl'
7877
8155
    dynamic_linker="$host_os dld.sl"
7878
8156
    shlibpath_var=SHLIB_PATH
7879
8157
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7885
8163
  postinstall_cmds='chmod 555 $lib'
7886
8164
  ;;
7887
8165
 
 
8166
interix3*)
 
8167
  version_type=linux
 
8168
  need_lib_prefix=no
 
8169
  need_version=no
 
8170
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
8171
  soname_spec='${libname}${release}${shared_ext}$major'
 
8172
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
8173
  shlibpath_var=LD_LIBRARY_PATH
 
8174
  shlibpath_overrides_runpath=no
 
8175
  hardcode_into_libs=yes
 
8176
  ;;
 
8177
 
7888
8178
irix5* | irix6* | nonstopux*)
7889
8179
  case $host_os in
7890
8180
    nonstopux*) version_type=nonstopux ;;
7942
8232
  # before this can be enabled.
7943
8233
  hardcode_into_libs=yes
7944
8234
 
7945
 
  # Append ld.so.conf contents to the search path
7946
 
  if test -f /etc/ld.so.conf; then
7947
 
    ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
7948
 
    sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
7949
 
  fi
7950
 
 
7951
 
  case $host_cpu:$lt_cv_cc_64bit_output in
7952
 
  powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes)
7953
 
    sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/X11R6/lib64"
7954
 
    sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /usr/X11R6/lib64"
7955
 
    ;;
7956
 
  esac
7957
 
 
7958
 
  # We used to test for /lib/ld.so.1 and disable shared libraries on
7959
 
  # powerpc, because MkLinux only supported shared libraries with the
7960
 
  # GNU dynamic linker.  Since this was broken with cross compilers,
7961
 
  # most powerpc-linux boxes support dynamic linking these days and
7962
 
  # people can always --disable-shared, the test was removed, and we
7963
 
  # assume the GNU/Linux dynamic linker is in use.
7964
 
  dynamic_linker='GNU/Linux ld.so'
7965
 
 
7966
 
  # Find out which ABI we are using (multilib Linux x86_64 hack).
 
8235
  # find out which ABI we are using
7967
8236
  libsuff=
7968
8237
  case "$host_cpu" in
7969
 
  x86_64*)
7970
 
    echo '#line 7970 "configure"' > conftest.$ac_ext
 
8238
  x86_64*|s390x*|powerpc64*)
 
8239
    echo '#line 8239 "configure"' > conftest.$ac_ext
7971
8240
    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7972
8241
  (eval $ac_compile) 2>&5
7973
8242
  ac_status=$?
7976
8245
      case `/usr/bin/file conftest.$ac_objext` in
7977
8246
      *64-bit*)
7978
8247
        libsuff=64
 
8248
        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
7979
8249
        ;;
7980
8250
      esac
7981
8251
    fi
7982
8252
    rm -rf conftest*
7983
8253
    ;;
7984
 
  *)
7985
 
    ;;
7986
8254
  esac
7987
 
  sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
7988
 
  sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
 
8255
 
 
8256
  # Append ld.so.conf contents to the search path
 
8257
  if test -f /etc/ld.so.conf; then
 
8258
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
8259
    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
 
8260
  fi
 
8261
 
 
8262
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
8263
  # powerpc, because MkLinux only supported shared libraries with the
 
8264
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
8265
  # most powerpc-linux boxes support dynamic linking these days and
 
8266
  # people can always --disable-shared, the test was removed, and we
 
8267
  # assume the GNU/Linux dynamic linker is in use.
 
8268
  dynamic_linker='GNU/Linux ld.so'
7989
8269
  ;;
7990
8270
 
7991
8271
knetbsd*-gnu)
8037
8317
 
8038
8318
openbsd*)
8039
8319
  version_type=sunos
 
8320
  sys_lib_dlsearch_path_spec="/usr/lib"
8040
8321
  need_lib_prefix=no
8041
 
  need_version=yes
 
8322
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
8323
  case $host_os in
 
8324
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
8325
    *)                         need_version=no  ;;
 
8326
  esac
8042
8327
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8043
8328
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8044
8329
  shlibpath_var=LD_LIBRARY_PATH
8058
8343
 
8059
8344
os2*)
8060
8345
  libname_spec='$name'
8061
 
  shrext=".dll"
 
8346
  shrext_cmds=".dll"
8062
8347
  need_lib_prefix=no
8063
8348
  library_names_spec='$libname${shared_ext} $libname.a'
8064
8349
  dynamic_linker='OS/2 ld.exe'
8076
8361
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8077
8362
  ;;
8078
8363
 
8079
 
sco3.2v5*)
8080
 
  version_type=osf
8081
 
  soname_spec='${libname}${release}${shared_ext}$major'
8082
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8083
 
  shlibpath_var=LD_LIBRARY_PATH
8084
 
  ;;
8085
 
 
8086
8364
solaris*)
8087
8365
  version_type=linux
8088
8366
  need_lib_prefix=no
8108
8386
  need_version=yes
8109
8387
  ;;
8110
8388
 
8111
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
8389
sysv4 | sysv4.3*)
8112
8390
  version_type=linux
8113
8391
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8114
8392
  soname_spec='${libname}${release}${shared_ext}$major'
8141
8419
  fi
8142
8420
  ;;
8143
8421
 
 
8422
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
8423
  version_type=freebsd-elf
 
8424
  need_lib_prefix=no
 
8425
  need_version=no
 
8426
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
8427
  soname_spec='${libname}${release}${shared_ext}$major'
 
8428
  shlibpath_var=LD_LIBRARY_PATH
 
8429
  hardcode_into_libs=yes
 
8430
  if test "$with_gnu_ld" = yes; then
 
8431
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
8432
    shlibpath_overrides_runpath=no
 
8433
  else
 
8434
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
8435
    shlibpath_overrides_runpath=yes
 
8436
    case $host_os in
 
8437
      sco3.2v5*)
 
8438
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
8439
        ;;
 
8440
    esac
 
8441
  fi
 
8442
  sys_lib_dlsearch_path_spec='/usr/lib'
 
8443
  ;;
 
8444
 
8144
8445
uts4*)
8145
8446
  version_type=linux
8146
8447
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8156
8457
echo "${ECHO_T}$dynamic_linker" >&6
8157
8458
test "$dynamic_linker" = no && can_build_shared=no
8158
8459
 
 
8460
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
8461
if test "$GCC" = yes; then
 
8462
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
8463
fi
 
8464
 
8159
8465
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8160
8466
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8161
8467
hardcode_action=
8162
8468
if test -n "$hardcode_libdir_flag_spec" || \
8163
 
   test -n "$runpath_var " || \
8164
 
   test "X$hardcode_automatic"="Xyes" ; then
 
8469
   test -n "$runpath_var" || \
 
8470
   test "X$hardcode_automatic" = "Xyes" ; then
8165
8471
 
8166
8472
  # We can hardcode non-existant directories.
8167
8473
  if test "$hardcode_direct" != no &&
8811
9117
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8812
9118
 
8813
9119
    save_LDFLAGS="$LDFLAGS"
8814
 
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
9120
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8815
9121
 
8816
9122
    save_LIBS="$LIBS"
8817
9123
    LIBS="$lt_cv_dlopen_libs $LIBS"
8827
9133
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8828
9134
  lt_status=$lt_dlunknown
8829
9135
  cat > conftest.$ac_ext <<EOF
8830
 
#line 8830 "configure"
 
9136
#line 9136 "configure"
8831
9137
#include "confdefs.h"
8832
9138
 
8833
9139
#if HAVE_DLFCN_H
8884
9190
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8885
9191
      /* dlclose (self); */
8886
9192
    }
 
9193
  else
 
9194
    puts (dlerror ());
8887
9195
 
8888
9196
    exit (status);
8889
9197
}
8893
9201
  ac_status=$?
8894
9202
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8895
9203
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8896
 
    (./conftest; exit; ) 2>/dev/null
 
9204
    (./conftest; exit; ) >&5 2>/dev/null
8897
9205
    lt_status=$?
8898
9206
    case x$lt_status in
8899
9207
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8900
9208
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8901
 
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 
9209
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
8902
9210
    esac
8903
9211
  else :
8904
9212
    # compilation failed
8913
9221
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8914
9222
 
8915
9223
    if test "x$lt_cv_dlopen_self" = xyes; then
8916
 
      LDFLAGS="$LDFLAGS $link_static_flag"
 
9224
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
8917
9225
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8918
9226
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8919
9227
if test "${lt_cv_dlopen_self_static+set}" = set; then
8925
9233
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8926
9234
  lt_status=$lt_dlunknown
8927
9235
  cat > conftest.$ac_ext <<EOF
8928
 
#line 8928 "configure"
 
9236
#line 9236 "configure"
8929
9237
#include "confdefs.h"
8930
9238
 
8931
9239
#if HAVE_DLFCN_H
8982
9290
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8983
9291
      /* dlclose (self); */
8984
9292
    }
 
9293
  else
 
9294
    puts (dlerror ());
8985
9295
 
8986
9296
    exit (status);
8987
9297
}
8991
9301
  ac_status=$?
8992
9302
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8993
9303
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8994
 
    (./conftest; exit; ) 2>/dev/null
 
9304
    (./conftest; exit; ) >&5 2>/dev/null
8995
9305
    lt_status=$?
8996
9306
    case x$lt_status in
8997
9307
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8998
9308
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8999
 
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 
9309
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9000
9310
    esac
9001
9311
  else :
9002
9312
    # compilation failed
9029
9339
fi
9030
9340
 
9031
9341
 
9032
 
# Report which librarie types wil actually be built
 
9342
# Report which library types will actually be built
9033
9343
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9034
9344
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9035
9345
echo "$as_me:$LINENO: result: $can_build_shared" >&5
9041
9351
 
9042
9352
# On AIX, shared libraries and static libraries use the same namespace, and
9043
9353
# are all built from PIC.
9044
 
case "$host_os" in
 
9354
case $host_os in
9045
9355
aix3*)
9046
9356
  test "$enable_shared" = yes && enable_static=no
9047
9357
  if test -n "$RANLIB"; then
9050
9360
  fi
9051
9361
  ;;
9052
9362
 
9053
 
aix4*)
 
9363
aix4* | aix5*)
9054
9364
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9055
9365
    test "$enable_shared" = yes && enable_static=no
9056
9366
  fi
9057
 
  ;;
9058
 
  darwin* | rhapsody*)
9059
 
  if test "$GCC" = yes; then
9060
 
    archive_cmds_need_lc=no
9061
 
    case "$host_os" in
9062
 
    rhapsody* | darwin1.[012])
9063
 
      allow_undefined_flag='-undefined suppress'
9064
 
      ;;
9065
 
    *) # Darwin 1.3 on
9066
 
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9067
 
        allow_undefined_flag='-flat_namespace -undefined suppress'
9068
 
      else
9069
 
        case ${MACOSX_DEPLOYMENT_TARGET} in
9070
 
          10.[012])
9071
 
            allow_undefined_flag='-flat_namespace -undefined suppress'
9072
 
            ;;
9073
 
          10.*)
9074
 
            allow_undefined_flag='-undefined dynamic_lookup'
9075
 
            ;;
9076
 
        esac
9077
 
      fi
9078
 
      ;;
9079
 
    esac
9080
 
    output_verbose_link_cmd='echo'
9081
 
    archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
9082
 
    module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9083
 
    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9084
 
    archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9085
 
    module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9086
 
    hardcode_direct=no
9087
 
    hardcode_automatic=yes
9088
 
    hardcode_shlibpath_var=unsupported
9089
 
    whole_archive_flag_spec='-all_load $convenience'
9090
 
    link_all_deplibs=yes
9091
 
  else
9092
 
    ld_shlibs=no
9093
 
  fi
9094
9367
    ;;
9095
9368
esac
9096
9369
echo "$as_me:$LINENO: result: $enable_shared" >&5
9116
9389
  # Now quote all the things that may contain metacharacters while being
9117
9390
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
9118
9391
  # variables and quote the copies for generation of the libtool script.
9119
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
9392
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9120
9393
    SED SHELL STRIP \
9121
9394
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9122
9395
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9220
9493
#
9221
9494
# You should have received a copy of the GNU General Public License
9222
9495
# along with this program; if not, write to the Free Software
9223
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
9496
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9224
9497
#
9225
9498
# As a special exception to the GNU General Public License, if you
9226
9499
# distribute this file as part of a program that contains a
9231
9504
SED=$lt_SED
9232
9505
 
9233
9506
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9234
 
Xsed="$SED -e s/^X//"
 
9507
Xsed="$SED -e 1s/^X//"
9235
9508
 
9236
9509
# The HP-UX ksh and POSIX shell print the target directory to stdout
9237
9510
# if CDPATH is set.
9238
 
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
 
9511
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9239
9512
 
9240
9513
# The names of the tagged configurations supported by this script.
9241
9514
available_tags=
9265
9538
# The host system.
9266
9539
host_alias=$host_alias
9267
9540
host=$host
 
9541
host_os=$host_os
 
9542
 
 
9543
# The build system.
 
9544
build_alias=$build_alias
 
9545
build=$build
 
9546
build_os=$build_os
9268
9547
 
9269
9548
# An echo program that does not interpret backslashes.
9270
9549
echo=$lt_echo
9276
9555
# A C compiler.
9277
9556
LTCC=$lt_LTCC
9278
9557
 
 
9558
# LTCC compiler flags.
 
9559
LTCFLAGS=$lt_LTCFLAGS
 
9560
 
9279
9561
# A language-specific compiler.
9280
9562
CC=$lt_compiler
9281
9563
 
9326
9608
libext="$libext"
9327
9609
 
9328
9610
# Shared library suffix (normally ".so").
9329
 
shrext='$shrext'
 
9611
shrext_cmds='$shrext_cmds'
9330
9612
 
9331
9613
# Executable file suffix (normally "").
9332
9614
exeext="$exeext"
9341
9623
# Does compiler simultaneously support -c and -o options?
9342
9624
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9343
9625
 
9344
 
# Must we lock files when doing compilation ?
 
9626
# Must we lock files when doing compilation?
9345
9627
need_locks=$lt_need_locks
9346
9628
 
9347
9629
# Do we need the lib prefix for modules?
9606
9888
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9607
9889
    fi
9608
9890
  fi
 
9891
  if test -z "$LTCFLAGS"; then
 
9892
    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
 
9893
  fi
9609
9894
 
9610
9895
  # Extract list of available tagged configurations in $ofile.
9611
9896
  # Note that this assumes the entire list is on one line.
9636
9921
 
9637
9922
      case $tagname in
9638
9923
      CXX)
9639
 
        if test -n "$CXX" && test "X$CXX" != "Xno"; then
 
9924
        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
9925
            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
9926
            (test "X$CXX" != "Xg++"))) ; then
9640
9927
          ac_ext=cc
9641
9928
ac_cpp='$CXXCPP $CPPFLAGS'
9642
9929
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9656
9943
hardcode_libdir_flag_spec_ld_CXX=
9657
9944
hardcode_libdir_separator_CXX=
9658
9945
hardcode_minus_L_CXX=no
 
9946
hardcode_shlibpath_var_CXX=unsupported
9659
9947
hardcode_automatic_CXX=no
9660
9948
module_cmds_CXX=
9661
9949
module_expsym_cmds_CXX=
9673
9961
compiler_lib_search_path_CXX=
9674
9962
 
9675
9963
# Source file extension for C++ test sources.
9676
 
ac_ext=cc
 
9964
ac_ext=cpp
9677
9965
 
9678
9966
# Object file extension for compiled C++ test sources.
9679
9967
objext=o
9683
9971
lt_simple_compile_test_code="int some_variable = 0;\n"
9684
9972
 
9685
9973
# Code to be used in simple link tests
9686
 
lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
 
9974
lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
9687
9975
 
9688
9976
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9689
9977
 
9690
9978
# If no C compiler was specified, use CC.
9691
9979
LTCC=${LTCC-"$CC"}
9692
9980
 
 
9981
# If no C compiler flags were specified, use CFLAGS.
 
9982
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
9983
 
9693
9984
# Allow CC to be a program name with arguments.
9694
9985
compiler=$CC
9695
9986
 
9696
9987
 
 
9988
# save warnings/boilerplate of simple test code
 
9989
ac_outfile=conftest.$ac_objext
 
9990
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
9991
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
9992
_lt_compiler_boilerplate=`cat conftest.err`
 
9993
$rm conftest*
 
9994
 
 
9995
ac_outfile=conftest.$ac_objext
 
9996
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
9997
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
9998
_lt_linker_boilerplate=`cat conftest.err`
 
9999
$rm conftest*
 
10000
 
 
10001
 
9697
10002
# Allow CC to be a program name with arguments.
9698
10003
lt_save_CC=$CC
9699
10004
lt_save_LD=$LD
9704
10009
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9705
10010
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9706
10011
else
9707
 
  unset lt_cv_prog_gnu_ld
 
10012
  $as_unset lt_cv_prog_gnu_ld
9708
10013
fi
9709
10014
if test -n "${lt_cv_path_LDCXX+set}"; then
9710
10015
  lt_cv_path_LD=$lt_cv_path_LDCXX
9711
10016
else
9712
 
  unset lt_cv_path_LD
 
10017
  $as_unset lt_cv_path_LD
9713
10018
fi
9714
10019
test -z "${LDCXX+set}" || LD=$LDCXX
9715
10020
CC=${CXX-"c++"}
9716
10021
compiler=$CC
9717
10022
compiler_CXX=$CC
9718
 
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
 
10023
for cc_temp in $compiler""; do
 
10024
  case $cc_temp in
 
10025
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
10026
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
10027
    \-*) ;;
 
10028
    *) break;;
 
10029
  esac
 
10030
done
 
10031
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
10032
 
9719
10033
 
9720
10034
# We don't want -fno-exception wen compiling C++ code, so set the
9721
10035
# no_builtin_flag separately
9786
10100
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9787
10101
      lt_cv_path_LD="$ac_dir/$ac_prog"
9788
10102
      # Check to see if the program is GNU ld.  I'd rather use --version,
9789
 
      # but apparently some GNU ld's only accept -v.
 
10103
      # but apparently some variants of GNU ld only accept -v.
9790
10104
      # Break only if it was the GNU/non-GNU ld that we prefer.
9791
10105
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9792
10106
      *GNU* | *'with BFD'*)
9820
10134
if test "${lt_cv_prog_gnu_ld+set}" = set; then
9821
10135
  echo $ECHO_N "(cached) $ECHO_C" >&6
9822
10136
else
9823
 
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
 
10137
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
9824
10138
case `$LD -v 2>&1 </dev/null` in
9825
10139
*GNU* | *'with BFD'*)
9826
10140
  lt_cv_prog_gnu_ld=yes
9911
10225
            ;;
9912
10226
          esac
9913
10227
        done
 
10228
        ;;
9914
10229
      esac
9915
10230
 
9916
10231
      exp_sym_flag='-bexport'
9929
10244
    link_all_deplibs_CXX=yes
9930
10245
 
9931
10246
    if test "$GXX" = yes; then
9932
 
      case $host_os in aix4.012|aix4.012.*)
 
10247
      case $host_os in aix4.[012]|aix4.[012].*)
9933
10248
      # We only want to do this on AIX 4.2 and lower, the check
9934
10249
      # below for broken collect2 doesn't work under 4.3+
9935
10250
        collect2name=`${CC} -print-prog-name=collect2`
9948
10263
          hardcode_libdir_flag_spec_CXX='-L$libdir'
9949
10264
          hardcode_libdir_separator_CXX=
9950
10265
        fi
 
10266
        ;;
9951
10267
      esac
9952
10268
      shared_flag='-shared'
 
10269
      if test "$aix_use_runtimelinking" = yes; then
 
10270
        shared_flag="$shared_flag "'${wl}-G'
 
10271
      fi
9953
10272
    else
9954
10273
      # not using gcc
9955
10274
      if test "$host_cpu" = ia64; then
10027
10346
 
10028
10347
      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10029
10348
 
10030
 
      archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
10349
      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 echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10031
10350
     else
10032
10351
      if test "$host_cpu" = ia64; then
10033
10352
        hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10034
10353
        allow_undefined_flag_CXX="-z nodefs"
10035
 
        archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
 
10354
        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"
10036
10355
      else
10037
10356
        # Determine the default libpath from the value encoded in an empty executable.
10038
10357
        cat >conftest.$ac_ext <<_ACEOF
10092
10411
        # -berok will link without error, but may produce a broken library.
10093
10412
        no_undefined_flag_CXX=' ${wl}-bernotok'
10094
10413
        allow_undefined_flag_CXX=' ${wl}-berok'
10095
 
        # -bexpall does not export symbols beginning with underscore (_)
10096
 
        always_export_symbols_CXX=yes
10097
10414
        # Exported symbols can be pulled into shared objects from archives
10098
 
        whole_archive_flag_spec_CXX=' '
 
10415
        whole_archive_flag_spec_CXX='$convenience'
10099
10416
        archive_cmds_need_lc_CXX=yes
10100
 
        # This is similar to how AIX traditionally builds it's shared libraries.
10101
 
        archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
10417
        # This is similar to how AIX traditionally builds its shared libraries.
 
10418
        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'
10102
10419
      fi
10103
10420
    fi
10104
10421
    ;;
 
10422
 
 
10423
  beos*)
 
10424
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
10425
      allow_undefined_flag_CXX=unsupported
 
10426
      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
10427
      # support --undefined.  This deserves some investigation.  FIXME
 
10428
      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10429
    else
 
10430
      ld_shlibs_CXX=no
 
10431
    fi
 
10432
    ;;
 
10433
 
10105
10434
  chorus*)
10106
10435
    case $cc_basename in
10107
10436
      *)
10120
10449
    enable_shared_with_static_runtimes_CXX=yes
10121
10450
 
10122
10451
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10123
 
      archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
10452
      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'
10124
10453
      # If the export-symbols file already is a .def file (1st line
10125
10454
      # is EXPORTS), use it as is; otherwise, prepend...
10126
10455
      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10129
10458
        echo EXPORTS > $output_objdir/$soname.def;
10130
10459
        cat $export_symbols >> $output_objdir/$soname.def;
10131
10460
      fi~
10132
 
      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
10461
      $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'
10133
10462
    else
10134
10463
      ld_shlibs_CXX=no
10135
10464
    fi
10136
10465
  ;;
10137
 
 
10138
 
  darwin* | rhapsody*)
10139
 
  if test "$GXX" = yes; then
10140
 
    archive_cmds_need_lc_CXX=no
10141
 
    case "$host_os" in
10142
 
    rhapsody* | darwin1.[012])
10143
 
      allow_undefined_flag_CXX='-undefined suppress'
10144
 
      ;;
10145
 
    *) # Darwin 1.3 on
10146
 
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10147
 
        allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10148
 
      else
10149
 
        case ${MACOSX_DEPLOYMENT_TARGET} in
10150
 
          10.[012])
10151
 
            allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10152
 
            ;;
10153
 
          10.*)
10154
 
            allow_undefined_flag_CXX='-undefined dynamic_lookup'
10155
 
            ;;
 
10466
      darwin* | rhapsody*)
 
10467
        case $host_os in
 
10468
        rhapsody* | darwin1.[012])
 
10469
         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
 
10470
         ;;
 
10471
       *) # Darwin 1.3 on
 
10472
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
10473
           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
10474
         else
 
10475
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
10476
             10.[012])
 
10477
               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
10478
               ;;
 
10479
             10.*)
 
10480
               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
 
10481
               ;;
 
10482
           esac
 
10483
         fi
 
10484
         ;;
10156
10485
        esac
10157
 
      fi
10158
 
      ;;
10159
 
    esac
10160
 
    lt_int_apple_cc_single_mod=no
10161
 
    output_verbose_link_cmd='echo'
10162
 
    if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10163
 
      lt_int_apple_cc_single_mod=yes
10164
 
    fi
10165
 
    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10166
 
      archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10167
 
    else
10168
 
      archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10169
 
    fi
10170
 
    module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
10486
      archive_cmds_need_lc_CXX=no
 
10487
      hardcode_direct_CXX=no
 
10488
      hardcode_automatic_CXX=yes
 
10489
      hardcode_shlibpath_var_CXX=unsupported
 
10490
      whole_archive_flag_spec_CXX=''
 
10491
      link_all_deplibs_CXX=yes
10171
10492
 
10172
 
    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10173
 
    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10174
 
      archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10175
 
    else
10176
 
      archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10177
 
    fi
10178
 
    module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10179
 
    hardcode_direct_CXX=no
10180
 
    hardcode_automatic_CXX=yes
10181
 
    hardcode_shlibpath_var_CXX=unsupported
10182
 
    whole_archive_flag_spec_CXX='-all_load $convenience'
10183
 
    link_all_deplibs_CXX=yes
10184
 
  else
10185
 
    ld_shlibs_CXX=no
10186
 
  fi
10187
 
    ;;
 
10493
    if test "$GXX" = yes ; then
 
10494
      lt_int_apple_cc_single_mod=no
 
10495
      output_verbose_link_cmd='echo'
 
10496
      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
 
10497
       lt_int_apple_cc_single_mod=yes
 
10498
      fi
 
10499
      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
10500
       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
10501
      else
 
10502
          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'
 
10503
        fi
 
10504
        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
10505
        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
10506
          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
10507
            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
10508
          else
 
10509
            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
10510
          fi
 
10511
            module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
10512
      else
 
10513
      case $cc_basename in
 
10514
        xlc*)
 
10515
         output_verbose_link_cmd='echo'
 
10516
          archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
10517
          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
10518
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
10519
          archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
10520
          module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
10521
          ;;
 
10522
       *)
 
10523
         ld_shlibs_CXX=no
 
10524
          ;;
 
10525
      esac
 
10526
      fi
 
10527
        ;;
10188
10528
 
10189
10529
  dgux*)
10190
10530
    case $cc_basename in
10191
 
      ec++)
 
10531
      ec++*)
10192
10532
        # FIXME: insert proper C++ library support
10193
10533
        ld_shlibs_CXX=no
10194
10534
        ;;
10195
 
      ghcx)
 
10535
      ghcx*)
10196
10536
        # Green Hills C++ Compiler
10197
10537
        # FIXME: insert proper C++ library support
10198
10538
        ld_shlibs_CXX=no
10203
10543
        ;;
10204
10544
    esac
10205
10545
    ;;
10206
 
  freebsd12*)
 
10546
  freebsd[12]*)
10207
10547
    # C++ shared libraries reported to be fairly broken before switch to ELF
10208
10548
    ld_shlibs_CXX=no
10209
10549
    ;;
10210
10550
  freebsd-elf*)
10211
10551
    archive_cmds_need_lc_CXX=no
10212
10552
    ;;
10213
 
  freebsd* | kfreebsd*-gnu)
 
10553
  freebsd* | kfreebsd*-gnu | dragonfly*)
10214
10554
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10215
10555
    # conventions
10216
10556
    ld_shlibs_CXX=yes
10227
10567
                                # location of the library.
10228
10568
 
10229
10569
    case $cc_basename in
10230
 
    CC)
 
10570
    CC*)
10231
10571
      # FIXME: insert proper C++ library support
10232
10572
      ld_shlibs_CXX=no
10233
10573
      ;;
10234
 
    aCC)
 
10574
    aCC*)
10235
10575
      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'
10236
10576
      # Commands to make compiler produce verbose output that lists
10237
10577
      # what "hidden" libraries, object files and flags are used when
10241
10581
      # explicitly linking system object files so we need to strip them
10242
10582
      # from the output so that they don't get included in the library
10243
10583
      # dependencies.
10244
 
      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; echo $list'
 
10584
      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10245
10585
      ;;
10246
10586
    *)
10247
10587
      if test "$GXX" = yes; then
10255
10595
    ;;
10256
10596
  hpux10*|hpux11*)
10257
10597
    if test $with_gnu_ld = no; then
10258
 
      case "$host_cpu" in
10259
 
      hppa*64*)
10260
 
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
10598
      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
10599
      hardcode_libdir_separator_CXX=:
 
10600
 
 
10601
      case $host_cpu in
 
10602
      hppa*64*|ia64*)
10261
10603
        hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10262
 
        hardcode_libdir_separator_CXX=:
10263
 
        ;;
10264
 
      ia64*)
10265
 
        hardcode_libdir_flag_spec_CXX='-L$libdir'
10266
10604
        ;;
10267
10605
      *)
10268
 
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10269
 
        hardcode_libdir_separator_CXX=:
10270
10606
        export_dynamic_flag_spec_CXX='${wl}-E'
10271
10607
        ;;
10272
10608
      esac
10273
10609
    fi
10274
 
    case "$host_cpu" in
10275
 
    hppa*64*)
10276
 
      hardcode_direct_CXX=no
10277
 
      hardcode_shlibpath_var_CXX=no
10278
 
      ;;
10279
 
    ia64*)
10280
 
      hardcode_direct_CXX=no
10281
 
      hardcode_shlibpath_var_CXX=no
10282
 
      hardcode_minus_L_CXX=yes # Not in the search PATH,
10283
 
                                              # but as the default
10284
 
                                              # location of the library.
 
10610
    case $host_cpu in
 
10611
    hppa*64*|ia64*)
 
10612
      hardcode_direct_CXX=no
 
10613
      hardcode_shlibpath_var_CXX=no
10285
10614
      ;;
10286
10615
    *)
10287
10616
      hardcode_direct_CXX=yes
10292
10621
    esac
10293
10622
 
10294
10623
    case $cc_basename in
10295
 
      CC)
 
10624
      CC*)
10296
10625
        # FIXME: insert proper C++ library support
10297
10626
        ld_shlibs_CXX=no
10298
10627
        ;;
10299
 
      aCC)
10300
 
        case "$host_cpu" in
10301
 
        hppa*64*|ia64*)
10302
 
          archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
 
10628
      aCC*)
 
10629
        case $host_cpu in
 
10630
        hppa*64*)
 
10631
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
10632
          ;;
 
10633
        ia64*)
 
10634
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10303
10635
          ;;
10304
10636
        *)
10305
10637
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10318
10650
      *)
10319
10651
        if test "$GXX" = yes; then
10320
10652
          if test $with_gnu_ld = no; then
10321
 
            case "$host_cpu" in
10322
 
            ia64*|hppa*64*)
10323
 
              archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
 
10653
            case $host_cpu in
 
10654
            hppa*64*)
 
10655
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
10656
              ;;
 
10657
            ia64*)
 
10658
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10324
10659
              ;;
10325
10660
            *)
10326
10661
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10334
10669
        ;;
10335
10670
    esac
10336
10671
    ;;
 
10672
  interix3*)
 
10673
    hardcode_direct_CXX=no
 
10674
    hardcode_shlibpath_var_CXX=no
 
10675
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
10676
    export_dynamic_flag_spec_CXX='${wl}-E'
 
10677
    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
10678
    # Instead, shared libraries are loaded at an image base (0x10000000 by
 
10679
    # default) and relocated if they conflict, which is a slow very memory
 
10680
    # consuming and fragmenting process.  To avoid this, we pick a random,
 
10681
    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
10682
    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
10683
    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'
 
10684
    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'
 
10685
    ;;
10337
10686
  irix5* | irix6*)
10338
10687
    case $cc_basename in
10339
 
      CC)
 
10688
      CC*)
10340
10689
        # SGI C++
10341
 
        archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
 
10690
        archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10342
10691
 
10343
10692
        # Archives containing C++ object files must be created using
10344
10693
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10349
10698
      *)
10350
10699
        if test "$GXX" = yes; then
10351
10700
          if test "$with_gnu_ld" = no; then
10352
 
            archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
 
10701
            archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10353
10702
          else
10354
10703
            archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
10355
10704
          fi
10362
10711
    ;;
10363
10712
  linux*)
10364
10713
    case $cc_basename in
10365
 
      KCC)
 
10714
      KCC*)
10366
10715
        # Kuck and Associates, Inc. (KAI) C++ Compiler
10367
10716
 
10368
10717
        # KCC will only create a shared library if the output file
10387
10736
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10388
10737
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10389
10738
        ;;
10390
 
      icpc)
 
10739
      icpc*)
10391
10740
        # Intel C++
10392
10741
        with_gnu_ld=yes
 
10742
        # version 8.0 and above of icpc choke on multiply defined symbols
 
10743
        # if we add $predep_objects and $postdep_objects, however 7.1 and
 
10744
        # earlier do not add the objects themselves.
 
10745
        case `$CC -V 2>&1` in
 
10746
        *"Version 7."*)
 
10747
          archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10748
          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'
 
10749
          ;;
 
10750
        *)  # Version 8.0 or newer
 
10751
          tmp_idyn=
 
10752
          case $host_cpu in
 
10753
            ia64*) tmp_idyn=' -i_dynamic';;
 
10754
          esac
 
10755
          archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10756
          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'
 
10757
          ;;
 
10758
        esac
10393
10759
        archive_cmds_need_lc_CXX=no
10394
 
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10395
 
        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'
10396
10760
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10397
10761
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10398
10762
        whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10399
10763
        ;;
10400
 
      cxx)
 
10764
      pgCC*)
 
10765
        # Portland Group C++ compiler
 
10766
        archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
10767
        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'
 
10768
 
 
10769
        hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 
10770
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
10771
        whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
10772
        ;;
 
10773
      cxx*)
10401
10774
        # Compaq C++
10402
10775
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10403
10776
        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'
10428
10801
    ;;
10429
10802
  mvs*)
10430
10803
    case $cc_basename in
10431
 
      cxx)
 
10804
      cxx*)
10432
10805
        # FIXME: insert proper C++ library support
10433
10806
        ld_shlibs_CXX=no
10434
10807
        ;;
10449
10822
    # Workaround some broken pre-1.5 toolchains
10450
10823
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10451
10824
    ;;
 
10825
  openbsd2*)
 
10826
    # C++ shared libraries are fairly broken
 
10827
    ld_shlibs_CXX=no
 
10828
    ;;
 
10829
  openbsd*)
 
10830
    hardcode_direct_CXX=yes
 
10831
    hardcode_shlibpath_var_CXX=no
 
10832
    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
10833
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
10834
    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
10835
      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
 
10836
      export_dynamic_flag_spec_CXX='${wl}-E'
 
10837
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
10838
    fi
 
10839
    output_verbose_link_cmd='echo'
 
10840
    ;;
10452
10841
  osf3*)
10453
10842
    case $cc_basename in
10454
 
      KCC)
 
10843
      KCC*)
10455
10844
        # Kuck and Associates, Inc. (KAI) C++ Compiler
10456
10845
 
10457
10846
        # KCC will only create a shared library if the output file
10467
10856
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10468
10857
 
10469
10858
        ;;
10470
 
      RCC)
 
10859
      RCC*)
10471
10860
        # Rational C++ 2.4.1
10472
10861
        # FIXME: insert proper C++ library support
10473
10862
        ld_shlibs_CXX=no
10474
10863
        ;;
10475
 
      cxx)
 
10864
      cxx*)
10476
10865
        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10477
 
        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
 
10866
        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10478
10867
 
10479
10868
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10480
10869
        hardcode_libdir_separator_CXX=:
10492
10881
      *)
10493
10882
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10494
10883
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10495
 
          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
 
10884
          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10496
10885
 
10497
10886
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10498
10887
          hardcode_libdir_separator_CXX=:
10511
10900
    ;;
10512
10901
  osf4* | osf5*)
10513
10902
    case $cc_basename in
10514
 
      KCC)
 
10903
      KCC*)
10515
10904
        # Kuck and Associates, Inc. (KAI) C++ Compiler
10516
10905
 
10517
10906
        # KCC will only create a shared library if the output file
10526
10915
        # the KAI C++ compiler.
10527
10916
        old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10528
10917
        ;;
10529
 
      RCC)
 
10918
      RCC*)
10530
10919
        # Rational C++ 2.4.1
10531
10920
        # FIXME: insert proper C++ library support
10532
10921
        ld_shlibs_CXX=no
10533
10922
        ;;
10534
 
      cxx)
 
10923
      cxx*)
10535
10924
        allow_undefined_flag_CXX=' -expect_unresolved \*'
10536
 
        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
 
10925
        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10537
10926
        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10538
10927
          echo "-hidden">> $lib.exp~
10539
 
          $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
 
10928
          $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~
10540
10929
          $rm $lib.exp'
10541
10930
 
10542
10931
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10555
10944
      *)
10556
10945
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10557
10946
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10558
 
         archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
 
10947
         archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10559
10948
 
10560
10949
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10561
10950
          hardcode_libdir_separator_CXX=:
10576
10965
    # FIXME: insert proper C++ library support
10577
10966
    ld_shlibs_CXX=no
10578
10967
    ;;
10579
 
  sco*)
10580
 
    archive_cmds_need_lc_CXX=no
10581
 
    case $cc_basename in
10582
 
      CC)
10583
 
        # FIXME: insert proper C++ library support
10584
 
        ld_shlibs_CXX=no
10585
 
        ;;
10586
 
      *)
10587
 
        # FIXME: insert proper C++ library support
10588
 
        ld_shlibs_CXX=no
10589
 
        ;;
10590
 
    esac
10591
 
    ;;
10592
10968
  sunos4*)
10593
10969
    case $cc_basename in
10594
 
      CC)
 
10970
      CC*)
10595
10971
        # Sun C++ 4.x
10596
10972
        # FIXME: insert proper C++ library support
10597
10973
        ld_shlibs_CXX=no
10598
10974
        ;;
10599
 
      lcc)
 
10975
      lcc*)
10600
10976
        # Lucid
10601
10977
        # FIXME: insert proper C++ library support
10602
10978
        ld_shlibs_CXX=no
10609
10985
    ;;
10610
10986
  solaris*)
10611
10987
    case $cc_basename in
10612
 
      CC)
 
10988
      CC*)
10613
10989
        # Sun C++ 4.2, 5.x and Centerline C++
 
10990
        archive_cmds_need_lc_CXX=yes
10614
10991
        no_undefined_flag_CXX=' -zdefs'
10615
 
        archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
10992
        archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10616
10993
        archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10617
 
        $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
10994
        $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'
10618
10995
 
10619
10996
        hardcode_libdir_flag_spec_CXX='-R$libdir'
10620
10997
        hardcode_shlibpath_var_CXX=no
10621
10998
        case $host_os in
10622
 
          solaris2.0-5 | solaris2.0-5.*) ;;
 
10999
          solaris2.[0-5] | solaris2.[0-5].*) ;;
10623
11000
          *)
10624
11001
            # The C++ compiler is used as linker so we must use $wl
10625
11002
            # flag to pass the commands to the underlying system
10626
 
            # linker.
 
11003
            # linker. We must also pass each convience library through
 
11004
            # to the system linker between allextract/defaultextract.
 
11005
            # The C++ compiler will combine linker options so we
 
11006
            # cannot just pass the convience library names through
 
11007
            # without $wl.
10627
11008
            # Supported since Solaris 2.6 (maybe 2.5.1?)
10628
 
            whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
11009
            whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
10629
11010
            ;;
10630
11011
        esac
10631
11012
        link_all_deplibs_CXX=yes
10632
11013
 
10633
 
        # Commands to make compiler produce verbose output that lists
10634
 
        # what "hidden" libraries, object files and flags are used when
10635
 
        # linking a shared library.
10636
 
        #
10637
 
        # There doesn't appear to be a way to prevent this compiler from
10638
 
        # explicitly linking system object files so we need to strip them
10639
 
        # from the output so that they don't get included in the library
10640
 
        # dependencies.
10641
 
        output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
11014
        output_verbose_link_cmd='echo'
10642
11015
 
10643
11016
        # Archives containing C++ object files must be created using
10644
11017
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10646
11019
        # in the archive.
10647
11020
        old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10648
11021
        ;;
10649
 
      gcx)
 
11022
      gcx*)
10650
11023
        # Green Hills C++ Compiler
10651
11024
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10652
11025
 
10684
11057
        ;;
10685
11058
    esac
10686
11059
    ;;
10687
 
  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10688
 
    archive_cmds_need_lc_CXX=no
 
11060
  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
11061
    no_undefined_flag_CXX='${wl}-z,text'
 
11062
    archive_cmds_need_lc_CXX=no
 
11063
    hardcode_shlibpath_var_CXX=no
 
11064
    runpath_var='LD_RUN_PATH'
 
11065
 
 
11066
    case $cc_basename in
 
11067
      CC*)
 
11068
        archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11069
        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11070
        ;;
 
11071
      *)
 
11072
        archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11073
        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11074
        ;;
 
11075
    esac
 
11076
    ;;
 
11077
  sysv5* | sco3.2v5* | sco5v6*)
 
11078
    # Note: We can NOT use -z defs as we might desire, because we do not
 
11079
    # link with -lc, and that would cause any symbols used from libc to
 
11080
    # always be unresolved, which means just about no library would
 
11081
    # ever link correctly.  If we're not using GNU ld we use -z text
 
11082
    # though, which does catch some bad symbols but isn't as heavy-handed
 
11083
    # as -z defs.
 
11084
    # For security reasons, it is highly recommended that you always
 
11085
    # use absolute paths for naming shared libraries, and exclude the
 
11086
    # DT_RUNPATH tag from executables and libraries.  But doing so
 
11087
    # requires that you compile everything twice, which is a pain.
 
11088
    # So that behaviour is only enabled if SCOABSPATH is set to a
 
11089
    # non-empty value in the environment.  Most likely only useful for
 
11090
    # creating official distributions of packages.
 
11091
    # This is a hack until libtool officially supports absolute path
 
11092
    # names for shared libraries.
 
11093
    no_undefined_flag_CXX='${wl}-z,text'
 
11094
    allow_undefined_flag_CXX='${wl}-z,nodefs'
 
11095
    archive_cmds_need_lc_CXX=no
 
11096
    hardcode_shlibpath_var_CXX=no
 
11097
    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
11098
    hardcode_libdir_separator_CXX=':'
 
11099
    link_all_deplibs_CXX=yes
 
11100
    export_dynamic_flag_spec_CXX='${wl}-Bexport'
 
11101
    runpath_var='LD_RUN_PATH'
 
11102
 
 
11103
    case $cc_basename in
 
11104
      CC*)
 
11105
        archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11106
        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11107
        ;;
 
11108
      *)
 
11109
        archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11110
        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11111
        ;;
 
11112
    esac
10689
11113
    ;;
10690
11114
  tandem*)
10691
11115
    case $cc_basename in
10692
 
      NCC)
 
11116
      NCC*)
10693
11117
        # NonStop-UX NCC 3.20
10694
11118
        # FIXME: insert proper C++ library support
10695
11119
        ld_shlibs_CXX=no
10742
11166
  # The `*' in the case matches for architectures that use `case' in
10743
11167
  # $output_verbose_cmd can trigger glob expansion during the loop
10744
11168
  # eval without this substitution.
10745
 
  output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
 
11169
  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
10746
11170
 
10747
11171
  for p in `eval $output_verbose_link_cmd`; do
10748
11172
    case $p in
10818
11242
 
10819
11243
$rm -f confest.$objext
10820
11244
 
 
11245
# PORTME: override above test on systems where it is broken
 
11246
case $host_os in
 
11247
interix3*)
 
11248
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
 
11249
  # hack all around it, let's just trust "g++" to DTRT.
 
11250
  predep_objects_CXX=
 
11251
  postdep_objects_CXX=
 
11252
  postdeps_CXX=
 
11253
  ;;
 
11254
 
 
11255
solaris*)
 
11256
  case $cc_basename in
 
11257
  CC*)
 
11258
    # Adding this requires a known-good setup of shared libraries for
 
11259
    # Sun compiler versions before 5.6, else PIC objects from an old
 
11260
    # archive will be linked into the output, leading to subtle bugs.
 
11261
    postdeps_CXX='-lCstd -lCrun'
 
11262
    ;;
 
11263
  esac
 
11264
  ;;
 
11265
esac
 
11266
 
 
11267
 
10821
11268
case " $postdeps_CXX " in
10822
11269
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
10823
11270
esac
10865
11312
      # DJGPP does not support shared libraries at all
10866
11313
      lt_prog_compiler_pic_CXX=
10867
11314
      ;;
 
11315
    interix3*)
 
11316
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
11317
      # Instead, we relocate shared libraries at runtime.
 
11318
      ;;
10868
11319
    sysv4*MP*)
10869
11320
      if test -d /usr/nec; then
10870
11321
        lt_prog_compiler_pic_CXX=-Kconform_pic
10873
11324
    hpux*)
10874
11325
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10875
11326
      # not for PA HP-UX.
10876
 
      case "$host_cpu" in
 
11327
      case $host_cpu in
10877
11328
      hppa*64*|ia64*)
10878
11329
        ;;
10879
11330
      *)
10898
11349
        ;;
10899
11350
      chorus*)
10900
11351
        case $cc_basename in
10901
 
        cxch68)
 
11352
        cxch68*)
10902
11353
          # Green Hills C++ Compiler
10903
11354
          # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
10904
11355
          ;;
10905
11356
        esac
10906
11357
        ;;
 
11358
       darwin*)
 
11359
         # PIC is the default on this platform
 
11360
         # Common symbols not allowed in MH_DYLIB files
 
11361
         case $cc_basename in
 
11362
           xlc*)
 
11363
           lt_prog_compiler_pic_CXX='-qnocommon'
 
11364
           lt_prog_compiler_wl_CXX='-Wl,'
 
11365
           ;;
 
11366
         esac
 
11367
       ;;
10907
11368
      dgux*)
10908
11369
        case $cc_basename in
10909
 
          ec++)
 
11370
          ec++*)
10910
11371
            lt_prog_compiler_pic_CXX='-KPIC'
10911
11372
            ;;
10912
 
          ghcx)
 
11373
          ghcx*)
10913
11374
            # Green Hills C++ Compiler
10914
11375
            lt_prog_compiler_pic_CXX='-pic'
10915
11376
            ;;
10917
11378
            ;;
10918
11379
        esac
10919
11380
        ;;
10920
 
      freebsd* | kfreebsd*-gnu)
 
11381
      freebsd* | kfreebsd*-gnu | dragonfly*)
10921
11382
        # FreeBSD uses GNU C++
10922
11383
        ;;
10923
11384
      hpux9* | hpux10* | hpux11*)
10924
11385
        case $cc_basename in
10925
 
          CC)
 
11386
          CC*)
10926
11387
            lt_prog_compiler_wl_CXX='-Wl,'
10927
 
            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
 
11388
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
10928
11389
            if test "$host_cpu" != ia64; then
10929
11390
              lt_prog_compiler_pic_CXX='+Z'
10930
11391
            fi
10931
11392
            ;;
10932
 
          aCC)
 
11393
          aCC*)
10933
11394
            lt_prog_compiler_wl_CXX='-Wl,'
10934
 
            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10935
 
            case "$host_cpu" in
 
11395
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
 
11396
            case $host_cpu in
10936
11397
            hppa*64*|ia64*)
10937
11398
              # +Z the default
10938
11399
              ;;
10945
11406
            ;;
10946
11407
        esac
10947
11408
        ;;
 
11409
      interix*)
 
11410
        # This is c89, which is MS Visual C++ (no shared libs)
 
11411
        # Anyone wants to do a port?
 
11412
        ;;
10948
11413
      irix5* | irix6* | nonstopux*)
10949
11414
        case $cc_basename in
10950
 
          CC)
 
11415
          CC*)
10951
11416
            lt_prog_compiler_wl_CXX='-Wl,'
10952
11417
            lt_prog_compiler_static_CXX='-non_shared'
10953
11418
            # CC pic flag -KPIC is the default.
10958
11423
        ;;
10959
11424
      linux*)
10960
11425
        case $cc_basename in
10961
 
          KCC)
 
11426
          KCC*)
10962
11427
            # KAI C++ Compiler
10963
11428
            lt_prog_compiler_wl_CXX='--backend -Wl,'
10964
11429
            lt_prog_compiler_pic_CXX='-fPIC'
10965
11430
            ;;
10966
 
          icpc)
 
11431
          icpc* | ecpc*)
10967
11432
            # Intel C++
10968
11433
            lt_prog_compiler_wl_CXX='-Wl,'
10969
11434
            lt_prog_compiler_pic_CXX='-KPIC'
10970
11435
            lt_prog_compiler_static_CXX='-static'
10971
11436
            ;;
10972
 
          cxx)
 
11437
          pgCC*)
 
11438
            # Portland Group C++ compiler.
 
11439
            lt_prog_compiler_wl_CXX='-Wl,'
 
11440
            lt_prog_compiler_pic_CXX='-fpic'
 
11441
            lt_prog_compiler_static_CXX='-Bstatic'
 
11442
            ;;
 
11443
          cxx*)
10973
11444
            # Compaq C++
10974
11445
            # Make sure the PIC flag is empty.  It appears that all Alpha
10975
11446
            # Linux and Compaq Tru64 Unix objects are PIC.
10986
11457
        ;;
10987
11458
      mvs*)
10988
11459
        case $cc_basename in
10989
 
          cxx)
 
11460
          cxx*)
10990
11461
            lt_prog_compiler_pic_CXX='-W c,exportall'
10991
11462
            ;;
10992
11463
          *)
10997
11468
        ;;
10998
11469
      osf3* | osf4* | osf5*)
10999
11470
        case $cc_basename in
11000
 
          KCC)
 
11471
          KCC*)
11001
11472
            lt_prog_compiler_wl_CXX='--backend -Wl,'
11002
11473
            ;;
11003
 
          RCC)
 
11474
          RCC*)
11004
11475
            # Rational C++ 2.4.1
11005
11476
            lt_prog_compiler_pic_CXX='-pic'
11006
11477
            ;;
11007
 
          cxx)
 
11478
          cxx*)
11008
11479
            # Digital/Compaq C++
11009
11480
            lt_prog_compiler_wl_CXX='-Wl,'
11010
11481
            # Make sure the PIC flag is empty.  It appears that all Alpha
11018
11489
        ;;
11019
11490
      psos*)
11020
11491
        ;;
11021
 
      sco*)
11022
 
        case $cc_basename in
11023
 
          CC)
11024
 
            lt_prog_compiler_pic_CXX='-fPIC'
11025
 
            ;;
11026
 
          *)
11027
 
            ;;
11028
 
        esac
11029
 
        ;;
11030
11492
      solaris*)
11031
11493
        case $cc_basename in
11032
 
          CC)
 
11494
          CC*)
11033
11495
            # Sun C++ 4.2, 5.x and Centerline C++
11034
11496
            lt_prog_compiler_pic_CXX='-KPIC'
11035
11497
            lt_prog_compiler_static_CXX='-Bstatic'
11036
11498
            lt_prog_compiler_wl_CXX='-Qoption ld '
11037
11499
            ;;
11038
 
          gcx)
 
11500
          gcx*)
11039
11501
            # Green Hills C++ Compiler
11040
11502
            lt_prog_compiler_pic_CXX='-PIC'
11041
11503
            ;;
11045
11507
        ;;
11046
11508
      sunos4*)
11047
11509
        case $cc_basename in
11048
 
          CC)
 
11510
          CC*)
11049
11511
            # Sun C++ 4.x
11050
11512
            lt_prog_compiler_pic_CXX='-pic'
11051
11513
            lt_prog_compiler_static_CXX='-Bstatic'
11052
11514
            ;;
11053
 
          lcc)
 
11515
          lcc*)
11054
11516
            # Lucid
11055
11517
            lt_prog_compiler_pic_CXX='-pic'
11056
11518
            ;;
11060
11522
        ;;
11061
11523
      tandem*)
11062
11524
        case $cc_basename in
11063
 
          NCC)
 
11525
          NCC*)
11064
11526
            # NonStop-UX NCC 3.20
11065
11527
            lt_prog_compiler_pic_CXX='-KPIC'
11066
11528
            ;;
11068
11530
            ;;
11069
11531
        esac
11070
11532
        ;;
11071
 
      unixware*)
 
11533
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
11534
        case $cc_basename in
 
11535
          CC*)
 
11536
            lt_prog_compiler_wl_CXX='-Wl,'
 
11537
            lt_prog_compiler_pic_CXX='-KPIC'
 
11538
            lt_prog_compiler_static_CXX='-Bstatic'
 
11539
            ;;
 
11540
        esac
11072
11541
        ;;
11073
11542
      vxworks*)
11074
11543
        ;;
11101
11570
   # with a dollar sign (not a hyphen), so the echo should work correctly.
11102
11571
   # The option is referenced via a variable to avoid confusing sed.
11103
11572
   lt_compile=`echo "$ac_compile" | $SED \
11104
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
11573
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11105
11574
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11106
11575
   -e 's:$: $lt_compiler_flag:'`
11107
 
   (eval echo "\"\$as_me:11107: $lt_compile\"" >&5)
 
11576
   (eval echo "\"\$as_me:11576: $lt_compile\"" >&5)
11108
11577
   (eval "$lt_compile" 2>conftest.err)
11109
11578
   ac_status=$?
11110
11579
   cat conftest.err >&5
11111
 
   echo "$as_me:11111: \$? = $ac_status" >&5
 
11580
   echo "$as_me:11580: \$? = $ac_status" >&5
11112
11581
   if (exit $ac_status) && test -s "$ac_outfile"; then
11113
11582
     # The compiler can only warn and ignore the option if not recognized
11114
 
     # So say no if there are warnings
11115
 
     if test ! -s conftest.err; then
 
11583
     # So say no if there are warnings other than the usual output.
 
11584
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
11585
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
11586
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11116
11587
       lt_prog_compiler_pic_works_CXX=yes
11117
11588
     fi
11118
11589
   fi
11133
11604
fi
11134
11605
 
11135
11606
fi
11136
 
case "$host_os" in
 
11607
case $host_os in
11137
11608
  # For platforms which do not support PIC, -DPIC is meaningless:
11138
11609
  *djgpp*)
11139
11610
    lt_prog_compiler_pic_CXX=
11143
11614
    ;;
11144
11615
esac
11145
11616
 
 
11617
#
 
11618
# Check to make sure the static flag actually works.
 
11619
#
 
11620
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
 
11621
echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
11622
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
 
11623
if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
 
11624
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11625
else
 
11626
  lt_prog_compiler_static_works_CXX=no
 
11627
   save_LDFLAGS="$LDFLAGS"
 
11628
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
11629
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
11630
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
11631
     # The linker can only warn and ignore the option if not recognized
 
11632
     # So say no if there are warnings
 
11633
     if test -s conftest.err; then
 
11634
       # Append any errors to the config.log.
 
11635
       cat conftest.err 1>&5
 
11636
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
11637
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
11638
       if diff conftest.exp conftest.er2 >/dev/null; then
 
11639
         lt_prog_compiler_static_works_CXX=yes
 
11640
       fi
 
11641
     else
 
11642
       lt_prog_compiler_static_works_CXX=yes
 
11643
     fi
 
11644
   fi
 
11645
   $rm conftest*
 
11646
   LDFLAGS="$save_LDFLAGS"
 
11647
 
 
11648
fi
 
11649
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
 
11650
echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
 
11651
 
 
11652
if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
 
11653
    :
 
11654
else
 
11655
    lt_prog_compiler_static_CXX=
 
11656
fi
 
11657
 
 
11658
 
11146
11659
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11147
11660
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11148
11661
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11161
11674
   # Note that $ac_compile itself does not contain backslashes and begins
11162
11675
   # with a dollar sign (not a hyphen), so the echo should work correctly.
11163
11676
   lt_compile=`echo "$ac_compile" | $SED \
11164
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
11677
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11165
11678
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11166
11679
   -e 's:$: $lt_compiler_flag:'`
11167
 
   (eval echo "\"\$as_me:11167: $lt_compile\"" >&5)
 
11680
   (eval echo "\"\$as_me:11680: $lt_compile\"" >&5)
11168
11681
   (eval "$lt_compile" 2>out/conftest.err)
11169
11682
   ac_status=$?
11170
11683
   cat out/conftest.err >&5
11171
 
   echo "$as_me:11171: \$? = $ac_status" >&5
 
11684
   echo "$as_me:11684: \$? = $ac_status" >&5
11172
11685
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11173
11686
   then
11174
11687
     # The compiler can only warn and ignore the option if not recognized
11175
11688
     # So say no if there are warnings
11176
 
     if test ! -s out/conftest.err; then
 
11689
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
11690
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
11691
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11177
11692
       lt_cv_prog_compiler_c_o_CXX=yes
11178
11693
     fi
11179
11694
   fi
11180
 
   chmod u+w .
 
11695
   chmod u+w . 2>&5
11181
11696
   $rm conftest*
11182
11697
   # SGI C++ compiler will create directory out/ii_files/ for
11183
11698
   # template instantiation
11232
11747
    export_symbols_cmds_CXX="$ltdll_cmds"
11233
11748
  ;;
11234
11749
  cygwin* | mingw*)
11235
 
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
11750
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11236
11751
  ;;
11237
11752
  *)
11238
11753
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11243
11758
echo "${ECHO_T}$ld_shlibs_CXX" >&6
11244
11759
test "$ld_shlibs_CXX" = no && can_build_shared=no
11245
11760
 
11246
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11247
 
if test "$GCC" = yes; then
11248
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11249
 
fi
11250
 
 
11251
11761
#
11252
11762
# Do we need to explicitly link libc?
11253
11763
#
11280
11790
        libobjs=conftest.$ac_objext
11281
11791
        deplibs=
11282
11792
        wl=$lt_prog_compiler_wl_CXX
 
11793
        pic_flag=$lt_prog_compiler_pic_CXX
11283
11794
        compiler_flags=-v
11284
11795
        linker_flags=-v
11285
11796
        verstring=
11315
11826
library_names_spec=
11316
11827
libname_spec='lib$name'
11317
11828
soname_spec=
11318
 
shrext=".so"
 
11829
shrext_cmds=".so"
11319
11830
postinstall_cmds=
11320
11831
postuninstall_cmds=
11321
11832
finish_cmds=
11412
11923
  shlibpath_var=LIBRARY_PATH
11413
11924
  ;;
11414
11925
 
11415
 
bsdi4*)
 
11926
bsdi[45]*)
11416
11927
  version_type=linux
11417
11928
  need_version=no
11418
11929
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11428
11939
 
11429
11940
cygwin* | mingw* | pw32*)
11430
11941
  version_type=windows
11431
 
  shrext=".dll"
 
11942
  shrext_cmds=".dll"
11432
11943
  need_version=no
11433
11944
  need_lib_prefix=no
11434
11945
 
11440
11951
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11441
11952
      dldir=$destdir/`dirname \$dlpath`~
11442
11953
      test -d \$dldir || mkdir -p \$dldir~
11443
 
      $install_prog $dir/$dlname \$dldir/$dlname'
 
11954
      $install_prog $dir/$dlname \$dldir/$dlname~
 
11955
      chmod a+x \$dldir/$dlname'
11444
11956
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11445
11957
      dlpath=$dir/\$dldll~
11446
11958
       $rm \$dlpath'
11470
11982
      ;;
11471
11983
    pw32*)
11472
11984
      # pw32 DLLs use 'pw' prefix rather than 'lib'
11473
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
11985
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11474
11986
      ;;
11475
11987
    esac
11476
11988
    ;;
11477
11989
 
11478
 
  linux*)
11479
 
    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
11480
 
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11481
 
      supports_anon_versioning=no
11482
 
      case `$LD -v 2>/dev/null` in
11483
 
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11484
 
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11485
 
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11486
 
        *\ 2.11.*) ;; # other 2.11 versions
11487
 
        *) supports_anon_versioning=yes ;;
11488
 
      esac
11489
 
      if test $supports_anon_versioning = yes; then
11490
 
        archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
11491
 
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11492
 
$echo "local: *; };" >> $output_objdir/$libname.ver~
11493
 
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11494
 
      else
11495
 
        $archive_expsym_cmds="$archive_cmds"
11496
 
      fi
11497
 
    else
11498
 
      ld_shlibs=no
11499
 
    fi
11500
 
    ;;
11501
 
 
11502
11990
  *)
11503
11991
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11504
11992
    ;;
11517
12005
  soname_spec='${libname}${release}${major}$shared_ext'
11518
12006
  shlibpath_overrides_runpath=yes
11519
12007
  shlibpath_var=DYLD_LIBRARY_PATH
11520
 
  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
 
12008
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11521
12009
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11522
12010
  if test "$GCC" = yes; then
11523
12011
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
11552
12040
  dynamic_linker='GNU ld.so'
11553
12041
  ;;
11554
12042
 
11555
 
freebsd*)
11556
 
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
12043
freebsd* | dragonfly*)
 
12044
  # DragonFly does not have aout.  When/if they implement a new
 
12045
  # versioning mechanism, adjust this.
 
12046
  if test -x /usr/bin/objformat; then
 
12047
    objformat=`/usr/bin/objformat`
 
12048
  else
 
12049
    case $host_os in
 
12050
    freebsd[123]*) objformat=aout ;;
 
12051
    *) objformat=elf ;;
 
12052
    esac
 
12053
  fi
11557
12054
  version_type=freebsd-$objformat
11558
12055
  case $version_type in
11559
12056
    freebsd-elf*)
11571
12068
  freebsd2*)
11572
12069
    shlibpath_overrides_runpath=yes
11573
12070
    ;;
11574
 
  freebsd3.01* | freebsdelf3.01*)
 
12071
  freebsd3.[01]* | freebsdelf3.[01]*)
11575
12072
    shlibpath_overrides_runpath=yes
11576
12073
    hardcode_into_libs=yes
11577
12074
    ;;
11578
 
  *) # from 3.2 on
 
12075
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
12076
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11579
12077
    shlibpath_overrides_runpath=no
11580
12078
    hardcode_into_libs=yes
11581
12079
    ;;
 
12080
  freebsd*) # from 4.6 on
 
12081
    shlibpath_overrides_runpath=yes
 
12082
    hardcode_into_libs=yes
 
12083
    ;;
11582
12084
  esac
11583
12085
  ;;
11584
12086
 
11598
12100
  version_type=sunos
11599
12101
  need_lib_prefix=no
11600
12102
  need_version=no
11601
 
  case "$host_cpu" in
 
12103
  case $host_cpu in
11602
12104
  ia64*)
11603
 
    shrext='.so'
 
12105
    shrext_cmds='.so'
11604
12106
    hardcode_into_libs=yes
11605
12107
    dynamic_linker="$host_os dld.so"
11606
12108
    shlibpath_var=LD_LIBRARY_PATH
11615
12117
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11616
12118
    ;;
11617
12119
   hppa*64*)
11618
 
     shrext='.sl'
 
12120
     shrext_cmds='.sl'
11619
12121
     hardcode_into_libs=yes
11620
12122
     dynamic_linker="$host_os dld.sl"
11621
12123
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11626
12128
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11627
12129
     ;;
11628
12130
   *)
11629
 
    shrext='.sl'
 
12131
    shrext_cmds='.sl'
11630
12132
    dynamic_linker="$host_os dld.sl"
11631
12133
    shlibpath_var=SHLIB_PATH
11632
12134
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11638
12140
  postinstall_cmds='chmod 555 $lib'
11639
12141
  ;;
11640
12142
 
 
12143
interix3*)
 
12144
  version_type=linux
 
12145
  need_lib_prefix=no
 
12146
  need_version=no
 
12147
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
12148
  soname_spec='${libname}${release}${shared_ext}$major'
 
12149
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
12150
  shlibpath_var=LD_LIBRARY_PATH
 
12151
  shlibpath_overrides_runpath=no
 
12152
  hardcode_into_libs=yes
 
12153
  ;;
 
12154
 
11641
12155
irix5* | irix6* | nonstopux*)
11642
12156
  case $host_os in
11643
12157
    nonstopux*) version_type=nonstopux ;;
11695
12209
  # before this can be enabled.
11696
12210
  hardcode_into_libs=yes
11697
12211
 
11698
 
  # Append ld.so.conf contents to the search path
11699
 
  if test -f /etc/ld.so.conf; then
11700
 
    ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
11701
 
    sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
11702
 
  fi
11703
 
 
11704
 
  case $host_cpu:$lt_cv_cc_64bit_output in
11705
 
  powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes)
11706
 
    sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/X11R6/lib64"
11707
 
    sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /usr/X11R6/lib64"
11708
 
    ;;
11709
 
  esac
11710
 
 
11711
 
  # We used to test for /lib/ld.so.1 and disable shared libraries on
11712
 
  # powerpc, because MkLinux only supported shared libraries with the
11713
 
  # GNU dynamic linker.  Since this was broken with cross compilers,
11714
 
  # most powerpc-linux boxes support dynamic linking these days and
11715
 
  # people can always --disable-shared, the test was removed, and we
11716
 
  # assume the GNU/Linux dynamic linker is in use.
11717
 
  dynamic_linker='GNU/Linux ld.so'
11718
 
 
11719
 
  # Find out which ABI we are using (multilib Linux x86_64 hack).
 
12212
  # find out which ABI we are using
11720
12213
  libsuff=
11721
12214
  case "$host_cpu" in
11722
 
  x86_64*)
11723
 
    echo '#line 11723 "configure"' > conftest.$ac_ext
 
12215
  x86_64*|s390x*|powerpc64*)
 
12216
    echo '#line 12216 "configure"' > conftest.$ac_ext
11724
12217
    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11725
12218
  (eval $ac_compile) 2>&5
11726
12219
  ac_status=$?
11729
12222
      case `/usr/bin/file conftest.$ac_objext` in
11730
12223
      *64-bit*)
11731
12224
        libsuff=64
 
12225
        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
11732
12226
        ;;
11733
12227
      esac
11734
12228
    fi
11735
12229
    rm -rf conftest*
11736
12230
    ;;
11737
 
  *)
11738
 
    ;;
11739
12231
  esac
11740
 
  sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
11741
 
  sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
 
12232
 
 
12233
  # Append ld.so.conf contents to the search path
 
12234
  if test -f /etc/ld.so.conf; then
 
12235
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
12236
    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
 
12237
  fi
 
12238
 
 
12239
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
12240
  # powerpc, because MkLinux only supported shared libraries with the
 
12241
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
12242
  # most powerpc-linux boxes support dynamic linking these days and
 
12243
  # people can always --disable-shared, the test was removed, and we
 
12244
  # assume the GNU/Linux dynamic linker is in use.
 
12245
  dynamic_linker='GNU/Linux ld.so'
11742
12246
  ;;
11743
12247
 
11744
12248
knetbsd*-gnu)
11790
12294
 
11791
12295
openbsd*)
11792
12296
  version_type=sunos
 
12297
  sys_lib_dlsearch_path_spec="/usr/lib"
11793
12298
  need_lib_prefix=no
11794
 
  need_version=yes
 
12299
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
12300
  case $host_os in
 
12301
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
12302
    *)                         need_version=no  ;;
 
12303
  esac
11795
12304
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11796
12305
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11797
12306
  shlibpath_var=LD_LIBRARY_PATH
11811
12320
 
11812
12321
os2*)
11813
12322
  libname_spec='$name'
11814
 
  shrext=".dll"
 
12323
  shrext_cmds=".dll"
11815
12324
  need_lib_prefix=no
11816
12325
  library_names_spec='$libname${shared_ext} $libname.a'
11817
12326
  dynamic_linker='OS/2 ld.exe'
11829
12338
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11830
12339
  ;;
11831
12340
 
11832
 
sco3.2v5*)
11833
 
  version_type=osf
11834
 
  soname_spec='${libname}${release}${shared_ext}$major'
11835
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11836
 
  shlibpath_var=LD_LIBRARY_PATH
11837
 
  ;;
11838
 
 
11839
12341
solaris*)
11840
12342
  version_type=linux
11841
12343
  need_lib_prefix=no
11861
12363
  need_version=yes
11862
12364
  ;;
11863
12365
 
11864
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
12366
sysv4 | sysv4.3*)
11865
12367
  version_type=linux
11866
12368
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11867
12369
  soname_spec='${libname}${release}${shared_ext}$major'
11894
12396
  fi
11895
12397
  ;;
11896
12398
 
 
12399
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
12400
  version_type=freebsd-elf
 
12401
  need_lib_prefix=no
 
12402
  need_version=no
 
12403
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
12404
  soname_spec='${libname}${release}${shared_ext}$major'
 
12405
  shlibpath_var=LD_LIBRARY_PATH
 
12406
  hardcode_into_libs=yes
 
12407
  if test "$with_gnu_ld" = yes; then
 
12408
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
12409
    shlibpath_overrides_runpath=no
 
12410
  else
 
12411
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
12412
    shlibpath_overrides_runpath=yes
 
12413
    case $host_os in
 
12414
      sco3.2v5*)
 
12415
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
12416
        ;;
 
12417
    esac
 
12418
  fi
 
12419
  sys_lib_dlsearch_path_spec='/usr/lib'
 
12420
  ;;
 
12421
 
11897
12422
uts4*)
11898
12423
  version_type=linux
11899
12424
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11909
12434
echo "${ECHO_T}$dynamic_linker" >&6
11910
12435
test "$dynamic_linker" = no && can_build_shared=no
11911
12436
 
 
12437
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
12438
if test "$GCC" = yes; then
 
12439
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
12440
fi
 
12441
 
11912
12442
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11913
12443
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11914
12444
hardcode_action_CXX=
11915
12445
if test -n "$hardcode_libdir_flag_spec_CXX" || \
11916
 
   test -n "$runpath_var CXX" || \
11917
 
   test "X$hardcode_automatic_CXX"="Xyes" ; then
 
12446
   test -n "$runpath_var_CXX" || \
 
12447
   test "X$hardcode_automatic_CXX" = "Xyes" ; then
11918
12448
 
11919
12449
  # We can hardcode non-existant directories.
11920
12450
  if test "$hardcode_direct_CXX" != no &&
11946
12476
  enable_fast_install=needless
11947
12477
fi
11948
12478
 
11949
 
striplib=
11950
 
old_striplib=
11951
 
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11952
 
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11953
 
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11954
 
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11955
 
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11956
 
  echo "$as_me:$LINENO: result: yes" >&5
11957
 
echo "${ECHO_T}yes" >&6
11958
 
else
11959
 
# FIXME - insert some real tests, host_os isn't really good enough
11960
 
  case $host_os in
11961
 
   darwin*)
11962
 
       if test -n "$STRIP" ; then
11963
 
         striplib="$STRIP -x"
11964
 
         echo "$as_me:$LINENO: result: yes" >&5
11965
 
echo "${ECHO_T}yes" >&6
11966
 
       else
11967
 
  echo "$as_me:$LINENO: result: no" >&5
11968
 
echo "${ECHO_T}no" >&6
11969
 
fi
11970
 
       ;;
11971
 
   *)
11972
 
  echo "$as_me:$LINENO: result: no" >&5
11973
 
echo "${ECHO_T}no" >&6
11974
 
    ;;
11975
 
  esac
11976
 
fi
11977
 
 
11978
 
if test "x$enable_dlopen" != xyes; then
11979
 
  enable_dlopen=unknown
11980
 
  enable_dlopen_self=unknown
11981
 
  enable_dlopen_self_static=unknown
11982
 
else
11983
 
  lt_cv_dlopen=no
11984
 
  lt_cv_dlopen_libs=
11985
 
 
11986
 
  case $host_os in
11987
 
  beos*)
11988
 
    lt_cv_dlopen="load_add_on"
11989
 
    lt_cv_dlopen_libs=
11990
 
    lt_cv_dlopen_self=yes
11991
 
    ;;
11992
 
 
11993
 
  mingw* | pw32*)
11994
 
    lt_cv_dlopen="LoadLibrary"
11995
 
    lt_cv_dlopen_libs=
11996
 
   ;;
11997
 
 
11998
 
  cygwin*)
11999
 
    lt_cv_dlopen="dlopen"
12000
 
    lt_cv_dlopen_libs=
12001
 
   ;;
12002
 
 
12003
 
  darwin*)
12004
 
  # if libdl is installed we need to link against it
12005
 
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12006
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12007
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12008
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12009
 
else
12010
 
  ac_check_lib_save_LIBS=$LIBS
12011
 
LIBS="-ldl  $LIBS"
12012
 
cat >conftest.$ac_ext <<_ACEOF
12013
 
/* confdefs.h.  */
12014
 
_ACEOF
12015
 
cat confdefs.h >>conftest.$ac_ext
12016
 
cat >>conftest.$ac_ext <<_ACEOF
12017
 
/* end confdefs.h.  */
12018
 
 
12019
 
/* Override any gcc2 internal prototype to avoid an error.  */
12020
 
#ifdef __cplusplus
12021
 
extern "C"
12022
 
#endif
12023
 
/* We use char because int might match the return type of a gcc2
12024
 
   builtin and then its argument prototype would still apply.  */
12025
 
char dlopen ();
12026
 
int
12027
 
main ()
12028
 
{
12029
 
dlopen ();
12030
 
  ;
12031
 
  return 0;
12032
 
}
12033
 
_ACEOF
12034
 
rm -f conftest.$ac_objext conftest$ac_exeext
12035
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12036
 
  (eval $ac_link) 2>conftest.er1
12037
 
  ac_status=$?
12038
 
  grep -v '^ *+' conftest.er1 >conftest.err
12039
 
  rm -f conftest.er1
12040
 
  cat conftest.err >&5
12041
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12042
 
  (exit $ac_status); } &&
12043
 
         { ac_try='test -z "$ac_cxx_werror_flag"
12044
 
                         || test ! -s conftest.err'
12045
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12046
 
  (eval $ac_try) 2>&5
12047
 
  ac_status=$?
12048
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12049
 
  (exit $ac_status); }; } &&
12050
 
         { ac_try='test -s conftest$ac_exeext'
12051
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12052
 
  (eval $ac_try) 2>&5
12053
 
  ac_status=$?
12054
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12055
 
  (exit $ac_status); }; }; then
12056
 
  ac_cv_lib_dl_dlopen=yes
12057
 
else
12058
 
  echo "$as_me: failed program was:" >&5
12059
 
sed 's/^/| /' conftest.$ac_ext >&5
12060
 
 
12061
 
ac_cv_lib_dl_dlopen=no
12062
 
fi
12063
 
rm -f conftest.err conftest.$ac_objext \
12064
 
      conftest$ac_exeext conftest.$ac_ext
12065
 
LIBS=$ac_check_lib_save_LIBS
12066
 
fi
12067
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12068
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12069
 
if test $ac_cv_lib_dl_dlopen = yes; then
12070
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12071
 
else
12072
 
 
12073
 
    lt_cv_dlopen="dyld"
12074
 
    lt_cv_dlopen_libs=
12075
 
    lt_cv_dlopen_self=yes
12076
 
 
12077
 
fi
12078
 
 
12079
 
   ;;
12080
 
 
12081
 
  *)
12082
 
    echo "$as_me:$LINENO: checking for shl_load" >&5
12083
 
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12084
 
if test "${ac_cv_func_shl_load+set}" = set; then
12085
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12086
 
else
12087
 
  cat >conftest.$ac_ext <<_ACEOF
12088
 
/* confdefs.h.  */
12089
 
_ACEOF
12090
 
cat confdefs.h >>conftest.$ac_ext
12091
 
cat >>conftest.$ac_ext <<_ACEOF
12092
 
/* end confdefs.h.  */
12093
 
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12094
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12095
 
#define shl_load innocuous_shl_load
12096
 
 
12097
 
/* System header to define __stub macros and hopefully few prototypes,
12098
 
    which can conflict with char shl_load (); below.
12099
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12100
 
    <limits.h> exists even on freestanding compilers.  */
12101
 
 
12102
 
#ifdef __STDC__
12103
 
# include <limits.h>
12104
 
#else
12105
 
# include <assert.h>
12106
 
#endif
12107
 
 
12108
 
#undef shl_load
12109
 
 
12110
 
/* Override any gcc2 internal prototype to avoid an error.  */
12111
 
#ifdef __cplusplus
12112
 
extern "C"
12113
 
{
12114
 
#endif
12115
 
/* We use char because int might match the return type of a gcc2
12116
 
   builtin and then its argument prototype would still apply.  */
12117
 
char shl_load ();
12118
 
/* The GNU C library defines this for functions which it implements
12119
 
    to always fail with ENOSYS.  Some functions are actually named
12120
 
    something starting with __ and the normal name is an alias.  */
12121
 
#if defined (__stub_shl_load) || defined (__stub___shl_load)
12122
 
choke me
12123
 
#else
12124
 
char (*f) () = shl_load;
12125
 
#endif
12126
 
#ifdef __cplusplus
12127
 
}
12128
 
#endif
12129
 
 
12130
 
int
12131
 
main ()
12132
 
{
12133
 
return f != shl_load;
12134
 
  ;
12135
 
  return 0;
12136
 
}
12137
 
_ACEOF
12138
 
rm -f conftest.$ac_objext conftest$ac_exeext
12139
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12140
 
  (eval $ac_link) 2>conftest.er1
12141
 
  ac_status=$?
12142
 
  grep -v '^ *+' conftest.er1 >conftest.err
12143
 
  rm -f conftest.er1
12144
 
  cat conftest.err >&5
12145
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12146
 
  (exit $ac_status); } &&
12147
 
         { ac_try='test -z "$ac_cxx_werror_flag"
12148
 
                         || test ! -s conftest.err'
12149
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12150
 
  (eval $ac_try) 2>&5
12151
 
  ac_status=$?
12152
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12153
 
  (exit $ac_status); }; } &&
12154
 
         { ac_try='test -s conftest$ac_exeext'
12155
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12156
 
  (eval $ac_try) 2>&5
12157
 
  ac_status=$?
12158
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12159
 
  (exit $ac_status); }; }; then
12160
 
  ac_cv_func_shl_load=yes
12161
 
else
12162
 
  echo "$as_me: failed program was:" >&5
12163
 
sed 's/^/| /' conftest.$ac_ext >&5
12164
 
 
12165
 
ac_cv_func_shl_load=no
12166
 
fi
12167
 
rm -f conftest.err conftest.$ac_objext \
12168
 
      conftest$ac_exeext conftest.$ac_ext
12169
 
fi
12170
 
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12171
 
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12172
 
if test $ac_cv_func_shl_load = yes; then
12173
 
  lt_cv_dlopen="shl_load"
12174
 
else
12175
 
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12176
 
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12177
 
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12178
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12179
 
else
12180
 
  ac_check_lib_save_LIBS=$LIBS
12181
 
LIBS="-ldld  $LIBS"
12182
 
cat >conftest.$ac_ext <<_ACEOF
12183
 
/* confdefs.h.  */
12184
 
_ACEOF
12185
 
cat confdefs.h >>conftest.$ac_ext
12186
 
cat >>conftest.$ac_ext <<_ACEOF
12187
 
/* end confdefs.h.  */
12188
 
 
12189
 
/* Override any gcc2 internal prototype to avoid an error.  */
12190
 
#ifdef __cplusplus
12191
 
extern "C"
12192
 
#endif
12193
 
/* We use char because int might match the return type of a gcc2
12194
 
   builtin and then its argument prototype would still apply.  */
12195
 
char shl_load ();
12196
 
int
12197
 
main ()
12198
 
{
12199
 
shl_load ();
12200
 
  ;
12201
 
  return 0;
12202
 
}
12203
 
_ACEOF
12204
 
rm -f conftest.$ac_objext conftest$ac_exeext
12205
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12206
 
  (eval $ac_link) 2>conftest.er1
12207
 
  ac_status=$?
12208
 
  grep -v '^ *+' conftest.er1 >conftest.err
12209
 
  rm -f conftest.er1
12210
 
  cat conftest.err >&5
12211
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12212
 
  (exit $ac_status); } &&
12213
 
         { ac_try='test -z "$ac_cxx_werror_flag"
12214
 
                         || test ! -s conftest.err'
12215
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12216
 
  (eval $ac_try) 2>&5
12217
 
  ac_status=$?
12218
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12219
 
  (exit $ac_status); }; } &&
12220
 
         { ac_try='test -s conftest$ac_exeext'
12221
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12222
 
  (eval $ac_try) 2>&5
12223
 
  ac_status=$?
12224
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12225
 
  (exit $ac_status); }; }; then
12226
 
  ac_cv_lib_dld_shl_load=yes
12227
 
else
12228
 
  echo "$as_me: failed program was:" >&5
12229
 
sed 's/^/| /' conftest.$ac_ext >&5
12230
 
 
12231
 
ac_cv_lib_dld_shl_load=no
12232
 
fi
12233
 
rm -f conftest.err conftest.$ac_objext \
12234
 
      conftest$ac_exeext conftest.$ac_ext
12235
 
LIBS=$ac_check_lib_save_LIBS
12236
 
fi
12237
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12238
 
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12239
 
if test $ac_cv_lib_dld_shl_load = yes; then
12240
 
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12241
 
else
12242
 
  echo "$as_me:$LINENO: checking for dlopen" >&5
12243
 
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12244
 
if test "${ac_cv_func_dlopen+set}" = set; then
12245
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12246
 
else
12247
 
  cat >conftest.$ac_ext <<_ACEOF
12248
 
/* confdefs.h.  */
12249
 
_ACEOF
12250
 
cat confdefs.h >>conftest.$ac_ext
12251
 
cat >>conftest.$ac_ext <<_ACEOF
12252
 
/* end confdefs.h.  */
12253
 
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12254
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12255
 
#define dlopen innocuous_dlopen
12256
 
 
12257
 
/* System header to define __stub macros and hopefully few prototypes,
12258
 
    which can conflict with char dlopen (); below.
12259
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12260
 
    <limits.h> exists even on freestanding compilers.  */
12261
 
 
12262
 
#ifdef __STDC__
12263
 
# include <limits.h>
12264
 
#else
12265
 
# include <assert.h>
12266
 
#endif
12267
 
 
12268
 
#undef dlopen
12269
 
 
12270
 
/* Override any gcc2 internal prototype to avoid an error.  */
12271
 
#ifdef __cplusplus
12272
 
extern "C"
12273
 
{
12274
 
#endif
12275
 
/* We use char because int might match the return type of a gcc2
12276
 
   builtin and then its argument prototype would still apply.  */
12277
 
char dlopen ();
12278
 
/* The GNU C library defines this for functions which it implements
12279
 
    to always fail with ENOSYS.  Some functions are actually named
12280
 
    something starting with __ and the normal name is an alias.  */
12281
 
#if defined (__stub_dlopen) || defined (__stub___dlopen)
12282
 
choke me
12283
 
#else
12284
 
char (*f) () = dlopen;
12285
 
#endif
12286
 
#ifdef __cplusplus
12287
 
}
12288
 
#endif
12289
 
 
12290
 
int
12291
 
main ()
12292
 
{
12293
 
return f != dlopen;
12294
 
  ;
12295
 
  return 0;
12296
 
}
12297
 
_ACEOF
12298
 
rm -f conftest.$ac_objext conftest$ac_exeext
12299
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12300
 
  (eval $ac_link) 2>conftest.er1
12301
 
  ac_status=$?
12302
 
  grep -v '^ *+' conftest.er1 >conftest.err
12303
 
  rm -f conftest.er1
12304
 
  cat conftest.err >&5
12305
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12306
 
  (exit $ac_status); } &&
12307
 
         { ac_try='test -z "$ac_cxx_werror_flag"
12308
 
                         || test ! -s conftest.err'
12309
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12310
 
  (eval $ac_try) 2>&5
12311
 
  ac_status=$?
12312
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12313
 
  (exit $ac_status); }; } &&
12314
 
         { ac_try='test -s conftest$ac_exeext'
12315
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12316
 
  (eval $ac_try) 2>&5
12317
 
  ac_status=$?
12318
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12319
 
  (exit $ac_status); }; }; then
12320
 
  ac_cv_func_dlopen=yes
12321
 
else
12322
 
  echo "$as_me: failed program was:" >&5
12323
 
sed 's/^/| /' conftest.$ac_ext >&5
12324
 
 
12325
 
ac_cv_func_dlopen=no
12326
 
fi
12327
 
rm -f conftest.err conftest.$ac_objext \
12328
 
      conftest$ac_exeext conftest.$ac_ext
12329
 
fi
12330
 
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12331
 
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12332
 
if test $ac_cv_func_dlopen = yes; then
12333
 
  lt_cv_dlopen="dlopen"
12334
 
else
12335
 
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12336
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12337
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12338
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12339
 
else
12340
 
  ac_check_lib_save_LIBS=$LIBS
12341
 
LIBS="-ldl  $LIBS"
12342
 
cat >conftest.$ac_ext <<_ACEOF
12343
 
/* confdefs.h.  */
12344
 
_ACEOF
12345
 
cat confdefs.h >>conftest.$ac_ext
12346
 
cat >>conftest.$ac_ext <<_ACEOF
12347
 
/* end confdefs.h.  */
12348
 
 
12349
 
/* Override any gcc2 internal prototype to avoid an error.  */
12350
 
#ifdef __cplusplus
12351
 
extern "C"
12352
 
#endif
12353
 
/* We use char because int might match the return type of a gcc2
12354
 
   builtin and then its argument prototype would still apply.  */
12355
 
char dlopen ();
12356
 
int
12357
 
main ()
12358
 
{
12359
 
dlopen ();
12360
 
  ;
12361
 
  return 0;
12362
 
}
12363
 
_ACEOF
12364
 
rm -f conftest.$ac_objext conftest$ac_exeext
12365
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12366
 
  (eval $ac_link) 2>conftest.er1
12367
 
  ac_status=$?
12368
 
  grep -v '^ *+' conftest.er1 >conftest.err
12369
 
  rm -f conftest.er1
12370
 
  cat conftest.err >&5
12371
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12372
 
  (exit $ac_status); } &&
12373
 
         { ac_try='test -z "$ac_cxx_werror_flag"
12374
 
                         || test ! -s conftest.err'
12375
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12376
 
  (eval $ac_try) 2>&5
12377
 
  ac_status=$?
12378
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12379
 
  (exit $ac_status); }; } &&
12380
 
         { ac_try='test -s conftest$ac_exeext'
12381
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12382
 
  (eval $ac_try) 2>&5
12383
 
  ac_status=$?
12384
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12385
 
  (exit $ac_status); }; }; then
12386
 
  ac_cv_lib_dl_dlopen=yes
12387
 
else
12388
 
  echo "$as_me: failed program was:" >&5
12389
 
sed 's/^/| /' conftest.$ac_ext >&5
12390
 
 
12391
 
ac_cv_lib_dl_dlopen=no
12392
 
fi
12393
 
rm -f conftest.err conftest.$ac_objext \
12394
 
      conftest$ac_exeext conftest.$ac_ext
12395
 
LIBS=$ac_check_lib_save_LIBS
12396
 
fi
12397
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12398
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12399
 
if test $ac_cv_lib_dl_dlopen = yes; then
12400
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12401
 
else
12402
 
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12403
 
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12404
 
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12405
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12406
 
else
12407
 
  ac_check_lib_save_LIBS=$LIBS
12408
 
LIBS="-lsvld  $LIBS"
12409
 
cat >conftest.$ac_ext <<_ACEOF
12410
 
/* confdefs.h.  */
12411
 
_ACEOF
12412
 
cat confdefs.h >>conftest.$ac_ext
12413
 
cat >>conftest.$ac_ext <<_ACEOF
12414
 
/* end confdefs.h.  */
12415
 
 
12416
 
/* Override any gcc2 internal prototype to avoid an error.  */
12417
 
#ifdef __cplusplus
12418
 
extern "C"
12419
 
#endif
12420
 
/* We use char because int might match the return type of a gcc2
12421
 
   builtin and then its argument prototype would still apply.  */
12422
 
char dlopen ();
12423
 
int
12424
 
main ()
12425
 
{
12426
 
dlopen ();
12427
 
  ;
12428
 
  return 0;
12429
 
}
12430
 
_ACEOF
12431
 
rm -f conftest.$ac_objext conftest$ac_exeext
12432
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12433
 
  (eval $ac_link) 2>conftest.er1
12434
 
  ac_status=$?
12435
 
  grep -v '^ *+' conftest.er1 >conftest.err
12436
 
  rm -f conftest.er1
12437
 
  cat conftest.err >&5
12438
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12439
 
  (exit $ac_status); } &&
12440
 
         { ac_try='test -z "$ac_cxx_werror_flag"
12441
 
                         || test ! -s conftest.err'
12442
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12443
 
  (eval $ac_try) 2>&5
12444
 
  ac_status=$?
12445
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12446
 
  (exit $ac_status); }; } &&
12447
 
         { ac_try='test -s conftest$ac_exeext'
12448
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12449
 
  (eval $ac_try) 2>&5
12450
 
  ac_status=$?
12451
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12452
 
  (exit $ac_status); }; }; then
12453
 
  ac_cv_lib_svld_dlopen=yes
12454
 
else
12455
 
  echo "$as_me: failed program was:" >&5
12456
 
sed 's/^/| /' conftest.$ac_ext >&5
12457
 
 
12458
 
ac_cv_lib_svld_dlopen=no
12459
 
fi
12460
 
rm -f conftest.err conftest.$ac_objext \
12461
 
      conftest$ac_exeext conftest.$ac_ext
12462
 
LIBS=$ac_check_lib_save_LIBS
12463
 
fi
12464
 
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12465
 
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12466
 
if test $ac_cv_lib_svld_dlopen = yes; then
12467
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12468
 
else
12469
 
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12470
 
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12471
 
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12472
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12473
 
else
12474
 
  ac_check_lib_save_LIBS=$LIBS
12475
 
LIBS="-ldld  $LIBS"
12476
 
cat >conftest.$ac_ext <<_ACEOF
12477
 
/* confdefs.h.  */
12478
 
_ACEOF
12479
 
cat confdefs.h >>conftest.$ac_ext
12480
 
cat >>conftest.$ac_ext <<_ACEOF
12481
 
/* end confdefs.h.  */
12482
 
 
12483
 
/* Override any gcc2 internal prototype to avoid an error.  */
12484
 
#ifdef __cplusplus
12485
 
extern "C"
12486
 
#endif
12487
 
/* We use char because int might match the return type of a gcc2
12488
 
   builtin and then its argument prototype would still apply.  */
12489
 
char dld_link ();
12490
 
int
12491
 
main ()
12492
 
{
12493
 
dld_link ();
12494
 
  ;
12495
 
  return 0;
12496
 
}
12497
 
_ACEOF
12498
 
rm -f conftest.$ac_objext conftest$ac_exeext
12499
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12500
 
  (eval $ac_link) 2>conftest.er1
12501
 
  ac_status=$?
12502
 
  grep -v '^ *+' conftest.er1 >conftest.err
12503
 
  rm -f conftest.er1
12504
 
  cat conftest.err >&5
12505
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12506
 
  (exit $ac_status); } &&
12507
 
         { ac_try='test -z "$ac_cxx_werror_flag"
12508
 
                         || test ! -s conftest.err'
12509
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12510
 
  (eval $ac_try) 2>&5
12511
 
  ac_status=$?
12512
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12513
 
  (exit $ac_status); }; } &&
12514
 
         { ac_try='test -s conftest$ac_exeext'
12515
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12516
 
  (eval $ac_try) 2>&5
12517
 
  ac_status=$?
12518
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12519
 
  (exit $ac_status); }; }; then
12520
 
  ac_cv_lib_dld_dld_link=yes
12521
 
else
12522
 
  echo "$as_me: failed program was:" >&5
12523
 
sed 's/^/| /' conftest.$ac_ext >&5
12524
 
 
12525
 
ac_cv_lib_dld_dld_link=no
12526
 
fi
12527
 
rm -f conftest.err conftest.$ac_objext \
12528
 
      conftest$ac_exeext conftest.$ac_ext
12529
 
LIBS=$ac_check_lib_save_LIBS
12530
 
fi
12531
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12532
 
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12533
 
if test $ac_cv_lib_dld_dld_link = yes; then
12534
 
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12535
 
fi
12536
 
 
12537
 
 
12538
 
fi
12539
 
 
12540
 
 
12541
 
fi
12542
 
 
12543
 
 
12544
 
fi
12545
 
 
12546
 
 
12547
 
fi
12548
 
 
12549
 
 
12550
 
fi
12551
 
 
12552
 
    ;;
12553
 
  esac
12554
 
 
12555
 
  if test "x$lt_cv_dlopen" != xno; then
12556
 
    enable_dlopen=yes
12557
 
  else
12558
 
    enable_dlopen=no
12559
 
  fi
12560
 
 
12561
 
  case $lt_cv_dlopen in
12562
 
  dlopen)
12563
 
    save_CPPFLAGS="$CPPFLAGS"
12564
 
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12565
 
 
12566
 
    save_LDFLAGS="$LDFLAGS"
12567
 
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12568
 
 
12569
 
    save_LIBS="$LIBS"
12570
 
    LIBS="$lt_cv_dlopen_libs $LIBS"
12571
 
 
12572
 
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12573
 
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12574
 
if test "${lt_cv_dlopen_self+set}" = set; then
12575
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12576
 
else
12577
 
          if test "$cross_compiling" = yes; then :
12578
 
  lt_cv_dlopen_self=cross
12579
 
else
12580
 
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12581
 
  lt_status=$lt_dlunknown
12582
 
  cat > conftest.$ac_ext <<EOF
12583
 
#line 12583 "configure"
12584
 
#include "confdefs.h"
12585
 
 
12586
 
#if HAVE_DLFCN_H
12587
 
#include <dlfcn.h>
12588
 
#endif
12589
 
 
12590
 
#include <stdio.h>
12591
 
 
12592
 
#ifdef RTLD_GLOBAL
12593
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
12594
 
#else
12595
 
#  ifdef DL_GLOBAL
12596
 
#    define LT_DLGLOBAL         DL_GLOBAL
12597
 
#  else
12598
 
#    define LT_DLGLOBAL         0
12599
 
#  endif
12600
 
#endif
12601
 
 
12602
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12603
 
   find out it does not work in some platform. */
12604
 
#ifndef LT_DLLAZY_OR_NOW
12605
 
#  ifdef RTLD_LAZY
12606
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12607
 
#  else
12608
 
#    ifdef DL_LAZY
12609
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
12610
 
#    else
12611
 
#      ifdef RTLD_NOW
12612
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
12613
 
#      else
12614
 
#        ifdef DL_NOW
12615
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
12616
 
#        else
12617
 
#          define LT_DLLAZY_OR_NOW      0
12618
 
#        endif
12619
 
#      endif
12620
 
#    endif
12621
 
#  endif
12622
 
#endif
12623
 
 
12624
 
#ifdef __cplusplus
12625
 
extern "C" void exit (int);
12626
 
#endif
12627
 
 
12628
 
void fnord() { int i=42;}
12629
 
int main ()
12630
 
{
12631
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12632
 
  int status = $lt_dlunknown;
12633
 
 
12634
 
  if (self)
12635
 
    {
12636
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12637
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12638
 
      /* dlclose (self); */
12639
 
    }
12640
 
 
12641
 
    exit (status);
12642
 
}
12643
 
EOF
12644
 
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12645
 
  (eval $ac_link) 2>&5
12646
 
  ac_status=$?
12647
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12648
 
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12649
 
    (./conftest; exit; ) 2>/dev/null
12650
 
    lt_status=$?
12651
 
    case x$lt_status in
12652
 
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12653
 
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12654
 
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12655
 
    esac
12656
 
  else :
12657
 
    # compilation failed
12658
 
    lt_cv_dlopen_self=no
12659
 
  fi
12660
 
fi
12661
 
rm -fr conftest*
12662
 
 
12663
 
 
12664
 
fi
12665
 
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12666
 
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12667
 
 
12668
 
    if test "x$lt_cv_dlopen_self" = xyes; then
12669
 
      LDFLAGS="$LDFLAGS $link_static_flag"
12670
 
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12671
 
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12672
 
if test "${lt_cv_dlopen_self_static+set}" = set; then
12673
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12674
 
else
12675
 
          if test "$cross_compiling" = yes; then :
12676
 
  lt_cv_dlopen_self_static=cross
12677
 
else
12678
 
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12679
 
  lt_status=$lt_dlunknown
12680
 
  cat > conftest.$ac_ext <<EOF
12681
 
#line 12681 "configure"
12682
 
#include "confdefs.h"
12683
 
 
12684
 
#if HAVE_DLFCN_H
12685
 
#include <dlfcn.h>
12686
 
#endif
12687
 
 
12688
 
#include <stdio.h>
12689
 
 
12690
 
#ifdef RTLD_GLOBAL
12691
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
12692
 
#else
12693
 
#  ifdef DL_GLOBAL
12694
 
#    define LT_DLGLOBAL         DL_GLOBAL
12695
 
#  else
12696
 
#    define LT_DLGLOBAL         0
12697
 
#  endif
12698
 
#endif
12699
 
 
12700
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12701
 
   find out it does not work in some platform. */
12702
 
#ifndef LT_DLLAZY_OR_NOW
12703
 
#  ifdef RTLD_LAZY
12704
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12705
 
#  else
12706
 
#    ifdef DL_LAZY
12707
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
12708
 
#    else
12709
 
#      ifdef RTLD_NOW
12710
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
12711
 
#      else
12712
 
#        ifdef DL_NOW
12713
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
12714
 
#        else
12715
 
#          define LT_DLLAZY_OR_NOW      0
12716
 
#        endif
12717
 
#      endif
12718
 
#    endif
12719
 
#  endif
12720
 
#endif
12721
 
 
12722
 
#ifdef __cplusplus
12723
 
extern "C" void exit (int);
12724
 
#endif
12725
 
 
12726
 
void fnord() { int i=42;}
12727
 
int main ()
12728
 
{
12729
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12730
 
  int status = $lt_dlunknown;
12731
 
 
12732
 
  if (self)
12733
 
    {
12734
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12735
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12736
 
      /* dlclose (self); */
12737
 
    }
12738
 
 
12739
 
    exit (status);
12740
 
}
12741
 
EOF
12742
 
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12743
 
  (eval $ac_link) 2>&5
12744
 
  ac_status=$?
12745
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12746
 
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12747
 
    (./conftest; exit; ) 2>/dev/null
12748
 
    lt_status=$?
12749
 
    case x$lt_status in
12750
 
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12751
 
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12752
 
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12753
 
    esac
12754
 
  else :
12755
 
    # compilation failed
12756
 
    lt_cv_dlopen_self_static=no
12757
 
  fi
12758
 
fi
12759
 
rm -fr conftest*
12760
 
 
12761
 
 
12762
 
fi
12763
 
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12764
 
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12765
 
    fi
12766
 
 
12767
 
    CPPFLAGS="$save_CPPFLAGS"
12768
 
    LDFLAGS="$save_LDFLAGS"
12769
 
    LIBS="$save_LIBS"
12770
 
    ;;
12771
 
  esac
12772
 
 
12773
 
  case $lt_cv_dlopen_self in
12774
 
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12775
 
  *) enable_dlopen_self=unknown ;;
12776
 
  esac
12777
 
 
12778
 
  case $lt_cv_dlopen_self_static in
12779
 
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12780
 
  *) enable_dlopen_self_static=unknown ;;
12781
 
  esac
12782
 
fi
12783
 
 
12784
12479
 
12785
12480
# The else clause should only fire when bootstrapping the
12786
12481
# libtool distribution, otherwise you forgot to ship ltmain.sh
12795
12490
  # Now quote all the things that may contain metacharacters while being
12796
12491
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
12797
12492
  # variables and quote the copies for generation of the libtool script.
12798
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
12493
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12799
12494
    SED SHELL STRIP \
12800
12495
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12801
12496
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12896
12591
# The host system.
12897
12592
host_alias=$host_alias
12898
12593
host=$host
 
12594
host_os=$host_os
 
12595
 
 
12596
# The build system.
 
12597
build_alias=$build_alias
 
12598
build=$build
 
12599
build_os=$build_os
12899
12600
 
12900
12601
# An echo program that does not interpret backslashes.
12901
12602
echo=$lt_echo
12907
12608
# A C compiler.
12908
12609
LTCC=$lt_LTCC
12909
12610
 
 
12611
# LTCC compiler flags.
 
12612
LTCFLAGS=$lt_LTCFLAGS
 
12613
 
12910
12614
# A language-specific compiler.
12911
12615
CC=$lt_compiler_CXX
12912
12616
 
12957
12661
libext="$libext"
12958
12662
 
12959
12663
# Shared library suffix (normally ".so").
12960
 
shrext='$shrext'
 
12664
shrext_cmds='$shrext_cmds'
12961
12665
 
12962
12666
# Executable file suffix (normally "").
12963
12667
exeext="$exeext"
12972
12676
# Does compiler simultaneously support -c and -o options?
12973
12677
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12974
12678
 
12975
 
# Must we lock files when doing compilation ?
 
12679
# Must we lock files when doing compilation?
12976
12680
need_locks=$lt_need_locks
12977
12681
 
12978
12682
# Do we need the lib prefix for modules?
13249
12953
# If no C compiler was specified, use CC.
13250
12954
LTCC=${LTCC-"$CC"}
13251
12955
 
 
12956
# If no C compiler flags were specified, use CFLAGS.
 
12957
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
12958
 
13252
12959
# Allow CC to be a program name with arguments.
13253
12960
compiler=$CC
13254
12961
 
13255
12962
 
 
12963
# save warnings/boilerplate of simple test code
 
12964
ac_outfile=conftest.$ac_objext
 
12965
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
12966
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
12967
_lt_compiler_boilerplate=`cat conftest.err`
 
12968
$rm conftest*
 
12969
 
 
12970
ac_outfile=conftest.$ac_objext
 
12971
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
12972
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
12973
_lt_linker_boilerplate=`cat conftest.err`
 
12974
$rm conftest*
 
12975
 
 
12976
 
13256
12977
# Allow CC to be a program name with arguments.
13257
12978
lt_save_CC="$CC"
13258
12979
CC=${F77-"f77"}
13259
12980
compiler=$CC
13260
12981
compiler_F77=$CC
13261
 
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
 
12982
for cc_temp in $compiler""; do
 
12983
  case $cc_temp in
 
12984
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
12985
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
12986
    \-*) ;;
 
12987
    *) break;;
 
12988
  esac
 
12989
done
 
12990
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
12991
 
13262
12992
 
13263
12993
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13264
12994
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13271
13001
 
13272
13002
# On AIX, shared libraries and static libraries use the same namespace, and
13273
13003
# are all built from PIC.
13274
 
case "$host_os" in
 
13004
case $host_os in
13275
13005
aix3*)
13276
13006
  test "$enable_shared" = yes && enable_static=no
13277
13007
  if test -n "$RANLIB"; then
13279
13009
    postinstall_cmds='$RANLIB $lib'
13280
13010
  fi
13281
13011
  ;;
13282
 
aix4*)
13283
 
  test "$enable_shared" = yes && enable_static=no
 
13012
aix4* | aix5*)
 
13013
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
13014
    test "$enable_shared" = yes && enable_static=no
 
13015
  fi
13284
13016
  ;;
13285
13017
esac
13286
13018
echo "$as_me:$LINENO: result: $enable_shared" >&5
13293
13025
echo "$as_me:$LINENO: result: $enable_static" >&5
13294
13026
echo "${ECHO_T}$enable_static" >&6
13295
13027
 
13296
 
test "$ld_shlibs_F77" = no && can_build_shared=no
13297
 
 
13298
13028
GCC_F77="$G77"
13299
13029
LD_F77="$LD"
13300
13030
 
13341
13071
      lt_prog_compiler_pic_F77='-fno-common'
13342
13072
      ;;
13343
13073
 
 
13074
    interix3*)
 
13075
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
13076
      # Instead, we relocate shared libraries at runtime.
 
13077
      ;;
 
13078
 
13344
13079
    msdosdjgpp*)
13345
13080
      # Just because we use GCC doesn't mean we suddenly get shared libraries
13346
13081
      # on systems that don't support them.
13357
13092
    hpux*)
13358
13093
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13359
13094
      # not for PA HP-UX.
13360
 
      case "$host_cpu" in
 
13095
      case $host_cpu in
13361
13096
      hppa*64*|ia64*)
13362
13097
        # +Z the default
13363
13098
        ;;
13383
13118
        lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13384
13119
      fi
13385
13120
      ;;
 
13121
      darwin*)
 
13122
        # PIC is the default on this platform
 
13123
        # Common symbols not allowed in MH_DYLIB files
 
13124
       case $cc_basename in
 
13125
         xlc*)
 
13126
         lt_prog_compiler_pic_F77='-qnocommon'
 
13127
         lt_prog_compiler_wl_F77='-Wl,'
 
13128
         ;;
 
13129
       esac
 
13130
       ;;
13386
13131
 
13387
13132
    mingw* | pw32* | os2*)
13388
13133
      # This hack is so that the source file can tell whether it is being
13394
13139
      lt_prog_compiler_wl_F77='-Wl,'
13395
13140
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13396
13141
      # not for PA HP-UX.
13397
 
      case "$host_cpu" in
 
13142
      case $host_cpu in
13398
13143
      hppa*64*|ia64*)
13399
13144
        # +Z the default
13400
13145
        ;;
13418
13163
      ;;
13419
13164
 
13420
13165
    linux*)
13421
 
      case $CC in
 
13166
      case $cc_basename in
13422
13167
      icc* | ecc*)
13423
13168
        lt_prog_compiler_wl_F77='-Wl,'
13424
13169
        lt_prog_compiler_pic_F77='-KPIC'
13425
13170
        lt_prog_compiler_static_F77='-static'
13426
13171
        ;;
 
13172
      pgcc* | pgf77* | pgf90* | pgf95*)
 
13173
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
13174
        # which looks to be a dead project)
 
13175
        lt_prog_compiler_wl_F77='-Wl,'
 
13176
        lt_prog_compiler_pic_F77='-fpic'
 
13177
        lt_prog_compiler_static_F77='-Bstatic'
 
13178
        ;;
13427
13179
      ccc*)
13428
13180
        lt_prog_compiler_wl_F77='-Wl,'
13429
13181
        # All Alpha code is PIC.
13438
13190
      lt_prog_compiler_static_F77='-non_shared'
13439
13191
      ;;
13440
13192
 
13441
 
    sco3.2v5*)
13442
 
      lt_prog_compiler_pic_F77='-Kpic'
13443
 
      lt_prog_compiler_static_F77='-dn'
13444
 
      ;;
13445
 
 
13446
13193
    solaris*)
13447
 
      lt_prog_compiler_wl_F77='-Wl,'
13448
13194
      lt_prog_compiler_pic_F77='-KPIC'
13449
13195
      lt_prog_compiler_static_F77='-Bstatic'
 
13196
      case $cc_basename in
 
13197
      f77* | f90* | f95*)
 
13198
        lt_prog_compiler_wl_F77='-Qoption ld ';;
 
13199
      *)
 
13200
        lt_prog_compiler_wl_F77='-Wl,';;
 
13201
      esac
13450
13202
      ;;
13451
13203
 
13452
13204
    sunos4*)
13455
13207
      lt_prog_compiler_static_F77='-Bstatic'
13456
13208
      ;;
13457
13209
 
13458
 
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
13210
    sysv4 | sysv4.2uw2* | sysv4.3*)
13459
13211
      lt_prog_compiler_wl_F77='-Wl,'
13460
13212
      lt_prog_compiler_pic_F77='-KPIC'
13461
13213
      lt_prog_compiler_static_F77='-Bstatic'
13468
13220
      fi
13469
13221
      ;;
13470
13222
 
 
13223
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
13224
      lt_prog_compiler_wl_F77='-Wl,'
 
13225
      lt_prog_compiler_pic_F77='-KPIC'
 
13226
      lt_prog_compiler_static_F77='-Bstatic'
 
13227
      ;;
 
13228
 
 
13229
    unicos*)
 
13230
      lt_prog_compiler_wl_F77='-Wl,'
 
13231
      lt_prog_compiler_can_build_shared_F77=no
 
13232
      ;;
 
13233
 
13471
13234
    uts4*)
13472
13235
      lt_prog_compiler_pic_F77='-pic'
13473
13236
      lt_prog_compiler_static_F77='-Bstatic'
13502
13265
   # with a dollar sign (not a hyphen), so the echo should work correctly.
13503
13266
   # The option is referenced via a variable to avoid confusing sed.
13504
13267
   lt_compile=`echo "$ac_compile" | $SED \
13505
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
13268
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13506
13269
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13507
13270
   -e 's:$: $lt_compiler_flag:'`
13508
 
   (eval echo "\"\$as_me:13508: $lt_compile\"" >&5)
 
13271
   (eval echo "\"\$as_me:13271: $lt_compile\"" >&5)
13509
13272
   (eval "$lt_compile" 2>conftest.err)
13510
13273
   ac_status=$?
13511
13274
   cat conftest.err >&5
13512
 
   echo "$as_me:13512: \$? = $ac_status" >&5
 
13275
   echo "$as_me:13275: \$? = $ac_status" >&5
13513
13276
   if (exit $ac_status) && test -s "$ac_outfile"; then
13514
13277
     # The compiler can only warn and ignore the option if not recognized
13515
 
     # So say no if there are warnings
13516
 
     if test ! -s conftest.err; then
 
13278
     # So say no if there are warnings other than the usual output.
 
13279
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
13280
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
13281
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13517
13282
       lt_prog_compiler_pic_works_F77=yes
13518
13283
     fi
13519
13284
   fi
13534
13299
fi
13535
13300
 
13536
13301
fi
13537
 
case "$host_os" in
 
13302
case $host_os in
13538
13303
  # For platforms which do not support PIC, -DPIC is meaningless:
13539
13304
  *djgpp*)
13540
13305
    lt_prog_compiler_pic_F77=
13544
13309
    ;;
13545
13310
esac
13546
13311
 
 
13312
#
 
13313
# Check to make sure the static flag actually works.
 
13314
#
 
13315
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
 
13316
echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
13317
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
 
13318
if test "${lt_prog_compiler_static_works_F77+set}" = set; then
 
13319
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13320
else
 
13321
  lt_prog_compiler_static_works_F77=no
 
13322
   save_LDFLAGS="$LDFLAGS"
 
13323
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
13324
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
13325
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
13326
     # The linker can only warn and ignore the option if not recognized
 
13327
     # So say no if there are warnings
 
13328
     if test -s conftest.err; then
 
13329
       # Append any errors to the config.log.
 
13330
       cat conftest.err 1>&5
 
13331
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
13332
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
13333
       if diff conftest.exp conftest.er2 >/dev/null; then
 
13334
         lt_prog_compiler_static_works_F77=yes
 
13335
       fi
 
13336
     else
 
13337
       lt_prog_compiler_static_works_F77=yes
 
13338
     fi
 
13339
   fi
 
13340
   $rm conftest*
 
13341
   LDFLAGS="$save_LDFLAGS"
 
13342
 
 
13343
fi
 
13344
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
 
13345
echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
 
13346
 
 
13347
if test x"$lt_prog_compiler_static_works_F77" = xyes; then
 
13348
    :
 
13349
else
 
13350
    lt_prog_compiler_static_F77=
 
13351
fi
 
13352
 
 
13353
 
13547
13354
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13548
13355
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13549
13356
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13562
13369
   # Note that $ac_compile itself does not contain backslashes and begins
13563
13370
   # with a dollar sign (not a hyphen), so the echo should work correctly.
13564
13371
   lt_compile=`echo "$ac_compile" | $SED \
13565
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
13372
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13566
13373
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13567
13374
   -e 's:$: $lt_compiler_flag:'`
13568
 
   (eval echo "\"\$as_me:13568: $lt_compile\"" >&5)
 
13375
   (eval echo "\"\$as_me:13375: $lt_compile\"" >&5)
13569
13376
   (eval "$lt_compile" 2>out/conftest.err)
13570
13377
   ac_status=$?
13571
13378
   cat out/conftest.err >&5
13572
 
   echo "$as_me:13572: \$? = $ac_status" >&5
 
13379
   echo "$as_me:13379: \$? = $ac_status" >&5
13573
13380
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13574
13381
   then
13575
13382
     # The compiler can only warn and ignore the option if not recognized
13576
13383
     # So say no if there are warnings
13577
 
     if test ! -s out/conftest.err; then
 
13384
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
13385
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
13386
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13578
13387
       lt_cv_prog_compiler_c_o_F77=yes
13579
13388
     fi
13580
13389
   fi
13581
 
   chmod u+w .
 
13390
   chmod u+w . 2>&5
13582
13391
   $rm conftest*
13583
13392
   # SGI C++ compiler will create directory out/ii_files/ for
13584
13393
   # template instantiation
13654
13463
  # rely on this symbol name, it's probably fine to never include it in
13655
13464
  # preloaded symbol tables.
13656
13465
  extract_expsyms_cmds=
 
13466
  # Just being paranoid about ensuring that cc_basename is set.
 
13467
  for cc_temp in $compiler""; do
 
13468
  case $cc_temp in
 
13469
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
13470
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
13471
    \-*) ;;
 
13472
    *) break;;
 
13473
  esac
 
13474
done
 
13475
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13657
13476
 
13658
13477
  case $host_os in
13659
13478
  cygwin* | mingw* | pw32*)
13664
13483
      with_gnu_ld=no
13665
13484
    fi
13666
13485
    ;;
 
13486
  interix*)
 
13487
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
13488
    with_gnu_ld=yes
 
13489
    ;;
13667
13490
  openbsd*)
13668
13491
    with_gnu_ld=no
13669
13492
    ;;
13674
13497
    # If archive_cmds runs LD, not CC, wlarc should be empty
13675
13498
    wlarc='${wl}'
13676
13499
 
 
13500
    # Set some defaults for GNU ld with shared library support. These
 
13501
    # are reset later if shared libraries are not supported. Putting them
 
13502
    # here allows them to be overridden if necessary.
 
13503
    runpath_var=LD_RUN_PATH
 
13504
    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
 
13505
    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
 
13506
    # ancient GNU ld didn't support --whole-archive et. al.
 
13507
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
13508
        whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
13509
      else
 
13510
        whole_archive_flag_spec_F77=
 
13511
    fi
 
13512
    supports_anon_versioning=no
 
13513
    case `$LD -v 2>/dev/null` in
 
13514
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
13515
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
13516
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
13517
      *\ 2.11.*) ;; # other 2.11 versions
 
13518
      *) supports_anon_versioning=yes ;;
 
13519
    esac
 
13520
 
13677
13521
    # See if GNU ld supports shared libraries.
13678
13522
    case $host_os in
13679
13523
    aix3* | aix4* | aix5*)
13724
13568
      allow_undefined_flag_F77=unsupported
13725
13569
      always_export_symbols_F77=no
13726
13570
      enable_shared_with_static_runtimes_F77=yes
13727
 
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
13571
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13728
13572
 
13729
13573
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13730
 
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
13574
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13731
13575
        # If the export-symbols file already is a .def file (1st line
13732
13576
        # is EXPORTS), use it as is; otherwise, prepend...
13733
13577
        archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13736
13580
          echo EXPORTS > $output_objdir/$soname.def;
13737
13581
          cat $export_symbols >> $output_objdir/$soname.def;
13738
13582
        fi~
13739
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
13740
 
      else
13741
 
        ld_shlibs=no
 
13583
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
13584
      else
 
13585
        ld_shlibs_F77=no
 
13586
      fi
 
13587
      ;;
 
13588
 
 
13589
    interix3*)
 
13590
      hardcode_direct_F77=no
 
13591
      hardcode_shlibpath_var_F77=no
 
13592
      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
13593
      export_dynamic_flag_spec_F77='${wl}-E'
 
13594
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
13595
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
13596
      # default) and relocated if they conflict, which is a slow very memory
 
13597
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
13598
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
13599
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
13600
      archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
13601
      archive_expsym_cmds_F77='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'
 
13602
      ;;
 
13603
 
 
13604
    linux*)
 
13605
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
13606
        tmp_addflag=
 
13607
        case $cc_basename,$host_cpu in
 
13608
        pgcc*)                          # Portland Group C compiler
 
13609
          whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
13610
          tmp_addflag=' $pic_flag'
 
13611
          ;;
 
13612
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
13613
          whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
13614
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
13615
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
13616
          tmp_addflag=' -i_dynamic' ;;
 
13617
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
13618
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
13619
        ifc* | ifort*)                  # Intel Fortran compiler
 
13620
          tmp_addflag=' -nofor_main' ;;
 
13621
        esac
 
13622
        archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13623
 
 
13624
        if test $supports_anon_versioning = yes; then
 
13625
          archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
 
13626
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
13627
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
13628
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
13629
        fi
 
13630
      else
 
13631
        ld_shlibs_F77=no
13742
13632
      fi
13743
13633
      ;;
13744
13634
 
13752
13642
      fi
13753
13643
      ;;
13754
13644
 
13755
 
    solaris* | sysv5*)
 
13645
    solaris*)
13756
13646
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13757
13647
        ld_shlibs_F77=no
13758
13648
        cat <<EOF 1>&2
13773
13663
      fi
13774
13664
      ;;
13775
13665
 
 
13666
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
13667
      case `$LD -v 2>&1` in
 
13668
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
13669
        ld_shlibs_F77=no
 
13670
        cat <<_LT_EOF 1>&2
 
13671
 
 
13672
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
13673
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
13674
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
13675
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
13676
*** your PATH or compiler configuration so that the native linker is
 
13677
*** used, and then restart.
 
13678
 
 
13679
_LT_EOF
 
13680
        ;;
 
13681
        *)
 
13682
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
13683
            hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
13684
            archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
13685
            archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
13686
          else
 
13687
            ld_shlibs_F77=no
 
13688
          fi
 
13689
        ;;
 
13690
      esac
 
13691
      ;;
 
13692
 
13776
13693
    sunos4*)
13777
13694
      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13778
13695
      wlarc=
13780
13697
      hardcode_shlibpath_var_F77=no
13781
13698
      ;;
13782
13699
 
13783
 
  linux*)
13784
 
    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
13785
 
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13786
 
        archive_cmds_F77="$tmp_archive_cmds"
13787
 
      supports_anon_versioning=no
13788
 
      case `$LD -v 2>/dev/null` in
13789
 
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13790
 
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13791
 
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13792
 
        *\ 2.11.*) ;; # other 2.11 versions
13793
 
        *) supports_anon_versioning=yes ;;
13794
 
      esac
13795
 
      if test $supports_anon_versioning = yes; then
13796
 
        archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13797
 
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13798
 
$echo "local: *; };" >> $output_objdir/$libname.ver~
13799
 
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13800
 
      else
13801
 
        archive_expsym_cmds_F77="$tmp_archive_cmds"
13802
 
      fi
13803
 
    else
13804
 
      ld_shlibs_F77=no
13805
 
    fi
13806
 
    ;;
13807
 
 
13808
13700
    *)
13809
13701
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13810
13702
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13815
13707
      ;;
13816
13708
    esac
13817
13709
 
13818
 
    if test "$ld_shlibs_F77" = yes; then
13819
 
      runpath_var=LD_RUN_PATH
13820
 
      hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13821
 
      export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13822
 
      # ancient GNU ld didn't support --whole-archive et. al.
13823
 
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13824
 
        whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13825
 
      else
13826
 
        whole_archive_flag_spec_F77=
13827
 
      fi
 
13710
    if test "$ld_shlibs_F77" = no; then
 
13711
      runpath_var=
 
13712
      hardcode_libdir_flag_spec_F77=
 
13713
      export_dynamic_flag_spec_F77=
 
13714
      whole_archive_flag_spec_F77=
13828
13715
    fi
13829
13716
  else
13830
13717
    # PORTME fill in a description of your system's linker (not GNU ld)
13836
13723
      # Note: this linker hardcodes the directories in LIBPATH if there
13837
13724
      # are no directories specified by -L.
13838
13725
      hardcode_minus_L_F77=yes
13839
 
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
13726
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13840
13727
        # Neither direct hardcoding nor static linking is supported with a
13841
13728
        # broken collect2.
13842
13729
        hardcode_direct_F77=unsupported
13870
13757
            break
13871
13758
          fi
13872
13759
          done
 
13760
          ;;
13873
13761
        esac
13874
13762
 
13875
13763
        exp_sym_flag='-bexport'
13888
13776
      link_all_deplibs_F77=yes
13889
13777
 
13890
13778
      if test "$GCC" = yes; then
13891
 
        case $host_os in aix4.012|aix4.012.*)
 
13779
        case $host_os in aix4.[012]|aix4.[012].*)
13892
13780
        # We only want to do this on AIX 4.2 and lower, the check
13893
13781
        # below for broken collect2 doesn't work under 4.3+
13894
13782
          collect2name=`${CC} -print-prog-name=collect2`
13907
13795
          hardcode_libdir_flag_spec_F77='-L$libdir'
13908
13796
          hardcode_libdir_separator_F77=
13909
13797
          fi
 
13798
          ;;
13910
13799
        esac
13911
13800
        shared_flag='-shared'
 
13801
        if test "$aix_use_runtimelinking" = yes; then
 
13802
          shared_flag="$shared_flag "'${wl}-G'
 
13803
        fi
13912
13804
      else
13913
13805
        # not using gcc
13914
13806
        if test "$host_cpu" = ia64; then
13916
13808
        # chokes on -Wl,-G. The following line is correct:
13917
13809
          shared_flag='-G'
13918
13810
        else
13919
 
        if test "$aix_use_runtimelinking" = yes; then
 
13811
          if test "$aix_use_runtimelinking" = yes; then
13920
13812
            shared_flag='${wl}-G'
13921
13813
          else
13922
13814
            shared_flag='${wl}-bM:SRE'
13923
 
        fi
 
13815
          fi
13924
13816
        fi
13925
13817
      fi
13926
13818
 
13975
13867
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13976
13868
 
13977
13869
       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13978
 
        archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
13870
        archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13979
13871
       else
13980
13872
        if test "$host_cpu" = ia64; then
13981
13873
          hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13982
13874
          allow_undefined_flag_F77="-z nodefs"
13983
 
          archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
 
13875
          archive_expsym_cmds_F77="\$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"
13984
13876
        else
13985
13877
         # Determine the default libpath from the value encoded in an empty executable.
13986
13878
         cat >conftest.$ac_ext <<_ACEOF
14030
13922
          # -berok will link without error, but may produce a broken library.
14031
13923
          no_undefined_flag_F77=' ${wl}-bernotok'
14032
13924
          allow_undefined_flag_F77=' ${wl}-berok'
14033
 
          # -bexpall does not export symbols beginning with underscore (_)
14034
 
          always_export_symbols_F77=yes
14035
13925
          # Exported symbols can be pulled into shared objects from archives
14036
 
          whole_archive_flag_spec_F77=' '
 
13926
          whole_archive_flag_spec_F77='$convenience'
14037
13927
          archive_cmds_need_lc_F77=yes
14038
 
          # This is similar to how AIX traditionally builds it's shared libraries.
14039
 
          archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
13928
          # This is similar to how AIX traditionally builds its shared libraries.
 
13929
          archive_expsym_cmds_F77="\$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'
14040
13930
        fi
14041
13931
      fi
14042
13932
      ;;
14049
13939
      ld_shlibs_F77=no
14050
13940
      ;;
14051
13941
 
14052
 
    bsdi4*)
 
13942
    bsdi[45]*)
14053
13943
      export_dynamic_flag_spec_F77=-rdynamic
14054
13944
      ;;
14055
13945
 
14063
13953
      # Tell ltmain to make .lib files, not .a files.
14064
13954
      libext=lib
14065
13955
      # Tell ltmain to make .dll files, not .so files.
14066
 
      shrext=".dll"
 
13956
      shrext_cmds=".dll"
14067
13957
      # FIXME: Setting linknames here is a bad hack.
14068
13958
      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14069
13959
      # The linker will automatically build a .lib file if we build a DLL.
14070
13960
      old_archive_From_new_cmds_F77='true'
14071
13961
      # FIXME: Should let the user specify the lib program.
14072
13962
      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14073
 
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
13963
      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14074
13964
      enable_shared_with_static_runtimes_F77=yes
14075
13965
      ;;
14076
13966
 
14077
13967
    darwin* | rhapsody*)
14078
 
    if test "$GXX" = yes ; then
 
13968
      case $host_os in
 
13969
        rhapsody* | darwin1.[012])
 
13970
         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
 
13971
         ;;
 
13972
       *) # Darwin 1.3 on
 
13973
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
13974
           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
13975
         else
 
13976
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
13977
             10.[012])
 
13978
               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
13979
               ;;
 
13980
             10.*)
 
13981
               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
 
13982
               ;;
 
13983
           esac
 
13984
         fi
 
13985
         ;;
 
13986
      esac
14079
13987
      archive_cmds_need_lc_F77=no
14080
 
      case "$host_os" in
14081
 
      rhapsody* | darwin1.[012])
14082
 
        allow_undefined_flag_F77='-undefined suppress'
14083
 
        ;;
14084
 
      *) # Darwin 1.3 on
14085
 
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14086
 
        allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14087
 
      else
14088
 
        case ${MACOSX_DEPLOYMENT_TARGET} in
14089
 
          10.[012])
14090
 
            allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14091
 
            ;;
14092
 
          10.*)
14093
 
            allow_undefined_flag_F77='-undefined dynamic_lookup'
14094
 
            ;;
14095
 
        esac
14096
 
      fi
14097
 
        ;;
14098
 
      esac
14099
 
        lt_int_apple_cc_single_mod=no
14100
 
        output_verbose_link_cmd='echo'
14101
 
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
14102
 
          lt_int_apple_cc_single_mod=yes
14103
 
        fi
14104
 
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14105
 
          archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14106
 
        else
14107
 
        archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14108
 
      fi
14109
 
      module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14110
 
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14111
 
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14112
 
          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14113
 
        else
14114
 
          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14115
 
        fi
14116
 
          module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14117
13988
      hardcode_direct_F77=no
14118
13989
      hardcode_automatic_F77=yes
14119
13990
      hardcode_shlibpath_var_F77=unsupported
14120
 
      whole_archive_flag_spec_F77='-all_load $convenience'
 
13991
      whole_archive_flag_spec_F77=''
14121
13992
      link_all_deplibs_F77=yes
 
13993
    if test "$GCC" = yes ; then
 
13994
        output_verbose_link_cmd='echo'
 
13995
        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
13996
      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
13997
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
13998
      archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
13999
      module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14122
14000
    else
14123
 
      ld_shlibs_F77=no
 
14001
      case $cc_basename in
 
14002
        xlc*)
 
14003
         output_verbose_link_cmd='echo'
 
14004
         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
14005
         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
14006
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
14007
         archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
14008
          module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
14009
          ;;
 
14010
       *)
 
14011
         ld_shlibs_F77=no
 
14012
          ;;
 
14013
      esac
14124
14014
    fi
14125
14015
      ;;
14126
14016
 
14154
14044
      ;;
14155
14045
 
14156
14046
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14157
 
    freebsd* | kfreebsd*-gnu)
 
14047
    freebsd* | kfreebsd*-gnu | dragonfly*)
14158
14048
      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14159
14049
      hardcode_libdir_flag_spec_F77='-R$libdir'
14160
14050
      hardcode_direct_F77=yes
14177
14067
      export_dynamic_flag_spec_F77='${wl}-E'
14178
14068
      ;;
14179
14069
 
14180
 
    hpux10* | hpux11*)
14181
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14182
 
        case "$host_cpu" in
14183
 
        hppa*64*|ia64*)
 
14070
    hpux10*)
 
14071
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
14072
        archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
14073
      else
 
14074
        archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
14075
      fi
 
14076
      if test "$with_gnu_ld" = no; then
 
14077
        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
14078
        hardcode_libdir_separator_F77=:
 
14079
 
 
14080
        hardcode_direct_F77=yes
 
14081
        export_dynamic_flag_spec_F77='${wl}-E'
 
14082
 
 
14083
        # hardcode_minus_L: Not really in the search PATH,
 
14084
        # but as the default location of the library.
 
14085
        hardcode_minus_L_F77=yes
 
14086
      fi
 
14087
      ;;
 
14088
 
 
14089
    hpux11*)
 
14090
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
14091
        case $host_cpu in
 
14092
        hppa*64*)
14184
14093
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14185
14094
          ;;
 
14095
        ia64*)
 
14096
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
14097
          ;;
14186
14098
        *)
14187
14099
          archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14188
14100
          ;;
14189
14101
        esac
14190
14102
      else
14191
 
        case "$host_cpu" in
14192
 
        hppa*64*|ia64*)
14193
 
          archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14103
        case $host_cpu in
 
14104
        hppa*64*)
 
14105
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14106
          ;;
 
14107
        ia64*)
 
14108
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14194
14109
          ;;
14195
14110
        *)
14196
 
          archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
14111
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14197
14112
          ;;
14198
14113
        esac
14199
14114
      fi
14200
14115
      if test "$with_gnu_ld" = no; then
14201
 
        case "$host_cpu" in
14202
 
        hppa*64*)
14203
 
          hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
14116
        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
14117
        hardcode_libdir_separator_F77=:
 
14118
 
 
14119
        case $host_cpu in
 
14120
        hppa*64*|ia64*)
14204
14121
          hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14205
 
          hardcode_libdir_separator_F77=:
14206
 
          hardcode_direct_F77=no
14207
 
          hardcode_shlibpath_var_F77=no
14208
 
          ;;
14209
 
        ia64*)
14210
 
          hardcode_libdir_flag_spec_F77='-L$libdir'
14211
 
          hardcode_direct_F77=no
14212
 
          hardcode_shlibpath_var_F77=no
14213
 
 
14214
 
          # hardcode_minus_L: Not really in the search PATH,
14215
 
          # but as the default location of the library.
14216
 
          hardcode_minus_L_F77=yes
 
14122
          hardcode_direct_F77=no
 
14123
          hardcode_shlibpath_var_F77=no
14217
14124
          ;;
14218
14125
        *)
14219
 
          hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14220
 
          hardcode_libdir_separator_F77=:
14221
14126
          hardcode_direct_F77=yes
14222
14127
          export_dynamic_flag_spec_F77='${wl}-E'
14223
14128
 
14265
14170
      hardcode_shlibpath_var_F77=no
14266
14171
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14267
14172
        archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
14173
        archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14268
14174
        hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14269
14175
        export_dynamic_flag_spec_F77='${wl}-E'
14270
14176
      else
14310
14216
        allow_undefined_flag_F77=' -expect_unresolved \*'
14311
14217
        archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14312
14218
        archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
14313
 
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
 
14219
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
14314
14220
 
14315
14221
        # Both c and cxx compiler support -rpath directly
14316
14222
        hardcode_libdir_flag_spec_F77='-rpath $libdir'
14318
14224
      hardcode_libdir_separator_F77=:
14319
14225
      ;;
14320
14226
 
14321
 
    sco3.2v5*)
14322
 
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14323
 
      hardcode_shlibpath_var_F77=no
14324
 
      export_dynamic_flag_spec_F77='${wl}-Bexport'
14325
 
      runpath_var=LD_RUN_PATH
14326
 
      hardcode_runpath_var=yes
14327
 
      ;;
14328
 
 
14329
14227
    solaris*)
14330
14228
      no_undefined_flag_F77=' -z text'
14331
14229
      if test "$GCC" = yes; then
 
14230
        wlarc='${wl}'
14332
14231
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14333
14232
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14334
14233
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14335
14234
      else
 
14235
        wlarc=''
14336
14236
        archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14337
14237
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14338
14238
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14341
14241
      hardcode_shlibpath_var_F77=no
14342
14242
      case $host_os in
14343
14243
      solaris2.[0-5] | solaris2.[0-5].*) ;;
14344
 
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14345
 
        whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
 
14244
      *)
 
14245
        # The compiler driver will combine linker options so we
 
14246
        # cannot just pass the convience library names through
 
14247
        # without $wl, iff we do not link with $LD.
 
14248
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
14249
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
14250
        case $wlarc in
 
14251
        '')
 
14252
          whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
 
14253
        *)
 
14254
          whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
 
14255
        esac ;;
14346
14256
      esac
14347
14257
      link_all_deplibs_F77=yes
14348
14258
      ;;
14399
14309
      fi
14400
14310
      ;;
14401
14311
 
14402
 
    sysv4.2uw2*)
14403
 
      archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14404
 
      hardcode_direct_F77=yes
14405
 
      hardcode_minus_L_F77=no
14406
 
      hardcode_shlibpath_var_F77=no
14407
 
      hardcode_runpath_var=yes
14408
 
      runpath_var=LD_RUN_PATH
14409
 
      ;;
14410
 
 
14411
 
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
14412
 
      no_undefined_flag_F77='${wl}-z ${wl}text'
14413
 
      if test "$GCC" = yes; then
14414
 
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14415
 
      else
14416
 
        archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14417
 
      fi
14418
 
      runpath_var='LD_RUN_PATH'
14419
 
      hardcode_shlibpath_var_F77=no
14420
 
      ;;
14421
 
 
14422
 
    sysv5*)
14423
 
      no_undefined_flag_F77=' -z text'
14424
 
      # $CC -shared without GNU ld will not create a library from C++
14425
 
      # object files and a static libstdc++, better avoid it by now
14426
 
      archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14427
 
      archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14428
 
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14429
 
      hardcode_libdir_flag_spec_F77=
14430
 
      hardcode_shlibpath_var_F77=no
14431
 
      runpath_var='LD_RUN_PATH'
 
14312
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
 
14313
      no_undefined_flag_F77='${wl}-z,text'
 
14314
      archive_cmds_need_lc_F77=no
 
14315
      hardcode_shlibpath_var_F77=no
 
14316
      runpath_var='LD_RUN_PATH'
 
14317
 
 
14318
      if test "$GCC" = yes; then
 
14319
        archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14320
        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14321
      else
 
14322
        archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14323
        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14324
      fi
 
14325
      ;;
 
14326
 
 
14327
    sysv5* | sco3.2v5* | sco5v6*)
 
14328
      # Note: We can NOT use -z defs as we might desire, because we do not
 
14329
      # link with -lc, and that would cause any symbols used from libc to
 
14330
      # always be unresolved, which means just about no library would
 
14331
      # ever link correctly.  If we're not using GNU ld we use -z text
 
14332
      # though, which does catch some bad symbols but isn't as heavy-handed
 
14333
      # as -z defs.
 
14334
      no_undefined_flag_F77='${wl}-z,text'
 
14335
      allow_undefined_flag_F77='${wl}-z,nodefs'
 
14336
      archive_cmds_need_lc_F77=no
 
14337
      hardcode_shlibpath_var_F77=no
 
14338
      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
14339
      hardcode_libdir_separator_F77=':'
 
14340
      link_all_deplibs_F77=yes
 
14341
      export_dynamic_flag_spec_F77='${wl}-Bexport'
 
14342
      runpath_var='LD_RUN_PATH'
 
14343
 
 
14344
      if test "$GCC" = yes; then
 
14345
        archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14346
        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14347
      else
 
14348
        archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14349
        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14350
      fi
14432
14351
      ;;
14433
14352
 
14434
14353
    uts4*)
14447
14366
echo "${ECHO_T}$ld_shlibs_F77" >&6
14448
14367
test "$ld_shlibs_F77" = no && can_build_shared=no
14449
14368
 
14450
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14451
 
if test "$GCC" = yes; then
14452
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14453
 
fi
14454
 
 
14455
14369
#
14456
14370
# Do we need to explicitly link libc?
14457
14371
#
14484
14398
        libobjs=conftest.$ac_objext
14485
14399
        deplibs=
14486
14400
        wl=$lt_prog_compiler_wl_F77
 
14401
        pic_flag=$lt_prog_compiler_pic_F77
14487
14402
        compiler_flags=-v
14488
14403
        linker_flags=-v
14489
14404
        verstring=
14519
14434
library_names_spec=
14520
14435
libname_spec='lib$name'
14521
14436
soname_spec=
14522
 
shrext=".so"
 
14437
shrext_cmds=".so"
14523
14438
postinstall_cmds=
14524
14439
postuninstall_cmds=
14525
14440
finish_cmds=
14616
14531
  shlibpath_var=LIBRARY_PATH
14617
14532
  ;;
14618
14533
 
14619
 
bsdi4*)
 
14534
bsdi[45]*)
14620
14535
  version_type=linux
14621
14536
  need_version=no
14622
14537
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14632
14547
 
14633
14548
cygwin* | mingw* | pw32*)
14634
14549
  version_type=windows
14635
 
  shrext=".dll"
 
14550
  shrext_cmds=".dll"
14636
14551
  need_version=no
14637
14552
  need_lib_prefix=no
14638
14553
 
14644
14559
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14645
14560
      dldir=$destdir/`dirname \$dlpath`~
14646
14561
      test -d \$dldir || mkdir -p \$dldir~
14647
 
      $install_prog $dir/$dlname \$dldir/$dlname'
 
14562
      $install_prog $dir/$dlname \$dldir/$dlname~
 
14563
      chmod a+x \$dldir/$dlname'
14648
14564
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14649
14565
      dlpath=$dir/\$dldll~
14650
14566
       $rm \$dlpath'
14674
14590
      ;;
14675
14591
    pw32*)
14676
14592
      # pw32 DLLs use 'pw' prefix rather than 'lib'
14677
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
14593
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14678
14594
      ;;
14679
14595
    esac
14680
14596
    ;;
14681
14597
 
14682
 
  linux*)
14683
 
    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
14684
 
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14685
 
      supports_anon_versioning=no
14686
 
      case `$LD -v 2>/dev/null` in
14687
 
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14688
 
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14689
 
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14690
 
        *\ 2.11.*) ;; # other 2.11 versions
14691
 
        *) supports_anon_versioning=yes ;;
14692
 
      esac
14693
 
      if test $supports_anon_versioning = yes; then
14694
 
        archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
14695
 
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14696
 
$echo "local: *; };" >> $output_objdir/$libname.ver~
14697
 
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14698
 
      else
14699
 
        $archive_expsym_cmds="$archive_cmds"
14700
 
      fi
14701
 
    else
14702
 
      ld_shlibs=no
14703
 
    fi
14704
 
    ;;
14705
 
 
14706
14598
  *)
14707
14599
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14708
14600
    ;;
14721
14613
  soname_spec='${libname}${release}${major}$shared_ext'
14722
14614
  shlibpath_overrides_runpath=yes
14723
14615
  shlibpath_var=DYLD_LIBRARY_PATH
14724
 
  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
 
14616
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14725
14617
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14726
14618
  if test "$GCC" = yes; then
14727
14619
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
14756
14648
  dynamic_linker='GNU ld.so'
14757
14649
  ;;
14758
14650
 
14759
 
freebsd*)
14760
 
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
14651
freebsd* | dragonfly*)
 
14652
  # DragonFly does not have aout.  When/if they implement a new
 
14653
  # versioning mechanism, adjust this.
 
14654
  if test -x /usr/bin/objformat; then
 
14655
    objformat=`/usr/bin/objformat`
 
14656
  else
 
14657
    case $host_os in
 
14658
    freebsd[123]*) objformat=aout ;;
 
14659
    *) objformat=elf ;;
 
14660
    esac
 
14661
  fi
14761
14662
  version_type=freebsd-$objformat
14762
14663
  case $version_type in
14763
14664
    freebsd-elf*)
14775
14676
  freebsd2*)
14776
14677
    shlibpath_overrides_runpath=yes
14777
14678
    ;;
14778
 
  freebsd3.01* | freebsdelf3.01*)
 
14679
  freebsd3.[01]* | freebsdelf3.[01]*)
14779
14680
    shlibpath_overrides_runpath=yes
14780
14681
    hardcode_into_libs=yes
14781
14682
    ;;
14782
 
  *) # from 3.2 on
 
14683
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
14684
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14783
14685
    shlibpath_overrides_runpath=no
14784
14686
    hardcode_into_libs=yes
14785
14687
    ;;
 
14688
  freebsd*) # from 4.6 on
 
14689
    shlibpath_overrides_runpath=yes
 
14690
    hardcode_into_libs=yes
 
14691
    ;;
14786
14692
  esac
14787
14693
  ;;
14788
14694
 
14802
14708
  version_type=sunos
14803
14709
  need_lib_prefix=no
14804
14710
  need_version=no
14805
 
  case "$host_cpu" in
 
14711
  case $host_cpu in
14806
14712
  ia64*)
14807
 
    shrext='.so'
 
14713
    shrext_cmds='.so'
14808
14714
    hardcode_into_libs=yes
14809
14715
    dynamic_linker="$host_os dld.so"
14810
14716
    shlibpath_var=LD_LIBRARY_PATH
14819
14725
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14820
14726
    ;;
14821
14727
   hppa*64*)
14822
 
     shrext='.sl'
 
14728
     shrext_cmds='.sl'
14823
14729
     hardcode_into_libs=yes
14824
14730
     dynamic_linker="$host_os dld.sl"
14825
14731
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14830
14736
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14831
14737
     ;;
14832
14738
   *)
14833
 
    shrext='.sl'
 
14739
    shrext_cmds='.sl'
14834
14740
    dynamic_linker="$host_os dld.sl"
14835
14741
    shlibpath_var=SHLIB_PATH
14836
14742
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14842
14748
  postinstall_cmds='chmod 555 $lib'
14843
14749
  ;;
14844
14750
 
 
14751
interix3*)
 
14752
  version_type=linux
 
14753
  need_lib_prefix=no
 
14754
  need_version=no
 
14755
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
14756
  soname_spec='${libname}${release}${shared_ext}$major'
 
14757
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
14758
  shlibpath_var=LD_LIBRARY_PATH
 
14759
  shlibpath_overrides_runpath=no
 
14760
  hardcode_into_libs=yes
 
14761
  ;;
 
14762
 
14845
14763
irix5* | irix6* | nonstopux*)
14846
14764
  case $host_os in
14847
14765
    nonstopux*) version_type=nonstopux ;;
14899
14817
  # before this can be enabled.
14900
14818
  hardcode_into_libs=yes
14901
14819
 
14902
 
  # Append ld.so.conf contents to the search path
14903
 
  if test -f /etc/ld.so.conf; then
14904
 
    ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
14905
 
    sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
14906
 
  fi
14907
 
 
14908
 
  case $host_cpu:$lt_cv_cc_64bit_output in
14909
 
  powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes)
14910
 
    sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/X11R6/lib64"
14911
 
    sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /usr/X11R6/lib64"
14912
 
    ;;
14913
 
  esac
14914
 
 
14915
 
  # We used to test for /lib/ld.so.1 and disable shared libraries on
14916
 
  # powerpc, because MkLinux only supported shared libraries with the
14917
 
  # GNU dynamic linker.  Since this was broken with cross compilers,
14918
 
  # most powerpc-linux boxes support dynamic linking these days and
14919
 
  # people can always --disable-shared, the test was removed, and we
14920
 
  # assume the GNU/Linux dynamic linker is in use.
14921
 
  dynamic_linker='GNU/Linux ld.so'
14922
 
 
14923
 
  # Find out which ABI we are using (multilib Linux x86_64 hack).
 
14820
  # find out which ABI we are using
14924
14821
  libsuff=
14925
14822
  case "$host_cpu" in
14926
 
  x86_64*)
14927
 
    echo '#line 14927 "configure"' > conftest.$ac_ext
 
14823
  x86_64*|s390x*|powerpc64*)
 
14824
    echo '#line 14824 "configure"' > conftest.$ac_ext
14928
14825
    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14929
14826
  (eval $ac_compile) 2>&5
14930
14827
  ac_status=$?
14933
14830
      case `/usr/bin/file conftest.$ac_objext` in
14934
14831
      *64-bit*)
14935
14832
        libsuff=64
 
14833
        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
14936
14834
        ;;
14937
14835
      esac
14938
14836
    fi
14939
14837
    rm -rf conftest*
14940
14838
    ;;
14941
 
  *)
14942
 
    ;;
14943
14839
  esac
14944
 
  sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
14945
 
  sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
 
14840
 
 
14841
  # Append ld.so.conf contents to the search path
 
14842
  if test -f /etc/ld.so.conf; then
 
14843
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
14844
    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
 
14845
  fi
 
14846
 
 
14847
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
14848
  # powerpc, because MkLinux only supported shared libraries with the
 
14849
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
14850
  # most powerpc-linux boxes support dynamic linking these days and
 
14851
  # people can always --disable-shared, the test was removed, and we
 
14852
  # assume the GNU/Linux dynamic linker is in use.
 
14853
  dynamic_linker='GNU/Linux ld.so'
14946
14854
  ;;
14947
14855
 
14948
14856
knetbsd*-gnu)
14994
14902
 
14995
14903
openbsd*)
14996
14904
  version_type=sunos
 
14905
  sys_lib_dlsearch_path_spec="/usr/lib"
14997
14906
  need_lib_prefix=no
14998
 
  need_version=yes
 
14907
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
14908
  case $host_os in
 
14909
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
14910
    *)                         need_version=no  ;;
 
14911
  esac
14999
14912
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15000
14913
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15001
14914
  shlibpath_var=LD_LIBRARY_PATH
15015
14928
 
15016
14929
os2*)
15017
14930
  libname_spec='$name'
15018
 
  shrext=".dll"
 
14931
  shrext_cmds=".dll"
15019
14932
  need_lib_prefix=no
15020
14933
  library_names_spec='$libname${shared_ext} $libname.a'
15021
14934
  dynamic_linker='OS/2 ld.exe'
15033
14946
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15034
14947
  ;;
15035
14948
 
15036
 
sco3.2v5*)
15037
 
  version_type=osf
15038
 
  soname_spec='${libname}${release}${shared_ext}$major'
15039
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15040
 
  shlibpath_var=LD_LIBRARY_PATH
15041
 
  ;;
15042
 
 
15043
14949
solaris*)
15044
14950
  version_type=linux
15045
14951
  need_lib_prefix=no
15065
14971
  need_version=yes
15066
14972
  ;;
15067
14973
 
15068
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
14974
sysv4 | sysv4.3*)
15069
14975
  version_type=linux
15070
14976
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15071
14977
  soname_spec='${libname}${release}${shared_ext}$major'
15098
15004
  fi
15099
15005
  ;;
15100
15006
 
 
15007
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
15008
  version_type=freebsd-elf
 
15009
  need_lib_prefix=no
 
15010
  need_version=no
 
15011
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
15012
  soname_spec='${libname}${release}${shared_ext}$major'
 
15013
  shlibpath_var=LD_LIBRARY_PATH
 
15014
  hardcode_into_libs=yes
 
15015
  if test "$with_gnu_ld" = yes; then
 
15016
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
15017
    shlibpath_overrides_runpath=no
 
15018
  else
 
15019
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
15020
    shlibpath_overrides_runpath=yes
 
15021
    case $host_os in
 
15022
      sco3.2v5*)
 
15023
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
15024
        ;;
 
15025
    esac
 
15026
  fi
 
15027
  sys_lib_dlsearch_path_spec='/usr/lib'
 
15028
  ;;
 
15029
 
15101
15030
uts4*)
15102
15031
  version_type=linux
15103
15032
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15113
15042
echo "${ECHO_T}$dynamic_linker" >&6
15114
15043
test "$dynamic_linker" = no && can_build_shared=no
15115
15044
 
 
15045
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
15046
if test "$GCC" = yes; then
 
15047
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
15048
fi
 
15049
 
15116
15050
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15117
15051
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15118
15052
hardcode_action_F77=
15119
15053
if test -n "$hardcode_libdir_flag_spec_F77" || \
15120
 
   test -n "$runpath_var F77" || \
15121
 
   test "X$hardcode_automatic_F77"="Xyes" ; then
 
15054
   test -n "$runpath_var_F77" || \
 
15055
   test "X$hardcode_automatic_F77" = "Xyes" ; then
15122
15056
 
15123
15057
  # We can hardcode non-existant directories.
15124
15058
  if test "$hardcode_direct_F77" != no &&
15150
15084
  enable_fast_install=needless
15151
15085
fi
15152
15086
 
15153
 
striplib=
15154
 
old_striplib=
15155
 
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15156
 
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15157
 
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15158
 
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15159
 
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15160
 
  echo "$as_me:$LINENO: result: yes" >&5
15161
 
echo "${ECHO_T}yes" >&6
15162
 
else
15163
 
# FIXME - insert some real tests, host_os isn't really good enough
15164
 
  case $host_os in
15165
 
   darwin*)
15166
 
       if test -n "$STRIP" ; then
15167
 
         striplib="$STRIP -x"
15168
 
         echo "$as_me:$LINENO: result: yes" >&5
15169
 
echo "${ECHO_T}yes" >&6
15170
 
       else
15171
 
  echo "$as_me:$LINENO: result: no" >&5
15172
 
echo "${ECHO_T}no" >&6
15173
 
fi
15174
 
       ;;
15175
 
   *)
15176
 
  echo "$as_me:$LINENO: result: no" >&5
15177
 
echo "${ECHO_T}no" >&6
15178
 
    ;;
15179
 
  esac
15180
 
fi
15181
 
 
15182
 
 
15183
15087
 
15184
15088
# The else clause should only fire when bootstrapping the
15185
15089
# libtool distribution, otherwise you forgot to ship ltmain.sh
15194
15098
  # Now quote all the things that may contain metacharacters while being
15195
15099
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
15196
15100
  # variables and quote the copies for generation of the libtool script.
15197
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
15101
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15198
15102
    SED SHELL STRIP \
15199
15103
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15200
15104
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15295
15199
# The host system.
15296
15200
host_alias=$host_alias
15297
15201
host=$host
 
15202
host_os=$host_os
 
15203
 
 
15204
# The build system.
 
15205
build_alias=$build_alias
 
15206
build=$build
 
15207
build_os=$build_os
15298
15208
 
15299
15209
# An echo program that does not interpret backslashes.
15300
15210
echo=$lt_echo
15306
15216
# A C compiler.
15307
15217
LTCC=$lt_LTCC
15308
15218
 
 
15219
# LTCC compiler flags.
 
15220
LTCFLAGS=$lt_LTCFLAGS
 
15221
 
15309
15222
# A language-specific compiler.
15310
15223
CC=$lt_compiler_F77
15311
15224
 
15356
15269
libext="$libext"
15357
15270
 
15358
15271
# Shared library suffix (normally ".so").
15359
 
shrext='$shrext'
 
15272
shrext_cmds='$shrext_cmds'
15360
15273
 
15361
15274
# Executable file suffix (normally "").
15362
15275
exeext="$exeext"
15371
15284
# Does compiler simultaneously support -c and -o options?
15372
15285
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15373
15286
 
15374
 
# Must we lock files when doing compilation ?
 
15287
# Must we lock files when doing compilation?
15375
15288
need_locks=$lt_need_locks
15376
15289
 
15377
15290
# Do we need the lib prefix for modules?
15609
15522
lt_simple_compile_test_code="class foo {}\n"
15610
15523
 
15611
15524
# Code to be used in simple link tests
15612
 
lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
 
15525
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15613
15526
 
15614
15527
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15615
15528
 
15616
15529
# If no C compiler was specified, use CC.
15617
15530
LTCC=${LTCC-"$CC"}
15618
15531
 
 
15532
# If no C compiler flags were specified, use CFLAGS.
 
15533
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
15534
 
15619
15535
# Allow CC to be a program name with arguments.
15620
15536
compiler=$CC
15621
15537
 
15622
15538
 
 
15539
# save warnings/boilerplate of simple test code
 
15540
ac_outfile=conftest.$ac_objext
 
15541
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
15542
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
15543
_lt_compiler_boilerplate=`cat conftest.err`
 
15544
$rm conftest*
 
15545
 
 
15546
ac_outfile=conftest.$ac_objext
 
15547
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
15548
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
15549
_lt_linker_boilerplate=`cat conftest.err`
 
15550
$rm conftest*
 
15551
 
 
15552
 
15623
15553
# Allow CC to be a program name with arguments.
15624
15554
lt_save_CC="$CC"
15625
15555
CC=${GCJ-"gcj"}
15626
15556
compiler=$CC
15627
15557
compiler_GCJ=$CC
 
15558
for cc_temp in $compiler""; do
 
15559
  case $cc_temp in
 
15560
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
15561
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
15562
    \-*) ;;
 
15563
    *) break;;
 
15564
  esac
 
15565
done
 
15566
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
15567
 
15628
15568
 
15629
15569
# GCJ did not exist at the time GCC didn't implicitly link libc in.
15630
15570
archive_cmds_need_lc_GCJ=no
15631
15571
 
 
15572
old_archive_cmds_GCJ=$old_archive_cmds
 
15573
 
15632
15574
 
15633
15575
lt_prog_compiler_no_builtin_flag_GCJ=
15634
15576
 
15651
15593
   # with a dollar sign (not a hyphen), so the echo should work correctly.
15652
15594
   # The option is referenced via a variable to avoid confusing sed.
15653
15595
   lt_compile=`echo "$ac_compile" | $SED \
15654
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
15596
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15655
15597
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15656
15598
   -e 's:$: $lt_compiler_flag:'`
15657
 
   (eval echo "\"\$as_me:15657: $lt_compile\"" >&5)
 
15599
   (eval echo "\"\$as_me:15599: $lt_compile\"" >&5)
15658
15600
   (eval "$lt_compile" 2>conftest.err)
15659
15601
   ac_status=$?
15660
15602
   cat conftest.err >&5
15661
 
   echo "$as_me:15661: \$? = $ac_status" >&5
 
15603
   echo "$as_me:15603: \$? = $ac_status" >&5
15662
15604
   if (exit $ac_status) && test -s "$ac_outfile"; then
15663
15605
     # The compiler can only warn and ignore the option if not recognized
15664
 
     # So say no if there are warnings
15665
 
     if test ! -s conftest.err; then
 
15606
     # So say no if there are warnings other than the usual output.
 
15607
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
15608
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
15609
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15666
15610
       lt_cv_prog_compiler_rtti_exceptions=yes
15667
15611
     fi
15668
15612
   fi
15723
15667
      lt_prog_compiler_pic_GCJ='-fno-common'
15724
15668
      ;;
15725
15669
 
 
15670
    interix3*)
 
15671
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
15672
      # Instead, we relocate shared libraries at runtime.
 
15673
      ;;
 
15674
 
15726
15675
    msdosdjgpp*)
15727
15676
      # Just because we use GCC doesn't mean we suddenly get shared libraries
15728
15677
      # on systems that don't support them.
15739
15688
    hpux*)
15740
15689
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15741
15690
      # not for PA HP-UX.
15742
 
      case "$host_cpu" in
 
15691
      case $host_cpu in
15743
15692
      hppa*64*|ia64*)
15744
15693
        # +Z the default
15745
15694
        ;;
15765
15714
        lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15766
15715
      fi
15767
15716
      ;;
 
15717
      darwin*)
 
15718
        # PIC is the default on this platform
 
15719
        # Common symbols not allowed in MH_DYLIB files
 
15720
       case $cc_basename in
 
15721
         xlc*)
 
15722
         lt_prog_compiler_pic_GCJ='-qnocommon'
 
15723
         lt_prog_compiler_wl_GCJ='-Wl,'
 
15724
         ;;
 
15725
       esac
 
15726
       ;;
15768
15727
 
15769
15728
    mingw* | pw32* | os2*)
15770
15729
      # This hack is so that the source file can tell whether it is being
15776
15735
      lt_prog_compiler_wl_GCJ='-Wl,'
15777
15736
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15778
15737
      # not for PA HP-UX.
15779
 
      case "$host_cpu" in
 
15738
      case $host_cpu in
15780
15739
      hppa*64*|ia64*)
15781
15740
        # +Z the default
15782
15741
        ;;
15800
15759
      ;;
15801
15760
 
15802
15761
    linux*)
15803
 
      case $CC in
 
15762
      case $cc_basename in
15804
15763
      icc* | ecc*)
15805
15764
        lt_prog_compiler_wl_GCJ='-Wl,'
15806
15765
        lt_prog_compiler_pic_GCJ='-KPIC'
15807
15766
        lt_prog_compiler_static_GCJ='-static'
15808
15767
        ;;
 
15768
      pgcc* | pgf77* | pgf90* | pgf95*)
 
15769
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
15770
        # which looks to be a dead project)
 
15771
        lt_prog_compiler_wl_GCJ='-Wl,'
 
15772
        lt_prog_compiler_pic_GCJ='-fpic'
 
15773
        lt_prog_compiler_static_GCJ='-Bstatic'
 
15774
        ;;
15809
15775
      ccc*)
15810
15776
        lt_prog_compiler_wl_GCJ='-Wl,'
15811
15777
        # All Alpha code is PIC.
15820
15786
      lt_prog_compiler_static_GCJ='-non_shared'
15821
15787
      ;;
15822
15788
 
15823
 
    sco3.2v5*)
15824
 
      lt_prog_compiler_pic_GCJ='-Kpic'
15825
 
      lt_prog_compiler_static_GCJ='-dn'
15826
 
      ;;
15827
 
 
15828
15789
    solaris*)
15829
 
      lt_prog_compiler_wl_GCJ='-Wl,'
15830
15790
      lt_prog_compiler_pic_GCJ='-KPIC'
15831
15791
      lt_prog_compiler_static_GCJ='-Bstatic'
 
15792
      case $cc_basename in
 
15793
      f77* | f90* | f95*)
 
15794
        lt_prog_compiler_wl_GCJ='-Qoption ld ';;
 
15795
      *)
 
15796
        lt_prog_compiler_wl_GCJ='-Wl,';;
 
15797
      esac
15832
15798
      ;;
15833
15799
 
15834
15800
    sunos4*)
15837
15803
      lt_prog_compiler_static_GCJ='-Bstatic'
15838
15804
      ;;
15839
15805
 
15840
 
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
15806
    sysv4 | sysv4.2uw2* | sysv4.3*)
15841
15807
      lt_prog_compiler_wl_GCJ='-Wl,'
15842
15808
      lt_prog_compiler_pic_GCJ='-KPIC'
15843
15809
      lt_prog_compiler_static_GCJ='-Bstatic'
15850
15816
      fi
15851
15817
      ;;
15852
15818
 
 
15819
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
15820
      lt_prog_compiler_wl_GCJ='-Wl,'
 
15821
      lt_prog_compiler_pic_GCJ='-KPIC'
 
15822
      lt_prog_compiler_static_GCJ='-Bstatic'
 
15823
      ;;
 
15824
 
 
15825
    unicos*)
 
15826
      lt_prog_compiler_wl_GCJ='-Wl,'
 
15827
      lt_prog_compiler_can_build_shared_GCJ=no
 
15828
      ;;
 
15829
 
15853
15830
    uts4*)
15854
15831
      lt_prog_compiler_pic_GCJ='-pic'
15855
15832
      lt_prog_compiler_static_GCJ='-Bstatic'
15884
15861
   # with a dollar sign (not a hyphen), so the echo should work correctly.
15885
15862
   # The option is referenced via a variable to avoid confusing sed.
15886
15863
   lt_compile=`echo "$ac_compile" | $SED \
15887
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
15864
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15888
15865
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15889
15866
   -e 's:$: $lt_compiler_flag:'`
15890
 
   (eval echo "\"\$as_me:15890: $lt_compile\"" >&5)
 
15867
   (eval echo "\"\$as_me:15867: $lt_compile\"" >&5)
15891
15868
   (eval "$lt_compile" 2>conftest.err)
15892
15869
   ac_status=$?
15893
15870
   cat conftest.err >&5
15894
 
   echo "$as_me:15894: \$? = $ac_status" >&5
 
15871
   echo "$as_me:15871: \$? = $ac_status" >&5
15895
15872
   if (exit $ac_status) && test -s "$ac_outfile"; then
15896
15873
     # The compiler can only warn and ignore the option if not recognized
15897
 
     # So say no if there are warnings
15898
 
     if test ! -s conftest.err; then
 
15874
     # So say no if there are warnings other than the usual output.
 
15875
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
15876
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
15877
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15899
15878
       lt_prog_compiler_pic_works_GCJ=yes
15900
15879
     fi
15901
15880
   fi
15916
15895
fi
15917
15896
 
15918
15897
fi
15919
 
case "$host_os" in
 
15898
case $host_os in
15920
15899
  # For platforms which do not support PIC, -DPIC is meaningless:
15921
15900
  *djgpp*)
15922
15901
    lt_prog_compiler_pic_GCJ=
15926
15905
    ;;
15927
15906
esac
15928
15907
 
 
15908
#
 
15909
# Check to make sure the static flag actually works.
 
15910
#
 
15911
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
 
15912
echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
15913
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
 
15914
if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
 
15915
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15916
else
 
15917
  lt_prog_compiler_static_works_GCJ=no
 
15918
   save_LDFLAGS="$LDFLAGS"
 
15919
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
15920
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
15921
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
15922
     # The linker can only warn and ignore the option if not recognized
 
15923
     # So say no if there are warnings
 
15924
     if test -s conftest.err; then
 
15925
       # Append any errors to the config.log.
 
15926
       cat conftest.err 1>&5
 
15927
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
15928
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
15929
       if diff conftest.exp conftest.er2 >/dev/null; then
 
15930
         lt_prog_compiler_static_works_GCJ=yes
 
15931
       fi
 
15932
     else
 
15933
       lt_prog_compiler_static_works_GCJ=yes
 
15934
     fi
 
15935
   fi
 
15936
   $rm conftest*
 
15937
   LDFLAGS="$save_LDFLAGS"
 
15938
 
 
15939
fi
 
15940
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
 
15941
echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
 
15942
 
 
15943
if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
 
15944
    :
 
15945
else
 
15946
    lt_prog_compiler_static_GCJ=
 
15947
fi
 
15948
 
 
15949
 
15929
15950
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15930
15951
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15931
15952
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15944
15965
   # Note that $ac_compile itself does not contain backslashes and begins
15945
15966
   # with a dollar sign (not a hyphen), so the echo should work correctly.
15946
15967
   lt_compile=`echo "$ac_compile" | $SED \
15947
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
15968
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15948
15969
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15949
15970
   -e 's:$: $lt_compiler_flag:'`
15950
 
   (eval echo "\"\$as_me:15950: $lt_compile\"" >&5)
 
15971
   (eval echo "\"\$as_me:15971: $lt_compile\"" >&5)
15951
15972
   (eval "$lt_compile" 2>out/conftest.err)
15952
15973
   ac_status=$?
15953
15974
   cat out/conftest.err >&5
15954
 
   echo "$as_me:15954: \$? = $ac_status" >&5
 
15975
   echo "$as_me:15975: \$? = $ac_status" >&5
15955
15976
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15956
15977
   then
15957
15978
     # The compiler can only warn and ignore the option if not recognized
15958
15979
     # So say no if there are warnings
15959
 
     if test ! -s out/conftest.err; then
 
15980
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
15981
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
15982
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15960
15983
       lt_cv_prog_compiler_c_o_GCJ=yes
15961
15984
     fi
15962
15985
   fi
15963
 
   chmod u+w .
 
15986
   chmod u+w . 2>&5
15964
15987
   $rm conftest*
15965
15988
   # SGI C++ compiler will create directory out/ii_files/ for
15966
15989
   # template instantiation
16036
16059
  # rely on this symbol name, it's probably fine to never include it in
16037
16060
  # preloaded symbol tables.
16038
16061
  extract_expsyms_cmds=
 
16062
  # Just being paranoid about ensuring that cc_basename is set.
 
16063
  for cc_temp in $compiler""; do
 
16064
  case $cc_temp in
 
16065
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
16066
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
16067
    \-*) ;;
 
16068
    *) break;;
 
16069
  esac
 
16070
done
 
16071
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16039
16072
 
16040
16073
  case $host_os in
16041
16074
  cygwin* | mingw* | pw32*)
16046
16079
      with_gnu_ld=no
16047
16080
    fi
16048
16081
    ;;
 
16082
  interix*)
 
16083
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
16084
    with_gnu_ld=yes
 
16085
    ;;
16049
16086
  openbsd*)
16050
16087
    with_gnu_ld=no
16051
16088
    ;;
16056
16093
    # If archive_cmds runs LD, not CC, wlarc should be empty
16057
16094
    wlarc='${wl}'
16058
16095
 
 
16096
    # Set some defaults for GNU ld with shared library support. These
 
16097
    # are reset later if shared libraries are not supported. Putting them
 
16098
    # here allows them to be overridden if necessary.
 
16099
    runpath_var=LD_RUN_PATH
 
16100
    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
 
16101
    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
 
16102
    # ancient GNU ld didn't support --whole-archive et. al.
 
16103
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
16104
        whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
16105
      else
 
16106
        whole_archive_flag_spec_GCJ=
 
16107
    fi
 
16108
    supports_anon_versioning=no
 
16109
    case `$LD -v 2>/dev/null` in
 
16110
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
16111
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
16112
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
16113
      *\ 2.11.*) ;; # other 2.11 versions
 
16114
      *) supports_anon_versioning=yes ;;
 
16115
    esac
 
16116
 
16059
16117
    # See if GNU ld supports shared libraries.
16060
16118
    case $host_os in
16061
16119
    aix3* | aix4* | aix5*)
16106
16164
      allow_undefined_flag_GCJ=unsupported
16107
16165
      always_export_symbols_GCJ=no
16108
16166
      enable_shared_with_static_runtimes_GCJ=yes
16109
 
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
16167
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16110
16168
 
16111
16169
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16112
 
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
16170
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16113
16171
        # If the export-symbols file already is a .def file (1st line
16114
16172
        # is EXPORTS), use it as is; otherwise, prepend...
16115
16173
        archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16118
16176
          echo EXPORTS > $output_objdir/$soname.def;
16119
16177
          cat $export_symbols >> $output_objdir/$soname.def;
16120
16178
        fi~
16121
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
16122
 
      else
16123
 
        ld_shlibs=no
 
16179
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
16180
      else
 
16181
        ld_shlibs_GCJ=no
 
16182
      fi
 
16183
      ;;
 
16184
 
 
16185
    interix3*)
 
16186
      hardcode_direct_GCJ=no
 
16187
      hardcode_shlibpath_var_GCJ=no
 
16188
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
16189
      export_dynamic_flag_spec_GCJ='${wl}-E'
 
16190
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
16191
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
16192
      # default) and relocated if they conflict, which is a slow very memory
 
16193
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
16194
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
16195
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
16196
      archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
16197
      archive_expsym_cmds_GCJ='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'
 
16198
      ;;
 
16199
 
 
16200
    linux*)
 
16201
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
16202
        tmp_addflag=
 
16203
        case $cc_basename,$host_cpu in
 
16204
        pgcc*)                          # Portland Group C compiler
 
16205
          whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
16206
          tmp_addflag=' $pic_flag'
 
16207
          ;;
 
16208
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
16209
          whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
16210
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
16211
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
16212
          tmp_addflag=' -i_dynamic' ;;
 
16213
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
16214
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
16215
        ifc* | ifort*)                  # Intel Fortran compiler
 
16216
          tmp_addflag=' -nofor_main' ;;
 
16217
        esac
 
16218
        archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16219
 
 
16220
        if test $supports_anon_versioning = yes; then
 
16221
          archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
 
16222
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
16223
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
16224
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
16225
        fi
 
16226
      else
 
16227
        ld_shlibs_GCJ=no
16124
16228
      fi
16125
16229
      ;;
16126
16230
 
16134
16238
      fi
16135
16239
      ;;
16136
16240
 
16137
 
    solaris* | sysv5*)
 
16241
    solaris*)
16138
16242
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16139
16243
        ld_shlibs_GCJ=no
16140
16244
        cat <<EOF 1>&2
16155
16259
      fi
16156
16260
      ;;
16157
16261
 
 
16262
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
16263
      case `$LD -v 2>&1` in
 
16264
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
16265
        ld_shlibs_GCJ=no
 
16266
        cat <<_LT_EOF 1>&2
 
16267
 
 
16268
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
16269
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
16270
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
16271
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
16272
*** your PATH or compiler configuration so that the native linker is
 
16273
*** used, and then restart.
 
16274
 
 
16275
_LT_EOF
 
16276
        ;;
 
16277
        *)
 
16278
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
16279
            hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
16280
            archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
16281
            archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
16282
          else
 
16283
            ld_shlibs_GCJ=no
 
16284
          fi
 
16285
        ;;
 
16286
      esac
 
16287
      ;;
 
16288
 
16158
16289
    sunos4*)
16159
16290
      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16160
16291
      wlarc=
16162
16293
      hardcode_shlibpath_var_GCJ=no
16163
16294
      ;;
16164
16295
 
16165
 
  linux*)
16166
 
    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
16167
 
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16168
 
        archive_cmds_GCJ="$tmp_archive_cmds"
16169
 
      supports_anon_versioning=no
16170
 
      case `$LD -v 2>/dev/null` in
16171
 
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16172
 
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16173
 
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16174
 
        *\ 2.11.*) ;; # other 2.11 versions
16175
 
        *) supports_anon_versioning=yes ;;
16176
 
      esac
16177
 
      if test $supports_anon_versioning = yes; then
16178
 
        archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16179
 
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16180
 
$echo "local: *; };" >> $output_objdir/$libname.ver~
16181
 
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16182
 
      else
16183
 
        archive_expsym_cmds_GCJ="$tmp_archive_cmds"
16184
 
      fi
16185
 
    else
16186
 
      ld_shlibs_GCJ=no
16187
 
    fi
16188
 
    ;;
16189
 
 
16190
16296
    *)
16191
16297
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16192
16298
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16197
16303
      ;;
16198
16304
    esac
16199
16305
 
16200
 
    if test "$ld_shlibs_GCJ" = yes; then
16201
 
      runpath_var=LD_RUN_PATH
16202
 
      hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16203
 
      export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16204
 
      # ancient GNU ld didn't support --whole-archive et. al.
16205
 
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16206
 
        whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16207
 
      else
16208
 
        whole_archive_flag_spec_GCJ=
16209
 
      fi
 
16306
    if test "$ld_shlibs_GCJ" = no; then
 
16307
      runpath_var=
 
16308
      hardcode_libdir_flag_spec_GCJ=
 
16309
      export_dynamic_flag_spec_GCJ=
 
16310
      whole_archive_flag_spec_GCJ=
16210
16311
    fi
16211
16312
  else
16212
16313
    # PORTME fill in a description of your system's linker (not GNU ld)
16218
16319
      # Note: this linker hardcodes the directories in LIBPATH if there
16219
16320
      # are no directories specified by -L.
16220
16321
      hardcode_minus_L_GCJ=yes
16221
 
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
16322
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16222
16323
        # Neither direct hardcoding nor static linking is supported with a
16223
16324
        # broken collect2.
16224
16325
        hardcode_direct_GCJ=unsupported
16252
16353
            break
16253
16354
          fi
16254
16355
          done
 
16356
          ;;
16255
16357
        esac
16256
16358
 
16257
16359
        exp_sym_flag='-bexport'
16270
16372
      link_all_deplibs_GCJ=yes
16271
16373
 
16272
16374
      if test "$GCC" = yes; then
16273
 
        case $host_os in aix4.012|aix4.012.*)
 
16375
        case $host_os in aix4.[012]|aix4.[012].*)
16274
16376
        # We only want to do this on AIX 4.2 and lower, the check
16275
16377
        # below for broken collect2 doesn't work under 4.3+
16276
16378
          collect2name=`${CC} -print-prog-name=collect2`
16289
16391
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
16290
16392
          hardcode_libdir_separator_GCJ=
16291
16393
          fi
 
16394
          ;;
16292
16395
        esac
16293
16396
        shared_flag='-shared'
 
16397
        if test "$aix_use_runtimelinking" = yes; then
 
16398
          shared_flag="$shared_flag "'${wl}-G'
 
16399
        fi
16294
16400
      else
16295
16401
        # not using gcc
16296
16402
        if test "$host_cpu" = ia64; then
16298
16404
        # chokes on -Wl,-G. The following line is correct:
16299
16405
          shared_flag='-G'
16300
16406
        else
16301
 
        if test "$aix_use_runtimelinking" = yes; then
 
16407
          if test "$aix_use_runtimelinking" = yes; then
16302
16408
            shared_flag='${wl}-G'
16303
16409
          else
16304
16410
            shared_flag='${wl}-bM:SRE'
16305
 
        fi
 
16411
          fi
16306
16412
        fi
16307
16413
      fi
16308
16414
 
16367
16473
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16368
16474
 
16369
16475
       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16370
 
        archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
16476
        archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16371
16477
       else
16372
16478
        if test "$host_cpu" = ia64; then
16373
16479
          hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16374
16480
          allow_undefined_flag_GCJ="-z nodefs"
16375
 
          archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
 
16481
          archive_expsym_cmds_GCJ="\$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"
16376
16482
        else
16377
16483
         # Determine the default libpath from the value encoded in an empty executable.
16378
16484
         cat >conftest.$ac_ext <<_ACEOF
16432
16538
          # -berok will link without error, but may produce a broken library.
16433
16539
          no_undefined_flag_GCJ=' ${wl}-bernotok'
16434
16540
          allow_undefined_flag_GCJ=' ${wl}-berok'
16435
 
          # -bexpall does not export symbols beginning with underscore (_)
16436
 
          always_export_symbols_GCJ=yes
16437
16541
          # Exported symbols can be pulled into shared objects from archives
16438
 
          whole_archive_flag_spec_GCJ=' '
 
16542
          whole_archive_flag_spec_GCJ='$convenience'
16439
16543
          archive_cmds_need_lc_GCJ=yes
16440
 
          # This is similar to how AIX traditionally builds it's shared libraries.
16441
 
          archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
16544
          # This is similar to how AIX traditionally builds its shared libraries.
 
16545
          archive_expsym_cmds_GCJ="\$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'
16442
16546
        fi
16443
16547
      fi
16444
16548
      ;;
16451
16555
      ld_shlibs_GCJ=no
16452
16556
      ;;
16453
16557
 
16454
 
    bsdi4*)
 
16558
    bsdi[45]*)
16455
16559
      export_dynamic_flag_spec_GCJ=-rdynamic
16456
16560
      ;;
16457
16561
 
16465
16569
      # Tell ltmain to make .lib files, not .a files.
16466
16570
      libext=lib
16467
16571
      # Tell ltmain to make .dll files, not .so files.
16468
 
      shrext=".dll"
 
16572
      shrext_cmds=".dll"
16469
16573
      # FIXME: Setting linknames here is a bad hack.
16470
16574
      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16471
16575
      # The linker will automatically build a .lib file if we build a DLL.
16472
16576
      old_archive_From_new_cmds_GCJ='true'
16473
16577
      # FIXME: Should let the user specify the lib program.
16474
16578
      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16475
 
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
16579
      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16476
16580
      enable_shared_with_static_runtimes_GCJ=yes
16477
16581
      ;;
16478
16582
 
16479
16583
    darwin* | rhapsody*)
16480
 
    if test "$GXX" = yes ; then
 
16584
      case $host_os in
 
16585
        rhapsody* | darwin1.[012])
 
16586
         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
 
16587
         ;;
 
16588
       *) # Darwin 1.3 on
 
16589
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
16590
           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
16591
         else
 
16592
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
16593
             10.[012])
 
16594
               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
16595
               ;;
 
16596
             10.*)
 
16597
               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
 
16598
               ;;
 
16599
           esac
 
16600
         fi
 
16601
         ;;
 
16602
      esac
16481
16603
      archive_cmds_need_lc_GCJ=no
16482
 
      case "$host_os" in
16483
 
      rhapsody* | darwin1.[012])
16484
 
        allow_undefined_flag_GCJ='-undefined suppress'
16485
 
        ;;
16486
 
      *) # Darwin 1.3 on
16487
 
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16488
 
        allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16489
 
      else
16490
 
        case ${MACOSX_DEPLOYMENT_TARGET} in
16491
 
          10.[012])
16492
 
            allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16493
 
            ;;
16494
 
          10.*)
16495
 
            allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16496
 
            ;;
16497
 
        esac
16498
 
      fi
16499
 
        ;;
16500
 
      esac
16501
 
        lt_int_apple_cc_single_mod=no
16502
 
        output_verbose_link_cmd='echo'
16503
 
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16504
 
          lt_int_apple_cc_single_mod=yes
16505
 
        fi
16506
 
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16507
 
          archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16508
 
        else
16509
 
        archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16510
 
      fi
16511
 
      module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16512
 
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16513
 
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16514
 
          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16515
 
        else
16516
 
          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16517
 
        fi
16518
 
          module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16519
16604
      hardcode_direct_GCJ=no
16520
16605
      hardcode_automatic_GCJ=yes
16521
16606
      hardcode_shlibpath_var_GCJ=unsupported
16522
 
      whole_archive_flag_spec_GCJ='-all_load $convenience'
 
16607
      whole_archive_flag_spec_GCJ=''
16523
16608
      link_all_deplibs_GCJ=yes
 
16609
    if test "$GCC" = yes ; then
 
16610
        output_verbose_link_cmd='echo'
 
16611
        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
16612
      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
16613
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
16614
      archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
16615
      module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16524
16616
    else
16525
 
      ld_shlibs_GCJ=no
 
16617
      case $cc_basename in
 
16618
        xlc*)
 
16619
         output_verbose_link_cmd='echo'
 
16620
         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
16621
         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
16622
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
16623
         archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
16624
          module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
16625
          ;;
 
16626
       *)
 
16627
         ld_shlibs_GCJ=no
 
16628
          ;;
 
16629
      esac
16526
16630
    fi
16527
16631
      ;;
16528
16632
 
16556
16660
      ;;
16557
16661
 
16558
16662
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16559
 
    freebsd* | kfreebsd*-gnu)
 
16663
    freebsd* | kfreebsd*-gnu | dragonfly*)
16560
16664
      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16561
16665
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16562
16666
      hardcode_direct_GCJ=yes
16579
16683
      export_dynamic_flag_spec_GCJ='${wl}-E'
16580
16684
      ;;
16581
16685
 
16582
 
    hpux10* | hpux11*)
16583
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16584
 
        case "$host_cpu" in
16585
 
        hppa*64*|ia64*)
 
16686
    hpux10*)
 
16687
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
16688
        archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
16689
      else
 
16690
        archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
16691
      fi
 
16692
      if test "$with_gnu_ld" = no; then
 
16693
        hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
16694
        hardcode_libdir_separator_GCJ=:
 
16695
 
 
16696
        hardcode_direct_GCJ=yes
 
16697
        export_dynamic_flag_spec_GCJ='${wl}-E'
 
16698
 
 
16699
        # hardcode_minus_L: Not really in the search PATH,
 
16700
        # but as the default location of the library.
 
16701
        hardcode_minus_L_GCJ=yes
 
16702
      fi
 
16703
      ;;
 
16704
 
 
16705
    hpux11*)
 
16706
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
16707
        case $host_cpu in
 
16708
        hppa*64*)
16586
16709
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16587
16710
          ;;
 
16711
        ia64*)
 
16712
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
16713
          ;;
16588
16714
        *)
16589
16715
          archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16590
16716
          ;;
16591
16717
        esac
16592
16718
      else
16593
 
        case "$host_cpu" in
16594
 
        hppa*64*|ia64*)
16595
 
          archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16719
        case $host_cpu in
 
16720
        hppa*64*)
 
16721
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16722
          ;;
 
16723
        ia64*)
 
16724
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16596
16725
          ;;
16597
16726
        *)
16598
 
          archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
16727
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16599
16728
          ;;
16600
16729
        esac
16601
16730
      fi
16602
16731
      if test "$with_gnu_ld" = no; then
16603
 
        case "$host_cpu" in
16604
 
        hppa*64*)
16605
 
          hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
16732
        hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
16733
        hardcode_libdir_separator_GCJ=:
 
16734
 
 
16735
        case $host_cpu in
 
16736
        hppa*64*|ia64*)
16606
16737
          hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16607
 
          hardcode_libdir_separator_GCJ=:
16608
 
          hardcode_direct_GCJ=no
16609
 
          hardcode_shlibpath_var_GCJ=no
16610
 
          ;;
16611
 
        ia64*)
16612
 
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
16613
 
          hardcode_direct_GCJ=no
16614
 
          hardcode_shlibpath_var_GCJ=no
16615
 
 
16616
 
          # hardcode_minus_L: Not really in the search PATH,
16617
 
          # but as the default location of the library.
16618
 
          hardcode_minus_L_GCJ=yes
 
16738
          hardcode_direct_GCJ=no
 
16739
          hardcode_shlibpath_var_GCJ=no
16619
16740
          ;;
16620
16741
        *)
16621
 
          hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16622
 
          hardcode_libdir_separator_GCJ=:
16623
16742
          hardcode_direct_GCJ=yes
16624
16743
          export_dynamic_flag_spec_GCJ='${wl}-E'
16625
16744
 
16667
16786
      hardcode_shlibpath_var_GCJ=no
16668
16787
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16669
16788
        archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
16789
        archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16670
16790
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16671
16791
        export_dynamic_flag_spec_GCJ='${wl}-E'
16672
16792
      else
16712
16832
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
16713
16833
        archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16714
16834
        archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
16715
 
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
 
16835
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
16716
16836
 
16717
16837
        # Both c and cxx compiler support -rpath directly
16718
16838
        hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16720
16840
      hardcode_libdir_separator_GCJ=:
16721
16841
      ;;
16722
16842
 
16723
 
    sco3.2v5*)
16724
 
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16725
 
      hardcode_shlibpath_var_GCJ=no
16726
 
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16727
 
      runpath_var=LD_RUN_PATH
16728
 
      hardcode_runpath_var=yes
16729
 
      ;;
16730
 
 
16731
16843
    solaris*)
16732
16844
      no_undefined_flag_GCJ=' -z text'
16733
16845
      if test "$GCC" = yes; then
 
16846
        wlarc='${wl}'
16734
16847
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16735
16848
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16736
16849
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16737
16850
      else
 
16851
        wlarc=''
16738
16852
        archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16739
16853
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16740
16854
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16743
16857
      hardcode_shlibpath_var_GCJ=no
16744
16858
      case $host_os in
16745
16859
      solaris2.[0-5] | solaris2.[0-5].*) ;;
16746
 
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16747
 
        whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
 
16860
      *)
 
16861
        # The compiler driver will combine linker options so we
 
16862
        # cannot just pass the convience library names through
 
16863
        # without $wl, iff we do not link with $LD.
 
16864
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
16865
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
16866
        case $wlarc in
 
16867
        '')
 
16868
          whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
 
16869
        *)
 
16870
          whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
 
16871
        esac ;;
16748
16872
      esac
16749
16873
      link_all_deplibs_GCJ=yes
16750
16874
      ;;
16801
16925
      fi
16802
16926
      ;;
16803
16927
 
16804
 
    sysv4.2uw2*)
16805
 
      archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16806
 
      hardcode_direct_GCJ=yes
16807
 
      hardcode_minus_L_GCJ=no
16808
 
      hardcode_shlibpath_var_GCJ=no
16809
 
      hardcode_runpath_var=yes
16810
 
      runpath_var=LD_RUN_PATH
16811
 
      ;;
16812
 
 
16813
 
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16814
 
      no_undefined_flag_GCJ='${wl}-z ${wl}text'
16815
 
      if test "$GCC" = yes; then
16816
 
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16817
 
      else
16818
 
        archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16819
 
      fi
16820
 
      runpath_var='LD_RUN_PATH'
16821
 
      hardcode_shlibpath_var_GCJ=no
16822
 
      ;;
16823
 
 
16824
 
    sysv5*)
16825
 
      no_undefined_flag_GCJ=' -z text'
16826
 
      # $CC -shared without GNU ld will not create a library from C++
16827
 
      # object files and a static libstdc++, better avoid it by now
16828
 
      archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16829
 
      archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16830
 
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16831
 
      hardcode_libdir_flag_spec_GCJ=
16832
 
      hardcode_shlibpath_var_GCJ=no
16833
 
      runpath_var='LD_RUN_PATH'
 
16928
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
 
16929
      no_undefined_flag_GCJ='${wl}-z,text'
 
16930
      archive_cmds_need_lc_GCJ=no
 
16931
      hardcode_shlibpath_var_GCJ=no
 
16932
      runpath_var='LD_RUN_PATH'
 
16933
 
 
16934
      if test "$GCC" = yes; then
 
16935
        archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16936
        archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16937
      else
 
16938
        archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16939
        archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16940
      fi
 
16941
      ;;
 
16942
 
 
16943
    sysv5* | sco3.2v5* | sco5v6*)
 
16944
      # Note: We can NOT use -z defs as we might desire, because we do not
 
16945
      # link with -lc, and that would cause any symbols used from libc to
 
16946
      # always be unresolved, which means just about no library would
 
16947
      # ever link correctly.  If we're not using GNU ld we use -z text
 
16948
      # though, which does catch some bad symbols but isn't as heavy-handed
 
16949
      # as -z defs.
 
16950
      no_undefined_flag_GCJ='${wl}-z,text'
 
16951
      allow_undefined_flag_GCJ='${wl}-z,nodefs'
 
16952
      archive_cmds_need_lc_GCJ=no
 
16953
      hardcode_shlibpath_var_GCJ=no
 
16954
      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
16955
      hardcode_libdir_separator_GCJ=':'
 
16956
      link_all_deplibs_GCJ=yes
 
16957
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
 
16958
      runpath_var='LD_RUN_PATH'
 
16959
 
 
16960
      if test "$GCC" = yes; then
 
16961
        archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16962
        archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16963
      else
 
16964
        archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16965
        archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16966
      fi
16834
16967
      ;;
16835
16968
 
16836
16969
    uts4*)
16849
16982
echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16850
16983
test "$ld_shlibs_GCJ" = no && can_build_shared=no
16851
16984
 
16852
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16853
 
if test "$GCC" = yes; then
16854
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16855
 
fi
16856
 
 
16857
16985
#
16858
16986
# Do we need to explicitly link libc?
16859
16987
#
16886
17014
        libobjs=conftest.$ac_objext
16887
17015
        deplibs=
16888
17016
        wl=$lt_prog_compiler_wl_GCJ
 
17017
        pic_flag=$lt_prog_compiler_pic_GCJ
16889
17018
        compiler_flags=-v
16890
17019
        linker_flags=-v
16891
17020
        verstring=
16921
17050
library_names_spec=
16922
17051
libname_spec='lib$name'
16923
17052
soname_spec=
16924
 
shrext=".so"
 
17053
shrext_cmds=".so"
16925
17054
postinstall_cmds=
16926
17055
postuninstall_cmds=
16927
17056
finish_cmds=
17018
17147
  shlibpath_var=LIBRARY_PATH
17019
17148
  ;;
17020
17149
 
17021
 
bsdi4*)
 
17150
bsdi[45]*)
17022
17151
  version_type=linux
17023
17152
  need_version=no
17024
17153
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17034
17163
 
17035
17164
cygwin* | mingw* | pw32*)
17036
17165
  version_type=windows
17037
 
  shrext=".dll"
 
17166
  shrext_cmds=".dll"
17038
17167
  need_version=no
17039
17168
  need_lib_prefix=no
17040
17169
 
17046
17175
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17047
17176
      dldir=$destdir/`dirname \$dlpath`~
17048
17177
      test -d \$dldir || mkdir -p \$dldir~
17049
 
      $install_prog $dir/$dlname \$dldir/$dlname'
 
17178
      $install_prog $dir/$dlname \$dldir/$dlname~
 
17179
      chmod a+x \$dldir/$dlname'
17050
17180
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17051
17181
      dlpath=$dir/\$dldll~
17052
17182
       $rm \$dlpath'
17076
17206
      ;;
17077
17207
    pw32*)
17078
17208
      # pw32 DLLs use 'pw' prefix rather than 'lib'
17079
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
17209
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17080
17210
      ;;
17081
17211
    esac
17082
17212
    ;;
17083
17213
 
17084
 
  linux*)
17085
 
    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
17086
 
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17087
 
      supports_anon_versioning=no
17088
 
      case `$LD -v 2>/dev/null` in
17089
 
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17090
 
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17091
 
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17092
 
        *\ 2.11.*) ;; # other 2.11 versions
17093
 
        *) supports_anon_versioning=yes ;;
17094
 
      esac
17095
 
      if test $supports_anon_versioning = yes; then
17096
 
        archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
17097
 
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17098
 
$echo "local: *; };" >> $output_objdir/$libname.ver~
17099
 
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17100
 
      else
17101
 
        $archive_expsym_cmds="$archive_cmds"
17102
 
      fi
17103
 
    else
17104
 
      ld_shlibs=no
17105
 
    fi
17106
 
    ;;
17107
 
 
17108
17214
  *)
17109
17215
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17110
17216
    ;;
17123
17229
  soname_spec='${libname}${release}${major}$shared_ext'
17124
17230
  shlibpath_overrides_runpath=yes
17125
17231
  shlibpath_var=DYLD_LIBRARY_PATH
17126
 
  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
 
17232
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17127
17233
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17128
17234
  if test "$GCC" = yes; then
17129
17235
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
17158
17264
  dynamic_linker='GNU ld.so'
17159
17265
  ;;
17160
17266
 
17161
 
freebsd*)
17162
 
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
17267
freebsd* | dragonfly*)
 
17268
  # DragonFly does not have aout.  When/if they implement a new
 
17269
  # versioning mechanism, adjust this.
 
17270
  if test -x /usr/bin/objformat; then
 
17271
    objformat=`/usr/bin/objformat`
 
17272
  else
 
17273
    case $host_os in
 
17274
    freebsd[123]*) objformat=aout ;;
 
17275
    *) objformat=elf ;;
 
17276
    esac
 
17277
  fi
17163
17278
  version_type=freebsd-$objformat
17164
17279
  case $version_type in
17165
17280
    freebsd-elf*)
17177
17292
  freebsd2*)
17178
17293
    shlibpath_overrides_runpath=yes
17179
17294
    ;;
17180
 
  freebsd3.01* | freebsdelf3.01*)
 
17295
  freebsd3.[01]* | freebsdelf3.[01]*)
17181
17296
    shlibpath_overrides_runpath=yes
17182
17297
    hardcode_into_libs=yes
17183
17298
    ;;
17184
 
  *) # from 3.2 on
 
17299
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
17300
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17185
17301
    shlibpath_overrides_runpath=no
17186
17302
    hardcode_into_libs=yes
17187
17303
    ;;
 
17304
  freebsd*) # from 4.6 on
 
17305
    shlibpath_overrides_runpath=yes
 
17306
    hardcode_into_libs=yes
 
17307
    ;;
17188
17308
  esac
17189
17309
  ;;
17190
17310
 
17204
17324
  version_type=sunos
17205
17325
  need_lib_prefix=no
17206
17326
  need_version=no
17207
 
  case "$host_cpu" in
 
17327
  case $host_cpu in
17208
17328
  ia64*)
17209
 
    shrext='.so'
 
17329
    shrext_cmds='.so'
17210
17330
    hardcode_into_libs=yes
17211
17331
    dynamic_linker="$host_os dld.so"
17212
17332
    shlibpath_var=LD_LIBRARY_PATH
17221
17341
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17222
17342
    ;;
17223
17343
   hppa*64*)
17224
 
     shrext='.sl'
 
17344
     shrext_cmds='.sl'
17225
17345
     hardcode_into_libs=yes
17226
17346
     dynamic_linker="$host_os dld.sl"
17227
17347
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17232
17352
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17233
17353
     ;;
17234
17354
   *)
17235
 
    shrext='.sl'
 
17355
    shrext_cmds='.sl'
17236
17356
    dynamic_linker="$host_os dld.sl"
17237
17357
    shlibpath_var=SHLIB_PATH
17238
17358
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17244
17364
  postinstall_cmds='chmod 555 $lib'
17245
17365
  ;;
17246
17366
 
 
17367
interix3*)
 
17368
  version_type=linux
 
17369
  need_lib_prefix=no
 
17370
  need_version=no
 
17371
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
17372
  soname_spec='${libname}${release}${shared_ext}$major'
 
17373
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
17374
  shlibpath_var=LD_LIBRARY_PATH
 
17375
  shlibpath_overrides_runpath=no
 
17376
  hardcode_into_libs=yes
 
17377
  ;;
 
17378
 
17247
17379
irix5* | irix6* | nonstopux*)
17248
17380
  case $host_os in
17249
17381
    nonstopux*) version_type=nonstopux ;;
17301
17433
  # before this can be enabled.
17302
17434
  hardcode_into_libs=yes
17303
17435
 
17304
 
  # Append ld.so.conf contents to the search path
17305
 
  if test -f /etc/ld.so.conf; then
17306
 
    ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
17307
 
    sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
17308
 
  fi
17309
 
 
17310
 
  case $host_cpu:$lt_cv_cc_64bit_output in
17311
 
  powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes)
17312
 
    sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/X11R6/lib64"
17313
 
    sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /usr/X11R6/lib64"
17314
 
    ;;
17315
 
  esac
17316
 
 
17317
 
  # We used to test for /lib/ld.so.1 and disable shared libraries on
17318
 
  # powerpc, because MkLinux only supported shared libraries with the
17319
 
  # GNU dynamic linker.  Since this was broken with cross compilers,
17320
 
  # most powerpc-linux boxes support dynamic linking these days and
17321
 
  # people can always --disable-shared, the test was removed, and we
17322
 
  # assume the GNU/Linux dynamic linker is in use.
17323
 
  dynamic_linker='GNU/Linux ld.so'
17324
 
 
17325
 
  # Find out which ABI we are using (multilib Linux x86_64 hack).
 
17436
  # find out which ABI we are using
17326
17437
  libsuff=
17327
17438
  case "$host_cpu" in
17328
 
  x86_64*)
17329
 
    echo '#line 17329 "configure"' > conftest.$ac_ext
 
17439
  x86_64*|s390x*|powerpc64*)
 
17440
    echo '#line 17440 "configure"' > conftest.$ac_ext
17330
17441
    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17331
17442
  (eval $ac_compile) 2>&5
17332
17443
  ac_status=$?
17335
17446
      case `/usr/bin/file conftest.$ac_objext` in
17336
17447
      *64-bit*)
17337
17448
        libsuff=64
 
17449
        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
17338
17450
        ;;
17339
17451
      esac
17340
17452
    fi
17341
17453
    rm -rf conftest*
17342
17454
    ;;
17343
 
  *)
17344
 
    ;;
17345
17455
  esac
17346
 
  sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
17347
 
  sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
 
17456
 
 
17457
  # Append ld.so.conf contents to the search path
 
17458
  if test -f /etc/ld.so.conf; then
 
17459
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
17460
    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
 
17461
  fi
 
17462
 
 
17463
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
17464
  # powerpc, because MkLinux only supported shared libraries with the
 
17465
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
17466
  # most powerpc-linux boxes support dynamic linking these days and
 
17467
  # people can always --disable-shared, the test was removed, and we
 
17468
  # assume the GNU/Linux dynamic linker is in use.
 
17469
  dynamic_linker='GNU/Linux ld.so'
17348
17470
  ;;
17349
17471
 
17350
17472
knetbsd*-gnu)
17396
17518
 
17397
17519
openbsd*)
17398
17520
  version_type=sunos
 
17521
  sys_lib_dlsearch_path_spec="/usr/lib"
17399
17522
  need_lib_prefix=no
17400
 
  need_version=yes
 
17523
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
17524
  case $host_os in
 
17525
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
17526
    *)                         need_version=no  ;;
 
17527
  esac
17401
17528
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17402
17529
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17403
17530
  shlibpath_var=LD_LIBRARY_PATH
17417
17544
 
17418
17545
os2*)
17419
17546
  libname_spec='$name'
17420
 
  shrext=".dll"
 
17547
  shrext_cmds=".dll"
17421
17548
  need_lib_prefix=no
17422
17549
  library_names_spec='$libname${shared_ext} $libname.a'
17423
17550
  dynamic_linker='OS/2 ld.exe'
17435
17562
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17436
17563
  ;;
17437
17564
 
17438
 
sco3.2v5*)
17439
 
  version_type=osf
17440
 
  soname_spec='${libname}${release}${shared_ext}$major'
17441
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17442
 
  shlibpath_var=LD_LIBRARY_PATH
17443
 
  ;;
17444
 
 
17445
17565
solaris*)
17446
17566
  version_type=linux
17447
17567
  need_lib_prefix=no
17467
17587
  need_version=yes
17468
17588
  ;;
17469
17589
 
17470
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
17590
sysv4 | sysv4.3*)
17471
17591
  version_type=linux
17472
17592
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17473
17593
  soname_spec='${libname}${release}${shared_ext}$major'
17500
17620
  fi
17501
17621
  ;;
17502
17622
 
 
17623
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
17624
  version_type=freebsd-elf
 
17625
  need_lib_prefix=no
 
17626
  need_version=no
 
17627
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
17628
  soname_spec='${libname}${release}${shared_ext}$major'
 
17629
  shlibpath_var=LD_LIBRARY_PATH
 
17630
  hardcode_into_libs=yes
 
17631
  if test "$with_gnu_ld" = yes; then
 
17632
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
17633
    shlibpath_overrides_runpath=no
 
17634
  else
 
17635
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
17636
    shlibpath_overrides_runpath=yes
 
17637
    case $host_os in
 
17638
      sco3.2v5*)
 
17639
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
17640
        ;;
 
17641
    esac
 
17642
  fi
 
17643
  sys_lib_dlsearch_path_spec='/usr/lib'
 
17644
  ;;
 
17645
 
17503
17646
uts4*)
17504
17647
  version_type=linux
17505
17648
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17515
17658
echo "${ECHO_T}$dynamic_linker" >&6
17516
17659
test "$dynamic_linker" = no && can_build_shared=no
17517
17660
 
 
17661
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
17662
if test "$GCC" = yes; then
 
17663
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
17664
fi
 
17665
 
17518
17666
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17519
17667
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17520
17668
hardcode_action_GCJ=
17521
17669
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17522
 
   test -n "$runpath_var GCJ" || \
17523
 
   test "X$hardcode_automatic_GCJ"="Xyes" ; then
 
17670
   test -n "$runpath_var_GCJ" || \
 
17671
   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17524
17672
 
17525
17673
  # We can hardcode non-existant directories.
17526
17674
  if test "$hardcode_direct_GCJ" != no &&
17552
17700
  enable_fast_install=needless
17553
17701
fi
17554
17702
 
17555
 
striplib=
17556
 
old_striplib=
17557
 
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17558
 
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17559
 
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17560
 
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17561
 
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17562
 
  echo "$as_me:$LINENO: result: yes" >&5
17563
 
echo "${ECHO_T}yes" >&6
17564
 
else
17565
 
# FIXME - insert some real tests, host_os isn't really good enough
17566
 
  case $host_os in
17567
 
   darwin*)
17568
 
       if test -n "$STRIP" ; then
17569
 
         striplib="$STRIP -x"
17570
 
         echo "$as_me:$LINENO: result: yes" >&5
17571
 
echo "${ECHO_T}yes" >&6
17572
 
       else
17573
 
  echo "$as_me:$LINENO: result: no" >&5
17574
 
echo "${ECHO_T}no" >&6
17575
 
fi
17576
 
       ;;
17577
 
   *)
17578
 
  echo "$as_me:$LINENO: result: no" >&5
17579
 
echo "${ECHO_T}no" >&6
17580
 
    ;;
17581
 
  esac
17582
 
fi
17583
 
 
17584
 
if test "x$enable_dlopen" != xyes; then
17585
 
  enable_dlopen=unknown
17586
 
  enable_dlopen_self=unknown
17587
 
  enable_dlopen_self_static=unknown
17588
 
else
17589
 
  lt_cv_dlopen=no
17590
 
  lt_cv_dlopen_libs=
17591
 
 
17592
 
  case $host_os in
17593
 
  beos*)
17594
 
    lt_cv_dlopen="load_add_on"
17595
 
    lt_cv_dlopen_libs=
17596
 
    lt_cv_dlopen_self=yes
17597
 
    ;;
17598
 
 
17599
 
  mingw* | pw32*)
17600
 
    lt_cv_dlopen="LoadLibrary"
17601
 
    lt_cv_dlopen_libs=
17602
 
   ;;
17603
 
 
17604
 
  cygwin*)
17605
 
    lt_cv_dlopen="dlopen"
17606
 
    lt_cv_dlopen_libs=
17607
 
   ;;
17608
 
 
17609
 
  darwin*)
17610
 
  # if libdl is installed we need to link against it
17611
 
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17612
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17613
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17614
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17615
 
else
17616
 
  ac_check_lib_save_LIBS=$LIBS
17617
 
LIBS="-ldl  $LIBS"
17618
 
cat >conftest.$ac_ext <<_ACEOF
17619
 
/* confdefs.h.  */
17620
 
_ACEOF
17621
 
cat confdefs.h >>conftest.$ac_ext
17622
 
cat >>conftest.$ac_ext <<_ACEOF
17623
 
/* end confdefs.h.  */
17624
 
 
17625
 
/* Override any gcc2 internal prototype to avoid an error.  */
17626
 
#ifdef __cplusplus
17627
 
extern "C"
17628
 
#endif
17629
 
/* We use char because int might match the return type of a gcc2
17630
 
   builtin and then its argument prototype would still apply.  */
17631
 
char dlopen ();
17632
 
int
17633
 
main ()
17634
 
{
17635
 
dlopen ();
17636
 
  ;
17637
 
  return 0;
17638
 
}
17639
 
_ACEOF
17640
 
rm -f conftest.$ac_objext conftest$ac_exeext
17641
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17642
 
  (eval $ac_link) 2>conftest.er1
17643
 
  ac_status=$?
17644
 
  grep -v '^ *+' conftest.er1 >conftest.err
17645
 
  rm -f conftest.er1
17646
 
  cat conftest.err >&5
17647
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17648
 
  (exit $ac_status); } &&
17649
 
         { ac_try='test -z "$ac_c_werror_flag"
17650
 
                         || test ! -s conftest.err'
17651
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17652
 
  (eval $ac_try) 2>&5
17653
 
  ac_status=$?
17654
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17655
 
  (exit $ac_status); }; } &&
17656
 
         { ac_try='test -s conftest$ac_exeext'
17657
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17658
 
  (eval $ac_try) 2>&5
17659
 
  ac_status=$?
17660
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17661
 
  (exit $ac_status); }; }; then
17662
 
  ac_cv_lib_dl_dlopen=yes
17663
 
else
17664
 
  echo "$as_me: failed program was:" >&5
17665
 
sed 's/^/| /' conftest.$ac_ext >&5
17666
 
 
17667
 
ac_cv_lib_dl_dlopen=no
17668
 
fi
17669
 
rm -f conftest.err conftest.$ac_objext \
17670
 
      conftest$ac_exeext conftest.$ac_ext
17671
 
LIBS=$ac_check_lib_save_LIBS
17672
 
fi
17673
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17674
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17675
 
if test $ac_cv_lib_dl_dlopen = yes; then
17676
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17677
 
else
17678
 
 
17679
 
    lt_cv_dlopen="dyld"
17680
 
    lt_cv_dlopen_libs=
17681
 
    lt_cv_dlopen_self=yes
17682
 
 
17683
 
fi
17684
 
 
17685
 
   ;;
17686
 
 
17687
 
  *)
17688
 
    echo "$as_me:$LINENO: checking for shl_load" >&5
17689
 
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17690
 
if test "${ac_cv_func_shl_load+set}" = set; then
17691
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17692
 
else
17693
 
  cat >conftest.$ac_ext <<_ACEOF
17694
 
/* confdefs.h.  */
17695
 
_ACEOF
17696
 
cat confdefs.h >>conftest.$ac_ext
17697
 
cat >>conftest.$ac_ext <<_ACEOF
17698
 
/* end confdefs.h.  */
17699
 
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17700
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17701
 
#define shl_load innocuous_shl_load
17702
 
 
17703
 
/* System header to define __stub macros and hopefully few prototypes,
17704
 
    which can conflict with char shl_load (); below.
17705
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17706
 
    <limits.h> exists even on freestanding compilers.  */
17707
 
 
17708
 
#ifdef __STDC__
17709
 
# include <limits.h>
17710
 
#else
17711
 
# include <assert.h>
17712
 
#endif
17713
 
 
17714
 
#undef shl_load
17715
 
 
17716
 
/* Override any gcc2 internal prototype to avoid an error.  */
17717
 
#ifdef __cplusplus
17718
 
extern "C"
17719
 
{
17720
 
#endif
17721
 
/* We use char because int might match the return type of a gcc2
17722
 
   builtin and then its argument prototype would still apply.  */
17723
 
char shl_load ();
17724
 
/* The GNU C library defines this for functions which it implements
17725
 
    to always fail with ENOSYS.  Some functions are actually named
17726
 
    something starting with __ and the normal name is an alias.  */
17727
 
#if defined (__stub_shl_load) || defined (__stub___shl_load)
17728
 
choke me
17729
 
#else
17730
 
char (*f) () = shl_load;
17731
 
#endif
17732
 
#ifdef __cplusplus
17733
 
}
17734
 
#endif
17735
 
 
17736
 
int
17737
 
main ()
17738
 
{
17739
 
return f != shl_load;
17740
 
  ;
17741
 
  return 0;
17742
 
}
17743
 
_ACEOF
17744
 
rm -f conftest.$ac_objext conftest$ac_exeext
17745
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17746
 
  (eval $ac_link) 2>conftest.er1
17747
 
  ac_status=$?
17748
 
  grep -v '^ *+' conftest.er1 >conftest.err
17749
 
  rm -f conftest.er1
17750
 
  cat conftest.err >&5
17751
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17752
 
  (exit $ac_status); } &&
17753
 
         { ac_try='test -z "$ac_c_werror_flag"
17754
 
                         || test ! -s conftest.err'
17755
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17756
 
  (eval $ac_try) 2>&5
17757
 
  ac_status=$?
17758
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17759
 
  (exit $ac_status); }; } &&
17760
 
         { ac_try='test -s conftest$ac_exeext'
17761
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17762
 
  (eval $ac_try) 2>&5
17763
 
  ac_status=$?
17764
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17765
 
  (exit $ac_status); }; }; then
17766
 
  ac_cv_func_shl_load=yes
17767
 
else
17768
 
  echo "$as_me: failed program was:" >&5
17769
 
sed 's/^/| /' conftest.$ac_ext >&5
17770
 
 
17771
 
ac_cv_func_shl_load=no
17772
 
fi
17773
 
rm -f conftest.err conftest.$ac_objext \
17774
 
      conftest$ac_exeext conftest.$ac_ext
17775
 
fi
17776
 
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17777
 
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17778
 
if test $ac_cv_func_shl_load = yes; then
17779
 
  lt_cv_dlopen="shl_load"
17780
 
else
17781
 
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17782
 
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17783
 
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17784
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17785
 
else
17786
 
  ac_check_lib_save_LIBS=$LIBS
17787
 
LIBS="-ldld  $LIBS"
17788
 
cat >conftest.$ac_ext <<_ACEOF
17789
 
/* confdefs.h.  */
17790
 
_ACEOF
17791
 
cat confdefs.h >>conftest.$ac_ext
17792
 
cat >>conftest.$ac_ext <<_ACEOF
17793
 
/* end confdefs.h.  */
17794
 
 
17795
 
/* Override any gcc2 internal prototype to avoid an error.  */
17796
 
#ifdef __cplusplus
17797
 
extern "C"
17798
 
#endif
17799
 
/* We use char because int might match the return type of a gcc2
17800
 
   builtin and then its argument prototype would still apply.  */
17801
 
char shl_load ();
17802
 
int
17803
 
main ()
17804
 
{
17805
 
shl_load ();
17806
 
  ;
17807
 
  return 0;
17808
 
}
17809
 
_ACEOF
17810
 
rm -f conftest.$ac_objext conftest$ac_exeext
17811
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17812
 
  (eval $ac_link) 2>conftest.er1
17813
 
  ac_status=$?
17814
 
  grep -v '^ *+' conftest.er1 >conftest.err
17815
 
  rm -f conftest.er1
17816
 
  cat conftest.err >&5
17817
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17818
 
  (exit $ac_status); } &&
17819
 
         { ac_try='test -z "$ac_c_werror_flag"
17820
 
                         || test ! -s conftest.err'
17821
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17822
 
  (eval $ac_try) 2>&5
17823
 
  ac_status=$?
17824
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17825
 
  (exit $ac_status); }; } &&
17826
 
         { ac_try='test -s conftest$ac_exeext'
17827
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17828
 
  (eval $ac_try) 2>&5
17829
 
  ac_status=$?
17830
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17831
 
  (exit $ac_status); }; }; then
17832
 
  ac_cv_lib_dld_shl_load=yes
17833
 
else
17834
 
  echo "$as_me: failed program was:" >&5
17835
 
sed 's/^/| /' conftest.$ac_ext >&5
17836
 
 
17837
 
ac_cv_lib_dld_shl_load=no
17838
 
fi
17839
 
rm -f conftest.err conftest.$ac_objext \
17840
 
      conftest$ac_exeext conftest.$ac_ext
17841
 
LIBS=$ac_check_lib_save_LIBS
17842
 
fi
17843
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17844
 
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17845
 
if test $ac_cv_lib_dld_shl_load = yes; then
17846
 
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17847
 
else
17848
 
  echo "$as_me:$LINENO: checking for dlopen" >&5
17849
 
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17850
 
if test "${ac_cv_func_dlopen+set}" = set; then
17851
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17852
 
else
17853
 
  cat >conftest.$ac_ext <<_ACEOF
17854
 
/* confdefs.h.  */
17855
 
_ACEOF
17856
 
cat confdefs.h >>conftest.$ac_ext
17857
 
cat >>conftest.$ac_ext <<_ACEOF
17858
 
/* end confdefs.h.  */
17859
 
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17860
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17861
 
#define dlopen innocuous_dlopen
17862
 
 
17863
 
/* System header to define __stub macros and hopefully few prototypes,
17864
 
    which can conflict with char dlopen (); below.
17865
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17866
 
    <limits.h> exists even on freestanding compilers.  */
17867
 
 
17868
 
#ifdef __STDC__
17869
 
# include <limits.h>
17870
 
#else
17871
 
# include <assert.h>
17872
 
#endif
17873
 
 
17874
 
#undef dlopen
17875
 
 
17876
 
/* Override any gcc2 internal prototype to avoid an error.  */
17877
 
#ifdef __cplusplus
17878
 
extern "C"
17879
 
{
17880
 
#endif
17881
 
/* We use char because int might match the return type of a gcc2
17882
 
   builtin and then its argument prototype would still apply.  */
17883
 
char dlopen ();
17884
 
/* The GNU C library defines this for functions which it implements
17885
 
    to always fail with ENOSYS.  Some functions are actually named
17886
 
    something starting with __ and the normal name is an alias.  */
17887
 
#if defined (__stub_dlopen) || defined (__stub___dlopen)
17888
 
choke me
17889
 
#else
17890
 
char (*f) () = dlopen;
17891
 
#endif
17892
 
#ifdef __cplusplus
17893
 
}
17894
 
#endif
17895
 
 
17896
 
int
17897
 
main ()
17898
 
{
17899
 
return f != dlopen;
17900
 
  ;
17901
 
  return 0;
17902
 
}
17903
 
_ACEOF
17904
 
rm -f conftest.$ac_objext conftest$ac_exeext
17905
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17906
 
  (eval $ac_link) 2>conftest.er1
17907
 
  ac_status=$?
17908
 
  grep -v '^ *+' conftest.er1 >conftest.err
17909
 
  rm -f conftest.er1
17910
 
  cat conftest.err >&5
17911
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17912
 
  (exit $ac_status); } &&
17913
 
         { ac_try='test -z "$ac_c_werror_flag"
17914
 
                         || test ! -s conftest.err'
17915
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17916
 
  (eval $ac_try) 2>&5
17917
 
  ac_status=$?
17918
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17919
 
  (exit $ac_status); }; } &&
17920
 
         { ac_try='test -s conftest$ac_exeext'
17921
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17922
 
  (eval $ac_try) 2>&5
17923
 
  ac_status=$?
17924
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17925
 
  (exit $ac_status); }; }; then
17926
 
  ac_cv_func_dlopen=yes
17927
 
else
17928
 
  echo "$as_me: failed program was:" >&5
17929
 
sed 's/^/| /' conftest.$ac_ext >&5
17930
 
 
17931
 
ac_cv_func_dlopen=no
17932
 
fi
17933
 
rm -f conftest.err conftest.$ac_objext \
17934
 
      conftest$ac_exeext conftest.$ac_ext
17935
 
fi
17936
 
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17937
 
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17938
 
if test $ac_cv_func_dlopen = yes; then
17939
 
  lt_cv_dlopen="dlopen"
17940
 
else
17941
 
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17942
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17943
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17944
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17945
 
else
17946
 
  ac_check_lib_save_LIBS=$LIBS
17947
 
LIBS="-ldl  $LIBS"
17948
 
cat >conftest.$ac_ext <<_ACEOF
17949
 
/* confdefs.h.  */
17950
 
_ACEOF
17951
 
cat confdefs.h >>conftest.$ac_ext
17952
 
cat >>conftest.$ac_ext <<_ACEOF
17953
 
/* end confdefs.h.  */
17954
 
 
17955
 
/* Override any gcc2 internal prototype to avoid an error.  */
17956
 
#ifdef __cplusplus
17957
 
extern "C"
17958
 
#endif
17959
 
/* We use char because int might match the return type of a gcc2
17960
 
   builtin and then its argument prototype would still apply.  */
17961
 
char dlopen ();
17962
 
int
17963
 
main ()
17964
 
{
17965
 
dlopen ();
17966
 
  ;
17967
 
  return 0;
17968
 
}
17969
 
_ACEOF
17970
 
rm -f conftest.$ac_objext conftest$ac_exeext
17971
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17972
 
  (eval $ac_link) 2>conftest.er1
17973
 
  ac_status=$?
17974
 
  grep -v '^ *+' conftest.er1 >conftest.err
17975
 
  rm -f conftest.er1
17976
 
  cat conftest.err >&5
17977
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17978
 
  (exit $ac_status); } &&
17979
 
         { ac_try='test -z "$ac_c_werror_flag"
17980
 
                         || test ! -s conftest.err'
17981
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17982
 
  (eval $ac_try) 2>&5
17983
 
  ac_status=$?
17984
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17985
 
  (exit $ac_status); }; } &&
17986
 
         { ac_try='test -s conftest$ac_exeext'
17987
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17988
 
  (eval $ac_try) 2>&5
17989
 
  ac_status=$?
17990
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17991
 
  (exit $ac_status); }; }; then
17992
 
  ac_cv_lib_dl_dlopen=yes
17993
 
else
17994
 
  echo "$as_me: failed program was:" >&5
17995
 
sed 's/^/| /' conftest.$ac_ext >&5
17996
 
 
17997
 
ac_cv_lib_dl_dlopen=no
17998
 
fi
17999
 
rm -f conftest.err conftest.$ac_objext \
18000
 
      conftest$ac_exeext conftest.$ac_ext
18001
 
LIBS=$ac_check_lib_save_LIBS
18002
 
fi
18003
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18004
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18005
 
if test $ac_cv_lib_dl_dlopen = yes; then
18006
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18007
 
else
18008
 
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18009
 
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18010
 
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18011
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
18012
 
else
18013
 
  ac_check_lib_save_LIBS=$LIBS
18014
 
LIBS="-lsvld  $LIBS"
18015
 
cat >conftest.$ac_ext <<_ACEOF
18016
 
/* confdefs.h.  */
18017
 
_ACEOF
18018
 
cat confdefs.h >>conftest.$ac_ext
18019
 
cat >>conftest.$ac_ext <<_ACEOF
18020
 
/* end confdefs.h.  */
18021
 
 
18022
 
/* Override any gcc2 internal prototype to avoid an error.  */
18023
 
#ifdef __cplusplus
18024
 
extern "C"
18025
 
#endif
18026
 
/* We use char because int might match the return type of a gcc2
18027
 
   builtin and then its argument prototype would still apply.  */
18028
 
char dlopen ();
18029
 
int
18030
 
main ()
18031
 
{
18032
 
dlopen ();
18033
 
  ;
18034
 
  return 0;
18035
 
}
18036
 
_ACEOF
18037
 
rm -f conftest.$ac_objext conftest$ac_exeext
18038
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18039
 
  (eval $ac_link) 2>conftest.er1
18040
 
  ac_status=$?
18041
 
  grep -v '^ *+' conftest.er1 >conftest.err
18042
 
  rm -f conftest.er1
18043
 
  cat conftest.err >&5
18044
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18045
 
  (exit $ac_status); } &&
18046
 
         { ac_try='test -z "$ac_c_werror_flag"
18047
 
                         || test ! -s conftest.err'
18048
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18049
 
  (eval $ac_try) 2>&5
18050
 
  ac_status=$?
18051
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18052
 
  (exit $ac_status); }; } &&
18053
 
         { ac_try='test -s conftest$ac_exeext'
18054
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18055
 
  (eval $ac_try) 2>&5
18056
 
  ac_status=$?
18057
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18058
 
  (exit $ac_status); }; }; then
18059
 
  ac_cv_lib_svld_dlopen=yes
18060
 
else
18061
 
  echo "$as_me: failed program was:" >&5
18062
 
sed 's/^/| /' conftest.$ac_ext >&5
18063
 
 
18064
 
ac_cv_lib_svld_dlopen=no
18065
 
fi
18066
 
rm -f conftest.err conftest.$ac_objext \
18067
 
      conftest$ac_exeext conftest.$ac_ext
18068
 
LIBS=$ac_check_lib_save_LIBS
18069
 
fi
18070
 
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18071
 
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18072
 
if test $ac_cv_lib_svld_dlopen = yes; then
18073
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18074
 
else
18075
 
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18076
 
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18077
 
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18078
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
18079
 
else
18080
 
  ac_check_lib_save_LIBS=$LIBS
18081
 
LIBS="-ldld  $LIBS"
18082
 
cat >conftest.$ac_ext <<_ACEOF
18083
 
/* confdefs.h.  */
18084
 
_ACEOF
18085
 
cat confdefs.h >>conftest.$ac_ext
18086
 
cat >>conftest.$ac_ext <<_ACEOF
18087
 
/* end confdefs.h.  */
18088
 
 
18089
 
/* Override any gcc2 internal prototype to avoid an error.  */
18090
 
#ifdef __cplusplus
18091
 
extern "C"
18092
 
#endif
18093
 
/* We use char because int might match the return type of a gcc2
18094
 
   builtin and then its argument prototype would still apply.  */
18095
 
char dld_link ();
18096
 
int
18097
 
main ()
18098
 
{
18099
 
dld_link ();
18100
 
  ;
18101
 
  return 0;
18102
 
}
18103
 
_ACEOF
18104
 
rm -f conftest.$ac_objext conftest$ac_exeext
18105
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18106
 
  (eval $ac_link) 2>conftest.er1
18107
 
  ac_status=$?
18108
 
  grep -v '^ *+' conftest.er1 >conftest.err
18109
 
  rm -f conftest.er1
18110
 
  cat conftest.err >&5
18111
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18112
 
  (exit $ac_status); } &&
18113
 
         { ac_try='test -z "$ac_c_werror_flag"
18114
 
                         || test ! -s conftest.err'
18115
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18116
 
  (eval $ac_try) 2>&5
18117
 
  ac_status=$?
18118
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18119
 
  (exit $ac_status); }; } &&
18120
 
         { ac_try='test -s conftest$ac_exeext'
18121
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18122
 
  (eval $ac_try) 2>&5
18123
 
  ac_status=$?
18124
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18125
 
  (exit $ac_status); }; }; then
18126
 
  ac_cv_lib_dld_dld_link=yes
18127
 
else
18128
 
  echo "$as_me: failed program was:" >&5
18129
 
sed 's/^/| /' conftest.$ac_ext >&5
18130
 
 
18131
 
ac_cv_lib_dld_dld_link=no
18132
 
fi
18133
 
rm -f conftest.err conftest.$ac_objext \
18134
 
      conftest$ac_exeext conftest.$ac_ext
18135
 
LIBS=$ac_check_lib_save_LIBS
18136
 
fi
18137
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18138
 
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18139
 
if test $ac_cv_lib_dld_dld_link = yes; then
18140
 
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18141
 
fi
18142
 
 
18143
 
 
18144
 
fi
18145
 
 
18146
 
 
18147
 
fi
18148
 
 
18149
 
 
18150
 
fi
18151
 
 
18152
 
 
18153
 
fi
18154
 
 
18155
 
 
18156
 
fi
18157
 
 
18158
 
    ;;
18159
 
  esac
18160
 
 
18161
 
  if test "x$lt_cv_dlopen" != xno; then
18162
 
    enable_dlopen=yes
18163
 
  else
18164
 
    enable_dlopen=no
18165
 
  fi
18166
 
 
18167
 
  case $lt_cv_dlopen in
18168
 
  dlopen)
18169
 
    save_CPPFLAGS="$CPPFLAGS"
18170
 
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18171
 
 
18172
 
    save_LDFLAGS="$LDFLAGS"
18173
 
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18174
 
 
18175
 
    save_LIBS="$LIBS"
18176
 
    LIBS="$lt_cv_dlopen_libs $LIBS"
18177
 
 
18178
 
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18179
 
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18180
 
if test "${lt_cv_dlopen_self+set}" = set; then
18181
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
18182
 
else
18183
 
          if test "$cross_compiling" = yes; then :
18184
 
  lt_cv_dlopen_self=cross
18185
 
else
18186
 
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18187
 
  lt_status=$lt_dlunknown
18188
 
  cat > conftest.$ac_ext <<EOF
18189
 
#line 18189 "configure"
18190
 
#include "confdefs.h"
18191
 
 
18192
 
#if HAVE_DLFCN_H
18193
 
#include <dlfcn.h>
18194
 
#endif
18195
 
 
18196
 
#include <stdio.h>
18197
 
 
18198
 
#ifdef RTLD_GLOBAL
18199
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
18200
 
#else
18201
 
#  ifdef DL_GLOBAL
18202
 
#    define LT_DLGLOBAL         DL_GLOBAL
18203
 
#  else
18204
 
#    define LT_DLGLOBAL         0
18205
 
#  endif
18206
 
#endif
18207
 
 
18208
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18209
 
   find out it does not work in some platform. */
18210
 
#ifndef LT_DLLAZY_OR_NOW
18211
 
#  ifdef RTLD_LAZY
18212
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18213
 
#  else
18214
 
#    ifdef DL_LAZY
18215
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
18216
 
#    else
18217
 
#      ifdef RTLD_NOW
18218
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
18219
 
#      else
18220
 
#        ifdef DL_NOW
18221
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
18222
 
#        else
18223
 
#          define LT_DLLAZY_OR_NOW      0
18224
 
#        endif
18225
 
#      endif
18226
 
#    endif
18227
 
#  endif
18228
 
#endif
18229
 
 
18230
 
#ifdef __cplusplus
18231
 
extern "C" void exit (int);
18232
 
#endif
18233
 
 
18234
 
void fnord() { int i=42;}
18235
 
int main ()
18236
 
{
18237
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18238
 
  int status = $lt_dlunknown;
18239
 
 
18240
 
  if (self)
18241
 
    {
18242
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18243
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18244
 
      /* dlclose (self); */
18245
 
    }
18246
 
 
18247
 
    exit (status);
18248
 
}
18249
 
EOF
18250
 
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18251
 
  (eval $ac_link) 2>&5
18252
 
  ac_status=$?
18253
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18254
 
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18255
 
    (./conftest; exit; ) 2>/dev/null
18256
 
    lt_status=$?
18257
 
    case x$lt_status in
18258
 
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18259
 
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18260
 
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18261
 
    esac
18262
 
  else :
18263
 
    # compilation failed
18264
 
    lt_cv_dlopen_self=no
18265
 
  fi
18266
 
fi
18267
 
rm -fr conftest*
18268
 
 
18269
 
 
18270
 
fi
18271
 
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18272
 
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18273
 
 
18274
 
    if test "x$lt_cv_dlopen_self" = xyes; then
18275
 
      LDFLAGS="$LDFLAGS $link_static_flag"
18276
 
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18277
 
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18278
 
if test "${lt_cv_dlopen_self_static+set}" = set; then
18279
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
18280
 
else
18281
 
          if test "$cross_compiling" = yes; then :
18282
 
  lt_cv_dlopen_self_static=cross
18283
 
else
18284
 
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18285
 
  lt_status=$lt_dlunknown
18286
 
  cat > conftest.$ac_ext <<EOF
18287
 
#line 18287 "configure"
18288
 
#include "confdefs.h"
18289
 
 
18290
 
#if HAVE_DLFCN_H
18291
 
#include <dlfcn.h>
18292
 
#endif
18293
 
 
18294
 
#include <stdio.h>
18295
 
 
18296
 
#ifdef RTLD_GLOBAL
18297
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
18298
 
#else
18299
 
#  ifdef DL_GLOBAL
18300
 
#    define LT_DLGLOBAL         DL_GLOBAL
18301
 
#  else
18302
 
#    define LT_DLGLOBAL         0
18303
 
#  endif
18304
 
#endif
18305
 
 
18306
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18307
 
   find out it does not work in some platform. */
18308
 
#ifndef LT_DLLAZY_OR_NOW
18309
 
#  ifdef RTLD_LAZY
18310
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18311
 
#  else
18312
 
#    ifdef DL_LAZY
18313
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
18314
 
#    else
18315
 
#      ifdef RTLD_NOW
18316
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
18317
 
#      else
18318
 
#        ifdef DL_NOW
18319
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
18320
 
#        else
18321
 
#          define LT_DLLAZY_OR_NOW      0
18322
 
#        endif
18323
 
#      endif
18324
 
#    endif
18325
 
#  endif
18326
 
#endif
18327
 
 
18328
 
#ifdef __cplusplus
18329
 
extern "C" void exit (int);
18330
 
#endif
18331
 
 
18332
 
void fnord() { int i=42;}
18333
 
int main ()
18334
 
{
18335
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18336
 
  int status = $lt_dlunknown;
18337
 
 
18338
 
  if (self)
18339
 
    {
18340
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18341
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18342
 
      /* dlclose (self); */
18343
 
    }
18344
 
 
18345
 
    exit (status);
18346
 
}
18347
 
EOF
18348
 
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18349
 
  (eval $ac_link) 2>&5
18350
 
  ac_status=$?
18351
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18352
 
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18353
 
    (./conftest; exit; ) 2>/dev/null
18354
 
    lt_status=$?
18355
 
    case x$lt_status in
18356
 
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18357
 
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18358
 
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18359
 
    esac
18360
 
  else :
18361
 
    # compilation failed
18362
 
    lt_cv_dlopen_self_static=no
18363
 
  fi
18364
 
fi
18365
 
rm -fr conftest*
18366
 
 
18367
 
 
18368
 
fi
18369
 
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18370
 
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18371
 
    fi
18372
 
 
18373
 
    CPPFLAGS="$save_CPPFLAGS"
18374
 
    LDFLAGS="$save_LDFLAGS"
18375
 
    LIBS="$save_LIBS"
18376
 
    ;;
18377
 
  esac
18378
 
 
18379
 
  case $lt_cv_dlopen_self in
18380
 
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18381
 
  *) enable_dlopen_self=unknown ;;
18382
 
  esac
18383
 
 
18384
 
  case $lt_cv_dlopen_self_static in
18385
 
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18386
 
  *) enable_dlopen_self_static=unknown ;;
18387
 
  esac
18388
 
fi
18389
 
 
18390
17703
 
18391
17704
# The else clause should only fire when bootstrapping the
18392
17705
# libtool distribution, otherwise you forgot to ship ltmain.sh
18401
17714
  # Now quote all the things that may contain metacharacters while being
18402
17715
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18403
17716
  # variables and quote the copies for generation of the libtool script.
18404
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
17717
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18405
17718
    SED SHELL STRIP \
18406
17719
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18407
17720
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18502
17815
# The host system.
18503
17816
host_alias=$host_alias
18504
17817
host=$host
 
17818
host_os=$host_os
 
17819
 
 
17820
# The build system.
 
17821
build_alias=$build_alias
 
17822
build=$build
 
17823
build_os=$build_os
18505
17824
 
18506
17825
# An echo program that does not interpret backslashes.
18507
17826
echo=$lt_echo
18513
17832
# A C compiler.
18514
17833
LTCC=$lt_LTCC
18515
17834
 
 
17835
# LTCC compiler flags.
 
17836
LTCFLAGS=$lt_LTCFLAGS
 
17837
 
18516
17838
# A language-specific compiler.
18517
17839
CC=$lt_compiler_GCJ
18518
17840
 
18563
17885
libext="$libext"
18564
17886
 
18565
17887
# Shared library suffix (normally ".so").
18566
 
shrext='$shrext'
 
17888
shrext_cmds='$shrext_cmds'
18567
17889
 
18568
17890
# Executable file suffix (normally "").
18569
17891
exeext="$exeext"
18578
17900
# Does compiler simultaneously support -c and -o options?
18579
17901
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18580
17902
 
18581
 
# Must we lock files when doing compilation ?
 
17903
# Must we lock files when doing compilation?
18582
17904
need_locks=$lt_need_locks
18583
17905
 
18584
17906
# Do we need the lib prefix for modules?
18822
18144
# If no C compiler was specified, use CC.
18823
18145
LTCC=${LTCC-"$CC"}
18824
18146
 
 
18147
# If no C compiler flags were specified, use CFLAGS.
 
18148
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
18149
 
18825
18150
# Allow CC to be a program name with arguments.
18826
18151
compiler=$CC
18827
18152
 
18828
18153
 
 
18154
# save warnings/boilerplate of simple test code
 
18155
ac_outfile=conftest.$ac_objext
 
18156
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
18157
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
18158
_lt_compiler_boilerplate=`cat conftest.err`
 
18159
$rm conftest*
 
18160
 
 
18161
ac_outfile=conftest.$ac_objext
 
18162
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
18163
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
18164
_lt_linker_boilerplate=`cat conftest.err`
 
18165
$rm conftest*
 
18166
 
 
18167
 
18829
18168
# Allow CC to be a program name with arguments.
18830
18169
lt_save_CC="$CC"
18831
18170
CC=${RC-"windres"}
18832
18171
compiler=$CC
18833
18172
compiler_RC=$CC
 
18173
for cc_temp in $compiler""; do
 
18174
  case $cc_temp in
 
18175
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
18176
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
18177
    \-*) ;;
 
18178
    *) break;;
 
18179
  esac
 
18180
done
 
18181
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
18182
 
18834
18183
lt_cv_prog_compiler_c_o_RC=yes
18835
18184
 
18836
18185
# The else clause should only fire when bootstrapping the
18846
18195
  # Now quote all the things that may contain metacharacters while being
18847
18196
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18848
18197
  # variables and quote the copies for generation of the libtool script.
18849
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
18198
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18850
18199
    SED SHELL STRIP \
18851
18200
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18852
18201
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18947
18296
# The host system.
18948
18297
host_alias=$host_alias
18949
18298
host=$host
 
18299
host_os=$host_os
 
18300
 
 
18301
# The build system.
 
18302
build_alias=$build_alias
 
18303
build=$build
 
18304
build_os=$build_os
18950
18305
 
18951
18306
# An echo program that does not interpret backslashes.
18952
18307
echo=$lt_echo
18958
18313
# A C compiler.
18959
18314
LTCC=$lt_LTCC
18960
18315
 
 
18316
# LTCC compiler flags.
 
18317
LTCFLAGS=$lt_LTCFLAGS
 
18318
 
18961
18319
# A language-specific compiler.
18962
18320
CC=$lt_compiler_RC
18963
18321
 
19008
18366
libext="$libext"
19009
18367
 
19010
18368
# Shared library suffix (normally ".so").
19011
 
shrext='$shrext'
 
18369
shrext_cmds='$shrext_cmds'
19012
18370
 
19013
18371
# Executable file suffix (normally "").
19014
18372
exeext="$exeext"
19023
18381
# Does compiler simultaneously support -c and -o options?
19024
18382
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19025
18383
 
19026
 
# Must we lock files when doing compilation ?
 
18384
# Must we lock files when doing compilation?
19027
18385
need_locks=$lt_need_locks
19028
18386
 
19029
18387
# Do we need the lib prefix for modules?
19270
18628
fi
19271
18629
 
19272
18630
 
19273
 
  if test ! -f "${ofile}"; then
19274
 
    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
19275
 
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
19276
 
  fi
19277
 
  if test -z `grep -e 'shared_ext.*shrext' $ofile`; then
19278
 
    # Make sure $shared_ext gets set to $shrext
19279
 
    if sed -e 's/shared_ext/shrext/g' "$ofile" > "${ofile}T"; then
19280
 
      mv "${ofile}T" "$ofile"
19281
 
      chmod +x "$ofile"
19282
 
    else
19283
 
      rm -f "${ofile}T"
19284
 
      { { echo "$as_me:$LINENO: error: unable to update shared_ext." >&5
19285
 
echo "$as_me: error: unable to update shared_ext." >&2;}
19286
 
   { (exit 1); exit 1; }; }
19287
 
    fi
19288
 
  fi
19289
 
 
19290
 
 
19291
18631
 
19292
18632
# This can be used to rebuild libtool when needed
19293
18633
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19742
19082
echo $ECHO_N "checking for FREETYPE... $ECHO_C" >&6
19743
19083
 
19744
19084
if test -n "$PKG_CONFIG"; then
 
19085
    if test -n "$FREETYPE_CFLAGS"; then
 
19086
        pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
 
19087
    else
19745
19088
        if test -n "$PKG_CONFIG" && \
19746
19089
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"freetype2\"") >&5
19747
19090
  ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
19752
19095
else
19753
19096
  pkg_failed=yes
19754
19097
fi
 
19098
    fi
19755
19099
else
19756
19100
        pkg_failed=untried
19757
19101
fi
19758
19102
if test -n "$PKG_CONFIG"; then
 
19103
    if test -n "$FREETYPE_LIBS"; then
 
19104
        pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
 
19105
    else
19759
19106
        if test -n "$PKG_CONFIG" && \
19760
19107
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"freetype2\"") >&5
19761
19108
  ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
19766
19113
else
19767
19114
  pkg_failed=yes
19768
19115
fi
 
19116
    fi
19769
19117
else
19770
19118
        pkg_failed=untried
19771
19119
fi
19772
19120
 
 
19121
 
 
19122
 
19773
19123
if test $pkg_failed = yes; then
19774
 
        FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
 
19124
 
 
19125
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
19126
        _pkg_short_errors_supported=yes
 
19127
else
 
19128
        _pkg_short_errors_supported=no
 
19129
fi
 
19130
        if test $_pkg_short_errors_supported = yes; then
 
19131
                FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "freetype2"`
 
19132
        else
 
19133
                FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
 
19134
        fi
19775
19135
        # Put the nasty error message in config.log where it belongs
19776
 
        echo "$FREETYPE_PKG_ERRORS" 1>&5
 
19136
        echo "$FREETYPE_PKG_ERRORS" >&5
19777
19137
 
19778
19138
        freetype_config=yes
19779
19139
elif test $pkg_failed = untried; then
20144
19504
echo $ECHO_N "checking for FONTCACHEPROTO... $ECHO_C" >&6
20145
19505
 
20146
19506
if test -n "$PKG_CONFIG"; then
 
19507
    if test -n "$FONTCACHEPROTO_CFLAGS"; then
 
19508
        pkg_cv_FONTCACHEPROTO_CFLAGS="$FONTCACHEPROTO_CFLAGS"
 
19509
    else
20147
19510
        if test -n "$PKG_CONFIG" && \
20148
19511
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"fontcacheproto\"") >&5
20149
19512
  ($PKG_CONFIG --exists --print-errors "fontcacheproto") 2>&5
20154
19517
else
20155
19518
  pkg_failed=yes
20156
19519
fi
 
19520
    fi
20157
19521
else
20158
19522
        pkg_failed=untried
20159
19523
fi
20160
19524
if test -n "$PKG_CONFIG"; then
 
19525
    if test -n "$FONTCACHEPROTO_LIBS"; then
 
19526
        pkg_cv_FONTCACHEPROTO_LIBS="$FONTCACHEPROTO_LIBS"
 
19527
    else
20161
19528
        if test -n "$PKG_CONFIG" && \
20162
19529
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"fontcacheproto\"") >&5
20163
19530
  ($PKG_CONFIG --exists --print-errors "fontcacheproto") 2>&5
20168
19535
else
20169
19536
  pkg_failed=yes
20170
19537
fi
 
19538
    fi
20171
19539
else
20172
19540
        pkg_failed=untried
20173
19541
fi
20174
19542
 
 
19543
 
 
19544
 
20175
19545
if test $pkg_failed = yes; then
20176
 
        FONTCACHEPROTO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontcacheproto"`
 
19546
 
 
19547
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
19548
        _pkg_short_errors_supported=yes
 
19549
else
 
19550
        _pkg_short_errors_supported=no
 
19551
fi
 
19552
        if test $_pkg_short_errors_supported = yes; then
 
19553
                FONTCACHEPROTO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "fontcacheproto"`
 
19554
        else
 
19555
                FONTCACHEPROTO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontcacheproto"`
 
19556
        fi
20177
19557
        # Put the nasty error message in config.log where it belongs
20178
 
        echo "$FONTCACHEPROTO_PKG_ERRORS" 1>&5
20179
 
 
20180
 
        { { echo "$as_me:$LINENO: error: Package requirements (fontcacheproto) were not met.
20181
 
Consider adjusting the PKG_CONFIG_PATH environment variable if you
20182
 
installed software in a non-standard prefix.
20183
 
 
20184
 
Alternatively you may set the FONTCACHEPROTO_CFLAGS and FONTCACHEPROTO_LIBS environment variables
20185
 
to avoid the need to call pkg-config.  See the pkg-config man page for
20186
 
more details." >&5
20187
 
echo "$as_me: error: Package requirements (fontcacheproto) were not met.
20188
 
Consider adjusting the PKG_CONFIG_PATH environment variable if you
20189
 
installed software in a non-standard prefix.
20190
 
 
20191
 
Alternatively you may set the FONTCACHEPROTO_CFLAGS and FONTCACHEPROTO_LIBS environment variables
20192
 
to avoid the need to call pkg-config.  See the pkg-config man page for
20193
 
more details." >&2;}
 
19558
        echo "$FONTCACHEPROTO_PKG_ERRORS" >&5
 
19559
 
 
19560
        { { echo "$as_me:$LINENO: error: Package requirements (fontcacheproto) were not met:
 
19561
 
 
19562
$FONTCACHEPROTO_PKG_ERRORS
 
19563
 
 
19564
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
19565
installed software in a non-standard prefix.
 
19566
 
 
19567
Alternatively, you may set the environment variables FONTCACHEPROTO_CFLAGS
 
19568
and FONTCACHEPROTO_LIBS to avoid the need to call pkg-config.
 
19569
See the pkg-config man page for more details.
 
19570
" >&5
 
19571
echo "$as_me: error: Package requirements (fontcacheproto) were not met:
 
19572
 
 
19573
$FONTCACHEPROTO_PKG_ERRORS
 
19574
 
 
19575
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
19576
installed software in a non-standard prefix.
 
19577
 
 
19578
Alternatively, you may set the environment variables FONTCACHEPROTO_CFLAGS
 
19579
and FONTCACHEPROTO_LIBS to avoid the need to call pkg-config.
 
19580
See the pkg-config man page for more details.
 
19581
" >&2;}
20194
19582
   { (exit 1); exit 1; }; }
20195
19583
elif test $pkg_failed = untried; then
20196
19584
        { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
20197
19585
is in your PATH or set the PKG_CONFIG environment variable to the full
20198
19586
path to pkg-config.
20199
19587
 
20200
 
Alternatively you may set the FONTCACHEPROTO_CFLAGS and FONTCACHEPROTO_LIBS environment variables
20201
 
to avoid the need to call pkg-config.  See the pkg-config man page for
20202
 
more details.
 
19588
Alternatively, you may set the environment variables FONTCACHEPROTO_CFLAGS
 
19589
and FONTCACHEPROTO_LIBS to avoid the need to call pkg-config.
 
19590
See the pkg-config man page for more details.
20203
19591
 
20204
19592
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
20205
19593
See \`config.log' for more details." >&5
20207
19595
is in your PATH or set the PKG_CONFIG environment variable to the full
20208
19596
path to pkg-config.
20209
19597
 
20210
 
Alternatively you may set the FONTCACHEPROTO_CFLAGS and FONTCACHEPROTO_LIBS environment variables
20211
 
to avoid the need to call pkg-config.  See the pkg-config man page for
20212
 
more details.
 
19598
Alternatively, you may set the environment variables FONTCACHEPROTO_CFLAGS
 
19599
and FONTCACHEPROTO_LIBS to avoid the need to call pkg-config.
 
19600
See the pkg-config man page for more details.
20213
19601
 
20214
19602
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
20215
19603
See \`config.log' for more details." >&2;}
20410
19798
echo $ECHO_N "checking for XFONT... $ECHO_C" >&6
20411
19799
 
20412
19800
if test -n "$PKG_CONFIG"; then
 
19801
    if test -n "$XFONT_CFLAGS"; then
 
19802
        pkg_cv_XFONT_CFLAGS="$XFONT_CFLAGS"
 
19803
    else
20413
19804
        if test -n "$PKG_CONFIG" && \
20414
19805
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xproto xtrans fontsproto fontenc\"") >&5
20415
19806
  ($PKG_CONFIG --exists --print-errors "xproto xtrans fontsproto fontenc") 2>&5
20420
19811
else
20421
19812
  pkg_failed=yes
20422
19813
fi
 
19814
    fi
20423
19815
else
20424
19816
        pkg_failed=untried
20425
19817
fi
20426
19818
if test -n "$PKG_CONFIG"; then
 
19819
    if test -n "$XFONT_LIBS"; then
 
19820
        pkg_cv_XFONT_LIBS="$XFONT_LIBS"
 
19821
    else
20427
19822
        if test -n "$PKG_CONFIG" && \
20428
19823
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xproto xtrans fontsproto fontenc\"") >&5
20429
19824
  ($PKG_CONFIG --exists --print-errors "xproto xtrans fontsproto fontenc") 2>&5
20434
19829
else
20435
19830
  pkg_failed=yes
20436
19831
fi
 
19832
    fi
20437
19833
else
20438
19834
        pkg_failed=untried
20439
19835
fi
20440
19836
 
 
19837
 
 
19838
 
20441
19839
if test $pkg_failed = yes; then
20442
 
        XFONT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xproto xtrans fontsproto fontenc"`
 
19840
 
 
19841
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
19842
        _pkg_short_errors_supported=yes
 
19843
else
 
19844
        _pkg_short_errors_supported=no
 
19845
fi
 
19846
        if test $_pkg_short_errors_supported = yes; then
 
19847
                XFONT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xproto xtrans fontsproto fontenc"`
 
19848
        else
 
19849
                XFONT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xproto xtrans fontsproto fontenc"`
 
19850
        fi
20443
19851
        # Put the nasty error message in config.log where it belongs
20444
 
        echo "$XFONT_PKG_ERRORS" 1>&5
20445
 
 
20446
 
        { { echo "$as_me:$LINENO: error: Package requirements (xproto xtrans fontsproto fontenc) were not met.
20447
 
Consider adjusting the PKG_CONFIG_PATH environment variable if you
20448
 
installed software in a non-standard prefix.
20449
 
 
20450
 
Alternatively you may set the XFONT_CFLAGS and XFONT_LIBS environment variables
20451
 
to avoid the need to call pkg-config.  See the pkg-config man page for
20452
 
more details." >&5
20453
 
echo "$as_me: error: Package requirements (xproto xtrans fontsproto fontenc) were not met.
20454
 
Consider adjusting the PKG_CONFIG_PATH environment variable if you
20455
 
installed software in a non-standard prefix.
20456
 
 
20457
 
Alternatively you may set the XFONT_CFLAGS and XFONT_LIBS environment variables
20458
 
to avoid the need to call pkg-config.  See the pkg-config man page for
20459
 
more details." >&2;}
 
19852
        echo "$XFONT_PKG_ERRORS" >&5
 
19853
 
 
19854
        { { echo "$as_me:$LINENO: error: Package requirements (xproto xtrans fontsproto fontenc) were not met:
 
19855
 
 
19856
$XFONT_PKG_ERRORS
 
19857
 
 
19858
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
19859
installed software in a non-standard prefix.
 
19860
 
 
19861
Alternatively, you may set the environment variables XFONT_CFLAGS
 
19862
and XFONT_LIBS to avoid the need to call pkg-config.
 
19863
See the pkg-config man page for more details.
 
19864
" >&5
 
19865
echo "$as_me: error: Package requirements (xproto xtrans fontsproto fontenc) were not met:
 
19866
 
 
19867
$XFONT_PKG_ERRORS
 
19868
 
 
19869
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
19870
installed software in a non-standard prefix.
 
19871
 
 
19872
Alternatively, you may set the environment variables XFONT_CFLAGS
 
19873
and XFONT_LIBS to avoid the need to call pkg-config.
 
19874
See the pkg-config man page for more details.
 
19875
" >&2;}
20460
19876
   { (exit 1); exit 1; }; }
20461
19877
elif test $pkg_failed = untried; then
20462
19878
        { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
20463
19879
is in your PATH or set the PKG_CONFIG environment variable to the full
20464
19880
path to pkg-config.
20465
19881
 
20466
 
Alternatively you may set the XFONT_CFLAGS and XFONT_LIBS environment variables
20467
 
to avoid the need to call pkg-config.  See the pkg-config man page for
20468
 
more details.
 
19882
Alternatively, you may set the environment variables XFONT_CFLAGS
 
19883
and XFONT_LIBS to avoid the need to call pkg-config.
 
19884
See the pkg-config man page for more details.
20469
19885
 
20470
19886
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
20471
19887
See \`config.log' for more details." >&5
20473
19889
is in your PATH or set the PKG_CONFIG environment variable to the full
20474
19890
path to pkg-config.
20475
19891
 
20476
 
Alternatively you may set the XFONT_CFLAGS and XFONT_LIBS environment variables
20477
 
to avoid the need to call pkg-config.  See the pkg-config man page for
20478
 
more details.
 
19892
Alternatively, you may set the environment variables XFONT_CFLAGS
 
19893
and XFONT_LIBS to avoid the need to call pkg-config.
 
19894
See the pkg-config man page for more details.
20479
19895
 
20480
19896
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
20481
19897
See \`config.log' for more details." >&2;}
21592
21008
} >&5
21593
21009
cat >&5 <<_CSEOF
21594
21010
 
21595
 
This file was extended by libXfont $as_me 1.0.0, which was
 
21011
This file was extended by libXfont $as_me 1.2.0, which was
21596
21012
generated by GNU Autoconf 2.59.  Invocation command line was
21597
21013
 
21598
21014
  CONFIG_FILES    = $CONFIG_FILES
21655
21071
 
21656
21072
cat >>$CONFIG_STATUS <<_ACEOF
21657
21073
ac_cs_version="\\
21658
 
libXfont config.status 1.0.0
 
21074
libXfont config.status 1.2.0
21659
21075
configured by $0, generated by GNU Autoconf 2.59,
21660
21076
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21661
21077
 
21877
21293
s,@AUTOMAKE@,$AUTOMAKE,;t t
21878
21294
s,@AUTOHEADER@,$AUTOHEADER,;t t
21879
21295
s,@MAKEINFO@,$MAKEINFO,;t t
21880
 
s,@AMTAR@,$AMTAR,;t t
21881
21296
s,@install_sh@,$install_sh,;t t
21882
21297
s,@STRIP@,$STRIP,;t t
21883
21298
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
21884
21299
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
 
21300
s,@mkdir_p@,$mkdir_p,;t t
21885
21301
s,@AWK@,$AWK,;t t
21886
21302
s,@SET_MAKE@,$SET_MAKE,;t t
21887
21303
s,@am__leading_dot@,$am__leading_dot,;t t
 
21304
s,@AMTAR@,$AMTAR,;t t
 
21305
s,@am__tar@,$am__tar,;t t
 
21306
s,@am__untar@,$am__untar,;t t
21888
21307
s,@CC@,$CC,;t t
21889
21308
s,@CFLAGS@,$CFLAGS,;t t
21890
21309
s,@LDFLAGS@,$LDFLAGS,;t t
22590
22009
  else
22591
22010
    continue
22592
22011
  fi
22593
 
  grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
22594
 
  # Extract the definition of DEP_FILES from the Makefile without
22595
 
  # running `make'.
22596
 
  DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
 
22012
  # Extract the definition of DEPDIR, am__include, and am__quote
 
22013
  # from the Makefile without running `make'.
 
22014
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22597
22015
  test -z "$DEPDIR" && continue
 
22016
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
22017
  test -z "am__include" && continue
 
22018
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22598
22019
  # When using ansi2knr, U may be empty or an underscore; expand it
22599
 
  U=`sed -n -e '/^U = / s///p' < "$mf"`
22600
 
  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
22601
 
  # We invoke sed twice because it is the simplest approach to
22602
 
  # changing $(DEPDIR) to its actual value in the expansion.
22603
 
  for file in `sed -n -e '
22604
 
    /^DEP_FILES = .*\\\\$/ {
22605
 
      s/^DEP_FILES = //
22606
 
      :loop
22607
 
        s/\\\\$//
22608
 
        p
22609
 
        n
22610
 
        /\\\\$/ b loop
22611
 
      p
22612
 
    }
22613
 
    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
 
22020
  U=`sed -n 's/^U = //p' < "$mf"`
 
22021
  # Find all dependency output files, they are included files with
 
22022
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
22023
  # simplest approach to changing $(DEPDIR) to its actual value in the
 
22024
  # expansion.
 
22025
  for file in `sed -n "
 
22026
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22614
22027
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22615
22028
    # Make sure the directory exists.
22616
22029
    test -f "$dirpart/$file" && continue