~ubuntu-branches/ubuntu/lucid/php5/lucid

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Chuck Short
  • Date: 2010-03-16 09:09:50 UTC
  • mfrom: (1.1.18 upstream) (0.3.10 sid)
  • Revision ID: james.westby@ubuntu.com-20100316090950-e36m0pzranoixifd
Tags: 5.3.2-1ubuntu1
* Merge from debian unstable: 
  - debian/control:
    * Dropped firebird2.1-dev, libc-client-dev, libmcrypt-dev as it is in universe.
    * Dropped libmysqlclient15-dev, build against mysql 5.1.
    * Dropped libcurl-dev not in the archive.
    * Suggest php5-suhosin rather than recommends.
    * Dropped php5-imap, php5-interbase, php5-mcrypt since we have versions already in
      universe.
    * Dropped libonig-dev and libqgdbm since its in universe. (will be re-added in lucid+1)
    * Dropped locales-all.
  - modulelist: Drop imap, interbase, and mcrypt.
  - debian/rules:
    * Dropped building of mcrypt, imap, and interbase.
    * Install apport hook for php5.
  - Dropped debian/patches/libedit_is_editline.patch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
dnl
2
 
dnl $Id: acinclude.m4 287126 2009-08-11 23:45:35Z srinatar $
 
2
dnl $Id: acinclude.m4 291414 2009-11-29 06:13:22Z rasmus $
3
3
dnl
4
4
dnl This file contains local autoconf functions.
5
5
dnl
1688
1688
dnl
1689
1689
AC_DEFUN([PHP_BROKEN_GLIBC_FOPEN_APPEND], [
1690
1690
  AC_MSG_CHECKING([for broken libc stdio])
1691
 
  AC_CACHE_VAL(have_broken_glibc_fopen_append,[
 
1691
  AC_CACHE_VAL(_cv_have_broken_glibc_fopen_append,[
1692
1692
  AC_TRY_RUN([
1693
1693
#include <stdio.h>
1694
1694
int main(int argc, char *argv[])
1714
1714
  return 0;
1715
1715
}
1716
1716
],
1717
 
[have_broken_glibc_fopen_append=no],
1718
 
[have_broken_glibc_fopen_append=yes ],
 
1717
[_cv_have_broken_glibc_fopen_append=no],
 
1718
[_cv_have_broken_glibc_fopen_append=yes ],
1719
1719
AC_TRY_COMPILE([
1720
1720
#include <features.h>
1721
1721
],[
1723
1723
choke me
1724
1724
#endif
1725
1725
],
1726
 
[have_broken_glibc_fopen_append=yes],
1727
 
[have_broken_glibc_fopen_append=no ])
 
1726
[_cv_have_broken_glibc_fopen_append=yes],
 
1727
[_cv_have_broken_glibc_fopen_append=no ])
1728
1728
)])
1729
1729
 
1730
 
  if test "$have_broken_glibc_fopen_append" = "yes"; then
 
1730
  if test "$_cv_have_broken_glibc_fopen_append" = "yes"; then
1731
1731
    AC_MSG_RESULT(yes)
1732
1732
    AC_DEFINE(HAVE_BROKEN_GLIBC_FOPEN_APPEND,1, [Define if your glibc borks on fopen with mode a+])
1733
1733
  else
2875
2875
])
2876
2876
 
2877
2877
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
2878
 
## Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005
2879
 
## Free Software Foundation, Inc.
 
2878
## Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, 2007,
 
2879
## 2008  Free Software Foundation, Inc.
2880
2880
## Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
2881
2881
##
2882
2882
## This file is free software; the Free Software Foundation gives
2883
2883
## unlimited permission to copy and/or distribute it, with or without
2884
2884
## modifications, as long as this notice is preserved.
2885
2885
 
2886
 
# serial 47 AC_PROG_LIBTOOL
 
2886
# serial 52 AC_PROG_LIBTOOL
2887
2887
 
2888
2888
ifdef([AC_ACVERSION],[
2889
2889
# autoconf 2.13 compatibility
2920
2920
    [AC_LIBTOOL_CXX],
2921
2921
    [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
2922
2922
  ])])
2923
 
 
2924
 
dnl dnl And a similar setup for Fortran 77 support
2925
 
dnl   AC_PROVIDE_IFELSE([AC_PROG_F77],
2926
 
dnl     [AC_LIBTOOL_F77],
2927
 
dnl     [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
2928
 
dnl ])])
2929
 
 
2930
 
dnl dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
2931
 
dnl dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
2932
 
dnl dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
2933
 
dnl   AC_PROVIDE_IFELSE([AC_PROG_GCJ],
2934
 
dnl     [AC_LIBTOOL_GCJ],
2935
 
dnl     [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
2936
 
dnl       [AC_LIBTOOL_GCJ],
2937
 
dnl       [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
2938
 
dnl     [AC_LIBTOOL_GCJ],
2939
 
dnl       [ifdef([AC_PROG_GCJ],
2940
 
dnl          [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
2941
 
dnl        ifdef([A][M_PROG_GCJ],
2942
 
dnl          [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
2943
 
dnl        ifdef([LT_AC_PROG_GCJ],
2944
 
dnl          [define([LT_AC_PROG_GCJ],
2945
 
dnl             defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
2946
 
dnl ])
2947
2923
])# AC_PROG_LIBTOOL
2948
2924
 
2949
2925
 
2952
2928
AC_DEFUN([_AC_PROG_LIBTOOL],
2953
2929
[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
2954
2930
AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
2955
 
dnl AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
2956
 
dnl AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
2957
2931
 
2958
2932
# This can be used to rebuild libtool when needed
2959
2933
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
2987
2961
AC_REQUIRE([AC_OBJEXT])dnl
2988
2962
AC_REQUIRE([AC_EXEEXT])dnl
2989
2963
dnl
2990
 
 
2991
2964
AC_LIBTOOL_SYS_MAX_CMD_LEN
2992
2965
AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
2993
2966
AC_LIBTOOL_OBJDIR
3049
3022
test -z "$AS" && AS=as
3050
3023
test -z "$CC" && CC=cc
3051
3024
test -z "$LTCC" && LTCC=$CC
 
3025
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
3052
3026
test -z "$DLLTOOL" && DLLTOOL=dlltool
3053
3027
test -z "$LD" && LD=ld
3054
3028
test -z "$LN_S" && LN_S="ln -s"
3061
3035
test -z "$ac_objext" && ac_objext=o
3062
3036
 
3063
3037
# Determine commands to create old-style static archives.
3064
 
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
 
3038
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
3065
3039
old_postinstall_cmds='chmod 644 $oldlib'
3066
3040
old_postuninstall_cmds=
3067
3041
 
3068
3042
if test -n "$RANLIB"; then
3069
3043
  case $host_os in
3070
3044
  openbsd*)
3071
 
    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
 
3045
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
3072
3046
    ;;
3073
3047
  *)
3074
 
    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
 
3048
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
3075
3049
    ;;
3076
3050
  esac
3077
3051
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
3088
3062
  ;;
3089
3063
esac
3090
3064
 
 
3065
_LT_REQUIRED_DARWIN_CHECKS
 
3066
 
3091
3067
AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
3092
3068
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
3093
3069
enable_win32_dll=yes, enable_win32_dll=no)
3117
3093
# If no C compiler was specified, use CC.
3118
3094
LTCC=${LTCC-"$CC"}
3119
3095
 
 
3096
# If no C compiler flags were specified, use CFLAGS.
 
3097
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
3098
 
3120
3099
# Allow CC to be a program name with arguments.
3121
3100
compiler=$CC
3122
3101
])# _LT_AC_SYS_COMPILER
3143
3122
# Check for compiler boilerplate output or warnings with
3144
3123
# the simple compiler test code.
3145
3124
AC_DEFUN([_LT_COMPILER_BOILERPLATE],
3146
 
[ac_outfile=conftest.$ac_objext
3147
 
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
3148
 
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
3125
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
3126
ac_outfile=conftest.$ac_objext
 
3127
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
3128
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
3149
3129
_lt_compiler_boilerplate=`cat conftest.err`
3150
3130
$rm conftest*
3151
3131
])# _LT_COMPILER_BOILERPLATE
3156
3136
# Check for linker boilerplate output or warnings with
3157
3137
# the simple link test code.
3158
3138
AC_DEFUN([_LT_LINKER_BOILERPLATE],
3159
 
[ac_outfile=conftest.$ac_objext
3160
 
printf "$lt_simple_link_test_code" >conftest.$ac_ext
3161
 
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
3139
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
3140
ac_outfile=conftest.$ac_objext
 
3141
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
3142
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
3162
3143
_lt_linker_boilerplate=`cat conftest.err`
3163
 
$rm conftest*
 
3144
$rm -r conftest*
3164
3145
])# _LT_LINKER_BOILERPLATE
3165
3146
 
3166
3147
 
3176
3157
; return 0; }
3177
3158
EOF
3178
3159
if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
3179
 
  ifelse([$1], , :, [$1
 
3160
 ifelse([$1], , :, [$1
3180
3161
  rm -rf conftest*])
3181
3162
else
3182
3163
  echo "configure: failed program was:" >&5
3187
3168
fi
3188
3169
rm -f conftest*])
3189
3170
 
 
3171
# _LT_REQUIRED_DARWIN_CHECKS
 
3172
# --------------------------
 
3173
# Check for some things on darwin
 
3174
AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS],[
 
3175
  case $host_os in
 
3176
    rhapsody* | darwin*)
 
3177
    AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
 
3178
    AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
 
3179
 
 
3180
    AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
 
3181
      [lt_cv_apple_cc_single_mod=no
 
3182
      if test -z "${LT_MULTI_MODULE}"; then
 
3183
   # By default we will add the -single_module flag. You can override
 
3184
   # by either setting the environment variable LT_MULTI_MODULE
 
3185
   # non-empty at configure time, or by adding -multi_module to the
 
3186
   # link flags.
 
3187
   echo "int foo(void){return 1;}" > conftest.c
 
3188
   $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
3189
     -dynamiclib ${wl}-single_module conftest.c
 
3190
   if test -f libconftest.dylib; then
 
3191
     lt_cv_apple_cc_single_mod=yes
 
3192
     rm -rf libconftest.dylib*
 
3193
   fi
 
3194
   rm conftest.c
 
3195
      fi])
 
3196
    AC_CACHE_CHECK([for -exported_symbols_list linker flag],
 
3197
      [lt_cv_ld_exported_symbols_list],
 
3198
      [lt_cv_ld_exported_symbols_list=no
 
3199
      save_LDFLAGS=$LDFLAGS
 
3200
      echo "_main" > conftest.sym
 
3201
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
 
3202
      _LT_AC_TRY_LINK([lt_cv_ld_exported_symbols_list=yes],[lt_cv_ld_exported_symbols_list=no])
 
3203
   LDFLAGS="$save_LDFLAGS"
 
3204
    ])
 
3205
    case $host_os in
 
3206
    rhapsody* | darwin1.[[0123]])
 
3207
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
 
3208
    darwin1.*)
 
3209
     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
3210
    darwin*)
 
3211
      # if running on 10.5 or later, the deployment target defaults
 
3212
      # to the OS version, if on x86, and 10.4, the deployment
 
3213
      # target defaults to 10.4. Don't you love it?
 
3214
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
 
3215
   10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
 
3216
     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
3217
   10.[[012]]*)
 
3218
     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
3219
   10.*)
 
3220
     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
3221
      esac
 
3222
    ;;
 
3223
  esac
 
3224
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
 
3225
      _lt_dar_single_mod='$single_module'
 
3226
    fi
 
3227
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
 
3228
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
 
3229
    else
 
3230
      _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
 
3231
    fi
 
3232
    if test "$DSYMUTIL" != ":"; then
 
3233
      _lt_dsymutil="~$DSYMUTIL \$lib || :"
 
3234
    else
 
3235
      _lt_dsymutil=
 
3236
    fi
 
3237
    ;;
 
3238
  esac
 
3239
])
3190
3240
 
3191
3241
# _LT_AC_SYS_LIBPATH_AIX
3192
3242
# ----------------------
3197
3247
# If we don't find anything, use the default library path according
3198
3248
# to the aix ld manual.
3199
3249
AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
3200
 
[_LT_AC_TRY_LINK([
3201
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
3202
 
}'`
 
3250
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
3251
_LT_AC_TRY_LINK([
 
3252
lt_aix_libpath_sed='
 
3253
    /Import File Strings/,/^$/ {
 
3254
        /^0/ {
 
3255
            s/^0  *\(.*\)$/\1/
 
3256
            p
 
3257
        }
 
3258
    }'
 
3259
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
3203
3260
# Check for a 64-bit object if we didn't find anything.
3204
 
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
3205
 
}'`; fi],[])
 
3261
if test -z "$aix_libpath"; then
 
3262
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
3263
fi],[])
3206
3264
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
3207
3265
])# _LT_AC_SYS_LIBPATH_AIX
3208
3266
 
3433
3491
  rm -rf conftest*
3434
3492
  ;;
3435
3493
 
3436
 
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
 
3494
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
 
3495
s390*-*linux*|sparc*-*linux*)
3437
3496
  # Find out which ABI we are using.
3438
3497
  echo 'int i;' > conftest.$ac_ext
3439
3498
  if AC_TRY_EVAL(ac_compile); then
3440
3499
    case `/usr/bin/file conftest.o` in
3441
3500
    *32-bit*)
3442
3501
      case $host in
 
3502
        x86_64-*kfreebsd*-gnu)
 
3503
          LD="${LD-ld} -m elf_i386_fbsd"
 
3504
          ;;
3443
3505
        x86_64-*linux*)
3444
3506
          LD="${LD-ld} -m elf_i386"
3445
3507
          ;;
3456
3518
      ;;
3457
3519
    *64-bit*)
3458
3520
      case $host in
 
3521
        x86_64-*kfreebsd*-gnu)
 
3522
          LD="${LD-ld} -m elf_x86_64_fbsd"
 
3523
          ;;
3459
3524
        x86_64-*linux*)
3460
3525
          LD="${LD-ld} -m elf_x86_64"
3461
3526
          ;;
3489
3554
    CFLAGS="$SAVE_CFLAGS"
3490
3555
  fi
3491
3556
  ;;
 
3557
sparc*-*solaris*)
 
3558
  # Find out which ABI we are using.
 
3559
  echo 'int i;' > conftest.$ac_ext
 
3560
  if AC_TRY_EVAL(ac_compile); then
 
3561
    case `/usr/bin/file conftest.o` in
 
3562
    *64-bit*)
 
3563
      case $lt_cv_prog_gnu_ld in
 
3564
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
 
3565
      *)
 
3566
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
 
3567
          LD="${LD-ld} -64"
 
3568
        fi
 
3569
        ;;
 
3570
      esac
 
3571
      ;;
 
3572
    esac
 
3573
  fi
 
3574
  rm -rf conftest*
 
3575
  ;;
 
3576
 
3492
3577
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
3493
3578
[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
3494
3579
  AC_CHECK_TOOL(DLLTOOL, dlltool, false)
3512
3597
AC_CACHE_CHECK([$1], [$2],
3513
3598
  [$2=no
3514
3599
  ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
3515
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
3600
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
3516
3601
   lt_compiler_flag="$3"
3517
3602
   # Insert the option either (1) after the last *FLAGS variable, or
3518
3603
   # (2) before a word containing "conftest.", or (3) at the end.
3531
3616
   if (exit $ac_status) && test -s "$ac_outfile"; then
3532
3617
     # The compiler can only warn and ignore the option if not recognized
3533
3618
     # So say no if there are warnings other than the usual output.
3534
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
3535
 
     $SED '/^$/d' conftest.err >conftest.er2
3536
 
     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
 
3619
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
3620
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
3621
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
3537
3622
       $2=yes
3538
3623
     fi
3539
3624
   fi
3553
3638
# ------------------------------------------------------------
3554
3639
# Check whether the given compiler option works
3555
3640
AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
3556
 
[AC_CACHE_CHECK([$1], [$2],
 
3641
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
3642
AC_CACHE_CHECK([$1], [$2],
3557
3643
  [$2=no
3558
3644
   save_LDFLAGS="$LDFLAGS"
3559
3645
   LDFLAGS="$LDFLAGS $3"
3560
 
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
3646
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
3561
3647
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
3562
3648
     # The linker can only warn and ignore the option if not recognized
3563
3649
     # So say no if there are warnings
3564
3650
     if test -s conftest.err; then
3565
3651
       # Append any errors to the config.log.
3566
3652
       cat conftest.err 1>&5
3567
 
       $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
3568
 
       $SED '/^$/d' conftest.err >conftest.er2
 
3653
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
3654
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
3569
3655
       if diff conftest.exp conftest.er2 >/dev/null; then
3570
3656
         $2=yes
3571
3657
       fi
3573
3659
       $2=yes
3574
3660
     fi
3575
3661
   fi
3576
 
   $rm conftest*
 
3662
   $rm -r conftest*
3577
3663
   LDFLAGS="$save_LDFLAGS"
3578
3664
])
3579
3665
 
3634
3720
    elif test -x /usr/sbin/sysctl; then
3635
3721
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3636
3722
    else
3637
 
      lt_cv_sys_max_cmd_len=65536     # usable default for all BSDs
 
3723
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
3638
3724
    fi
3639
3725
    # And add a safety zone
3640
3726
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3641
3727
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3642
3728
    ;;
 
3729
 
 
3730
  interix*)
 
3731
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
 
3732
    lt_cv_sys_max_cmd_len=196608
 
3733
    ;;
 
3734
 
3643
3735
  osf*)
3644
3736
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
3645
3737
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
3646
3738
    # nice to cause kernel panics so lets avoid the loop below.
3647
3739
    # First set a reasonable default.
3648
3740
    lt_cv_sys_max_cmd_len=16384
3649
 
    # 
 
3741
    #
3650
3742
    if test -x /sbin/sysconfig; then
3651
3743
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
3652
3744
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
3653
3745
      esac
3654
3746
    fi
3655
3747
    ;;
 
3748
  sco3.2v5*)
 
3749
    lt_cv_sys_max_cmd_len=102400
 
3750
    ;;
 
3751
  sysv5* | sco5v6* | sysv4.2uw2*)
 
3752
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
 
3753
    if test -n "$kargmax"; then
 
3754
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[        ]]//'`
 
3755
    else
 
3756
      lt_cv_sys_max_cmd_len=32768
 
3757
    fi
 
3758
    ;;
3656
3759
  *)
3657
 
    # If test is not a shell built-in, we'll probably end up computing a
3658
 
    # maximum length that is only half of the actual maximum length, but
3659
 
    # we can't tell.
3660
 
    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
3661
 
    while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
 
3760
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
 
3761
    if test -n "$lt_cv_sys_max_cmd_len"; then
 
3762
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
3763
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
3764
    else
 
3765
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
3766
      while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
3662
3767
               = "XX$teststring") >/dev/null 2>&1 &&
3663
 
            new_result=`expr "X$teststring" : ".*" 2>&1` &&
3664
 
            lt_cv_sys_max_cmd_len=$new_result &&
3665
 
            test $i != 17 # 1/2 MB should be enough
3666
 
    do
3667
 
      i=`expr $i + 1`
3668
 
      teststring=$teststring$teststring
3669
 
    done
3670
 
    teststring=
3671
 
    # Add a significant safety factor because C++ compilers can tack on massive
3672
 
    # amounts of additional arguments before passing them to the linker.
3673
 
    # It appears as though 1/2 is a usable value.
3674
 
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
3768
              new_result=`expr "X$teststring" : ".*" 2>&1` &&
 
3769
              lt_cv_sys_max_cmd_len=$new_result &&
 
3770
              test $i != 17 # 1/2 MB should be enough
 
3771
      do
 
3772
        i=`expr $i + 1`
 
3773
        teststring=$teststring$teststring
 
3774
      done
 
3775
      teststring=
 
3776
      # Add a significant safety factor because C++ compilers can tack on massive
 
3777
      # amounts of additional arguments before passing them to the linker.
 
3778
      # It appears as though 1/2 is a usable value.
 
3779
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
3780
    fi
3675
3781
    ;;
3676
3782
  esac
3677
3783
])
3684
3790
 
3685
3791
 
3686
3792
# _LT_AC_CHECK_DLFCN
3687
 
# --------------------
 
3793
# ------------------
3688
3794
AC_DEFUN([_LT_AC_CHECK_DLFCN],
3689
3795
[AC_CHECK_HEADERS(dlfcn.h)dnl
3690
3796
])# _LT_AC_CHECK_DLFCN
3692
3798
 
3693
3799
# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
3694
3800
#                           ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
3695
 
# ------------------------------------------------------------------
 
3801
# ---------------------------------------------------------------------
3696
3802
AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
3697
3803
[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
3698
3804
if test "$cross_compiling" = yes; then :
3758
3864
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
3759
3865
      /* dlclose (self); */
3760
3866
    }
 
3867
  else
 
3868
    puts (dlerror ());
3761
3869
 
3762
3870
    exit (status);
3763
3871
}]
3768
3876
    case x$lt_status in
3769
3877
      x$lt_dlno_uscore) $1 ;;
3770
3878
      x$lt_dlneed_uscore) $2 ;;
3771
 
      x$lt_unknown|x*) $3 ;;
 
3879
      x$lt_dlunknown|x*) $3 ;;
3772
3880
    esac
3773
3881
  else :
3774
3882
    # compilation failed
3780
3888
 
3781
3889
 
3782
3890
# AC_LIBTOOL_DLOPEN_SELF
3783
 
# -------------------
 
3891
# ----------------------
3784
3892
AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
3785
3893
[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
3786
3894
if test "x$enable_dlopen" != xyes; then
3822
3930
    AC_CHECK_FUNC([shl_load],
3823
3931
          [lt_cv_dlopen="shl_load"],
3824
3932
      [AC_CHECK_LIB([dld], [shl_load],
3825
 
            [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
 
3933
            [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
3826
3934
        [AC_CHECK_FUNC([dlopen],
3827
3935
              [lt_cv_dlopen="dlopen"],
3828
3936
          [AC_CHECK_LIB([dl], [dlopen],
3830
3938
            [AC_CHECK_LIB([svld], [dlopen],
3831
3939
                  [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
3832
3940
              [AC_CHECK_LIB([dld], [dld_link],
3833
 
                    [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
 
3941
                    [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
3834
3942
              ])
3835
3943
            ])
3836
3944
          ])
3851
3959
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
3852
3960
 
3853
3961
    save_LDFLAGS="$LDFLAGS"
3854
 
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
3962
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
3855
3963
 
3856
3964
    save_LIBS="$LIBS"
3857
3965
    LIBS="$lt_cv_dlopen_libs $LIBS"
3864
3972
    ])
3865
3973
 
3866
3974
    if test "x$lt_cv_dlopen_self" = xyes; then
3867
 
      LDFLAGS="$LDFLAGS $link_static_flag"
 
3975
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
3868
3976
      AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
3869
3977
          lt_cv_dlopen_self_static, [dnl
3870
3978
          _LT_AC_TRY_DLOPEN_SELF(
3896
4004
# ---------------------------------
3897
4005
# Check to see if options -c and -o are simultaneously supported by compiler
3898
4006
AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
3899
 
[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
 
4007
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
4008
AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
3900
4009
AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
3901
4010
  [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
3902
4011
  [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
3904
4013
   mkdir conftest
3905
4014
   cd conftest
3906
4015
   mkdir out
3907
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
4016
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
3908
4017
 
3909
4018
   lt_compiler_flag="-o out/conftest2.$ac_objext"
3910
4019
   # Insert the option either (1) after the last *FLAGS variable, or
3924
4033
   then
3925
4034
     # The compiler can only warn and ignore the option if not recognized
3926
4035
     # So say no if there are warnings
3927
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
3928
 
     $SED '/^$/d' out/conftest.err >out/conftest.er2
3929
 
     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
4036
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
4037
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
4038
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
3930
4039
       _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
3931
4040
     fi
3932
4041
   fi
4044
4153
   darwin*)
4045
4154
       if test -n "$STRIP" ; then
4046
4155
         striplib="$STRIP -x"
 
4156
         old_striplib="$STRIP -S"
4047
4157
         AC_MSG_RESULT([yes])
4048
4158
       else
4049
4159
  AC_MSG_RESULT([no])
4061
4171
# -----------------------------
4062
4172
# PORTME Fill in your ld.so characteristics
4063
4173
AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
4064
 
[AC_MSG_CHECKING([dynamic linker characteristics])
 
4174
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
4175
AC_MSG_CHECKING([dynamic linker characteristics])
4065
4176
library_names_spec=
4066
4177
libname_spec='lib$name'
4067
4178
soname_spec=
4075
4186
version_type=none
4076
4187
dynamic_linker="$host_os ld.so"
4077
4188
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
4189
ifelse($1,[],[
4078
4190
if test "$GCC" = yes; then
4079
 
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
4080
 
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
4191
  case $host_os in
 
4192
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
 
4193
    *) lt_awk_arg="/^libraries:/" ;;
 
4194
  esac
 
4195
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
4196
  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
4081
4197
    # if the path contains ";" then we assume it to be the separator
4082
4198
    # otherwise default to the standard path separator (i.e. ":") - it is
4083
4199
    # assumed that no part of a normal pathname contains ";" but that should
4084
4200
    # okay in the real world where ";" in dirpaths is itself problematic.
4085
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
4201
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
4086
4202
  else
4087
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
4203
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
4088
4204
  fi
 
4205
  # Ok, now we have the path, separated by spaces, we can step through it
 
4206
  # and add multilib dir if necessary.
 
4207
  lt_tmp_lt_search_path_spec=
 
4208
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
 
4209
  for lt_sys_path in $lt_search_path_spec; do
 
4210
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
 
4211
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
 
4212
    else
 
4213
      test -d "$lt_sys_path" && \
 
4214
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
 
4215
    fi
 
4216
  done
 
4217
  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
 
4218
BEGIN {RS=" "; FS="/|\n";} {
 
4219
  lt_foo="";
 
4220
  lt_count=0;
 
4221
  for (lt_i = NF; lt_i > 0; lt_i--) {
 
4222
    if ($lt_i != "" && $lt_i != ".") {
 
4223
      if ($lt_i == "..") {
 
4224
        lt_count++;
 
4225
      } else {
 
4226
        if (lt_count == 0) {
 
4227
          lt_foo="/" $lt_i lt_foo;
 
4228
        } else {
 
4229
          lt_count--;
 
4230
        }
 
4231
      }
 
4232
    }
 
4233
  }
 
4234
  if (lt_foo != "") { lt_freq[[lt_foo]]++; }
 
4235
  if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
 
4236
}'`
 
4237
  sys_lib_search_path_spec=`echo $lt_search_path_spec`
4089
4238
else
4090
4239
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
4091
 
fi
 
4240
fi])
4092
4241
need_lib_prefix=unknown
4093
4242
hardcode_into_libs=no
4094
4243
 
4106
4255
  soname_spec='${libname}${release}${shared_ext}$major'
4107
4256
  ;;
4108
4257
 
4109
 
aix4* | aix5*)
 
4258
aix[[4-9]]*)
4110
4259
  version_type=linux
4111
4260
  need_lib_prefix=no
4112
4261
  need_version=no
4245
4394
  shlibpath_overrides_runpath=yes
4246
4395
  shlibpath_var=DYLD_LIBRARY_PATH
4247
4396
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
4248
 
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
4249
 
  if test "$GCC" = yes; then
4250
 
    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"`
4251
 
  else
4252
 
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
4253
 
  fi
 
4397
  ifelse([$1], [],[
 
4398
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) 
4254
4399
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
4255
4400
  ;;
4256
4401
 
4267
4412
  dynamic_linker=no
4268
4413
  ;;
4269
4414
 
4270
 
kfreebsd*-gnu)
4271
 
  version_type=linux
4272
 
  need_lib_prefix=no
4273
 
  need_version=no
4274
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
4275
 
  soname_spec='${libname}${release}${shared_ext}$major'
4276
 
  shlibpath_var=LD_LIBRARY_PATH
4277
 
  shlibpath_overrides_runpath=no
4278
 
  hardcode_into_libs=yes
4279
 
  dynamic_linker='GNU ld.so'
4280
 
  ;;
4281
 
 
4282
4415
freebsd* | dragonfly*)
4283
4416
  # DragonFly does not have aout.  When/if they implement a new
4284
4417
  # versioning mechanism, adjust this.
4311
4444
    shlibpath_overrides_runpath=yes
4312
4445
    hardcode_into_libs=yes
4313
4446
    ;;
4314
 
  *) # from 3.2 on
 
4447
  freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
 
4448
  freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
4315
4449
    shlibpath_overrides_runpath=no
4316
4450
    hardcode_into_libs=yes
4317
4451
    ;;
 
4452
  *) # from 4.6 on, and DragonFly
 
4453
    shlibpath_overrides_runpath=yes
 
4454
    hardcode_into_libs=yes
 
4455
    ;;
4318
4456
  esac
4319
4457
  ;;
4320
4458
 
4374
4512
  postinstall_cmds='chmod 555 $lib'
4375
4513
  ;;
4376
4514
 
 
4515
interix[[3-9]]*)
 
4516
  version_type=linux
 
4517
  need_lib_prefix=no
 
4518
  need_version=no
 
4519
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
4520
  soname_spec='${libname}${release}${shared_ext}$major'
 
4521
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
4522
  shlibpath_var=LD_LIBRARY_PATH
 
4523
  shlibpath_overrides_runpath=no
 
4524
  hardcode_into_libs=yes
 
4525
  ;;
 
4526
 
4377
4527
irix5* | irix6* | nonstopux*)
4378
4528
  case $host_os in
4379
4529
    nonstopux*) version_type=nonstopux ;;
4417
4567
  ;;
4418
4568
 
4419
4569
# This must be Linux ELF.
4420
 
linux*)
 
4570
linux* | k*bsd*-gnu)
4421
4571
  version_type=linux
4422
4572
  need_lib_prefix=no
4423
4573
  need_version=no
4431
4581
  # before this can be enabled.
4432
4582
  hardcode_into_libs=yes
4433
4583
 
4434
 
  # find out which ABI we are using
4435
 
  libsuff=
4436
 
  case $host_cpu in
4437
 
  x86_64*|s390x*|powerpc64*)
4438
 
    echo '[#]line __oline__ "configure"' > conftest.$ac_ext
4439
 
    if AC_TRY_EVAL(ac_compile); then
4440
 
      case `/usr/bin/file conftest.$ac_objext` in
4441
 
      *64-bit*)
4442
 
        libsuff=64
4443
 
        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
4444
 
        ;;
4445
 
      esac
4446
 
    fi
4447
 
    rm -rf conftest*
4448
 
    ;;
4449
 
  esac
4450
 
 
4451
4584
  # Append ld.so.conf contents to the search path
4452
4585
  if test -f /etc/ld.so.conf; then
4453
 
    lt_ld_extra=`$SED -e 's/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g' /etc/ld.so.conf | tr '\n' ' '`
4454
 
    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
 
4586
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[  ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
4587
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
4455
4588
  fi
4456
4589
 
4457
4590
  # We used to test for /lib/ld.so.1 and disable shared libraries on
4463
4596
  dynamic_linker='GNU/Linux ld.so'
4464
4597
  ;;
4465
4598
 
4466
 
knetbsd*-gnu)
4467
 
  version_type=linux
4468
 
  need_lib_prefix=no
4469
 
  need_version=no
4470
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
4471
 
  soname_spec='${libname}${release}${shared_ext}$major'
4472
 
  shlibpath_var=LD_LIBRARY_PATH
4473
 
  shlibpath_overrides_runpath=no
4474
 
  hardcode_into_libs=yes
4475
 
  dynamic_linker='GNU ld.so'
4476
 
  ;;
4477
 
 
4478
4599
netbsd*)
4479
4600
  version_type=sunos
4480
4601
  need_lib_prefix=no
4512
4633
 
4513
4634
openbsd*)
4514
4635
  version_type=sunos
 
4636
  sys_lib_dlsearch_path_spec="/usr/lib"
4515
4637
  need_lib_prefix=no
4516
4638
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
4517
4639
  case $host_os in
4555
4677
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
4556
4678
  ;;
4557
4679
 
4558
 
sco3.2v5*)
4559
 
  version_type=osf
4560
 
  soname_spec='${libname}${release}${shared_ext}$major'
4561
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4562
 
  shlibpath_var=LD_LIBRARY_PATH
 
4680
rdos*)
 
4681
  dynamic_linker=no
4563
4682
  ;;
4564
4683
 
4565
4684
solaris*)
4587
4706
  need_version=yes
4588
4707
  ;;
4589
4708
 
4590
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
4709
sysv4 | sysv4.3*)
4591
4710
  version_type=linux
4592
4711
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4593
4712
  soname_spec='${libname}${release}${shared_ext}$major'
4620
4739
  fi
4621
4740
  ;;
4622
4741
 
 
4742
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
4743
  version_type=freebsd-elf
 
4744
  need_lib_prefix=no
 
4745
  need_version=no
 
4746
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
4747
  soname_spec='${libname}${release}${shared_ext}$major'
 
4748
  shlibpath_var=LD_LIBRARY_PATH
 
4749
  hardcode_into_libs=yes
 
4750
  if test "$with_gnu_ld" = yes; then
 
4751
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
4752
    shlibpath_overrides_runpath=no
 
4753
  else
 
4754
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
4755
    shlibpath_overrides_runpath=yes
 
4756
    case $host_os in
 
4757
      sco3.2v5*)
 
4758
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
4759
        ;;
 
4760
    esac
 
4761
  fi
 
4762
  sys_lib_dlsearch_path_spec='/usr/lib'
 
4763
  ;;
 
4764
 
4623
4765
uts4*)
4624
4766
  version_type=linux
4625
4767
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4633
4775
esac
4634
4776
AC_MSG_RESULT([$dynamic_linker])
4635
4777
test "$dynamic_linker" = no && can_build_shared=no
 
4778
 
 
4779
AC_CACHE_VAL([lt_cv_sys_lib_search_path_spec],
 
4780
[lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"])
 
4781
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
4782
AC_CACHE_VAL([lt_cv_sys_lib_dlsearch_path_spec],
 
4783
[lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"])
 
4784
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
4785
 
 
4786
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
4787
if test "$GCC" = yes; then
 
4788
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
4789
fi
4636
4790
])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
4637
4791
 
4638
4792
 
4639
4793
# _LT_AC_TAGCONFIG
4640
4794
# ----------------
4641
4795
AC_DEFUN([_LT_AC_TAGCONFIG],
4642
 
[AC_ARG_WITH([tags],
 
4796
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
4797
AC_ARG_WITH([tags],
4643
4798
[  --with-tags[=TAGS]      include additional configurations [automatic]
4644
4799
],
4645
4800
[tagnames="$withval"])
4657
4812
      AC_MSG_WARN([using \`LTCC=$LTCC', extracted from \`$ofile'])
4658
4813
    fi
4659
4814
  fi
 
4815
  if test -z "$LTCFLAGS"; then
 
4816
    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
 
4817
  fi
4660
4818
 
4661
4819
  # Extract list of available tagged configurations in $ofile.
4662
4820
  # Note that this assumes the entire list is on one line.
4692
4850
        fi
4693
4851
        ;;
4694
4852
 
4695
 
#      F77)
4696
 
#       if test -n "$F77" && test "X$F77" != "Xno"; then
4697
 
#         AC_LIBTOOL_LANG_F77_CONFIG
4698
 
#       else
4699
 
#         tagname=""
4700
 
#       fi
4701
 
#       ;;
4702
 
#
4703
 
#      GCJ)
4704
 
#       if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
4705
 
#         AC_LIBTOOL_LANG_GCJ_CONFIG
4706
 
#       else
4707
 
#         tagname=""
4708
 
#       fi
4709
 
#       ;;
4710
 
#
4711
 
#      RC)
4712
 
#       AC_LIBTOOL_LANG_RC_CONFIG
4713
 
#       ;;
4714
 
 
4715
4853
      *)
4716
4854
        AC_MSG_ERROR([Unsupported tag name: $tagname])
4717
4855
        ;;
4786
4924
 
4787
4925
# AC_DISABLE_SHARED
4788
4926
# -----------------
4789
 
#- set the default shared flag to --disable-shared
 
4927
# set the default shared flag to --disable-shared
4790
4928
AC_DEFUN([AC_DISABLE_SHARED],
4791
4929
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
4792
4930
AC_ENABLE_SHARED(no)
4885
5023
 
4886
5024
# AC_PROG_EGREP
4887
5025
# -------------
4888
 
# This is predefined starting with Autoconf 2.54, so this conditional
4889
 
# definition can be removed once we require Autoconf 2.54 or later.
4890
5026
ifdef([AC_PROG_EGREP], [], [AC_DEFUN([AC_PROG_EGREP],
4891
5027
[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
4892
5028
   [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4900
5036
 
4901
5037
# AC_PATH_TOOL_PREFIX
4902
5038
# -------------------
4903
 
# find a file program which can recognise shared library
 
5039
# find a file program which can recognize shared library
4904
5040
AC_DEFUN([AC_PATH_TOOL_PREFIX],
4905
5041
[AC_REQUIRE([AC_PROG_EGREP])dnl
4906
5042
AC_MSG_CHECKING([for $1])
4963
5099
 
4964
5100
# AC_PATH_MAGIC
4965
5101
# -------------
4966
 
# find a file program which can recognise a shared library
 
5102
# find a file program which can recognize a shared library
4967
5103
AC_DEFUN([AC_PATH_MAGIC],
4968
5104
[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
4969
5105
if test -z "$lt_cv_path_MAGIC_CMD"; then
5095
5231
case $host_os in
5096
5232
  darwin*)
5097
5233
    if test "$GCC" = yes; then
5098
 
      reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
 
5234
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5099
5235
    else
5100
5236
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5101
5237
    fi
5109
5245
# how to check for library dependencies
5110
5246
#  -- PORTME fill in with the dynamic library characteristics
5111
5247
AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
5112
 
[AC_CACHE_CHECK([how to recognise dependent libraries],
 
5248
[AC_CACHE_CHECK([how to recognize dependent libraries],
5113
5249
lt_cv_deplibs_check_method,
5114
5250
[lt_cv_file_magic_cmd='$MAGIC_CMD'
5115
5251
lt_cv_file_magic_test_file=
5126
5262
# whether `pass_all' will *always* work, you probably want this one.
5127
5263
 
5128
5264
case $host_os in
5129
 
aix4* | aix5*)
 
5265
aix[[4-9]]*)
5130
5266
  lt_cv_deplibs_check_method=pass_all
5131
5267
  ;;
5132
5268
 
5148
5284
 
5149
5285
mingw* | pw32*)
5150
5286
  # Base MSYS/MinGW do not provide the 'file' command needed by
5151
 
  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5152
 
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5153
 
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
5287
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
 
5288
  # unless we find 'file', for example because we are cross-compiling.
 
5289
  if ( file / ) >/dev/null 2>&1; then
 
5290
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
5291
    lt_cv_file_magic_cmd='func_win32_libid'
 
5292
  else
 
5293
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
5294
    lt_cv_file_magic_cmd='$OBJDUMP -f'
 
5295
  fi
5154
5296
  ;;
5155
5297
 
5156
5298
darwin* | rhapsody*)
5157
5299
  lt_cv_deplibs_check_method=pass_all
5158
5300
  ;;
5159
5301
 
5160
 
freebsd* | kfreebsd*-gnu | dragonfly*)
 
5302
freebsd* | dragonfly*)
5161
5303
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5162
5304
    case $host_cpu in
5163
5305
    i*86 )
5195
5337
  esac
5196
5338
  ;;
5197
5339
 
 
5340
interix[[3-9]]*)
 
5341
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
 
5342
  lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
 
5343
  ;;
 
5344
 
5198
5345
irix5* | irix6* | nonstopux*)
5199
5346
  case $LD in
5200
5347
  *-32|*"-32 ") libmagic=32-bit;;
5206
5353
  ;;
5207
5354
 
5208
5355
# This must be Linux ELF.
5209
 
linux*)
 
5356
linux* | k*bsd*-gnu)
5210
5357
  lt_cv_deplibs_check_method=pass_all
5211
5358
  ;;
5212
5359
 
5240
5387
  lt_cv_deplibs_check_method=pass_all
5241
5388
  ;;
5242
5389
 
5243
 
sco3.2v5*)
 
5390
rdos*)
5244
5391
  lt_cv_deplibs_check_method=pass_all
5245
5392
  ;;
5246
5393
 
5248
5395
  lt_cv_deplibs_check_method=pass_all
5249
5396
  ;;
5250
5397
 
5251
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
5398
sysv4 | sysv4.3*)
5252
5399
  case $host_vendor in
5253
5400
  motorola)
5254
5401
    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]]'
5269
5416
  siemens)
5270
5417
    lt_cv_deplibs_check_method=pass_all
5271
5418
    ;;
 
5419
  pc)
 
5420
    lt_cv_deplibs_check_method=pass_all
 
5421
    ;;
5272
5422
  esac
5273
5423
  ;;
5274
5424
 
5275
 
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7* | sysv4*uw2*)
 
5425
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5276
5426
  lt_cv_deplibs_check_method=pass_all
5277
5427
  ;;
5278
5428
esac
5292
5442
  # Let the user override the test.
5293
5443
  lt_cv_path_NM="$NM"
5294
5444
else
5295
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5296
 
  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5297
 
    IFS="$lt_save_ifs"
5298
 
    test -z "$ac_dir" && ac_dir=.
5299
 
    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
5300
 
    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5301
 
      # Check to see if the nm accepts a BSD-compat flag.
5302
 
      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5303
 
      #   nm: unknown option "B" ignored
5304
 
      # Tru64's nm complains that /dev/null is an invalid object file
5305
 
      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5306
 
      */dev/null* | *'Invalid file or object type'*)
5307
 
        lt_cv_path_NM="$tmp_nm -B"
5308
 
        break
5309
 
        ;;
5310
 
      *)
5311
 
        case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5312
 
        */dev/null*)
5313
 
          lt_cv_path_NM="$tmp_nm -p"
 
5445
  lt_nm_to_check="${ac_tool_prefix}nm"
 
5446
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
 
5447
    lt_nm_to_check="$lt_nm_to_check nm"
 
5448
  fi
 
5449
  for lt_tmp_nm in $lt_nm_to_check; do
 
5450
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
5451
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
 
5452
      IFS="$lt_save_ifs"
 
5453
      test -z "$ac_dir" && ac_dir=.
 
5454
      tmp_nm="$ac_dir/$lt_tmp_nm"
 
5455
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
5456
        # Check to see if the nm accepts a BSD-compat flag.
 
5457
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
5458
        #   nm: unknown option "B" ignored
 
5459
        # Tru64's nm complains that /dev/null is an invalid object file
 
5460
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
5461
        */dev/null* | *'Invalid file or object type'*)
 
5462
          lt_cv_path_NM="$tmp_nm -B"
5314
5463
          break
5315
5464
          ;;
5316
5465
        *)
5317
 
          lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5318
 
          continue # so that we can try to find one that supports BSD flags
 
5466
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
5467
          */dev/null*)
 
5468
            lt_cv_path_NM="$tmp_nm -p"
 
5469
            break
 
5470
            ;;
 
5471
          *)
 
5472
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
5473
            continue # so that we can try to find one that supports BSD flags
 
5474
            ;;
 
5475
          esac
5319
5476
          ;;
5320
5477
        esac
5321
 
      esac
5322
 
    fi
 
5478
      fi
 
5479
    done
 
5480
    IFS="$lt_save_ifs"
5323
5481
  done
5324
 
  IFS="$lt_save_ifs"
5325
5482
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5326
5483
fi])
5327
5484
NM="$lt_cv_path_NM"
5427
5584
])# _LT_AC_LANG_CXX
5428
5585
 
5429
5586
# _LT_AC_PROG_CXXCPP
5430
 
# ---------------
 
5587
# ------------------
5431
5588
AC_DEFUN([_LT_AC_PROG_CXXCPP],
5432
5589
[
5433
5590
AC_REQUIRE([AC_PROG_CXX])
5438
5595
fi
5439
5596
])# _LT_AC_PROG_CXXCPP
5440
5597
 
5441
 
# AC_LIBTOOL_F77
5442
 
# --------------
5443
 
# enable support for Fortran 77 libraries
5444
 
#AC_DEFUN([AC_LIBTOOL_F77],
5445
 
#[AC_REQUIRE([_LT_AC_LANG_F77])
5446
 
#])# AC_LIBTOOL_F77
5447
 
 
5448
 
 
5449
 
# _LT_AC_LANG_F77
5450
 
# ---------------
5451
 
#AC_DEFUN([_LT_AC_LANG_F77],
5452
 
#[AC_REQUIRE([AC_PROG_F77])
5453
 
#_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
5454
 
#])# _LT_AC_LANG_F77
5455
 
 
5456
 
 
5457
 
# AC_LIBTOOL_GCJ
5458
 
# --------------
5459
 
# enable support for GCJ libraries
5460
 
#AC_DEFUN([AC_LIBTOOL_GCJ],
5461
 
#[AC_REQUIRE([_LT_AC_LANG_GCJ])
5462
 
#])# AC_LIBTOOL_GCJ
5463
 
 
5464
 
 
5465
 
# _LT_AC_LANG_GCJ
5466
 
# ---------------
5467
 
#AC_DEFUN([_LT_AC_LANG_GCJ],
5468
 
#[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
5469
 
#  [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
5470
 
#    [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
5471
 
#      [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
5472
 
#        [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
5473
 
#          [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
5474
 
#_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
5475
 
#])# _LT_AC_LANG_GCJ
5476
 
 
5477
 
 
5478
 
# AC_LIBTOOL_RC
5479
 
# --------------
5480
 
# enable support for Windows resource files
5481
 
#AC_DEFUN([AC_LIBTOOL_RC],
5482
 
#[AC_REQUIRE([LT_AC_PROG_RC])
5483
 
#_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
5484
 
#])# AC_LIBTOOL_RC
5485
 
 
5486
 
 
5487
5598
# AC_LIBTOOL_LANG_C_CONFIG
5488
5599
# ------------------------
5489
5600
# Ensure that the configuration vars for the C compiler are
5503
5614
_LT_AC_TAGVAR(objext, $1)=$objext
5504
5615
 
5505
5616
# Code to be used in simple compile tests
5506
 
lt_simple_compile_test_code="int some_variable = 0;\n"
 
5617
lt_simple_compile_test_code="int some_variable = 0;"
5507
5618
 
5508
5619
# Code to be used in simple link tests
5509
 
lt_simple_link_test_code='int main(){return(0);}\n'
 
5620
lt_simple_link_test_code='int main(){return(0);}'
5510
5621
 
5511
5622
_LT_AC_SYS_COMPILER
5512
5623
 
5514
5625
_LT_COMPILER_BOILERPLATE
5515
5626
_LT_LINKER_BOILERPLATE
5516
5627
 
5517
 
#
5518
 
# Check for any special shared library compilation flags.
5519
 
#
5520
 
_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)=
5521
 
if test "$GCC" = no; then
5522
 
  case $host_os in
5523
 
  sco3.2v5*)
5524
 
    _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf'
5525
 
    ;;
5526
 
  esac
5527
 
fi
5528
 
if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then
5529
 
  AC_MSG_WARN([\`$CC' requires \`$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries])
5530
 
  if echo "$old_CC $old_CFLAGS " | grep "[[     ]]$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[        ]]" >/dev/null; then :
5531
 
  else
5532
 
    AC_MSG_WARN([add \`$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure])
5533
 
    _LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no
5534
 
  fi
5535
 
fi
5536
 
 
5537
 
 
5538
 
#
5539
 
# Check to make sure the static flag actually works.
5540
 
#
5541
 
AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works],
5542
 
  _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
5543
 
  $_LT_AC_TAGVAR(lt_prog_compiler_static, $1),
5544
 
  [],
5545
 
  [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
5546
 
 
5547
 
 
5548
5628
## CAVEAT EMPTOR:
5549
5629
## There is no encapsulation within the following macros, do not change
5550
5630
## the running order or otherwise move them around unless you know exactly
5557
5637
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
5558
5638
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
5559
5639
AC_LIBTOOL_SYS_LIB_STRIP
5560
 
AC_LIBTOOL_DLOPEN_SELF($1)
 
5640
AC_LIBTOOL_DLOPEN_SELF
5561
5641
 
5562
 
# Report which librarie types wil actually be built
 
5642
# Report which library types will actually be built
5563
5643
AC_MSG_CHECKING([if libtool supports shared libraries])
5564
5644
AC_MSG_RESULT([$can_build_shared])
5565
5645
 
5577
5657
  fi
5578
5658
  ;;
5579
5659
 
5580
 
aix4* | aix5*)
 
5660
aix[[4-9]]*)
5581
5661
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
5582
5662
    test "$enable_shared" = yes && enable_static=no
5583
5663
  fi
5619
5699
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
5620
5700
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
5621
5701
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
 
5702
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5622
5703
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
5623
5704
_LT_AC_TAGVAR(module_cmds, $1)=
5624
5705
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
5634
5715
_LT_AC_TAGVAR(predeps, $1)=
5635
5716
_LT_AC_TAGVAR(postdeps, $1)=
5636
5717
_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
 
5718
_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
5637
5719
 
5638
5720
# Source file extension for C++ test sources.
5639
5721
ac_ext=cpp
5643
5725
_LT_AC_TAGVAR(objext, $1)=$objext
5644
5726
 
5645
5727
# Code to be used in simple compile tests
5646
 
lt_simple_compile_test_code="int some_variable = 0;\n"
 
5728
lt_simple_compile_test_code="int some_variable = 0;"
5647
5729
 
5648
5730
# Code to be used in simple link tests
5649
 
lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
 
5731
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
5650
5732
 
5651
5733
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
5652
5734
_LT_AC_SYS_COMPILER
5743
5825
    # FIXME: insert proper C++ library support
5744
5826
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
5745
5827
    ;;
5746
 
  aix4* | aix5*)
 
5828
  aix[[4-9]]*)
5747
5829
    if test "$host_cpu" = ia64; then
5748
5830
      # On IA64, the linker does run time linking by default, so we don't
5749
5831
      # have to do anything special.
5756
5838
      # Test if we are trying to use run time linking or normal
5757
5839
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5758
5840
      # need to do runtime linking.
5759
 
      case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
 
5841
      case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
5760
5842
        for ld_flag in $LDFLAGS; do
5761
5843
          case $ld_flag in
5762
5844
          *-brtl*)
5765
5847
            ;;
5766
5848
          esac
5767
5849
        done
 
5850
        ;;
5768
5851
      esac
5769
5852
 
5770
5853
      exp_sym_flag='-bexport'
5791
5874
           strings "$collect2name" | grep resolve_lib_name >/dev/null
5792
5875
        then
5793
5876
          # We have reworked collect2
5794
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
5877
          :
5795
5878
        else
5796
5879
          # We have old collect2
5797
5880
          _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
5802
5885
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5803
5886
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
5804
5887
        fi
 
5888
        ;;
5805
5889
      esac
5806
5890
      shared_flag='-shared'
5807
5891
      if test "$aix_use_runtimelinking" = yes; then
5833
5917
      _LT_AC_SYS_LIBPATH_AIX
5834
5918
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5835
5919
 
5836
 
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
5920
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
5837
5921
     else
5838
5922
      if test "$host_cpu" = ia64; then
5839
5923
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
5840
5924
        _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
5841
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
 
5925
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
5842
5926
      else
5843
5927
        # Determine the default libpath from the value encoded in an empty executable.
5844
5928
        _LT_AC_SYS_LIBPATH_AIX
5847
5931
        # -berok will link without error, but may produce a broken library.
5848
5932
        _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
5849
5933
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
5850
 
        # -bexpall does not export symbols beginning with underscore (_)
5851
 
        _LT_AC_TAGVAR(always_export_symbols, $1)=yes
5852
5934
        # Exported symbols can be pulled into shared objects from archives
5853
 
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
 
5935
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
5854
5936
        _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
5855
5937
        # This is similar to how AIX traditionally builds its shared libraries.
5856
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
5938
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
5857
5939
      fi
5858
5940
    fi
5859
5941
    ;;
 
5942
 
 
5943
  beos*)
 
5944
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
5945
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
 
5946
      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
5947
      # support --undefined.  This deserves some investigation.  FIXME
 
5948
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
5949
    else
 
5950
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
5951
    fi
 
5952
    ;;
 
5953
 
5860
5954
  chorus*)
5861
5955
    case $cc_basename in
5862
5956
      *)
5866
5960
    esac
5867
5961
    ;;
5868
5962
 
5869
 
 
5870
5963
  cygwin* | mingw* | pw32*)
5871
5964
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
5872
5965
    # as there is no search path for DLLs.
5876
5969
    _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5877
5970
 
5878
5971
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
5879
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
5972
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5880
5973
      # If the export-symbols file already is a .def file (1st line
5881
5974
      # is EXPORTS), use it as is; otherwise, prepend...
5882
5975
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5885
5978
        echo EXPORTS > $output_objdir/$soname.def;
5886
5979
        cat $export_symbols >> $output_objdir/$soname.def;
5887
5980
      fi~
5888
 
      $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'
 
5981
      $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'
5889
5982
    else
5890
5983
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
5891
5984
    fi
5892
5985
  ;;
5893
5986
      darwin* | rhapsody*)
5894
 
        case $host_os in
5895
 
        rhapsody* | darwin1.[[012]])
5896
 
         _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
5897
 
         ;;
5898
 
       *) # Darwin 1.3 on
5899
 
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
5900
 
           _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
5901
 
         else
5902
 
           case ${MACOSX_DEPLOYMENT_TARGET} in
5903
 
             10.[[012]])
5904
 
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
5905
 
               ;;
5906
 
             10.*)
5907
 
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
5908
 
               ;;
5909
 
           esac
5910
 
         fi
5911
 
         ;;
5912
 
        esac
5913
5987
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5914
5988
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
5915
5989
      _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
5916
5990
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5917
5991
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
5918
5992
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5919
 
 
5920
 
    if test "$GXX" = yes ; then
5921
 
      lt_int_apple_cc_single_mod=no
 
5993
      _LT_AC_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
 
5994
      if test "$GXX" = yes ; then
5922
5995
      output_verbose_link_cmd='echo'
5923
 
      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
5924
 
       lt_int_apple_cc_single_mod=yes
 
5996
      _LT_AC_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 
5997
      _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
5998
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
 
5999
      _LT_AC_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
 
6000
      if test "$lt_cv_apple_cc_single_mod" != "yes"; then
 
6001
        _LT_AC_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
 
6002
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
5925
6003
      fi
5926
 
      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
5927
 
       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
5928
 
      else
5929
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
5930
 
        fi
5931
 
        _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
5932
 
        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
5933
 
          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
5934
 
            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5935
 
          else
5936
 
            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5937
 
          fi
5938
 
            _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5939
6004
      else
5940
6005
      case $cc_basename in
5941
6006
        xlc*)
5942
6007
         output_verbose_link_cmd='echo'
5943
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
6008
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
5944
6009
          _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
5945
6010
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
5946
 
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
6011
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5947
6012
          _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5948
6013
          ;;
5949
6014
       *)
5977
6042
  freebsd-elf*)
5978
6043
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5979
6044
    ;;
5980
 
  freebsd* | kfreebsd*-gnu | dragonfly*)
 
6045
  freebsd* | dragonfly*)
5981
6046
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
5982
6047
    # conventions
5983
6048
    _LT_AC_TAGVAR(ld_shlibs, $1)=yes
6022
6087
    ;;
6023
6088
  hpux10*|hpux11*)
6024
6089
    if test $with_gnu_ld = no; then
 
6090
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
6091
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
6092
 
6025
6093
      case $host_cpu in
6026
 
      hppa*64*)
6027
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6028
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
6029
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6030
 
        ;;
6031
 
      ia64*)
6032
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6033
 
        ;;
 
6094
      hppa*64*|ia64*) ;;
6034
6095
      *)
6035
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6036
 
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6037
6096
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6038
6097
        ;;
6039
6098
      esac
6040
6099
    fi
6041
6100
    case $host_cpu in
6042
 
    hppa*64*)
6043
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
6044
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6045
 
      ;;
6046
 
    ia64*)
6047
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
6048
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6049
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
6050
 
                                              # but as the default
6051
 
                                              # location of the library.
 
6101
    hppa*64*|ia64*)
 
6102
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
6103
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6052
6104
      ;;
6053
6105
    *)
6054
6106
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6065
6117
        ;;
6066
6118
      aCC*)
6067
6119
        case $host_cpu in
6068
 
        hppa*64*|ia64*)
6069
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
 
6120
        hppa*64*)
 
6121
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
6122
          ;;
 
6123
        ia64*)
 
6124
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6070
6125
          ;;
6071
6126
        *)
6072
6127
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6086
6141
        if test "$GXX" = yes; then
6087
6142
          if test $with_gnu_ld = no; then
6088
6143
            case $host_cpu in
6089
 
            ia64*|hppa*64*)
6090
 
              _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
 
6144
            hppa*64*)
 
6145
              _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
6146
              ;;
 
6147
            ia64*)
 
6148
              _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6091
6149
              ;;
6092
6150
            *)
6093
6151
              _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6101
6159
        ;;
6102
6160
    esac
6103
6161
    ;;
 
6162
  interix[[3-9]]*)
 
6163
    _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
6164
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6165
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
6166
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
6167
    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
6168
    # Instead, shared libraries are loaded at an image base (0x10000000 by
 
6169
    # default) and relocated if they conflict, which is a slow very memory
 
6170
    # consuming and fragmenting process.  To avoid this, we pick a random,
 
6171
    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
6172
    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
6173
    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
6174
    _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
6175
    ;;
6104
6176
  irix5* | irix6*)
6105
6177
    case $cc_basename in
6106
6178
      CC*)
6127
6199
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6128
6200
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6129
6201
    ;;
6130
 
  linux*)
 
6202
  linux* | k*bsd*-gnu)
6131
6203
    case $cc_basename in
6132
6204
      KCC*)
6133
6205
        # Kuck and Associates, Inc. (KAI) C++ Compiler
6179
6251
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6180
6252
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
6181
6253
        ;;
6182
 
      pgCC*)
 
6254
      pgCC* | pgcpp*)
6183
6255
        # Portland Group C++ compiler
6184
6256
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
6185
6257
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
6207
6279
        # dependencies.
6208
6280
        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
6209
6281
        ;;
 
6282
      *)
 
6283
        case `$CC -V 2>&1 | sed 5q` in
 
6284
        *Sun\ C*)
 
6285
          # Sun C++ 5.9
 
6286
          _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
 
6287
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
6288
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
 
6289
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
6290
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
6291
 
 
6292
          # Not sure whether something based on
 
6293
          # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
 
6294
          # would be better.
 
6295
          output_verbose_link_cmd='echo'
 
6296
 
 
6297
          # Archives containing C++ object files must be created using
 
6298
          # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
6299
          # necessary to make sure instantiated templates are included
 
6300
          # in the archive.
 
6301
          _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
 
6302
          ;;
 
6303
        esac
 
6304
        ;;
6210
6305
    esac
6211
6306
    ;;
6212
6307
  lynxos*)
6245
6340
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
6246
6341
    ;;
6247
6342
  openbsd*)
6248
 
    _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6249
 
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6250
 
    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
6251
 
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6252
 
    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6253
 
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
6254
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6255
 
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
6343
    if test -f /usr/libexec/ld.so; then
 
6344
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
6345
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6346
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
6347
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
6348
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
6349
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
 
6350
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
6351
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
6352
      fi
 
6353
      output_verbose_link_cmd='echo'
 
6354
    else
 
6355
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
6256
6356
    fi
6257
 
    output_verbose_link_cmd='echo'
6258
6357
    ;;
6259
6358
  osf3*)
6260
6359
    case $cc_basename in
6383
6482
    # FIXME: insert proper C++ library support
6384
6483
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
6385
6484
    ;;
6386
 
  sco*)
6387
 
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6388
 
    case $cc_basename in
6389
 
      CC*)
6390
 
        # FIXME: insert proper C++ library support
6391
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
6392
 
        ;;
6393
 
      *)
6394
 
        # FIXME: insert proper C++ library support
6395
 
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
6396
 
        ;;
6397
 
    esac
6398
 
    ;;
6399
6485
  sunos4*)
6400
6486
    case $cc_basename in
6401
6487
      CC*)
6418
6504
    case $cc_basename in
6419
6505
      CC*)
6420
6506
        # Sun C++ 4.2, 5.x and Centerline C++
6421
 
     _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
 
6507
        _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
6422
6508
        _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
6423
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
6509
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6424
6510
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6425
 
        $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'
 
6511
        $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'
6426
6512
 
6427
6513
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6428
6514
        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6429
6515
        case $host_os in
6430
6516
          solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6431
6517
          *)
6432
 
            # The C++ compiler is used as linker so we must use $wl
6433
 
            # flag to pass the commands to the underlying system
6434
 
            # linker. We must also pass each convience library through
6435
 
            # to the system linker between allextract/defaultextract.
6436
 
            # The C++ compiler will combine linker options so we
6437
 
            # cannot just pass the convience library names through
6438
 
            # without $wl.
 
6518
            # The compiler driver will combine and reorder linker options,
 
6519
            # but understands `-z linker_flag'.
6439
6520
            # Supported since Solaris 2.6 (maybe 2.5.1?)
6440
 
            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
 
6521
            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
6441
6522
            ;;
6442
6523
        esac
6443
6524
        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6484
6565
          fi
6485
6566
 
6486
6567
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
 
6568
          case $host_os in
 
6569
          solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
 
6570
          *)
 
6571
            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
6572
            ;;
 
6573
          esac
6487
6574
        fi
6488
6575
        ;;
6489
6576
    esac
6490
6577
    ;;
6491
 
  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
6492
 
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
6578
  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
 
6579
    _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
6580
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
6581
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6582
    runpath_var='LD_RUN_PATH'
 
6583
 
 
6584
    case $cc_basename in
 
6585
      CC*)
 
6586
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6587
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6588
        ;;
 
6589
      *)
 
6590
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6591
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6592
        ;;
 
6593
    esac
 
6594
    ;;
 
6595
  sysv5* | sco3.2v5* | sco5v6*)
 
6596
    # Note: We can NOT use -z defs as we might desire, because we do not
 
6597
    # link with -lc, and that would cause any symbols used from libc to
 
6598
    # always be unresolved, which means just about no library would
 
6599
    # ever link correctly.  If we're not using GNU ld we use -z text
 
6600
    # though, which does catch some bad symbols but isn't as heavy-handed
 
6601
    # as -z defs.
 
6602
    # For security reasons, it is highly recommended that you always
 
6603
    # use absolute paths for naming shared libraries, and exclude the
 
6604
    # DT_RUNPATH tag from executables and libraries.  But doing so
 
6605
    # requires that you compile everything twice, which is a pain.
 
6606
    # So that behaviour is only enabled if SCOABSPATH is set to a
 
6607
    # non-empty value in the environment.  Most likely only useful for
 
6608
    # creating official distributions of packages.
 
6609
    # This is a hack until libtool officially supports absolute path
 
6610
    # names for shared libraries.
 
6611
    _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
6612
    _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
 
6613
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
6614
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6615
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
6616
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
 
6617
    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
6618
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
 
6619
    runpath_var='LD_RUN_PATH'
 
6620
 
 
6621
    case $cc_basename in
 
6622
      CC*)
 
6623
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6624
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6625
        ;;
 
6626
      *)
 
6627
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6628
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6629
        ;;
 
6630
    esac
6493
6631
    ;;
6494
6632
  tandem*)
6495
6633
    case $cc_basename in
6530
6668
AC_LIBTOOL_PROG_LD_SHLIBS($1)
6531
6669
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
6532
6670
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
6533
 
AC_LIBTOOL_SYS_LIB_STRIP
6534
 
AC_LIBTOOL_DLOPEN_SELF($1)
6535
6671
 
6536
6672
AC_LIBTOOL_CONFIG($1)
6537
6673
 
6549
6685
])# AC_LIBTOOL_LANG_CXX_CONFIG
6550
6686
 
6551
6687
# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
6552
 
# ------------------------
 
6688
# ------------------------------------
6553
6689
# Figure out "hidden" library dependencies from verbose
6554
6690
# compiler output when linking a shared library.
6555
6691
# Parse the compiler output and extract the necessary
6556
6692
# objects, libraries and library flags.
6557
 
AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
 
6693
AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],
 
6694
[AC_REQUIRE([LT_AC_PROG_SED])dnl
6558
6695
dnl we can't use the lt_simple_compile_test_code here,
6559
6696
dnl because it contains code intended for an executable,
6560
6697
dnl not a library.  It's possible we should let each
6679
6816
 
6680
6817
$rm -f confest.$objext
6681
6818
 
 
6819
_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
 
6820
if test -n "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
 
6821
  _LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_AC_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
 
6822
fi
 
6823
 
6682
6824
# PORTME: override above test on systems where it is broken
6683
6825
ifelse([$1],[CXX],
6684
6826
[case $host_os in
 
6827
interix[[3-9]]*)
 
6828
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
 
6829
  # hack all around it, let's just trust "g++" to DTRT.
 
6830
  _LT_AC_TAGVAR(predep_objects,$1)=
 
6831
  _LT_AC_TAGVAR(postdep_objects,$1)=
 
6832
  _LT_AC_TAGVAR(postdeps,$1)=
 
6833
  ;;
 
6834
 
 
6835
linux*)
 
6836
  case `$CC -V 2>&1 | sed 5q` in
 
6837
  *Sun\ C*)
 
6838
    # Sun C++ 5.9
 
6839
    #
 
6840
    # The more standards-conforming stlport4 library is
 
6841
    # incompatible with the Cstd library. Avoid specifying
 
6842
    # it if it's in CXXFLAGS. Ignore libCrun as
 
6843
    # -library=stlport4 depends on it.
 
6844
    case " $CXX $CXXFLAGS " in
 
6845
    *" -library=stlport4 "*)
 
6846
      solaris_use_stlport4=yes
 
6847
      ;;
 
6848
    esac
 
6849
    if test "$solaris_use_stlport4" != yes; then
 
6850
      _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
 
6851
    fi
 
6852
    ;;
 
6853
  esac
 
6854
  ;;
 
6855
 
6685
6856
solaris*)
6686
6857
  case $cc_basename in
6687
6858
  CC*)
 
6859
    # The more standards-conforming stlport4 library is
 
6860
    # incompatible with the Cstd library. Avoid specifying
 
6861
    # it if it's in CXXFLAGS. Ignore libCrun as
 
6862
    # -library=stlport4 depends on it.
 
6863
    case " $CXX $CXXFLAGS " in
 
6864
    *" -library=stlport4 "*)
 
6865
      solaris_use_stlport4=yes
 
6866
      ;;
 
6867
    esac
 
6868
 
6688
6869
    # Adding this requires a known-good setup of shared libraries for
6689
6870
    # Sun compiler versions before 5.6, else PIC objects from an old
6690
6871
    # archive will be linked into the output, leading to subtle bugs.
6691
 
    _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
 
6872
    if test "$solaris_use_stlport4" != yes; then
 
6873
      _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
 
6874
    fi
6692
6875
    ;;
6693
6876
  esac
 
6877
  ;;
6694
6878
esac
6695
6879
])
6696
 
 
6697
6880
case " $_LT_AC_TAGVAR(postdeps, $1) " in
6698
6881
*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
6699
6882
esac
6700
6883
])# AC_LIBTOOL_POSTDEP_PREDEP
6701
6884
 
6702
 
# AC_LIBTOOL_LANG_F77_CONFIG
6703
 
# ------------------------
6704
 
# Ensure that the configuration vars for the C compiler are
6705
 
# suitably defined.  Those variables are subsequently used by
6706
 
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
6707
 
#AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
6708
 
#AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
6709
 
#[AC_REQUIRE([AC_PROG_F77])
6710
 
#AC_LANG_SAVE
6711
 
#AC_LANG_FORTRAN77
6712
 
#
6713
 
#_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6714
 
#_LT_AC_TAGVAR(allow_undefined_flag, $1)=
6715
 
#_LT_AC_TAGVAR(always_export_symbols, $1)=no
6716
 
#_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
6717
 
#_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
6718
 
#_LT_AC_TAGVAR(hardcode_direct, $1)=no
6719
 
#_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
6720
 
#_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
6721
 
#_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
6722
 
#_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
6723
 
#_LT_AC_TAGVAR(hardcode_automatic, $1)=no
6724
 
#_LT_AC_TAGVAR(module_cmds, $1)=
6725
 
#_LT_AC_TAGVAR(module_expsym_cmds, $1)=
6726
 
#_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
6727
 
#_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
6728
 
#_LT_AC_TAGVAR(no_undefined_flag, $1)=
6729
 
#_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
6730
 
#_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6731
 
#
6732
 
## Source file extension for f77 test sources.
6733
 
#ac_ext=f
6734
 
#
6735
 
## Object file extension for compiled f77 test sources.
6736
 
#objext=o
6737
 
#_LT_AC_TAGVAR(objext, $1)=$objext
6738
 
#
6739
 
## Code to be used in simple compile tests
6740
 
#lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
6741
 
#
6742
 
## Code to be used in simple link tests
6743
 
#lt_simple_link_test_code="      program t\n      end\n"
6744
 
#
6745
 
## ltmain only uses $CC for tagged configurations so make sure $CC is set.
6746
 
#_LT_AC_SYS_COMPILER
6747
 
#
6748
 
## save warnings/boilerplate of simple test code
6749
 
#_LT_COMPILER_BOILERPLATE
6750
 
#_LT_LINKER_BOILERPLATE
6751
 
#
6752
 
## Allow CC to be a program name with arguments.
6753
 
#lt_save_CC="$CC"
6754
 
#CC=${F77-"f77"}
6755
 
#compiler=$CC
6756
 
#_LT_AC_TAGVAR(compiler, $1)=$CC
6757
 
#_LT_CC_BASENAME([$compiler])
6758
 
#
6759
 
#AC_MSG_CHECKING([if libtool supports shared libraries])
6760
 
#AC_MSG_RESULT([$can_build_shared])
6761
 
#
6762
 
#AC_MSG_CHECKING([whether to build shared libraries])
6763
 
#test "$can_build_shared" = "no" && enable_shared=no
6764
 
#
6765
 
## On AIX, shared libraries and static libraries use the same namespace, and
6766
 
## are all built from PIC.
6767
 
#case "$host_os" in
6768
 
#aix3*)
6769
 
#  test "$enable_shared" = yes && enable_static=no
6770
 
#  if test -n "$RANLIB"; then
6771
 
#    archive_cmds="$archive_cmds~\$RANLIB \$lib"
6772
 
#    postinstall_cmds='$RANLIB $lib'
6773
 
#  fi
6774
 
#  ;;
6775
 
#aix4* | aix5*)
6776
 
#  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6777
 
#    test "$enable_shared" = yes && enable_static=no
6778
 
#  fi
6779
 
#  ;;
6780
 
#esac
6781
 
#AC_MSG_RESULT([$enable_shared])
6782
 
#
6783
 
#AC_MSG_CHECKING([whether to build static libraries])
6784
 
## Make sure either enable_shared or enable_static is yes.
6785
 
#test "$enable_shared" = yes || enable_static=yes
6786
 
#AC_MSG_RESULT([$enable_static])
6787
 
#
6788
 
#test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
6789
 
#
6790
 
#_LT_AC_TAGVAR(GCC, $1)="$G77"
6791
 
#_LT_AC_TAGVAR(LD, $1)="$LD"
6792
 
#
6793
 
#AC_LIBTOOL_PROG_COMPILER_PIC($1)
6794
 
#AC_LIBTOOL_PROG_CC_C_O($1)
6795
 
#AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
6796
 
#AC_LIBTOOL_PROG_LD_SHLIBS($1)
6797
 
#AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
6798
 
#AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
6799
 
#AC_LIBTOOL_SYS_LIB_STRIP
6800
 
#
6801
 
#
6802
 
#AC_LIBTOOL_CONFIG($1)
6803
 
#
6804
 
#AC_LANG_RESTORE
6805
 
#CC="$lt_save_CC"
6806
 
#])# AC_LIBTOOL_LANG_F77_CONFIG
6807
 
 
6808
 
 
6809
 
# AC_LIBTOOL_LANG_GCJ_CONFIG
6810
 
# --------------------------
6811
 
# Ensure that the configuration vars for the C compiler are
6812
 
# suitably defined.  Those variables are subsequently used by
6813
 
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
6814
 
#AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
6815
 
#AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
6816
 
#[AC_LANG_SAVE
6817
 
#
6818
 
## Source file extension for Java test sources.
6819
 
#ac_ext=java
6820
 
#
6821
 
## Object file extension for compiled Java test sources.
6822
 
#objext=o
6823
 
#_LT_AC_TAGVAR(objext, $1)=$objext
6824
 
#
6825
 
## Code to be used in simple compile tests
6826
 
#lt_simple_compile_test_code="class foo {}\n"
6827
 
#
6828
 
## Code to be used in simple link tests
6829
 
#lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n'
6830
 
#
6831
 
## ltmain only uses $CC for tagged configurations so make sure $CC is set.
6832
 
#_LT_AC_SYS_COMPILER
6833
 
#
6834
 
## save warnings/boilerplate of simple test code
6835
 
#_LT_COMPILER_BOILERPLATE
6836
 
#_LT_LINKER_BOILERPLATE
6837
 
#
6838
 
## Allow CC to be a program name with arguments.
6839
 
#lt_save_CC="$CC"
6840
 
#CC=${GCJ-"gcj"}
6841
 
#compiler=$CC
6842
 
#_LT_AC_TAGVAR(compiler, $1)=$CC
6843
 
#_LT_CC_BASENAME([$compiler])
6844
 
#
6845
 
## GCJ did not exist at the time GCC didn't implicitly link libc in.
6846
 
#_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6847
 
#
6848
 
#_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
6849
 
#
6850
 
### CAVEAT EMPTOR:
6851
 
### There is no encapsulation within the following macros, do not change
6852
 
### the running order or otherwise move them around unless you know exactly
6853
 
### what you are doing...
6854
 
#AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
6855
 
#AC_LIBTOOL_PROG_COMPILER_PIC($1)
6856
 
#AC_LIBTOOL_PROG_CC_C_O($1)
6857
 
#AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
6858
 
#AC_LIBTOOL_PROG_LD_SHLIBS($1)
6859
 
#AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
6860
 
#AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
6861
 
#AC_LIBTOOL_SYS_LIB_STRIP
6862
 
#AC_LIBTOOL_DLOPEN_SELF($1)
6863
 
#
6864
 
#AC_LIBTOOL_CONFIG($1)
6865
 
#
6866
 
#AC_LANG_RESTORE
6867
 
#CC="$lt_save_CC"
6868
 
#])# AC_LIBTOOL_LANG_GCJ_CONFIG
6869
 
 
6870
 
 
6871
 
# AC_LIBTOOL_LANG_RC_CONFIG
6872
 
# --------------------------
6873
 
# Ensure that the configuration vars for the Windows resource compiler are
6874
 
# suitably defined.  Those variables are subsequently used by
6875
 
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
6876
 
#AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
6877
 
#AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
6878
 
#[AC_LANG_SAVE
6879
 
#
6880
 
## Source file extension for RC test sources.
6881
 
#ac_ext=rc
6882
 
#
6883
 
## Object file extension for compiled RC test sources.
6884
 
#objext=o
6885
 
#_LT_AC_TAGVAR(objext, $1)=$objext
6886
 
#
6887
 
## Code to be used in simple compile tests
6888
 
#lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
6889
 
#
6890
 
## Code to be used in simple link tests
6891
 
#lt_simple_link_test_code="$lt_simple_compile_test_code"
6892
 
#
6893
 
## ltmain only uses $CC for tagged configurations so make sure $CC is set.
6894
 
#_LT_AC_SYS_COMPILER
6895
 
#
6896
 
## save warnings/boilerplate of simple test code
6897
 
#_LT_COMPILER_BOILERPLATE
6898
 
#_LT_LINKER_BOILERPLATE
6899
 
#
6900
 
## Allow CC to be a program name with arguments.
6901
 
#lt_save_CC="$CC"
6902
 
#CC=${RC-"windres"}
6903
 
#compiler=$CC
6904
 
#_LT_AC_TAGVAR(compiler, $1)=$CC
6905
 
#_LT_CC_BASENAME([$compiler])
6906
 
#_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
6907
 
#
6908
 
#AC_LIBTOOL_CONFIG($1)
6909
 
#
6910
 
#AC_LANG_RESTORE
6911
 
#CC="$lt_save_CC"
6912
 
#])# AC_LIBTOOL_LANG_RC_CONFIG
6913
 
 
6914
 
 
6915
6885
# AC_LIBTOOL_CONFIG([TAGNAME])
6916
6886
# ----------------------------
6917
6887
# If TAGNAME is not passed, then create an initial libtool script
6932
6902
  # Now quote all the things that may contain metacharacters while being
6933
6903
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
6934
6904
  # variables and quote the copies for generation of the libtool script.
6935
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
6905
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
6936
6906
    SED SHELL STRIP \
6937
6907
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
6938
6908
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
6959
6929
    _LT_AC_TAGVAR(predeps, $1) \
6960
6930
    _LT_AC_TAGVAR(postdeps, $1) \
6961
6931
    _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
 
6932
    _LT_AC_TAGVAR(compiler_lib_search_dirs, $1) \
6962
6933
    _LT_AC_TAGVAR(archive_cmds, $1) \
6963
6934
    _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
6964
6935
    _LT_AC_TAGVAR(postinstall_cmds, $1) \
6974
6945
    _LT_AC_TAGVAR(module_cmds, $1) \
6975
6946
    _LT_AC_TAGVAR(module_expsym_cmds, $1) \
6976
6947
    _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
 
6948
    _LT_AC_TAGVAR(fix_srcfile_path, $1) \
6977
6949
    _LT_AC_TAGVAR(exclude_expsyms, $1) \
6978
6950
    _LT_AC_TAGVAR(include_expsyms, $1); do
6979
6951
 
7021
6993
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7022
6994
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
7023
6995
#
7024
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
 
6996
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
7025
6997
# Free Software Foundation, Inc.
7026
6998
#
7027
6999
# This file is part of GNU Libtool:
7102
7074
# A C compiler.
7103
7075
LTCC=$lt_LTCC
7104
7076
 
 
7077
# LTCC compiler flags.
 
7078
LTCFLAGS=$lt_LTCFLAGS
 
7079
 
7105
7080
# A language-specific compiler.
7106
7081
CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
7107
7082
 
7255
7230
# shared library.
7256
7231
postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
7257
7232
 
 
7233
# The directories searched by this compiler when creating a shared
 
7234
# library
 
7235
compiler_lib_search_dirs=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)
 
7236
 
7258
7237
# The library search path used internally by the compiler when linking
7259
7238
# a shared library.
7260
7239
compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
7343
7322
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7344
7323
 
7345
7324
# Fix the shell variable \$srcfile for the compiler.
7346
 
fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
 
7325
fix_srcfile_path=$lt_fix_srcfile_path
7347
7326
 
7348
7327
# Set to yes if exported symbols are required.
7349
7328
always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
7426
7405
# ---------------------------------
7427
7406
AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
7428
7407
[AC_REQUIRE([AC_CANONICAL_HOST])
 
7408
AC_REQUIRE([LT_AC_PROG_SED])
7429
7409
AC_REQUIRE([AC_PROG_NM])
7430
7410
AC_REQUIRE([AC_OBJEXT])
7431
7411
# Check for command to grab the raw symbol name followed by C symbol from nm.
7462
7442
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7463
7443
  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'"
7464
7444
  ;;
7465
 
linux*)
 
7445
linux* | k*bsd*-gnu)
7466
7446
  if test "$host_cpu" = ia64; then
7467
7447
    symcode='[[ABCDGIRSTW]]'
7468
7448
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7475
7455
osf*)
7476
7456
  symcode='[[BCDEGQRST]]'
7477
7457
  ;;
7478
 
solaris* | sysv5*)
 
7458
solaris*)
7479
7459
  symcode='[[BDRT]]'
7480
7460
  ;;
 
7461
sco3.2v5*)
 
7462
  symcode='[[DT]]'
 
7463
  ;;
 
7464
sysv4.2uw2*)
 
7465
  symcode='[[DT]]'
 
7466
  ;;
 
7467
sysv5* | sco5v6* | unixware* | OpenUNIX*)
 
7468
  symcode='[[ABDT]]'
 
7469
  ;;
7481
7470
sysv4)
7482
7471
  symcode='[[DFNSTU]]'
7483
7472
  ;;
7594
7583
    echo "$progname: failed program was:" >&5
7595
7584
    cat conftest.$ac_ext >&5
7596
7585
  fi
7597
 
  rm -f conftest* conftst*
 
7586
  rm -rf conftest* conftst*
7598
7587
 
7599
7588
  # Do not use the global_symbol_pipe unless it works.
7600
7589
  if test "$pipe_works" = yes; then
7643
7632
      # like `-m68040'.
7644
7633
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
7645
7634
      ;;
7646
 
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
7635
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7647
7636
      # PIC is the default for these OSes.
7648
7637
      ;;
7649
 
    mingw* | os2* | pw32*)
 
7638
    mingw* | cygwin* | os2* | pw32*)
7650
7639
      # This hack is so that the source file can tell whether it is being
7651
7640
      # built for inclusion in a dll (and should export symbols for example).
7652
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
 
7641
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
7642
      # (--disable-auto-import) libraries
 
7643
          _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
7653
7644
      ;;
7654
7645
    darwin* | rhapsody*)
7655
7646
      # PIC is the default on this platform
7660
7651
      # DJGPP does not support shared libraries at all
7661
7652
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
7662
7653
      ;;
 
7654
    interix[[3-9]]*)
 
7655
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
7656
      # Instead, we relocate shared libraries at runtime.
 
7657
      ;;
7663
7658
    sysv4*MP*)
7664
7659
      if test -d /usr/nec; then
7665
7660
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
7682
7677
    esac
7683
7678
  else
7684
7679
    case $host_os in
7685
 
      aix4* | aix5*)
 
7680
      aix[[4-9]]*)
7686
7681
        # All AIX code is PIC.
7687
7682
        if test "$host_cpu" = ia64; then
7688
7683
          # AIX 5 now supports IA64 processor
7722
7717
            ;;
7723
7718
        esac
7724
7719
        ;;
7725
 
      freebsd* | kfreebsd*-gnu | dragonfly*)
 
7720
      freebsd* | dragonfly*)
7726
7721
        # FreeBSD uses GNU C++
7727
7722
        ;;
7728
7723
      hpux9* | hpux10* | hpux11*)
7729
7724
        case $cc_basename in
7730
7725
          CC*)
7731
7726
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7732
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
 
7727
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
7733
7728
            if test "$host_cpu" != ia64; then
7734
7729
              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
7735
7730
            fi
7736
7731
            ;;
7737
7732
          aCC*)
7738
7733
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7739
 
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
 
7734
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
7740
7735
            case $host_cpu in
7741
7736
            hppa*64*|ia64*)
7742
7737
              # +Z the default
7750
7745
            ;;
7751
7746
        esac
7752
7747
        ;;
 
7748
      interix*)
 
7749
        # This is c89, which is MS Visual C++ (no shared libs)
 
7750
        # Anyone wants to do a port?
 
7751
        ;;
7753
7752
      irix5* | irix6* | nonstopux*)
7754
7753
        case $cc_basename in
7755
7754
          CC*)
7761
7760
            ;;
7762
7761
        esac
7763
7762
        ;;
7764
 
      linux*)
 
7763
      linux* | k*bsd*-gnu)
7765
7764
        case $cc_basename in
7766
7765
          KCC*)
7767
7766
            # KAI C++ Compiler
7780
7779
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
7781
7780
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
7782
7781
        ;;
7783
 
          pgCC*)
 
7782
          pgCC* | pgcpp*)
7784
7783
            # Portland Group C++ compiler.
7785
7784
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7786
7785
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
7794
7793
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
7795
7794
            ;;
7796
7795
          *)
 
7796
            case `$CC -V 2>&1 | sed 5q` in
 
7797
            *Sun\ C*)
 
7798
              # Sun C++ 5.9
 
7799
              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
7800
              _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
7801
              _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
 
7802
              ;;
 
7803
            esac
7797
7804
            ;;
7798
7805
        esac
7799
7806
        ;;
7835
7842
        ;;
7836
7843
      psos*)
7837
7844
        ;;
7838
 
      sco*)
7839
 
        case $cc_basename in
7840
 
          CC*)
7841
 
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
7842
 
            ;;
7843
 
          *)
7844
 
            ;;
7845
 
        esac
7846
 
        ;;
7847
7845
      solaris*)
7848
7846
        case $cc_basename in
7849
7847
          CC*)
7885
7883
            ;;
7886
7884
        esac
7887
7885
        ;;
7888
 
      unixware*)
 
7886
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
7887
        case $cc_basename in
 
7888
          CC*)
 
7889
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
7890
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
7891
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
7892
            ;;
 
7893
        esac
7889
7894
        ;;
7890
7895
      vxworks*)
7891
7896
        ;;
7916
7921
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
7917
7922
      ;;
7918
7923
 
7919
 
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
7924
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7920
7925
      # PIC is the default for these OSes.
7921
7926
      ;;
7922
7927
 
7923
 
    mingw* | pw32* | os2*)
 
7928
    mingw* | cygwin* | pw32* | os2*)
7924
7929
      # This hack is so that the source file can tell whether it is being
7925
7930
      # built for inclusion in a dll (and should export symbols for example).
7926
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
 
7931
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
7932
      # (--disable-auto-import) libraries
 
7933
          _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
7927
7934
      ;;
7928
7935
 
7929
7936
    darwin* | rhapsody*)
7932
7939
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
7933
7940
      ;;
7934
7941
 
 
7942
    interix[[3-9]]*)
 
7943
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
7944
      # Instead, we relocate shared libraries at runtime.
 
7945
      ;;
 
7946
 
7935
7947
    msdosdjgpp*)
7936
7948
      # Just because we use GCC doesn't mean we suddenly get shared libraries
7937
7949
      # on systems that don't support them.
7985
7997
       esac
7986
7998
       ;;
7987
7999
 
7988
 
    mingw* | pw32* | os2*)
 
8000
    mingw* | cygwin* | pw32* | os2*)
7989
8001
      # This hack is so that the source file can tell whether it is being
7990
8002
      # built for inclusion in a dll (and should export symbols for example).
7991
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
 
8003
          _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
7992
8004
      ;;
7993
8005
 
7994
8006
    hpux9* | hpux10* | hpux11*)
8018
8030
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
8019
8031
      ;;
8020
8032
 
8021
 
    linux*)
 
8033
    linux* | k*bsd*-gnu)
8022
8034
      case $cc_basename in
8023
8035
      # old Intel for x86_64 which still supported -KPIC.
8024
8036
      ecc*)
8045
8057
        # All Alpha code is PIC.
8046
8058
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
8047
8059
        ;;
 
8060
      *)
 
8061
        case `$CC -V 2>&1 | sed 5q` in
 
8062
        *Sun\ C*)
 
8063
          # Sun C 5.9
 
8064
          _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
8065
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
8066
          _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
8067
          ;;
 
8068
        *Sun\ F*)
 
8069
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
8070
          _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
8071
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
8072
          _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=''
 
8073
          ;;
 
8074
        esac
 
8075
        ;;
8048
8076
      esac
8049
8077
      ;;
8050
8078
 
8054
8082
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
8055
8083
      ;;
8056
8084
 
8057
 
    sco3.2v5*)
8058
 
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kpic'
8059
 
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-dn'
 
8085
    rdos*)
 
8086
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
8060
8087
      ;;
8061
8088
 
8062
8089
    solaris*)
8076
8103
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
8077
8104
      ;;
8078
8105
 
8079
 
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
8106
    sysv4 | sysv4.2uw2* | sysv4.3*)
8080
8107
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
8081
8108
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
8082
8109
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
8089
8116
      fi
8090
8117
      ;;
8091
8118
 
 
8119
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
8120
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
8121
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
8122
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
8123
      ;;
 
8124
 
8092
8125
    unicos*)
8093
8126
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
8094
8127
      _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
8112
8145
#
8113
8146
if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
8114
8147
  AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
8115
 
    _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
 
8148
    _LT_AC_TAGVAR(lt_cv_prog_compiler_pic_works, $1),
8116
8149
    [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
8117
8150
    [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
8118
8151
     "" | " "*) ;;
8130
8163
    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
8131
8164
    ;;
8132
8165
esac
 
8166
 
 
8167
#
 
8168
# Check to make sure the static flag actually works.
 
8169
#
 
8170
wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
 
8171
AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
 
8172
  _LT_AC_TAGVAR(lt_cv_prog_compiler_static_works, $1),
 
8173
  $lt_tmp_static_flag,
 
8174
  [],
 
8175
  [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
8133
8176
])
8134
8177
 
8135
8178
 
8137
8180
# ------------------------------------
8138
8181
# See if the linker supports building shared libraries.
8139
8182
AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
8140
 
[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
 
8183
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
8184
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
8141
8185
ifelse([$1],[CXX],[
8142
8186
  _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8143
8187
  case $host_os in
8144
 
  aix4* | aix5*)
 
8188
  aix[[4-9]]*)
8145
8189
    # If we're using GNU nm, then we don't want the "-C" option.
8146
8190
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
8147
8191
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8154
8198
    _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
8155
8199
  ;;
8156
8200
  cygwin* | mingw*)
8157
 
    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([[^ ]]*\) [[^ ]]*/\1 DATA/;/^I /d;/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
 
8201
    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
8158
8202
  ;;
8159
8203
  *)
8160
8204
    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8161
8205
  ;;
8162
8206
  esac
 
8207
  _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
8163
8208
],[
8164
8209
  runpath_var=
8165
8210
  _LT_AC_TAGVAR(allow_undefined_flag, $1)=
8190
8235
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8191
8236
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8192
8237
  # as well as any symbol that contains `d'.
8193
 
  _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
 
8238
  _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
8194
8239
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8195
8240
  # platforms (ab)use it in PIC code, but their linkers get confused if
8196
8241
  # the symbol is explicitly referenced.  Since portable code cannot
8197
8242
  # rely on this symbol name, it's probably fine to never include it in
8198
8243
  # preloaded symbol tables.
 
8244
  # Exclude shared library initialization/finalization symbols.
 
8245
dnl Note also adjust exclude_expsyms for C++ above.
8199
8246
  extract_expsyms_cmds=
8200
8247
  # Just being paranoid about ensuring that cc_basename is set.
8201
8248
  _LT_CC_BASENAME([$compiler])
8208
8255
      with_gnu_ld=no
8209
8256
    fi
8210
8257
    ;;
 
8258
  interix*)
 
8259
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
8260
    with_gnu_ld=yes
 
8261
    ;;
8211
8262
  openbsd*)
8212
8263
    with_gnu_ld=no
8213
8264
    ;;
8217
8268
  if test "$with_gnu_ld" = yes; then
8218
8269
    # If archive_cmds runs LD, not CC, wlarc should be empty
8219
8270
    wlarc='${wl}'
8220
 
    
 
8271
 
8221
8272
    # Set some defaults for GNU ld with shared library support. These
8222
8273
    # are reset later if shared libraries are not supported. Putting them
8223
8274
    # here allows them to be overridden if necessary.
8238
8289
      *\ 2.11.*) ;; # other 2.11 versions
8239
8290
      *) supports_anon_versioning=yes ;;
8240
8291
    esac
8241
 
    
 
8292
 
8242
8293
    # See if GNU ld supports shared libraries.
8243
8294
    case $host_os in
8244
 
    aix3* | aix4* | aix5*)
 
8295
    aix[[3-9]]*)
8245
8296
      # On AIX/PPC, the GNU linker is very broken
8246
8297
      if test "$host_cpu" != ia64; then
8247
8298
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
8289
8340
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
8290
8341
      _LT_AC_TAGVAR(always_export_symbols, $1)=no
8291
8342
      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
8292
 
      _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
 
8343
      _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
8293
8344
 
8294
8345
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8295
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
8346
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8296
8347
        # If the export-symbols file already is a .def file (1st line
8297
8348
        # is EXPORTS), use it as is; otherwise, prepend...
8298
8349
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8301
8352
          echo EXPORTS > $output_objdir/$soname.def;
8302
8353
          cat $export_symbols >> $output_objdir/$soname.def;
8303
8354
        fi~
8304
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
8355
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8305
8356
      else
8306
8357
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
8307
8358
      fi
8308
8359
      ;;
8309
8360
 
8310
 
    linux*)
 
8361
    interix[[3-9]]*)
 
8362
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
8363
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
8364
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
8365
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
8366
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
8367
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
8368
      # default) and relocated if they conflict, which is a slow very memory
 
8369
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
8370
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
8371
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
8372
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
8373
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
8374
      ;;
 
8375
 
 
8376
    gnu* | linux* | k*bsd*-gnu)
8311
8377
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8312
8378
        tmp_addflag=
8313
8379
        case $cc_basename,$host_cpu in
8315
8381
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8316
8382
          tmp_addflag=' $pic_flag'
8317
8383
          ;;
8318
 
        pgf77* | pgf90* | pgf95*)                       # Portland Group f77 and f90 compilers
 
8384
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8319
8385
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8320
8386
          tmp_addflag=' $pic_flag -Mnomain' ;;
8321
8387
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8325
8391
        ifc* | ifort*)                  # Intel Fortran compiler
8326
8392
          tmp_addflag=' -nofor_main' ;;
8327
8393
        esac
8328
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8394
        case `$CC -V 2>&1 | sed 5q` in
 
8395
        *Sun\ C*)                       # Sun C 5.9
 
8396
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
8397
          tmp_sharedflag='-G' ;;
 
8398
        *Sun\ F*)                       # Sun Fortran 8.3
 
8399
          tmp_sharedflag='-G' ;;
 
8400
        *)
 
8401
          tmp_sharedflag='-shared' ;;
 
8402
        esac
 
8403
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8329
8404
 
8330
8405
        if test $supports_anon_versioning = yes; then
8331
8406
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
8332
8407
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8333
8408
  $echo "local: *; };" >> $output_objdir/$libname.ver~
8334
 
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
8409
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8335
8410
        fi
8336
8411
      else
8337
8412
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
8348
8423
      fi
8349
8424
      ;;
8350
8425
 
8351
 
    solaris* | sysv5*)
 
8426
    solaris*)
8352
8427
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8353
8428
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
8354
8429
        cat <<EOF 1>&2
8369
8444
      fi
8370
8445
      ;;
8371
8446
 
 
8447
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
8448
      case `$LD -v 2>&1` in
 
8449
        *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
 
8450
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
8451
        cat <<_LT_EOF 1>&2
 
8452
 
 
8453
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
8454
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
8455
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
8456
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
8457
*** your PATH or compiler configuration so that the native linker is
 
8458
*** used, and then restart.
 
8459
 
 
8460
_LT_EOF
 
8461
        ;;
 
8462
        *)
 
8463
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
8464
            _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
8465
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
8466
            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
8467
          else
 
8468
            _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
8469
          fi
 
8470
        ;;
 
8471
      esac
 
8472
      ;;
 
8473
 
8372
8474
    sunos4*)
8373
8475
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8374
8476
      wlarc=
8402
8504
      # Note: this linker hardcodes the directories in LIBPATH if there
8403
8505
      # are no directories specified by -L.
8404
8506
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
8405
 
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
8507
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8406
8508
        # Neither direct hardcoding nor static linking is supported with a
8407
8509
        # broken collect2.
8408
8510
        _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
8409
8511
      fi
8410
8512
      ;;
8411
8513
 
8412
 
    aix4* | aix5*)
 
8514
    aix[[4-9]]*)
8413
8515
      if test "$host_cpu" = ia64; then
8414
8516
        # On IA64, the linker does run time linking by default, so we don't
8415
8517
        # have to do anything special.
8429
8531
        # Test if we are trying to use run time linking or normal
8430
8532
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8431
8533
        # need to do runtime linking.
8432
 
        case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
 
8534
        case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
8433
8535
          for ld_flag in $LDFLAGS; do
8434
8536
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8435
8537
            aix_use_runtimelinking=yes
8436
8538
            break
8437
8539
          fi
8438
8540
          done
 
8541
          ;;
8439
8542
        esac
8440
8543
 
8441
8544
        exp_sym_flag='-bexport'
8462
8565
           strings "$collect2name" | grep resolve_lib_name >/dev/null
8463
8566
          then
8464
8567
          # We have reworked collect2
8465
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
8568
          :
8466
8569
          else
8467
8570
          # We have old collect2
8468
8571
          _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
8473
8576
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
8474
8577
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
8475
8578
          fi
 
8579
          ;;
8476
8580
        esac
8477
8581
        shared_flag='-shared'
8478
8582
        if test "$aix_use_runtimelinking" = yes; then
8485
8589
        # chokes on -Wl,-G. The following line is correct:
8486
8590
          shared_flag='-G'
8487
8591
        else
8488
 
        if test "$aix_use_runtimelinking" = yes; then
 
8592
          if test "$aix_use_runtimelinking" = yes; then
8489
8593
            shared_flag='${wl}-G'
8490
8594
          else
8491
8595
            shared_flag='${wl}-bM:SRE'
8492
 
        fi
 
8596
          fi
8493
8597
        fi
8494
8598
      fi
8495
8599
 
8503
8607
       # Determine the default libpath from the value encoded in an empty executable.
8504
8608
       _LT_AC_SYS_LIBPATH_AIX
8505
8609
       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
8506
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
8610
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8507
8611
       else
8508
8612
        if test "$host_cpu" = ia64; then
8509
8613
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
8510
8614
          _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
8511
 
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
 
8615
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
8512
8616
        else
8513
8617
         # Determine the default libpath from the value encoded in an empty executable.
8514
8618
         _LT_AC_SYS_LIBPATH_AIX
8517
8621
          # -berok will link without error, but may produce a broken library.
8518
8622
          _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
8519
8623
          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
8520
 
          # -bexpall does not export symbols beginning with underscore (_)
8521
 
          _LT_AC_TAGVAR(always_export_symbols, $1)=yes
8522
8624
          # Exported symbols can be pulled into shared objects from archives
8523
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
 
8625
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
8524
8626
          _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
8525
8627
          # This is similar to how AIX traditionally builds its shared libraries.
8526
 
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
8628
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8527
8629
        fi
8528
8630
      fi
8529
8631
      ;;
8556
8658
      # The linker will automatically build a .lib file if we build a DLL.
8557
8659
      _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
8558
8660
      # FIXME: Should let the user specify the lib program.
8559
 
      _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
8661
      _LT_AC_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
8560
8662
      _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
8561
8663
      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
8562
8664
      ;;
8589
8691
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
8590
8692
    if test "$GCC" = yes ; then
8591
8693
        output_verbose_link_cmd='echo'
8592
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8593
 
      _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8594
 
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8595
 
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8596
 
      _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
8694
        _LT_AC_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 
8695
        _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
8696
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
 
8697
        _LT_AC_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
8597
8698
    else
8598
8699
      case $cc_basename in
8599
8700
        xlc*)
8600
8701
         output_verbose_link_cmd='echo'
8601
 
         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
8702
         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8602
8703
         _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8603
8704
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8604
 
         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
8705
         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8605
8706
          _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8606
8707
          ;;
8607
8708
       *)
8641
8742
      ;;
8642
8743
 
8643
8744
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8644
 
    freebsd* | kfreebsd*-gnu | dragonfly*)
 
8745
    freebsd* | dragonfly*)
8645
8746
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8646
8747
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
8647
8748
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
8664
8765
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
8665
8766
      ;;
8666
8767
 
8667
 
    hpux10* | hpux11*)
 
8768
    hpux10*)
 
8769
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
8770
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
8771
      else
 
8772
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
8773
      fi
 
8774
      if test "$with_gnu_ld" = no; then
 
8775
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
8776
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
8777
 
 
8778
        _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
8779
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
8780
 
 
8781
        # hardcode_minus_L: Not really in the search PATH,
 
8782
        # but as the default location of the library.
 
8783
        _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
8784
      fi
 
8785
      ;;
 
8786
 
 
8787
    hpux11*)
8668
8788
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8669
8789
        case $host_cpu in
8670
 
        hppa*64*|ia64*)
 
8790
        hppa*64*)
8671
8791
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8672
8792
          ;;
 
8793
        ia64*)
 
8794
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
8795
          ;;
8673
8796
        *)
8674
8797
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8675
8798
          ;;
8676
8799
        esac
8677
8800
      else
8678
8801
        case $host_cpu in
8679
 
        hppa*64*|ia64*)
8680
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8802
        hppa*64*)
 
8803
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8804
          ;;
 
8805
        ia64*)
 
8806
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8681
8807
          ;;
8682
8808
        *)
8683
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
8809
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8684
8810
          ;;
8685
8811
        esac
8686
8812
      fi
8687
8813
      if test "$with_gnu_ld" = no; then
 
8814
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
8815
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
8816
 
8688
8817
        case $host_cpu in
8689
 
        hppa*64*)
8690
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
8818
        hppa*64*|ia64*)
8691
8819
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
8692
 
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
8693
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=no
8694
 
          _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8695
 
          ;;
8696
 
        ia64*)
8697
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
8698
 
          _LT_AC_TAGVAR(hardcode_direct, $1)=no
8699
 
          _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8700
 
 
8701
 
          # hardcode_minus_L: Not really in the search PATH,
8702
 
          # but as the default location of the library.
8703
 
          _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
8820
          _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
8821
          _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8704
8822
          ;;
8705
8823
        *)
8706
 
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
8707
 
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
8708
8824
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes
8709
8825
          _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
8710
8826
 
8748
8864
      ;;
8749
8865
 
8750
8866
    openbsd*)
8751
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
8752
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8753
 
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8754
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8755
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8756
 
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
8757
 
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
8867
      if test -f /usr/libexec/ld.so; then
 
8868
        _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
8869
        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
8870
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
8871
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
8872
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
8873
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
8874
          _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
8875
        else
 
8876
          case $host_os in
 
8877
           openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
 
8878
             _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
8879
             _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
8880
             ;;
 
8881
           *)
 
8882
             _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
8883
             _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
8884
             ;;
 
8885
          esac
 
8886
        fi
8758
8887
      else
8759
 
       case $host_os in
8760
 
         openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
8761
 
           _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8762
 
           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
8763
 
           ;;
8764
 
         *)
8765
 
           _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8766
 
           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
8767
 
           ;;
8768
 
       esac
 
8888
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
8769
8889
      fi
8770
8890
      ;;
8771
8891
 
8806
8926
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
8807
8927
      ;;
8808
8928
 
8809
 
    sco3.2v5*)
8810
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8811
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8812
 
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
8813
 
      runpath_var=LD_RUN_PATH
8814
 
      hardcode_runpath_var=yes
8815
 
      ;;
8816
 
 
8817
8929
    solaris*)
8818
8930
      _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
8819
8931
      if test "$GCC" = yes; then
8832
8944
      case $host_os in
8833
8945
      solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
8834
8946
      *)
8835
 
        # The compiler driver will combine linker options so we
8836
 
        # cannot just pass the convience library names through
8837
 
        # without $wl, iff we do not link with $LD.
8838
 
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
8947
        # The compiler driver will combine and reorder linker options,
 
8948
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
8949
        # but is careful enough not to reorder.
8839
8950
        # Supported since Solaris 2.6 (maybe 2.5.1?)
8840
 
        case $wlarc in
8841
 
        '')
8842
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
8843
 
        *)
8844
 
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8845
 
        esac ;;
 
8951
        if test "$GCC" = yes; then
 
8952
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
8953
        else
 
8954
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
 
8955
        fi
 
8956
        ;;
8846
8957
      esac
8847
8958
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
8848
8959
      ;;
8899
9010
      fi
8900
9011
      ;;
8901
9012
 
8902
 
    sysv4.2uw2*)
8903
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8904
 
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
8905
 
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
8906
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8907
 
      hardcode_runpath_var=yes
8908
 
      runpath_var=LD_RUN_PATH
8909
 
      ;;
8910
 
 
8911
 
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[[78]]* | unixware7*)
8912
 
      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text'
8913
 
      if test "$GCC" = yes; then
8914
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8915
 
      else
8916
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8917
 
      fi
8918
 
      runpath_var='LD_RUN_PATH'
8919
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8920
 
      ;;
8921
 
 
8922
 
    sysv5*)
8923
 
      _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
8924
 
      # $CC -shared without GNU ld will not create a library from C++
8925
 
      # object files and a static libstdc++, better avoid it by now
8926
 
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8927
 
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8928
 
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8929
 
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
8930
 
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8931
 
      runpath_var='LD_RUN_PATH'
 
9013
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
 
9014
      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
9015
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
9016
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
9017
      runpath_var='LD_RUN_PATH'
 
9018
 
 
9019
      if test "$GCC" = yes; then
 
9020
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9021
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9022
      else
 
9023
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9024
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9025
      fi
 
9026
      ;;
 
9027
 
 
9028
    sysv5* | sco3.2v5* | sco5v6*)
 
9029
      # Note: We can NOT use -z defs as we might desire, because we do not
 
9030
      # link with -lc, and that would cause any symbols used from libc to
 
9031
      # always be unresolved, which means just about no library would
 
9032
      # ever link correctly.  If we're not using GNU ld we use -z text
 
9033
      # though, which does catch some bad symbols but isn't as heavy-handed
 
9034
      # as -z defs.
 
9035
      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
9036
      _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
 
9037
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
9038
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
9039
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
9040
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
 
9041
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
9042
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
 
9043
      runpath_var='LD_RUN_PATH'
 
9044
 
 
9045
      if test "$GCC" = yes; then
 
9046
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9047
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9048
      else
 
9049
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9050
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9051
      fi
8932
9052
      ;;
8933
9053
 
8934
9054
    uts4*)
8946
9066
AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
8947
9067
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
8948
9068
 
8949
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8950
 
if test "$GCC" = yes; then
8951
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8952
 
fi
8953
 
 
8954
9069
#
8955
9070
# Do we need to explicitly link libc?
8956
9071
#
8970
9085
      # to ld, don't add -lc before -lgcc.
8971
9086
      AC_MSG_CHECKING([whether -lc should be explicitly linked in])
8972
9087
      $rm conftest*
8973
 
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
9088
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8974
9089
 
8975
9090
      if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
8976
9091
        soname=conftest
8978
9093
        libobjs=conftest.$ac_objext
8979
9094
        deplibs=
8980
9095
        wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
 
9096
        pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
8981
9097
        compiler_flags=-v
8982
9098
        linker_flags=-v
8983
9099
        verstring=
9062
9178
# This is just to silence aclocal about the macro not being used
9063
9179
ifelse([AC_DISABLE_FAST_INSTALL])
9064
9180
 
9065
 
#AC_DEFUN([LT_AC_PROG_GCJ],
9066
 
#[AC_CHECK_TOOL(GCJ, gcj, no)
9067
 
#  test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
9068
 
#  AC_SUBST(GCJFLAGS)
9069
 
#])
9070
 
 
9071
 
#AC_DEFUN([LT_AC_PROG_RC],
9072
 
#[AC_CHECK_TOOL(RC, windres, no)
9073
 
#])
9074
 
 
9075
9181
############################################################
9076
9182
# NOTE: This macro has been submitted for inclusion into   #
9077
9183
#  GNU Autoconf as AC_PROG_SED.  When it is available in   #