gst-plugins-mythtv/aclocal.m4
branchtrunk
changeset 8 3194c4c16467
parent 3 265cdb1c59e3
     1.1 --- a/gst-plugins-mythtv/aclocal.m4	Thu Sep 21 00:05:27 2006 +0100
     1.2 +++ b/gst-plugins-mythtv/aclocal.m4	Thu Sep 21 15:58:58 2006 +0100
     1.3 @@ -1,4 +1,4 @@
     1.4 -# generated automatically by aclocal 1.9.5 -*- Autoconf -*-
     1.5 +# generated automatically by aclocal 1.9.6 -*- Autoconf -*-
     1.6  
     1.7  # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
     1.8  # 2005  Free Software Foundation, Inc.
     1.9 @@ -13,8 +13,7 @@
    1.10  
    1.11  # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
    1.12  
    1.13 -# serial 47 AC_PROG_LIBTOOL
    1.14 -# Debian $Rev: 214 $
    1.15 +# serial 48 Debian 1.5.22-4 AC_PROG_LIBTOOL
    1.16  
    1.17  
    1.18  # AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
    1.19 @@ -124,7 +123,7 @@
    1.20  
    1.21  # Sed substitution that helps us do robust quoting.  It backslashifies
    1.22  # metacharacters that are still active within double-quoted strings.
    1.23 -Xsed='sed -e s/^X//'
    1.24 +Xsed='sed -e 1s/^X//'
    1.25  [sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
    1.26  
    1.27  # Same as above, but do not quote variable references.
    1.28 @@ -144,7 +143,7 @@
    1.29  default_ofile=libtool
    1.30  can_build_shared=yes
    1.31  
    1.32 -# All known linkers require a `.a' archive for static linking (except M$VC,
    1.33 +# All known linkers require a `.a' archive for static linking (except MSVC,
    1.34  # which needs '.lib').
    1.35  libext=a
    1.36  ltmain="$ac_aux_dir/ltmain.sh"
    1.37 @@ -164,6 +163,7 @@
    1.38  test -z "$AS" && AS=as
    1.39  test -z "$CC" && CC=cc
    1.40  test -z "$LTCC" && LTCC=$CC
    1.41 +test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
    1.42  test -z "$DLLTOOL" && DLLTOOL=dlltool
    1.43  test -z "$LD" && LD=ld
    1.44  test -z "$LN_S" && LN_S="ln -s"
    1.45 @@ -183,15 +183,17 @@
    1.46  if test -n "$RANLIB"; then
    1.47    case $host_os in
    1.48    openbsd*)
    1.49 -    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
    1.50 +    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
    1.51      ;;
    1.52    *)
    1.53 -    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
    1.54 +    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
    1.55      ;;
    1.56    esac
    1.57    old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
    1.58  fi
    1.59  
    1.60 +_LT_CC_BASENAME([$compiler])
    1.61 +
    1.62  # Only perform the check for file, if the check method requires it
    1.63  case $deplibs_check_method in
    1.64  file_magic*)
    1.65 @@ -232,11 +234,56 @@
    1.66  # If no C compiler was specified, use CC.
    1.67  LTCC=${LTCC-"$CC"}
    1.68  
    1.69 +# If no C compiler flags were specified, use CFLAGS.
    1.70 +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
    1.71 +
    1.72  # Allow CC to be a program name with arguments.
    1.73  compiler=$CC
    1.74  ])# _LT_AC_SYS_COMPILER
    1.75  
    1.76  
    1.77 +# _LT_CC_BASENAME(CC)
    1.78 +# -------------------
    1.79 +# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
    1.80 +AC_DEFUN([_LT_CC_BASENAME],
    1.81 +[for cc_temp in $1""; do
    1.82 +  case $cc_temp in
    1.83 +    compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
    1.84 +    distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
    1.85 +    \-*) ;;
    1.86 +    *) break;;
    1.87 +  esac
    1.88 +done
    1.89 +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
    1.90 +])
    1.91 +
    1.92 +
    1.93 +# _LT_COMPILER_BOILERPLATE
    1.94 +# ------------------------
    1.95 +# Check for compiler boilerplate output or warnings with
    1.96 +# the simple compiler test code.
    1.97 +AC_DEFUN([_LT_COMPILER_BOILERPLATE],
    1.98 +[ac_outfile=conftest.$ac_objext
    1.99 +printf "$lt_simple_compile_test_code" >conftest.$ac_ext
   1.100 +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
   1.101 +_lt_compiler_boilerplate=`cat conftest.err`
   1.102 +$rm conftest*
   1.103 +])# _LT_COMPILER_BOILERPLATE
   1.104 +
   1.105 +
   1.106 +# _LT_LINKER_BOILERPLATE
   1.107 +# ----------------------
   1.108 +# Check for linker boilerplate output or warnings with
   1.109 +# the simple link test code.
   1.110 +AC_DEFUN([_LT_LINKER_BOILERPLATE],
   1.111 +[ac_outfile=conftest.$ac_objext
   1.112 +printf "$lt_simple_link_test_code" >conftest.$ac_ext
   1.113 +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
   1.114 +_lt_linker_boilerplate=`cat conftest.err`
   1.115 +$rm conftest*
   1.116 +])# _LT_LINKER_BOILERPLATE
   1.117 +
   1.118 +
   1.119  # _LT_AC_SYS_LIBPATH_AIX
   1.120  # ----------------------
   1.121  # Links a minimal program and checks the executable
   1.122 @@ -309,15 +356,15 @@
   1.123  
   1.124  # The HP-UX ksh and POSIX shell print the target directory to stdout
   1.125  # if CDPATH is set.
   1.126 -if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
   1.127 +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
   1.128  
   1.129  if test -z "$ECHO"; then
   1.130  if test "X${echo_test_string+set}" != Xset; then
   1.131  # find a string as large as possible, as long as the shell can cope with it
   1.132    for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
   1.133      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
   1.134 -    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
   1.135 -       echo_test_string="`eval $cmd`" &&
   1.136 +    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
   1.137 +       echo_test_string=`eval $cmd` &&
   1.138         (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
   1.139      then
   1.140        break
   1.141 @@ -486,7 +533,7 @@
   1.142    # Find out which ABI we are using.
   1.143    echo 'int i;' > conftest.$ac_ext
   1.144    if AC_TRY_EVAL(ac_compile); then
   1.145 -    case "`/usr/bin/file conftest.o`" in
   1.146 +    case `/usr/bin/file conftest.o` in
   1.147      *32-bit*)
   1.148        case $host in
   1.149          x86_64-*linux*)
   1.150 @@ -537,6 +584,22 @@
   1.151      CFLAGS="$SAVE_CFLAGS"
   1.152    fi
   1.153    ;;
   1.154 +sparc*-*solaris*)
   1.155 +  # Find out which ABI we are using.
   1.156 +  echo 'int i;' > conftest.$ac_ext
   1.157 +  if AC_TRY_EVAL(ac_compile); then
   1.158 +    case `/usr/bin/file conftest.o` in
   1.159 +    *64-bit*)
   1.160 +      case $lt_cv_prog_gnu_ld in
   1.161 +      yes*) LD="${LD-ld} -m elf64_sparc" ;;
   1.162 +      *)    LD="${LD-ld} -64" ;;
   1.163 +      esac
   1.164 +      ;;
   1.165 +    esac
   1.166 +  fi
   1.167 +  rm -rf conftest*
   1.168 +  ;;
   1.169 +
   1.170  AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
   1.171  [*-*-cygwin* | *-*-mingw* | *-*-pw32*)
   1.172    AC_CHECK_TOOL(DLLTOOL, dlltool, false)
   1.173 @@ -568,7 +631,7 @@
   1.174     # with a dollar sign (not a hyphen), so the echo should work correctly.
   1.175     # The option is referenced via a variable to avoid confusing sed.
   1.176     lt_compile=`echo "$ac_compile" | $SED \
   1.177 -   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
   1.178 +   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   1.179     -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
   1.180     -e 's:$: $lt_compiler_flag:'`
   1.181     (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
   1.182 @@ -578,8 +641,10 @@
   1.183     echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
   1.184     if (exit $ac_status) && test -s "$ac_outfile"; then
   1.185       # The compiler can only warn and ignore the option if not recognized
   1.186 -     # So say no if there are warnings
   1.187 -     if test ! -s conftest.err; then
   1.188 +     # So say no if there are warnings other than the usual output.
   1.189 +     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
   1.190 +     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
   1.191 +     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
   1.192         $2=yes
   1.193       fi
   1.194     fi
   1.195 @@ -605,11 +670,16 @@
   1.196     LDFLAGS="$LDFLAGS $3"
   1.197     printf "$lt_simple_link_test_code" > conftest.$ac_ext
   1.198     if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
   1.199 -     # The compiler can only warn and ignore the option if not recognized
   1.200 +     # The linker can only warn and ignore the option if not recognized
   1.201       # So say no if there are warnings
   1.202       if test -s conftest.err; then
   1.203         # Append any errors to the config.log.
   1.204         cat conftest.err 1>&AS_MESSAGE_LOG_FD
   1.205 +       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
   1.206 +       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
   1.207 +       if diff conftest.exp conftest.er2 >/dev/null; then
   1.208 +         $2=yes
   1.209 +       fi
   1.210       else
   1.211         $2=yes
   1.212       fi
   1.213 @@ -668,11 +738,55 @@
   1.214      lt_cv_sys_max_cmd_len=8192;
   1.215      ;;
   1.216  
   1.217 - *)
   1.218 +  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
   1.219 +    # This has been around since 386BSD, at least.  Likely further.
   1.220 +    if test -x /sbin/sysctl; then
   1.221 +      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
   1.222 +    elif test -x /usr/sbin/sysctl; then
   1.223 +      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
   1.224 +    else
   1.225 +      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
   1.226 +    fi
   1.227 +    # And add a safety zone
   1.228 +    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
   1.229 +    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
   1.230 +    ;;
   1.231 +
   1.232 +  interix*)
   1.233 +    # We know the value 262144 and hardcode it with a safety zone (like BSD)
   1.234 +    lt_cv_sys_max_cmd_len=196608
   1.235 +    ;;
   1.236 +
   1.237 +  osf*)
   1.238 +    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
   1.239 +    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
   1.240 +    # nice to cause kernel panics so lets avoid the loop below.
   1.241 +    # First set a reasonable default.
   1.242 +    lt_cv_sys_max_cmd_len=16384
   1.243 +    #
   1.244 +    if test -x /sbin/sysconfig; then
   1.245 +      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
   1.246 +        *1*) lt_cv_sys_max_cmd_len=-1 ;;
   1.247 +      esac
   1.248 +    fi
   1.249 +    ;;
   1.250 +  sco3.2v5*)
   1.251 +    lt_cv_sys_max_cmd_len=102400
   1.252 +    ;;
   1.253 +  sysv5* | sco5v6* | sysv4.2uw2*)
   1.254 +    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
   1.255 +    if test -n "$kargmax"; then
   1.256 +      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ 	]]//'`
   1.257 +    else
   1.258 +      lt_cv_sys_max_cmd_len=32768
   1.259 +    fi
   1.260 +    ;;
   1.261 +  *)
   1.262      # If test is not a shell built-in, we'll probably end up computing a
   1.263      # maximum length that is only half of the actual maximum length, but
   1.264      # we can't tell.
   1.265 -    while (test "X"`$CONFIG_SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
   1.266 +    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
   1.267 +    while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
   1.268  	       = "XX$teststring") >/dev/null 2>&1 &&
   1.269  	    new_result=`expr "X$teststring" : ".*" 2>&1` &&
   1.270  	    lt_cv_sys_max_cmd_len=$new_result &&
   1.271 @@ -698,7 +812,7 @@
   1.272  
   1.273  
   1.274  # _LT_AC_CHECK_DLFCN
   1.275 -# --------------------
   1.276 +# ------------------
   1.277  AC_DEFUN([_LT_AC_CHECK_DLFCN],
   1.278  [AC_CHECK_HEADERS(dlfcn.h)dnl
   1.279  ])# _LT_AC_CHECK_DLFCN
   1.280 @@ -706,7 +820,7 @@
   1.281  
   1.282  # _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
   1.283  #                           ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
   1.284 -# ------------------------------------------------------------------
   1.285 +# ---------------------------------------------------------------------
   1.286  AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
   1.287  [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
   1.288  if test "$cross_compiling" = yes; then :
   1.289 @@ -772,17 +886,19 @@
   1.290        else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
   1.291        /* dlclose (self); */
   1.292      }
   1.293 +  else
   1.294 +    puts (dlerror ());
   1.295  
   1.296      exit (status);
   1.297  }]
   1.298  EOF
   1.299    if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
   1.300 -    (./conftest; exit; ) 2>/dev/null
   1.301 +    (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
   1.302      lt_status=$?
   1.303      case x$lt_status in
   1.304        x$lt_dlno_uscore) $1 ;;
   1.305        x$lt_dlneed_uscore) $2 ;;
   1.306 -      x$lt_unknown|x*) $3 ;;
   1.307 +      x$lt_dlunknown|x*) $3 ;;
   1.308      esac
   1.309    else :
   1.310      # compilation failed
   1.311 @@ -794,7 +910,7 @@
   1.312  
   1.313  
   1.314  # AC_LIBTOOL_DLOPEN_SELF
   1.315 -# -------------------
   1.316 +# ----------------------
   1.317  AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
   1.318  [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
   1.319  if test "x$enable_dlopen" != xyes; then
   1.320 @@ -865,7 +981,7 @@
   1.321      test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
   1.322  
   1.323      save_LDFLAGS="$LDFLAGS"
   1.324 -    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
   1.325 +    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
   1.326  
   1.327      save_LIBS="$LIBS"
   1.328      LIBS="$lt_cv_dlopen_libs $LIBS"
   1.329 @@ -878,7 +994,7 @@
   1.330      ])
   1.331  
   1.332      if test "x$lt_cv_dlopen_self" = xyes; then
   1.333 -      LDFLAGS="$LDFLAGS $link_static_flag"
   1.334 +      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
   1.335        AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
   1.336      	  lt_cv_dlopen_self_static, [dnl
   1.337  	  _LT_AC_TRY_DLOPEN_SELF(
   1.338 @@ -926,7 +1042,7 @@
   1.339     # Note that $ac_compile itself does not contain backslashes and begins
   1.340     # with a dollar sign (not a hyphen), so the echo should work correctly.
   1.341     lt_compile=`echo "$ac_compile" | $SED \
   1.342 -   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
   1.343 +   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   1.344     -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
   1.345     -e 's:$: $lt_compiler_flag:'`
   1.346     (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
   1.347 @@ -938,11 +1054,13 @@
   1.348     then
   1.349       # The compiler can only warn and ignore the option if not recognized
   1.350       # So say no if there are warnings
   1.351 -     if test ! -s out/conftest.err; then
   1.352 +     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
   1.353 +     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
   1.354 +     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
   1.355         _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
   1.356       fi
   1.357     fi
   1.358 -   chmod u+w .
   1.359 +   chmod u+w . 2>&AS_MESSAGE_LOG_FD
   1.360     $rm conftest*
   1.361     # SGI C++ compiler will create directory out/ii_files/ for
   1.362     # template instantiation
   1.363 @@ -1006,8 +1124,8 @@
   1.364  [AC_MSG_CHECKING([how to hardcode library paths into programs])
   1.365  _LT_AC_TAGVAR(hardcode_action, $1)=
   1.366  if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
   1.367 -   test -n "$_LT_AC_TAGVAR(runpath_var $1)" || \
   1.368 -   test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)"="Xyes" ; then
   1.369 +   test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
   1.370 +   test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
   1.371  
   1.372    # We can hardcode non-existant directories.
   1.373    if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
   1.374 @@ -1174,7 +1292,7 @@
   1.375    shlibpath_var=LIBRARY_PATH
   1.376    ;;
   1.377  
   1.378 -bsdi4*)
   1.379 +bsdi[[45]]*)
   1.380    version_type=linux
   1.381    need_version=no
   1.382    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   1.383 @@ -1202,7 +1320,8 @@
   1.384        dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
   1.385        dldir=$destdir/`dirname \$dlpath`~
   1.386        test -d \$dldir || mkdir -p \$dldir~
   1.387 -      $install_prog $dir/$dlname \$dldir/$dlname'
   1.388 +      $install_prog $dir/$dlname \$dldir/$dlname~
   1.389 +      chmod a+x \$dldir/$dlname'
   1.390      postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
   1.391        dlpath=$dir/\$dldll~
   1.392         $rm \$dlpath'
   1.393 @@ -1232,7 +1351,7 @@
   1.394        ;;
   1.395      pw32*)
   1.396        # pw32 DLLs use 'pw' prefix rather than 'lib'
   1.397 -      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
   1.398 +      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
   1.399        ;;
   1.400      esac
   1.401      ;;
   1.402 @@ -1255,7 +1374,7 @@
   1.403    soname_spec='${libname}${release}${major}$shared_ext'
   1.404    shlibpath_overrides_runpath=yes
   1.405    shlibpath_var=DYLD_LIBRARY_PATH
   1.406 -  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
   1.407 +  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
   1.408    # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
   1.409    if test "$GCC" = yes; then
   1.410      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"`
   1.411 @@ -1278,20 +1397,17 @@
   1.412    dynamic_linker=no
   1.413    ;;
   1.414  
   1.415 -kfreebsd*-gnu)
   1.416 -  version_type=linux
   1.417 -  need_lib_prefix=no
   1.418 -  need_version=no
   1.419 -  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
   1.420 -  soname_spec='${libname}${release}${shared_ext}$major'
   1.421 -  shlibpath_var=LD_LIBRARY_PATH
   1.422 -  shlibpath_overrides_runpath=no
   1.423 -  hardcode_into_libs=yes
   1.424 -  dynamic_linker='GNU ld.so'
   1.425 -  ;;
   1.426 -
   1.427 -freebsd*)
   1.428 -  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
   1.429 +freebsd* | dragonfly*)
   1.430 +  # DragonFly does not have aout.  When/if they implement a new
   1.431 +  # versioning mechanism, adjust this.
   1.432 +  if test -x /usr/bin/objformat; then
   1.433 +    objformat=`/usr/bin/objformat`
   1.434 +  else
   1.435 +    case $host_os in
   1.436 +    freebsd[[123]]*) objformat=aout ;;
   1.437 +    *) objformat=elf ;;
   1.438 +    esac
   1.439 +  fi
   1.440    version_type=freebsd-$objformat
   1.441    case $version_type in
   1.442      freebsd-elf*)
   1.443 @@ -1309,14 +1425,19 @@
   1.444    freebsd2*)
   1.445      shlibpath_overrides_runpath=yes
   1.446      ;;
   1.447 -  freebsd3.[01]* | freebsdelf3.[01]*)
   1.448 +  freebsd3.[[01]]* | freebsdelf3.[[01]]*)
   1.449      shlibpath_overrides_runpath=yes
   1.450      hardcode_into_libs=yes
   1.451      ;;
   1.452 -  *) # from 3.2 on
   1.453 +  freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
   1.454 +  freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
   1.455      shlibpath_overrides_runpath=no
   1.456      hardcode_into_libs=yes
   1.457      ;;
   1.458 +  freebsd*) # from 4.6 on
   1.459 +    shlibpath_overrides_runpath=yes
   1.460 +    hardcode_into_libs=yes
   1.461 +    ;;
   1.462    esac
   1.463    ;;
   1.464  
   1.465 @@ -1336,7 +1457,7 @@
   1.466    version_type=sunos
   1.467    need_lib_prefix=no
   1.468    need_version=no
   1.469 -  case "$host_cpu" in
   1.470 +  case $host_cpu in
   1.471    ia64*)
   1.472      shrext_cmds='.so'
   1.473      hardcode_into_libs=yes
   1.474 @@ -1376,6 +1497,18 @@
   1.475    postinstall_cmds='chmod 555 $lib'
   1.476    ;;
   1.477  
   1.478 +interix3*)
   1.479 +  version_type=linux
   1.480 +  need_lib_prefix=no
   1.481 +  need_version=no
   1.482 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
   1.483 +  soname_spec='${libname}${release}${shared_ext}$major'
   1.484 +  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
   1.485 +  shlibpath_var=LD_LIBRARY_PATH
   1.486 +  shlibpath_overrides_runpath=no
   1.487 +  hardcode_into_libs=yes
   1.488 +  ;;
   1.489 +
   1.490  irix5* | irix6* | nonstopux*)
   1.491    case $host_os in
   1.492      nonstopux*) version_type=nonstopux ;;
   1.493 @@ -1419,7 +1552,7 @@
   1.494    ;;
   1.495  
   1.496  # This must be Linux ELF.
   1.497 -linux*)
   1.498 +linux* | k*bsd*-gnu)
   1.499    version_type=linux
   1.500    need_lib_prefix=no
   1.501    need_version=no
   1.502 @@ -1435,7 +1568,7 @@
   1.503  
   1.504    # Append ld.so.conf contents to the search path
   1.505    if test -f /etc/ld.so.conf; then
   1.506 -    lt_ld_extra=`$SED -e 's/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g' /etc/ld.so.conf | tr '\n' ' '`
   1.507 +    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
   1.508      sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
   1.509    fi
   1.510  
   1.511 @@ -1460,18 +1593,6 @@
   1.512    dynamic_linker='NetBSD ld.elf_so'
   1.513    ;;
   1.514  
   1.515 -knetbsd*-gnu)
   1.516 -  version_type=linux
   1.517 -  need_lib_prefix=no
   1.518 -  need_version=no
   1.519 -  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
   1.520 -  soname_spec='${libname}${release}${shared_ext}$major'
   1.521 -  shlibpath_var=LD_LIBRARY_PATH
   1.522 -  shlibpath_overrides_runpath=no
   1.523 -  hardcode_into_libs=yes
   1.524 -  dynamic_linker='GNU ld.so'
   1.525 -  ;;
   1.526 -
   1.527  netbsd*)
   1.528    version_type=sunos
   1.529    need_lib_prefix=no
   1.530 @@ -1509,8 +1630,13 @@
   1.531  
   1.532  openbsd*)
   1.533    version_type=sunos
   1.534 +  sys_lib_dlsearch_path_spec="/usr/lib"
   1.535    need_lib_prefix=no
   1.536 -  need_version=yes
   1.537 +  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
   1.538 +  case $host_os in
   1.539 +    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
   1.540 +    *)                         need_version=no  ;;
   1.541 +  esac
   1.542    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
   1.543    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
   1.544    shlibpath_var=LD_LIBRARY_PATH
   1.545 @@ -1548,13 +1674,6 @@
   1.546    sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
   1.547    ;;
   1.548  
   1.549 -sco3.2v5*)
   1.550 -  version_type=osf
   1.551 -  soname_spec='${libname}${release}${shared_ext}$major'
   1.552 -  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   1.553 -  shlibpath_var=LD_LIBRARY_PATH
   1.554 -  ;;
   1.555 -
   1.556  solaris*)
   1.557    version_type=linux
   1.558    need_lib_prefix=no
   1.559 @@ -1580,7 +1699,7 @@
   1.560    need_version=yes
   1.561    ;;
   1.562  
   1.563 -sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
   1.564 +sysv4 | sysv4.3*)
   1.565    version_type=linux
   1.566    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   1.567    soname_spec='${libname}${release}${shared_ext}$major'
   1.568 @@ -1613,6 +1732,29 @@
   1.569    fi
   1.570    ;;
   1.571  
   1.572 +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
   1.573 +  version_type=freebsd-elf
   1.574 +  need_lib_prefix=no
   1.575 +  need_version=no
   1.576 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
   1.577 +  soname_spec='${libname}${release}${shared_ext}$major'
   1.578 +  shlibpath_var=LD_LIBRARY_PATH
   1.579 +  hardcode_into_libs=yes
   1.580 +  if test "$with_gnu_ld" = yes; then
   1.581 +    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
   1.582 +    shlibpath_overrides_runpath=no
   1.583 +  else
   1.584 +    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
   1.585 +    shlibpath_overrides_runpath=yes
   1.586 +    case $host_os in
   1.587 +      sco3.2v5*)
   1.588 +        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
   1.589 +	;;
   1.590 +    esac
   1.591 +  fi
   1.592 +  sys_lib_dlsearch_path_spec='/usr/lib'
   1.593 +  ;;
   1.594 +
   1.595  uts4*)
   1.596    version_type=linux
   1.597    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   1.598 @@ -1626,6 +1768,11 @@
   1.599  esac
   1.600  AC_MSG_RESULT([$dynamic_linker])
   1.601  test "$dynamic_linker" = no && can_build_shared=no
   1.602 +
   1.603 +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
   1.604 +if test "$GCC" = yes; then
   1.605 +  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
   1.606 +fi
   1.607  ])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
   1.608  
   1.609  
   1.610 @@ -1650,6 +1797,9 @@
   1.611        AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
   1.612      fi
   1.613    fi
   1.614 +  if test -z "$LTCFLAGS"; then
   1.615 +    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
   1.616 +  fi
   1.617  
   1.618    # Extract list of available tagged configurations in $ofile.
   1.619    # Note that this assumes the entire list is on one line.
   1.620 @@ -1676,7 +1826,9 @@
   1.621  
   1.622        case $tagname in
   1.623        CXX)
   1.624 -	if test -n "$CXX" && test "X$CXX" != "Xno"; then
   1.625 +	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
   1.626 +	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
   1.627 +	    (test "X$CXX" != "Xg++"))) ; then
   1.628  	  AC_LIBTOOL_LANG_CXX_CONFIG
   1.629  	else
   1.630  	  tagname=""
   1.631 @@ -1738,7 +1890,7 @@
   1.632  
   1.633  # AC_LIBTOOL_WIN32_DLL
   1.634  # --------------------
   1.635 -# declare package support for building win32 dll's
   1.636 +# declare package support for building win32 DLLs
   1.637  AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
   1.638  [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
   1.639  ])# AC_LIBTOOL_WIN32_DLL
   1.640 @@ -1776,7 +1928,7 @@
   1.641  
   1.642  # AC_DISABLE_SHARED
   1.643  # -----------------
   1.644 -#- set the default shared flag to --disable-shared
   1.645 +# set the default shared flag to --disable-shared
   1.646  AC_DEFUN([AC_DISABLE_SHARED],
   1.647  [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
   1.648  AC_ENABLE_SHARED(no)
   1.649 @@ -1912,7 +2064,7 @@
   1.650        if test -n "$file_magic_test_file"; then
   1.651  	case $deplibs_check_method in
   1.652  	"file_magic "*)
   1.653 -	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
   1.654 +	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
   1.655  	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
   1.656  	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
   1.657  	    $EGREP "$file_magic_regex" > /dev/null; then
   1.658 @@ -2022,7 +2174,7 @@
   1.659      if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
   1.660        lt_cv_path_LD="$ac_dir/$ac_prog"
   1.661        # Check to see if the program is GNU ld.  I'd rather use --version,
   1.662 -      # but apparently some GNU ld's only accept -v.
   1.663 +      # but apparently some variants of GNU ld only accept -v.
   1.664        # Break only if it was the GNU/non-GNU ld that we prefer.
   1.665        case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
   1.666        *GNU* | *'with BFD'*)
   1.667 @@ -2054,7 +2206,7 @@
   1.668  AC_DEFUN([AC_PROG_LD_GNU],
   1.669  [AC_REQUIRE([AC_PROG_EGREP])dnl
   1.670  AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
   1.671 -[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
   1.672 +[# I'd rather use --version here, but apparently some GNU lds only accept -v.
   1.673  case `$LD -v 2>&1 </dev/null` in
   1.674  *GNU* | *'with BFD'*)
   1.675    lt_cv_prog_gnu_ld=yes
   1.676 @@ -2081,6 +2233,15 @@
   1.677  *) reload_flag=" $reload_flag" ;;
   1.678  esac
   1.679  reload_cmds='$LD$reload_flag -o $output$reload_objs'
   1.680 +case $host_os in
   1.681 +  darwin*)
   1.682 +    if test "$GCC" = yes; then
   1.683 +      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
   1.684 +    else
   1.685 +      reload_cmds='$LD$reload_flag -o $output$reload_objs'
   1.686 +    fi
   1.687 +    ;;
   1.688 +esac
   1.689  ])# AC_PROG_LD_RELOAD_FLAG
   1.690  
   1.691  
   1.692 @@ -2114,7 +2275,7 @@
   1.693    lt_cv_deplibs_check_method=pass_all
   1.694    ;;
   1.695  
   1.696 -bsdi4*)
   1.697 +bsdi[[45]]*)
   1.698    lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
   1.699    lt_cv_file_magic_cmd='/usr/bin/file -L'
   1.700    lt_cv_file_magic_test_file=/shlib/libc.so
   1.701 @@ -2137,13 +2298,13 @@
   1.702    lt_cv_deplibs_check_method=pass_all
   1.703    ;;
   1.704  
   1.705 -freebsd* | kfreebsd*-gnu)
   1.706 +freebsd* | dragonfly*)
   1.707    if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
   1.708      case $host_cpu in
   1.709      i*86 )
   1.710        # Not sure whether the presence of OpenBSD here was a mistake.
   1.711        # Let's accept both of them until this is cleared up.
   1.712 -      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[[3-9]]86 (compact )?demand paged shared library'
   1.713 +      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
   1.714        lt_cv_file_magic_cmd=/usr/bin/file
   1.715        lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
   1.716        ;;
   1.717 @@ -2159,7 +2320,7 @@
   1.718  
   1.719  hpux10.20* | hpux11*)
   1.720    lt_cv_file_magic_cmd=/usr/bin/file
   1.721 -  case "$host_cpu" in
   1.722 +  case $host_cpu in
   1.723    ia64*)
   1.724      lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
   1.725      lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
   1.726 @@ -2175,6 +2336,11 @@
   1.727    esac
   1.728    ;;
   1.729  
   1.730 +interix3*)
   1.731 +  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
   1.732 +  lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
   1.733 +  ;;
   1.734 +
   1.735  irix5* | irix6* | nonstopux*)
   1.736    case $LD in
   1.737    *-32|*"-32 ") libmagic=32-bit;;
   1.738 @@ -2186,11 +2352,11 @@
   1.739    ;;
   1.740  
   1.741  # This must be Linux ELF.
   1.742 -linux*)
   1.743 +linux* | k*bsd*-gnu)
   1.744    lt_cv_deplibs_check_method=pass_all
   1.745    ;;
   1.746  
   1.747 -netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
   1.748 +netbsd* | netbsdelf*-gnu)
   1.749    if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
   1.750      lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
   1.751    else
   1.752 @@ -2209,12 +2375,10 @@
   1.753    ;;
   1.754  
   1.755  openbsd*)
   1.756 -  lt_cv_file_magic_cmd=/usr/bin/file
   1.757 -  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
   1.758    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
   1.759 -    lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB shared object'
   1.760 +    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
   1.761    else
   1.762 -    lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
   1.763 +    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
   1.764    fi
   1.765    ;;
   1.766  
   1.767 @@ -2222,15 +2386,11 @@
   1.768    lt_cv_deplibs_check_method=pass_all
   1.769    ;;
   1.770  
   1.771 -sco3.2v5*)
   1.772 -  lt_cv_deplibs_check_method=pass_all
   1.773 -  ;;
   1.774 -
   1.775  solaris*)
   1.776    lt_cv_deplibs_check_method=pass_all
   1.777    ;;
   1.778  
   1.779 -sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
   1.780 +sysv4 | sysv4.3*)
   1.781    case $host_vendor in
   1.782    motorola)
   1.783      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]]'
   1.784 @@ -2251,10 +2411,13 @@
   1.785    siemens)
   1.786      lt_cv_deplibs_check_method=pass_all
   1.787      ;;
   1.788 +  pc)
   1.789 +    lt_cv_deplibs_check_method=pass_all
   1.790 +    ;;
   1.791    esac
   1.792    ;;
   1.793  
   1.794 -sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7* | sysv4*uw2*)
   1.795 +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
   1.796    lt_cv_deplibs_check_method=pass_all
   1.797    ;;
   1.798  esac
   1.799 @@ -2274,36 +2437,43 @@
   1.800    # Let the user override the test.
   1.801    lt_cv_path_NM="$NM"
   1.802  else
   1.803 -  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
   1.804 -  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
   1.805 -    IFS="$lt_save_ifs"
   1.806 -    test -z "$ac_dir" && ac_dir=.
   1.807 -    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
   1.808 -    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
   1.809 -      # Check to see if the nm accepts a BSD-compat flag.
   1.810 -      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
   1.811 -      #   nm: unknown option "B" ignored
   1.812 -      # Tru64's nm complains that /dev/null is an invalid object file
   1.813 -      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
   1.814 -      */dev/null* | *'Invalid file or object type'*)
   1.815 -	lt_cv_path_NM="$tmp_nm -B"
   1.816 -	break
   1.817 -        ;;
   1.818 -      *)
   1.819 -	case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
   1.820 -	*/dev/null*)
   1.821 -	  lt_cv_path_NM="$tmp_nm -p"
   1.822 +  lt_nm_to_check="${ac_tool_prefix}nm"
   1.823 +  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 
   1.824 +    lt_nm_to_check="$lt_nm_to_check nm"
   1.825 +  fi
   1.826 +  for lt_tmp_nm in $lt_nm_to_check; do
   1.827 +    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
   1.828 +    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
   1.829 +      IFS="$lt_save_ifs"
   1.830 +      test -z "$ac_dir" && ac_dir=.
   1.831 +      tmp_nm="$ac_dir/$lt_tmp_nm"
   1.832 +      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
   1.833 +	# Check to see if the nm accepts a BSD-compat flag.
   1.834 +	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
   1.835 +	#   nm: unknown option "B" ignored
   1.836 +	# Tru64's nm complains that /dev/null is an invalid object file
   1.837 +	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
   1.838 +	*/dev/null* | *'Invalid file or object type'*)
   1.839 +	  lt_cv_path_NM="$tmp_nm -B"
   1.840  	  break
   1.841  	  ;;
   1.842  	*)
   1.843 -	  lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
   1.844 -	  continue # so that we can try to find one that supports BSD flags
   1.845 +	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
   1.846 +	  */dev/null*)
   1.847 +	    lt_cv_path_NM="$tmp_nm -p"
   1.848 +	    break
   1.849 +	    ;;
   1.850 +	  *)
   1.851 +	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
   1.852 +	    continue # so that we can try to find one that supports BSD flags
   1.853 +	    ;;
   1.854 +	  esac
   1.855  	  ;;
   1.856  	esac
   1.857 -      esac
   1.858 -    fi
   1.859 +      fi
   1.860 +    done
   1.861 +    IFS="$lt_save_ifs"
   1.862    done
   1.863 -  IFS="$lt_save_ifs"
   1.864    test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
   1.865  fi])
   1.866  NM="$lt_cv_path_NM"
   1.867 @@ -2335,13 +2505,13 @@
   1.868  # -----------------------------------
   1.869  # sets LIBLTDL to the link flags for the libltdl convenience library and
   1.870  # LTDLINCL to the include flags for the libltdl header and adds
   1.871 -# --enable-ltdl-convenience to the configure arguments.  Note that LIBLTDL
   1.872 -# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called.  If
   1.873 -# DIRECTORY is not provided, it is assumed to be `libltdl'.  LIBLTDL will
   1.874 -# be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed with
   1.875 -# '${top_srcdir}/' (note the single quotes!).  If your package is not
   1.876 -# flat and you're not using automake, define top_builddir and
   1.877 -# top_srcdir appropriately in the Makefiles.
   1.878 +# --enable-ltdl-convenience to the configure arguments.  Note that
   1.879 +# AC_CONFIG_SUBDIRS is not called here.  If DIRECTORY is not provided,
   1.880 +# it is assumed to be `libltdl'.  LIBLTDL will be prefixed with
   1.881 +# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
   1.882 +# (note the single quotes!).  If your package is not flat and you're not
   1.883 +# using automake, define top_builddir and top_srcdir appropriately in
   1.884 +# the Makefiles.
   1.885  AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
   1.886  [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
   1.887    case $enable_ltdl_convenience in
   1.888 @@ -2360,13 +2530,13 @@
   1.889  # -----------------------------------
   1.890  # sets LIBLTDL to the link flags for the libltdl installable library and
   1.891  # LTDLINCL to the include flags for the libltdl header and adds
   1.892 -# --enable-ltdl-install to the configure arguments.  Note that LIBLTDL
   1.893 -# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called.  If
   1.894 -# DIRECTORY is not provided and an installed libltdl is not found, it is
   1.895 -# assumed to be `libltdl'.  LIBLTDL will be prefixed with '${top_builddir}/'
   1.896 -# and LTDLINCL will be prefixed with '${top_srcdir}/' (note the single
   1.897 -# quotes!).  If your package is not flat and you're not using automake,
   1.898 -# define top_builddir and top_srcdir appropriately in the Makefiles.
   1.899 +# --enable-ltdl-install to the configure arguments.  Note that
   1.900 +# AC_CONFIG_SUBDIRS is not called here.  If DIRECTORY is not provided,
   1.901 +# and an installed libltdl is not found, it is assumed to be `libltdl'.
   1.902 +# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
   1.903 +# '${top_srcdir}/' (note the single quotes!).  If your package is not
   1.904 +# flat and you're not using automake, define top_builddir and top_srcdir
   1.905 +# appropriately in the Makefiles.
   1.906  # In the future, this macro may have to be called after AC_PROG_LIBTOOL.
   1.907  AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
   1.908  [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
   1.909 @@ -2404,10 +2574,21 @@
   1.910  # ---------------
   1.911  AC_DEFUN([_LT_AC_LANG_CXX],
   1.912  [AC_REQUIRE([AC_PROG_CXX])
   1.913 -AC_REQUIRE([AC_PROG_CXXCPP])
   1.914 +AC_REQUIRE([_LT_AC_PROG_CXXCPP])
   1.915  _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
   1.916  ])# _LT_AC_LANG_CXX
   1.917  
   1.918 +# _LT_AC_PROG_CXXCPP
   1.919 +# ------------------
   1.920 +AC_DEFUN([_LT_AC_PROG_CXXCPP],
   1.921 +[
   1.922 +AC_REQUIRE([AC_PROG_CXX])
   1.923 +if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
   1.924 +    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
   1.925 +    (test "X$CXX" != "Xg++"))) ; then
   1.926 +  AC_PROG_CXXCPP
   1.927 +fi
   1.928 +])# _LT_AC_PROG_CXXCPP
   1.929  
   1.930  # AC_LIBTOOL_F77
   1.931  # --------------
   1.932 @@ -2447,7 +2628,7 @@
   1.933  
   1.934  
   1.935  # AC_LIBTOOL_RC
   1.936 -# --------------
   1.937 +# -------------
   1.938  # enable support for Windows resource files
   1.939  AC_DEFUN([AC_LIBTOOL_RC],
   1.940  [AC_REQUIRE([LT_AC_PROG_RC])
   1.941 @@ -2480,36 +2661,9 @@
   1.942  
   1.943  _LT_AC_SYS_COMPILER
   1.944  
   1.945 -#
   1.946 -# Check for any special shared library compilation flags.
   1.947 -#
   1.948 -_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)=
   1.949 -if test "$GCC" = no; then
   1.950 -  case $host_os in
   1.951 -  sco3.2v5*)
   1.952 -    _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf'
   1.953 -    ;;
   1.954 -  esac
   1.955 -fi
   1.956 -if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then
   1.957 -  AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries])
   1.958 -  if echo "$old_CC $old_CFLAGS " | grep "[[ 	]]$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[ 	]]" >/dev/null; then :
   1.959 -  else
   1.960 -    AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure])
   1.961 -    _LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no
   1.962 -  fi
   1.963 -fi
   1.964 -
   1.965 -
   1.966 -#
   1.967 -# Check to make sure the static flag actually works.
   1.968 -#
   1.969 -AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works],
   1.970 -  _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
   1.971 -  $_LT_AC_TAGVAR(lt_prog_compiler_static, $1),
   1.972 -  [],
   1.973 -  [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
   1.974 -
   1.975 +# save warnings/boilerplate of simple test code
   1.976 +_LT_COMPILER_BOILERPLATE
   1.977 +_LT_LINKER_BOILERPLATE
   1.978  
   1.979  AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
   1.980  AC_LIBTOOL_PROG_COMPILER_PIC($1)
   1.981 @@ -2519,9 +2673,9 @@
   1.982  AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
   1.983  AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
   1.984  AC_LIBTOOL_SYS_LIB_STRIP
   1.985 -AC_LIBTOOL_DLOPEN_SELF($1)
   1.986 -
   1.987 -# Report which librarie types wil actually be built
   1.988 +AC_LIBTOOL_DLOPEN_SELF
   1.989 +
   1.990 +# Report which library types will actually be built
   1.991  AC_MSG_CHECKING([if libtool supports shared libraries])
   1.992  AC_MSG_RESULT([$can_build_shared])
   1.993  
   1.994 @@ -2530,7 +2684,7 @@
   1.995  
   1.996  # On AIX, shared libraries and static libraries use the same namespace, and
   1.997  # are all built from PIC.
   1.998 -case "$host_os" in
   1.999 +case $host_os in
  1.1000  aix3*)
  1.1001    test "$enable_shared" = yes && enable_static=no
  1.1002    if test -n "$RANLIB"; then
  1.1003 @@ -2543,43 +2697,6 @@
  1.1004    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  1.1005      test "$enable_shared" = yes && enable_static=no
  1.1006    fi
  1.1007 -  ;;
  1.1008 -  darwin* | rhapsody*)
  1.1009 -  if test "$GCC" = yes; then
  1.1010 -    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  1.1011 -    case "$host_os" in
  1.1012 -    rhapsody* | darwin1.[[012]])
  1.1013 -      _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
  1.1014 -      ;;
  1.1015 -    *) # Darwin 1.3 on
  1.1016 -      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  1.1017 -      	_LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
  1.1018 -      else
  1.1019 -        case ${MACOSX_DEPLOYMENT_TARGET} in
  1.1020 -          10.[[012]])
  1.1021 -            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
  1.1022 -            ;;
  1.1023 -          10.*)
  1.1024 -            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
  1.1025 -            ;;
  1.1026 -        esac
  1.1027 -      fi
  1.1028 -      ;;
  1.1029 -    esac
  1.1030 -    output_verbose_link_cmd='echo'
  1.1031 -    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
  1.1032 -    _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  1.1033 -    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  1.1034 -    _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}'
  1.1035 -    _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}'
  1.1036 -    _LT_AC_TAGVAR(hardcode_direct, $1)=no
  1.1037 -    _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
  1.1038 -    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  1.1039 -    _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
  1.1040 -    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  1.1041 -  else
  1.1042 -    _LT_AC_TAGVAR(ld_shlibs, $1)=no
  1.1043 -  fi
  1.1044      ;;
  1.1045  esac
  1.1046  AC_MSG_RESULT([$enable_shared])
  1.1047 @@ -2605,7 +2722,7 @@
  1.1048  AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
  1.1049  [AC_LANG_PUSH(C++)
  1.1050  AC_REQUIRE([AC_PROG_CXX])
  1.1051 -AC_REQUIRE([AC_PROG_CXXCPP])
  1.1052 +AC_REQUIRE([_LT_AC_PROG_CXXCPP])
  1.1053  
  1.1054  _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  1.1055  _LT_AC_TAGVAR(allow_undefined_flag, $1)=
  1.1056 @@ -2617,6 +2734,7 @@
  1.1057  _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  1.1058  _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  1.1059  _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
  1.1060 +_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  1.1061  _LT_AC_TAGVAR(hardcode_automatic, $1)=no
  1.1062  _LT_AC_TAGVAR(module_cmds, $1)=
  1.1063  _LT_AC_TAGVAR(module_expsym_cmds, $1)=
  1.1064 @@ -2634,7 +2752,7 @@
  1.1065  _LT_AC_TAGVAR(compiler_lib_search_path, $1)=
  1.1066  
  1.1067  # Source file extension for C++ test sources.
  1.1068 -ac_ext=cc
  1.1069 +ac_ext=cpp
  1.1070  
  1.1071  # Object file extension for compiled C++ test sources.
  1.1072  objext=o
  1.1073 @@ -2644,11 +2762,15 @@
  1.1074  lt_simple_compile_test_code="int some_variable = 0;\n"
  1.1075  
  1.1076  # Code to be used in simple link tests
  1.1077 -lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
  1.1078 +lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n'
  1.1079  
  1.1080  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  1.1081  _LT_AC_SYS_COMPILER
  1.1082  
  1.1083 +# save warnings/boilerplate of simple test code
  1.1084 +_LT_COMPILER_BOILERPLATE
  1.1085 +_LT_LINKER_BOILERPLATE
  1.1086 +
  1.1087  # Allow CC to be a program name with arguments.
  1.1088  lt_save_CC=$CC
  1.1089  lt_save_LD=$LD
  1.1090 @@ -2659,18 +2781,18 @@
  1.1091  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  1.1092    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  1.1093  else
  1.1094 -  unset lt_cv_prog_gnu_ld
  1.1095 +  $as_unset lt_cv_prog_gnu_ld
  1.1096  fi
  1.1097  if test -n "${lt_cv_path_LDCXX+set}"; then
  1.1098    lt_cv_path_LD=$lt_cv_path_LDCXX
  1.1099  else
  1.1100 -  unset lt_cv_path_LD
  1.1101 +  $as_unset lt_cv_path_LD
  1.1102  fi
  1.1103  test -z "${LDCXX+set}" || LD=$LDCXX
  1.1104  CC=${CXX-"c++"}
  1.1105  compiler=$CC
  1.1106  _LT_AC_TAGVAR(compiler, $1)=$CC
  1.1107 -cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
  1.1108 +_LT_CC_BASENAME([$compiler])
  1.1109  
  1.1110  # We don't want -fno-exception wen compiling C++ code, so set the
  1.1111  # no_builtin_flag separately
  1.1112 @@ -2759,6 +2881,7 @@
  1.1113  	    ;;
  1.1114  	  esac
  1.1115  	done
  1.1116 +	;;
  1.1117        esac
  1.1118  
  1.1119        exp_sym_flag='-bexport'
  1.1120 @@ -2777,7 +2900,7 @@
  1.1121      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  1.1122  
  1.1123      if test "$GXX" = yes; then
  1.1124 -      case $host_os in aix4.[012]|aix4.[012].*)
  1.1125 +      case $host_os in aix4.[[012]]|aix4.[[012]].*)
  1.1126        # We only want to do this on AIX 4.2 and lower, the check
  1.1127        # below for broken collect2 doesn't work under 4.3+
  1.1128  	collect2name=`${CC} -print-prog-name=collect2`
  1.1129 @@ -2796,8 +2919,12 @@
  1.1130  	  _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  1.1131  	  _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  1.1132  	fi
  1.1133 +	;;
  1.1134        esac
  1.1135        shared_flag='-shared'
  1.1136 +      if test "$aix_use_runtimelinking" = yes; then
  1.1137 +	shared_flag="$shared_flag "'${wl}-G'
  1.1138 +      fi
  1.1139      else
  1.1140        # not using gcc
  1.1141        if test "$host_cpu" = ia64; then
  1.1142 @@ -2824,12 +2951,12 @@
  1.1143        _LT_AC_SYS_LIBPATH_AIX
  1.1144        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  1.1145  
  1.1146 -      _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"
  1.1147 +      _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"
  1.1148       else
  1.1149        if test "$host_cpu" = ia64; then
  1.1150  	_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  1.1151  	_LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  1.1152 -	_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"
  1.1153 +	_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"
  1.1154        else
  1.1155  	# Determine the default libpath from the value encoded in an empty executable.
  1.1156  	_LT_AC_SYS_LIBPATH_AIX
  1.1157 @@ -2838,16 +2965,26 @@
  1.1158  	# -berok will link without error, but may produce a broken library.
  1.1159  	_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  1.1160  	_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  1.1161 -	# -bexpall does not export symbols beginning with underscore (_)
  1.1162 -	_LT_AC_TAGVAR(always_export_symbols, $1)=yes
  1.1163  	# Exported symbols can be pulled into shared objects from archives
  1.1164 -	_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
  1.1165 +	_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  1.1166  	_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  1.1167 -	# This is similar to how AIX traditionally builds it's shared libraries.
  1.1168 -	_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'
  1.1169 +	# This is similar to how AIX traditionally builds its shared libraries.
  1.1170 +	_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'
  1.1171        fi
  1.1172      fi
  1.1173      ;;
  1.1174 +
  1.1175 +  beos*)
  1.1176 +    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  1.1177 +      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  1.1178 +      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  1.1179 +      # support --undefined.  This deserves some investigation.  FIXME
  1.1180 +      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  1.1181 +    else
  1.1182 +      _LT_AC_TAGVAR(ld_shlibs, $1)=no
  1.1183 +    fi
  1.1184 +    ;;
  1.1185 +
  1.1186    chorus*)
  1.1187      case $cc_basename in
  1.1188        *)
  1.1189 @@ -2866,7 +3003,7 @@
  1.1190      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  1.1191  
  1.1192      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  1.1193 -      _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'
  1.1194 +      _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'
  1.1195        # If the export-symbols file already is a .def file (1st line
  1.1196        # is EXPORTS), use it as is; otherwise, prepend...
  1.1197        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  1.1198 @@ -2875,70 +3012,81 @@
  1.1199  	echo EXPORTS > $output_objdir/$soname.def;
  1.1200  	cat $export_symbols >> $output_objdir/$soname.def;
  1.1201        fi~
  1.1202 -      $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'
  1.1203 +      $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'
  1.1204      else
  1.1205        _LT_AC_TAGVAR(ld_shlibs, $1)=no
  1.1206      fi
  1.1207    ;;
  1.1208 -
  1.1209 -  darwin* | rhapsody*)
  1.1210 -  if test "$GXX" = yes; then
  1.1211 -    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  1.1212 -    case "$host_os" in
  1.1213 -    rhapsody* | darwin1.[[012]])
  1.1214 -      _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
  1.1215 -      ;;
  1.1216 -    *) # Darwin 1.3 on
  1.1217 -      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  1.1218 -      	_LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
  1.1219 +      darwin* | rhapsody*)
  1.1220 +        case $host_os in
  1.1221 +        rhapsody* | darwin1.[[012]])
  1.1222 +         _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
  1.1223 +         ;;
  1.1224 +       *) # Darwin 1.3 on
  1.1225 +         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  1.1226 +           _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  1.1227 +         else
  1.1228 +           case ${MACOSX_DEPLOYMENT_TARGET} in
  1.1229 +             10.[[012]])
  1.1230 +               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  1.1231 +               ;;
  1.1232 +             10.*)
  1.1233 +               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
  1.1234 +               ;;
  1.1235 +           esac
  1.1236 +         fi
  1.1237 +         ;;
  1.1238 +        esac
  1.1239 +      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  1.1240 +      _LT_AC_TAGVAR(hardcode_direct, $1)=no
  1.1241 +      _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
  1.1242 +      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  1.1243 +      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
  1.1244 +      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  1.1245 +
  1.1246 +    if test "$GXX" = yes ; then
  1.1247 +      lt_int_apple_cc_single_mod=no
  1.1248 +      output_verbose_link_cmd='echo'
  1.1249 +      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
  1.1250 +       lt_int_apple_cc_single_mod=yes
  1.1251 +      fi
  1.1252 +      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  1.1253 +       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  1.1254        else
  1.1255 -        case ${MACOSX_DEPLOYMENT_TARGET} in
  1.1256 -          10.[[012]])
  1.1257 -            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
  1.1258 -            ;;
  1.1259 -          10.*)
  1.1260 -            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
  1.1261 -            ;;
  1.1262 -        esac
  1.1263 +          _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'
  1.1264 +        fi
  1.1265 +        _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  1.1266 +        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  1.1267 +          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  1.1268 +            _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}'
  1.1269 +          else
  1.1270 +            _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}'
  1.1271 +          fi
  1.1272 +            _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}'
  1.1273 +      else
  1.1274 +      case $cc_basename in
  1.1275 +        xlc*)
  1.1276 +         output_verbose_link_cmd='echo'
  1.1277 +          _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'
  1.1278 +          _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  1.1279 +          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  1.1280 +          _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}'
  1.1281 +          _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}'
  1.1282 +          ;;
  1.1283 +       *)
  1.1284 +         _LT_AC_TAGVAR(ld_shlibs, $1)=no
  1.1285 +          ;;
  1.1286 +      esac
  1.1287        fi
  1.1288 -      ;;
  1.1289 -    esac
  1.1290 -    lt_int_apple_cc_single_mod=no
  1.1291 -    output_verbose_link_cmd='echo'
  1.1292 -    if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
  1.1293 -      lt_int_apple_cc_single_mod=yes
  1.1294 -    fi
  1.1295 -    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  1.1296 -      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  1.1297 -    else
  1.1298 -      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  1.1299 -    fi
  1.1300 -    _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  1.1301 -
  1.1302 -    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  1.1303 -    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  1.1304 -      _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}'
  1.1305 -    else
  1.1306 -      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  1.1307 -    fi
  1.1308 -    _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}'
  1.1309 -    _LT_AC_TAGVAR(hardcode_direct, $1)=no
  1.1310 -    _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
  1.1311 -    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  1.1312 -    _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
  1.1313 -    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  1.1314 -  else
  1.1315 -    _LT_AC_TAGVAR(ld_shlibs, $1)=no
  1.1316 -  fi
  1.1317 -    ;;
  1.1318 +        ;;
  1.1319  
  1.1320    dgux*)
  1.1321      case $cc_basename in
  1.1322 -      ec++)
  1.1323 +      ec++*)
  1.1324  	# FIXME: insert proper C++ library support
  1.1325  	_LT_AC_TAGVAR(ld_shlibs, $1)=no
  1.1326  	;;
  1.1327 -      ghcx)
  1.1328 +      ghcx*)
  1.1329  	# Green Hills C++ Compiler
  1.1330  	# FIXME: insert proper C++ library support
  1.1331  	_LT_AC_TAGVAR(ld_shlibs, $1)=no
  1.1332 @@ -2949,14 +3097,14 @@
  1.1333  	;;
  1.1334      esac
  1.1335      ;;
  1.1336 -  freebsd[12]*)
  1.1337 +  freebsd[[12]]*)
  1.1338      # C++ shared libraries reported to be fairly broken before switch to ELF
  1.1339      _LT_AC_TAGVAR(ld_shlibs, $1)=no
  1.1340      ;;
  1.1341    freebsd-elf*)
  1.1342      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  1.1343      ;;
  1.1344 -  freebsd* | kfreebsd*-gnu)
  1.1345 +  freebsd* | dragonfly*)
  1.1346      # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  1.1347      # conventions
  1.1348      _LT_AC_TAGVAR(ld_shlibs, $1)=yes
  1.1349 @@ -2973,11 +3121,11 @@
  1.1350  				# location of the library.
  1.1351  
  1.1352      case $cc_basename in
  1.1353 -    CC)
  1.1354 +    CC*)
  1.1355        # FIXME: insert proper C++ library support
  1.1356        _LT_AC_TAGVAR(ld_shlibs, $1)=no
  1.1357        ;;
  1.1358 -    aCC)
  1.1359 +    aCC*)
  1.1360        _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  1.1361        # Commands to make compiler produce verbose output that lists
  1.1362        # what "hidden" libraries, object files and flags are used when
  1.1363 @@ -2987,7 +3135,7 @@
  1.1364        # explicitly linking system object files so we need to strip them
  1.1365        # from the output so that they don't get included in the library
  1.1366        # dependencies.
  1.1367 -      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  1.1368 +      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[[-]]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  1.1369        ;;
  1.1370      *)
  1.1371        if test "$GXX" = yes; then
  1.1372 @@ -3001,34 +3149,23 @@
  1.1373      ;;
  1.1374    hpux10*|hpux11*)
  1.1375      if test $with_gnu_ld = no; then
  1.1376 -      case "$host_cpu" in
  1.1377 -      hppa*64*)
  1.1378 -	_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  1.1379 +      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  1.1380 +      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  1.1381 +
  1.1382 +      case $host_cpu in
  1.1383 +      hppa*64*|ia64*)
  1.1384  	_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
  1.1385 -	_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  1.1386 -        ;;
  1.1387 -      ia64*)
  1.1388 -	_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  1.1389          ;;
  1.1390        *)
  1.1391 -	_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  1.1392 -	_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  1.1393  	_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  1.1394          ;;
  1.1395        esac
  1.1396      fi
  1.1397 -    case "$host_cpu" in
  1.1398 -    hppa*64*)
  1.1399 +    case $host_cpu in
  1.1400 +    hppa*64*|ia64*)
  1.1401        _LT_AC_TAGVAR(hardcode_direct, $1)=no
  1.1402        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  1.1403        ;;
  1.1404 -    ia64*)
  1.1405 -      _LT_AC_TAGVAR(hardcode_direct, $1)=no
  1.1406 -      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  1.1407 -      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  1.1408 -					      # but as the default
  1.1409 -					      # location of the library.
  1.1410 -      ;;
  1.1411      *)
  1.1412        _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  1.1413        _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  1.1414 @@ -3038,14 +3175,17 @@
  1.1415      esac
  1.1416  
  1.1417      case $cc_basename in
  1.1418 -      CC)
  1.1419 +      CC*)
  1.1420  	# FIXME: insert proper C++ library support
  1.1421  	_LT_AC_TAGVAR(ld_shlibs, $1)=no
  1.1422  	;;
  1.1423 -      aCC)
  1.1424 -	case "$host_cpu" in
  1.1425 -	hppa*64*|ia64*)
  1.1426 -	  _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
  1.1427 +      aCC*)
  1.1428 +	case $host_cpu in
  1.1429 +	hppa*64*)
  1.1430 +	  _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  1.1431 +	  ;;
  1.1432 +	ia64*)
  1.1433 +	  _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  1.1434  	  ;;
  1.1435  	*)
  1.1436  	  _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'
  1.1437 @@ -3064,9 +3204,12 @@
  1.1438        *)
  1.1439  	if test "$GXX" = yes; then
  1.1440  	  if test $with_gnu_ld = no; then
  1.1441 -	    case "$host_cpu" in
  1.1442 -	    ia64*|hppa*64*)
  1.1443 -	      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
  1.1444 +	    case $host_cpu in
  1.1445 +	    hppa*64*)
  1.1446 +	      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  1.1447 +	      ;;
  1.1448 +	    ia64*)
  1.1449 +	      _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'
  1.1450  	      ;;
  1.1451  	    *)
  1.1452  	      _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'
  1.1453 @@ -3080,11 +3223,25 @@
  1.1454  	;;
  1.1455      esac
  1.1456      ;;
  1.1457 +  interix3*)
  1.1458 +    _LT_AC_TAGVAR(hardcode_direct, $1)=no
  1.1459 +    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  1.1460 +    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  1.1461 +    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  1.1462 +    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  1.1463 +    # Instead, shared libraries are loaded at an image base (0x10000000 by
  1.1464 +    # default) and relocated if they conflict, which is a slow very memory
  1.1465 +    # consuming and fragmenting process.  To avoid this, we pick a random,
  1.1466 +    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  1.1467 +    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
  1.1468 +    _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'
  1.1469 +    _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'
  1.1470 +    ;;
  1.1471    irix5* | irix6*)
  1.1472      case $cc_basename in
  1.1473 -      CC)
  1.1474 +      CC*)
  1.1475  	# SGI C++
  1.1476 -	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
  1.1477 +	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  1.1478  
  1.1479  	# Archives containing C++ object files must be created using
  1.1480  	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
  1.1481 @@ -3095,7 +3252,7 @@
  1.1482        *)
  1.1483  	if test "$GXX" = yes; then
  1.1484  	  if test "$with_gnu_ld" = no; then
  1.1485 -	    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
  1.1486 +	    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  1.1487  	  else
  1.1488  	    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
  1.1489  	  fi
  1.1490 @@ -3106,9 +3263,9 @@
  1.1491      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  1.1492      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  1.1493      ;;
  1.1494 -  linux*)
  1.1495 +  linux* | k*bsd*-gnu)
  1.1496      case $cc_basename in
  1.1497 -      KCC)
  1.1498 +      KCC*)
  1.1499  	# Kuck and Associates, Inc. (KAI) C++ Compiler
  1.1500  
  1.1501  	# KCC will only create a shared library if the output file
  1.1502 @@ -3133,17 +3290,41 @@
  1.1503  	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
  1.1504  	_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  1.1505  	;;
  1.1506 -      icpc)
  1.1507 +      icpc*)
  1.1508  	# Intel C++
  1.1509  	with_gnu_ld=yes
  1.1510 +	# version 8.0 and above of icpc choke on multiply defined symbols
  1.1511 +	# if we add $predep_objects and $postdep_objects, however 7.1 and
  1.1512 +	# earlier do not add the objects themselves.
  1.1513 +	case `$CC -V 2>&1` in
  1.1514 +	*"Version 7."*)
  1.1515 +  	  _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  1.1516 +  	  _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  1.1517 +	  ;;
  1.1518 +	*)  # Version 8.0 or newer
  1.1519 +	  tmp_idyn=
  1.1520 +	  case $host_cpu in
  1.1521 +	    ia64*) tmp_idyn=' -i_dynamic';;
  1.1522 +	  esac
  1.1523 +  	  _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  1.1524 +	  _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  1.1525 +	  ;;
  1.1526 +	esac
  1.1527  	_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  1.1528 -	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  1.1529 -	_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  1.1530  	_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  1.1531  	_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  1.1532  	_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  1.1533  	;;
  1.1534 -      cxx)
  1.1535 +      pgCC*)
  1.1536 +        # Portland Group C++ compiler
  1.1537 +	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  1.1538 +  	_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'
  1.1539 +
  1.1540 +	_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  1.1541 +	_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  1.1542 +	_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'
  1.1543 +        ;;
  1.1544 +      cxx*)
  1.1545  	# Compaq C++
  1.1546  	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  1.1547  	_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
  1.1548 @@ -3174,7 +3355,7 @@
  1.1549      ;;
  1.1550    mvs*)
  1.1551      case $cc_basename in
  1.1552 -      cxx)
  1.1553 +      cxx*)
  1.1554  	# FIXME: insert proper C++ library support
  1.1555  	_LT_AC_TAGVAR(ld_shlibs, $1)=no
  1.1556  	;;
  1.1557 @@ -3184,7 +3365,7 @@
  1.1558  	;;
  1.1559      esac
  1.1560      ;;
  1.1561 -  netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
  1.1562 +  netbsd* | netbsdelf*-gnu)
  1.1563      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  1.1564        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  1.1565        wlarc=
  1.1566 @@ -3195,9 +3376,25 @@
  1.1567      # Workaround some broken pre-1.5 toolchains
  1.1568      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  1.1569      ;;
  1.1570 +  openbsd2*)
  1.1571 +    # C++ shared libraries are fairly broken
  1.1572 +    _LT_AC_TAGVAR(ld_shlibs, $1)=no
  1.1573 +    ;;
  1.1574 +  openbsd*)
  1.1575 +    _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  1.1576 +    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  1.1577 +    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  1.1578 +    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  1.1579 +    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  1.1580 +      _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'
  1.1581 +      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  1.1582 +      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  1.1583 +    fi
  1.1584 +    output_verbose_link_cmd='echo'
  1.1585 +    ;;
  1.1586    osf3*)
  1.1587      case $cc_basename in
  1.1588 -      KCC)
  1.1589 +      KCC*)
  1.1590  	# Kuck and Associates, Inc. (KAI) C++ Compiler
  1.1591  
  1.1592  	# KCC will only create a shared library if the output file
  1.1593 @@ -3213,14 +3410,14 @@
  1.1594  	_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  1.1595  
  1.1596  	;;
  1.1597 -      RCC)
  1.1598 +      RCC*)
  1.1599  	# Rational C++ 2.4.1
  1.1600  	# FIXME: insert proper C++ library support
  1.1601  	_LT_AC_TAGVAR(ld_shlibs, $1)=no
  1.1602  	;;
  1.1603 -      cxx)
  1.1604 +      cxx*)
  1.1605  	_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  1.1606 -	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
  1.1607 +	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  1.1608  
  1.1609  	_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  1.1610  	_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  1.1611 @@ -3238,7 +3435,7 @@
  1.1612        *)
  1.1613  	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  1.1614  	  _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  1.1615 -	  _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
  1.1616 +	  _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  1.1617  
  1.1618  	  _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  1.1619  	  _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  1.1620 @@ -3257,7 +3454,7 @@
  1.1621      ;;
  1.1622    osf4* | osf5*)
  1.1623      case $cc_basename in
  1.1624 -      KCC)
  1.1625 +      KCC*)
  1.1626  	# Kuck and Associates, Inc. (KAI) C++ Compiler
  1.1627  
  1.1628  	# KCC will only create a shared library if the output file
  1.1629 @@ -3272,17 +3469,17 @@
  1.1630  	# the KAI C++ compiler.
  1.1631  	_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
  1.1632  	;;
  1.1633 -      RCC)
  1.1634 +      RCC*)
  1.1635  	# Rational C++ 2.4.1
  1.1636  	# FIXME: insert proper C++ library support
  1.1637  	_LT_AC_TAGVAR(ld_shlibs, $1)=no
  1.1638  	;;
  1.1639 -      cxx)
  1.1640 +      cxx*)
  1.1641  	_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  1.1642 -	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
  1.1643 +	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  1.1644  	_LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  1.1645  	  echo "-hidden">> $lib.exp~
  1.1646 -	  $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version	$verstring` -update_registry $objdir/so_locations -o $lib~
  1.1647 +	  $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version	$verstring` -update_registry ${output_objdir}/so_locations -o $lib~
  1.1648  	  $rm $lib.exp'
  1.1649  
  1.1650  	_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  1.1651 @@ -3301,7 +3498,7 @@
  1.1652        *)
  1.1653  	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  1.1654  	  _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  1.1655 -	 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
  1.1656 +	 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  1.1657  
  1.1658  	  _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  1.1659  	  _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  1.1660 @@ -3322,27 +3519,14 @@
  1.1661      # FIXME: insert proper C++ library support
  1.1662      _LT_AC_TAGVAR(ld_shlibs, $1)=no
  1.1663      ;;
  1.1664 -  sco*)
  1.1665 -    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  1.1666 -    case $cc_basename in
  1.1667 -      CC)
  1.1668 -	# FIXME: insert proper C++ library support
  1.1669 -	_LT_AC_TAGVAR(ld_shlibs, $1)=no
  1.1670 -	;;
  1.1671 -      *)
  1.1672 -	# FIXME: insert proper C++ library support
  1.1673 -	_LT_AC_TAGVAR(ld_shlibs, $1)=no
  1.1674 -	;;
  1.1675 -    esac
  1.1676 -    ;;
  1.1677    sunos4*)
  1.1678      case $cc_basename in
  1.1679 -      CC)
  1.1680 +      CC*)
  1.1681  	# Sun C++ 4.x
  1.1682  	# FIXME: insert proper C++ library support
  1.1683  	_LT_AC_TAGVAR(ld_shlibs, $1)=no
  1.1684  	;;
  1.1685 -      lcc)
  1.1686 +      lcc*)
  1.1687  	# Lucid
  1.1688  	# FIXME: insert proper C++ library support
  1.1689  	_LT_AC_TAGVAR(ld_shlibs, $1)=no
  1.1690 @@ -3355,36 +3539,33 @@
  1.1691      ;;
  1.1692    solaris*)
  1.1693      case $cc_basename in
  1.1694 -      CC)
  1.1695 +      CC*)
  1.1696  	# Sun C++ 4.2, 5.x and Centerline C++
  1.1697 +        _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
  1.1698  	_LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  1.1699 -	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  1.1700 +	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  1.1701  	_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  1.1702 -	$CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  1.1703 +	$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'
  1.1704  
  1.1705  	_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  1.1706  	_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  1.1707  	case $host_os in
  1.1708 -	  solaris2.[0-5] | solaris2.[0-5].*) ;;
  1.1709 +	  solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  1.1710  	  *)
  1.1711  	    # The C++ compiler is used as linker so we must use $wl
  1.1712  	    # flag to pass the commands to the underlying system
  1.1713 -	    # linker.
  1.1714 +	    # linker. We must also pass each convience library through
  1.1715 +	    # to the system linker between allextract/defaultextract.
  1.1716 +	    # The C++ compiler will combine linker options so we
  1.1717 +	    # cannot just pass the convience library names through
  1.1718 +	    # without $wl.
  1.1719  	    # Supported since Solaris 2.6 (maybe 2.5.1?)
  1.1720 -	    _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  1.1721 +	    _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'
  1.1722  	    ;;
  1.1723  	esac
  1.1724  	_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  1.1725  
  1.1726 -	# Commands to make compiler produce verbose output that lists
  1.1727 -	# what "hidden" libraries, object files and flags are used when
  1.1728 -	# linking a shared library.
  1.1729 -	#
  1.1730 -	# There doesn't appear to be a way to prevent this compiler from
  1.1731 -	# explicitly linking system object files so we need to strip them
  1.1732 -	# from the output so that they don't get included in the library
  1.1733 -	# dependencies.
  1.1734 -	output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[[LR]]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  1.1735 +	output_verbose_link_cmd='echo'
  1.1736  
  1.1737  	# Archives containing C++ object files must be created using
  1.1738  	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
  1.1739 @@ -3392,7 +3573,7 @@
  1.1740  	# in the archive.
  1.1741  	_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  1.1742  	;;
  1.1743 -      gcx)
  1.1744 +      gcx*)
  1.1745  	# Green Hills C++ Compiler
  1.1746  	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  1.1747  
  1.1748 @@ -3430,12 +3611,63 @@
  1.1749  	;;
  1.1750      esac
  1.1751      ;;
  1.1752 -  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
  1.1753 +  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  1.1754 +    _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  1.1755      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  1.1756 +    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  1.1757 +    runpath_var='LD_RUN_PATH'
  1.1758 +
  1.1759 +    case $cc_basename in
  1.1760 +      CC*)
  1.1761 +	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  1.1762 +	_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  1.1763 +	;;
  1.1764 +      *)
  1.1765 +	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  1.1766 +	_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  1.1767 +	;;
  1.1768 +    esac
  1.1769 +    ;;
  1.1770 +  sysv5* | sco3.2v5* | sco5v6*)
  1.1771 +    # Note: We can NOT use -z defs as we might desire, because we do not
  1.1772 +    # link with -lc, and that would cause any symbols used from libc to
  1.1773 +    # always be unresolved, which means just about no library would
  1.1774 +    # ever link correctly.  If we're not using GNU ld we use -z text
  1.1775 +    # though, which does catch some bad symbols but isn't as heavy-handed
  1.1776 +    # as -z defs.
  1.1777 +    # For security reasons, it is highly recommended that you always
  1.1778 +    # use absolute paths for naming shared libraries, and exclude the
  1.1779 +    # DT_RUNPATH tag from executables and libraries.  But doing so
  1.1780 +    # requires that you compile everything twice, which is a pain.
  1.1781 +    # So that behaviour is only enabled if SCOABSPATH is set to a
  1.1782 +    # non-empty value in the environment.  Most likely only useful for
  1.1783 +    # creating official distributions of packages.
  1.1784 +    # This is a hack until libtool officially supports absolute path
  1.1785 +    # names for shared libraries.
  1.1786 +    _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  1.1787 +    _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  1.1788 +    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  1.1789 +    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  1.1790 +    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  1.1791 +    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
  1.1792 +    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  1.1793 +    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  1.1794 +    runpath_var='LD_RUN_PATH'
  1.1795 +
  1.1796 +    case $cc_basename in
  1.1797 +      CC*)
  1.1798 +	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  1.1799 +	_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'
  1.1800 +	;;
  1.1801 +      *)
  1.1802 +	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  1.1803 +	_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'
  1.1804 +	;;
  1.1805 +    esac
  1.1806      ;;
  1.1807    tandem*)
  1.1808      case $cc_basename in
  1.1809 -      NCC)
  1.1810 +      NCC*)
  1.1811  	# NonStop-UX NCC 3.20
  1.1812  	# FIXME: insert proper C++ library support
  1.1813  	_LT_AC_TAGVAR(ld_shlibs, $1)=no
  1.1814 @@ -3468,8 +3700,6 @@
  1.1815  AC_LIBTOOL_PROG_LD_SHLIBS($1)
  1.1816  AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  1.1817  AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  1.1818 -AC_LIBTOOL_SYS_LIB_STRIP
  1.1819 -AC_LIBTOOL_DLOPEN_SELF($1)
  1.1820  
  1.1821  AC_LIBTOOL_CONFIG($1)
  1.1822  
  1.1823 @@ -3487,7 +3717,7 @@
  1.1824  ])# AC_LIBTOOL_LANG_CXX_CONFIG
  1.1825  
  1.1826  # AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
  1.1827 -# ------------------------
  1.1828 +# ------------------------------------
  1.1829  # Figure out "hidden" library dependencies from verbose
  1.1830  # compiler output when linking a shared library.
  1.1831  # Parse the compiler output and extract the necessary
  1.1832 @@ -3541,7 +3771,7 @@
  1.1833    # The `*' in the case matches for architectures that use `case' in
  1.1834    # $output_verbose_cmd can trigger glob expansion during the loop
  1.1835    # eval without this substitution.
  1.1836 -  output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
  1.1837 +  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
  1.1838  
  1.1839    for p in `eval $output_verbose_link_cmd`; do
  1.1840      case $p in
  1.1841 @@ -3617,13 +3847,37 @@
  1.1842  
  1.1843  $rm -f confest.$objext
  1.1844  
  1.1845 +# PORTME: override above test on systems where it is broken
  1.1846 +ifelse([$1],[CXX],
  1.1847 +[case $host_os in
  1.1848 +interix3*)
  1.1849 +  # Interix 3.5 installs completely hosed .la files for C++, so rather than
  1.1850 +  # hack all around it, let's just trust "g++" to DTRT.
  1.1851 +  _LT_AC_TAGVAR(predep_objects,$1)=
  1.1852 +  _LT_AC_TAGVAR(postdep_objects,$1)=
  1.1853 +  _LT_AC_TAGVAR(postdeps,$1)=
  1.1854 +  ;;
  1.1855 +
  1.1856 +solaris*)
  1.1857 +  case $cc_basename in
  1.1858 +  CC*)
  1.1859 +    # Adding this requires a known-good setup of shared libraries for
  1.1860 +    # Sun compiler versions before 5.6, else PIC objects from an old
  1.1861 +    # archive will be linked into the output, leading to subtle bugs.
  1.1862 +    _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
  1.1863 +    ;;
  1.1864 +  esac
  1.1865 +  ;;
  1.1866 +esac
  1.1867 +])
  1.1868 +
  1.1869  case " $_LT_AC_TAGVAR(postdeps, $1) " in
  1.1870  *" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
  1.1871  esac
  1.1872  ])# AC_LIBTOOL_POSTDEP_PREDEP
  1.1873  
  1.1874  # AC_LIBTOOL_LANG_F77_CONFIG
  1.1875 -# ------------------------
  1.1876 +# --------------------------
  1.1877  # Ensure that the configuration vars for the C compiler are
  1.1878  # suitably defined.  Those variables are subsequently used by
  1.1879  # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  1.1880 @@ -3667,12 +3921,16 @@
  1.1881  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  1.1882  _LT_AC_SYS_COMPILER
  1.1883  
  1.1884 +# save warnings/boilerplate of simple test code
  1.1885 +_LT_COMPILER_BOILERPLATE
  1.1886 +_LT_LINKER_BOILERPLATE
  1.1887 +
  1.1888  # Allow CC to be a program name with arguments.
  1.1889  lt_save_CC="$CC"
  1.1890  CC=${F77-"f77"}
  1.1891  compiler=$CC
  1.1892  _LT_AC_TAGVAR(compiler, $1)=$CC
  1.1893 -cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
  1.1894 +_LT_CC_BASENAME([$compiler])
  1.1895  
  1.1896  AC_MSG_CHECKING([if libtool supports shared libraries])
  1.1897  AC_MSG_RESULT([$can_build_shared])
  1.1898 @@ -3682,7 +3940,7 @@
  1.1899  
  1.1900  # On AIX, shared libraries and static libraries use the same namespace, and
  1.1901  # are all built from PIC.
  1.1902 -case "$host_os" in
  1.1903 +case $host_os in
  1.1904  aix3*)
  1.1905    test "$enable_shared" = yes && enable_static=no
  1.1906    if test -n "$RANLIB"; then
  1.1907 @@ -3691,7 +3949,9 @@
  1.1908    fi
  1.1909    ;;
  1.1910  aix4* | aix5*)
  1.1911 -  test "$enable_shared" = yes && enable_static=no
  1.1912 +  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  1.1913 +    test "$enable_shared" = yes && enable_static=no
  1.1914 +  fi
  1.1915    ;;
  1.1916  esac
  1.1917  AC_MSG_RESULT([$enable_shared])
  1.1918 @@ -3701,8 +3961,6 @@
  1.1919  test "$enable_shared" = yes || enable_static=yes
  1.1920  AC_MSG_RESULT([$enable_static])
  1.1921  
  1.1922 -test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  1.1923 -
  1.1924  _LT_AC_TAGVAR(GCC, $1)="$G77"
  1.1925  _LT_AC_TAGVAR(LD, $1)="$LD"
  1.1926  
  1.1927 @@ -3712,8 +3970,6 @@
  1.1928  AC_LIBTOOL_PROG_LD_SHLIBS($1)
  1.1929  AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  1.1930  AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  1.1931 -AC_LIBTOOL_SYS_LIB_STRIP
  1.1932 -
  1.1933  
  1.1934  AC_LIBTOOL_CONFIG($1)
  1.1935  
  1.1936 @@ -3742,20 +3998,27 @@
  1.1937  lt_simple_compile_test_code="class foo {}\n"
  1.1938  
  1.1939  # Code to be used in simple link tests
  1.1940 -lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
  1.1941 +lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n'
  1.1942  
  1.1943  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  1.1944  _LT_AC_SYS_COMPILER
  1.1945  
  1.1946 +# save warnings/boilerplate of simple test code
  1.1947 +_LT_COMPILER_BOILERPLATE
  1.1948 +_LT_LINKER_BOILERPLATE
  1.1949 +
  1.1950  # Allow CC to be a program name with arguments.
  1.1951  lt_save_CC="$CC"
  1.1952  CC=${GCJ-"gcj"}
  1.1953  compiler=$CC
  1.1954  _LT_AC_TAGVAR(compiler, $1)=$CC
  1.1955 +_LT_CC_BASENAME([$compiler])
  1.1956  
  1.1957  # GCJ did not exist at the time GCC didn't implicitly link libc in.
  1.1958  _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  1.1959  
  1.1960 +_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  1.1961 +
  1.1962  AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
  1.1963  AC_LIBTOOL_PROG_COMPILER_PIC($1)
  1.1964  AC_LIBTOOL_PROG_CC_C_O($1)
  1.1965 @@ -3763,8 +4026,6 @@
  1.1966  AC_LIBTOOL_PROG_LD_SHLIBS($1)
  1.1967  AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  1.1968  AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  1.1969 -AC_LIBTOOL_SYS_LIB_STRIP
  1.1970 -AC_LIBTOOL_DLOPEN_SELF($1)
  1.1971  
  1.1972  AC_LIBTOOL_CONFIG($1)
  1.1973  
  1.1974 @@ -3774,7 +4035,7 @@
  1.1975  
  1.1976  
  1.1977  # AC_LIBTOOL_LANG_RC_CONFIG
  1.1978 -# --------------------------
  1.1979 +# -------------------------
  1.1980  # Ensure that the configuration vars for the Windows resource compiler are
  1.1981  # suitably defined.  Those variables are subsequently used by
  1.1982  # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  1.1983 @@ -3798,11 +4059,16 @@
  1.1984  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  1.1985  _LT_AC_SYS_COMPILER
  1.1986  
  1.1987 +# save warnings/boilerplate of simple test code
  1.1988 +_LT_COMPILER_BOILERPLATE
  1.1989 +_LT_LINKER_BOILERPLATE
  1.1990 +
  1.1991  # Allow CC to be a program name with arguments.
  1.1992  lt_save_CC="$CC"
  1.1993  CC=${RC-"windres"}
  1.1994  compiler=$CC
  1.1995  _LT_AC_TAGVAR(compiler, $1)=$CC
  1.1996 +_LT_CC_BASENAME([$compiler])
  1.1997  _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  1.1998  
  1.1999  AC_LIBTOOL_CONFIG($1)
  1.2000 @@ -3832,7 +4098,7 @@
  1.2001    # Now quote all the things that may contain metacharacters while being
  1.2002    # careful not to overquote the AC_SUBSTed values.  We take copies of the
  1.2003    # variables and quote the copies for generation of the libtool script.
  1.2004 -  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
  1.2005 +  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  1.2006      SED SHELL STRIP \
  1.2007      libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  1.2008      old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  1.2009 @@ -3938,7 +4204,7 @@
  1.2010  #
  1.2011  # You should have received a copy of the GNU General Public License
  1.2012  # along with this program; if not, write to the Free Software
  1.2013 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  1.2014 +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  1.2015  #
  1.2016  # As a special exception to the GNU General Public License, if you
  1.2017  # distribute this file as part of a program that contains a
  1.2018 @@ -3949,11 +4215,11 @@
  1.2019  SED=$lt_SED
  1.2020  
  1.2021  # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  1.2022 -Xsed="$SED -e s/^X//"
  1.2023 +Xsed="$SED -e 1s/^X//"
  1.2024  
  1.2025  # The HP-UX ksh and POSIX shell print the target directory to stdout
  1.2026  # if CDPATH is set.
  1.2027 -if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
  1.2028 +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  1.2029  
  1.2030  # The names of the tagged configurations supported by this script.
  1.2031  available_tags=
  1.2032 @@ -3984,6 +4250,12 @@
  1.2033  # The host system.
  1.2034  host_alias=$host_alias
  1.2035  host=$host
  1.2036 +host_os=$host_os
  1.2037 +
  1.2038 +# The build system.
  1.2039 +build_alias=$build_alias
  1.2040 +build=$build
  1.2041 +build_os=$build_os
  1.2042  
  1.2043  # An echo program that does not interpret backslashes.
  1.2044  echo=$lt_echo
  1.2045 @@ -3995,6 +4267,9 @@
  1.2046  # A C compiler.
  1.2047  LTCC=$lt_LTCC
  1.2048  
  1.2049 +# LTCC compiler flags.
  1.2050 +LTCFLAGS=$lt_LTCFLAGS
  1.2051 +
  1.2052  # A language-specific compiler.
  1.2053  CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
  1.2054  
  1.2055 @@ -4060,7 +4335,7 @@
  1.2056  # Does compiler simultaneously support -c and -o options?
  1.2057  compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
  1.2058  
  1.2059 -# Must we lock files when doing compilation ?
  1.2060 +# Must we lock files when doing compilation?
  1.2061  need_locks=$lt_need_locks
  1.2062  
  1.2063  # Do we need the lib prefix for modules?
  1.2064 @@ -4334,9 +4609,6 @@
  1.2065  # Regexp to match symbols that can be accessed directly from C.
  1.2066  sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
  1.2067  
  1.2068 -# Transform the above into a raw symbol and a C symbol.
  1.2069 -symxfrm='\1 \2\3 \3'
  1.2070 -
  1.2071  # Transform an extracted symbol line into a proper C declaration
  1.2072  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
  1.2073  
  1.2074 @@ -4358,15 +4630,31 @@
  1.2075    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  1.2076    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'"
  1.2077    ;;
  1.2078 +linux* | k*bsd*-gnu)
  1.2079 +  if test "$host_cpu" = ia64; then
  1.2080 +    symcode='[[ABCDGIRSTW]]'
  1.2081 +    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  1.2082 +    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'"
  1.2083 +  fi
  1.2084 +  ;;
  1.2085  irix* | nonstopux*)
  1.2086    symcode='[[BCDEGRST]]'
  1.2087    ;;
  1.2088  osf*)
  1.2089    symcode='[[BCDEGQRST]]'
  1.2090    ;;
  1.2091 -solaris* | sysv5*)
  1.2092 +solaris*)
  1.2093    symcode='[[BDRT]]'
  1.2094    ;;
  1.2095 +sco3.2v5*)
  1.2096 +  symcode='[[DT]]'
  1.2097 +  ;;
  1.2098 +sysv4.2uw2*)
  1.2099 +  symcode='[[DT]]'
  1.2100 +  ;;
  1.2101 +sysv5* | sco5v6* | unixware* | OpenUNIX*)
  1.2102 +  symcode='[[ABDT]]'
  1.2103 +  ;;
  1.2104  sysv4)
  1.2105    symcode='[[DFNSTU]]'
  1.2106    ;;
  1.2107 @@ -4389,8 +4677,11 @@
  1.2108  # Try without a prefix undercore, then with it.
  1.2109  for ac_symprfx in "" "_"; do
  1.2110  
  1.2111 +  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  1.2112 +  symxfrm="\\1 $ac_symprfx\\2 \\2"
  1.2113 +
  1.2114    # Write the raw and C identifiers.
  1.2115 -  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ 	]]\($symcode$symcode*\)[[ 	]][[ 	]]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
  1.2116 +  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ 	]]\($symcode$symcode*\)[[ 	]][[ 	]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  1.2117  
  1.2118    # Check to see that the pipe works correctly.
  1.2119    pipe_works=no
  1.2120 @@ -4546,6 +4837,10 @@
  1.2121        # DJGPP does not support shared libraries at all
  1.2122        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  1.2123        ;;
  1.2124 +    interix3*)
  1.2125 +      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  1.2126 +      # Instead, we relocate shared libraries at runtime.
  1.2127 +      ;;
  1.2128      sysv4*MP*)
  1.2129        if test -d /usr/nec; then
  1.2130  	_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  1.2131 @@ -4554,7 +4849,7 @@
  1.2132      hpux*)
  1.2133        # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  1.2134        # not for PA HP-UX.
  1.2135 -      case "$host_cpu" in
  1.2136 +      case $host_cpu in
  1.2137        hppa*64*|ia64*)
  1.2138  	;;
  1.2139        *)
  1.2140 @@ -4579,18 +4874,28 @@
  1.2141  	;;
  1.2142        chorus*)
  1.2143  	case $cc_basename in
  1.2144 -	cxch68)
  1.2145 +	cxch68*)
  1.2146  	  # Green Hills C++ Compiler
  1.2147  	  # _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
  1.2148  	  ;;
  1.2149  	esac
  1.2150  	;;
  1.2151 +       darwin*)
  1.2152 +         # PIC is the default on this platform
  1.2153 +         # Common symbols not allowed in MH_DYLIB files
  1.2154 +         case $cc_basename in
  1.2155 +           xlc*)
  1.2156 +           _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
  1.2157 +           _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  1.2158 +           ;;
  1.2159 +         esac
  1.2160 +       ;;
  1.2161        dgux*)
  1.2162  	case $cc_basename in
  1.2163 -	  ec++)
  1.2164 +	  ec++*)
  1.2165  	    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  1.2166  	    ;;
  1.2167 -	  ghcx)
  1.2168 +	  ghcx*)
  1.2169  	    # Green Hills C++ Compiler
  1.2170  	    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  1.2171  	    ;;
  1.2172 @@ -4598,22 +4903,22 @@
  1.2173  	    ;;
  1.2174  	esac
  1.2175  	;;
  1.2176 -      freebsd* | kfreebsd*-gnu)
  1.2177 +      freebsd* | dragonfly*)
  1.2178  	# FreeBSD uses GNU C++
  1.2179  	;;
  1.2180        hpux9* | hpux10* | hpux11*)
  1.2181  	case $cc_basename in
  1.2182 -	  CC)
  1.2183 +	  CC*)
  1.2184  	    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  1.2185 -	    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
  1.2186 +	    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  1.2187  	    if test "$host_cpu" != ia64; then
  1.2188  	      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  1.2189  	    fi
  1.2190  	    ;;
  1.2191 -	  aCC)
  1.2192 +	  aCC*)
  1.2193  	    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  1.2194 -	    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
  1.2195 -	    case "$host_cpu" in
  1.2196 +	    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  1.2197 +	    case $host_cpu in
  1.2198  	    hppa*64*|ia64*)
  1.2199  	      # +Z the default
  1.2200  	      ;;
  1.2201 @@ -4626,9 +4931,13 @@
  1.2202  	    ;;
  1.2203  	esac
  1.2204  	;;
  1.2205 +      interix*)
  1.2206 +	# This is c89, which is MS Visual C++ (no shared libs)
  1.2207 +	# Anyone wants to do a port?
  1.2208 +	;;
  1.2209        irix5* | irix6* | nonstopux*)
  1.2210  	case $cc_basename in
  1.2211 -	  CC)
  1.2212 +	  CC*)
  1.2213  	    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  1.2214  	    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  1.2215  	    # CC pic flag -KPIC is the default.
  1.2216 @@ -4637,20 +4946,26 @@
  1.2217  	    ;;
  1.2218  	esac
  1.2219  	;;
  1.2220 -      linux*)
  1.2221 +      linux* | k*bsd*-gnu)
  1.2222  	case $cc_basename in
  1.2223 -	  KCC)
  1.2224 +	  KCC*)
  1.2225  	    # KAI C++ Compiler
  1.2226  	    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  1.2227  	    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  1.2228  	    ;;
  1.2229 -	  icpc)
  1.2230 +	  icpc* | ecpc*)
  1.2231  	    # Intel C++
  1.2232  	    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  1.2233  	    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  1.2234  	    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  1.2235  	    ;;
  1.2236 -	  cxx)
  1.2237 +	  pgCC*)
  1.2238 +	    # Portland Group C++ compiler.
  1.2239 +	    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  1.2240 +	    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  1.2241 +	    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  1.2242 +	    ;;
  1.2243 +	  cxx*)
  1.2244  	    # Compaq C++
  1.2245  	    # Make sure the PIC flag is empty.  It appears that all Alpha
  1.2246  	    # Linux and Compaq Tru64 Unix objects are PIC.
  1.2247 @@ -4667,25 +4982,25 @@
  1.2248  	;;
  1.2249        mvs*)
  1.2250  	case $cc_basename in
  1.2251 -	  cxx)
  1.2252 +	  cxx*)
  1.2253  	    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
  1.2254  	    ;;
  1.2255  	  *)
  1.2256  	    ;;
  1.2257  	esac
  1.2258  	;;
  1.2259 -      netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
  1.2260 +      netbsd* | netbsdelf*-gnu)
  1.2261  	;;
  1.2262        osf3* | osf4* | osf5*)
  1.2263  	case $cc_basename in
  1.2264 -	  KCC)
  1.2265 +	  KCC*)
  1.2266  	    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  1.2267  	    ;;
  1.2268 -	  RCC)
  1.2269 +	  RCC*)
  1.2270  	    # Rational C++ 2.4.1
  1.2271  	    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  1.2272  	    ;;
  1.2273 -	  cxx)
  1.2274 +	  cxx*)
  1.2275  	    # Digital/Compaq C++
  1.2276  	    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  1.2277  	    # Make sure the PIC flag is empty.  It appears that all Alpha
  1.2278 @@ -4699,24 +5014,15 @@
  1.2279  	;;
  1.2280        psos*)
  1.2281  	;;
  1.2282 -      sco*)
  1.2283 -	case $cc_basename in
  1.2284 -	  CC)
  1.2285 -	    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  1.2286 -	    ;;
  1.2287 -	  *)
  1.2288 -	    ;;
  1.2289 -	esac
  1.2290 -	;;
  1.2291        solaris*)
  1.2292  	case $cc_basename in
  1.2293 -	  CC)
  1.2294 +	  CC*)
  1.2295  	    # Sun C++ 4.2, 5.x and Centerline C++
  1.2296  	    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  1.2297  	    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  1.2298  	    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  1.2299  	    ;;
  1.2300 -	  gcx)
  1.2301 +	  gcx*)
  1.2302  	    # Green Hills C++ Compiler
  1.2303  	    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  1.2304  	    ;;
  1.2305 @@ -4726,12 +5032,12 @@
  1.2306  	;;
  1.2307        sunos4*)
  1.2308  	case $cc_basename in
  1.2309 -	  CC)
  1.2310 +	  CC*)
  1.2311  	    # Sun C++ 4.x
  1.2312  	    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  1.2313  	    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  1.2314  	    ;;
  1.2315 -	  lcc)
  1.2316 +	  lcc*)
  1.2317  	    # Lucid
  1.2318  	    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  1.2319  	    ;;
  1.2320 @@ -4741,7 +5047,7 @@
  1.2321  	;;
  1.2322        tandem*)
  1.2323  	case $cc_basename in
  1.2324 -	  NCC)
  1.2325 +	  NCC*)
  1.2326  	    # NonStop-UX NCC 3.20
  1.2327  	    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  1.2328  	    ;;
  1.2329 @@ -4749,7 +5055,14 @@
  1.2330  	    ;;
  1.2331  	esac
  1.2332  	;;
  1.2333 -      unixware*)
  1.2334 +      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  1.2335 +	case $cc_basename in
  1.2336 +	  CC*)
  1.2337 +	    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  1.2338 +	    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  1.2339 +	    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  1.2340 +	    ;;
  1.2341 +	esac
  1.2342  	;;
  1.2343        vxworks*)
  1.2344  	;;
  1.2345 @@ -4796,6 +5109,11 @@
  1.2346        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  1.2347        ;;
  1.2348  
  1.2349 +    interix3*)
  1.2350 +      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  1.2351 +      # Instead, we relocate shared libraries at runtime.
  1.2352 +      ;;
  1.2353 +
  1.2354      msdosdjgpp*)
  1.2355        # Just because we use GCC doesn't mean we suddenly get shared libraries
  1.2356        # on systems that don't support them.
  1.2357 @@ -4812,7 +5130,7 @@
  1.2358      hpux*)
  1.2359        # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  1.2360        # not for PA HP-UX.
  1.2361 -      case "$host_cpu" in
  1.2362 +      case $host_cpu in
  1.2363        hppa*64*|ia64*)
  1.2364  	# +Z the default
  1.2365  	;;
  1.2366 @@ -4838,6 +5156,16 @@
  1.2367  	_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  1.2368        fi
  1.2369        ;;
  1.2370 +      darwin*)
  1.2371 +        # PIC is the default on this platform
  1.2372 +        # Common symbols not allowed in MH_DYLIB files
  1.2373 +       case $cc_basename in
  1.2374 +         xlc*)
  1.2375 +         _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
  1.2376 +         _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  1.2377 +         ;;
  1.2378 +       esac
  1.2379 +       ;;
  1.2380  
  1.2381      mingw* | pw32* | os2*)
  1.2382        # This hack is so that the source file can tell whether it is being
  1.2383 @@ -4849,7 +5177,7 @@
  1.2384        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  1.2385        # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  1.2386        # not for PA HP-UX.
  1.2387 -      case "$host_cpu" in
  1.2388 +      case $host_cpu in
  1.2389        hppa*64*|ia64*)
  1.2390  	# +Z the default
  1.2391  	;;
  1.2392 @@ -4872,13 +5200,20 @@
  1.2393        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  1.2394        ;;
  1.2395  
  1.2396 -    linux*)
  1.2397 -      case $CC in
  1.2398 +    linux* | k*bsd*-gnu)
  1.2399 +      case $cc_basename in
  1.2400        icc* | ecc*)
  1.2401  	_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  1.2402  	_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  1.2403  	_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  1.2404          ;;
  1.2405 +      pgcc* | pgf77* | pgf90* | pgf95*)
  1.2406 +        # Portland Group compilers (*not* the Pentium gcc compiler,
  1.2407 +	# which looks to be a dead project)
  1.2408 +	_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  1.2409 +	_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  1.2410 +	_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  1.2411 +        ;;
  1.2412        ccc*)
  1.2413          _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  1.2414          # All Alpha code is PIC.
  1.2415 @@ -4893,15 +5228,15 @@
  1.2416        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  1.2417        ;;
  1.2418  
  1.2419 -    sco3.2v5*)
  1.2420 -      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kpic'
  1.2421 -      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-dn'
  1.2422 -      ;;
  1.2423 -
  1.2424      solaris*)
  1.2425 -      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  1.2426        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  1.2427        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  1.2428 +      case $cc_basename in
  1.2429 +      f77* | f90* | f95*)
  1.2430 +	_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
  1.2431 +      *)
  1.2432 +	_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
  1.2433 +      esac
  1.2434        ;;
  1.2435  
  1.2436      sunos4*)
  1.2437 @@ -4910,7 +5245,7 @@
  1.2438        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  1.2439        ;;
  1.2440  
  1.2441 -    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  1.2442 +    sysv4 | sysv4.2uw2* | sysv4.3*)
  1.2443        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  1.2444        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  1.2445        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  1.2446 @@ -4923,6 +5258,17 @@
  1.2447        fi
  1.2448        ;;
  1.2449  
  1.2450 +    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  1.2451 +      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  1.2452 +      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  1.2453 +      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  1.2454 +      ;;
  1.2455 +
  1.2456 +    unicos*)
  1.2457 +      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  1.2458 +      _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  1.2459 +      ;;
  1.2460 +
  1.2461      uts4*)
  1.2462        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  1.2463        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  1.2464 @@ -4950,7 +5296,7 @@
  1.2465      [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  1.2466       _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
  1.2467  fi
  1.2468 -case "$host_os" in
  1.2469 +case $host_os in
  1.2470    # For platforms which do not support PIC, -DPIC is meaningless:
  1.2471    *djgpp*)
  1.2472      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  1.2473 @@ -4959,6 +5305,16 @@
  1.2474      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
  1.2475      ;;
  1.2476  esac
  1.2477 +
  1.2478 +#
  1.2479 +# Check to make sure the static flag actually works.
  1.2480 +#
  1.2481 +wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
  1.2482 +AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
  1.2483 +  _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
  1.2484 +  $lt_tmp_static_flag,
  1.2485 +  [],
  1.2486 +  [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
  1.2487  ])
  1.2488  
  1.2489  
  1.2490 @@ -4983,9 +5339,9 @@
  1.2491      _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
  1.2492    ;;
  1.2493    cygwin* | mingw*)
  1.2494 -    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
  1.2495 +    _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'
  1.2496    ;;
  1.2497 -  linux*)
  1.2498 +  linux* | k*bsd*-gnu)
  1.2499      _LT_AC_TAGVAR(link_all_deplibs, $1)=no
  1.2500    ;;
  1.2501    *)
  1.2502 @@ -5029,7 +5385,8 @@
  1.2503    # rely on this symbol name, it's probably fine to never include it in
  1.2504    # preloaded symbol tables.
  1.2505    extract_expsyms_cmds=
  1.2506 -
  1.2507 +  # Just being paranoid about ensuring that cc_basename is set.
  1.2508 +  _LT_CC_BASENAME([$compiler])
  1.2509    case $host_os in
  1.2510    cygwin* | mingw* | pw32*)
  1.2511      # FIXME: the MSVC++ port hasn't been tested in a loooong time
  1.2512 @@ -5039,6 +5396,10 @@
  1.2513        with_gnu_ld=no
  1.2514      fi
  1.2515      ;;
  1.2516 +  interix*)
  1.2517 +    # we just hope/assume this is gcc and not c89 (= MSVC++)
  1.2518 +    with_gnu_ld=yes
  1.2519 +    ;;
  1.2520    openbsd*)
  1.2521      with_gnu_ld=no
  1.2522      ;;
  1.2523 @@ -5049,6 +5410,27 @@
  1.2524      # If archive_cmds runs LD, not CC, wlarc should be empty
  1.2525      wlarc='${wl}'
  1.2526  
  1.2527 +    # Set some defaults for GNU ld with shared library support. These
  1.2528 +    # are reset later if shared libraries are not supported. Putting them
  1.2529 +    # here allows them to be overridden if necessary.
  1.2530 +    runpath_var=LD_RUN_PATH
  1.2531 +    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  1.2532 +    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  1.2533 +    # ancient GNU ld didn't support --whole-archive et. al.
  1.2534 +    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  1.2535 +	_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  1.2536 +      else
  1.2537 +  	_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  1.2538 +    fi
  1.2539 +    supports_anon_versioning=no
  1.2540 +    case `$LD -v 2>/dev/null` in
  1.2541 +      *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
  1.2542 +      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  1.2543 +      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  1.2544 +      *\ 2.11.*) ;; # other 2.11 versions
  1.2545 +      *) supports_anon_versioning=yes ;;
  1.2546 +    esac
  1.2547 +
  1.2548      # See if GNU ld supports shared libraries.
  1.2549      case $host_os in
  1.2550      aix3* | aix4* | aix5*)
  1.2551 @@ -5099,10 +5481,10 @@
  1.2552        _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  1.2553        _LT_AC_TAGVAR(always_export_symbols, $1)=no
  1.2554        _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  1.2555 -      _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
  1.2556 +      _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'
  1.2557  
  1.2558        if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  1.2559 -        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  1.2560 +        _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'
  1.2561  	# If the export-symbols file already is a .def file (1st line
  1.2562  	# is EXPORTS), use it as is; otherwise, prepend...
  1.2563  	_LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  1.2564 @@ -5111,13 +5493,60 @@
  1.2565  	  echo EXPORTS > $output_objdir/$soname.def;
  1.2566  	  cat $export_symbols >> $output_objdir/$soname.def;
  1.2567  	fi~
  1.2568 -	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
  1.2569 +	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  1.2570        else
  1.2571 -	ld_shlibs=no
  1.2572 +	_LT_AC_TAGVAR(ld_shlibs, $1)=no
  1.2573        fi
  1.2574        ;;
  1.2575  
  1.2576 -    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
  1.2577 +    interix3*)
  1.2578 +      _LT_AC_TAGVAR(hardcode_direct, $1)=no
  1.2579 +      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  1.2580 +      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  1.2581 +      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  1.2582 +      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  1.2583 +      # Instead, shared libraries are loaded at an image base (0x10000000 by
  1.2584 +      # default) and relocated if they conflict, which is a slow very memory
  1.2585 +      # consuming and fragmenting process.  To avoid this, we pick a random,
  1.2586 +      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  1.2587 +      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
  1.2588 +      _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'
  1.2589 +      _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'
  1.2590 +      ;;
  1.2591 +
  1.2592 +    linux* | k*bsd*-gnu)
  1.2593 +      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  1.2594 +	tmp_addflag=
  1.2595 +	case $cc_basename,$host_cpu in
  1.2596 +	pgcc*)				# Portland Group C compiler
  1.2597 +	  _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'
  1.2598 +	  tmp_addflag=' $pic_flag'
  1.2599 +	  ;;
  1.2600 +	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
  1.2601 +	  _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'
  1.2602 +	  tmp_addflag=' $pic_flag -Mnomain' ;;
  1.2603 +	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
  1.2604 +	  tmp_addflag=' -i_dynamic' ;;
  1.2605 +	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
  1.2606 +	  tmp_addflag=' -i_dynamic -nofor_main' ;;
  1.2607 +	ifc* | ifort*)			# Intel Fortran compiler
  1.2608 +	  tmp_addflag=' -nofor_main' ;;
  1.2609 +	esac
  1.2610 +	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  1.2611 +
  1.2612 +	if test $supports_anon_versioning = yes; then
  1.2613 +	  _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
  1.2614 +  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  1.2615 +  $echo "local: *; };" >> $output_objdir/$libname.ver~
  1.2616 +	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  1.2617 +	fi
  1.2618 +	_LT_AC_TAGVAR(link_all_deplibs, $1)=no
  1.2619 +      else
  1.2620 +	_LT_AC_TAGVAR(ld_shlibs, $1)=no
  1.2621 +      fi
  1.2622 +      ;;
  1.2623 +
  1.2624 +    netbsd* | netbsdelf*-gnu)
  1.2625        if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  1.2626  	_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  1.2627  	wlarc=
  1.2628 @@ -5127,7 +5556,7 @@
  1.2629        fi
  1.2630        ;;
  1.2631  
  1.2632 -    solaris* | sysv5*)
  1.2633 +    solaris*)
  1.2634        if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  1.2635  	_LT_AC_TAGVAR(ld_shlibs, $1)=no
  1.2636  	cat <<EOF 1>&2
  1.2637 @@ -5148,6 +5577,33 @@
  1.2638        fi
  1.2639        ;;
  1.2640  
  1.2641 +    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  1.2642 +      case `$LD -v 2>&1` in
  1.2643 +        *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) 
  1.2644 +	_LT_AC_TAGVAR(ld_shlibs, $1)=no
  1.2645 +	cat <<_LT_EOF 1>&2
  1.2646 +
  1.2647 +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  1.2648 +*** reliably create shared libraries on SCO systems.  Therefore, libtool
  1.2649 +*** is disabling shared libraries support.  We urge you to upgrade GNU
  1.2650 +*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
  1.2651 +*** your PATH or compiler configuration so that the native linker is
  1.2652 +*** used, and then restart.
  1.2653 +
  1.2654 +_LT_EOF
  1.2655 +	;;
  1.2656 +	*)
  1.2657 +	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  1.2658 +	    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  1.2659 +	    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  1.2660 +	    _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'
  1.2661 +	  else
  1.2662 +	    _LT_AC_TAGVAR(ld_shlibs, $1)=no
  1.2663 +	  fi
  1.2664 +	;;
  1.2665 +      esac
  1.2666 +      ;;
  1.2667 +
  1.2668      sunos4*)
  1.2669        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  1.2670        wlarc=
  1.2671 @@ -5155,32 +5611,6 @@
  1.2672        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  1.2673        ;;
  1.2674  
  1.2675 -  linux*)
  1.2676 -    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  1.2677 -        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  1.2678 -	_LT_AC_TAGVAR(archive_cmds, $1)="$tmp_archive_cmds"
  1.2679 -      supports_anon_versioning=no
  1.2680 -      case `$LD -v 2>/dev/null` in
  1.2681 -        *\ [01].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
  1.2682 -        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  1.2683 -        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  1.2684 -        *\ 2.11.*) ;; # other 2.11 versions
  1.2685 -        *) supports_anon_versioning=yes ;;
  1.2686 -      esac
  1.2687 -      if test $supports_anon_versioning = yes; then
  1.2688 -        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
  1.2689 -cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  1.2690 -$echo "local: *; };" >> $output_objdir/$libname.ver~
  1.2691 -        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  1.2692 -      else
  1.2693 -        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="$tmp_archive_cmds"
  1.2694 -      fi
  1.2695 -      _LT_AC_TAGVAR(link_all_deplibs, $1)=no
  1.2696 -    else
  1.2697 -      _LT_AC_TAGVAR(ld_shlibs, $1)=no
  1.2698 -    fi
  1.2699 -    ;;
  1.2700 -
  1.2701      *)
  1.2702        if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  1.2703  	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  1.2704 @@ -5191,16 +5621,11 @@
  1.2705        ;;
  1.2706      esac
  1.2707  
  1.2708 -    if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = yes; then
  1.2709 -      runpath_var=LD_RUN_PATH
  1.2710 -      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  1.2711 -      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  1.2712 -      # ancient GNU ld didn't support --whole-archive et. al.
  1.2713 -      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  1.2714 - 	_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  1.2715 -      else
  1.2716 -  	_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  1.2717 -      fi
  1.2718 +    if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
  1.2719 +      runpath_var=
  1.2720 +      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  1.2721 +      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  1.2722 +      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  1.2723      fi
  1.2724    else
  1.2725      # PORTME fill in a description of your system's linker (not GNU ld)
  1.2726 @@ -5212,7 +5637,7 @@
  1.2727        # Note: this linker hardcodes the directories in LIBPATH if there
  1.2728        # are no directories specified by -L.
  1.2729        _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  1.2730 -      if test "$GCC" = yes && test -z "$link_static_flag"; then
  1.2731 +      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  1.2732  	# Neither direct hardcoding nor static linking is supported with a
  1.2733  	# broken collect2.
  1.2734  	_LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
  1.2735 @@ -5246,6 +5671,7 @@
  1.2736    	    break
  1.2737    	  fi
  1.2738  	  done
  1.2739 +	  ;;
  1.2740  	esac
  1.2741  
  1.2742  	exp_sym_flag='-bexport'
  1.2743 @@ -5264,7 +5690,7 @@
  1.2744        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  1.2745  
  1.2746        if test "$GCC" = yes; then
  1.2747 -	case $host_os in aix4.[012]|aix4.[012].*)
  1.2748 +	case $host_os in aix4.[[012]]|aix4.[[012]].*)
  1.2749  	# We only want to do this on AIX 4.2 and lower, the check
  1.2750  	# below for broken collect2 doesn't work under 4.3+
  1.2751  	  collect2name=`${CC} -print-prog-name=collect2`
  1.2752 @@ -5283,8 +5709,12 @@
  1.2753    	  _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  1.2754    	  _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  1.2755  	  fi
  1.2756 +	  ;;
  1.2757  	esac
  1.2758  	shared_flag='-shared'
  1.2759 +	if test "$aix_use_runtimelinking" = yes; then
  1.2760 +	  shared_flag="$shared_flag "'${wl}-G'
  1.2761 +	fi
  1.2762        else
  1.2763  	# not using gcc
  1.2764  	if test "$host_cpu" = ia64; then
  1.2765 @@ -5292,11 +5722,11 @@
  1.2766    	# chokes on -Wl,-G. The following line is correct:
  1.2767  	  shared_flag='-G'
  1.2768  	else
  1.2769 -  	if test "$aix_use_runtimelinking" = yes; then
  1.2770 +	  if test "$aix_use_runtimelinking" = yes; then
  1.2771  	    shared_flag='${wl}-G'
  1.2772  	  else
  1.2773  	    shared_flag='${wl}-bM:SRE'
  1.2774 -  	fi
  1.2775 +	  fi
  1.2776  	fi
  1.2777        fi
  1.2778  
  1.2779 @@ -5310,12 +5740,12 @@
  1.2780         # Determine the default libpath from the value encoded in an empty executable.
  1.2781         _LT_AC_SYS_LIBPATH_AIX
  1.2782         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  1.2783 -	_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"
  1.2784 +	_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"
  1.2785         else
  1.2786  	if test "$host_cpu" = ia64; then
  1.2787  	  _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  1.2788  	  _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  1.2789 -	  _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"
  1.2790 +	  _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"
  1.2791  	else
  1.2792  	 # Determine the default libpath from the value encoded in an empty executable.
  1.2793  	 _LT_AC_SYS_LIBPATH_AIX
  1.2794 @@ -5324,13 +5754,11 @@
  1.2795  	  # -berok will link without error, but may produce a broken library.
  1.2796  	  _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  1.2797  	  _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  1.2798 -	  # -bexpall does not export symbols beginning with underscore (_)
  1.2799 -	  _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  1.2800  	  # Exported symbols can be pulled into shared objects from archives
  1.2801 -	  _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
  1.2802 +	  _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  1.2803  	  _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  1.2804 -	  # This is similar to how AIX traditionally builds it's shared libraries.
  1.2805 -	  _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'
  1.2806 +	  # This is similar to how AIX traditionally builds its shared libraries.
  1.2807 +	  _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'
  1.2808  	fi
  1.2809        fi
  1.2810        ;;
  1.2811 @@ -5343,7 +5771,7 @@
  1.2812        _LT_AC_TAGVAR(ld_shlibs, $1)=no
  1.2813        ;;
  1.2814  
  1.2815 -    bsdi4*)
  1.2816 +    bsdi[[45]]*)
  1.2817        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
  1.2818        ;;
  1.2819  
  1.2820 @@ -5364,57 +5792,57 @@
  1.2821        _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
  1.2822        # FIXME: Should let the user specify the lib program.
  1.2823        _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
  1.2824 -      fix_srcfile_path='`cygpath -w "$srcfile"`'
  1.2825 +      _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
  1.2826        _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  1.2827        ;;
  1.2828  
  1.2829      darwin* | rhapsody*)
  1.2830 -    if test "$GXX" = yes ; then
  1.2831 +      case $host_os in
  1.2832 +        rhapsody* | darwin1.[[012]])
  1.2833 +         _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
  1.2834 +         ;;
  1.2835 +       *) # Darwin 1.3 on
  1.2836 +         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  1.2837 +           _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  1.2838 +         else
  1.2839 +           case ${MACOSX_DEPLOYMENT_TARGET} in
  1.2840 +             10.[[012]])
  1.2841 +               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  1.2842 +               ;;
  1.2843 +             10.*)
  1.2844 +               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
  1.2845 +               ;;
  1.2846 +           esac
  1.2847 +         fi
  1.2848 +         ;;
  1.2849 +      esac
  1.2850        _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  1.2851 -      case "$host_os" in
  1.2852 -      rhapsody* | darwin1.[[012]])
  1.2853 -	_LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
  1.2854 -	;;
  1.2855 -      *) # Darwin 1.3 on
  1.2856 -      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  1.2857 -      	_LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
  1.2858 -      else
  1.2859 -        case ${MACOSX_DEPLOYMENT_TARGET} in
  1.2860 -          10.[[012]])
  1.2861 -            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
  1.2862 -            ;;
  1.2863 -          10.*)
  1.2864 -            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
  1.2865 -            ;;
  1.2866 -        esac
  1.2867 -      fi
  1.2868 -	;;
  1.2869 -      esac
  1.2870 -    	lt_int_apple_cc_single_mod=no
  1.2871 -    	output_verbose_link_cmd='echo'
  1.2872 -    	if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
  1.2873 -    	  lt_int_apple_cc_single_mod=yes
  1.2874 -    	fi
  1.2875 -    	if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  1.2876 -    	  _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  1.2877 -    	else
  1.2878 -        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  1.2879 -      fi
  1.2880 -      _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  1.2881 -      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  1.2882 -        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  1.2883 -          _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}'
  1.2884 -        else
  1.2885 -          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  1.2886 -        fi
  1.2887 -          _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}'
  1.2888        _LT_AC_TAGVAR(hardcode_direct, $1)=no
  1.2889        _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
  1.2890        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  1.2891 -      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
  1.2892 +      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
  1.2893        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  1.2894 +    if test "$GCC" = yes ; then
  1.2895 +    	output_verbose_link_cmd='echo'
  1.2896 +        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  1.2897 +      _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  1.2898 +      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  1.2899 +      _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}'
  1.2900 +      _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}'
  1.2901      else
  1.2902 -      _LT_AC_TAGVAR(ld_shlibs, $1)=no
  1.2903 +      case $cc_basename in
  1.2904 +        xlc*)
  1.2905 +         output_verbose_link_cmd='echo'
  1.2906 +         _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'
  1.2907 +         _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  1.2908 +          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  1.2909 +         _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}'
  1.2910 +          _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}'
  1.2911 +          ;;
  1.2912 +       *)
  1.2913 +         _LT_AC_TAGVAR(ld_shlibs, $1)=no
  1.2914 +          ;;
  1.2915 +      esac
  1.2916      fi
  1.2917        ;;
  1.2918  
  1.2919 @@ -5448,7 +5876,7 @@
  1.2920        ;;
  1.2921  
  1.2922      # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  1.2923 -    freebsd* | kfreebsd*-gnu)
  1.2924 +    freebsd* | dragonfly*)
  1.2925        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  1.2926        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  1.2927        _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  1.2928 @@ -5471,47 +5899,62 @@
  1.2929        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  1.2930        ;;
  1.2931  
  1.2932 -    hpux10* | hpux11*)
  1.2933 +    hpux10*)
  1.2934        if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  1.2935 -	case "$host_cpu" in
  1.2936 -	hppa*64*|ia64*)
  1.2937 +	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  1.2938 +      else
  1.2939 +	_LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  1.2940 +      fi
  1.2941 +      if test "$with_gnu_ld" = no; then
  1.2942 +	_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  1.2943 +	_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  1.2944 +
  1.2945 +	_LT_AC_TAGVAR(hardcode_direct, $1)=yes
  1.2946 +	_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  1.2947 +
  1.2948 +	# hardcode_minus_L: Not really in the search PATH,
  1.2949 +	# but as the default location of the library.
  1.2950 +	_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  1.2951 +      fi
  1.2952 +      ;;
  1.2953 +
  1.2954 +    hpux11*)
  1.2955 +      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  1.2956 +	case $host_cpu in
  1.2957 +	hppa*64*)
  1.2958  	  _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  1.2959  	  ;;
  1.2960 +	ia64*)
  1.2961 +	  _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  1.2962 +	  ;;
  1.2963  	*)
  1.2964  	  _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  1.2965  	  ;;
  1.2966  	esac
  1.2967        else
  1.2968 -	case "$host_cpu" in
  1.2969 -	hppa*64*|ia64*)
  1.2970 -	  _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
  1.2971 +	case $host_cpu in
  1.2972 +	hppa*64*)
  1.2973 +	  _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  1.2974 +	  ;;
  1.2975 +	ia64*)
  1.2976 +	  _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  1.2977  	  ;;
  1.2978  	*)
  1.2979 -	  _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  1.2980 +	  _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  1.2981  	  ;;
  1.2982  	esac
  1.2983        fi
  1.2984        if test "$with_gnu_ld" = no; then
  1.2985 -	case "$host_cpu" in
  1.2986 -	hppa*64*)
  1.2987 -	  _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  1.2988 +	_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  1.2989 +	_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  1.2990 +
  1.2991 +	case $host_cpu in
  1.2992 +	hppa*64*|ia64*)
  1.2993  	  _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
  1.2994 -	  _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  1.2995  	  _LT_AC_TAGVAR(hardcode_direct, $1)=no
  1.2996  	  _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  1.2997  	  ;;
  1.2998 -	ia64*)
  1.2999 -	  _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  1.3000 -	  _LT_AC_TAGVAR(hardcode_direct, $1)=no
  1.3001 -	  _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  1.3002 -
  1.3003 -	  # hardcode_minus_L: Not really in the search PATH,
  1.3004 -	  # but as the default location of the library.
  1.3005 -	  _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  1.3006 -	  ;;
  1.3007  	*)
  1.3008 -	  _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  1.3009 -	  _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  1.3010  	  _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  1.3011  	  _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  1.3012  
  1.3013 @@ -5535,7 +5978,7 @@
  1.3014        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  1.3015        ;;
  1.3016  
  1.3017 -    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
  1.3018 +    netbsd* | netbsdelf*-gnu)
  1.3019        if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  1.3020  	_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
  1.3021        else
  1.3022 @@ -5559,6 +6002,7 @@
  1.3023        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  1.3024        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  1.3025  	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  1.3026 +	_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  1.3027  	_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  1.3028  	_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  1.3029        else
  1.3030 @@ -5604,7 +6048,7 @@
  1.3031  	_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  1.3032  	_LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  1.3033  	_LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  1.3034 -	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
  1.3035 +	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
  1.3036  
  1.3037  	# Both c and cxx compiler support -rpath directly
  1.3038  	_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  1.3039 @@ -5612,21 +6056,15 @@
  1.3040        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  1.3041        ;;
  1.3042  
  1.3043 -    sco3.2v5*)
  1.3044 -      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  1.3045 -      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  1.3046 -      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  1.3047 -      runpath_var=LD_RUN_PATH
  1.3048 -      hardcode_runpath_var=yes
  1.3049 -      ;;
  1.3050 -
  1.3051      solaris*)
  1.3052        _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
  1.3053        if test "$GCC" = yes; then
  1.3054 +	wlarc='${wl}'
  1.3055  	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  1.3056  	_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  1.3057  	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  1.3058        else
  1.3059 +	wlarc=''
  1.3060  	_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  1.3061  	_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  1.3062    	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  1.3063 @@ -5635,8 +6073,18 @@
  1.3064        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  1.3065        case $host_os in
  1.3066        solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  1.3067 -      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
  1.3068 -	_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
  1.3069 +      *)
  1.3070 + 	# The compiler driver will combine linker options so we
  1.3071 + 	# cannot just pass the convience library names through
  1.3072 + 	# without $wl, iff we do not link with $LD.
  1.3073 + 	# Luckily, gcc supports the same syntax we need for Sun Studio.
  1.3074 + 	# Supported since Solaris 2.6 (maybe 2.5.1?)
  1.3075 + 	case $wlarc in
  1.3076 + 	'')
  1.3077 + 	  _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
  1.3078 + 	*)
  1.3079 + 	  _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' ;;
  1.3080 + 	esac ;;
  1.3081        esac
  1.3082        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  1.3083        ;;
  1.3084 @@ -5693,36 +6141,45 @@
  1.3085        fi
  1.3086        ;;
  1.3087  
  1.3088 -    sysv4.2uw2*)
  1.3089 -      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  1.3090 -      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  1.3091 -      _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
  1.3092 -      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  1.3093 -      hardcode_runpath_var=yes
  1.3094 -      runpath_var=LD_RUN_PATH
  1.3095 -      ;;
  1.3096 -
  1.3097 -   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[[78]]* | unixware7*)
  1.3098 -      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text'
  1.3099 -      if test "$GCC" = yes; then
  1.3100 -	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  1.3101 -      else
  1.3102 -	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  1.3103 -      fi
  1.3104 -      runpath_var='LD_RUN_PATH'
  1.3105 -      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  1.3106 -      ;;
  1.3107 -
  1.3108 -    sysv5*)
  1.3109 -      _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
  1.3110 -      # $CC -shared without GNU ld will not create a library from C++
  1.3111 -      # object files and a static libstdc++, better avoid it by now
  1.3112 -      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  1.3113 -      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  1.3114 -  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  1.3115 -      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  1.3116 +    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7*)
  1.3117 +      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  1.3118 +      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  1.3119        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  1.3120        runpath_var='LD_RUN_PATH'
  1.3121 +
  1.3122 +      if test "$GCC" = yes; then
  1.3123 +	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  1.3124 +	_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  1.3125 +      else
  1.3126 +	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  1.3127 +	_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  1.3128 +      fi
  1.3129 +      ;;
  1.3130 +
  1.3131 +    sysv5* | sco3.2v5* | sco5v6*)
  1.3132 +      # Note: We can NOT use -z defs as we might desire, because we do not
  1.3133 +      # link with -lc, and that would cause any symbols used from libc to
  1.3134 +      # always be unresolved, which means just about no library would
  1.3135 +      # ever link correctly.  If we're not using GNU ld we use -z text
  1.3136 +      # though, which does catch some bad symbols but isn't as heavy-handed
  1.3137 +      # as -z defs.
  1.3138 +      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  1.3139 +      _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  1.3140 +      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  1.3141 +      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  1.3142 +      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  1.3143 +      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
  1.3144 +      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  1.3145 +      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  1.3146 +      runpath_var='LD_RUN_PATH'
  1.3147 +
  1.3148 +      if test "$GCC" = yes; then
  1.3149 +	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  1.3150 +	_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'
  1.3151 +      else
  1.3152 +	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  1.3153 +	_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'
  1.3154 +      fi
  1.3155        ;;
  1.3156  
  1.3157      uts4*)
  1.3158 @@ -5740,11 +6197,6 @@
  1.3159  AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
  1.3160  test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  1.3161  
  1.3162 -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  1.3163 -if test "$GCC" = yes; then
  1.3164 -  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  1.3165 -fi
  1.3166 -
  1.3167  #
  1.3168  # Do we need to explicitly link libc?
  1.3169  #
  1.3170 @@ -5772,6 +6224,7 @@
  1.3171          libobjs=conftest.$ac_objext
  1.3172          deplibs=
  1.3173          wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
  1.3174 +	pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
  1.3175          compiler_flags=-v
  1.3176          linker_flags=-v
  1.3177          verstring=
  1.3178 @@ -5897,7 +6350,7 @@
  1.3179  # Add /usr/xpg4/bin/sed as it is typically found on Solaris
  1.3180  # along with /bin/sed that truncates output.
  1.3181  for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  1.3182 -  test ! -f $lt_ac_sed && break
  1.3183 +  test ! -f $lt_ac_sed && continue
  1.3184    cat /dev/null > conftest.in
  1.3185    lt_ac_count=0
  1.3186    echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  1.3187 @@ -5922,8 +6375,8 @@
  1.3188      fi
  1.3189    done
  1.3190  done
  1.3191 +])
  1.3192  SED=$lt_cv_path_SED
  1.3193 -])
  1.3194  AC_MSG_RESULT([$SED])
  1.3195  ])
  1.3196  
  1.3197 @@ -5960,7 +6413,7 @@
  1.3198  	AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
  1.3199  fi
  1.3200  if test -n "$PKG_CONFIG"; then
  1.3201 -	_pkg_min_version=m4_ifval([$1], [$1], [0.9.0])
  1.3202 +	_pkg_min_version=m4_default([$1], [0.9.0])
  1.3203  	AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
  1.3204  	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  1.3205  		AC_MSG_RESULT([yes])
  1.3206 @@ -5996,14 +6449,30 @@
  1.3207  # ---------------------------------------------
  1.3208  m4_define([_PKG_CONFIG],
  1.3209  [if test -n "$PKG_CONFIG"; then
  1.3210 +    if test -n "$$1"; then
  1.3211 +        pkg_cv_[]$1="$$1"
  1.3212 +    else
  1.3213          PKG_CHECK_EXISTS([$3],
  1.3214                           [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
  1.3215  			 [pkg_failed=yes])
  1.3216 +    fi
  1.3217  else
  1.3218  	pkg_failed=untried
  1.3219  fi[]dnl
  1.3220  ])# _PKG_CONFIG
  1.3221  
  1.3222 +# _PKG_SHORT_ERRORS_SUPPORTED
  1.3223 +# -----------------------------
  1.3224 +AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
  1.3225 +[AC_REQUIRE([PKG_PROG_PKG_CONFIG])
  1.3226 +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  1.3227 +        _pkg_short_errors_supported=yes
  1.3228 +else
  1.3229 +        _pkg_short_errors_supported=no
  1.3230 +fi[]dnl
  1.3231 +])# _PKG_SHORT_ERRORS_SUPPORTED
  1.3232 +
  1.3233 +
  1.3234  # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
  1.3235  # [ACTION-IF-NOT-FOUND])
  1.3236  #
  1.3237 @@ -6025,29 +6494,39 @@
  1.3238  _PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
  1.3239  _PKG_CONFIG([$1][_LIBS], [libs], [$2])
  1.3240  
  1.3241 +m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
  1.3242 +and $1[]_LIBS to avoid the need to call pkg-config.
  1.3243 +See the pkg-config man page for more details.])
  1.3244 +
  1.3245  if test $pkg_failed = yes; then
  1.3246 -	$1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
  1.3247 +        _PKG_SHORT_ERRORS_SUPPORTED
  1.3248 +        if test $_pkg_short_errors_supported = yes; then
  1.3249 +	        $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$2"`
  1.3250 +        else 
  1.3251 +	        $1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
  1.3252 +        fi
  1.3253  	# Put the nasty error message in config.log where it belongs
  1.3254 -	echo "$$1[]_PKG_ERRORS" 1>&AS_MESSAGE_LOG_FD
  1.3255 +	echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
  1.3256  
  1.3257  	ifelse([$4], , [AC_MSG_ERROR(dnl
  1.3258 -[Package requirements ($2) were not met.
  1.3259 +[Package requirements ($2) were not met:
  1.3260 +
  1.3261 +$$1_PKG_ERRORS
  1.3262 +
  1.3263  Consider adjusting the PKG_CONFIG_PATH environment variable if you
  1.3264  installed software in a non-standard prefix.
  1.3265  
  1.3266 -Alternatively you may set the $1_CFLAGS and $1_LIBS environment variables
  1.3267 -to avoid the need to call pkg-config.  See the pkg-config man page for
  1.3268 -more details.])],
  1.3269 -		[$4])
  1.3270 +_PKG_TEXT
  1.3271 +])],
  1.3272 +		[AC_MSG_RESULT([no])
  1.3273 +                $4])
  1.3274  elif test $pkg_failed = untried; then
  1.3275  	ifelse([$4], , [AC_MSG_FAILURE(dnl
  1.3276  [The pkg-config script could not be found or is too old.  Make sure it
  1.3277  is in your PATH or set the PKG_CONFIG environment variable to the full
  1.3278  path to pkg-config.
  1.3279  
  1.3280 -Alternatively you may set the $1_CFLAGS and $1_LIBS environment variables
  1.3281 -to avoid the need to call pkg-config.  See the pkg-config man page for
  1.3282 -more details.
  1.3283 +_PKG_TEXT
  1.3284  
  1.3285  To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.])],
  1.3286  		[$4])
  1.3287 @@ -6076,7 +6555,7 @@
  1.3288  # Call AM_AUTOMAKE_VERSION so it can be traced.
  1.3289  # This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
  1.3290  AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
  1.3291 -	 [AM_AUTOMAKE_VERSION([1.9.5])])
  1.3292 +	 [AM_AUTOMAKE_VERSION([1.9.6])])
  1.3293  
  1.3294  # AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
  1.3295