Changeset 893d944


Ignore:
Timestamp:
11/30/04 14:44:08 (16 years ago)
Author:
Daniel Lawson <dlawson@…>
Branches:
4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, getfragoff, help, libtrace4, master, ndag_format, pfring, rc-4.0.1, rc-4.0.2, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance, ringtimestampfixes
Children:
48ea5b6
Parents:
d8599ca
Message:

poink

Files:
11 edited

Legend:

Unmodified
Added
Removed
  • Makefile

    rd8599ca r893d944  
    6262ADD_LIBS =   -lpcap -lz
    6363AMTAR = ${SHELL} /home/dlawson/code/libtrace/missing --run tar
    64 AR = ar
    6564AS = @AS@
    6665AWK = mawk
    6766CC = gcc
    68 CXX = g++
    69 CXXCPP = g++ -E
    7067DAG_TOOLS_DIR =
    7168DEPDIR = .deps
    7269DLLTOOL = @DLLTOOL@
    7370ECHO = echo
    74 EGREP = grep -E
    7571EXEEXT =
    76 F77 = g77
    77 GCJ = @GCJ@
    78 GCJFLAGS = @GCJFLAGS@
    7972INSTALL_STRIP_PROGRAM = ${SHELL} $(install_sh) -c -s
    8073LIBTOOL = $(SHELL) $(top_builddir)/libtool
     
    8477PACKAGE = libtrace
    8578RANLIB = ranlib
    86 RC = @RC@
    8779STRIP = strip
    8880VERSION = 2.0.11
     
    9183install_sh = /home/dlawson/code/libtrace/install-sh
    9284
    93 SUBDIRS = lib
     85SUBDIRS = lib replace
    9486EXTRA_DIST = examples docs
    9587subdir = .
  • Makefile.in

    r5c27814 r893d944  
    6262ADD_LIBS = @ADD_LIBS@
    6363AMTAR = @AMTAR@
    64 AR = @AR@
    6564AS = @AS@
    6665AWK = @AWK@
    6766CC = @CC@
    68 CXX = @CXX@
    69 CXXCPP = @CXXCPP@
    7067DAG_TOOLS_DIR = @DAG_TOOLS_DIR@
    7168DEPDIR = @DEPDIR@
    7269DLLTOOL = @DLLTOOL@
    7370ECHO = @ECHO@
    74 EGREP = @EGREP@
    7571EXEEXT = @EXEEXT@
    76 F77 = @F77@
    77 GCJ = @GCJ@
    78 GCJFLAGS = @GCJFLAGS@
    7972INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
    8073LIBTOOL = @LIBTOOL@
     
    8477PACKAGE = @PACKAGE@
    8578RANLIB = @RANLIB@
    86 RC = @RC@
    8779STRIP = @STRIP@
    8880VERSION = @VERSION@
     
    9183install_sh = @install_sh@
    9284
    93 SUBDIRS = lib
     85SUBDIRS = lib replace
    9486EXTRA_DIST = examples docs
    9587subdir = .
  • aclocal.m4

    <
    r5c27814 r893d944  
    387387for mf in $CONFIG_FILES; do
    388388  case "$mf" in
    389   Makefile|GNUmakefile) dirpart=.;;
    390   */Makefile|*/GNUmakefile) dirpart=`echo "$mf" | sed -e 's|/[^/]*$||'`;;
     389  Makefile) dirpart=.;;
     390  */Makefile) dirpart=`echo "$mf" | sed -e 's|/[^/]*$||'`;;
    391391  *) continue;;
    392392  esac
     
    559559]) # _AM_DIRNAME
    560560
    561 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
    562 
    563 # serial 47 AC_PROG_LIBTOOL
    564 
    565 
    566 # AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
    567 # -----------------------------------------------------------
    568 # If this macro is not defined by Autoconf, define it here.
    569 m4_ifdef([AC_PROVIDE_IFELSE],
    570          [],
    571          [m4_define([AC_PROVIDE_IFELSE],
    572                  [m4_ifdef([AC_PROVIDE_$1],
    573                            [$2], [$3])])])
    574 
    575 
    576 # AC_PROG_LIBTOOL
    577 # ---------------
     561# libtool.m4 - Configure libtool for the host system. -*-Shell-script-*-
     562
     563# serial 46 AC_PROG_LIBTOOL
     564
    578565AC_DEFUN([AC_PROG_LIBTOOL],
    579 [AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
    580 dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
    581 dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
    582   AC_PROVIDE_IFELSE([AC_PROG_CXX],
    583     [AC_LIBTOOL_CXX],
    584     [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
    585   ])])
    586 dnl And a similar setup for Fortran 77 support
    587   AC_PROVIDE_IFELSE([AC_PROG_F77],
    588     [AC_LIBTOOL_F77],
    589     [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
    590 ])])
    591 
    592 dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
    593 dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
    594 dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
    595   AC_PROVIDE_IFELSE([AC_PROG_GCJ],
    596     [AC_LIBTOOL_GCJ],
    597     [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
    598       [AC_LIBTOOL_GCJ],
    599       [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
    600         [AC_LIBTOOL_GCJ],
    601       [ifdef([AC_PROG_GCJ],
    602              [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
    603        ifdef([A][M_PROG_GCJ],
    604              [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
    605        ifdef([LT_AC_PROG_GCJ],
    606              [define([LT_AC_PROG_GCJ],
    607                 defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
    608 ])])# AC_PROG_LIBTOOL
    609 
    610 
    611 # _AC_PROG_LIBTOOL
    612 # ----------------
    613 AC_DEFUN([_AC_PROG_LIBTOOL],
    614566[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
    615 AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
    616 AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
    617 AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
    618567
    619568# This can be used to rebuild libtool when needed
     
    626575# Prevent multiple expansion
    627576define([AC_PROG_LIBTOOL], [])
    628 ])# _AC_PROG_LIBTOOL
    629 
    630 
    631 # AC_LIBTOOL_SETUP
    632 # ----------------
     577])
     578
    633579AC_DEFUN([AC_LIBTOOL_SETUP],
    634 [AC_PREREQ(2.50)dnl
     580[AC_PREREQ(2.13)dnl
    635581AC_REQUIRE([AC_ENABLE_SHARED])dnl
    636582AC_REQUIRE([AC_ENABLE_STATIC])dnl
     
    642588AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
    643589AC_REQUIRE([AC_PROG_NM])dnl
    644 
    645590AC_REQUIRE([AC_PROG_LN_S])dnl
    646591AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
    647 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
    648592AC_REQUIRE([AC_OBJEXT])dnl
    649593AC_REQUIRE([AC_EXEEXT])dnl
    650594dnl
    651595
    652 AC_LIBTOOL_SYS_MAX_CMD_LEN
    653 AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
    654 AC_LIBTOOL_OBJDIR
    655 
    656 AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
    657596_LT_AC_PROG_ECHO_BACKSLASH
    658 
    659 case $host_os in
    660 aix3*)
    661   # AIX sometimes has problems with the GCC collect2 program.  For some
    662   # reason, if we set the COLLECT_NAMES environment variable, the problems
    663   # vanish in a puff of smoke.
    664   if test "X${COLLECT_NAMES+set}" != Xset; then
    665     COLLECT_NAMES=
    666     export COLLECT_NAMES
    667   fi
    668   ;;
    669 esac
    670 
    671 # Sed substitution that helps us do robust quoting.  It backslashifies
    672 # metacharacters that are still active within double-quoted strings.
    673 Xsed='sed -e s/^X//'
    674 [sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
    675 
    676 # Same as above, but do not quote variable references.
    677 [double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
    678 
    679 # Sed substitution to delay expansion of an escaped shell variable in a
    680 # double_quote_subst'ed string.
    681 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
    682 
    683 # Sed substitution to avoid accidental globbing in evaled expressions
    684 no_glob_subst='s/\*/\\\*/g'
    685 
    686 # Constants:
    687 rm="rm -f"
    688 
    689 # Global variables:
    690 default_ofile=libtool
    691 can_build_shared=yes
    692 
    693 # All known linkers require a `.a' archive for static linking (except M$VC,
    694 # which needs '.lib').
    695 libext=a
    696 ltmain="$ac_aux_dir/ltmain.sh"
    697 ofile="$default_ofile"
    698 with_gnu_ld="$lt_cv_prog_gnu_ld"
    699 
    700 AC_CHECK_TOOL(AR, ar, false)
    701 AC_CHECK_TOOL(RANLIB, ranlib, :)
    702 AC_CHECK_TOOL(STRIP, strip, :)
    703 
    704 old_CC="$CC"
    705 old_CFLAGS="$CFLAGS"
    706 
    707 # Set sane defaults for various variables
    708 test -z "$AR" && AR=ar
    709 test -z "$AR_FLAGS" && AR_FLAGS=cru
    710 test -z "$AS" && AS=as
    711 test -z "$CC" && CC=cc
    712 test -z "$LTCC" && LTCC=$CC
    713 test -z "$DLLTOOL" && DLLTOOL=dlltool
    714 test -z "$LD" && LD=ld
    715 test -z "$LN_S" && LN_S="ln -s"
    716 test -z "$MAGIC_CMD" && MAGIC_CMD=file
    717 test -z "$NM" && NM=nm
    718 test -z "$SED" && SED=sed
    719 test -z "$OBJDUMP" && OBJDUMP=objdump
    720 test -z "$RANLIB" && RANLIB=:
    721 test -z "$STRIP" && STRIP=:
    722 test -z "$ac_objext" && ac_objext=o
    723 
    724 # Determine commands to create old-style static archives.
    725 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
    726 old_postinstall_cmds='chmod 644 $oldlib'
    727 old_postuninstall_cmds=
    728 
    729 if test -n "$RANLIB"; then
    730   case $host_os in
    731   openbsd*)
    732     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
    733     ;;
    734   *)
    735     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
    736     ;;
    737   esac
    738   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
    739 fi
    740 
    741597# Only perform the check for file, if the check method requires it
    742598case $deplibs_check_method in
     
    748604esac
    749605
    750 AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
    751 AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
     606AC_CHECK_TOOL(RANLIB, ranlib, :)
     607AC_CHECK_TOOL(STRIP, strip, :)
     608
     609ifdef([AC_PROVIDE_AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
     610ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL],
    752611enable_win32_dll=yes, enable_win32_dll=no)
    753612
    754 AC_ARG_ENABLE([libtool-lock],
    755     [AC_HELP_STRING([--disable-libtool-lock],
    756         [avoid locking (might break parallel builds)])])
     613AC_ARG_ENABLE(libtool-lock,
     614  [  --disable-libtool-lock  avoid locking (might break parallel builds)])
    757615test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
    758616
    759 AC_ARG_WITH([pic],
    760     [AC_HELP_STRING([--with-pic],
    761         [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
    762     [pic_mode="$withval"],
    763     [pic_mode=default])
    764 test -z "$pic_mode" && pic_mode=default
    765 
    766 # Use C for the default configuration in the libtool script
    767 tagname=
    768 AC_LIBTOOL_LANG_C_CONFIG
    769 _LT_AC_TAGCONFIG
    770 _LT_AC_SHARED_EXT
    771 ])# AC_LIBTOOL_SETUP
    772 
    773 
    774 # _LT_AC_SYS_COMPILER
    775 # -------------------
    776 AC_DEFUN([_LT_AC_SYS_COMPILER],
    777 [AC_REQUIRE([AC_PROG_CC])dnl
    778 
    779 # If no C compiler was specified, use CC.
    780 LTCC=${LTCC-"$CC"}
    781 
    782 # Allow CC to be a program name with arguments.
    783 compiler=$CC
    784 ])# _LT_AC_SYS_COMPILER
    785 
    786 
    787 # _LT_AC_SYS_LIBPATH_AIX
    788 # ----------------------
    789 # Links a minimal program and checks the executable
    790 # for the system default hardcoded library path. In most cases,
    791 # this is /usr/lib:/lib, but when the MPI compilers are used
    792 # the location of the communication and MPI libs are included too.
    793 # If we don't find anything, use the default library path according
    794 # to the aix ld manual.
    795 AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
    796 [AC_LINK_IFELSE(AC_LANG_PROGRAM,[
    797 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
    798 }'`
    799 # Check for a 64-bit object if we didn't find anything.
    800 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
    801 }'`; fi],[])
    802 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
    803 ])# _LT_AC_SYS_LIBPATH_AIX
    804 
    805 
    806 # _LT_AC_SHELL_INIT(ARG)
    807 # ----------------------
    808 AC_DEFUN([_LT_AC_SHELL_INIT],
    809 [ifdef([AC_DIVERSION_NOTICE],
    810              [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
    811          [AC_DIVERT_PUSH(NOTICE)])
    812 $1
    813 AC_DIVERT_POP
    814 ])# _LT_AC_SHELL_INIT
    815 
     617# Some flags need to be propagated to the compiler or linker for good
     618# libtool support.
     619case $host in
     620*-*-irix6*)
     621  # Find out which ABI we are using.
     622  echo '[#]line __oline__ "configure"' > conftest.$ac_ext
     623  if AC_TRY_EVAL(ac_compile); then
     624    case `/usr/bin/file conftest.$ac_objext` in
     625    *32-bit*)
     626      LD="${LD-ld} -32"
     627      ;;
     628    *N32*)
     629      LD="${LD-ld} -n32"
     630      ;;
     631    *64-bit*)
     632      LD="${LD-ld} -64"
     633      ;;
     634    esac
     635  fi
     636  rm -rf conftest*
     637  ;;
     638
     639*-*-sco3.2v5*)
     640  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
     641  SAVE_CFLAGS="$CFLAGS"
     642  CFLAGS="$CFLAGS -belf"
     643  AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
     644    [AC_LANG_SAVE
     645     AC_LANG_C
     646     AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
     647     AC_LANG_RESTORE])
     648  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
     649    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
     650    CFLAGS="$SAVE_CFLAGS"
     651  fi
     652  ;;
     653
     654ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL],
     655[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
     656  AC_CHECK_TOOL(DLLTOOL, dlltool, false)
     657  AC_CHECK_TOOL(AS, as, false)
     658  AC_CHECK_TOOL(OBJDUMP, objdump, false)
     659
     660  # recent cygwin and mingw systems supply a stub DllMain which the user
     661  # can override, but on older systems we have to supply one
     662  AC_CACHE_CHECK([if libtool should supply DllMain function], lt_cv_need_dllmain,
     663    [AC_TRY_LINK([],
     664      [extern int __attribute__((__stdcall__)) DllMain(void*, int, void*);
     665      DllMain (0, 0, 0);],
     666      [lt_cv_need_dllmain=no],[lt_cv_need_dllmain=yes])])
     667
     668  case $host/$CC in
     669  *-*-cygwin*/gcc*-mno-cygwin*|*-*-mingw*)
     670    # old mingw systems require "-dll" to link a DLL, while more recent ones
     671    # require "-mdll"
     672    SAVE_CFLAGS="$CFLAGS"
     673    CFLAGS="$CFLAGS -mdll"
     674    AC_CACHE_CHECK([how to link DLLs], lt_cv_cc_dll_switch,
     675      [AC_TRY_LINK([], [], [lt_cv_cc_dll_switch=-mdll],[lt_cv_cc_dll_switch=-dll])])
     676    CFLAGS="$SAVE_CFLAGS" ;;
     677  *-*-cygwin* | *-*-pw32*)
     678    # cygwin systems need to pass --dll to the linker, and not link
     679    # crt.o which will require a WinMain@16 definition.
     680    lt_cv_cc_dll_switch="-Wl,--dll -nostartfiles" ;;
     681  esac
     682  ;;
     683  ])
     684esac
     685
     686_LT_AC_LTCONFIG_HACK
     687
     688])
     689
     690# AC_LIBTOOL_HEADER_ASSERT
     691# ------------------------
     692AC_DEFUN([AC_LIBTOOL_HEADER_ASSERT],
     693[AC_CACHE_CHECK([whether $CC supports assert without backlinking],
     694    [lt_cv_func_assert_works],
     695    [case $host in
     696    *-*-solaris*)
     697      if test "$GCC" = yes && test "$with_gnu_ld" != yes; then
     698        case `$CC --version 2>/dev/null` in
     699        [[12]].*) lt_cv_func_assert_works=no ;;
     700        *)        lt_cv_func_assert_works=yes ;;
     701        esac
     702      fi
     703      ;;
     704    esac])
     705
     706if test "x$lt_cv_func_assert_works" = xyes; then
     707  AC_CHECK_HEADERS(assert.h)
     708fi
     709])# AC_LIBTOOL_HEADER_ASSERT
     710
     711# _LT_AC_CHECK_DLFCN
     712# --------------------
     713AC_DEFUN([_LT_AC_CHECK_DLFCN],
     714[AC_CHECK_HEADERS(dlfcn.h)
     715])# _LT_AC_CHECK_DLFCN
     716
     717# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
     718# ---------------------------------
     719AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
     720[AC_REQUIRE([AC_CANONICAL_HOST])
     721AC_REQUIRE([AC_PROG_NM])
     722AC_REQUIRE([AC_OBJEXT])
     723# Check for command to grab the raw symbol name followed by C symbol from nm.
     724AC_MSG_CHECKING([command to parse $NM output])
     725AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], [dnl
     726
     727# These are sane defaults that work on at least a few old systems.
     728# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
     729
     730# Character class describing NM global symbol codes.
     731symcode='[[BCDEGRST]]'
     732
     733# Regexp to match symbols that can be accessed directly from C.
     734sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
     735
     736# Transform the above into a raw symbol and a C symbol.
     737symxfrm='\1 \2\3 \3'
     738
     739# Transform an extracted symbol line into a proper C declaration
     740lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
     741
     742# Transform an extracted symbol line into symbol name and symbol address
     743lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
     744
     745# Define system-specific variables.
     746case $host_os in
     747aix*)
     748  symcode='[[BCDT]]'
     749  ;;
     750cygwin* | mingw* | pw32*)
     751  symcode='[[ABCDGISTW]]'
     752  ;;
     753hpux*) # Its linker distinguishes data from code symbols
     754  lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
     755  lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
     756  ;;
     757irix* | nonstopux*)
     758  symcode='[[BCDEGRST]]'
     759  ;;
     760solaris* | sysv5*)
     761  symcode='[[BDT]]'
     762  ;;
     763sysv4)
     764  symcode='[[DFNSTU]]'
     765  ;;
     766esac
     767
     768# Handle CRLF in mingw tool chain
     769opt_cr=
     770case $host_os in
     771mingw*)
     772  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
     773  ;;
     774esac
     775
     776# If we're using GNU nm, then use its standard symbol codes.
     777if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
     778  symcode='[[ABCDGISTW]]'
     779fi
     780
     781# Try without a prefix undercore, then with it.
     782for ac_symprfx in "" "_"; do
     783
     784  # Write the raw and C identifiers.
     785lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[        ]]\($symcode$symcode*\)[[       ]][[    ]]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
     786
     787  # Check to see that the pipe works correctly.
     788  pipe_works=no
     789  rm -f conftest*
     790  cat > conftest.$ac_ext <<EOF
     791#ifdef __cplusplus
     792extern "C" {
     793#endif
     794char nm_test_var;
     795void nm_test_func(){}
     796#ifdef __cplusplus
     797}
     798#endif
     799int main(){nm_test_var='a';nm_test_func();return(0);}
     800EOF
     801
     802  if AC_TRY_EVAL(ac_compile); then
     803    # Now try to grab the symbols.
     804    nlist=conftest.nm
     805    if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
     806      # Try sorting and uniquifying the output.
     807      if sort "$nlist" | uniq > "$nlist"T; then
     808        mv -f "$nlist"T "$nlist"
     809      else
     810        rm -f "$nlist"T
     811      fi
     812
     813      # Make sure that we snagged all the symbols we need.
     814      if egrep ' nm_test_var$' "$nlist" >/dev/null; then
     815        if egrep ' nm_test_func$' "$nlist" >/dev/null; then
     816          cat <<EOF > conftest.$ac_ext
     817#ifdef __cplusplus
     818extern "C" {
     819#endif
     820
     821EOF
     822          # Now generate the symbol file.
     823          eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
     824
     825          cat <<EOF >> conftest.$ac_ext
     826#if defined (__STDC__) && __STDC__
     827# define lt_ptr void *
     828#else
     829# define lt_ptr char *
     830# define const
     831#endif
     832
     833/* The mapping between symbol names and symbols. */
     834const struct {
     835  const char *name;
     836  lt_ptr address;
     837}
     838lt_preloaded_symbols[[]] =
     839{
     840EOF
     841          sed "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
     842          cat <<\EOF >> conftest.$ac_ext
     843  {0, (lt_ptr) 0}
     844};
     845
     846#ifdef __cplusplus
     847}
     848#endif
     849EOF
     850          # Now try linking the two files.
     851          mv conftest.$ac_objext conftstm.$ac_objext
     852          save_LIBS="$LIBS"
     853          save_CFLAGS="$CFLAGS"
     854          LIBS="conftstm.$ac_objext"
     855          CFLAGS="$CFLAGS$no_builtin_flag"
     856          if AC_TRY_EVAL(ac_link) && test -s conftest; then
     857            pipe_works=yes
     858          fi
     859          LIBS="$save_LIBS"
     860          CFLAGS="$save_CFLAGS"
     861        else
     862          echo "cannot find nm_test_func in $nlist" >&AC_FD_CC
     863        fi
     864      else
     865        echo "cannot find nm_test_var in $nlist" >&AC_FD_CC
     866      fi
     867    else
     868      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AC_FD_CC
     869    fi
     870  else
     871    echo "$progname: failed program was:" >&AC_FD_CC
     872    cat conftest.$ac_ext >&5
     873  fi
     874  rm -f conftest* conftst*
     875
     876  # Do not use the global_symbol_pipe unless it works.
     877  if test "$pipe_works" = yes; then
     878    break
     879  else
     880    lt_cv_sys_global_symbol_pipe=
     881  fi
     882done
     883])
     884global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
     885if test -z "$lt_cv_sys_global_symbol_pipe"; then
     886  global_symbol_to_cdecl=
     887  global_symbol_to_c_name_address=
     888else
     889  global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
     890  global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
     891fi
     892if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
     893then
     894  AC_MSG_RESULT(failed)
     895else
     896  AC_MSG_RESULT(ok)
     897fi
     898]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
     899
     900# _LT_AC_LIBTOOL_SYS_PATH_SEPARATOR
     901# ---------------------------------
     902AC_DEFUN([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR],
     903[# Find the correct PATH separator.  Usually this is `:', but
     904# DJGPP uses `;' like DOS.
     905if test "X${PATH_SEPARATOR+set}" != Xset; then
     906  UNAME=${UNAME-`uname 2>/dev/null`}
     907  case X$UNAME in
     908    *-DOS) lt_cv_sys_path_separator=';' ;;
     909    *)     lt_cv_sys_path_separator=':' ;;
     910  esac
     911  PATH_SEPARATOR=$lt_cv_sys_path_separator
     912fi
     913])# _LT_AC_LIBTOOL_SYS_PATH_SEPARATOR
    816914
    817915# _LT_AC_PROG_ECHO_BACKSLASH
     
    820918# will find an echo command which doesn't interpret backslashes.
    821919AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
    822 [_LT_AC_SHELL_INIT([
     920[ifdef([AC_DIVERSION_NOTICE], [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
     921                              [AC_DIVERT_PUSH(NOTICE)])
     922_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR
     923
    823924# Check that we are running under the correct shell.
    824925SHELL=${CONFIG_SHELL-/bin/sh}
     
    838939  # Avoid inline document here, it may be left over
    839940  :
    840 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
     941elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
    841942  # Yippee, $echo works!
    842943  :
     
    850951  shift
    851952  cat <<EOF
    852 [$]*
     953$*
    853954EOF
    854955  exit 0
     
    884985  # So, first we look for a working echo in the user's PATH.
    885986
    886   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
     987  IFS="${IFS=   }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
    887988  for dir in $PATH /usr/ucb; do
    888     IFS="$lt_save_ifs"
    889989    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
    890990       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
     
    895995    fi
    896996  done
    897   IFS="$lt_save_ifs"
     997  IFS="$save_ifs"
    898998
    899999  if test "X$echo" = Xecho; then
     
    9681068
    9691069AC_SUBST(ECHO)
    970 ])])# _LT_AC_PROG_ECHO_BACKSLASH
    971 
    972 
    973 # _LT_AC_LOCK
    974 # -----------
    975 AC_DEFUN([_LT_AC_LOCK],
    976 [AC_ARG_ENABLE([libtool-lock],
    977     [AC_HELP_STRING([--disable-libtool-lock],
    978         [avoid locking (might break parallel builds)])])
    979 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
    980 
    981 # Some flags need to be propagated to the compiler or linker for good
    982 # libtool support.
    983 case $host in
    984 ia64-*-hpux*)
    985   # Find out which ABI we are using.
    986   echo 'int i;' > conftest.$ac_ext
    987   if AC_TRY_EVAL(ac_compile); then
    988     case `/usr/bin/file conftest.$ac_objext` in
    989     *ELF-32*)
    990       HPUX_IA64_MODE="32"
    991       ;;
    992     *ELF-64*)
    993       HPUX_IA64_MODE="64"
    994       ;;
    995     esac
    996   fi
    997   rm -rf conftest*
    998   ;;
    999 *-*-irix6*)
    1000   # Find out which ABI we are using.
    1001   echo '[#]line __oline__ "configure"' > conftest.$ac_ext
    1002   if AC_TRY_EVAL(ac_compile); then
    1003    if test "$lt_cv_prog_gnu_ld" = yes; then
    1004     case `/usr/bin/file conftest.$ac_objext` in
    1005     *32-bit*)
    1006       LD="${LD-ld} -melf32bsmip"
    1007       ;;
    1008     *N32*)
    1009       LD="${LD-ld} -melf32bmipn32"
    1010       ;;
    1011     *64-bit*)
    1012       LD="${LD-ld} -melf64bmip"
    1013       ;;
    1014     esac
    1015    else
    1016     case `/usr/bin/file conftest.$ac_objext` in
    1017     *32-bit*)
    1018       LD="${LD-ld} -32"
    1019       ;;
    1020     *N32*)
    1021       LD="${LD-ld} -n32"
    1022       ;;
    1023     *64-bit*)
    1024       LD="${LD-ld} -64"
    1025       ;;
    1026     esac
    1027    fi
    1028   fi
    1029   rm -rf conftest*
    1030   ;;
    1031 
    1032 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
    1033   # Find out which ABI we are using.
    1034   echo 'int i;' > conftest.$ac_ext
    1035   if AC_TRY_EVAL(ac_compile); then
    1036     case "`/usr/bin/file conftest.o`" in
    1037     *32-bit*)
    1038       case $host in
    1039         x86_64-*linux*)
    1040           LD="${LD-ld} -m elf_i386"
    1041           ;;
    1042         ppc64-*linux*|powerpc64-*linux*)
    1043           LD="${LD-ld} -m elf32ppclinux"
    1044           ;;
    1045         s390x-*linux*)
    1046           LD="${LD-ld} -m elf_s390"
    1047           ;;
    1048         sparc64-*linux*)
    1049           LD="${LD-ld} -m elf32_sparc"
    1050           ;;
    1051       esac
    1052       ;;
    1053     *64-bit*)
    1054       case $host in
    1055         x86_64-*linux*)
    1056           LD="${LD-ld} -m elf_x86_64"
    1057           ;;
    1058         ppc*-*linux*|powerpc*-*linux*)
    1059           LD="${LD-ld} -m elf64ppc"
    1060           ;;
    1061         s390*-*linux*)
    1062           LD="${LD-ld} -m elf64_s390"
    1063           ;;
    1064         sparc*-*linux*)
    1065           LD="${LD-ld} -m elf64_sparc"
    1066           ;;
    1067       esac
    1068       ;;
    1069     esac
    1070   fi
    1071   rm -rf conftest*
    1072   ;;
    1073 
    1074 *-*-linux*)
    1075   # Test if the compiler is 64bit
    1076   echo 'int i;' > conftest.$ac_ext
    1077   lt_cv_cc_64bit_output=no
    1078   if AC_TRY_EVAL(ac_compile); then
    1079     case `/usr/bin/file conftest.$ac_objext` in
    1080     *"ELF 64"*)
    1081       lt_cv_cc_64bit_output=yes
    1082       ;;
    1083     esac
    1084   fi
    1085   rm -rf conftest*
    1086   ;;
    1087  
    1088 *-*-sco3.2v5*)
    1089   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
    1090   SAVE_CFLAGS="$CFLAGS"
    1091   CFLAGS="$CFLAGS -belf"
    1092   AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
    1093     [AC_LANG_PUSH(C)
    1094      AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
    1095      AC_LANG_POP])
    1096   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
    1097     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
    1098     CFLAGS="$SAVE_CFLAGS"
    1099   fi
    1100   ;;
    1101 AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
    1102 [*-*-cygwin* | *-*-mingw* | *-*-pw32*)
    1103   AC_CHECK_TOOL(DLLTOOL, dlltool, false)
    1104   AC_CHECK_TOOL(AS, as, false)
    1105   AC_CHECK_TOOL(OBJDUMP, objdump, false)
    1106   ;;
    1107   ])
    1108 esac
    1109 
    1110 need_locks="$enable_libtool_lock"
    1111 
    1112 ])# _LT_AC_LOCK
    1113 
    1114 
    1115 # AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
    1116 #               [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
    1117 # ----------------------------------------------------------------
    1118 # Check whether the given compiler option works
    1119 AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
    1120 [AC_REQUIRE([LT_AC_PROG_SED])
    1121 AC_CACHE_CHECK([$1], [$2],
    1122   [$2=no
    1123   ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
    1124    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
    1125    lt_compiler_flag="$3"
    1126    # Insert the option either (1) after the last *FLAGS variable, or
    1127    # (2) before a word containing "conftest.", or (3) at the end.
    1128    # Note that $ac_compile itself does not contain backslashes and begins
    1129    # with a dollar sign (not a hyphen), so the echo should work correctly.
    1130    # The option is referenced via a variable to avoid confusing sed.
    1131    lt_compile=`echo "$ac_compile" | $SED \
    1132    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
    1133    -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
    1134    -e 's:$: $lt_compiler_flag:'`
    1135    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
    1136    (eval "$lt_compile" 2>conftest.err)
    1137    ac_status=$?
    1138    cat conftest.err >&AS_MESSAGE_LOG_FD
    1139    echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
    1140    if (exit $ac_status) && test -s "$ac_outfile"; then
    1141      # The compiler can only warn and ignore the option if not recognized
    1142      # So say no if there are warnings
    1143      if test ! -s conftest.err; then
    1144        $2=yes
    1145      fi
    1146    fi
    1147    $rm conftest*
    1148 ])
    1149 
    1150 if test x"[$]$2" = xyes; then
    1151     ifelse([$5], , :, [$5])
    1152 else
    1153     ifelse([$6], , :, [$6])
    1154 fi
    1155 ])# AC_LIBTOOL_COMPILER_OPTION
    1156 
    1157 
    1158 # AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
    1159 #                          [ACTION-SUCCESS], [ACTION-FAILURE])
    1160 # ------------------------------------------------------------
    1161 # Check whether the given compiler option works
    1162 AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
    1163 [AC_CACHE_CHECK([$1], [$2],
    1164   [$2=no
    1165    save_LDFLAGS="$LDFLAGS"
    1166    LDFLAGS="$LDFLAGS $3"
    1167    printf "$lt_simple_link_test_code" > conftest.$ac_ext
    1168    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
    1169      # The compiler can only warn and ignore the option if not recognized
    1170      # So say no if there are warnings
    1171      if test -s conftest.err; then
    1172        # Append any errors to the config.log.
    1173        cat conftest.err 1>&AS_MESSAGE_LOG_FD
    1174      else
    1175        $2=yes
    1176      fi
    1177    fi
    1178    $rm conftest*
    1179    LDFLAGS="$save_LDFLAGS"
    1180 ])
    1181 
    1182 if test x"[$]$2" = xyes; then
    1183     ifelse([$4], , :, [$4])
    1184 else
    1185     ifelse([$5], , :, [$5])
    1186 fi
    1187 ])# AC_LIBTOOL_LINKER_OPTION
    1188 
    1189 
    1190 # AC_LIBTOOL_SYS_MAX_CMD_LEN
    1191 # --------------------------
    1192 AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
    1193 [# find the maximum length of command line arguments
    1194 AC_MSG_CHECKING([the maximum length of command line arguments])
    1195 AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
    1196   i=0
    1197   testring="ABCD"
    1198 
    1199   case $build_os in
    1200   msdosdjgpp*)
    1201     # On DJGPP, this test can blow up pretty badly due to problems in libc
    1202     # (any single argument exceeding 2000 bytes causes a buffer overrun
    1203     # during glob expansion).  Even if it were fixed, the result of this
    1204     # check would be larger than it should be.
    1205     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
    1206     ;;
    1207 
    1208   gnu*)
    1209     # Under GNU Hurd, this test is not required because there is
    1210     # no limit to the length of command line arguments.
    1211     # Libtool will interpret -1 as no limit whatsoever
    1212     lt_cv_sys_max_cmd_len=-1;
    1213     ;;
    1214 
    1215   cygwin* | mingw*)
    1216     # On Win9x/ME, this test blows up -- it succeeds, but takes
    1217     # about 5 minutes as the teststring grows exponentially.
    1218     # Worse, since 9x/ME are not pre-emptively multitasking,
    1219     # you end up with a "frozen" computer, even though with patience
    1220     # the test eventually succeeds (with a max line length of 256k).
    1221     # Instead, let's just punt: use the minimum linelength reported by
    1222     # all of the supported platforms: 8192 (on NT/2K/XP).
    1223     lt_cv_sys_max_cmd_len=8192;
    1224     ;;
    1225 
    1226   amigaos*)
    1227     # On AmigaOS with pdksh, this test takes hours, literally.
    1228     # So we just punt and use a minimum line length of 8192.
    1229     lt_cv_sys_max_cmd_len=8192;
    1230     ;;
    1231 
    1232  *)
    1233     # If test is not a shell built-in, we'll probably end up computing a
    1234     # maximum length that is only half of the actual maximum length, but
    1235     # we can't tell.
    1236     while (test "X"`$CONFIG_SHELL [$]0 --fallback-echo "X$testring" 2>/dev/null` \
    1237                = "XX$testring") >/dev/null 2>&1 &&
    1238             new_result=`expr "X$testring" : ".*" 2>&1` &&
    1239             lt_cv_sys_max_cmd_len=$new_result &&
    1240             test $i != 17 # 1/2 MB should be enough
    1241     do
    1242       i=`expr $i + 1`
    1243       testring=$testring$testring
    1244     done
    1245     testring=
    1246     # Add a significant safety factor because C++ compilers can tack on massive
    1247     # amounts of additional arguments before passing them to the linker.
    1248     # It appears as though 1/2 is a usable value.
    1249     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
    1250     ;;
    1251   esac
    1252 ])
    1253 if test -n $lt_cv_sys_max_cmd_len ; then
    1254   AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
    1255 else
    1256   AC_MSG_RESULT(none)
    1257 fi
    1258 ])# AC_LIBTOOL_SYS_MAX_CMD_LEN
    1259 
    1260 
    1261 # _LT_AC_CHECK_DLFCN
    1262 # --------------------
    1263 AC_DEFUN([_LT_AC_CHECK_DLFCN],
    1264 [AC_CHECK_HEADERS(dlfcn.h)dnl
    1265 ])# _LT_AC_CHECK_DLFCN
    1266 
     1070AC_DIVERT_POP
     1071])# _LT_AC_PROG_ECHO_BACKSLASH
    12671072
    12681073# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
     
    12701075# ------------------------------------------------------------------
    12711076AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
    1272 [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
    1273 if test "$cross_compiling" = yes; then :
     1077[if test "$cross_compiling" = yes; then :
    12741078  [$4]
    12751079else
     1080  AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
    12761081  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
    12771082  lt_status=$lt_dlunknown
     
    13541159])# _LT_AC_TRY_DLOPEN_SELF
    13551160
    1356 
    13571161# AC_LIBTOOL_DLOPEN_SELF
    13581162# -------------------
    13591163AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
    1360 [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
    1361 if test "x$enable_dlopen" != xyes; then
     1164[if test "x$enable_dlopen" != xyes; then
    13621165  enable_dlopen=unknown
    13631166  enable_dlopen_self=unknown
     
    13741177    ;;
    13751178
    1376   mingw* | pw32*)
     1179  cygwin* | mingw* | pw32*)
    13771180    lt_cv_dlopen="LoadLibrary"
    13781181    lt_cv_dlopen_libs=
    13791182   ;;
    13801183
    1381   cygwin*)
    1382     lt_cv_dlopen="dlopen"
    1383     lt_cv_dlopen_libs=
    1384    ;;
    1385 
    1386   darwin*)
    1387   # if libdl is installed we need to link against it
    1388     AC_CHECK_LIB([dl], [dlopen],
    1389                 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
    1390     lt_cv_dlopen="dyld"
    1391     lt_cv_dlopen_libs=
    1392     lt_cv_dlopen_self=yes
    1393     ])
    1394    ;;
    1395 
    13961184  *)
    13971185    AC_CHECK_FUNC([shl_load],
    1398           [lt_cv_dlopen="shl_load"],
     1186          [lt_cv_dlopen="shl_load"],
    13991187      [AC_CHECK_LIB([dld], [shl_load],
    1400             [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
     1188            [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
    14011189        [AC_CHECK_FUNC([dlopen],
    14021190              [lt_cv_dlopen="dlopen"],
    14031191          [AC_CHECK_LIB([dl], [dlopen],
    1404                 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
     1192                [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
    14051193            [AC_CHECK_LIB([svld], [dlopen],
    1406                   [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
     1194                  [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
    14071195              [AC_CHECK_LIB([dld], [dld_link],
    1408                     [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
     1196                    [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
    14091197              ])
    14101198            ])
     
    14241212  dlopen)
    14251213    save_CPPFLAGS="$CPPFLAGS"
     1214    AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
    14261215    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
    14271216
     
    14671256])# AC_LIBTOOL_DLOPEN_SELF
    14681257
    1469 
    1470 # AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
    1471 # ---------------------------------
    1472 # Check to see if options -c and -o are simultaneously supported by compiler
    1473 AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
    1474 [AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
    1475 AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
    1476   [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
    1477   [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
    1478    $rm -r conftest 2>/dev/null
    1479    mkdir conftest
    1480    cd conftest
    1481    mkdir out
    1482    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
    1483 
    1484    lt_compiler_flag="-o out/conftest2.$ac_objext"
    1485    # Insert the option either (1) after the last *FLAGS variable, or
    1486    # (2) before a word containing "conftest.", or (3) at the end.
    1487    # Note that $ac_compile itself does not contain backslashes and begins
    1488    # with a dollar sign (not a hyphen), so the echo should work correctly.
    1489    lt_compile=`echo "$ac_compile" | $SED \
    1490    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
    1491    -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
    1492    -e 's:$: $lt_compiler_flag:'`
    1493    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
    1494    (eval "$lt_compile" 2>out/conftest.err)
    1495    ac_status=$?
    1496    cat out/conftest.err >&AS_MESSAGE_LOG_FD
    1497    echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
    1498    if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1499    then
    1500      # The compiler can only warn and ignore the option if not recognized
    1501      # So say no if there are warnings
    1502      if test ! -s out/conftest.err; then
    1503        _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
    1504      fi
    1505    fi
    1506    chmod u+w .
    1507    $rm conftest*
    1508    # SGI C++ compiler will create directory out/ii_files/ for
    1509    # template instantiation
    1510    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
    1511    $rm out/* && rmdir out
    1512    cd ..
    1513    rmdir conftest
    1514    $rm conftest*
     1258AC_DEFUN([_LT_AC_LTCONFIG_HACK],
     1259[AC_REQUIRE([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])dnl
     1260# Sed substitution that helps us do robust quoting.  It backslashifies
     1261# metacharacters that are still active within double-quoted strings.
     1262Xsed='sed -e s/^X//'
     1263sed_quote_subst='s/\([[\\"\\`$\\\\]]\)/\\\1/g'
     1264
     1265# Same as above, but do not quote variable references.
     1266double_quote_subst='s/\([[\\"\\`\\\\]]\)/\\\1/g'
     1267
     1268# Sed substitution to delay expansion of an escaped shell variable in a
     1269# double_quote_subst'ed string.
     1270delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
     1271
     1272# Constants:
     1273rm="rm -f"
     1274
     1275# Global variables:
     1276default_ofile=libtool
     1277can_build_shared=yes
     1278
     1279# All known linkers require a `.a' archive for static linking (except M$VC,
     1280# which needs '.lib').
     1281libext=a
     1282ltmain="$ac_aux_dir/ltmain.sh"
     1283ofile="$default_ofile"
     1284with_gnu_ld="$lt_cv_prog_gnu_ld"
     1285need_locks="$enable_libtool_lock"
     1286
     1287old_CC="$CC"
     1288old_CFLAGS="$CFLAGS"
     1289
     1290# Set sane defaults for various variables
     1291test -z "$AR" && AR=ar
     1292test -z "$AR_FLAGS" && AR_FLAGS=cru
     1293test -z "$AS" && AS=as
     1294test -z "$CC" && CC=cc
     1295test -z "$DLLTOOL" && DLLTOOL=dlltool
     1296test -z "$LD" && LD=ld
     1297test -z "$LN_S" && LN_S="ln -s"
     1298test -z "$MAGIC_CMD" && MAGIC_CMD=file
     1299test -z "$NM" && NM=nm
     1300test -z "$OBJDUMP" && OBJDUMP=objdump
     1301test -z "$RANLIB" && RANLIB=:
     1302test -z "$STRIP" && STRIP=:
     1303test -z "$ac_objext" && ac_objext=o
     1304
     1305if test x"$host" != x"$build"; then
     1306  ac_tool_prefix=${host_alias}-
     1307else
     1308  ac_tool_prefix=
     1309fi
     1310
     1311# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
     1312case $host_os in
     1313linux-gnu*) ;;
     1314linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
     1315esac
     1316
     1317case $host_os in
     1318aix3*)
     1319  # AIX sometimes has problems with the GCC collect2 program.  For some
     1320  # reason, if we set the COLLECT_NAMES environment variable, the problems
     1321  # vanish in a puff of smoke.
     1322  if test "X${COLLECT_NAMES+set}" != Xset; then
     1323    COLLECT_NAMES=
     1324    export COLLECT_NAMES
     1325  fi
     1326  ;;
     1327esac
     1328
     1329# Determine commands to create old-style static archives.
     1330old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
     1331old_postinstall_cmds='chmod 644 $oldlib'
     1332old_postuninstall_cmds=
     1333
     1334if test -n "$RANLIB"; then
     1335  case $host_os in
     1336  openbsd*)
     1337    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
     1338    ;;
     1339  *)
     1340    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
     1341    ;;
     1342  esac
     1343  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
     1344fi
     1345
     1346# Allow CC to be a program name with arguments.
     1347set dummy $CC
     1348compiler="[$]2"
     1349
     1350AC_MSG_CHECKING([for objdir])
     1351rm -f .libs 2>/dev/null
     1352mkdir .libs 2>/dev/null
     1353if test -d .libs; then
     1354  objdir=.libs
     1355else
     1356  # MS-DOS does not allow filenames that begin with a dot.
     1357  objdir=_libs
     1358fi
     1359rmdir .libs 2>/dev/null
     1360AC_MSG_RESULT($objdir)
     1361
     1362
     1363AC_ARG_WITH(pic,
     1364[  --with-pic              try to use only PIC/non-PIC objects [default=use both]],
     1365pic_mode="$withval", pic_mode=default)
     1366test -z "$pic_mode" && pic_mode=default
     1367
     1368# We assume here that the value for lt_cv_prog_cc_pic will not be cached
     1369# in isolation, and that seeing it set (from the cache) indicates that
     1370# the associated values are set (in the cache) correctly too.
     1371AC_MSG_CHECKING([for $compiler option to produce PIC])
     1372AC_CACHE_VAL(lt_cv_prog_cc_pic,
     1373[ lt_cv_prog_cc_pic=
     1374  lt_cv_prog_cc_shlib=
     1375  lt_cv_prog_cc_wl=
     1376  lt_cv_prog_cc_static=
     1377  lt_cv_prog_cc_no_builtin=
     1378  lt_cv_prog_cc_can_build_shared=$can_build_shared
     1379
     1380  if test "$GCC" = yes; then
     1381    lt_cv_prog_cc_wl='-Wl,'
     1382    lt_cv_prog_cc_static='-static'
     1383
     1384    case $host_os in
     1385    aix*)
     1386      # Below there is a dirty hack to force normal static linking with -ldl
     1387      # The problem is because libdl dynamically linked with both libc and
     1388      # libC (AIX C++ library), which obviously doesn't included in libraries
     1389      # list by gcc. This cause undefined symbols with -static flags.
     1390      # This hack allows C programs to be linked with "-static -ldl", but
     1391      # not sure about C++ programs.
     1392      lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
     1393      ;;
     1394    amigaos*)
     1395      # FIXME: we need at least 68020 code to build shared libraries, but
     1396      # adding the `-m68020' flag to GCC prevents building anything better,
     1397      # like `-m68040'.
     1398      lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
     1399      ;;
     1400    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
     1401      # PIC is the default for these OSes.
     1402      ;;
     1403    darwin* | rhapsody*)
     1404      # PIC is the default on this platform
     1405      # Common symbols not allowed in MH_DYLIB files
     1406      lt_cv_prog_cc_pic='-fno-common'
     1407      ;;
     1408    cygwin* | mingw* | pw32* | os2*)
     1409      # This hack is so that the source file can tell whether it is being
     1410      # built for inclusion in a dll (and should export symbols for example).
     1411      lt_cv_prog_cc_pic='-DDLL_EXPORT'
     1412      ;;
     1413    sysv4*MP*)
     1414      if test -d /usr/nec; then
     1415         lt_cv_prog_cc_pic=-Kconform_pic
     1416      fi
     1417      ;;
     1418    *)
     1419      lt_cv_prog_cc_pic='-fPIC'
     1420      ;;
     1421    esac
     1422  else
     1423    # PORTME Check for PIC flags for the system compiler.
     1424    case $host_os in
     1425    aix3* | aix4* | aix5*)
     1426      lt_cv_prog_cc_wl='-Wl,'
     1427      # All AIX code is PIC.
     1428      if test "$host_cpu" = ia64; then
     1429        # AIX 5 now supports IA64 processor
     1430        lt_cv_prog_cc_static='-Bstatic'
     1431      else
     1432        lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
     1433      fi
     1434      ;;
     1435
     1436    hpux9* | hpux10* | hpux11*)
     1437      # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
     1438      lt_cv_prog_cc_wl='-Wl,'
     1439      lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
     1440      lt_cv_prog_cc_pic='+Z'
     1441      ;;
     1442
     1443    irix5* | irix6* | nonstopux*)
     1444      lt_cv_prog_cc_wl='-Wl,'
     1445      lt_cv_prog_cc_static='-non_shared'
     1446      # PIC (with -KPIC) is the default.
     1447      ;;
     1448
     1449    cygwin* | mingw* | pw32* | os2*)
     1450      # This hack is so that the source file can tell whether it is being
     1451      # built for inclusion in a dll (and should export symbols for example).
     1452      lt_cv_prog_cc_pic='-DDLL_EXPORT'
     1453      ;;
     1454
     1455    newsos6)
     1456      lt_cv_prog_cc_pic='-KPIC'
     1457      lt_cv_prog_cc_static='-Bstatic'
     1458      ;;
     1459
     1460    osf3* | osf4* | osf5*)
     1461      # All OSF/1 code is PIC.
     1462      lt_cv_prog_cc_wl='-Wl,'
     1463      lt_cv_prog_cc_static='-non_shared'
     1464      ;;
     1465
     1466    sco3.2v5*)
     1467      lt_cv_prog_cc_pic='-Kpic'
     1468      lt_cv_prog_cc_static='-dn'
     1469      lt_cv_prog_cc_shlib='-belf'
     1470      ;;
     1471
     1472    solaris*)
     1473      lt_cv_prog_cc_pic='-KPIC'
     1474      lt_cv_prog_cc_static='-Bstatic'
     1475      lt_cv_prog_cc_wl='-Wl,'
     1476      ;;
     1477
     1478    sunos4*)
     1479      lt_cv_prog_cc_pic='-PIC'
     1480      lt_cv_prog_cc_static='-Bstatic'
     1481      lt_cv_prog_cc_wl='-Qoption ld '
     1482      ;;
     1483
     1484    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
     1485      lt_cv_prog_cc_pic='-KPIC'
     1486      lt_cv_prog_cc_static='-Bstatic'
     1487      if test "x$host_vendor" = xsni; then
     1488        lt_cv_prog_cc_wl='-LD'
     1489      else
     1490        lt_cv_prog_cc_wl='-Wl,'
     1491      fi
     1492      ;;
     1493
     1494    uts4*)
     1495      lt_cv_prog_cc_pic='-pic'
     1496      lt_cv_prog_cc_static='-Bstatic'
     1497      ;;
     1498
     1499    sysv4*MP*)
     1500      if test -d /usr/nec ;then
     1501        lt_cv_prog_cc_pic='-Kconform_pic'
     1502        lt_cv_prog_cc_static='-Bstatic'
     1503      fi
     1504      ;;
     1505
     1506    *)
     1507      lt_cv_prog_cc_can_build_shared=no
     1508      ;;
     1509    esac
     1510  fi
    15151511])
    1516 ])# AC_LIBTOOL_PROG_CC_C_O
    1517 
    1518 
    1519 # AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
    1520 # -----------------------------------------
     1512if test -z "$lt_cv_prog_cc_pic"; then
     1513  AC_MSG_RESULT([none])
     1514else
     1515  AC_MSG_RESULT([$lt_cv_prog_cc_pic])
     1516
     1517  # Check to make sure the pic_flag actually works.
     1518  AC_MSG_CHECKING([if $compiler PIC flag $lt_cv_prog_cc_pic works])
     1519  AC_CACHE_VAL(lt_cv_prog_cc_pic_works, [dnl
     1520    save_CFLAGS="$CFLAGS"
     1521    CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
     1522    AC_TRY_COMPILE([], [], [dnl
     1523      case $host_os in
     1524      hpux9* | hpux10* | hpux11*)
     1525        # On HP-UX, both CC and GCC only warn that PIC is supported... then
     1526        # they create non-PIC objects.  So, if there were any warnings, we
     1527        # assume that PIC is not supported.
     1528        if test -s conftest.err; then
     1529          lt_cv_prog_cc_pic_works=no
     1530        else
     1531          lt_cv_prog_cc_pic_works=yes
     1532        fi
     1533        ;;
     1534      *)
     1535        lt_cv_prog_cc_pic_works=yes
     1536        ;;
     1537      esac
     1538    ], [dnl
     1539      lt_cv_prog_cc_pic_works=no
     1540    ])
     1541    CFLAGS="$save_CFLAGS"
     1542  ])
     1543
     1544  if test "X$lt_cv_prog_cc_pic_works" = Xno; then
     1545    lt_cv_prog_cc_pic=
     1546    lt_cv_prog_cc_can_build_shared=no
     1547  else
     1548    lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
     1549  fi
     1550
     1551  AC_MSG_RESULT([$lt_cv_prog_cc_pic_works])
     1552fi
     1553
     1554# Check for any special shared library compilation flags.
     1555if test -n "$lt_cv_prog_cc_shlib"; then
     1556  AC_MSG_WARN([\`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries])
     1557  if echo "$old_CC $old_CFLAGS " | egrep -e "[[         ]]$lt_cv_prog_cc_shlib[[        ]]" >/dev/null; then :
     1558  else
     1559   AC_MSG_WARN([add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure])
     1560    lt_cv_prog_cc_can_build_shared=no
     1561  fi
     1562fi
     1563
     1564AC_MSG_CHECKING([if $compiler static flag $lt_cv_prog_cc_static works])
     1565AC_CACHE_VAL([lt_cv_prog_cc_static_works], [dnl
     1566  lt_cv_prog_cc_static_works=no
     1567  save_LDFLAGS="$LDFLAGS"
     1568  LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
     1569  AC_TRY_LINK([], [], [lt_cv_prog_cc_static_works=yes])
     1570  LDFLAGS="$save_LDFLAGS"
     1571])
     1572
     1573# Belt *and* braces to stop my trousers falling down:
     1574test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
     1575AC_MSG_RESULT([$lt_cv_prog_cc_static_works])
     1576
     1577pic_flag="$lt_cv_prog_cc_pic"
     1578special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
     1579wl="$lt_cv_prog_cc_wl"
     1580link_static_flag="$lt_cv_prog_cc_static"
     1581no_builtin_flag="$lt_cv_prog_cc_no_builtin"
     1582can_build_shared="$lt_cv_prog_cc_can_build_shared"
     1583
     1584
     1585# Check to see if options -o and -c are simultaneously supported by compiler
     1586AC_MSG_CHECKING([if $compiler supports -c -o file.$ac_objext])
     1587AC_CACHE_VAL([lt_cv_compiler_c_o], [
     1588$rm -r conftest 2>/dev/null
     1589mkdir conftest
     1590cd conftest
     1591echo "int some_variable = 0;" > conftest.$ac_ext
     1592mkdir out
     1593# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
     1594# that will create temporary files in the current directory regardless of
     1595# the output directory.  Thus, making CWD read-only will cause this test
     1596# to fail, enabling locking or at least warning the user not to do parallel
     1597# builds.
     1598chmod -w .
     1599save_CFLAGS="$CFLAGS"
     1600CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
     1601compiler_c_o=no
     1602if { (eval echo configure:__oline__: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
     1603  # The compiler can only warn and ignore the option if not recognized
     1604  # So say no if there are warnings
     1605  if test -s out/conftest.err; then
     1606    lt_cv_compiler_c_o=no
     1607  else
     1608    lt_cv_compiler_c_o=yes
     1609  fi
     1610else
     1611  # Append any errors to the config.log.
     1612  cat out/conftest.err 1>&AC_FD_CC
     1613  lt_cv_compiler_c_o=no
     1614fi
     1615CFLAGS="$save_CFLAGS"
     1616chmod u+w .
     1617$rm conftest* out/*
     1618rmdir out
     1619cd ..
     1620rmdir conftest
     1621$rm -r conftest 2>/dev/null
     1622])
     1623compiler_c_o=$lt_cv_compiler_c_o
     1624AC_MSG_RESULT([$compiler_c_o])
     1625
     1626if test x"$compiler_c_o" = x"yes"; then
     1627  # Check to see if we can write to a .lo
     1628  AC_MSG_CHECKING([if $compiler supports -c -o file.lo])
     1629  AC_CACHE_VAL([lt_cv_compiler_o_lo], [
     1630  lt_cv_compiler_o_lo=no
     1631  save_CFLAGS="$CFLAGS"
     1632  CFLAGS="$CFLAGS -c -o conftest.lo"
     1633  save_objext="$ac_objext"
     1634  ac_objext=lo
     1635  AC_TRY_COMPILE([], [int some_variable = 0;], [dnl
     1636    # The compiler can only warn and ignore the option if not recognized
     1637    # So say no if there are warnings
     1638    if test -s conftest.err; then
     1639      lt_cv_compiler_o_lo=no
     1640    else
     1641      lt_cv_compiler_o_lo=yes
     1642    fi
     1643  ])
     1644  ac_objext="$save_objext"
     1645  CFLAGS="$save_CFLAGS"
     1646  ])
     1647  compiler_o_lo=$lt_cv_compiler_o_lo
     1648  AC_MSG_RESULT([$compiler_o_lo])
     1649else
     1650  compiler_o_lo=no
     1651fi
     1652
    15211653# Check to see if we can do hard links to lock some files if needed
    1522 AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
    1523 [AC_REQUIRE([_LT_AC_LOCK])dnl
    1524 
    15251654hard_links="nottested"
    1526 if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
     1655if test "$compiler_c_o" = no && test "$need_locks" != no; then
    15271656  # do not overwrite the value of need_locks provided by the user
    15281657  AC_MSG_CHECKING([if we can lock with hard links])
     
    15351664  AC_MSG_RESULT([$hard_links])
    15361665  if test "$hard_links" = no; then
    1537     AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
     1666    AC_MSG_WARN([\`$CC' does not support \`-c -o', so \`make -j' may be unsafe])
    15381667    need_locks=warn
    15391668  fi
     
    15411670  need_locks=no
    15421671fi
    1543 ])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
    1544 
    1545 
    1546 # AC_LIBTOOL_OBJDIR
    1547 # -----------------
    1548 AC_DEFUN([AC_LIBTOOL_OBJDIR],
    1549 [AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
    1550 [rm -f .libs 2>/dev/null
    1551 mkdir .libs 2>/dev/null
    1552 if test -d .libs; then
    1553   lt_cv_objdir=.libs
     1672
     1673if test "$GCC" = yes; then
     1674  # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
     1675  AC_MSG_CHECKING([if $compiler supports -fno-rtti -fno-exceptions])
     1676  echo "int some_variable = 0;" > conftest.$ac_ext
     1677  save_CFLAGS="$CFLAGS"
     1678  CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
     1679  compiler_rtti_exceptions=no
     1680  AC_TRY_COMPILE([], [int some_variable = 0;], [dnl
     1681    # The compiler can only warn and ignore the option if not recognized
     1682    # So say no if there are warnings
     1683    if test -s conftest.err; then
     1684      compiler_rtti_exceptions=no
     1685    else
     1686      compiler_rtti_exceptions=yes
     1687    fi
     1688  ])
     1689  CFLAGS="$save_CFLAGS"
     1690  AC_MSG_RESULT([$compiler_rtti_exceptions])
     1691
     1692  if test "$compiler_rtti_exceptions" = "yes"; then
     1693    no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
     1694  else
     1695    no_builtin_flag=' -fno-builtin'
     1696  fi
     1697fi
     1698
     1699# See if the linker supports building shared libraries.
     1700AC_MSG_CHECKING([whether the linker ($LD) supports shared libraries])
     1701
     1702allow_undefined_flag=
     1703no_undefined_flag=
     1704need_lib_prefix=unknown
     1705need_version=unknown
     1706# when you set need_version to no, make sure it does not cause -set_version
     1707# flags to be left without arguments
     1708archive_cmds=
     1709archive_expsym_cmds=
     1710old_archive_from_new_cmds=
     1711old_archive_from_expsyms_cmds=
     1712export_dynamic_flag_spec=
     1713whole_archive_flag_spec=
     1714thread_safe_flag_spec=
     1715hardcode_into_libs=no
     1716hardcode_libdir_flag_spec=
     1717hardcode_libdir_separator=
     1718hardcode_direct=no
     1719hardcode_minus_L=no
     1720hardcode_shlibpath_var=unsupported
     1721runpath_var=
     1722link_all_deplibs=unknown
     1723always_export_symbols=no
     1724export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
     1725# include_expsyms should be a list of space-separated symbols to be *always*
     1726# included in the symbol list
     1727include_expsyms=
     1728# exclude_expsyms can be an egrep regular expression of symbols to exclude
     1729# it will be wrapped by ` (' and `)$', so one must not match beginning or
     1730# end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
     1731# as well as any symbol that contains `d'.
     1732exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
     1733# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
     1734# platforms (ab)use it in PIC code, but their linkers get confused if
     1735# the symbol is explicitly referenced.  Since portable code cannot
     1736# rely on this symbol name, it's probably fine to never include it in
     1737# preloaded symbol tables.
     1738extract_expsyms_cmds=
     1739
     1740case $host_os in
     1741cygwin* | mingw* | pw32*)
     1742  # FIXME: the MSVC++ port hasn't been tested in a loooong time
     1743  # When not using gcc, we currently assume that we are using
     1744  # Microsoft Visual C++.
     1745  if test "$GCC" != yes; then
     1746    with_gnu_ld=no
     1747  fi
     1748  ;;
     1749openbsd*)
     1750  with_gnu_ld=no
     1751  ;;
     1752esac
     1753
     1754ld_shlibs=yes
     1755if test "$with_gnu_ld" = yes; then
     1756  # If archive_cmds runs LD, not CC, wlarc should be empty
     1757  wlarc='${wl}'
     1758
     1759  # See if GNU ld supports shared libraries.
     1760  case $host_os in
     1761  aix3* | aix4* | aix5*)
     1762    # On AIX, the GNU linker is very broken
     1763    # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
     1764    ld_shlibs=no
     1765    cat <<EOF 1>&2
     1766
     1767*** Warning: the GNU linker, at least up to release 2.9.1, is reported
     1768*** to be unable to reliably create shared libraries on AIX.
     1769*** Therefore, libtool is disabling shared libraries support.  If you
     1770*** really care for shared libraries, you may want to modify your PATH
     1771*** so that a non-GNU linker is found, and then restart.
     1772
     1773EOF
     1774    ;;
     1775
     1776  amigaos*)
     1777    archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
     1778    hardcode_libdir_flag_spec='-L$libdir'
     1779    hardcode_minus_L=yes
     1780
     1781    # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
     1782    # that the semantics of dynamic libraries on AmigaOS, at least up
     1783    # to version 4, is to share data among multiple programs linked
     1784    # with the same dynamic library.  Since this doesn't match the
     1785    # behavior of shared libraries on other platforms, we can use
     1786    # them.
     1787    ld_shlibs=no
     1788    ;;
     1789
     1790  beos*)
     1791    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
     1792      allow_undefined_flag=unsupported
     1793      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
     1794      # support --undefined.  This deserves some investigation.  FIXME
     1795      archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
     1796    else
     1797      ld_shlibs=no
     1798    fi
     1799    ;;
     1800
     1801  cygwin* | mingw* | pw32*)
     1802    # hardcode_libdir_flag_spec is actually meaningless, as there is
     1803    # no search path for DLLs.
     1804    hardcode_libdir_flag_spec='-L$libdir'
     1805    allow_undefined_flag=unsupported
     1806    always_export_symbols=yes
     1807
     1808    extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
     1809      sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
     1810      test -f $output_objdir/impgen.exe || (cd $output_objdir && \
     1811      if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
     1812      else $CC -o impgen impgen.c ; fi)~
     1813      $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
     1814
     1815    old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
     1816
     1817    # cygwin and mingw dlls have different entry points and sets of symbols
     1818    # to exclude.
     1819    # FIXME: what about values for MSVC?
     1820    dll_entry=__cygwin_dll_entry@12
     1821    dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
     1822    case $host_os in
     1823    mingw*)
     1824      # mingw values
     1825      dll_entry=_DllMainCRTStartup@12
     1826      dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
     1827      ;;
     1828    esac
     1829
     1830    # mingw and cygwin differ, and it's simplest to just exclude the union
     1831    # of the two symbol sets.
     1832    dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
     1833
     1834    # recent cygwin and mingw systems supply a stub DllMain which the user
     1835    # can override, but on older systems we have to supply one (in ltdll.c)
     1836    if test "x$lt_cv_need_dllmain" = "xyes"; then
     1837      ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
     1838      ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
     1839        test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
     1840    else
     1841      ltdll_obj=
     1842      ltdll_cmds=
     1843    fi
     1844
     1845    # Extract the symbol export list from an `--export-all' def file,
     1846    # then regenerate the def file from the symbol export list, so that
     1847    # the compiled dll only exports the symbol export list.
     1848    # Be careful not to strip the DATA tag left be newer dlltools.
     1849    export_symbols_cmds="$ltdll_cmds"'
     1850      $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
     1851      sed -e "1,/EXPORTS/d" -e "s/ @ [[0-9]]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
     1852
     1853    # If the export-symbols file already is a .def file (1st line
     1854    # is EXPORTS), use it as is.
     1855    # If DATA tags from a recent dlltool are present, honour them!
     1856    archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
     1857        cp $export_symbols $output_objdir/$soname-def;
     1858      else
     1859        echo EXPORTS > $output_objdir/$soname-def;
     1860        _lt_hint=1;
     1861        cat $export_symbols | while read symbol; do
     1862         set dummy \$symbol;
     1863         case \[$]# in
     1864           2) echo "   \[$]2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
     1865           *) echo "     \[$]2 @ \$_lt_hint \[$]3 ; " >> $output_objdir/$soname-def;;
     1866         esac;
     1867         _lt_hint=`expr 1 + \$_lt_hint`;
     1868        done;
     1869      fi~
     1870      '"$ltdll_cmds"'
     1871      $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
     1872      $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
     1873      $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
     1874      $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
     1875      $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
     1876    ;;
     1877
     1878  netbsd*)
     1879    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
     1880      archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
     1881      wlarc=
     1882    else
     1883      archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
     1884      archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
     1885    fi
     1886    ;;
     1887
     1888  solaris* | sysv5*)
     1889    if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
     1890      ld_shlibs=no
     1891      cat <<EOF 1>&2
     1892
     1893*** Warning: The releases 2.8.* of the GNU linker cannot reliably
     1894*** create shared libraries on Solaris systems.  Therefore, libtool
     1895*** is disabling shared libraries support.  We urge you to upgrade GNU
     1896*** binutils to release 2.9.1 or newer.  Another option is to modify
     1897*** your PATH or compiler configuration so that the native linker is
     1898*** used, and then restart.
     1899
     1900EOF
     1901    elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
     1902      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
     1903      archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
     1904    else
     1905      ld_shlibs=no
     1906    fi
     1907    ;;
     1908
     1909  sunos4*)
     1910    archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
     1911    wlarc=
     1912    hardcode_direct=yes
     1913    hardcode_shlibpath_var=no
     1914    ;;
     1915
     1916  *)
     1917    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
     1918      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
     1919      archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
     1920    else
     1921      ld_shlibs=no
     1922    fi
     1923    ;;
     1924  esac
     1925
     1926  if test "$ld_shlibs" = yes; then
     1927    runpath_var=LD_RUN_PATH
     1928    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
     1929    export_dynamic_flag_spec='${wl}--export-dynamic'
     1930    case $host_os in
     1931    cygwin* | mingw* | pw32*)
     1932      # dlltool doesn't understand --whole-archive et. al.
     1933      whole_archive_flag_spec=
     1934      ;;
     1935    *)
     1936      # ancient GNU ld didn't support --whole-archive et. al.
     1937      if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
     1938        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
     1939      else
     1940        whole_archive_flag_spec=
     1941      fi
     1942      ;;
     1943    esac
     1944  fi
    15541945else
    1555   # MS-DOS does not allow filenames that begin with a dot.
    1556   lt_cv_objdir=_libs
    1557 fi
    1558 rmdir .libs 2>/dev/null])
    1559 objdir=$lt_cv_objdir
    1560 ])# AC_LIBTOOL_OBJDIR
    1561 
    1562 
    1563 # AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
    1564 # ----------------------------------------------
     1946  # PORTME fill in a description of your system's linker (not GNU ld)
     1947  case $host_os in
     1948  aix3*)
     1949    allow_undefined_flag=unsupported
     1950    always_export_symbols=yes
     1951    archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
     1952    # Note: this linker hardcodes the directories in LIBPATH if there
     1953    # are no directories specified by -L.
     1954    hardcode_minus_L=yes
     1955    if test "$GCC" = yes && test -z "$link_static_flag"; then
     1956      # Neither direct hardcoding nor static linking is supported with a
     1957      # broken collect2.
     1958      hardcode_direct=unsupported
     1959    fi
     1960    ;;
     1961
     1962  aix4* | aix5*)
     1963    if test "$host_cpu" = ia64; then
     1964      # On IA64, the linker does run time linking by default, so we don't
     1965      # have to do anything special.
     1966      aix_use_runtimelinking=no
     1967      exp_sym_flag='-Bexport'
     1968      no_entry_flag=""
     1969    else
     1970      aix_use_runtimelinking=no
     1971
     1972      # Test if we are trying to use run time linking or normal
     1973      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
     1974      # need to do runtime linking.
     1975      case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
     1976        for ld_flag in $LDFLAGS; do
     1977          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
     1978            aix_use_runtimelinking=yes
     1979            break
     1980          fi
     1981        done
     1982      esac
     1983
     1984      exp_sym_flag='-bexport'
     1985      no_entry_flag='-bnoentry'
     1986    fi
     1987
     1988    # When large executables or shared objects are built, AIX ld can
     1989    # have problems creating the table of contents.  If linking a library
     1990    # or program results in "error TOC overflow" add -mminimal-toc to
     1991    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
     1992    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
     1993
     1994    hardcode_direct=yes
     1995    archive_cmds=''
     1996    hardcode_libdir_separator=':'
     1997    if test "$GCC" = yes; then
     1998      case $host_os in aix4.[[012]]|aix4.[[012]].*)
     1999        collect2name=`${CC} -print-prog-name=collect2`
     2000        if test -f "$collect2name" && \
     2001          strings "$collect2name" | grep resolve_lib_name >/dev/null
     2002        then
     2003          # We have reworked collect2
     2004          hardcode_direct=yes
     2005        else
     2006          # We have old collect2
     2007          hardcode_direct=unsupported
     2008          # It fails to find uninstalled libraries when the uninstalled
     2009          # path is not listed in the libpath.  Setting hardcode_minus_L
     2010          # to unsupported forces relinking
     2011          hardcode_minus_L=yes
     2012          hardcode_libdir_flag_spec='-L$libdir'
     2013          hardcode_libdir_separator=
     2014        fi
     2015      esac
     2016
     2017      shared_flag='-shared'
     2018    else
     2019      # not using gcc
     2020      if test "$host_cpu" = ia64; then
     2021        shared_flag='${wl}-G'
     2022      else
     2023        if test "$aix_use_runtimelinking" = yes; then
     2024          shared_flag='${wl}-G'
     2025        else
     2026          shared_flag='${wl}-bM:SRE'
     2027        fi
     2028      fi
     2029    fi
     2030
     2031    # It seems that -bexpall can do strange things, so it is better to
     2032    # generate a list of symbols to export.
     2033    always_export_symbols=yes
     2034    if test "$aix_use_runtimelinking" = yes; then
     2035      # Warning - without using the other runtime loading flags (-brtl),
     2036      # -berok will link without error, but may produce a broken library.
     2037      allow_undefined_flag='-berok'
     2038      hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
     2039      archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
     2040    else
     2041      if test "$host_cpu" = ia64; then
     2042        hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
     2043        allow_undefined_flag="-z nodefs"
     2044        archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
     2045      else
     2046        hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
     2047        # Warning - without using the other run time loading flags,
     2048        # -berok will link without error, but may produce a broken library.
     2049        allow_undefined_flag='${wl}-berok'
     2050        # This is a bit strange, but is similar to how AIX traditionally builds
     2051        # it's shared libraries.
     2052        archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
     2053      fi
     2054    fi
     2055    ;;
     2056
     2057  amigaos*)
     2058    archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
     2059    hardcode_libdir_flag_spec='-L$libdir'
     2060    hardcode_minus_L=yes
     2061    # see comment about different semantics on the GNU ld section
     2062    ld_shlibs=no
     2063    ;;
     2064
     2065  cygwin* | mingw* | pw32*)
     2066    # When not using gcc, we currently assume that we are using
     2067    # Microsoft Visual C++.
     2068    # hardcode_libdir_flag_spec is actually meaningless, as there is
     2069    # no search path for DLLs.
     2070    hardcode_libdir_flag_spec=' '
     2071    allow_undefined_flag=unsupported
     2072    # Tell ltmain to make .lib files, not .a files.
     2073    libext=lib
     2074    # FIXME: Setting linknames here is a bad hack.
     2075    archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
     2076    # The linker will automatically build a .lib file if we build a DLL.
     2077    old_archive_from_new_cmds='true'
     2078    # FIXME: Should let the user specify the lib program.
     2079    old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
     2080    fix_srcfile_path='`cygpath -w "$srcfile"`'
     2081    ;;
     2082
     2083  darwin* | rhapsody*)
     2084    case "$host_os" in
     2085    rhapsody* | darwin1.[[012]])
     2086      allow_undefined_flag='-undefined suppress'
     2087      ;;
     2088    *) # Darwin 1.3 on
     2089      allow_undefined_flag='-flat_namespace -undefined suppress'
     2090      ;;
     2091    esac
     2092    # FIXME: Relying on posixy $() will cause problems for
     2093    #        cross-compilation, but unfortunately the echo tests do not
     2094    #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
     2095    #        `"' quotes if we put them in here... so don't!
     2096    archive_cmds='$nonopt $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
     2097    # We need to add '_' to the symbols in $export_symbols first
     2098    #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
     2099    hardcode_direct=yes
     2100    hardcode_shlibpath_var=no
     2101    whole_archive_flag_spec='-all_load $convenience'
     2102    ;;
     2103
     2104  freebsd1*)
     2105    ld_shlibs=no
     2106    ;;
     2107
     2108  # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
     2109  # support.  Future versions do this automatically, but an explicit c++rt0.o
     2110  # does not break anything, and helps significantly (at the cost of a little
     2111  # extra space).
     2112  freebsd2.2*)
     2113    archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
     2114    hardcode_libdir_flag_spec='-R$libdir'
     2115    hardcode_direct=yes
     2116    hardcode_shlibpath_var=no
     2117    ;;
     2118
     2119  # Unfortunately, older versions of FreeBSD 2 do not have this feature.
     2120  freebsd2*)
     2121    archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
     2122    hardcode_direct=yes
     2123    hardcode_minus_L=yes
     2124    hardcode_shlibpath_var=no
     2125    ;;
     2126
     2127  # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
     2128  freebsd*)
     2129    archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
     2130    hardcode_libdir_flag_spec='-R$libdir'
     2131    hardcode_direct=yes
     2132    hardcode_shlibpath_var=no
     2133    ;;
     2134
     2135  hpux9* | hpux10* | hpux11*)
     2136    case $host_os in
     2137    hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;;
     2138    *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
     2139    esac
     2140    hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
     2141    hardcode_libdir_separator=:
     2142    hardcode_direct=yes
     2143    hardcode_minus_L=yes # Not in the search PATH, but as the default
     2144                         # location of the library.
     2145    export_dynamic_flag_spec='${wl}-E'
     2146    ;;
     2147
     2148  irix5* | irix6* | nonstopux*)
     2149    if test "$GCC" = yes; then
     2150      archive_cmds='$CC -shared $libobjs $deplibs $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'
     2151    else
     2152      archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
     2153    fi
     2154    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
     2155    hardcode_libdir_separator=:
     2156    link_all_deplibs=yes
     2157    ;;
     2158
     2159  netbsd*)
     2160    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
     2161      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
     2162    else
     2163      archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
     2164    fi
     2165    hardcode_libdir_flag_spec='-R$libdir'
     2166    hardcode_direct=yes
     2167    hardcode_shlibpath_var=no
     2168    ;;
     2169
     2170  newsos6)
     2171    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
     2172    hardcode_direct=yes
     2173    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
     2174    hardcode_libdir_separator=:
     2175    hardcode_shlibpath_var=no
     2176    ;;
     2177
     2178  openbsd*)
     2179    hardcode_direct=yes
     2180    hardcode_shlibpath_var=no
     2181    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
     2182      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
     2183      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
     2184      export_dynamic_flag_spec='${wl}-E'
     2185    else
     2186      case "$host_os" in
     2187      openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
     2188        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
     2189        hardcode_libdir_flag_spec='-R$libdir'
     2190        ;;
     2191      *)
     2192        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
     2193        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
     2194        ;;
     2195      esac
     2196    fi
     2197    ;;
     2198
     2199  os2*)
     2200    hardcode_libdir_flag_spec='-L$libdir'
     2201    hardcode_minus_L=yes
     2202    allow_undefined_flag=unsupported
     2203    archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
     2204    old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
     2205    ;;
     2206
     2207  osf3*)
     2208    if test "$GCC" = yes; then
     2209      allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
     2210      archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $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'
     2211    else
     2212      allow_undefined_flag=' -expect_unresolved \*'
     2213      archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
     2214    fi
     2215    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
     2216    hardcode_libdir_separator=:
     2217    ;;
     2218
     2219  osf4* | osf5*)        # as osf3* with the addition of -msym flag
     2220    if test "$GCC" = yes; then
     2221      allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
     2222      archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $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'
     2223      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
     2224    else
     2225      allow_undefined_flag=' -expect_unresolved \*'
     2226      archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
     2227      archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
     2228      $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'
     2229
     2230      #Both c and cxx compiler support -rpath directly
     2231      hardcode_libdir_flag_spec='-rpath $libdir'
     2232    fi
     2233    hardcode_libdir_separator=:
     2234    ;;
     2235
     2236  sco3.2v5*)
     2237    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
     2238    hardcode_shlibpath_var=no
     2239    runpath_var=LD_RUN_PATH
     2240    hardcode_runpath_var=yes
     2241    export_dynamic_flag_spec='${wl}-Bexport'
     2242    ;;
     2243
     2244  solaris*)
     2245    # gcc --version < 3.0 without binutils cannot create self contained
     2246    # shared libraries reliably, requiring libgcc.a to resolve some of
     2247    # the object symbols generated in some cases.  Libraries that use
     2248    # assert need libgcc.a to resolve __eprintf, for example.  Linking
     2249    # a copy of libgcc.a into every shared library to guarantee resolving
     2250    # such symbols causes other problems:  According to Tim Van Holder
     2251    # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
     2252    # (to the application) exception stack for one thing.
     2253    no_undefined_flag=' -z defs'
     2254    if test "$GCC" = yes; then
     2255      case `$CC --version 2>/dev/null` in
     2256      [[12]].*)
     2257        cat <<EOF 1>&2
     2258
     2259*** Warning: Releases of GCC earlier than version 3.0 cannot reliably
     2260*** create self contained shared libraries on Solaris systems, without
     2261*** introducing a dependency on libgcc.a.  Therefore, libtool is disabling
     2262*** -no-undefined support, which will at least allow you to build shared
     2263*** libraries.  However, you may find that when you link such libraries
     2264*** into an application without using GCC, you have to manually add
     2265*** \`gcc --print-libgcc-file-name\` to the link command.  We urge you to
     2266*** upgrade to a newer version of GCC.  Another option is to rebuild your
     2267*** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
     2268
     2269EOF
     2270        no_undefined_flag=
     2271        ;;
     2272      esac
     2273    fi
     2274    # $CC -shared without GNU ld will not create a library from C++
     2275    # object files and a static libstdc++, better avoid it by now
     2276    archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
     2277    archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
     2278                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
     2279    hardcode_libdir_flag_spec='-R$libdir'
     2280    hardcode_shlibpath_var=no
     2281    case $host_os in
     2282    solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
     2283    *) # Supported since Solaris 2.6 (maybe 2.5.1?)
     2284      whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
     2285    esac
     2286    link_all_deplibs=yes
     2287    ;;
     2288
     2289  sunos4*)
     2290    if test "x$host_vendor" = xsequent; then
     2291      # Use $CC to link under sequent, because it throws in some extra .o
     2292      # files that make .init and .fini sections work.
     2293      archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
     2294    else
     2295      archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
     2296    fi
     2297    hardcode_libdir_flag_spec='-L$libdir'
     2298    hardcode_direct=yes
     2299    hardcode_minus_L=yes
     2300    hardcode_shlibpath_var=no
     2301    ;;
     2302
     2303  sysv4)
     2304    if test "x$host_vendor" = xsno; then
     2305      archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
     2306      hardcode_direct=yes # is this really true???
     2307    else
     2308      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
     2309      hardcode_direct=no #Motorola manual says yes, but my tests say they lie
     2310    fi
     2311    runpath_var='LD_RUN_PATH'
     2312    hardcode_shlibpath_var=no
     2313    ;;
     2314
     2315  sysv4.3*)
     2316    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
     2317    hardcode_shlibpath_var=no
     2318    export_dynamic_flag_spec='-Bexport'
     2319    ;;
     2320
     2321  sysv5*)
     2322    no_undefined_flag=' -z text'
     2323    # $CC -shared without GNU ld will not create a library from C++
     2324    # object files and a static libstdc++, better avoid it by now
     2325    archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
     2326    archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
     2327                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
     2328    hardcode_libdir_flag_spec=
     2329    hardcode_shlibpath_var=no
     2330    runpath_var='LD_RUN_PATH'
     2331    ;;
     2332
     2333  uts4*)
     2334    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
     2335    hardcode_libdir_flag_spec='-L$libdir'
     2336    hardcode_shlibpath_var=no
     2337    ;;
     2338
     2339  dgux*)
     2340    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
     2341    hardcode_libdir_flag_spec='-L$libdir'
     2342    hardcode_shlibpath_var=no
     2343    ;;
     2344
     2345  sysv4*MP*)
     2346    if test -d /usr/nec; then
     2347      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
     2348      hardcode_shlibpath_var=no
     2349      runpath_var=LD_RUN_PATH
     2350      hardcode_runpath_var=yes
     2351      ld_shlibs=yes
     2352    fi
     2353    ;;
     2354
     2355  sysv4.2uw2*)
     2356    archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
     2357    hardcode_direct=yes
     2358    hardcode_minus_L=no
     2359    hardcode_shlibpath_var=no
     2360    hardcode_runpath_var=yes
     2361    runpath_var=LD_RUN_PATH
     2362    ;;
     2363
     2364  sysv5uw7* | unixware7*)
     2365    no_undefined_flag='${wl}-z ${wl}text'
     2366    if test "$GCC" = yes; then
     2367      archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
     2368    else
     2369      archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
     2370    fi
     2371    runpath_var='LD_RUN_PATH'
     2372    hardcode_shlibpath_var=no
     2373    ;;
     2374
     2375  *)
     2376    ld_shlibs=no
     2377    ;;
     2378  esac
     2379fi
     2380AC_MSG_RESULT([$ld_shlibs])
     2381test "$ld_shlibs" = no && can_build_shared=no
     2382
    15652383# Check hardcoding attributes.
    1566 AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
    1567 [AC_MSG_CHECKING([how to hardcode library paths into programs])
    1568 _LT_AC_TAGVAR(hardcode_action, $1)=
    1569 if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
    1570    test -n "$_LT_AC_TAGVAR(runpath_var $1)" || \
    1571    test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)"="Xyes" ; then
     2384AC_MSG_CHECKING([how to hardcode library paths into programs])
     2385hardcode_action=
     2386if test -n "$hardcode_libdir_flag_spec" || \
     2387   test -n "$runpath_var"; then
    15722388
    15732389  # We can hardcode non-existant directories.
    1574   if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
     2390  if test "$hardcode_direct" != no &&
    15752391     # If the only mechanism to avoid hardcoding is shlibpath_var, we
    15762392     # have to relink, otherwise we might link with an installed library
    15772393     # when we should be linking with a yet-to-be-installed one
    1578      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
    1579      test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
     2394     ## test "$hardcode_shlibpath_var" != no &&
     2395     test "$hardcode_minus_L" != no; then
    15802396    # Linking always hardcodes the temporary library directory.
    1581     _LT_AC_TAGVAR(hardcode_action, $1)=relink
     2397    hardcode_action=relink
    15822398  else
    15832399    # We can link without hardcoding, and we can hardcode nonexisting dirs.
    1584     _LT_AC_TAGVAR(hardcode_action, $1)=immediate
     2400    hardcode_action=immediate
    15852401  fi
    15862402else
    15872403  # We cannot hardcode anything, or else we can only hardcode existing
    15882404  # directories.
    1589   _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
    1590 fi
    1591 AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
    1592 
    1593 if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
    1594   # Fast installation is not supported
    1595   enable_fast_install=no
    1596 elif test "$shlibpath_overrides_runpath" = yes ||
    1597      test "$enable_shared" = no; then
    1598   # Fast installation is not necessary
    1599   enable_fast_install=needless
    1600 fi
    1601 ])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
    1602 
    1603 
    1604 # AC_LIBTOOL_SYS_LIB_STRIP
    1605 # ------------------------
    1606 AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
    1607 [striplib=
     2405  hardcode_action=unsupported
     2406fi
     2407AC_MSG_RESULT([$hardcode_action])
     2408
     2409striplib=
    16082410old_striplib=
    16092411AC_MSG_CHECKING([whether stripping libraries is possible])
     
    16132415  AC_MSG_RESULT([yes])
    16142416else
    1615 # FIXME - insert some real tests, host_os isn't really good enough
    1616   case $host_os in
    1617    darwin*)
    1618        if test -n "$STRIP" ; then
    1619          striplib="$STRIP -x"
    1620          AC_MSG_RESULT([yes])
    1621        else
    16222417  AC_MSG_RESULT([no])
    16232418fi
    1624        ;;
    1625    *)
    1626   AC_MSG_RESULT([no])
    1627     ;;
    1628   esac
    1629 fi
    1630 ])# AC_LIBTOOL_SYS_LIB_STRIP
    1631 
    1632 
    1633 # AC_LIBTOOL_SYS_DYNAMIC_LINKER
    1634 # -----------------------------
     2419
     2420reload_cmds='$LD$reload_flag -o $output$reload_objs'
     2421test -z "$deplibs_check_method" && deplibs_check_method=unknown
     2422
    16352423# PORTME Fill in your ld.so characteristics
    1636 AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
    1637 [AC_MSG_CHECKING([dynamic linker characteristics])
     2424AC_MSG_CHECKING([dynamic linker characteristics])
    16382425library_names_spec=
    16392426libname_spec='lib$name'
    16402427soname_spec=
    1641 shrext=".so"
    16422428postinstall_cmds=
    16432429postuninstall_cmds=
     
    16492435dynamic_linker="$host_os ld.so"
    16502436sys_lib_dlsearch_path_spec="/lib /usr/lib"
    1651 if test "$GCC" = yes; then
    1652   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
    1653   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
    1654     # if the path contains ";" then we assume it to be the separator
    1655     # otherwise default to the standard path separator (i.e. ":") - it is
    1656     # assumed that no part of a normal pathname contains ";" but that should
    1657     # okay in the real world where ";" in dirpaths is itself problematic.
    1658     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
    1659   else
    1660     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
    1661   fi
    1662 else
    1663   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
    1664 fi
    1665 need_lib_prefix=unknown
    1666 hardcode_into_libs=no
    1667 
    1668 # when you set need_version to no, make sure it does not cause -set_version
    1669 # flags to be left without arguments
    1670 need_version=unknown
     2437sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
    16712438
    16722439case $host_os in
    16732440aix3*)
    16742441  version_type=linux
    1675   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
     2442  library_names_spec='${libname}${release}.so$versuffix $libname.a'
    16762443  shlibpath_var=LIBPATH
    16772444
    1678   # AIX 3 has no versioning support, so we append a major version to the name.
    1679   soname_spec='${libname}${release}${shared_ext}$major'
     2445  # AIX has no versioning support, so we append a major version to the name.
     2446  soname_spec='${libname}${release}.so$major'
    16802447  ;;
    16812448
    16822449aix4* | aix5*)
    16832450  version_type=linux
    1684   need_lib_prefix=no
    1685   need_version=no
    1686   hardcode_into_libs=yes
    16872451  if test "$host_cpu" = ia64; then
    16882452    # AIX 5 supports IA64
    1689     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
     2453    library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
    16902454    shlibpath_var=LD_LIBRARY_PATH
    16912455  else
     
    16972461    case $host_os in
    16982462      aix4 | aix4.[[01]] | aix4.[[01]].*)
    1699       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
    1700            echo ' yes '
    1701            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
    1702         :
    1703       else
    1704         can_build_shared=no
    1705       fi
    1706       ;;
     2463        if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
     2464             echo ' yes '
     2465             echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
     2466          :
     2467        else
     2468          can_build_shared=no
     2469        fi
     2470        ;;
    17072471    esac
    1708     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
    1709     # soname into executable. Probably we can add versioning support to
    1710     # collect2, so additional links can be useful in future.
     2472    # AIX (on Power*) has no versioning support, so currently we can
     2473    # not hardcode correct soname into executable. Probably we can
     2474    # add versioning support to collect2, so additional links can
     2475    # be useful in future.
    17112476    if test "$aix_use_runtimelinking" = yes; then
    17122477      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
    17132478      # instead of lib<name>.a to let people know that these are not
    17142479      # typical AIX shared libraries.
    1715       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
     2480      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
    17162481    else
    17172482      # We preserve .a as extension for shared libraries through AIX4.2
    17182483      # and later when we are not doing run time linking.
    17192484      library_names_spec='${libname}${release}.a $libname.a'
    1720       soname_spec='${libname}${release}${shared_ext}$major'
     2485      soname_spec='${libname}${release}.so$major'
    17212486    fi
    17222487    shlibpath_var=LIBPATH
     
    17272492  library_names_spec='$libname.ixlibrary $libname.a'
    17282493  # Create ${libname}_ixlibrary.a entries in /sys/libs.
    1729   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'
     2494  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'
    17302495  ;;
    17312496
    17322497beos*)
    1733   library_names_spec='${libname}${shared_ext}'
     2498  library_names_spec='${libname}.so'
    17342499  dynamic_linker="$host_os ld.so"
    17352500  shlibpath_var=LIBRARY_PATH
     
    17392504  version_type=linux
    17402505  need_version=no
    1741   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    1742   soname_spec='${libname}${release}${shared_ext}$major'
     2506  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
     2507  soname_spec='${libname}${release}.so$major'
    17432508  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
    17442509  shlibpath_var=LD_LIBRARY_PATH
    17452510  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
    17462511  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
     2512  export_dynamic_flag_spec=-rdynamic
    17472513  # the default ld.so.conf also contains /usr/contrib/lib and
    17482514  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
     
    17522518cygwin* | mingw* | pw32*)
    17532519  version_type=windows
    1754   shrext=".dll"
    17552520  need_version=no
    17562521  need_lib_prefix=no
    1757 
    17582522  case $GCC,$host_os in
    1759   yes,cygwin* | yes,mingw* | yes,pw32*)
     2523  yes,cygwin*)
    17602524    library_names_spec='$libname.dll.a'
    1761     # DLL is installed to $(libdir)/../bin by postinstall_cmds
    1762     postinstall_cmds='base_file=`basename \${file}`~
    1763       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
     2525    soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[[.]]/-/g'`${versuffix}.dll'
     2526    postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
    17642527      dldir=$destdir/`dirname \$dlpath`~
    17652528      test -d \$dldir || mkdir -p \$dldir~
    1766       $install_prog $dir/$dlname \$dldir/$dlname'
    1767     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
     2529      $install_prog .libs/$dlname \$dldir/$dlname'
     2530    postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
    17682531      dlpath=$dir/\$dldll~
    17692532       $rm \$dlpath'
    1770     shlibpath_overrides_runpath=yes
    1771 
    1772     case $host_os in
    1773     cygwin*)
    1774       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
    1775       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
    1776       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
    1777       ;;
    1778     mingw*)
    1779       # MinGW DLLs use traditional 'lib' prefix
    1780       soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
    1781       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
    1782       if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
    1783         # It is most probably a Windows format PATH printed by
    1784         # mingw gcc, but we are running on Cygwin. Gcc prints its search
    1785         # path with ; separators, and with drive letters. We can handle the
    1786         # drive letters (cygwin fileutils understands them), so leave them,
    1787         # especially as we might pass files found there to a mingw objdump,
    1788         # which wouldn't understand a cygwinified path. Ahh.
    1789         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
    1790       else
    1791         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
    1792       fi
    1793       ;;
    1794     pw32*)
    1795       # pw32 DLLs use 'pw' prefix rather than 'lib'
    1796       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
    1797       ;;
    1798     esac
    1799     ;;
    1800 
    1801   linux*)
    1802     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
    1803       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
    1804       supports_anon_versioning=no
    1805       case `$LD -v 2>/dev/null` in
    1806         *\ [01].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
    1807         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
    1808         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
    1809         *\ 2.11.*) ;; # other 2.11 versions
    1810         *) supports_anon_versioning=yes ;;
    1811       esac
    1812       if test $supports_anon_versioning = yes; then
    1813         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
    1814 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
    1815 $echo "local: *; };" >> $output_objdir/$libname.ver~
    1816         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
    1817       else
    1818         $archive_expsym_cmds="$archive_cmds"
    1819       fi
    1820     else
    1821       ld_shlibs=no
    1822     fi
    1823     ;;
    1824 
     2533    ;;
     2534  yes,mingw*)
     2535    library_names_spec='${libname}`echo ${release} | sed -e 's/[[.]]/-/g'`${versuffix}.dll'
     2536    sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
     2537    ;;
     2538  yes,pw32*)
     2539    library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
     2540    ;;
    18252541  *)
    1826     library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
     2542    library_names_spec='${libname}`echo ${release} | sed -e 's/[[.]]/-/g'`${versuffix}.dll $libname.lib'
    18272543    ;;
    18282544  esac
     
    18372553  need_lib_prefix=no
    18382554  need_version=no
    1839   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
    1840   soname_spec='${libname}${release}${major}$shared_ext'
     2555  # FIXME: Relying on posixy $() will cause problems for
     2556  #        cross-compilation, but unfortunately the echo tests do not
     2557  #        yet detect zsh echo's removal of \ escapes.
     2558  library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
     2559  soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
    18412560  shlibpath_overrides_runpath=yes
    18422561  shlibpath_var=DYLD_LIBRARY_PATH
    1843   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
    1844   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
    1845   if test "$GCC" = yes; then
    1846     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"`
    1847   else
    1848     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
    1849   fi
    1850   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
    1851   ;;
    1852 
    1853 dgux*)
    1854   version_type=linux
    1855   need_lib_prefix=no
    1856   need_version=no
    1857   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
    1858   soname_spec='${libname}${release}${shared_ext}$major'
    1859   shlibpath_var=LD_LIBRARY_PATH
    18602562  ;;
    18612563
    18622564freebsd1*)
    18632565  dynamic_linker=no
    1864   ;;
    1865 
    1866 kfreebsd*-gnu)
    1867   version_type=linux
    1868   need_lib_prefix=no
    1869   need_version=no
    1870   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
    1871   soname_spec='${libname}${release}${shared_ext}$major'
    1872   shlibpath_var=LD_LIBRARY_PATH
    1873   shlibpath_overrides_runpath=no
    1874   hardcode_into_libs=yes
    1875   dynamic_linker='GNU ld.so'
    18762566  ;;
    18772567
     
    18812571  case $version_type in
    18822572    freebsd-elf*)
    1883       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
     2573      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
    18842574      need_version=no
    18852575      need_lib_prefix=no
    18862576      ;;
    18872577    freebsd-*)
    1888       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
     2578      library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
    18892579      need_version=yes
    18902580      ;;
     
    18952585    shlibpath_overrides_runpath=yes
    18962586    ;;
    1897   freebsd3.[01]* | freebsdelf3.[01]*)
    1898     shlibpath_overrides_runpath=yes
    1899     hardcode_into_libs=yes
    1900     ;;
    1901   *) # from 3.2 on
     2587  *)
    19022588    shlibpath_overrides_runpath=no
    19032589    hardcode_into_libs=yes
     
    19102596  need_lib_prefix=no
    19112597  need_version=no
    1912   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
    1913   soname_spec='${libname}${release}${shared_ext}$major'
     2598  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
     2599  soname_spec='${libname}${release}.so$major'
    19142600  shlibpath_var=LD_LIBRARY_PATH
    19152601  hardcode_into_libs=yes
     
    19192605  # Give a soname corresponding to the major version so that dld.sl refuses to
    19202606  # link against other versions.
     2607  dynamic_linker="$host_os dld.sl"
    19212608  version_type=sunos
    19222609  need_lib_prefix=no
    19232610  need_version=no
    1924   case "$host_cpu" in
    1925   ia64*)
    1926     shrext='.so'
    1927     hardcode_into_libs=yes
    1928     dynamic_linker="$host_os dld.so"
    1929     shlibpath_var=LD_LIBRARY_PATH
    1930     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
    1931     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    1932     soname_spec='${libname}${release}${shared_ext}$major'
    1933     if test "X$HPUX_IA64_MODE" = X32; then
    1934       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
    1935     else
    1936       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
    1937     fi
    1938     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
    1939     ;;
    1940    hppa*64*)
    1941      shrext='.sl'
    1942      hardcode_into_libs=yes
    1943      dynamic_linker="$host_os dld.sl"
    1944      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
    1945      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
    1946      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    1947      soname_spec='${libname}${release}${shared_ext}$major'
    1948      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
    1949      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
    1950      ;;
    1951    *)
    1952     shrext='.sl'
    1953     dynamic_linker="$host_os dld.sl"
    1954     shlibpath_var=SHLIB_PATH
    1955     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
    1956     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    1957     soname_spec='${libname}${release}${shared_ext}$major'
    1958     ;;
    1959   esac
     2611  shlibpath_var=SHLIB_PATH
     2612  shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
     2613  library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
     2614  soname_spec='${libname}${release}.sl$major'
    19602615  # HP-UX runs *really* slowly unless shared libraries are mode 555.
    19612616  postinstall_cmds='chmod 555 $lib'
     
    19652620  case $host_os in
    19662621    nonstopux*) version_type=nonstopux ;;
    1967     *)
    1968         if test "$lt_cv_prog_gnu_ld" = yes; then
    1969                 version_type=linux
    1970         else
    1971                 version_type=irix
    1972         fi ;;
     2622    *)          version_type=irix ;;
    19732623  esac
    19742624  need_lib_prefix=no
    19752625  need_version=no
    1976   soname_spec='${libname}${release}${shared_ext}$major'
    1977   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
     2626  soname_spec='${libname}${release}.so$major'
     2627  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
    19782628  case $host_os in
    19792629  irix5* | nonstopux*)
     
    19822632  *)
    19832633    case $LD in # libtool.m4 will add one of these switches to LD
    1984     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
    1985       libsuff= shlibsuff= libmagic=32-bit;;
    1986     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
    1987       libsuff=32 shlibsuff=N32 libmagic=N32;;
    1988     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
    1989       libsuff=64 shlibsuff=64 libmagic=64-bit;;
     2634    *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
     2635    *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
     2636    *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
    19902637    *) libsuff= shlibsuff= libmagic=never-match;;
    19912638    esac
     
    19962643  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
    19972644  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
    1998   hardcode_into_libs=yes
    19992645  ;;
    20002646
    20012647# No shared lib support for Linux oldld, aout, or coff.
    2002 linux*oldld* | linux*aout* | linux*coff*)
     2648linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
    20032649  dynamic_linker=no
    20042650  ;;
    20052651
    20062652# This must be Linux ELF.
    2007 linux*)
     2653linux-gnu*)
    20082654  version_type=linux
    20092655  need_lib_prefix=no
    20102656  need_version=no
    2011   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    2012   soname_spec='${libname}${release}${shared_ext}$major'
     2657  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
     2658  soname_spec='${libname}${release}.so$major'
    20132659  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
    20142660  shlibpath_var=LD_LIBRARY_PATH
     
    20192665  hardcode_into_libs=yes
    20202666
    2021   # Append ld.so.conf contents to the search path
    2022   if test -f /etc/ld.so.conf; then
    2023     ld_extra=`$SED -e 's/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g' /etc/ld.so.conf`
    2024     sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
    2025   fi
    2026 
    2027   case $host_cpu:$lt_cv_cc_64bit_output in
    2028   powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes)
    2029     sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/X11R6/lib64"
    2030     sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /usr/X11R6/lib64"
    2031     ;;
    2032   esac
    2033 
    20342667  # We used to test for /lib/ld.so.1 and disable shared libraries on
    20352668  # powerpc, because MkLinux only supported shared libraries with the
     
    20392672  # assume the GNU/Linux dynamic linker is in use.
    20402673  dynamic_linker='GNU/Linux ld.so'
    2041 
    2042   # Find out which ABI we are using (multilib Linux x86_64 hack).
    2043   libsuff=
    2044   case "$host_cpu" in
    2045   x86_64*)
    2046     echo '[#]line __oline__ "configure"' > conftest.$ac_ext
    2047     if AC_TRY_EVAL(ac_compile); then
    2048       case `/usr/bin/file conftest.$ac_objext` in
    2049       *64-bit*)
    2050         libsuff=64
    2051         ;;
    2052       esac
    2053     fi
    2054     rm -rf conftest*
    2055     ;;
    2056   *)
    2057     ;;
    2058   esac
    2059   sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
    2060   sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
    2061   ;;
    2062 
    2063 knetbsd*-gnu)
    2064   version_type=linux
    2065   need_lib_prefix=no
    2066   need_version=no
    2067   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
    2068   soname_spec='${libname}${release}${shared_ext}$major'
    2069   shlibpath_var=LD_LIBRARY_PATH
    2070   shlibpath_overrides_runpath=no
    2071   hardcode_into_libs=yes
    2072   dynamic_linker='GNU ld.so'
    20732674  ;;
    20742675
     
    20782679  need_version=no
    20792680  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
    2080     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
     2681    library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
    20812682    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
    20822683    dynamic_linker='NetBSD (a.out) ld.so'
    20832684  else
    2084     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
    2085     soname_spec='${libname}${release}${shared_ext}$major'
     2685    library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
     2686    soname_spec='${libname}${release}.so$major'
    20862687    dynamic_linker='NetBSD ld.elf_so'
    20872688  fi
     
    20932694newsos6)
    20942695  version_type=linux
    2095   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    2096   shlibpath_var=LD_LIBRARY_PATH
    2097   shlibpath_overrides_runpath=yes
    2098   ;;
    2099 
    2100 nto-qnx*)
    2101   version_type=linux
    2102   need_lib_prefix=no
    2103   need_version=no
    2104   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    2105   soname_spec='${libname}${release}${shared_ext}$major'
     2696  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
    21062697  shlibpath_var=LD_LIBRARY_PATH
    21072698  shlibpath_overrides_runpath=yes
     
    21112702  version_type=sunos
    21122703  need_lib_prefix=no
    2113   need_version=yes
    2114   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
    2115   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
    2116   shlibpath_var=LD_LIBRARY_PATH
     2704  need_version=no
    21172705  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
    2118     case $host_os in
    2119       openbsd2.[[89]] | openbsd2.[[89]].*)
    2120         shlibpath_overrides_runpath=no
    2121         ;;
    2122       *)
    2123         shlibpath_overrides_runpath=yes
    2124         ;;
    2125       esac
     2706    case "$host_os" in
     2707    openbsd2.[[89]] | openbsd2.[[89]].*)
     2708      shlibpath_overrides_runpath=no
     2709      ;;
     2710    *)
     2711      shlibpath_overrides_runpath=yes
     2712      ;;
     2713    esac
    21262714  else
    21272715    shlibpath_overrides_runpath=yes
    21282716  fi
     2717  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
     2718  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
     2719  shlibpath_var=LD_LIBRARY_PATH
    21292720  ;;
    21302721
    21312722os2*)
    21322723  libname_spec='$name'
    2133   shrext=".dll"
    21342724  need_lib_prefix=no
    2135   library_names_spec='$libname${shared_ext} $libname.a'
     2725  library_names_spec='$libname.dll $libname.a'
    21362726  dynamic_linker='OS/2 ld.exe'
    21372727  shlibpath_var=LIBPATH
     
    21402730osf3* | osf4* | osf5*)
    21412731  version_type=osf
     2732  need_version=no
    21422733  need_lib_prefix=no
    2143   need_version=no
    2144   soname_spec='${libname}${release}${shared_ext}$major'
    2145   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
     2734  soname_spec='${libname}${release}.so'
     2735  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
    21462736  shlibpath_var=LD_LIBRARY_PATH
    21472737  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
     
    21512741sco3.2v5*)
    21522742  version_type=osf
    2153   soname_spec='${libname}${release}${shared_ext}$major'
    2154   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
     2743  soname_spec='${libname}${release}.so$major'
     2744  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
    21552745  shlibpath_var=LD_LIBRARY_PATH
    21562746  ;;
     
    21602750  need_lib_prefix=no
    21612751  need_version=no
    2162   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    2163   soname_spec='${libname}${release}${shared_ext}$major'
     2752  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
     2753  soname_spec='${libname}${release}.so$major'
    21642754  shlibpath_var=LD_LIBRARY_PATH
    21652755  shlibpath_overrides_runpath=yes
     
    21712761sunos4*)
    21722762  version_type=sunos
    2173   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
     2763  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
    21742764  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
    21752765  shlibpath_var=LD_LIBRARY_PATH
     
    21832773sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
    21842774  version_type=linux
    2185   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    2186   soname_spec='${libname}${release}${shared_ext}$major'
     2775  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
     2776  soname_spec='${libname}${release}.so$major'
    21872777  shlibpath_var=LD_LIBRARY_PATH
    21882778  case $host_vendor in
    21892779    sni)
    21902780      shlibpath_overrides_runpath=no
    2191       need_lib_prefix=no
    2192       export_dynamic_flag_spec='${wl}-Blargedynsym'
    2193       runpath_var=LD_RUN_PATH
    2194       ;;
    2195     siemens)
    2196       need_lib_prefix=no
    21972781      ;;
    21982782    motorola)
     
    22052789  ;;
    22062790
     2791uts4*)
     2792  version_type=linux
     2793  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
     2794  soname_spec='${libname}${release}.so$major'
     2795  shlibpath_var=LD_LIBRARY_PATH
     2796  ;;
     2797
     2798dgux*)
     2799  version_type=linux
     2800  need_lib_prefix=no
     2801  need_version=no
     2802  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
     2803  soname_spec='${libname}${release}.so$major'
     2804  shlibpath_var=LD_LIBRARY_PATH
     2805  ;;
     2806
    22072807sysv4*MP*)
    22082808  if test -d /usr/nec ;then
    22092809    version_type=linux
    2210     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
    2211     soname_spec='$libname${shared_ext}.$major'
     2810    library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
     2811    soname_spec='$libname.so.$major'
    22122812    shlibpath_var=LD_LIBRARY_PATH
    22132813  fi
    2214   ;;
    2215 
    2216 uts4*)
    2217   version_type=linux
    2218   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    2219   soname_spec='${libname}${release}${shared_ext}$major'
    2220   shlibpath_var=LD_LIBRARY_PATH
    22212814  ;;
    22222815
     
    22272820AC_MSG_RESULT([$dynamic_linker])
    22282821test "$dynamic_linker" = no && can_build_shared=no
    2229 ])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
    2230 
    2231 
    2232 # _LT_AC_TAGCONFIG
    2233 # ----------------
    2234 AC_DEFUN([_LT_AC_TAGCONFIG],
    2235 [AC_ARG_WITH([tags],
    2236     [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
    2237         [include additional configurations @<:@automatic@:>@])],
    2238     [tagnames="$withval"])
    2239 
    2240 if test -f "$ltmain" && test -n "$tagnames"; then
    2241   if test ! -f "${ofile}"; then
    2242     AC_MSG_WARN([output file `$ofile' does not exist])
    2243   fi
    2244 
    2245   if test -z "$LTCC"; then
    2246     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
    2247     if test -z "$LTCC"; then
    2248       AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
    2249     else
    2250       AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
    2251     fi
    2252   fi
    2253 
    2254   # Extract list of available tagged configurations in $ofile.
    2255   # Note that this assumes the entire list is on one line.
    2256   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
    2257 
    2258   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
    2259   for tagname in $tagnames; do
    2260     IFS="$lt_save_ifs"
    2261     # Check whether tagname contains only valid characters
    2262     case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
    2263     "") ;;
    2264     *)  AC_MSG_ERROR([invalid tag name: $tagname])
    2265         ;;
    2266     esac
    2267 
    2268     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
    2269     then
    2270       AC_MSG_ERROR([tag name \"$tagname\" already exists])
    2271     fi
    2272 
    2273     # Update the list of available tags.
    2274     if test -n "$tagname"; then
    2275       echo appending configuration tag \"$tagname\" to $ofile
    2276 
    2277       case $tagname in
    2278       CXX)
    2279         if test -n "$CXX" && test "X$CXX" != "Xno"; then
    2280           AC_LIBTOOL_LANG_CXX_CONFIG
    2281         else
    2282           tagname=""
    2283         fi
    2284         ;;
    2285 
    2286       F77)
    2287         if test -n "$F77" && test "X$F77" != "Xno"; then
    2288           AC_LIBTOOL_LANG_F77_CONFIG
    2289         else
    2290           tagname=""
    2291         fi
    2292         ;;
    2293 
    2294       GCJ)
    2295         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
    2296           AC_LIBTOOL_LANG_GCJ_CONFIG
    2297         else
    2298           tagname=""
    2299         fi
    2300         ;;
    2301 
    2302       RC)
    2303         AC_LIBTOOL_LANG_RC_CONFIG
    2304         ;;
    2305 
    2306       *)
    2307         AC_MSG_ERROR([Unsupported tag name: $tagname])
    2308         ;;
    2309       esac
    2310 
    2311       # Append the new tag name to the list of available tags.
    2312       if test -n "$tagname" ; then
    2313       available_tags="$available_tags $tagname"
    2314     fi
    2315     fi
    2316   done
    2317   IFS="$lt_save_ifs"
    2318 
    2319   # Now substitute the updated list of available tags.
    2320   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
    2321     mv "${ofile}T" "$ofile"
    2322     chmod +x "$ofile"
    2323   else
    2324     rm -f "${ofile}T"
    2325     AC_MSG_ERROR([unable to update list of available tagged configurations.])
    2326   fi
    2327 fi
    2328 ])# _LT_AC_TAGCONFIG
    2329 
    2330 # _LT_AC_SHARED_EXT
    2331 # ----------------
    2332 AC_DEFUN([_LT_AC_SHARED_EXT],[
    2333   if test ! -f "${ofile}"; then
    2334     AC_MSG_WARN([output file `$ofile' does not exist])
    2335   fi
    2336   if test -z "`grep -e 'shared_ext.*shrext' $ofile`"; then
    2337     # Make sure $shared_ext gets set to $shrext
    2338     if sed -e 's/shared_ext/shrext/g' "$ofile" > "${ofile}T"; then
    2339       mv "${ofile}T" "$ofile"
    2340       chmod +x "$ofile"
    2341     else
    2342       rm -f "${ofile}T"
    2343       AC_MSG_ERROR([unable to update shared_ext.])
    2344     fi
    2345   fi
    2346 ])# _LT_AC_SHARED_EXT
    2347 
    2348 
    2349 # AC_LIBTOOL_DLOPEN
    2350 # -----------------
    2351 # enable checks for dlopen support
    2352 AC_DEFUN([AC_LIBTOOL_DLOPEN],
    2353  [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
    2354 ])# AC_LIBTOOL_DLOPEN
    2355 
    2356 
    2357 # AC_LIBTOOL_WIN32_DLL
    2358 # --------------------
    2359 # declare package support for building win32 dll's
    2360 AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
    2361 [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
    2362 ])# AC_LIBTOOL_WIN32_DLL
    2363 
    2364 
    2365 # AC_ENABLE_SHARED([DEFAULT])
    2366 # ---------------------------
    2367 # implement the --enable-shared flag
    2368 # DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
    2369 AC_DEFUN([AC_ENABLE_SHARED],
    2370 [define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
    2371 AC_ARG_ENABLE([shared],
    2372     [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
    2373         [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
    2374     [p=${PACKAGE-default}
    2375     case $enableval in
    2376     yes) enable_shared=yes ;;
    2377     no) enable_shared=no ;;
    2378     *)
    2379       enable_shared=no
    2380       # Look at the argument we got.  We use all the common list separators.
    2381       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
    2382       for pkg in $enableval; do
    2383         IFS="$lt_save_ifs"
    2384         if test "X$pkg" = "X$p"; then
    2385           enable_shared=yes
    2386         fi
    2387       done
    2388       IFS="$lt_save_ifs"
    2389       ;;
    2390     esac],
    2391     [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
    2392 ])# AC_ENABLE_SHARED
    2393 
    2394 
    2395 # AC_DISABLE_SHARED
    2396 # -----------------
    2397 #- set the default shared flag to --disable-shared
    2398 AC_DEFUN([AC_DISABLE_SHARED],
    2399 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
    2400 AC_ENABLE_SHARED(no)
    2401 ])# AC_DISABLE_SHARED
    2402 
    2403 
    2404 # AC_ENABLE_STATIC([DEFAULT])
    2405 # ---------------------------
    2406 # implement the --enable-static flag
    2407 # DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
    2408 AC_DEFUN([AC_ENABLE_STATIC],
    2409 [define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
    2410 AC_ARG_ENABLE([static],
    2411     [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
    2412         [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
    2413     [p=${PACKAGE-default}
    2414     case $enableval in
    2415     yes) enable_static=yes ;;
    2416     no) enable_static=no ;;
    2417     *)
    2418      enable_static=no
    2419       # Look at the argument we got.  We use all the common list separators.
    2420       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
    2421       for pkg in $enableval; do
    2422         IFS="$lt_save_ifs"
    2423         if test "X$pkg" = "X$p"; then
    2424           enable_static=yes
    2425         fi
    2426       done
    2427       IFS="$lt_save_ifs"
    2428       ;;
    2429     esac],
    2430     [enable_static=]AC_ENABLE_STATIC_DEFAULT)
    2431 ])# AC_ENABLE_STATIC
    2432 
    2433 
    2434 # AC_DISABLE_STATIC
    2435 # -----------------
    2436 # set the default static flag to --disable-static
    2437 AC_DEFUN([AC_DISABLE_STATIC],
    2438 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
    2439 AC_ENABLE_STATIC(no)
    2440 ])# AC_DISABLE_STATIC
    2441 
    2442 
    2443 # AC_ENABLE_FAST_INSTALL([DEFAULT])
    2444 # ---------------------------------
    2445 # implement the --enable-fast-install flag
    2446 # DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
    2447 AC_DEFUN([AC_ENABLE_FAST_INSTALL],
    2448 [define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
    2449 AC_ARG_ENABLE([fast-install],
    2450     [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
    2451     [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
    2452     [p=${PACKAGE-default}
    2453     case $enableval in
    2454     yes) enable_fast_install=yes ;;
    2455     no) enable_fast_install=no ;;
    2456     *)
    2457       enable_fast_install=no
    2458       # Look at the argument we got.  We use all the common list separators.
    2459       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
    2460       for pkg in $enableval; do
    2461         IFS="$lt_save_ifs"
    2462         if test "X$pkg" = "X$p"; then
    2463           enable_fast_install=yes
    2464         fi
    2465       done
    2466       IFS="$lt_save_ifs"
    2467       ;;
    2468     esac],
    2469     [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
    2470 ])# AC_ENABLE_FAST_INSTALL
    2471 
    2472 
    2473 # AC_DISABLE_FAST_INSTALL
    2474 # -----------------------
    2475 # set the default to --disable-fast-install
    2476 AC_DEFUN([AC_DISABLE_FAST_INSTALL],
    2477 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
    2478 AC_ENABLE_FAST_INSTALL(no)
    2479 ])# AC_DISABLE_FAST_INSTALL
    2480 
    2481 
    2482 # AC_LIBTOOL_PICMODE([MODE])
    2483 # --------------------------
    2484 # implement the --with-pic flag
    2485 # MODE is either `yes' or `no'.  If omitted, it defaults to `both'.
    2486 AC_DEFUN([AC_LIBTOOL_PICMODE],
    2487 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
    2488 pic_mode=ifelse($#,1,$1,default)
    2489 ])# AC_LIBTOOL_PICMODE
    2490 
    2491 
    2492 # AC_PROG_EGREP
    2493 # -------------
    2494 # This is predefined starting with Autoconf 2.54, so this conditional
    2495 # definition can be removed once we require Autoconf 2.54 or later.
    2496 m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
    2497 [AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
    2498    [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
    2499     then ac_cv_prog_egrep='grep -E'
    2500     else ac_cv_prog_egrep='egrep'
    2501     fi])
    2502  EGREP=$ac_cv_prog_egrep
    2503  AC_SUBST([EGREP])
    2504 ])])
    2505 
    2506 
    2507 # AC_PATH_TOOL_PREFIX
    2508 # -------------------
    2509 # find a file program which can recognise shared library
    2510 AC_DEFUN([AC_PATH_TOOL_PREFIX],
    2511 [AC_REQUIRE([AC_PROG_EGREP])dnl
    2512 AC_MSG_CHECKING([for $1])
    2513 AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
    2514 [case $MAGIC_CMD in
    2515 [[\\/*] |  ?:[\\/]*])
    2516   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
    2517   ;;
    2518 *)
    2519   lt_save_MAGIC_CMD="$MAGIC_CMD"
    2520   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
    2521 dnl $ac_dummy forces splitting on constant user-supplied paths.
    2522 dnl POSIX.2 word splitting is done only on the output of word expansions,
    2523 dnl not every word.  This closes a longstanding sh security hole.
    2524   ac_dummy="ifelse([$2], , $PATH, [$2])"
    2525   for ac_dir in $ac_dummy; do
    2526     IFS="$lt_save_ifs"
    2527     test -z "$ac_dir" && ac_dir=.
    2528     if test -f $ac_dir/$1; then
    2529       lt_cv_path_MAGIC_CMD="$ac_dir/$1"
    2530       if test -n "$file_magic_test_file"; then
    2531         case $deplibs_check_method in
    2532         "file_magic "*)
    2533           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
    2534           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
    2535           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
    2536             $EGREP "$file_magic_regex" > /dev/null; then
    2537             :
    2538           else
    2539             cat <<EOF 1>&2
    2540 
    2541 *** Warning: the command libtool uses to detect shared libraries,
    2542 *** $file_magic_cmd, produces output that libtool cannot recognize.
    2543 *** The result is that libtool may fail to recognize shared libraries
    2544 *** as such.  This will affect the creation of libtool libraries that
    2545 *** depend on shared libraries, but programs linked with such libtool
    2546 *** libraries will work regardless of this problem.  Nevertheless, you
    2547 *** may want to report the problem to your system manager and/or to
    2548 *** bug-libtool@gnu.org
    2549 
    2550 EOF
    2551           fi ;;
    2552         esac
    2553       fi
    2554       break
    2555     fi
    2556   done
    2557   IFS="$lt_save_ifs"
    2558   MAGIC_CMD="$lt_save_MAGIC_CMD"
    2559   ;;
    2560 esac])
    2561 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
    2562 if test -n "$MAGIC_CMD"; then
    2563   AC_MSG_RESULT($MAGIC_CMD)
    2564 else
    2565   AC_MSG_RESULT(no)
    2566 fi
    2567 ])# AC_PATH_TOOL_PREFIX
    2568 
    2569 
    2570 # AC_PATH_MAGIC
    2571 # -------------
    2572 # find a file program which can recognise a shared library
    2573 AC_DEFUN([AC_PATH_MAGIC],
    2574 [AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
    2575 if test -z "$lt_cv_path_MAGIC_CMD"; then
    2576   if test -n "$ac_tool_prefix"; then
    2577     AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
    2578   else
    2579     MAGIC_CMD=:
    2580   fi
    2581 fi
    2582 ])# AC_PATH_MAGIC
    2583 
    2584 
    2585 # AC_PROG_LD
    2586 # ----------
    2587 # find the pathname to the GNU or non-GNU linker
    2588 AC_DEFUN([AC_PROG_LD],
    2589 [AC_ARG_WITH([gnu-ld],
    2590     [AC_HELP_STRING([--with-gnu-ld],
    2591         [assume the C compiler uses GNU ld @<:@default=no@:>@])],
    2592     [test "$withval" = no || with_gnu_ld=yes],
    2593     [with_gnu_ld=no])
    2594 AC_REQUIRE([LT_AC_PROG_SED])dnl
    2595 AC_REQUIRE([AC_PROG_CC])dnl
    2596 AC_REQUIRE([AC_CANONICAL_HOST])dnl
    2597 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
    2598 ac_prog=ld
    2599 if test "$GCC" = yes; then
    2600   # Check if gcc -print-prog-name=ld gives a path.
    2601   AC_MSG_CHECKING([for ld used by $CC])
    2602   case $host in
    2603   *-*-mingw*)
    2604     # gcc leaves a trailing carriage return which upsets mingw
    2605     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
    2606   *)
    2607     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
    2608   esac
    2609   case $ac_prog in
    2610     # Accept absolute paths.
    2611     [[\\/]]* | ?:[[\\/]]*)
    2612       re_direlt='/[[^/]][[^/]]*/\.\./'
    2613       # Canonicalize the pathname of ld
    2614       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
    2615       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
    2616         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
    2617       done
    2618       test -z "$LD" && LD="$ac_prog"
    2619       ;;
    2620   "")
    2621     # If it fails, then pretend we aren't using GCC.
    2622     ac_prog=ld
    2623     ;;
    2624   *)
    2625     # If it is relative, then search for the first ld in PATH.
    2626     with_gnu_ld=unknown
    2627     ;;
    2628   esac
    2629 elif test "$with_gnu_ld" = yes; then
    2630   AC_MSG_CHECKING([for GNU ld])
    2631 else
    2632   AC_MSG_CHECKING([for non-GNU ld])
    2633 fi
    2634 AC_CACHE_VAL(lt_cv_path_LD,
    2635 [if test -z "$LD"; then
    2636   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
    2637   for ac_dir in $PATH; do
    2638     IFS="$lt_save_ifs"
    2639     test -z "$ac_dir" && ac_dir=.
    2640     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
    2641       lt_cv_path_LD="$ac_dir/$ac_prog"
    2642       # Check to see if the program is GNU ld.  I'd rather use --version,
    2643       # but apparently some GNU ld's only accept -v.
    2644       # Break only if it was the GNU/non-GNU ld that we prefer.
    2645       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
    2646       *GNU* | *'with BFD'*)
    2647         test "$with_gnu_ld" != no && break
    2648         ;;
    2649       *)
    2650         test "$with_gnu_ld" != yes && break
    2651         ;;
    2652       esac
    2653     fi
    2654   done
    2655   IFS="$lt_save_ifs"
    2656 else
    2657   lt_cv_path_LD="$LD" # Let the user override the test with a path.
    2658 fi])
    2659 LD="$lt_cv_path_LD"
    2660 if test -n "$LD"; then
    2661   AC_MSG_RESULT($LD)
    2662 else
    2663   AC_MSG_RESULT(no)
    2664 fi
    2665 test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
    2666 AC_PROG_LD_GNU
    2667 ])# AC_PROG_LD
    2668 
    2669 
    2670 # AC_PROG_LD_GNU
    2671 # --------------
    2672 AC_DEFUN([AC_PROG_LD_GNU],
    2673 [AC_REQUIRE([AC_PROG_EGREP])dnl
    2674 AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
    2675 [# I'd rather use --version here, but apparently some GNU ld's only accept -v.
    2676 case `$LD -v 2>&1 </dev/null` in
    2677 *GNU* | *'with BFD'*)
    2678   lt_cv_prog_gnu_ld=yes
    2679   ;;
    2680 *)
    2681   lt_cv_prog_gnu_ld=no
    2682   ;;
    2683 esac])
    2684 with_gnu_ld=$lt_cv_prog_gnu_ld
    2685 ])# AC_PROG_LD_GNU
    2686 
    2687 
    2688 # AC_PROG_LD_RELOAD_FLAG
    2689 # ----------------------
    2690 # find reload flag for linker
    2691 #   -- PORTME Some linkers may need a different reload flag.
    2692 AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
    2693 [AC_CACHE_CHECK([for $LD option to reload object files],
    2694   lt_cv_ld_reload_flag,
    2695   [lt_cv_ld_reload_flag='-r'])
    2696 reload_flag=$lt_cv_ld_reload_flag
    2697 case $reload_flag in
    2698 "" | " "*) ;;
    2699 *) reload_flag=" $reload_flag" ;;
    2700 esac
    2701 reload_cmds='$LD$reload_flag -o $output$reload_objs'
    2702 ])# AC_PROG_LD_RELOAD_FLAG
    2703 
    2704 
    2705 # AC_DEPLIBS_CHECK_METHOD
    2706 # -----------------------
    2707 # how to check for library dependencies
    2708 #  -- PORTME fill in with the dynamic library characteristics
    2709 AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
    2710 [AC_CACHE_CHECK([how to recognise dependent libraries],
    2711 lt_cv_deplibs_check_method,
    2712 [lt_cv_file_magic_cmd='$MAGIC_CMD'
    2713 lt_cv_file_magic_test_file=
    2714 lt_cv_deplibs_check_method='unknown'
    2715 # Need to set the preceding variable on all platforms that support
    2716 # interlibrary dependencies.
    2717 # 'none' -- dependencies not supported.
    2718 # `unknown' -- same as none, but documents that we really don't know.
    2719 # 'pass_all' -- all dependencies passed with no checks.
    2720 # 'test_compile' -- check by making test program.
    2721 # 'file_magic [[regex]]' -- check by looking for files in library path
    2722 # which responds to the $file_magic_cmd with a given extended regex.
    2723 # If you have `file' or equivalent on your system and you're not sure
    2724 # whether `pass_all' will *always* work, you probably want this one.
    2725 
    2726 case $host_os in
    2727 aix4* | aix5*)
    2728   lt_cv_deplibs_check_method=pass_all
    2729   ;;
    2730 
    2731 beos*)
    2732   lt_cv_deplibs_check_method=pass_all
    2733   ;;
    2734 
    2735 bsdi4*)
    2736   lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
    2737   lt_cv_file_magic_cmd='/usr/bin/file -L'
    2738   lt_cv_file_magic_test_file=/shlib/libc.so
    2739   ;;
    2740 
    2741 cygwin*)
    2742   # win32_libid is a shell function defined in ltmain.sh
    2743   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
    2744   lt_cv_file_magic_cmd='win32_libid'
    2745   ;;
    2746 
    2747 mingw* | pw32*)
    2748   # Base MSYS/MinGW do not provide the 'file' command needed by
    2749   # win32_libid shell function, so use a weaker test based on 'objdump'.
    2750   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
    2751   lt_cv_file_magic_cmd='$OBJDUMP -f'
    2752   ;;
    2753 
    2754 darwin* | rhapsody*)
    2755   lt_cv_deplibs_check_method=pass_all
    2756   ;;
    2757 
    2758 freebsd* | kfreebsd*-gnu)
    2759   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
    2760     case $host_cpu in
    2761     i*86 )
    2762       # Not sure whether the presence of OpenBSD here was a mistake.
    2763       # Let's accept both of them until this is cleared up.
    2764       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[[3-9]]86 (compact )?demand paged shared library'
    2765       lt_cv_file_magic_cmd=/usr/bin/file
    2766       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
    2767       ;;
    2768     esac
    2769   else
    2770     lt_cv_deplibs_check_method=pass_all
    2771   fi
    2772   ;;
    2773 
    2774 gnu*)
    2775   lt_cv_deplibs_check_method=pass_all
    2776   ;;
    2777 
    2778 hpux10.20* | hpux11*)
    2779   lt_cv_file_magic_cmd=/usr/bin/file
    2780   case "$host_cpu" in
    2781   ia64*)
    2782     lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
    2783     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
    2784     ;;
    2785   hppa*64*)
    2786     [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]']
    2787     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
    2788     ;;
    2789   *)
    2790     lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
    2791     lt_cv_file_magic_test_file=/usr/lib/libc.sl
    2792     ;;
    2793   esac
    2794   ;;
    2795 
    2796 irix5* | irix6* | nonstopux*)
    2797   case $LD in
    2798   *-32|*"-32 ") libmagic=32-bit;;
    2799   *-n32|*"-n32 ") libmagic=N32;;
    2800   *-64|*"-64 ") libmagic=64-bit;;
    2801   *) libmagic=never-match;;
    2802   esac
    2803   lt_cv_deplibs_check_method=pass_all
    2804   ;;
    2805 
    2806 # This must be Linux ELF.
    2807 linux*)
    2808   case $host_cpu in
    2809   alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*|x86_64*)
    2810     lt_cv_deplibs_check_method=pass_all ;;
    2811   *)
    2812     # glibc up to 2.1.1 does not perform some relocations on ARM
    2813     # this will be overridden with pass_all, but let us keep it just in case
    2814     lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' ;;
    2815   esac
    2816   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
    2817   lt_cv_deplibs_check_method=pass_all
    2818   ;;
    2819 
    2820 netbsd*)
    2821   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
    2822     lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
    2823   else
    2824     lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
    2825   fi
    2826   ;;
    2827 
    2828 newos6*)
    2829   lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
    2830   lt_cv_file_magic_cmd=/usr/bin/file
    2831   lt_cv_file_magic_test_file=/usr/lib/libnls.so
    2832   ;;
    2833 
    2834 nto-qnx*)
    2835   lt_cv_deplibs_check_method=unknown
    2836   ;;
    2837 
    2838 openbsd*)
    2839   lt_cv_file_magic_cmd=/usr/bin/file
    2840   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
    2841   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
    2842     lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB shared object'
    2843   else
    2844     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
    2845   fi
    2846   ;;
    2847 
    2848 osf3* | osf4* | osf5*)
    2849   lt_cv_deplibs_check_method=pass_all
    2850   ;;
    2851 
    2852 sco3.2v5*)
    2853   lt_cv_deplibs_check_method=pass_all
    2854   ;;
    2855 
    2856 solaris*)
    2857   lt_cv_deplibs_check_method=pass_all
    2858   ;;
    2859 
    2860 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
    2861   case $host_vendor in
    2862   motorola)
    2863     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]]'
    2864     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
    2865     ;;
    2866   ncr)
    2867     lt_cv_deplibs_check_method=pass_all
    2868     ;;
    2869   sequent)
    2870     lt_cv_file_magic_cmd='/bin/file'
    2871     lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
    2872     ;;
    2873   sni)
    2874     lt_cv_file_magic_cmd='/bin/file'
    2875     lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
    2876     lt_cv_file_magic_test_file=/lib/libc.so
    2877     ;;
    2878   siemens)
    2879     lt_cv_deplibs_check_method=pass_all
    2880     ;;
    2881   esac
    2882   ;;
    2883 
    2884 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7* | sysv4*uw2*)
    2885   lt_cv_deplibs_check_method=pass_all
    2886   ;;
    2887 esac
    2888 ])
    2889 file_magic_cmd=$lt_cv_file_magic_cmd
    2890 deplibs_check_method=$lt_cv_deplibs_check_method
    2891 test -z "$deplibs_check_method" && deplibs_check_method=unknown
    2892 ])# AC_DEPLIBS_CHECK_METHOD
    2893 
    2894 
    2895 # AC_PROG_NM
    2896 # ----------
    2897 # find the pathname to a BSD-compatible name lister
    2898 AC_DEFUN([AC_PROG_NM],
    2899 [AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
    2900 [if test -n "$NM"; then
    2901   # Let the user override the test.
    2902   lt_cv_path_NM="$NM"
    2903 else
    2904   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
    2905   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
    2906     IFS="$lt_save_ifs"
    2907     test -z "$ac_dir" && ac_dir=.
    2908     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
    2909     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
    2910       # Check to see if the nm accepts a BSD-compat flag.
    2911       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
    2912       #   nm: unknown option "B" ignored
    2913       # Tru64's nm complains that /dev/null is an invalid object file
    2914       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
    2915       */dev/null* | *'Invalid file or object type'*)
    2916         lt_cv_path_NM="$tmp_nm -B"
    2917         break
    2918         ;;
    2919       *)
    2920         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
    2921         */dev/null*)
    2922           lt_cv_path_NM="$tmp_nm -p"
    2923           break
    2924           ;;
    2925         *)
    2926           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
    2927           continue # so that we can try to find one that supports BSD flags
    2928           ;;
    2929         esac
    2930       esac
    2931     fi
    2932   done
    2933   IFS="$lt_save_ifs"
    2934   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
    2935 fi])
    2936 NM="$lt_cv_path_NM"
    2937 ])# AC_PROG_NM
    2938 
    2939 
    2940 # AC_CHECK_LIBM
    2941 # -------------
    2942 # check for math library
    2943 AC_DEFUN([AC_CHECK_LIBM],
    2944 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
    2945 LIBM=
    2946 case $host in
    2947 *-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
    2948   # These system don't have libm, or don't need it
    2949   ;;
    2950 *-ncr-sysv4.3*)
    2951   AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
    2952   AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
    2953   ;;
    2954 *)
    2955   AC_CHECK_LIB(m, cos, LIBM="-lm")
    2956   ;;
    2957 esac
    2958 ])# AC_CHECK_LIBM
    2959 
    2960 
    2961 # AC_LIBLTDL_CONVENIENCE([DIRECTORY])
    2962 # -----------------------------------
    2963 # sets LIBLTDL to the link flags for the libltdl convenience library and
    2964 # LTDLINCL to the include flags for the libltdl header and adds
    2965 # --enable-ltdl-convenience to the configure arguments.  Note that LIBLTDL
    2966 # and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called.  If
    2967 # DIRECTORY is not provided, it is assumed to be `libltdl'.  LIBLTDL will
    2968 # be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed with
    2969 # '${top_srcdir}/' (note the single quotes!).  If your package is not
    2970 # flat and you're not using automake, define top_builddir and
    2971 # top_srcdir appropriately in the Makefiles.
    2972 AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
    2973 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
    2974   case $enable_ltdl_convenience in
    2975   no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
    2976   "") enable_ltdl_convenience=yes
    2977       ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
    2978   esac
    2979   LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
    2980   LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
    2981   # For backwards non-gettext consistent compatibility...
    2982   INCLTDL="$LTDLINCL"
    2983 ])# AC_LIBLTDL_CONVENIENCE
    2984 
    2985 
    2986 # AC_LIBLTDL_INSTALLABLE([DIRECTORY])
    2987 # -----------------------------------
    2988 # sets LIBLTDL to the link flags for the libltdl installable library and
    2989 # LTDLINCL to the include flags for the libltdl header and adds
    2990 # --enable-ltdl-install to the configure arguments.  Note that LIBLTDL
    2991 # and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called.  If
    2992 # DIRECTORY is not provided and an installed libltdl is not found, it is
    2993 # assumed to be `libltdl'.  LIBLTDL will be prefixed with '${top_builddir}/'
    2994 # and LTDLINCL will be prefixed with '${top_srcdir}/' (note the single
    2995 # quotes!).  If your package is not flat and you're not using automake,
    2996 # define top_builddir and top_srcdir appropriately in the Makefiles.
    2997 # In the future, this macro may have to be called after AC_PROG_LIBTOOL.
    2998 AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
    2999 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
    3000   AC_CHECK_LIB(ltdl, lt_dlinit,
    3001   [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
    3002   [if test x"$enable_ltdl_install" = xno; then
    3003      AC_MSG_WARN([libltdl not installed, but installation disabled])
    3004    else
    3005      enable_ltdl_install=yes
    3006    fi
    3007   ])
    3008   if test x"$enable_ltdl_install" = x"yes"; then
    3009     ac_configure_args="$ac_configure_args --enable-ltdl-install"
    3010     LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
    3011     LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
    3012   else
    3013     ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
    3014     LIBLTDL="-lltdl"
    3015     LTDLINCL=
    3016   fi
    3017   # For backwards non-gettext consistent compatibility...
    3018   INCLTDL="$LTDLINCL"
    3019 ])# AC_LIBLTDL_INSTALLABLE
    3020 
    3021 
    3022 # AC_LIBTOOL_CXX
    3023 # --------------
    3024 # enable support for C++ libraries
    3025 AC_DEFUN([AC_LIBTOOL_CXX],
    3026 [AC_REQUIRE([_LT_AC_LANG_CXX])
    3027 ])# AC_LIBTOOL_CXX
    3028 
    3029 
    3030 # _LT_AC_LANG_CXX
    3031 # ---------------
    3032 AC_DEFUN([_LT_AC_LANG_CXX],
    3033 [AC_REQUIRE([AC_PROG_CXX])
    3034 AC_REQUIRE([AC_PROG_CXXCPP])
    3035 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
    3036 ])# _LT_AC_LANG_CXX
    3037 
    3038 
    3039 # AC_LIBTOOL_F77
    3040 # --------------
    3041 # enable support for Fortran 77 libraries
    3042 AC_DEFUN([AC_LIBTOOL_F77],
    3043 [AC_REQUIRE([_LT_AC_LANG_F77])
    3044 ])# AC_LIBTOOL_F77
    3045 
    3046 
    3047 # _LT_AC_LANG_F77
    3048 # ---------------
    3049 AC_DEFUN([_LT_AC_LANG_F77],
    3050 [AC_REQUIRE([AC_PROG_F77])
    3051 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
    3052 ])# _LT_AC_LANG_F77
    3053 
    3054 
    3055 # AC_LIBTOOL_GCJ
    3056 # --------------
    3057 # enable support for GCJ libraries
    3058 AC_DEFUN([AC_LIBTOOL_GCJ],
    3059 [AC_REQUIRE([_LT_AC_LANG_GCJ])
    3060 ])# AC_LIBTOOL_GCJ
    3061 
    3062 
    3063 # _LT_AC_LANG_GCJ
    3064 # ---------------
    3065 AC_DEFUN([_LT_AC_LANG_GCJ],
    3066 [AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
    3067   [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
    3068     [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
    3069       [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
    3070          [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
    3071            [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
    3072 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
    3073 ])# _LT_AC_LANG_GCJ
    3074 
    3075 
    3076 # AC_LIBTOOL_RC
    3077 # --------------
    3078 # enable support for Windows resource files
    3079 AC_DEFUN([AC_LIBTOOL_RC],
    3080 [AC_REQUIRE([LT_AC_PROG_RC])
    3081 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
    3082 ])# AC_LIBTOOL_RC
    3083 
    3084 
    3085 # AC_LIBTOOL_LANG_C_CONFIG
    3086 # ------------------------
    3087 # Ensure that the configuration vars for the C compiler are
    3088 # suitably defined.  Those variables are subsequently used by
    3089 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
    3090 AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
    3091 AC_DEFUN([_LT_AC_LANG_C_CONFIG],
    3092 [lt_save_CC="$CC"
    3093 AC_LANG_PUSH(C)
    3094 
    3095 # Source file extension for C test sources.
    3096 ac_ext=c
    3097 
    3098 # Object file extension for compiled C test sources.
    3099 objext=o
    3100 _LT_AC_TAGVAR(objext, $1)=$objext
    3101 
    3102 # Code to be used in simple compile tests
    3103 lt_simple_compile_test_code="int some_variable = 0;\n"
    3104 
    3105 # Code to be used in simple link tests
    3106 lt_simple_link_test_code='int main(){return(0);}\n'
    3107 
    3108 _LT_AC_SYS_COMPILER
    3109 
    3110 #
    3111 # Check for any special shared library compilation flags.
    3112 #
    3113 _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)=
    3114 if test "$GCC" = no; then
    3115   case $host_os in
    3116   sco3.2v5*)
    3117     _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf'
    3118     ;;
    3119   esac
    3120 fi
    3121 if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then
    3122   AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries])
    3123   if echo "$old_CC $old_CFLAGS " | grep "[[     ]]$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[        ]]" >/dev/null; then :
    3124   else
    3125     AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure])
    3126     _LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no
    3127   fi
    3128 fi
    3129 
    3130 
    3131 #
    3132 # Check to make sure the static flag actually works.
    3133 #
    3134 AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works],
    3135   _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
    3136   $_LT_AC_TAGVAR(lt_prog_compiler_static, $1),
    3137   [],
    3138   [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
    3139 
    3140 
    3141 AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
    3142 AC_LIBTOOL_PROG_COMPILER_PIC($1)
    3143 AC_LIBTOOL_PROG_CC_C_O($1)
    3144 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
    3145 AC_LIBTOOL_PROG_LD_SHLIBS($1)
    3146 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
    3147 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
    3148 AC_LIBTOOL_SYS_LIB_STRIP
    3149 AC_LIBTOOL_DLOPEN_SELF($1)
    3150 
    3151 # Report which librarie types wil actually be built
     2822
     2823# Report the final consequences.
    31522824AC_MSG_CHECKING([if libtool supports shared libraries])
    31532825AC_MSG_RESULT([$can_build_shared])
     
    31722844  fi
    31732845  ;;
    3174   darwin* | rhapsody*)
    3175   if test "$GCC" = yes; then
    3176     _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
    3177     case "$host_os" in
    3178     rhapsody* | darwin1.[[012]])
    3179       _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
    3180       ;;
    3181     *) # Darwin 1.3 on
    3182       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
    3183         _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
    3184       else
    3185         case ${MACOSX_DEPLOYMENT_TARGET} in
    3186           10.[[012]])
    3187             _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
    3188             ;;
    3189           10.*)
    3190             _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
    3191             ;;
    3192         esac
    3193       fi
    3194       ;;
    3195     esac
    3196     output_verbose_link_cmd='echo'
    3197     _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
    3198     _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
    3199     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
    3200     _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}'
    3201     _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}'
    3202     _LT_AC_TAGVAR(hardcode_direct, $1)=no
    3203     _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
    3204     _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
    3205     _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
    3206     _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
    3207   else
    3208     _LT_AC_TAGVAR(ld_shlibs, $1)=no
    3209   fi
    3210     ;;
    32112846esac
    32122847AC_MSG_RESULT([$enable_shared])
     
    32172852AC_MSG_RESULT([$enable_static])
    32182853
    3219 AC_LIBTOOL_CONFIG($1)
    3220 
    3221 AC_LANG_POP
    3222 CC="$lt_save_CC"
    3223 ])# AC_LIBTOOL_LANG_C_CONFIG
    3224 
    3225 
    3226 # AC_LIBTOOL_LANG_CXX_CONFIG
    3227 # --------------------------
    3228 # Ensure that the configuration vars for the C compiler are
    3229 # suitably defined.  Those variables are subsequently used by
    3230 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
    3231 AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
    3232 AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
    3233 [AC_LANG_PUSH(C++)
    3234 AC_REQUIRE([AC_PROG_CXX])
    3235 AC_REQUIRE([AC_PROG_CXXCPP])
    3236 
    3237 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
    3238 _LT_AC_TAGVAR(allow_undefined_flag, $1)=
    3239 _LT_AC_TAGVAR(always_export_symbols, $1)=no
    3240 _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
    3241 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
    3242 _LT_AC_TAGVAR(hardcode_direct, $1)=no
    3243 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
    3244 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
    3245 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
    3246 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
    3247 _LT_AC_TAGVAR(hardcode_automatic, $1)=no
    3248 _LT_AC_TAGVAR(module_cmds, $1)=
    3249 _LT_AC_TAGVAR(module_expsym_cmds, $1)=
    3250 _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
    3251 _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
    3252 _LT_AC_TAGVAR(no_undefined_flag, $1)=
    3253 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
    3254 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
    3255 
    3256 # Dependencies to place before and after the object being linked:
    3257 _LT_AC_TAGVAR(predep_objects, $1)=
    3258 _LT_AC_TAGVAR(postdep_objects, $1)=
    3259 _LT_AC_TAGVAR(predeps, $1)=
    3260 _LT_AC_TAGVAR(postdeps, $1)=
    3261 _LT_AC_TAGVAR(compiler_lib_search_path, $1)=
    3262 
    3263 # Source file extension for C++ test sources.
    3264 ac_ext=cc
    3265 
    3266 # Object file extension for compiled C++ test sources.
    3267 objext=o
    3268 _LT_AC_TAGVAR(objext, $1)=$objext
    3269 
    3270 # Code to be used in simple compile tests
    3271 lt_simple_compile_test_code="int some_variable = 0;\n"
    3272 
    3273 # Code to be used in simple link tests
    3274 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
    3275 
    3276 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
    3277 _LT_AC_SYS_COMPILER
    3278 
    3279 # Allow CC to be a program name with arguments.
    3280 lt_save_CC=$CC
    3281 lt_save_LD=$LD
    3282 lt_save_GCC=$GCC
    3283 GCC=$GXX
    3284 lt_save_with_gnu_ld=$with_gnu_ld
    3285 lt_save_path_LD=$lt_cv_path_LD
    3286 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
    3287   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
    3288 else
    3289   unset lt_cv_prog_gnu_ld
    3290 fi
    3291 if test -n "${lt_cv_path_LDCXX+set}"; then
    3292   lt_cv_path_LD=$lt_cv_path_LDCXX
    3293 else
    3294   unset lt_cv_path_LD
    3295 fi
    3296 test -z "${LDCXX+set}" || LD=$LDCXX
    3297 CC=${CXX-"c++"}
    3298 compiler=$CC
    3299 _LT_AC_TAGVAR(compiler, $1)=$CC
    3300 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
    3301 
    3302 # We don't want -fno-exception wen compiling C++ code, so set the
    3303 # no_builtin_flag separately
    3304 if test "$GXX" = yes; then
    3305   _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
    3306 else
    3307   _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
    3308 fi
    3309 
    3310 if test "$GXX" = yes; then
    3311   # Set up default GNU C++ configuration
    3312 
    3313   AC_PROG_LD
    3314 
    3315   # Check if GNU C++ uses GNU ld as the underlying linker, since the
    3316   # archiving commands below assume that GNU ld is being used.
    3317   if test "$with_gnu_ld" = yes; then
    3318     _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
    3319     _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
    3320 
    3321     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
    3322     _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
    3323 
    3324     # If archive_cmds runs LD, not CC, wlarc should be empty
    3325     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
    3326     #     investigate it a little bit more. (MM)
    3327     wlarc='${wl}'
    3328 
    3329     # ancient GNU ld didn't support --whole-archive et. al.
    3330     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
    3331         grep 'no-whole-archive' > /dev/null; then
    3332       _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
     2854if test "$hardcode_action" = relink; then
     2855  # Fast installation is not supported
     2856  enable_fast_install=no
     2857elif test "$shlibpath_overrides_runpath" = yes ||
     2858     test "$enable_shared" = no; then
     2859  # Fast installation is not necessary
     2860  enable_fast_install=needless
     2861fi
     2862
     2863variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
     2864if test "$GCC" = yes; then
     2865  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
     2866fi
     2867
     2868AC_LIBTOOL_DLOPEN_SELF
     2869
     2870if test "$enable_shared" = yes && test "$GCC" = yes; then
     2871  case $archive_cmds in
     2872  *'~'*)
     2873    # FIXME: we may have to deal with multi-command sequences.
     2874    ;;
     2875  '$CC '*)
     2876    # Test whether the compiler implicitly links with -lc since on some
     2877    # systems, -lgcc has to come before -lc. If gcc already passes -lc
     2878    # to ld, don't add -lc before -lgcc.
     2879    AC_MSG_CHECKING([whether -lc should be explicitly linked in])
     2880    AC_CACHE_VAL([lt_cv_archive_cmds_need_lc],
     2881    [$rm conftest*
     2882    echo 'static int dummy;' > conftest.$ac_ext
     2883
     2884    if AC_TRY_EVAL(ac_compile); then
     2885      soname=conftest
     2886      lib=conftest
     2887      libobjs=conftest.$ac_objext
     2888      deplibs=
     2889      wl=$lt_cv_prog_cc_wl
     2890      compiler_flags=-v
     2891      linker_flags=-v
     2892      verstring=
     2893      output_objdir=.
     2894      libname=conftest
     2895      save_allow_undefined_flag=$allow_undefined_flag
     2896      allow_undefined_flag=
     2897      if AC_TRY_EVAL(archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
     2898      then
     2899        lt_cv_archive_cmds_need_lc=no
     2900      else
     2901        lt_cv_archive_cmds_need_lc=yes
     2902      fi
     2903      allow_undefined_flag=$save_allow_undefined_flag
    33332904    else
    3334       _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
    3335     fi
    3336   else
    3337     with_gnu_ld=no
    3338     wlarc=
    3339 
    3340     # A generic and very simple default shared library creation
    3341     # command for GNU C++ for the case where it uses the native
    3342     # linker, instead of GNU ld.  If possible, this setting should
    3343     # overridden to take advantage of the native linker features on
    3344     # the platform it is being used on.
    3345     _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
    3346   fi
    3347 
    3348   # Commands to make compiler produce verbose output that lists
    3349   # what "hidden" libraries, object files and flags are used when
    3350   # linking a shared library.
    3351   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
    3352 
    3353 else
    3354   GXX=no
    3355   with_gnu_ld=no
    3356   wlarc=
    3357 fi
    3358 
    3359 # PORTME: fill in a description of your system's C++ link characteristics
    3360 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
    3361 _LT_AC_TAGVAR(ld_shlibs, $1)=yes
    3362 case $host_os in
    3363   aix3*)
    3364     # FIXME: insert proper C++ library support
    3365     _LT_AC_TAGVAR(ld_shlibs, $1)=no
    3366     ;;
    3367   aix4* | aix5*)
    3368     if test "$host_cpu" = ia64; then
    3369       # On IA64, the linker does run time linking by default, so we don't
    3370       # have to do anything special.
    3371       aix_use_runtimelinking=no
    3372       exp_sym_flag='-Bexport'
    3373       no_entry_flag=""
    3374     else
    3375       aix_use_runtimelinking=no
    3376 
    3377       # Test if we are trying to use run time linking or normal
    3378       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
    3379       # need to do runtime linking.
    3380       case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
    3381         for ld_flag in $LDFLAGS; do
    3382           case $ld_flag in
    3383           *-brtl*)
    3384             aix_use_runtimelinking=yes
    3385             break
    3386             ;;
    3387           esac
    3388         done
    3389       esac
    3390 
    3391       exp_sym_flag='-bexport'
    3392       no_entry_flag='-bnoentry'
    3393     fi
    3394 
    3395     # When large executables or shared objects are built, AIX ld can
    3396     # have problems creating the table of contents.  If linking a library
    3397     # or program results in "error TOC overflow" add -mminimal-toc to
    3398     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
    3399     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
    3400 
    3401     _LT_AC_TAGVAR(archive_cmds, $1)=''
    3402     _LT_AC_TAGVAR(hardcode_direct, $1)=yes
    3403     _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
    3404     _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
    3405 
    3406     if test "$GXX" = yes; then
    3407       case $host_os in aix4.[012]|aix4.[012].*)
    3408       # We only want to do this on AIX 4.2 and lower, the check
    3409       # below for broken collect2 doesn't work under 4.3+
    3410         collect2name=`${CC} -print-prog-name=collect2`
    3411         if test -f "$collect2name" && \
    3412            strings "$collect2name" | grep resolve_lib_name >/dev/null
    3413         then
    3414           # We have reworked collect2
    3415           _LT_AC_TAGVAR(hardcode_direct, $1)=yes
    3416         else
    3417           # We have old collect2
    3418           _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
    3419           # It fails to find uninstalled libraries when the uninstalled
    3420           # path is not listed in the libpath.  Setting hardcode_minus_L
    3421           # to unsupported forces relinking
    3422           _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
    3423           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
    3424           _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
    3425         fi
    3426       esac
    3427       shared_flag='-shared'
    3428     else
    3429       # not using gcc
    3430       if test "$host_cpu" = ia64; then
    3431         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
    3432         # chokes on -Wl,-G. The following line is correct:
    3433         shared_flag='-G'
    3434       else
    3435         if test "$aix_use_runtimelinking" = yes; then
    3436           shared_flag='${wl}-G'
    3437         else
    3438           shared_flag='${wl}-bM:SRE'
    3439         fi
    3440       fi
    3441     fi
    3442 
    3443     # It seems that -bexpall does not export symbols beginning with
    3444     # underscore (_), so it is better to generate a list of symbols to export.
    3445     _LT_AC_TAGVAR(always_export_symbols, $1)=yes
    3446     if test "$aix_use_runtimelinking" = yes; then
    3447       # Warning - without using the other runtime loading flags (-brtl),
    3448       # -berok will link without error, but may produce a broken library.
    3449       _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
    3450       # Determine the default libpath from the value encoded in an empty executable.
    3451       _LT_AC_SYS_LIBPATH_AIX
    3452       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
    3453 
    3454       _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"
    3455      else
    3456       if test "$host_cpu" = ia64; then
    3457         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
    3458         _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
    3459         _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"
    3460       else
    3461         # Determine the default libpath from the value encoded in an empty executable.
    3462         _LT_AC_SYS_LIBPATH_AIX
    3463         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
    3464         # Warning - without using the other run time loading flags,
    3465         # -berok will link without error, but may produce a broken library.
    3466         _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
    3467         _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
    3468         # -bexpall does not export symbols beginning with underscore (_)
    3469         _LT_AC_TAGVAR(always_export_symbols, $1)=yes
    3470         # Exported symbols can be pulled into shared objects from archives
    3471         _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
    3472         _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
    3473         # This is similar to how AIX traditionally builds it's shared libraries.
    3474         _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'
    3475       fi
    3476     fi
    3477     ;;
    3478   chorus*)
    3479     case $cc_basename in
    3480       *)
    3481         # FIXME: insert proper C++ library support
    3482         _LT_AC_TAGVAR(ld_shlibs, $1)=no
    3483         ;;
    3484     esac
    3485     ;;
    3486 
    3487   cygwin* | mingw* | pw32*)
    3488     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
    3489     # as there is no search path for DLLs.
    3490     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
    3491     _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
    3492     _LT_AC_TAGVAR(always_export_symbols, $1)=no
    3493     _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
    3494 
    3495     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
    3496       _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'
    3497       # If the export-symbols file already is a .def file (1st line
    3498       # is EXPORTS), use it as is; otherwise, prepend...
    3499       _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
    3500         cp $export_symbols $output_objdir/$soname.def;
    3501       else
    3502         echo EXPORTS > $output_objdir/$soname.def;
    3503         cat $export_symbols >> $output_objdir/$soname.def;
    3504       fi~
    3505       $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'
    3506     else
    3507       _LT_AC_TAGVAR(ld_shlibs, $1)=no
    3508     fi
    3509   ;;
    3510 
    3511   darwin* | rhapsody*)
    3512   if test "$GXX" = yes; then
    3513     _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
    3514     case "$host_os" in
    3515     rhapsody* | darwin1.[[012]])
    3516       _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
    3517       ;;
    3518     *) # Darwin 1.3 on
    3519       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
    3520         _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
    3521       else
    3522         case ${MACOSX_DEPLOYMENT_TARGET} in
    3523           10.[[012]])
    3524             _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
    3525             ;;
    3526           10.*)
    3527             _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
    3528             ;;
    3529         esac
    3530       fi
    3531       ;;
    3532     esac
    3533     lt_int_apple_cc_single_mod=no
    3534     output_verbose_link_cmd='echo'
    3535     if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
    3536       lt_int_apple_cc_single_mod=yes
    3537     fi
    3538     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
    3539       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
    3540     else
    3541       _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'
    3542     fi
    3543     _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
    3544 
    3545     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
    3546     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
    3547       _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}'
    3548     else
    3549       _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}'
    3550     fi
    3551     _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}'
    3552     _LT_AC_TAGVAR(hardcode_direct, $1)=no
    3553     _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
    3554     _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
    3555     _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
    3556     _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
    3557   else
    3558     _LT_AC_TAGVAR(ld_shlibs, $1)=no
    3559   fi
    3560     ;;
    3561 
    3562   dgux*)
    3563     case $cc_basename in
    3564       ec++)
    3565         # FIXME: insert proper C++ library support
    3566         _LT_AC_TAGVAR(ld_shlibs, $1)=no
    3567         ;;
    3568       ghcx)
    3569         # Green Hills C++ Compiler
    3570         # FIXME: insert proper C++ library support
    3571         _LT_AC_TAGVAR(ld_shlibs, $1)=no
    3572         ;;
    3573       *)
    3574         # FIXME: insert proper C++ library support
    3575         _LT_AC_TAGVAR(ld_shlibs, $1)=no
    3576         ;;
    3577     esac
    3578     ;;
    3579   freebsd[12]*)
    3580     # C++ shared libraries reported to be fairly broken before switch to ELF
    3581     _LT_AC_TAGVAR(ld_shlibs, $1)=no
    3582     ;;
    3583   freebsd-elf*)
    3584     _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
    3585     ;;
    3586   freebsd* | kfreebsd*-gnu)
    3587     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
    3588     # conventions
    3589     _LT_AC_TAGVAR(ld_shlibs, $1)=yes
    3590     ;;
    3591   gnu*)
    3592     ;;
    3593   hpux9*)
    3594     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
    3595     _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
    3596     _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
    3597     _LT_AC_TAGVAR(hardcode_direct, $1)=yes
    3598     _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
    3599                                 # but as the default
    3600                                 # location of the library.
    3601 
    3602     case $cc_basename in
    3603     CC)
    3604       # FIXME: insert proper C++ library support
    3605       _LT_AC_TAGVAR(ld_shlibs, $1)=no
    3606       ;;
    3607     aCC)
    3608       _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'
    3609       # Commands to make compiler produce verbose output that lists
    3610       # what "hidden" libraries, object files and flags are used when
    3611       # linking a shared library.
    3612       #
    3613       # There doesn't appear to be a way to prevent this compiler from
    3614       # explicitly linking system object files so we need to strip them
    3615       # from the output so that they don't get included in the library
    3616       # dependencies.
    3617       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'
    3618       ;;
    3619     *)
    3620       if test "$GXX" = yes; then
    3621         _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${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'
    3622       else
    3623         # FIXME: insert proper C++ library support
    3624         _LT_AC_TAGVAR(ld_shlibs, $1)=no
    3625       fi
    3626       ;;
    3627     esac
    3628     ;;
    3629   hpux10*|hpux11*)
    3630     if test $with_gnu_ld = no; then
    3631       case "$host_cpu" in
    3632       hppa*64*)
    3633         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
    3634         _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
    3635         _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
    3636         ;;
    3637       ia64*)
    3638         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
    3639         ;;
    3640       *)
    3641         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
    3642         _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
    3643         _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
    3644         ;;
    3645       esac
    3646     fi
    3647     case "$host_cpu" in
    3648     hppa*64*)
    3649       _LT_AC_TAGVAR(hardcode_direct, $1)=no
    3650       _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
    3651       ;;
    3652     ia64*)
    3653       _LT_AC_TAGVAR(hardcode_direct, $1)=no
    3654       _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
    3655       _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
    3656                                               # but as the default
    3657                                               # location of the library.
    3658       ;;
    3659     *)
    3660       _LT_AC_TAGVAR(hardcode_direct, $1)=yes
    3661       _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
    3662                                               # but as the default
    3663                                               # location of the library.
    3664       ;;
    3665     esac
    3666 
    3667     case $cc_basename in
    3668       CC)
    3669         # FIXME: insert proper C++ library support
    3670         _LT_AC_TAGVAR(ld_shlibs, $1)=no
    3671         ;;
    3672       aCC)
    3673         case "$host_cpu" in
    3674         hppa*64*|ia64*)
    3675           _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
    3676           ;;
    3677         *)
    3678           _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'
    3679           ;;
    3680         esac
    3681         # Commands to make compiler produce verbose output that lists
    3682         # what "hidden" libraries, object files and flags are used when
    3683         # linking a shared library.
    3684         #
    3685         # There doesn't appear to be a way to prevent this compiler from
    3686         # explicitly linking system object files so we need to strip them
    3687         # from the output so that they don't get included in the library
    3688         # dependencies.
    3689         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'
    3690         ;;
    3691       *)
    3692         if test "$GXX" = yes; then
    3693           if test $with_gnu_ld = no; then
    3694             case "$host_cpu" in
    3695             ia64*|hppa*64*)
    3696               _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
    3697               ;;
    3698             *)
    3699               _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'
    3700               ;;
    3701             esac
    3702           fi
    3703         else
    3704           # FIXME: insert proper C++ library support
    3705           _LT_AC_TAGVAR(ld_shlibs, $1)=no
    3706         fi
    3707         ;;
    3708     esac
    3709     ;;
    3710   irix5* | irix6*)
    3711     case $cc_basename in
    3712       CC)
    3713         # SGI C++
    3714         _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'
    3715 
    3716         # Archives containing C++ object files must be created using
    3717         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
    3718         # necessary to make sure instantiated templates are included
    3719         # in the archive.
    3720         _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
    3721         ;;
    3722       *)
    3723         if test "$GXX" = yes; then
    3724           if test "$with_gnu_ld" = no; then
    3725             _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'
    3726           else
    3727             _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'
    3728           fi
    3729         fi
    3730         _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
    3731         ;;
    3732     esac
    3733     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
    3734     _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
    3735     ;;
    3736   linux*)
    3737     case $cc_basename in
    3738       KCC)
    3739         # Kuck and Associates, Inc. (KAI) C++ Compiler
    3740 
    3741         # KCC will only create a shared library if the output file
    3742         # ends with ".so" (or ".sl" for HP-UX), so rename the library
    3743         # to its proper name (with version) after linking.
    3744         _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
    3745         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
    3746         # Commands to make compiler produce verbose output that lists
    3747         # what "hidden" libraries, object files and flags are used when
    3748         # linking a shared library.
    3749         #
    3750         # There doesn't appear to be a way to prevent this compiler from
    3751         # explicitly linking system object files so we need to strip them
    3752         # from the output so that they don't get included in the library
    3753         # dependencies.
    3754         output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
    3755 
    3756         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
    3757         _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
    3758 
    3759         # Archives containing C++ object files must be created using
    3760         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
    3761         _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
    3762         ;;
    3763       icpc)
    3764         # Intel C++
    3765         with_gnu_ld=yes
    3766         _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
    3767         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
    3768         _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'
    3769         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
    3770         _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
    3771         _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
    3772         ;;
    3773       cxx)
    3774         # Compaq C++
    3775         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
    3776         _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'
    3777 
    3778         runpath_var=LD_RUN_PATH
    3779         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
    3780         _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
    3781 
    3782         # Commands to make compiler produce verbose output that lists
    3783         # what "hidden" libraries, object files and flags are used when
    3784         # linking a shared library.
    3785         #
    3786         # There doesn't appear to be a way to prevent this compiler from
    3787         # explicitly linking system object files so we need to strip them
    3788         # from the output so that they don't get included in the library
    3789         # dependencies.
    3790         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
    3791         ;;
    3792     esac
    3793     ;;
    3794   lynxos*)
    3795     # FIXME: insert proper C++ library support
    3796     _LT_AC_TAGVAR(ld_shlibs, $1)=no
    3797     ;;
    3798   m88k*)
    3799     # FIXME: insert proper C++ library support
    3800     _LT_AC_TAGVAR(ld_shlibs, $1)=no
    3801     ;;
    3802   mvs*)
    3803     case $cc_basename in
    3804       cxx)
    3805         # FIXME: insert proper C++ library support
    3806         _LT_AC_TAGVAR(ld_shlibs, $1)=no
    3807         ;;
    3808       *)
    3809         # FIXME: insert proper C++ library support
    3810         _LT_AC_TAGVAR(ld_shlibs, $1)=no
    3811         ;;
    3812     esac
    3813     ;;
    3814   netbsd*)
    3815     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
    3816       _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
    3817       wlarc=
    3818       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
    3819       _LT_AC_TAGVAR(hardcode_direct, $1)=yes
    3820       _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
    3821     fi
    3822     # Workaround some broken pre-1.5 toolchains
    3823     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
    3824     ;;
    3825   osf3*)
    3826     case $cc_basename in
    3827       KCC)
    3828         # Kuck and Associates, Inc. (KAI) C++ Compiler
    3829 
    3830         # KCC will only create a shared library if the output file
    3831         # ends with ".so" (or ".sl" for HP-UX), so rename the library
    3832         # to its proper name (with version) after linking.
    3833         _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
    3834 
    3835         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
    3836         _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
    3837 
    3838         # Archives containing C++ object files must be created using
    3839         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
    3840         _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
    3841 
    3842         ;;
    3843       RCC)
    3844         # Rational C++ 2.4.1
    3845         # FIXME: insert proper C++ library support
    3846         _LT_AC_TAGVAR(ld_shlibs, $1)=no
    3847         ;;
    3848       cxx)
    3849         _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
    3850         _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'
    3851 
    3852         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
    3853         _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
    3854 
    3855         # Commands to make compiler produce verbose output that lists
    3856         # what "hidden" libraries, object files and flags are used when
    3857         # linking a shared library.
    3858         #
    3859         # There doesn't appear to be a way to prevent this compiler from
    3860         # explicitly linking system object files so we need to strip them
    3861         # from the output so that they don't get included in the library
    3862         # dependencies.
    3863         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
    3864         ;;
    3865       *)
    3866         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
    3867           _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
    3868           _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'
    3869 
    3870           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
    3871           _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
    3872 
    3873           # Commands to make compiler produce verbose output that lists
    3874           # what "hidden" libraries, object files and flags are used when
    3875           # linking a shared library.
    3876           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
    3877 
    3878         else
    3879           # FIXME: insert proper C++ library support
    3880           _LT_AC_TAGVAR(ld_shlibs, $1)=no
    3881         fi
    3882         ;;
    3883     esac
    3884     ;;
    3885   osf4* | osf5*)
    3886     case $cc_basename in
    3887       KCC)
    3888         # Kuck and Associates, Inc. (KAI) C++ Compiler
    3889 
    3890         # KCC will only create a shared library if the output file
    3891         # ends with ".so" (or ".sl" for HP-UX), so rename the library
    3892         # to its proper name (with version) after linking.
    3893         _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
    3894 
    3895         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
    3896         _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
    3897 
    3898         # Archives containing C++ object files must be created using
    3899         # the KAI C++ compiler.
    3900         _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
    3901         ;;
    3902       RCC)
    3903         # Rational C++ 2.4.1
    3904         # FIXME: insert proper C++ library support
    3905         _LT_AC_TAGVAR(ld_shlibs, $1)=no
    3906         ;;
    3907       cxx)
    3908         _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
    3909         _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'
    3910         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
    3911           echo "-hidden">> $lib.exp~
    3912           $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~
    3913           $rm $lib.exp'
    3914 
    3915         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
    3916         _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
    3917 
    3918         # Commands to make compiler produce verbose output that lists
    3919         # what "hidden" libraries, object files and flags are used when
    3920         # linking a shared library.
    3921         #
    3922         # There doesn't appear to be a way to prevent this compiler from
    3923         # explicitly linking system object files so we need to strip them
    3924         # from the output so that they don't get included in the library
    3925         # dependencies.
    3926         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
    3927         ;;
    3928       *)
    3929         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
    3930           _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
    3931          _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'
    3932 
    3933           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
    3934           _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
    3935 
    3936           # Commands to make compiler produce verbose output that lists
    3937           # what "hidden" libraries, object files and flags are used when
    3938           # linking a shared library.
    3939           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
    3940 
    3941         else
    3942           # FIXME: insert proper C++ library support
    3943           _LT_AC_TAGVAR(ld_shlibs, $1)=no
    3944         fi
    3945         ;;
    3946     esac
    3947     ;;
    3948   psos*)
    3949     # FIXME: insert proper C++ library support
    3950     _LT_AC_TAGVAR(ld_shlibs, $1)=no
    3951     ;;
    3952   sco*)
    3953     _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
    3954     case $cc_basename in
    3955       CC)
    3956         # FIXME: insert proper C++ library support
    3957         _LT_AC_TAGVAR(ld_shlibs, $1)=no
    3958         ;;
    3959       *)
    3960         # FIXME: insert proper C++ library support
    3961         _LT_AC_TAGVAR(ld_shlibs, $1)=no
    3962         ;;
    3963     esac
    3964     ;;
    3965   sunos4*)
    3966     case $cc_basename in
    3967       CC)
    3968         # Sun C++ 4.x
    3969         # FIXME: insert proper C++ library support
    3970         _LT_AC_TAGVAR(ld_shlibs, $1)=no
    3971         ;;
    3972       lcc)
    3973         # Lucid
    3974         # FIXME: insert proper C++ library support
    3975         _LT_AC_TAGVAR(ld_shlibs, $1)=no
    3976         ;;
    3977       *)
    3978         # FIXME: insert proper C++ library support
    3979         _LT_AC_TAGVAR(ld_shlibs, $1)=no
    3980         ;;
    3981     esac
    3982     ;;
    3983   solaris*)
    3984     case $cc_basename in
    3985       CC)
    3986         # Sun C++ 4.2, 5.x and Centerline C++
    3987         _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
    3988         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
    3989         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
    3990         $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'
    3991 
    3992         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
    3993         _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
    3994         case $host_os in
    3995           solaris2.[0-5] | solaris2.[0-5].*) ;;
    3996           *)
    3997             # The C++ compiler is used as linker so we must use $wl
    3998             # flag to pass the commands to the underlying system
    3999             # linker.
    4000             # Supported since Solaris 2.6 (maybe 2.5.1?)
    4001             _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
    4002             ;;
    4003         esac
    4004         _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
    4005 
    4006         # Commands to make compiler produce verbose output that lists
    4007         # what "hidden" libraries, object files and flags are used when
    4008         # linking a shared library.
    4009         #
    4010         # There doesn't appear to be a way to prevent this compiler from
    4011         # explicitly linking system object files so we need to strip them
    4012         # from the output so that they don't get included in the library
    4013         # dependencies.
    4014         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'
    4015 
    4016         # Archives containing C++ object files must be created using
    4017         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
    4018         # necessary to make sure instantiated templates are included
    4019         # in the archive.
    4020         _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
    4021         ;;
    4022       gcx)
    4023         # Green Hills C++ Compiler
    4024         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
    4025 
    4026         # The C++ compiler must be used to create the archive.
    4027         _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
    4028         ;;
    4029       *)
    4030         # GNU C++ compiler with Solaris linker
    4031         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
    4032           _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
    4033           if $CC --version | grep -v '^2\.7' > /dev/null; then
    4034             _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
    4035             _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
    4036                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
    4037 
    4038             # Commands to make compiler produce verbose output that lists
    4039             # what "hidden" libraries, object files and flags are used when
    4040             # linking a shared library.
    4041             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
    4042           else
    4043             # g++ 2.7 appears to require `-G' NOT `-shared' on this
    4044             # platform.
    4045             _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
    4046             _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
    4047                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
    4048 
    4049             # Commands to make compiler produce verbose output that lists
    4050             # what "hidden" libraries, object files and flags are used when
    4051             # linking a shared library.
    4052             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
    4053           fi
    4054 
    4055           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
    4056         fi
    4057         ;;
    4058     esac
    4059     ;;
    4060   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
    4061     _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
    4062     ;;
    4063   tandem*)
    4064     case $cc_basename in
    4065       NCC)
    4066         # NonStop-UX NCC 3.20
    4067         # FIXME: insert proper C++ library support
    4068         _LT_AC_TAGVAR(ld_shlibs, $1)=no
    4069         ;;
    4070       *)
    4071         # FIXME: insert proper C++ library support
    4072         _LT_AC_TAGVAR(ld_shlibs, $1)=no
    4073         ;;
    4074     esac
    4075     ;;
    4076   vxworks*)
    4077     # FIXME: insert proper C++ library support
    4078     _LT_AC_TAGVAR(ld_shlibs, $1)=no
    4079     ;;
    4080   *)
    4081     # FIXME: insert proper C++ library support
    4082     _LT_AC_TAGVAR(ld_shlibs, $1)=no
    4083     ;;
    4084 esac
    4085 AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
    4086 test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
    4087 
    4088 _LT_AC_TAGVAR(GCC, $1)="$GXX"
    4089 _LT_AC_TAGVAR(LD, $1)="$LD"
    4090 
    4091 AC_LIBTOOL_POSTDEP_PREDEP($1)
    4092 AC_LIBTOOL_PROG_COMPILER_PIC($1)
    4093 AC_LIBTOOL_PROG_CC_C_O($1)
    4094 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
    4095 AC_LIBTOOL_PROG_LD_SHLIBS($1)
    4096 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
    4097 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
    4098 AC_LIBTOOL_SYS_LIB_STRIP
    4099 AC_LIBTOOL_DLOPEN_SELF($1)
    4100 
    4101 AC_LIBTOOL_CONFIG($1)
    4102 
    4103 AC_LANG_POP
    4104 CC=$lt_save_CC
    4105 LDCXX=$LD
    4106 LD=$lt_save_LD
    4107 GCC=$lt_save_GCC
    4108 with_gnu_ldcxx=$with_gnu_ld
    4109 with_gnu_ld=$lt_save_with_gnu_ld
    4110 lt_cv_path_LDCXX=$lt_cv_path_LD
    4111 lt_cv_path_LD=$lt_save_path_LD
    4112 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
    4113 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
    4114 ])# AC_LIBTOOL_LANG_CXX_CONFIG
    4115 
    4116 # AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
    4117 # ------------------------
    4118 # Figure out "hidden" library dependencies from verbose
    4119 # compiler output when linking a shared library.
    4120 # Parse the compiler output and extract the necessary
    4121 # objects, libraries and library flags.
    4122 AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
    4123 dnl we can't use the lt_simple_compile_test_code here,
    4124 dnl because it contains code intended for an executable,
    4125 dnl not a library.  It's possible we should let each
    4126 dnl tag define a new lt_????_link_test_code variable,
    4127 dnl but it's only used here...
    4128 ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
    4129 int a;
    4130 void foo (void) { a = 0; }
    4131 EOF
    4132 ],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
    4133 class Foo
    4134 {
    4135 public:
    4136   Foo (void) { a = 0; }
    4137 private:
    4138   int a;
    4139 };
    4140 EOF
    4141 ],[$1],[F77],[cat > conftest.$ac_ext <<EOF
    4142       subroutine foo
    4143       implicit none
    4144       integer*4 a
    4145       a=0
    4146       return
    4147       end
    4148 EOF
    4149 ],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
    4150 public class foo {
    4151   private int a;
    4152   public void bar (void) {
    4153     a = 0;
    4154   }
    4155 };
    4156 EOF
    4157 ])
    4158 dnl Parse the compiler output and extract the necessary
    4159 dnl objects, libraries and library flags.
    4160 if AC_TRY_EVAL(ac_compile); then
    4161   # Parse the compiler output and extract the necessary
    4162   # objects, libraries and library flags.
    4163 
    4164   # Sentinel used to keep track of whether or not we are before
    4165   # the conftest object file.
    4166   pre_test_object_deps_done=no
    4167 
    4168   # The `*' in the case matches for architectures that use `case' in
    4169   # $output_verbose_cmd can trigger glob expansion during the loop
    4170   # eval without this substitution.
    4171   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
    4172 
    4173   for p in `eval $output_verbose_link_cmd`; do
    4174     case $p in
    4175 
    4176     -L* | -R* | -l*)
    4177        # Some compilers place space between "-{L,R}" and the path.
    4178        # Remove the space.
    4179        if test $p = "-L" \
    4180           || test $p = "-R"; then
    4181          prev=$p
    4182          continue
    4183        else
    4184          prev=
    4185        fi
    4186 
    4187        if test "$pre_test_object_deps_done" = no; then
    4188          case $p in
    4189          -L* | -R*)
    4190            # Internal compiler library paths should come after those
    4191            # provided the user.  The postdeps already come after the
    4192            # user supplied libs so there is no need to process them.
    4193            if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
    4194              _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
    4195            else
    4196              _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
    4197            fi
    4198            ;;
    4199          # The "-l" case would never come before the object being
    4200          # linked, so don't bother handling this case.
    4201          esac
    4202        else
    4203          if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
    4204            _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
    4205          else
    4206            _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
    4207          fi
    4208        fi
    4209        ;;
    4210 
    4211     *.$objext)
    4212        # This assumes that the test object file only shows up
    4213        # once in the compiler output.
    4214        if test "$p" = "conftest.$objext"; then
    4215          pre_test_object_deps_done=yes
    4216          continue
    4217        fi
    4218 
    4219        if test "$pre_test_object_deps_done" = no; then
    4220          if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
    4221            _LT_AC_TAGVAR(predep_objects, $1)="$p"
    4222          else
    4223            _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
    4224          fi
    4225        else
    4226          if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
    4227            _LT_AC_TAGVAR(postdep_objects, $1)="$p"
    4228          else
    4229            _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
    4230          fi
    4231        fi
    4232        ;;
    4233 
    4234     *) ;; # Ignore the rest.
    4235 
    4236     esac
    4237   done
    4238 
    4239   # Clean up.
    4240   rm -f a.out a.exe
    4241 else
    4242   echo "libtool.m4: error: problem compiling $1 test program"
    4243 fi
    4244 
    4245 $rm -f confest.$objext
    4246 
    4247 case " $_LT_AC_TAGVAR(postdeps, $1) " in
    4248 *" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
    4249 esac
    4250 ])# AC_LIBTOOL_POSTDEP_PREDEP
    4251 
    4252 # AC_LIBTOOL_LANG_F77_CONFIG
    4253 # ------------------------
    4254 # Ensure that the configuration vars for the C compiler are
    4255 # suitably defined.  Those variables are subsequently used by
    4256 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
    4257 AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
    4258 AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
    4259 [AC_REQUIRE([AC_PROG_F77])
    4260 AC_LANG_PUSH(Fortran 77)
    4261 
    4262 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
    4263 _LT_AC_TAGVAR(allow_undefined_flag, $1)=
    4264 _LT_AC_TAGVAR(always_export_symbols, $1)=no
    4265 _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
    4266 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
    4267 _LT_AC_TAGVAR(hardcode_direct, $1)=no
    4268 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
    4269 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
    4270 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
    4271 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
    4272 _LT_AC_TAGVAR(hardcode_automatic, $1)=no
    4273 _LT_AC_TAGVAR(module_cmds, $1)=
    4274 _LT_AC_TAGVAR(module_expsym_cmds, $1)=
    4275 _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
    4276 _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
    4277 _LT_AC_TAGVAR(no_undefined_flag, $1)=
    4278 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
    4279 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
    4280 
    4281 # Source file extension for f77 test sources.
    4282 ac_ext=f
    4283 
    4284 # Object file extension for compiled f77 test sources.
    4285 objext=o
    4286 _LT_AC_TAGVAR(objext, $1)=$objext
    4287 
    4288 # Code to be used in simple compile tests
    4289 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
    4290 
    4291 # Code to be used in simple link tests
    4292 lt_simple_link_test_code="      program t\n      end\n"
    4293 
    4294 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
    4295 _LT_AC_SYS_COMPILER
    4296 
    4297 # Allow CC to be a program name with arguments.
    4298 lt_save_CC="$CC"
    4299 CC=${F77-"f77"}
    4300 compiler=$CC
    4301 _LT_AC_TAGVAR(compiler, $1)=$CC
    4302 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
    4303 
    4304 AC_MSG_CHECKING([if libtool supports shared libraries])
    4305 AC_MSG_RESULT([$can_build_shared])
    4306 
    4307 AC_MSG_CHECKING([whether to build shared libraries])
    4308 test "$can_build_shared" = "no" && enable_shared=no
    4309 
    4310 # On AIX, shared libraries and static libraries use the same namespace, and
    4311 # are all built from PIC.
    4312 case "$host_os" in
    4313 aix3*)
    4314   test "$enable_shared" = yes && enable_static=no
    4315   if test -n "$RANLIB"; then
    4316     archive_cmds="$archive_cmds~\$RANLIB \$lib"
    4317     postinstall_cmds='$RANLIB $lib'
    4318   fi
    4319   ;;
    4320 aix4*)
    4321   test "$enable_shared" = yes && enable_static=no
    4322   ;;
    4323 esac
    4324 AC_MSG_RESULT([$enable_shared])
    4325 
    4326 AC_MSG_CHECKING([whether to build static libraries])
    4327 # Make sure either enable_shared or enable_static is yes.
    4328 test "$enable_shared" = yes || enable_static=yes
    4329 AC_MSG_RESULT([$enable_static])
    4330 
    4331 test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
    4332 
    4333 _LT_AC_TAGVAR(GCC, $1)="$G77"
    4334 _LT_AC_TAGVAR(LD, $1)="$LD"
    4335 
    4336 AC_LIBTOOL_PROG_COMPILER_PIC($1)
    4337 AC_LIBTOOL_PROG_CC_C_O($1)
    4338 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
    4339 AC_LIBTOOL_PROG_LD_SHLIBS($1)
    4340 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
    4341 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
    4342 AC_LIBTOOL_SYS_LIB_STRIP
    4343 
    4344 
    4345 AC_LIBTOOL_CONFIG($1)
    4346 
    4347 AC_LANG_POP
    4348 CC="$lt_save_CC"
    4349 ])# AC_LIBTOOL_LANG_F77_CONFIG
    4350 
    4351 
    4352 # AC_LIBTOOL_LANG_GCJ_CONFIG
    4353 # --------------------------
    4354 # Ensure that the configuration vars for the C compiler are
    4355 # suitably defined.  Those variables are subsequently used by
    4356 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
    4357 AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
    4358 AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
    4359 [AC_LANG_SAVE
    4360 
    4361 # Source file extension for Java test sources.
    4362 ac_ext=java
    4363 
    4364 # Object file extension for compiled Java test sources.
    4365 objext=o
    4366 _LT_AC_TAGVAR(objext, $1)=$objext
    4367 
    4368 # Code to be used in simple compile tests
    4369 lt_simple_compile_test_code="class foo {}\n"
    4370 
    4371 # Code to be used in simple link tests
    4372 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
    4373 
    4374 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
    4375 _LT_AC_SYS_COMPILER
    4376 
    4377 # Allow CC to be a program name with arguments.
    4378 lt_save_CC="$CC"
    4379 CC=${GCJ-"gcj"}
    4380 compiler=$CC
    4381 _LT_AC_TAGVAR(compiler, $1)=$CC
    4382 
    4383 # GCJ did not exist at the time GCC didn't implicitly link libc in.
    4384 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
    4385 
    4386 AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
    4387 AC_LIBTOOL_PROG_COMPILER_PIC($1)
    4388 AC_LIBTOOL_PROG_CC_C_O($1)
    4389 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
    4390 AC_LIBTOOL_PROG_LD_SHLIBS($1)
    4391 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
    4392 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
    4393 AC_LIBTOOL_SYS_LIB_STRIP
    4394 AC_LIBTOOL_DLOPEN_SELF($1)
    4395 
    4396 AC_LIBTOOL_CONFIG($1)
    4397 
    4398 AC_LANG_RESTORE
    4399 CC="$lt_save_CC"
    4400 ])# AC_LIBTOOL_LANG_GCJ_CONFIG
    4401 
    4402 
    4403 # AC_LIBTOOL_LANG_RC_CONFIG
    4404 # --------------------------
    4405 # Ensure that the configuration vars for the Windows resource compiler are
    4406 # suitably defined.  Those variables are subsequently used by
    4407 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
    4408 AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
    4409 AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
    4410 [AC_LANG_SAVE
    4411 
    4412 # Source file extension for RC test sources.
    4413 ac_ext=rc
    4414 
    4415 # Object file extension for compiled RC test sources.
    4416 objext=o
    4417 _LT_AC_TAGVAR(objext, $1)=$objext
    4418 
    4419 # Code to be used in simple compile tests
    4420 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
    4421 
    4422 # Code to be used in simple link tests
    4423 lt_simple_link_test_code="$lt_simple_compile_test_code"
    4424 
    4425 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
    4426 _LT_AC_SYS_COMPILER
    4427 
    4428 # Allow CC to be a program name with arguments.
    4429 lt_save_CC="$CC"
    4430 CC=${RC-"windres"}
    4431 compiler=$CC
    4432 _LT_AC_TAGVAR(compiler, $1)=$CC
    4433 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
    4434 
    4435 AC_LIBTOOL_CONFIG($1)
    4436 
    4437 AC_LANG_RESTORE
    4438 CC="$lt_save_CC"
    4439 ])# AC_LIBTOOL_LANG_RC_CONFIG
    4440 
    4441 
    4442 # AC_LIBTOOL_CONFIG([TAGNAME])
    4443 # ----------------------------
    4444 # If TAGNAME is not passed, then create an initial libtool script
    4445 # with a default configuration from the untagged config vars.  Otherwise
    4446 # add code to config.status for appending the configuration named by
    4447 # TAGNAME from the matching tagged config vars.
    4448 AC_DEFUN([AC_LIBTOOL_CONFIG],
    4449 [# The else clause should only fire when bootstrapping the
     2905      cat conftest.err 1>&5
     2906    fi])
     2907    AC_MSG_RESULT([$lt_cv_archive_cmds_need_lc])
     2908    ;;
     2909  esac
     2910fi
     2911need_lc=${lt_cv_archive_cmds_need_lc-yes}
     2912
     2913# The second clause should only fire when bootstrapping the
    44502914# libtool distribution, otherwise you forgot to ship ltmain.sh
    44512915# with your package, and you will get complaints that there are
    44522916# no rules to generate ltmain.sh.
    44532917if test -f "$ltmain"; then
    4454   # See if we are running on zsh, and set the options which allow our commands through
    4455   # without removal of \ escapes.
    4456   if test -n "${ZSH_VERSION+set}" ; then
    4457     setopt NO_GLOB_SUBST
    4458   fi
     2918  :
     2919else
     2920  # If there is no Makefile yet, we rely on a make rule to execute
     2921  # `config.status --recheck' to rerun these tests and create the
     2922  # libtool script then.
     2923  test -f Makefile && make "$ltmain"
     2924fi
     2925
     2926if test -f "$ltmain"; then
     2927  trap "$rm \"${ofile}T\"; exit 1" 1 2 15
     2928  $rm -f "${ofile}T"
     2929
     2930  echo creating $ofile
     2931
    44592932  # Now quote all the things that may contain metacharacters while being
    44602933  # careful not to overquote the AC_SUBSTed values.  We take copies of the
    44612934  # variables and quote the copies for generation of the libtool script.
    4462   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
    4463     SED SHELL STRIP \
    4464     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
    4465     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
    4466     deplibs_check_method reload_flag reload_cmds need_locks \
    4467     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
    4468     lt_cv_sys_global_symbol_to_c_name_address \
     2935  for var in echo old_CC old_CFLAGS \
     2936    AR AR_FLAGS CC LD LN_S NM SHELL \
     2937    reload_flag reload_cmds wl \
     2938    pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
     2939    thread_safe_flag_spec whole_archive_flag_spec libname_spec \
     2940    library_names_spec soname_spec \
     2941    RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
     2942    old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
     2943    postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
     2944    old_striplib striplib file_magic_cmd export_symbols_cmds \
     2945    deplibs_check_method allow_undefined_flag no_undefined_flag \
     2946    finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
     2947    global_symbol_to_c_name_address \
     2948    hardcode_libdir_flag_spec hardcode_libdir_separator  \
    44692949    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
    4470     old_postinstall_cmds old_postuninstall_cmds \
    4471     _LT_AC_TAGVAR(compiler, $1) \
    4472     _LT_AC_TAGVAR(CC, $1) \
    4473     _LT_AC_TAGVAR(LD, $1) \
    4474     _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
    4475     _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
    4476     _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
    4477     _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
    4478     _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
    4479     _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
    4480     _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
    4481     _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
    4482     _LT_AC_TAGVAR(old_archive_cmds, $1) \
    4483     _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
    4484     _LT_AC_TAGVAR(predep_objects, $1) \
    4485     _LT_AC_TAGVAR(postdep_objects, $1) \
    4486     _LT_AC_TAGVAR(predeps, $1) \
    4487     _LT_AC_TAGVAR(postdeps, $1) \
    4488     _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
    4489     _LT_AC_TAGVAR(archive_cmds, $1) \
    4490     _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
    4491     _LT_AC_TAGVAR(postinstall_cmds, $1) \
    4492     _LT_AC_TAGVAR(postuninstall_cmds, $1) \
    4493     _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
    4494     _LT_AC_TAGVAR(allow_undefined_flag, $1) \
    4495     _LT_AC_TAGVAR(no_undefined_flag, $1) \
    4496     _LT_AC_TAGVAR(export_symbols_cmds, $1) \
    4497     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
    4498     _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
    4499     _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
    4500     _LT_AC_TAGVAR(hardcode_automatic, $1) \
    4501     _LT_AC_TAGVAR(module_cmds, $1) \
    4502     _LT_AC_TAGVAR(module_expsym_cmds, $1) \
    4503     _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
    4504     _LT_AC_TAGVAR(exclude_expsyms, $1) \
    4505     _LT_AC_TAGVAR(include_expsyms, $1); do
     2950    compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
    45062951
    45072952    case $var in
    4508     _LT_AC_TAGVAR(old_archive_cmds, $1) | \
    4509     _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
    4510     _LT_AC_TAGVAR(archive_cmds, $1) | \
    4511     _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
    4512     _LT_AC_TAGVAR(module_cmds, $1) | \
    4513     _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
    4514     _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
    4515     _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
    4516     extract_expsyms_cmds | reload_cmds | finish_cmds | \
     2953    reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
     2954    old_postinstall_cmds | old_postuninstall_cmds | \
     2955    export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
     2956    extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
    45172957    postinstall_cmds | postuninstall_cmds | \
    4518     old_postinstall_cmds | old_postuninstall_cmds | \
    4519     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
     2958    finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
    45202959      # Double-quote double-evaled strings.
    45212960      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
     
    45272966  done
    45282967
    4529   case $lt_echo in
    4530   *'\[$]0 --fallback-echo"')
    4531     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
    4532     ;;
    4533   esac
    4534 
    4535 ifelse([$1], [],
    4536   [cfgfile="${ofile}T"
    4537   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
    4538   $rm -f "$cfgfile"
    4539   AC_MSG_NOTICE([creating $ofile])],
    4540   [cfgfile="$ofile"])
    4541 
    4542   cat <<__EOF__ >> "$cfgfile"
    4543 ifelse([$1], [],
    4544 [#! $SHELL
    4545 
    4546 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
     2968  cat <<__EOF__ > "${ofile}T"
     2969#! $SHELL
     2970
     2971# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
    45472972# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
    45482973# NOTE: Changes made to this file will be lost: look at ltmain.sh.
    45492974#
    4550 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
    4551 # Free Software Foundation, Inc.
    4552 #
    4553 # This file is part of GNU Libtool:
     2975# Copyright (C) 1996-2000 Free Software Foundation, Inc.
    45542976# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
    45552977#
     
    45732995# the same distribution terms that you use for the rest of that program.
    45742996
    4575 # A sed program that does not truncate output.
    4576 SED=$lt_SED
    4577 
    45782997# Sed that helps us avoid accidentally triggering echo(1) options like -n.
    4579 Xsed="$SED -e s/^X//"
     2998Xsed="sed -e s/^X//"
    45802999
    45813000# The HP-UX ksh and POSIX shell print the target directory to stdout
     
    45833002if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
    45843003
    4585 # The names of the tagged configurations supported by this script.
    4586 available_tags=
    4587 
    4588 # ### BEGIN LIBTOOL CONFIG],
    4589 [# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
     3004# ### BEGIN LIBTOOL CONFIG
    45903005
    45913006# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
     
    46013016
    46023017# Whether or not to add -lc for building shared libraries.
    4603 build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
    4604 
    4605 # Whether or not to disallow shared libs when runtime libs are static
    4606 allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
     3018build_libtool_need_lc=$need_lc
    46073019
    46083020# Whether or not to optimize for fast installation.
     
    46203032AR_FLAGS=$lt_AR_FLAGS
    46213033
    4622 # A C compiler.
    4623 LTCC=$lt_LTCC
    4624 
    4625 # A language-specific compiler.
    4626 CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
     3034# The default C compiler.
     3035CC=$lt_CC
    46273036
    46283037# Is the compiler the GNU C compiler?
    4629 with_gcc=$_LT_AC_TAGVAR(GCC, $1)
    4630 
    4631 # An ERE matcher.
    4632 EGREP=$lt_EGREP
     3038with_gcc=$GCC
    46333039
    46343040# The linker used to build libraries.
    4635 LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
     3041LD=$lt_LD
    46363042
    46373043# Whether we need hard or soft links.
     
    46423048
    46433049# A symbol stripping program
    4644 STRIP=$lt_STRIP
     3050STRIP=$STRIP
    46453051
    46463052# Used to examine libraries when file_magic_cmd begins "file"
     
    46643070
    46653071# How to pass a linker flag through the compiler.
    4666 wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
     3072wl=$lt_wl
    46673073
    46683074# Object file suffix (normally "o").
     
    46723078libext="$libext"
    46733079
    4674 # Shared library suffix (normally ".so").
    4675 shrext='$shrext'
    4676 
    46773080# Executable file suffix (normally "").
    46783081exeext="$exeext"
    46793082
    46803083# Additional compiler flags for building library objects.
    4681 pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
     3084pic_flag=$lt_pic_flag
    46823085pic_mode=$pic_mode
    46833086
    4684 # What is the maximum length of a command?
    4685 max_cmd_len=$lt_cv_sys_max_cmd_len
    4686 
    46873087# Does compiler simultaneously support -c and -o options?
    4688 compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
     3088compiler_c_o=$lt_compiler_c_o
     3089
     3090# Can we write directly to a .lo ?
     3091compiler_o_lo=$lt_compiler_o_lo
    46893092
    46903093# Must we lock files when doing compilation ?
     
    47073110
    47083111# Compiler flag to prevent dynamic linking.
    4709 link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
     3112link_static_flag=$lt_link_static_flag
    47103113
    47113114# Compiler flag to turn off builtin functions.
    4712 no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
     3115no_builtin_flag=$lt_no_builtin_flag
    47133116
    47143117# Compiler flag to allow reflexive dlopens.
    4715 export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
     3118export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
    47163119
    47173120# Compiler flag to generate shared objects directly from archives.
    4718 whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
     3121whole_archive_flag_spec=$lt_whole_archive_flag_spec
    47193122
    47203123# Compiler flag to generate thread-safe objects.
    4721 thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
     3124thread_safe_flag_spec=$lt_thread_safe_flag_spec
    47223125
    47233126# Library versioning type.
     
    47363139# Commands used to build and install an old-style archive.
    47373140RANLIB=$lt_RANLIB
    4738 old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
     3141old_archive_cmds=$lt_old_archive_cmds
    47393142old_postinstall_cmds=$lt_old_postinstall_cmds
    47403143old_postuninstall_cmds=$lt_old_postuninstall_cmds
    47413144
    47423145# Create an old-style archive from a shared archive.
    4743 old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
     3146old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
    47443147
    47453148# Create a temporary old-style archive to link instead of a shared archive.
    4746 old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
     3149old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
    47473150
    47483151# Commands used to build and install a shared archive.
    4749 archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
    4750 archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
     3152archive_cmds=$lt_archive_cmds
     3153archive_expsym_cmds=$lt_archive_expsym_cmds
    47513154postinstall_cmds=$lt_postinstall_cmds
    47523155postuninstall_cmds=$lt_postuninstall_cmds
    4753 
    4754 # Commands used to build a loadable module (assumed same as above if empty)
    4755 module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
    4756 module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
    47573156
    47583157# Commands to strip libraries.
     
    47603159striplib=$lt_striplib
    47613160
    4762 # Dependencies to place before the objects being linked to create a
    4763 # shared library.
    4764 predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
    4765 
    4766 # Dependencies to place after the objects being linked to create a
    4767 # shared library.
    4768 postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
    4769 
    4770 # Dependencies to place before the objects being linked to create a
    4771 # shared library.
    4772 predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
    4773 
    4774 # Dependencies to place after the objects being linked to create a
    4775 # shared library.
    4776 postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
    4777 
    4778 # The library search path used internally by the compiler when linking
    4779 # a shared library.
    4780 compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
    4781 
    47823161# Method to check whether dependent libraries are shared objects.
    47833162deplibs_check_method=$lt_deplibs_check_method
     
    47873166
    47883167# Flag that allows shared libraries with undefined symbols to be built.
    4789 allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
     3168allow_undefined_flag=$lt_allow_undefined_flag
    47903169
    47913170# Flag that forces no undefined symbols.
    4792 no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
     3171no_undefined_flag=$lt_no_undefined_flag
    47933172
    47943173# Commands used to finish a libtool library installation in a directory.
     
    47993178
    48003179# Take the output of nm and produce a listing of raw symbols and C names.
    4801 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
     3180global_symbol_pipe=$lt_global_symbol_pipe
    48023181
    48033182# Transform the output of nm in a proper C declaration
    4804 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
     3183global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
    48053184
    48063185# Transform the output of nm in a C name address pair
    4807 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
     3186global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
    48083187
    48093188# This is the shared library runtime path variable.
     
    48173196
    48183197# How to hardcode a shared library path into an executable.
    4819 hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
     3198hardcode_action=$hardcode_action
    48203199
    48213200# Whether we should hardcode library paths into libraries.
     
    48243203# Flag to hardcode \$libdir into a binary during linking.
    48253204# This must work even if \$libdir does not exist.
    4826 hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
    4827 
    4828 # If ld is used when linking, flag to hardcode \$libdir into
    4829 # a binary during linking. This must work even if \$libdir does
    4830 # not exist.
    4831 hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
     3205hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
    48323206
    48333207# Whether we need a single -rpath flag with a separated argument.
    4834 hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
    4835 
    4836 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
     3208hardcode_libdir_separator=$lt_hardcode_libdir_separator
     3209
     3210# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
    48373211# resulting binary.
    4838 hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
     3212hardcode_direct=$hardcode_direct
    48393213
    48403214# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
    48413215# resulting binary.
    4842 hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
     3216hardcode_minus_L=$hardcode_minus_L
    48433217
    48443218# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
    48453219# the resulting binary.
    4846 hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
    4847 
    4848 # Set to yes if building a shared library automatically hardcodes DIR into the library
    4849 # and all subsequent libraries and executables linked against it.
    4850 hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
     3220hardcode_shlibpath_var=$hardcode_shlibpath_var
    48513221
    48523222# Variables whose values should be saved in libtool wrapper scripts and
     
    48553225
    48563226# Whether libtool must link a program against all its dependency libraries.
    4857 link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
     3227link_all_deplibs=$link_all_deplibs
    48583228
    48593229# Compile-time system search path for libraries
     
    48643234
    48653235# Fix the shell variable \$srcfile for the compiler.
    4866 fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
     3236fix_srcfile_path="$fix_srcfile_path"
    48673237
    48683238# Set to yes if exported symbols are required.
    4869 always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
     3239always_export_symbols=$always_export_symbols
    48703240
    48713241# The commands to list exported symbols.
    4872 export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
     3242export_symbols_cmds=$lt_export_symbols_cmds
    48733243
    48743244# The commands to extract the exported symbol list from a shared archive.
     
    48763246
    48773247# Symbols that should not be listed in the preloaded symbols.
    4878 exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
     3248exclude_expsyms=$lt_exclude_expsyms
    48793249
    48803250# Symbols that must always be exported.
    4881 include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
    4882 
    4883 ifelse([$1],[],
    4884 [# ### END LIBTOOL CONFIG],
    4885 [# ### END LIBTOOL TAG CONFIG: $tagname])
     3251include_expsyms=$lt_include_expsyms
     3252
     3253# ### END LIBTOOL CONFIG
    48863254
    48873255__EOF__
    48883256
    4889 ifelse([$1],[], [
    48903257  case $host_os in
    48913258  aix3*)
    4892     cat <<\EOF >> "$cfgfile"
     3259    cat <<\EOF >> "${ofile}T"
    48933260
    48943261# AIX sometimes has problems with the GCC collect2 program.  For some
     
    49033270  esac
    49043271
    4905   # We use sed instead of cat because bash on DJGPP gets confused if
    4906   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
    4907   # text mode, it properly converts lines to CR/LF.  This bash problem
    4908   # is reportedly fixed, but why not run on old versions too?
    4909   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
    4910 
    4911   mv -f "$cfgfile" "$ofile" || \
    4912     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
    4913   chmod +x "$ofile"
    4914 ])
    4915 else
    4916   # If there is no Makefile yet, we rely on a make rule to execute
    4917   # `config.status --recheck' to rerun these tests and create the
    4918   # libtool script then.
    4919   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
    4920   if test -f "$ltmain_in"; then
    4921     test -f Makefile && make "$ltmain"
    4922   fi
    4923 fi
    4924 ])# AC_LIBTOOL_CONFIG
    4925 
    4926 
    4927 # AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
    4928 # -------------------------------------------
    4929 AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
    4930 [AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
    4931 
    4932 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
    4933 
    4934 if test "$GCC" = yes; then
    4935   _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
    4936 
    4937   AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
    4938     lt_cv_prog_compiler_rtti_exceptions,
    4939     [-fno-rtti -fno-exceptions], [],
    4940     [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
    4941 fi
    4942 ])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
    4943 
    4944 
    4945 # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
    4946 # ---------------------------------
    4947 AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
    4948 [AC_REQUIRE([AC_CANONICAL_HOST])
    4949 AC_REQUIRE([AC_PROG_NM])
    4950 AC_REQUIRE([AC_OBJEXT])
    4951 # Check for command to grab the raw symbol name followed by C symbol from nm.
    4952 AC_MSG_CHECKING([command to parse $NM output from $compiler object])
    4953 AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
    4954 [
    4955 # These are sane defaults that work on at least a few old systems.
    4956 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
    4957 
    4958 # Character class describing NM global symbol codes.
    4959 symcode='[[BCDEGRST]]'
    4960 
    4961 # Regexp to match symbols that can be accessed directly from C.
    4962 sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
    4963 
    4964 # Transform the above into a raw symbol and a C symbol.
    4965 symxfrm='\1 \2\3 \3'
    4966 
    4967 # Transform an extracted symbol line into a proper C declaration
    4968 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
    4969 
    4970 # Transform an extracted symbol line into symbol name and symbol address
    4971 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'"
    4972 
    4973 # Define system-specific variables.
    4974 case $host_os in
    4975 aix*)
    4976   symcode='[[BCDT]]'
    4977   ;;
    4978 cygwin* | mingw* | pw32*)
    4979   symcode='[[ABCDGISTW]]'
    4980   ;;
    4981 hpux*) # Its linker distinguishes data from code symbols
    4982   if test "$host_cpu" = ia64; then
    4983     symcode='[[ABCDEGRST]]'
    4984   fi
    4985   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
    4986   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'"
    4987   ;;
    4988 irix* | nonstopux*)
    4989   symcode='[[BCDEGRST]]'
    4990   ;;
    4991 osf*)
    4992   symcode='[[BCDEGQRST]]'
    4993   ;;
    4994 solaris* | sysv5*)
    4995   symcode='[[BDRT]]'
    4996   ;;
    4997 sysv4)
    4998   symcode='[[DFNSTU]]'
    4999   ;;
    5000 esac
    5001 
    5002 # Handle CRLF in mingw tool chain
    5003 opt_cr=
    5004 case $build_os in
    5005 mingw*)
    5006   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
    5007   ;;
    5008 esac
    5009 
    5010 # If we're using GNU nm, then use its standard symbol codes.
    5011 case `$NM -V 2>&1` in
    5012 *GNU* | *'with BFD'*)
    5013   symcode='[[ABCDGIRSTW]]' ;;
    5014 esac
    5015 
    5016 # Try without a prefix undercore, then with it.
    5017 for ac_symprfx in "" "_"; do
    5018 
    5019   # Write the raw and C identifiers.
    5020   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[      ]]\($symcode$symcode*\)[[       ]][[    ]]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
    5021 
    5022   # Check to see that the pipe works correctly.
    5023   pipe_works=no
    5024 
    5025   rm -f conftest*
    5026   cat > conftest.$ac_ext <<EOF
    5027 #ifdef __cplusplus
    5028 extern "C" {
    5029 #endif
    5030 char nm_test_var;
    5031 void nm_test_func(){}
    5032 #ifdef __cplusplus
    5033 }
    5034 #endif
    5035 int main(){nm_test_var='a';nm_test_func();return(0);}
    5036 EOF
    5037 
    5038   if AC_TRY_EVAL(ac_compile); then
    5039     # Now try to grab the symbols.
    5040     nlist=conftest.nm
    5041     if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
    5042       # Try sorting and uniquifying the output.
    5043       if sort "$nlist" | uniq > "$nlist"T; then
    5044         mv -f "$nlist"T "$nlist"
    5045       else
    5046         rm -f "$nlist"T
    5047       fi
    5048 
    5049       # Make sure that we snagged all the symbols we need.
    5050       if grep ' nm_test_var$' "$nlist" >/dev/null; then
    5051         if grep ' nm_test_func$' "$nlist" >/dev/null; then
    5052           cat <<EOF > conftest.$ac_ext
    5053 #ifdef __cplusplus
    5054 extern "C" {
    5055 #endif
    5056 
    5057 EOF
    5058           # Now generate the symbol file.
    5059           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
    5060 
    5061           cat <<EOF >> conftest.$ac_ext
    5062 #if defined (__STDC__) && __STDC__
    5063 # define lt_ptr_t void *
    5064 #else
    5065 # define lt_ptr_t char *
    5066 # define const
    5067 #endif
    5068 
    5069 /* The mapping between symbol names and symbols. */
    5070 const struct {
    5071   const char *name;
    5072   lt_ptr_t address;
    5073 }
    5074 lt_preloaded_symbols[[]] =
    5075 {
    5076 EOF
    5077           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
    5078           cat <<\EOF >> conftest.$ac_ext
    5079   {0, (lt_ptr_t) 0}
    5080 };
    5081 
    5082 #ifdef __cplusplus
    5083 }
    5084 #endif
    5085 EOF
    5086           # Now try linking the two files.
    5087           mv conftest.$ac_objext conftstm.$ac_objext
    5088           lt_save_LIBS="$LIBS"
    5089           lt_save_CFLAGS="$CFLAGS"
    5090           LIBS="conftstm.$ac_objext"
    5091           CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
    5092           if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
    5093             pipe_works=yes
    5094           fi
    5095           LIBS="$lt_save_LIBS"
    5096           CFLAGS="$lt_save_CFLAGS"
    5097         else
    5098           echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
    5099         fi
    5100       else
    5101         echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
    5102       fi
    5103     else
    5104       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
    5105     fi
    5106   else
    5107     echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
    5108     cat conftest.$ac_ext >&5
    5109   fi
    5110   rm -f conftest* conftst*
    5111 
    5112   # Do not use the global_symbol_pipe unless it works.
    5113   if test "$pipe_works" = yes; then
    5114     break
    5115   else
    5116     lt_cv_sys_global_symbol_pipe=
    5117   fi
    5118 done
    5119 ])
    5120 if test -z "$lt_cv_sys_global_symbol_pipe"; then
    5121   lt_cv_sys_global_symbol_to_cdecl=
    5122 fi
    5123 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
    5124   AC_MSG_RESULT(failed)
    5125 else
    5126   AC_MSG_RESULT(ok)
    5127 fi
    5128 ]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
    5129 
    5130 
    5131 # AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
    5132 # ---------------------------------------
    5133 AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
    5134 [_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
    5135 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
    5136 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
    5137 
    5138 AC_MSG_CHECKING([for $compiler option to produce PIC])
    5139  ifelse([$1],[CXX],[
    5140   # C++ specific cases for pic, static, wl, etc.
    5141   if test "$GXX" = yes; then
    5142     _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
    5143     _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
    5144 
    5145     case $host_os in
    5146     aix*)
    5147       # All AIX code is PIC.
    5148       if test "$host_cpu" = ia64; then
    5149         # AIX 5 now supports IA64 processor
    5150         _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
    5151       fi
    5152       ;;
    5153     amigaos*)
    5154       # FIXME: we need at least 68020 code to build shared libraries, but
    5155       # adding the `-m68020' flag to GCC prevents building anything better,
    5156       # like `-m68040'.
    5157       _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
    5158       ;;
    5159     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
    5160       # PIC is the default for these OSes.
    5161       ;;
    5162     mingw* | os2* | pw32*)
    5163       # This hack is so that the source file can tell whether it is being
    5164       # built for inclusion in a dll (and should export symbols for example).
    5165       _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
    5166       ;;
    5167     darwin* | rhapsody*)
    5168       # PIC is the default on this platform
    5169       # Common symbols not allowed in MH_DYLIB files
    5170       _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
    5171       ;;
    5172     *djgpp*)
    5173       # DJGPP does not support shared libraries at all
    5174       _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
    5175       ;;
    5176     sysv4*MP*)
    5177       if test -d /usr/nec; then
    5178         _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
    5179       fi
    5180       ;;
    5181     hpux*)
    5182       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
    5183       # not for PA HP-UX.
    5184       case "$host_cpu" in
    5185       hppa*64*|ia64*)
    5186         ;;
    5187       *)
    5188         _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
    5189         ;;
    5190       esac
    5191       ;;
    5192     *)
    5193       _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
    5194       ;;
    5195     esac
    5196   else
    5197     case $host_os in
    5198       aix4* | aix5*)
    5199         # All AIX code is PIC.
    5200         if test "$host_cpu" = ia64; then
    5201           # AIX 5 now supports IA64 processor
    5202           _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
    5203         else
    5204           _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
    5205         fi
    5206         ;;
    5207       chorus*)
    5208         case $cc_basename in
    5209         cxch68)
    5210           # Green Hills C++ Compiler
    5211           # _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"
    5212           ;;
    5213         esac
    5214         ;;
    5215       dgux*)
    5216         case $cc_basename in
    5217           ec++)
    5218             _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
    5219             ;;
    5220           ghcx)
    5221             # Green Hills C++ Compiler
    5222             _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
    5223             ;;
    5224           *)
    5225             ;;
    5226         esac
    5227         ;;
    5228       freebsd* | kfreebsd*-gnu)
    5229         # FreeBSD uses GNU C++
    5230         ;;
    5231       hpux9* | hpux10* | hpux11*)
    5232         case $cc_basename in
    5233           CC)
    5234             _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
    5235             _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
    5236             if test "$host_cpu" != ia64; then
    5237               _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
    5238             fi
    5239             ;;
    5240           aCC)
    5241             _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
    5242             _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
    5243             case "$host_cpu" in
    5244             hppa*64*|ia64*)
    5245               # +Z the default
    5246               ;;
    5247             *)
    5248               _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
    5249               ;;
    5250             esac
    5251             ;;
    5252           *)
    5253             ;;
    5254         esac
    5255         ;;
    5256       irix5* | irix6* | nonstopux*)
    5257         case $cc_basename in
    5258           CC)
    5259             _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
    5260             _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
    5261             # CC pic flag -KPIC is the default.
    5262             ;;
    5263           *)
    5264             ;;
    5265         esac
    5266         ;;
    5267       linux*)
    5268         case $cc_basename in
    5269           KCC)
    5270             # KAI C++ Compiler
    5271             _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
    5272             _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
    5273             ;;
    5274           icpc)
    5275             # Intel C++
    5276             _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
    5277             _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
    5278             _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
    5279             ;;
    5280           cxx)
    5281             # Compaq C++
    5282             # Make sure the PIC flag is empty.  It appears that all Alpha
    5283             # Linux and Compaq Tru64 Unix objects are PIC.
    5284             _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
    5285             _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
    5286             ;;
    5287           *)
    5288             ;;
    5289         esac
    5290         ;;
    5291       lynxos*)
    5292         ;;
    5293       m88k*)
    5294         ;;
    5295       mvs*)
    5296         case $cc_basename in
    5297           cxx)
    5298             _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
    5299             ;;
    5300           *)
    5301             ;;
    5302         esac
    5303         ;;
    5304       netbsd*)
    5305         ;;
    5306       osf3* | osf4* | osf5*)
    5307         case $cc_basename in
    5308           KCC)
    5309             _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
    5310             ;;
    5311           RCC)
    5312             # Rational C++ 2.4.1
    5313             _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
    5314             ;;
    5315           cxx)
    5316             # Digital/Compaq C++
    5317             _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
    5318             # Make sure the PIC flag is empty.  It appears that all Alpha
    5319             # Linux and Compaq Tru64 Unix objects are PIC.
    5320             _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
    5321             _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
    5322             ;;
    5323           *)
    5324             ;;
    5325         esac
    5326         ;;
    5327       psos*)
    5328         ;;
    5329       sco*)
    5330         case $cc_basename in
    5331           CC)
    5332             _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
    5333             ;;
    5334           *)
    5335             ;;
    5336         esac
    5337         ;;
    5338       solaris*)
    5339         case $cc_basename in
    5340           CC)
    5341             # Sun C++ 4.2, 5.x and Centerline C++
    5342             _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
    5343             _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
    5344             _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
    5345             ;;
    5346           gcx)
    5347             # Green Hills C++ Compiler
    5348             _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
    5349             ;;
    5350           *)
    5351             ;;
    5352         esac
    5353         ;;
    5354       sunos4*)
    5355         case $cc_basename in
    5356           CC)
    5357             # Sun C++ 4.x
    5358             _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
    5359             _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
    5360             ;;
    5361           lcc)
    5362             # Lucid
    5363             _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
    5364             ;;
    5365           *)
    5366             ;;
    5367         esac
    5368         ;;
    5369       tandem*)
    5370         case $cc_basename in
    5371           NCC)
    5372             # NonStop-UX NCC 3.20
    5373             _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
    5374             ;;
    5375           *)
    5376             ;;
    5377         esac
    5378         ;;
    5379       unixware*)
    5380         ;;
    5381       vxworks*)
    5382         ;;
    5383       *)
    5384         _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
    5385         ;;
    5386     esac
    5387   fi
    5388 ],
    5389 [
    5390   if test "$GCC" = yes; then
    5391     _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
    5392     _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
    5393 
    5394     case $host_os in
    5395       aix*)
    5396       # All AIX code is PIC.
    5397       if test "$host_cpu" = ia64; then
    5398         # AIX 5 now supports IA64 processor
    5399         _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
    5400       fi
    5401       ;;
    5402 
    5403     amigaos*)
    5404       # FIXME: we need at least 68020 code to build shared libraries, but
    5405       # adding the `-m68020' flag to GCC prevents building anything better,
    5406       # like `-m68040'.
    5407       _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
    5408       ;;
    5409 
    5410     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
    5411       # PIC is the default for these OSes.
    5412       ;;
    5413 
    5414     mingw* | pw32* | os2*)
    5415       # This hack is so that the source file can tell whether it is being
    5416       # built for inclusion in a dll (and should export symbols for example).
    5417       _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
    5418       ;;
    5419 
    5420     darwin* | rhapsody*)
    5421       # PIC is the default on this platform
    5422       # Common symbols not allowed in MH_DYLIB files
    5423       _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
    5424       ;;
    5425 
    5426     msdosdjgpp*)
    5427       # Just because we use GCC doesn't mean we suddenly get shared libraries
    5428       # on systems that don't support them.
    5429       _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
    5430       enable_shared=no
    5431       ;;
    5432 
    5433     sysv4*MP*)
    5434       if test -d /usr/nec; then
    5435         _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
    5436       fi
    5437       ;;
    5438 
    5439     hpux*)
    5440       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
    5441       # not for PA HP-UX.
    5442       case "$host_cpu" in
    5443       hppa*64*|ia64*)
    5444         # +Z the default
    5445         ;;
    5446       *)
    5447         _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
    5448         ;;
    5449       esac
    5450       ;;
    5451 
    5452     *)
    5453       _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
    5454       ;;
    5455     esac
    5456   else
    5457     # PORTME Check for flag to pass linker flags through the system compiler.
    5458     case $host_os in
    5459     aix*)
    5460       _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
    5461       if test "$host_cpu" = ia64; then
    5462         # AIX 5 now supports IA64 processor
    5463         _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
    5464       else
    5465         _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
    5466       fi
    5467       ;;
    5468 
    5469     mingw* | pw32* | os2*)
    5470       # This hack is so that the source file can tell whether it is being
    5471       # built for inclusion in a dll (and should export symbols for example).
    5472       _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
    5473       ;;
    5474 
    5475     hpux9* | hpux10* | hpux11*)
    5476       _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
    5477       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
    5478       # not for PA HP-UX.
    5479       case "$host_cpu" in
    5480       hppa*64*|ia64*)
    5481         # +Z the default
    5482         ;;
    5483       *)
    5484         _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
    5485         ;;
    5486       esac
    5487       # Is there a better lt_prog_compiler_static that works with the bundled CC?
    5488       _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
    5489       ;;
    5490 
    5491     irix5* | irix6* | nonstopux*)
    5492       _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
    5493       # PIC (with -KPIC) is the default.
    5494       _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
    5495       ;;
    5496 
    5497     newsos6)
    5498       _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
    5499       _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
    5500       ;;
    5501 
    5502     linux*)
    5503       case $CC in
    5504       icc* | ecc*)
    5505         _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
    5506         _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
    5507         _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
    5508         ;;
    5509       ccc*)
    5510         _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
    5511         # All Alpha code is PIC.
    5512         _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
    5513         ;;
    5514       esac
    5515       ;;
    5516 
    5517     osf3* | osf4* | osf5*)
    5518       _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
    5519       # All OSF/1 code is PIC.
    5520       _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
    5521       ;;
    5522 
    5523     sco3.2v5*)
    5524       _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kpic'
    5525       _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-dn'
    5526       ;;
    5527 
    5528     solaris*)
    5529       _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
    5530       _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'