acinclude.m4
changeset 947 3bb035750537
parent 939 c7c04f811994
child 948 ac488ad4ef1d
     1.1 --- a/acinclude.m4	Sat Aug 21 14:54:49 2004 +0000
     1.2 +++ b/acinclude.m4	Sat Aug 21 20:35:50 2004 +0000
     1.3 @@ -334,8 +334,9 @@
     1.4    rm -f conf.esdtest
     1.5  ])
     1.6  
     1.7 +# Based on libtool-1.5.8
     1.8  # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
     1.9 -## Copyright 1996, 1997, 1998, 1999, 2000, 2001
    1.10 +## Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004
    1.11  ## Free Software Foundation, Inc.
    1.12  ## Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
    1.13  ##
    1.14 @@ -536,6 +537,8 @@
    1.15    old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
    1.16  fi
    1.17  
    1.18 +cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
    1.19 +
    1.20  # Only perform the check for file, if the check method requires it
    1.21  case $deplibs_check_method in
    1.22  file_magic*)
    1.23 @@ -653,7 +656,7 @@
    1.24  
    1.25  # The HP-UX ksh and POSIX shell print the target directory to stdout
    1.26  # if CDPATH is set.
    1.27 -if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
    1.28 +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
    1.29  
    1.30  if test -z "$ECHO"; then
    1.31  if test "X${echo_test_string+set}" != Xset; then
    1.32 @@ -836,7 +839,7 @@
    1.33          x86_64-*linux*)
    1.34            LD="${LD-ld} -m elf_i386"
    1.35            ;;
    1.36 -        ppc64-*linux*)
    1.37 +        ppc64-*linux*|powerpc64-*linux*)
    1.38            LD="${LD-ld} -m elf32ppclinux"
    1.39            ;;
    1.40          s390x-*linux*)
    1.41 @@ -900,7 +903,8 @@
    1.42  # ----------------------------------------------------------------
    1.43  # Check whether the given compiler option works
    1.44  AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
    1.45 -[AC_CACHE_CHECK([$1], [$2],
    1.46 +[AC_REQUIRE([LT_AC_PROG_SED])
    1.47 +AC_CACHE_CHECK([$1], [$2],
    1.48    [$2=no
    1.49    ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
    1.50     printf "$lt_simple_compile_test_code" > conftest.$ac_ext
    1.51 @@ -976,7 +980,7 @@
    1.52  AC_MSG_CHECKING([the maximum length of command line arguments])
    1.53  AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
    1.54    i=0
    1.55 -  testring="ABCD"
    1.56 +  teststring="ABCD"
    1.57  
    1.58    case $build_os in
    1.59    msdosdjgpp*)
    1.60 @@ -1005,20 +1009,40 @@
    1.61      lt_cv_sys_max_cmd_len=8192;
    1.62      ;;
    1.63  
    1.64 +  amigaos*)
    1.65 +    # On AmigaOS with pdksh, this test takes hours, literally.
    1.66 +    # So we just punt and use a minimum line length of 8192.
    1.67 +    lt_cv_sys_max_cmd_len=8192;
    1.68 +    ;;
    1.69 +
    1.70 +  netbsd* | freebsd* | openbsd* | darwin* )
    1.71 +    # This has been around since 386BSD, at least.  Likely further.
    1.72 +    if test -x /sbin/sysctl; then
    1.73 +      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
    1.74 +    elif test -x /usr/sbin/sysctl; then
    1.75 +      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
    1.76 +    else
    1.77 +      lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
    1.78 +    fi
    1.79 +    # And add a safety zone
    1.80 +    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
    1.81 +    ;;
    1.82 +
    1.83   *)
    1.84      # If test is not a shell built-in, we'll probably end up computing a
    1.85      # maximum length that is only half of the actual maximum length, but
    1.86      # we can't tell.
    1.87 -    while (test "X"`$CONFIG_SHELL [$]0 --fallback-echo "X$testring" 2>/dev/null` \
    1.88 -	       = "XX$testring") >/dev/null 2>&1 &&
    1.89 -	    new_result=`expr "X$testring" : ".*" 2>&1` &&
    1.90 +    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
    1.91 +    while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
    1.92 +	       = "XX$teststring") >/dev/null 2>&1 &&
    1.93 +	    new_result=`expr "X$teststring" : ".*" 2>&1` &&
    1.94  	    lt_cv_sys_max_cmd_len=$new_result &&
    1.95  	    test $i != 17 # 1/2 MB should be enough
    1.96      do
    1.97        i=`expr $i + 1`
    1.98 -      testring=$testring$testring
    1.99 +      teststring=$teststring$teststring
   1.100      done
   1.101 -    testring=
   1.102 +    teststring=
   1.103      # Add a significant safety factor because C++ compilers can tack on massive
   1.104      # amounts of additional arguments before passing them to the linker.
   1.105      # It appears as though 1/2 is a usable value.
   1.106 @@ -1168,7 +1192,7 @@
   1.107      lt_cv_dlopen_self=yes
   1.108      ])
   1.109     ;;
   1.110 -    
   1.111 +
   1.112    *)
   1.113      AC_CHECK_FUNC([shl_load],
   1.114  	  [lt_cv_dlopen="shl_load"],
   1.115 @@ -1257,13 +1281,6 @@
   1.116     mkdir out
   1.117     printf "$lt_simple_compile_test_code" > conftest.$ac_ext
   1.118  
   1.119 -   # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
   1.120 -   # that will create temporary files in the current directory regardless of
   1.121 -   # the output directory.  Thus, making CWD read-only will cause this test
   1.122 -   # to fail, enabling locking or at least warning the user not to do parallel
   1.123 -   # builds.
   1.124 -   chmod -w .
   1.125 -
   1.126     lt_compiler_flag="-o out/conftest2.$ac_objext"
   1.127     # Insert the option either (1) after the last *FLAGS variable, or
   1.128     # (2) before a word containing "conftest.", or (3) at the end.
   1.129 @@ -1287,8 +1304,11 @@
   1.130       fi
   1.131     fi
   1.132     chmod u+w .
   1.133 -   $rm conftest* out/*
   1.134 -   rmdir out
   1.135 +   $rm conftest*
   1.136 +   # SGI C++ compiler will create directory out/ii_files/ for
   1.137 +   # template instantiation
   1.138 +   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
   1.139 +   $rm out/* && rmdir out
   1.140     cd ..
   1.141     rmdir conftest
   1.142     $rm conftest*
   1.143 @@ -1347,8 +1367,8 @@
   1.144  [AC_MSG_CHECKING([how to hardcode library paths into programs])
   1.145  _LT_AC_TAGVAR(hardcode_action, $1)=
   1.146  if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
   1.147 -   test -n "$_LT_AC_TAGVAR(runpath_var $1)" || \
   1.148 -   test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)"="Xyes" ; then
   1.149 +   test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
   1.150 +   test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
   1.151  
   1.152    # We can hardcode non-existant directories.
   1.153    if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
   1.154 @@ -1405,7 +1425,7 @@
   1.155     *)
   1.156    AC_MSG_RESULT([no])
   1.157      ;;
   1.158 -  esac  
   1.159 +  esac
   1.160  fi
   1.161  ])# AC_LIBTOOL_SYS_LIB_STRIP
   1.162  
   1.163 @@ -1418,7 +1438,7 @@
   1.164  library_names_spec=
   1.165  libname_spec='lib$name'
   1.166  soname_spec=
   1.167 -shrext=".so"
   1.168 +shrext_cmds=".so"
   1.169  postinstall_cmds=
   1.170  postuninstall_cmds=
   1.171  finish_cmds=
   1.172 @@ -1506,7 +1526,7 @@
   1.173  amigaos*)
   1.174    library_names_spec='$libname.ixlibrary $libname.a'
   1.175    # Create ${libname}_ixlibrary.a entries in /sys/libs.
   1.176 -  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
   1.177 +  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
   1.178    ;;
   1.179  
   1.180  beos*)
   1.181 @@ -1515,7 +1535,7 @@
   1.182    shlibpath_var=LIBRARY_PATH
   1.183    ;;
   1.184  
   1.185 -bsdi4*)
   1.186 +bsdi[[45]]*)
   1.187    version_type=linux
   1.188    need_version=no
   1.189    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   1.190 @@ -1531,7 +1551,7 @@
   1.191  
   1.192  cygwin* | mingw* | pw32*)
   1.193    version_type=windows
   1.194 -  shrext=".dll"
   1.195 +  shrext_cmds=".dll"
   1.196    need_version=no
   1.197    need_lib_prefix=no
   1.198  
   1.199 @@ -1594,17 +1614,16 @@
   1.200    version_type=darwin
   1.201    need_lib_prefix=no
   1.202    need_version=no
   1.203 -  # FIXME: Relying on posixy $() will cause problems for
   1.204 -  #        cross-compilation, but unfortunately the echo tests do not
   1.205 -  #        yet detect zsh echo's removal of \ escapes.
   1.206    library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
   1.207    soname_spec='${libname}${release}${major}$shared_ext'
   1.208    shlibpath_overrides_runpath=yes
   1.209    shlibpath_var=DYLD_LIBRARY_PATH
   1.210 -  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
   1.211 +  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
   1.212    # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
   1.213 -  if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then 
   1.214 -  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.215 +  if test "$GCC" = yes; then
   1.216 +    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.217 +  else
   1.218 +    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
   1.219    fi
   1.220    sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
   1.221    ;;
   1.222 @@ -1622,6 +1641,18 @@
   1.223    dynamic_linker=no
   1.224    ;;
   1.225  
   1.226 +kfreebsd*-gnu)
   1.227 +  version_type=linux
   1.228 +  need_lib_prefix=no
   1.229 +  need_version=no
   1.230 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
   1.231 +  soname_spec='${libname}${release}${shared_ext}$major'
   1.232 +  shlibpath_var=LD_LIBRARY_PATH
   1.233 +  shlibpath_overrides_runpath=no
   1.234 +  hardcode_into_libs=yes
   1.235 +  dynamic_linker='GNU ld.so'
   1.236 +  ;;
   1.237 +
   1.238  freebsd*)
   1.239    objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
   1.240    version_type=freebsd-$objformat
   1.241 @@ -1670,7 +1701,7 @@
   1.242    need_version=no
   1.243    case "$host_cpu" in
   1.244    ia64*)
   1.245 -    shrext='.so'
   1.246 +    shrext_cmds='.so'
   1.247      hardcode_into_libs=yes
   1.248      dynamic_linker="$host_os dld.so"
   1.249      shlibpath_var=LD_LIBRARY_PATH
   1.250 @@ -1685,7 +1716,7 @@
   1.251      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
   1.252      ;;
   1.253     hppa*64*)
   1.254 -     shrext='.sl'
   1.255 +     shrext_cmds='.sl'
   1.256       hardcode_into_libs=yes
   1.257       dynamic_linker="$host_os dld.sl"
   1.258       shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
   1.259 @@ -1696,7 +1727,7 @@
   1.260       sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
   1.261       ;;
   1.262     *)
   1.263 -    shrext='.sl'
   1.264 +    shrext_cmds='.sl'
   1.265      dynamic_linker="$host_os dld.sl"
   1.266      shlibpath_var=SHLIB_PATH
   1.267      shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
   1.268 @@ -1765,6 +1796,12 @@
   1.269    # before this can be enabled.
   1.270    hardcode_into_libs=yes
   1.271  
   1.272 +  # Append ld.so.conf contents to the search path
   1.273 +  if test -f /etc/ld.so.conf; then
   1.274 +    lt_ld_extra=`$SED -e 's/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g' /etc/ld.so.conf | tr '\n' ' '`
   1.275 +    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
   1.276 +  fi
   1.277 +
   1.278    # We used to test for /lib/ld.so.1 and disable shared libraries on
   1.279    # powerpc, because MkLinux only supported shared libraries with the
   1.280    # GNU dynamic linker.  Since this was broken with cross compilers,
   1.281 @@ -1774,6 +1811,18 @@
   1.282    dynamic_linker='GNU/Linux ld.so'
   1.283    ;;
   1.284  
   1.285 +knetbsd*-gnu)
   1.286 +  version_type=linux
   1.287 +  need_lib_prefix=no
   1.288 +  need_version=no
   1.289 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
   1.290 +  soname_spec='${libname}${release}${shared_ext}$major'
   1.291 +  shlibpath_var=LD_LIBRARY_PATH
   1.292 +  shlibpath_overrides_runpath=no
   1.293 +  hardcode_into_libs=yes
   1.294 +  dynamic_linker='GNU ld.so'
   1.295 +  ;;
   1.296 +
   1.297  netbsd*)
   1.298    version_type=sunos
   1.299    need_lib_prefix=no
   1.300 @@ -1783,7 +1832,7 @@
   1.301      finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
   1.302      dynamic_linker='NetBSD (a.out) ld.so'
   1.303    else
   1.304 -    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
   1.305 +    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
   1.306      soname_spec='${libname}${release}${shared_ext}$major'
   1.307      dynamic_linker='NetBSD ld.elf_so'
   1.308    fi
   1.309 @@ -1799,16 +1848,14 @@
   1.310    shlibpath_overrides_runpath=yes
   1.311    ;;
   1.312  
   1.313 -*qnx* | *nto*)
   1.314 -  version_type=qnx
   1.315 +nto-qnx*)
   1.316 +  version_type=linux
   1.317    need_lib_prefix=no
   1.318    need_version=no
   1.319 -  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
   1.320 -  soname_spec='${libname}${release}.so$major'
   1.321 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   1.322 +  soname_spec='${libname}${release}${shared_ext}$major'
   1.323    shlibpath_var=LD_LIBRARY_PATH
   1.324 -  shlibpath_overrides_runpath=no
   1.325 -  hardcode_into_libs=yes
   1.326 -  dynamic_linker='ldqnx.so'
   1.327 +  shlibpath_overrides_runpath=yes
   1.328    ;;
   1.329  
   1.330  openbsd*)
   1.331 @@ -1834,7 +1881,7 @@
   1.332  
   1.333  os2*)
   1.334    libname_spec='$name'
   1.335 -  shrext=".dll"
   1.336 +  shrext_cmds=".dll"
   1.337    need_lib_prefix=no
   1.338    library_names_spec='$libname${shared_ext} $libname.a'
   1.339    dynamic_linker='OS/2 ld.exe'
   1.340 @@ -2270,7 +2317,7 @@
   1.341  
   1.342  # AC_PROG_LD
   1.343  # ----------
   1.344 -# find the path to the GNU or non-GNU linker
   1.345 +# find the pathname to the GNU or non-GNU linker
   1.346  AC_DEFUN([AC_PROG_LD],
   1.347  [AC_ARG_WITH([gnu-ld],
   1.348      [AC_HELP_STRING([--with-gnu-ld],
   1.349 @@ -2296,7 +2343,7 @@
   1.350      # Accept absolute paths.
   1.351      [[\\/]]* | ?:[[\\/]]*)
   1.352        re_direlt='/[[^/]][[^/]]*/\.\./'
   1.353 -      # Canonicalize the path of ld
   1.354 +      # Canonicalize the pathname of ld
   1.355        ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
   1.356        while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
   1.357  	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
   1.358 @@ -2359,7 +2406,7 @@
   1.359  [AC_REQUIRE([AC_PROG_EGREP])dnl
   1.360  AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
   1.361  [# I'd rather use --version here, but apparently some GNU ld's only accept -v.
   1.362 -case `"$LD" -v 2>&1 </dev/null` in
   1.363 +case `$LD -v 2>&1 </dev/null` in
   1.364  *GNU* | *'with BFD'*)
   1.365    lt_cv_prog_gnu_ld=yes
   1.366    ;;
   1.367 @@ -2385,6 +2432,15 @@
   1.368  *) reload_flag=" $reload_flag" ;;
   1.369  esac
   1.370  reload_cmds='$LD$reload_flag -o $output$reload_objs'
   1.371 +case $host_os in
   1.372 +  darwin*)
   1.373 +    if test "$GCC" = yes; then
   1.374 +      reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
   1.375 +    else
   1.376 +      reload_cmds='$LD$reload_flag -o $output$reload_objs'
   1.377 +    fi
   1.378 +    ;;
   1.379 +esac
   1.380  ])# AC_PROG_LD_RELOAD_FLAG
   1.381  
   1.382  
   1.383 @@ -2418,35 +2474,32 @@
   1.384    lt_cv_deplibs_check_method=pass_all
   1.385    ;;
   1.386  
   1.387 -bsdi4*)
   1.388 +bsdi[[45]]*)
   1.389    lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
   1.390    lt_cv_file_magic_cmd='/usr/bin/file -L'
   1.391    lt_cv_file_magic_test_file=/shlib/libc.so
   1.392    ;;
   1.393  
   1.394 -cygwin* | mingw* | pw32*)
   1.395 -  # win32_libid is a shell function defined in ltmain.sh
   1.396 +cygwin*)
   1.397 +  # func_win32_libid is a shell function defined in ltmain.sh
   1.398    #lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
   1.399    lt_cv_deplibs_check_method=pass_all
   1.400 -  lt_cv_file_magic_cmd='win32_libid'
   1.401 +  lt_cv_file_magic_cmd='func_win32_libid'
   1.402    ;;
   1.403  
   1.404 +mingw* | pw32*)
   1.405 +  # Base MSYS/MinGW do not provide the 'file' command needed by
   1.406 +  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
   1.407 +  #lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
   1.408 +  lt_cv_deplibs_check_method=pass_all
   1.409 +  lt_cv_file_magic_cmd='$OBJDUMP -f'
   1.410 +  ;;
   1.411 +
   1.412  darwin* | rhapsody*)
   1.413 -  # this will be overwritten by pass_all, but leave it in just in case
   1.414 -  lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
   1.415 -  lt_cv_file_magic_cmd='/usr/bin/file -L'
   1.416 -  case "$host_os" in
   1.417 -  rhapsody* | darwin1.[[012]])
   1.418 -    lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
   1.419 -    ;;
   1.420 -  *) # Darwin 1.3 on
   1.421 -    lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
   1.422 -    ;;
   1.423 -  esac
   1.424    lt_cv_deplibs_check_method=pass_all
   1.425    ;;
   1.426  
   1.427 -freebsd*)
   1.428 +freebsd* | kfreebsd*-gnu)
   1.429    if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
   1.430      case $host_cpu in
   1.431      i*86 )
   1.432 @@ -2485,40 +2538,27 @@
   1.433    ;;
   1.434  
   1.435  irix5* | irix6* | nonstopux*)
   1.436 -  case $host_os in
   1.437 -  irix5* | nonstopux*)
   1.438 -    # this will be overridden with pass_all, but let us keep it just in case
   1.439 -    lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
   1.440 -    ;;
   1.441 -  *)
   1.442 -    case $LD in
   1.443 -    *-32|*"-32 ") libmagic=32-bit;;
   1.444 -    *-n32|*"-n32 ") libmagic=N32;;
   1.445 -    *-64|*"-64 ") libmagic=64-bit;;
   1.446 -    *) libmagic=never-match;;
   1.447 -    esac
   1.448 -    # this will be overridden with pass_all, but let us keep it just in case
   1.449 -    lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[[1234]] dynamic lib MIPS - version 1"
   1.450 -    ;;
   1.451 +  case $LD in
   1.452 +  *-32|*"-32 ") libmagic=32-bit;;
   1.453 +  *-n32|*"-n32 ") libmagic=N32;;
   1.454 +  *-64|*"-64 ") libmagic=64-bit;;
   1.455 +  *) libmagic=never-match;;
   1.456    esac
   1.457 -  lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
   1.458 -  lt_cv_deplibs_check_method=pass_all
   1.459 -  ;;
   1.460 -
   1.461 -*qnx* | *nto*)
   1.462    lt_cv_deplibs_check_method=pass_all
   1.463    ;;
   1.464  
   1.465  # This must be Linux ELF.
   1.466  linux*)
   1.467    case $host_cpu in
   1.468 -  alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
   1.469 +  alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*)
   1.470      lt_cv_deplibs_check_method=pass_all ;;
   1.471    *)
   1.472      # glibc up to 2.1.1 does not perform some relocations on ARM
   1.473 +    # this will be overridden with pass_all, but let us keep it just in case
   1.474      lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' ;;
   1.475    esac
   1.476    lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
   1.477 +  lt_cv_deplibs_check_method=pass_all
   1.478    ;;
   1.479  
   1.480  netbsd*)
   1.481 @@ -2535,20 +2575,19 @@
   1.482    lt_cv_file_magic_test_file=/usr/lib/libnls.so
   1.483    ;;
   1.484  
   1.485 +nto-qnx*)
   1.486 +  lt_cv_deplibs_check_method=unknown
   1.487 +  ;;
   1.488 +
   1.489  openbsd*)
   1.490 -  lt_cv_file_magic_cmd=/usr/bin/file
   1.491 -  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
   1.492    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
   1.493 -    lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB shared object'
   1.494 +    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
   1.495    else
   1.496 -    lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
   1.497 +    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
   1.498    fi
   1.499    ;;
   1.500  
   1.501  osf3* | osf4* | osf5*)
   1.502 -  # this will be overridden with pass_all, but let us keep it just in case
   1.503 -  lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
   1.504 -  lt_cv_file_magic_test_file=/shlib/libc.so
   1.505    lt_cv_deplibs_check_method=pass_all
   1.506    ;;
   1.507  
   1.508 @@ -2558,7 +2597,6 @@
   1.509  
   1.510  solaris*)
   1.511    lt_cv_deplibs_check_method=pass_all
   1.512 -  lt_cv_file_magic_test_file=/lib/libc.so
   1.513    ;;
   1.514  
   1.515  sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
   1.516 @@ -2598,7 +2636,7 @@
   1.517  
   1.518  # AC_PROG_NM
   1.519  # ----------
   1.520 -# find the path to a BSD-compatible name lister
   1.521 +# find the pathname to a BSD-compatible name lister
   1.522  AC_DEFUN([AC_PROG_NM],
   1.523  [AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
   1.524  [if test -n "$NM"; then
   1.525 @@ -2736,7 +2774,7 @@
   1.526  AC_DEFUN([_LT_AC_LANG_CXX],
   1.527  [AC_REQUIRE([AC_PROG_CXX])
   1.528  AC_REQUIRE([AC_PROG_CXXCPP])
   1.529 -_LT_AC_SHELL_INIT([tagnames=`echo "$tagnames,CXX" | sed 's/^,//'`])
   1.530 +_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
   1.531  ])# _LT_AC_LANG_CXX
   1.532  
   1.533  
   1.534 @@ -2752,7 +2790,7 @@
   1.535  # ---------------
   1.536  AC_DEFUN([_LT_AC_LANG_F77],
   1.537  [AC_REQUIRE([AC_PROG_F77])
   1.538 -_LT_AC_SHELL_INIT([tagnames=`echo "$tagnames,F77" | sed 's/^,//'`])
   1.539 +_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
   1.540  ])# _LT_AC_LANG_F77
   1.541  
   1.542  
   1.543 @@ -2773,7 +2811,7 @@
   1.544        [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
   1.545  	 [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
   1.546  	   [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
   1.547 -_LT_AC_SHELL_INIT([tagnames=`echo "$tagnames,GCJ" | sed 's/^,//'`])
   1.548 +_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
   1.549  ])# _LT_AC_LANG_GCJ
   1.550  
   1.551  
   1.552 @@ -2782,7 +2820,7 @@
   1.553  # enable support for Windows resource files
   1.554  AC_DEFUN([AC_LIBTOOL_RC],
   1.555  [AC_REQUIRE([LT_AC_PROG_RC])
   1.556 -_LT_AC_SHELL_INIT([tagnames=`echo "$tagnames,RC" | sed 's/^,//'`])
   1.557 +_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
   1.558  ])# AC_LIBTOOL_RC
   1.559  
   1.560  
   1.561 @@ -2824,7 +2862,7 @@
   1.562  fi
   1.563  if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then
   1.564    AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries])
   1.565 -  if echo "$old_CC $old_CFLAGS " | grep "[[ 	]]$]_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[[ 	]]" >/dev/null; then :
   1.566 +  if echo "$old_CC $old_CFLAGS " | grep "[[ 	]]$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[ 	]]" >/dev/null; then :
   1.567    else
   1.568      AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure])
   1.569      _LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no
   1.570 @@ -2851,9 +2889,9 @@
   1.571  AC_LIBTOOL_PROG_CC_C_O($1)
   1.572  AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
   1.573  AC_LIBTOOL_PROG_LD_SHLIBS($1)
   1.574 +AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
   1.575  AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
   1.576  AC_LIBTOOL_SYS_LIB_STRIP
   1.577 -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
   1.578  AC_LIBTOOL_DLOPEN_SELF($1)
   1.579  
   1.580  # Report which librarie types wil actually be built
   1.581 @@ -2874,39 +2912,11 @@
   1.582    fi
   1.583    ;;
   1.584  
   1.585 -aix4*)
   1.586 +aix4* | aix5*)
   1.587    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
   1.588      test "$enable_shared" = yes && enable_static=no
   1.589    fi
   1.590 -  ;;
   1.591 -  darwin* | rhapsody*)
   1.592 -  if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then 
   1.593 -    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
   1.594 -    case "$host_os" in
   1.595 -    rhapsody* | darwin1.[[012]])
   1.596 -      _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
   1.597 -      ;;
   1.598 -    *) # Darwin 1.3 on
   1.599 -      test -z ${LD_TWOLEVEL_NAMESPACE} && _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
   1.600 -      ;;
   1.601 -    esac
   1.602 -    # FIXME: Relying on posixy $() will cause problems for
   1.603 -    #        cross-compilation, but unfortunately the echo tests do not
   1.604 -    #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
   1.605 -    #	       `"' quotes if we put them in here... so don't!
   1.606 -		output_verbose_link_cmd='echo'
   1.607 -    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
   1.608 -    _LT_AC_TAGVAR(module_cmds, $1)='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
   1.609 -    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
   1.610 -		  _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.611 -		  _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
   1.612 -    _LT_AC_TAGVAR(hardcode_direct, $1)=no
   1.613 -    _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
   1.614 -    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
   1.615 -    _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
   1.616 -    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
   1.617 -    fi
   1.618 -    ;;  
   1.619 +    ;;
   1.620  esac
   1.621  AC_MSG_RESULT([$enable_shared])
   1.622  
   1.623 @@ -3041,7 +3051,7 @@
   1.624      # linker, instead of GNU ld.  If possible, this setting should
   1.625      # overridden to take advantage of the native linker features on
   1.626      # the platform it is being used on.
   1.627 -    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
   1.628 +    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
   1.629    fi
   1.630  
   1.631    # Commands to make compiler produce verbose output that lists
   1.632 @@ -3183,6 +3193,7 @@
   1.633      esac
   1.634      ;;
   1.635  
   1.636 +
   1.637    cygwin* | mingw* | pw32*)
   1.638      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
   1.639      # as there is no search path for DLLs.
   1.640 @@ -3192,9 +3203,17 @@
   1.641      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
   1.642  
   1.643      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
   1.644 +##      _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.645        _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 ${wl}--out-implib,$lib'
   1.646        # If the export-symbols file already is a .def file (1st line
   1.647        # is EXPORTS), use it as is; otherwise, prepend...
   1.648 +##      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
   1.649 +##	cp $export_symbols $output_objdir/$soname.def;
   1.650 +##      else
   1.651 +##	echo EXPORTS > $output_objdir/$soname.def;
   1.652 +##	cat $export_symbols >> $output_objdir/$soname.def;
   1.653 +##      fi~
   1.654 +##      $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.655        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
   1.656  	cp $export_symbols $output_objdir/$soname.def;
   1.657        else
   1.658 @@ -3206,44 +3225,68 @@
   1.659        _LT_AC_TAGVAR(ld_shlibs, $1)=no
   1.660      fi
   1.661    ;;
   1.662 -
   1.663 -  darwin* | rhapsody*)
   1.664 -   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then 
   1.665 -    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
   1.666 -    case "$host_os" in
   1.667 -    rhapsody* | darwin1.[[012]])
   1.668 -      _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
   1.669 -      ;;
   1.670 -    *) # Darwin 1.3 on
   1.671 -      test -z ${LD_TWOLEVEL_NAMESPACE} && _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
   1.672 -      ;;
   1.673 -    esac
   1.674 -    	lt_int_apple_cc_single_mod=no
   1.675 -    	output_verbose_link_cmd='echo'
   1.676 -    	if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
   1.677 -    	  lt_int_apple_cc_single_mod=yes
   1.678 -    	fi
   1.679 -    	if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
   1.680 -    	  _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.681 -    	else
   1.682 -        _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.683 +      darwin* | rhapsody*)
   1.684 +        case "$host_os" in
   1.685 +        rhapsody* | darwin1.[[012]])
   1.686 +         _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
   1.687 +         ;;
   1.688 +       *) # Darwin 1.3 on
   1.689 +         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
   1.690 +           _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
   1.691 +         else
   1.692 +           case ${MACOSX_DEPLOYMENT_TARGET} in
   1.693 +             10.[[012]])
   1.694 +               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
   1.695 +               ;;
   1.696 +             10.*)
   1.697 +               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
   1.698 +               ;;
   1.699 +           esac
   1.700 +         fi
   1.701 +         ;;
   1.702 +        esac
   1.703 +      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
   1.704 +      _LT_AC_TAGVAR(hardcode_direct, $1)=no
   1.705 +      _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
   1.706 +      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
   1.707 +      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
   1.708 +      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
   1.709 +
   1.710 +    if test "$GXX" = yes ; then
   1.711 +      lt_int_apple_cc_single_mod=no
   1.712 +      output_verbose_link_cmd='echo'
   1.713 +      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
   1.714 +       lt_int_apple_cc_single_mod=yes
   1.715        fi
   1.716 -      _LT_AC_TAGVAR(module_cmds, $1)='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
   1.717 -
   1.718 -    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
   1.719        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
   1.720 -        _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.721 +       _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.722        else
   1.723 -        _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.724 +          _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.725 +        fi
   1.726 +        _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
   1.727 +        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
   1.728 +          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
   1.729 +            _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.730 +          else
   1.731 +            _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.732 +          fi
   1.733 +            _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.734 +      else
   1.735 +      case "$cc_basename" in
   1.736 +        xlc*)
   1.737 +         output_verbose_link_cmd='echo'
   1.738 +          _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.739 +          _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
   1.740 +          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
   1.741 +          _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.742 +          _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.743 +          ;;
   1.744 +       *)
   1.745 +         _LT_AC_TAGVAR(ld_shlibs, $1)=no
   1.746 +          ;;
   1.747 +      esac
   1.748        fi
   1.749 -        _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
   1.750 -    _LT_AC_TAGVAR(hardcode_direct, $1)=no
   1.751 -    _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
   1.752 -    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
   1.753 -    _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
   1.754 -    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
   1.755 -   fi 
   1.756 -    ;;
   1.757 +        ;;
   1.758  
   1.759    dgux*)
   1.760      case $cc_basename in
   1.761 @@ -3269,7 +3312,7 @@
   1.762    freebsd-elf*)
   1.763      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
   1.764      ;;
   1.765 -  freebsd*)
   1.766 +  freebsd* | kfreebsd*-gnu)
   1.767      # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
   1.768      # conventions
   1.769      _LT_AC_TAGVAR(ld_shlibs, $1)=yes
   1.770 @@ -3300,7 +3343,7 @@
   1.771        # explicitly linking system object files so we need to strip them
   1.772        # from the output so that they don't get included in the library
   1.773        # dependencies.
   1.774 -      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
   1.775 +      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.776        ;;
   1.777      *)
   1.778        if test "$GXX" = yes; then
   1.779 @@ -3449,9 +3492,20 @@
   1.780        icpc)
   1.781  	# Intel C++
   1.782  	with_gnu_ld=yes
   1.783 +	# version 8.0 and above of icpc choke on multiply defined symbols
   1.784 +	# if we add $predep_objects and $postdep_objects, however 7.1 and
   1.785 +	# earlier do not add the objects themselves.
   1.786 +	case `$CC -V 2>&1` in
   1.787 +	*"Version 7."*)
   1.788 +  	  _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
   1.789 +  	  _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.790 +	  ;;
   1.791 +	*)  # Version 8.0 or newer
   1.792 +  	  _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
   1.793 +  	_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
   1.794 +	  ;;
   1.795 +	esac
   1.796  	_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
   1.797 -	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
   1.798 -	_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.799  	_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
   1.800  	_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
   1.801  	_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
   1.802 @@ -3508,6 +3562,20 @@
   1.803      # Workaround some broken pre-1.5 toolchains
   1.804      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
   1.805      ;;
   1.806 +  openbsd2*)
   1.807 +    # C++ shared libraries are fairly broken
   1.808 +    _LT_AC_TAGVAR(ld_shlibs, $1)=no
   1.809 +    ;;
   1.810 +  openbsd*)
   1.811 +    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
   1.812 +    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
   1.813 +    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
   1.814 +      _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.815 +      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
   1.816 +      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
   1.817 +    fi
   1.818 +    output_verbose_link_cmd='echo'
   1.819 +    ;;
   1.820    osf3*)
   1.821      case $cc_basename in
   1.822        KCC)
   1.823 @@ -3763,8 +3831,6 @@
   1.824      # FIXME: insert proper C++ library support
   1.825      _LT_AC_TAGVAR(ld_shlibs, $1)=no
   1.826      ;;
   1.827 -  *qnx* | *nto*)
   1.828 -    ;;
   1.829    *)
   1.830      # FIXME: insert proper C++ library support
   1.831      _LT_AC_TAGVAR(ld_shlibs, $1)=no
   1.832 @@ -3785,9 +3851,9 @@
   1.833  AC_LIBTOOL_PROG_CC_C_O($1)
   1.834  AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
   1.835  AC_LIBTOOL_PROG_LD_SHLIBS($1)
   1.836 +AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
   1.837  AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
   1.838  AC_LIBTOOL_SYS_LIB_STRIP
   1.839 -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
   1.840  AC_LIBTOOL_DLOPEN_SELF($1)
   1.841  
   1.842  AC_LIBTOOL_CONFIG($1)
   1.843 @@ -4009,7 +4075,7 @@
   1.844      postinstall_cmds='$RANLIB $lib'
   1.845    fi
   1.846    ;;
   1.847 -aix4*)
   1.848 +aix4* | aix5*)
   1.849    test "$enable_shared" = yes && enable_static=no
   1.850    ;;
   1.851  esac
   1.852 @@ -4029,9 +4095,10 @@
   1.853  AC_LIBTOOL_PROG_CC_C_O($1)
   1.854  AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
   1.855  AC_LIBTOOL_PROG_LD_SHLIBS($1)
   1.856 +AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
   1.857  AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
   1.858  AC_LIBTOOL_SYS_LIB_STRIP
   1.859 -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
   1.860 +
   1.861  
   1.862  AC_LIBTOOL_CONFIG($1)
   1.863  
   1.864 @@ -4083,9 +4150,9 @@
   1.865  AC_LIBTOOL_PROG_CC_C_O($1)
   1.866  AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
   1.867  AC_LIBTOOL_PROG_LD_SHLIBS($1)
   1.868 +AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
   1.869  AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
   1.870  AC_LIBTOOL_SYS_LIB_STRIP
   1.871 -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
   1.872  AC_LIBTOOL_DLOPEN_SELF($1)
   1.873  
   1.874  AC_LIBTOOL_CONFIG($1)
   1.875 @@ -4150,11 +4217,12 @@
   1.876    # without removal of \ escapes.
   1.877    if test -n "${ZSH_VERSION+set}" ; then
   1.878      setopt NO_GLOB_SUBST
   1.879 -  fi  
   1.880 +  fi
   1.881    # Now quote all the things that may contain metacharacters while being
   1.882    # careful not to overquote the AC_SUBSTed values.  We take copies of the
   1.883    # variables and quote the copies for generation of the libtool script.
   1.884 -  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
   1.885 +  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
   1.886 +    SED SHELL STRIP \
   1.887      libname_spec library_names_spec soname_spec extract_expsyms_cmds \
   1.888      old_striplib striplib file_magic_cmd finish_cmds finish_eval \
   1.889      deplibs_check_method reload_flag reload_cmds need_locks \
   1.890 @@ -4204,7 +4272,7 @@
   1.891      _LT_AC_TAGVAR(archive_cmds, $1) | \
   1.892      _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
   1.893      _LT_AC_TAGVAR(module_cmds, $1) | \
   1.894 -    _LT_AC_TAGVAR(module_expsym_cmds, $1) | \   
   1.895 +    _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
   1.896      _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
   1.897      _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
   1.898      extract_expsyms_cmds | reload_cmds | finish_cmds | \
   1.899 @@ -4274,7 +4342,7 @@
   1.900  
   1.901  # The HP-UX ksh and POSIX shell print the target directory to stdout
   1.902  # if CDPATH is set.
   1.903 -if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
   1.904 +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
   1.905  
   1.906  # The names of the tagged configurations supported by this script.
   1.907  available_tags=
   1.908 @@ -4335,7 +4403,7 @@
   1.909  NM=$lt_NM
   1.910  
   1.911  # A symbol stripping program
   1.912 -STRIP=$STRIP
   1.913 +STRIP=$lt_STRIP
   1.914  
   1.915  # Used to examine libraries when file_magic_cmd begins "file"
   1.916  MAGIC_CMD=$MAGIC_CMD
   1.917 @@ -4366,7 +4434,7 @@
   1.918  libext="$libext"
   1.919  
   1.920  # Shared library suffix (normally ".so").
   1.921 -shrext='$shrext'
   1.922 +shrext_cmds='$shrext_cmds'
   1.923  
   1.924  # Executable file suffix (normally "").
   1.925  exeext="$exeext"
   1.926 @@ -4610,7 +4678,10 @@
   1.927    # If there is no Makefile yet, we rely on a make rule to execute
   1.928    # `config.status --recheck' to rerun these tests and create the
   1.929    # libtool script then.
   1.930 -  test -f Makefile && make "$ltmain"
   1.931 +  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
   1.932 +  if test -f "$ltmain_in"; then
   1.933 +    test -f Makefile && make "$ltmain"
   1.934 +  fi
   1.935  fi
   1.936  ])# AC_LIBTOOL_CONFIG
   1.937  
   1.938 @@ -4683,7 +4754,7 @@
   1.939    symcode='[[BCDEGQRST]]'
   1.940    ;;
   1.941  solaris* | sysv5*)
   1.942 -  symcode='[[BDT]]'
   1.943 +  symcode='[[BDRT]]'
   1.944    ;;
   1.945  sysv4)
   1.946    symcode='[[DFNSTU]]'
   1.947 @@ -4701,7 +4772,7 @@
   1.948  # If we're using GNU nm, then use its standard symbol codes.
   1.949  case `$NM -V 2>&1` in
   1.950  *GNU* | *'with BFD'*)
   1.951 -  symcode='[[ABCDGISTW]]' ;;
   1.952 +  symcode='[[ABCDGIRSTW]]' ;;
   1.953  esac
   1.954  
   1.955  # Try without a prefix undercore, then with it.
   1.956 @@ -4880,10 +4951,6 @@
   1.957  	;;
   1.958        esac
   1.959        ;;
   1.960 -    *qnx* | *nto*)
   1.961 -      # QNX uses GNU C++, but need to define -shared option too, otherwise it will coredumped.
   1.962 -      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
   1.963 -      ;;
   1.964      *)
   1.965        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
   1.966        ;;
   1.967 @@ -4907,6 +4974,16 @@
   1.968  	  ;;
   1.969  	esac
   1.970  	;;
   1.971 +       darwin*)
   1.972 +         # PIC is the default on this platform
   1.973 +         # Common symbols not allowed in MH_DYLIB files
   1.974 +         case "$cc_basename" in
   1.975 +           xlc*)
   1.976 +           _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
   1.977 +           _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
   1.978 +           ;;
   1.979 +         esac
   1.980 +       ;;
   1.981        dgux*)
   1.982  	case $cc_basename in
   1.983  	  ec++)
   1.984 @@ -4920,13 +4997,9 @@
   1.985  	    ;;
   1.986  	esac
   1.987  	;;
   1.988 -      freebsd*)
   1.989 +      freebsd* | kfreebsd*-gnu)
   1.990  	# FreeBSD uses GNU C++
   1.991  	;;
   1.992 -      *qnx* | *nto*)
   1.993 -	# QNX uses GNU C++, but need to define -shared option too, otherwise it will coredumped.
   1.994 -        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
   1.995 -        ;;
   1.996        hpux9* | hpux10* | hpux11*)
   1.997  	case $cc_basename in
   1.998  	  CC)
   1.999 @@ -4975,7 +5048,7 @@
  1.1000  	    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  1.1001  	    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  1.1002  	    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  1.1003 -	    ;; 
  1.1004 +	    ;;
  1.1005  	  cxx)
  1.1006  	    # Compaq C++
  1.1007  	    # Make sure the PIC flag is empty.  It appears that all Alpha
  1.1008 @@ -5147,10 +5220,6 @@
  1.1009  	;;
  1.1010        esac
  1.1011        ;;
  1.1012 -    *qnx* | *nto*)
  1.1013 -      # QNX uses GNU C++, but need to define -shared option too, otherwise it will coredumped.
  1.1014 -      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  1.1015 -      ;;
  1.1016  
  1.1017      *)
  1.1018        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  1.1019 @@ -5168,6 +5237,16 @@
  1.1020  	_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  1.1021        fi
  1.1022        ;;
  1.1023 +      darwin*)
  1.1024 +        # PIC is the default on this platform
  1.1025 +        # Common symbols not allowed in MH_DYLIB files
  1.1026 +       case "$cc_basename" in
  1.1027 +         xlc*)
  1.1028 +         _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
  1.1029 +         _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  1.1030 +         ;;
  1.1031 +       esac
  1.1032 +       ;;
  1.1033  
  1.1034      mingw* | pw32* | os2*)
  1.1035        # This hack is so that the source file can tell whether it is being
  1.1036 @@ -5191,11 +5270,6 @@
  1.1037        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  1.1038        ;;
  1.1039  
  1.1040 -    *qnx* | *nto*)
  1.1041 -      # QNX uses GNU C++, but need to define -shared option too, otherwise it will coredumped.
  1.1042 -      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  1.1043 -      ;;
  1.1044 -
  1.1045      irix5* | irix6* | nonstopux*)
  1.1046        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  1.1047        # PIC (with -KPIC) is the default.
  1.1048 @@ -5209,12 +5283,12 @@
  1.1049  
  1.1050      linux*)
  1.1051        case $CC in
  1.1052 -      icc|ecc)
  1.1053 +      icc* | ecc*)
  1.1054  	_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  1.1055  	_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  1.1056  	_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  1.1057          ;;
  1.1058 -      ccc)
  1.1059 +      ccc*)
  1.1060          _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  1.1061          # All Alpha code is PIC.
  1.1062          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  1.1063 @@ -5344,7 +5418,7 @@
  1.1064    _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
  1.1065    _LT_AC_TAGVAR(hardcode_automatic, $1)=no
  1.1066    _LT_AC_TAGVAR(module_cmds, $1)=
  1.1067 -  _LT_AC_TAGVAR(module_expsym_cmds, $1)=  
  1.1068 +  _LT_AC_TAGVAR(module_expsym_cmds, $1)=
  1.1069    _LT_AC_TAGVAR(always_export_symbols, $1)=no
  1.1070    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  1.1071    # include_expsyms should be a list of space-separated symbols to be *always*
  1.1072 @@ -5434,9 +5508,17 @@
  1.1073        _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.1074  
  1.1075        if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  1.1076 +##        _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.1077          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base ${wl}--out-implib,$lib'
  1.1078  	# If the export-symbols file already is a .def file (1st line
  1.1079  	# is EXPORTS), use it as is; otherwise, prepend...
  1.1080 +##	_LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  1.1081 +##	  cp $export_symbols $output_objdir/$soname.def;
  1.1082 +##	else
  1.1083 +##	  echo EXPORTS > $output_objdir/$soname.def;
  1.1084 +##	  cat $export_symbols >> $output_objdir/$soname.def;
  1.1085 +##	fi~
  1.1086 +##	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
  1.1087  	_LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  1.1088  	  cp $export_symbols $output_objdir/$soname.def;
  1.1089  	else
  1.1090 @@ -5487,6 +5569,31 @@
  1.1091        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  1.1092        ;;
  1.1093  
  1.1094 +  linux*)
  1.1095 +    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  1.1096 +        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  1.1097 +	_LT_AC_TAGVAR(archive_cmds, $1)="$tmp_archive_cmds"
  1.1098 +      supports_anon_versioning=no
  1.1099 +      case `$LD -v 2>/dev/null` in
  1.1100 +        *\ [01].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
  1.1101 +        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  1.1102 +        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  1.1103 +        *\ 2.11.*) ;; # other 2.11 versions
  1.1104 +        *) supports_anon_versioning=yes ;;
  1.1105 +      esac
  1.1106 +      if test $supports_anon_versioning = yes; then
  1.1107 +        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
  1.1108 +cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  1.1109 +$echo "local: *; };" >> $output_objdir/$libname.ver~
  1.1110 +        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  1.1111 +      else
  1.1112 +        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="$tmp_archive_cmds"
  1.1113 +      fi
  1.1114 +    else
  1.1115 +      _LT_AC_TAGVAR(ld_shlibs, $1)=no
  1.1116 +    fi
  1.1117 +    ;;
  1.1118 +
  1.1119      *)
  1.1120        if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  1.1121  	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  1.1122 @@ -5649,7 +5756,7 @@
  1.1123        _LT_AC_TAGVAR(ld_shlibs, $1)=no
  1.1124        ;;
  1.1125  
  1.1126 -    bsdi4*)
  1.1127 +    bsdi[[45]]*)
  1.1128        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
  1.1129        ;;
  1.1130  
  1.1131 @@ -5663,7 +5770,7 @@
  1.1132        # Tell ltmain to make .lib files, not .a files.
  1.1133        libext=lib
  1.1134        # Tell ltmain to make .dll files, not .so files.
  1.1135 -      shrext=".dll"
  1.1136 +      shrext_cmds=".dll"
  1.1137        # FIXME: Setting linknames here is a bad hack.
  1.1138        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  1.1139        # The linker will automatically build a .lib file if we build a DLL.
  1.1140 @@ -5675,44 +5782,53 @@
  1.1141        ;;
  1.1142  
  1.1143      darwin* | rhapsody*)
  1.1144 -    if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then 
  1.1145 +      case "$host_os" in
  1.1146 +        rhapsody* | darwin1.[[012]])
  1.1147 +         _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
  1.1148 +         ;;
  1.1149 +       *) # Darwin 1.3 on
  1.1150 +         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  1.1151 +           _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  1.1152 +         else
  1.1153 +           case ${MACOSX_DEPLOYMENT_TARGET} in
  1.1154 +             10.[[012]])
  1.1155 +               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  1.1156 +               ;;
  1.1157 +             10.*)
  1.1158 +               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
  1.1159 +               ;;
  1.1160 +           esac
  1.1161 +         fi
  1.1162 +         ;;
  1.1163 +      esac
  1.1164        _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  1.1165 -      case "$host_os" in
  1.1166 -      rhapsody* | darwin1.[[012]])
  1.1167 -	_LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
  1.1168 -	;;
  1.1169 -      *) # Darwin 1.3 on
  1.1170 -	test -z ${LD_TWOLEVEL_NAMESPACE} && _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
  1.1171 -	;;
  1.1172 -      esac
  1.1173 -      # FIXME: Relying on posixy $() will cause problems for
  1.1174 -      #        cross-compilation, but unfortunately the echo tests do not
  1.1175 -      #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
  1.1176 -      #	       `"' quotes if we put them in here... so don't!
  1.1177 -    	lt_int_apple_cc_single_mod=no
  1.1178 -    	output_verbose_link_cmd='echo'
  1.1179 -    	if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
  1.1180 -    	  lt_int_apple_cc_single_mod=yes
  1.1181 -    	fi
  1.1182 -    	if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  1.1183 -    	  _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.1184 -    	else
  1.1185 -        _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.1186 -      fi
  1.1187 -      _LT_AC_TAGVAR(module_cmds, $1)='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
  1.1188 -      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  1.1189 -        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  1.1190 -          _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.1191 -        else
  1.1192 -          _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.1193 -        fi
  1.1194 -          _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  1.1195        _LT_AC_TAGVAR(hardcode_direct, $1)=no
  1.1196        _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
  1.1197        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  1.1198 -      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
  1.1199 +      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
  1.1200        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  1.1201 -    fi  
  1.1202 +    if test "$GCC" = yes ; then
  1.1203 +    	output_verbose_link_cmd='echo'
  1.1204 +        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  1.1205 +      _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  1.1206 +      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  1.1207 +      _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.1208 +      _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.1209 +    else
  1.1210 +      case "$cc_basename" in
  1.1211 +        xlc*)
  1.1212 +         output_verbose_link_cmd='echo'
  1.1213 +         _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.1214 +         _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  1.1215 +          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  1.1216 +         _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.1217 +          _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.1218 +          ;;
  1.1219 +       *)
  1.1220 +         _LT_AC_TAGVAR(ld_shlibs, $1)=no
  1.1221 +          ;;
  1.1222 +      esac
  1.1223 +    fi
  1.1224        ;;
  1.1225  
  1.1226      dgux*)
  1.1227 @@ -5745,7 +5861,7 @@
  1.1228        ;;
  1.1229  
  1.1230      # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  1.1231 -    freebsd*)
  1.1232 +    freebsd* | kfreebsd*-gnu)
  1.1233        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  1.1234        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  1.1235        _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  1.1236 @@ -5856,6 +5972,7 @@
  1.1237        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  1.1238        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  1.1239  	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  1.1240 +	_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  1.1241  	_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  1.1242  	_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  1.1243        else
  1.1244 @@ -6062,7 +6179,7 @@
  1.1245        AC_MSG_CHECKING([whether -lc should be explicitly linked in])
  1.1246        $rm conftest*
  1.1247        printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  1.1248 -  
  1.1249 +
  1.1250        if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
  1.1251          soname=conftest
  1.1252          lib=conftest
  1.1253 @@ -6221,7 +6338,7 @@
  1.1254      fi
  1.1255    done
  1.1256  done
  1.1257 +])
  1.1258  SED=$lt_cv_path_SED
  1.1259 -])
  1.1260  AC_MSG_RESULT([$SED])
  1.1261  ])