Initial check-in.
authorScott Cantor <cantor.2@osu.edu>
Wed, 3 May 2006 20:53:17 +0000 (20:53 +0000)
committerScott Cantor <cantor.2@osu.edu>
Wed, 3 May 2006 20:53:17 +0000 (20:53 +0000)
16 files changed:
.cdtproject [new file with mode: 0644]
.project [new file with mode: 0644]
Makefile.am [new file with mode: 0644]
acinclude.m4 [new file with mode: 0644]
bootstrap [new file with mode: 0644]
checkinstall [new file with mode: 0644]
config_win32.h [new file with mode: 0644]
configure.ac [new file with mode: 0644]
cpp-opensaml2.sln [new file with mode: 0644]
doxygen.am [new file with mode: 0644]
doxygen.cfg [new file with mode: 0644]
doxygen.m4 [new file with mode: 0644]
libtool.m4 [new file with mode: 0644]
ltmain.sh [new file with mode: 0644]
opensaml.spec.in [new file with mode: 0644]
pkginfo.in [new file with mode: 0644]

diff --git a/.cdtproject b/.cdtproject
new file mode 100644 (file)
index 0000000..d549fa9
--- /dev/null
@@ -0,0 +1,64 @@
+<?xml version="1.0" encoding="UTF-8"?>\r
+<?eclipse-cdt version="2.0"?>\r
+\r
+<cdtproject id="org.eclipse.cdt.make.core.make">\r
+<extension id="org.eclipse.cdt.core.ELF" point="org.eclipse.cdt.core.BinaryParser"/>\r
+<extension id="org.eclipse.cdt.core.domsourceindexer" point="org.eclipse.cdt.core.CIndexer"/>\r
+<data>\r
+<item id="scannerConfiguration">\r
+<autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId="org.eclipse.cdt.make.core.GCCStandardMakePerProjectProfile"/>\r
+<profile id="org.eclipse.cdt.make.core.GCCStandardMakePerProjectProfile">\r
+<buildOutputProvider>\r
+<openAction enabled="true" filePath=""/>\r
+<parser enabled="true"/>\r
+</buildOutputProvider>\r
+<scannerInfoProvider id="specsFile">\r
+<runAction arguments="-E -P -v -dD ${plugin_state_location}/${specs_file}" command="gcc" useDefault="true"/>\r
+<parser enabled="true"/>\r
+</scannerInfoProvider>\r
+</profile>\r
+<profile id="org.eclipse.cdt.make.core.GCCStandardMakePerFileProfile">\r
+<buildOutputProvider>\r
+<openAction enabled="false" filePath=""/>\r
+<parser enabled="false"/>\r
+</buildOutputProvider>\r
+<scannerInfoProvider id="makefileGenerator">\r
+<runAction arguments="-f ${project_name}_scd.mk" command="make" useDefault="true"/>\r
+<parser enabled="false"/>\r
+</scannerInfoProvider>\r
+</profile>\r
+<profile id="org.eclipse.cdt.managedbuilder.core.GCCManagedMakePerProjectProfile">\r
+<buildOutputProvider>\r
+<openAction enabled="false" filePath=""/>\r
+<parser enabled="false"/>\r
+</buildOutputProvider>\r
+<scannerInfoProvider id="specsFile">\r
+<runAction arguments="-E -P -v -dD ${plugin_state_location}/${specs_file}" command="gcc" useDefault="true"/>\r
+<parser enabled="false"/>\r
+</scannerInfoProvider>\r
+</profile>\r
+<profile id="org.eclipse.cdt.managedbuilder.core.GCCWinManagedMakePerProjectProfile">\r
+<buildOutputProvider>\r
+<openAction enabled="false" filePath=""/>\r
+<parser enabled="false"/>\r
+</buildOutputProvider>\r
+<scannerInfoProvider id="specsFile">\r
+<runAction arguments="-E -P -v -dD ${plugin_state_location}/${specs_file}" command="gcc" useDefault="true"/>\r
+<parser enabled="false"/>\r
+</scannerInfoProvider>\r
+</profile>\r
+</item>\r
+<item id="org.eclipse.cdt.core.pathentry">\r
+<pathentry kind="mac" name="_MSC_VER" path="" value=""/>\r
+<pathentry kind="mac" name="WIN32" path="" value=""/>\r
+<pathentry base-path="OpenSAML2-C" include="" kind="inc" path="" system="true"/>\r
+<pathentry base-path="OpenSAML2-C" include="saml" kind="inc" path="" system="true"/>\r
+<pathentry base-path="XMLTooling-C" include="" kind="inc" path="" system="true"/>\r
+<pathentry include="C:/xerces-c2_7_0-win32/include" kind="inc" path="" system="true"/>\r
+<pathentry excluding="util/" kind="src" path="saml"/>\r
+<pathentry kind="out" path=""/>\r
+<pathentry kind="con" path="org.eclipse.cdt.make.core.DISCOVERED_SCANNER_INFO"/>\r
+<pathentry kind="src" path="saml/util"/>\r
+</item>\r
+</data>\r
+</cdtproject>\r
diff --git a/.project b/.project
new file mode 100644 (file)
index 0000000..6ad4904
--- /dev/null
+++ b/.project
@@ -0,0 +1,87 @@
+<?xml version="1.0" encoding="UTF-8"?>\r
+<projectDescription>\r
+       <name>OpenSAML2-C</name>\r
+       <comment></comment>\r
+       <projects>\r
+               <project>XMLTooling-C</project>\r
+       </projects>\r
+       <buildSpec>\r
+               <buildCommand>\r
+                       <name>org.eclipse.cdt.make.core.makeBuilder</name>\r
+                       <triggers>clean,full,incremental,</triggers>\r
+                       <arguments>\r
+                               <dictionary>\r
+                                       <key>org.eclipse.cdt.make.core.build.arguments</key>\r
+                                       <value></value>\r
+                               </dictionary>\r
+                               <dictionary>\r
+                                       <key>org.eclipse.cdt.core.errorOutputParser</key>\r
+                                       <value>org.eclipse.cdt.core.MakeErrorParser;org.eclipse.cdt.core.GCCErrorParser;org.eclipse.cdt.core.GASErrorParser;org.eclipse.cdt.core.GLDErrorParser;org.eclipse.cdt.core.VCErrorParser;</value>\r
+                               </dictionary>\r
+                               <dictionary>\r
+                                       <key>org.eclipse.cdt.make.core.enableAutoBuild</key>\r
+                                       <value>false</value>\r
+                               </dictionary>\r
+                               <dictionary>\r
+                                       <key>org.eclipse.cdt.make.core.environment</key>\r
+                                       <value></value>\r
+                               </dictionary>\r
+                               <dictionary>\r
+                                       <key>org.eclipse.cdt.make.core.enableFullBuild</key>\r
+                                       <value>true</value>\r
+                               </dictionary>\r
+                               <dictionary>\r
+                                       <key>org.eclipse.cdt.make.core.build.target.inc</key>\r
+                                       <value>all</value>\r
+                               </dictionary>\r
+                               <dictionary>\r
+                                       <key>org.eclipse.cdt.make.core.enabledIncrementalBuild</key>\r
+                                       <value>true</value>\r
+                               </dictionary>\r
+                               <dictionary>\r
+                                       <key>org.eclipse.cdt.make.core.build.target.clean</key>\r
+                                       <value>clean</value>\r
+                               </dictionary>\r
+                               <dictionary>\r
+                                       <key>org.eclipse.cdt.make.core.build.command</key>\r
+                                       <value>make</value>\r
+                               </dictionary>\r
+                               <dictionary>\r
+                                       <key>org.eclipse.cdt.make.core.enableCleanBuild</key>\r
+                                       <value>true</value>\r
+                               </dictionary>\r
+                               <dictionary>\r
+                                       <key>org.eclipse.cdt.make.core.append_environment</key>\r
+                                       <value>true</value>\r
+                               </dictionary>\r
+                               <dictionary>\r
+                                       <key>org.eclipse.cdt.make.core.build.target.full</key>\r
+                                       <value>clean all</value>\r
+                               </dictionary>\r
+                               <dictionary>\r
+                                       <key>org.eclipse.cdt.make.core.useDefaultBuildCmd</key>\r
+                                       <value>true</value>\r
+                               </dictionary>\r
+                               <dictionary>\r
+                                       <key>org.eclipse.cdt.make.core.build.target.auto</key>\r
+                                       <value>all</value>\r
+                               </dictionary>\r
+                               <dictionary>\r
+                                       <key>org.eclipse.cdt.make.core.stopOnError</key>\r
+                                       <value>false</value>\r
+                               </dictionary>\r
+                       </arguments>\r
+               </buildCommand>\r
+               <buildCommand>\r
+                       <name>org.eclipse.cdt.make.core.ScannerConfigBuilder</name>\r
+                       <arguments>\r
+                       </arguments>\r
+               </buildCommand>\r
+       </buildSpec>\r
+       <natures>\r
+               <nature>org.eclipse.cdt.core.cnature</nature>\r
+               <nature>org.eclipse.cdt.make.core.makeNature</nature>\r
+               <nature>org.eclipse.cdt.make.core.ScannerConfigNature</nature>\r
+               <nature>org.eclipse.cdt.core.ccnature</nature>\r
+       </natures>\r
+</projectDescription>\r
diff --git a/Makefile.am b/Makefile.am
new file mode 100644 (file)
index 0000000..274bf2c
--- /dev/null
@@ -0,0 +1,48 @@
+AUTOMAKE_OPTIONS = foreign
+
+ACLOCAL_AMFLAGS = -I .
+
+include doxygen.am
+
+MOSTLYCLEANFILES = $(DX_CLEANFILES)
+
+EXTRA_DIST = $(DX_CONFIG) \
+       doc \
+       schemas \
+       cpp-opensaml.sln \
+       libtool.m4 \
+       doxygen.m4 \
+       depcomp \
+       config_win32.h \
+       opensaml.spec.in \
+       opensaml.spec \
+       pkginfo.in \
+       pkginfo \
+       checkinstall
+
+
+dist-hook:
+       rm -rf `find $(distdir)/samltest/data -name .svn`
+       rm -rf `find $(distdir)/schemas -name .svn`
+       rm -rf `find $(distdir)/schemas -name Makefile`
+       rm -rf `find $(distdir)/doc -name .svn`
+       rm -rf `find $(distdir)/doc -name Makefile`
+
+
+SUBDIRS = schemas saml samltest
+
+all-local: opensaml.spec pkginfo doxygen-doc
+
+opensaml.spec: opensaml.spec.in Makefile
+       rm -f $@.tmp
+       sed < $< > $@.tmp \
+           -e 's:@-VERSION-@:${VERSION}:'
+       mv $@.tmp $@
+
+pkginfo: pkginfo.in Makefile
+       rm -f $@.tmp
+       sed < $< > $@.tmp \
+           -e 's:@-VERSION-@:${VERSION}:'
+       mv $@.tmp $@
+
+DISTCLEANFILES = opensaml.spec pkginfo
diff --git a/acinclude.m4 b/acinclude.m4
new file mode 100644 (file)
index 0000000..c129ab1
--- /dev/null
@@ -0,0 +1,74 @@
+dnl @synopsis AC_CXX_NAMESPACES\r
+dnl\r
+dnl If the compiler can prevent names clashes using namespaces, define\r
+dnl HAVE_NAMESPACES.\r
+dnl\r
+dnl @author Luc Maisonobe\r
+dnl\r
+AC_DEFUN([AC_CXX_NAMESPACES],\r
+[AC_CACHE_CHECK(whether the compiler implements namespaces,\r
+ac_cv_cxx_namespaces,\r
+[AC_LANG_SAVE\r
+ AC_LANG_CPLUSPLUS\r
+ AC_TRY_COMPILE([namespace Outer { namespace Inner { int i = 0; }}],\r
+                [using namespace Outer::Inner; return i;],\r
+ ac_cv_cxx_namespaces=yes, ac_cv_cxx_namespaces=no)\r
+ AC_LANG_RESTORE\r
+])\r
+if test "$ac_cv_cxx_namespaces" = yes; then\r
+  AC_DEFINE(HAVE_NAMESPACES,1,[define if the compiler implements namespaces])\r
+fi\r
+])\r
+\r
+\r
+dnl\r
+dnl @author Luc Maisonobe\r
+dnl\r
+AC_DEFUN([AC_CXX_REQUIRE_STL],\r
+[AC_CACHE_CHECK(whether the compiler supports Standard Template Library,\r
+ac_cv_cxx_have_stl,\r
+[AC_REQUIRE([AC_CXX_NAMESPACES])\r
+ AC_LANG_SAVE\r
+ AC_LANG_CPLUSPLUS\r
+ AC_TRY_COMPILE([#include <list>\r
+#include <deque>\r
+#ifdef HAVE_NAMESPACES\r
+using namespace std;\r
+#endif],[list<int> x; x.push_back(5);\r
+list<int>::iterator iter = x.begin(); if (iter != x.end()) ++iter; return 0;],\r
+ ac_cv_cxx_have_stl=yes, ac_cv_cxx_have_stl=no)\r
+ AC_LANG_RESTORE\r
+])\r
+if test "x_$ac_cv_cxx_have_stl" != x_yes; then\r
+  AC_MSG_ERROR([C++ Standard Template Libary unsupported])\r
+fi\r
+])\r
+\r
+dnl Determine whether we have gcc of a particular version or later,\r
+dnl based on major, minor, patchlevel versions and date.\r
+dnl AC_HAVE_GCC_VERSION(MAJOR_VERSION, MINOR_VERSION, PATCH_LEVEL, \r
+dnl    SNAPSHOT_DATE [, ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]])\r
+AC_DEFUN(AC_HAVE_GCC_VERSION,\r
+[AC_CACHE_CHECK([gcc is at least version $1.$2.$3.$4],\r
+          ac_cv_gcc_version_$1_$2_$3_$4,\r
+[\r
+  if test x$GCC = x ; then ac_cv_gcc_version_$1_$2_$3_$4=no\r
+  else \r
+    ac_gcc_date=`$CC -v 2>&1 | grep '^gcc version ' | sed 's/ (.*//; s/.* //'`\r
+    if test 0$ac_gcc_date -eq 0 ; then ac_gcc_date=0 ; fi\r
+    AC_EGREP_CPP(yes, [#define HAVE_GCC_VERSION(MAJOR, MINOR, MICRO, DATE) \\r
+    (__GNUC__ > (MAJOR) \\r
+     || (__GNUC__ == (MAJOR) && __GNUC_MINOR__ > (MINOR)) \\r
+     || (__GNUC__ == (MAJOR) && __GNUC_MINOR__ == (MINOR) \\r
+         && __GNUC_PATCHLEVEL__ > (MICRO)) \\r
+     || (__GNUC__ == (MAJOR) && __GNUC_MINOR__ == (MINOR) \\r
+         && __GNUC_PATCHLEVEL__ == (MICRO) && ${ac_gcc_date}L >= (DATE)))\r
+#if HAVE_GCC_VERSION($1,$2,$3,$4)\r
+yes\r
+#endif],\r
+   AC_DEFINE_UNQUOTED(HAVE_GCC_VERSION_$1_$2_$3_$4, 1,\r
+     [Define to 1 if we have gcc $1.$2.$3 ($4)])\r
+   ac_cv_gcc_version_$1_$2_$3_$4=yes ; $5,\r
+   ac_cv_gcc_version_$1_$2_$3_$4=no ; $6)\r
+fi\r
+])])dnl\r
diff --git a/bootstrap b/bootstrap
new file mode 100644 (file)
index 0000000..3f9499f
--- /dev/null
+++ b/bootstrap
@@ -0,0 +1,34 @@
+#!/bin/sh
+
+find_program()
+{
+    prog="$1"
+    #vers="$2"
+
+    #if test `"$prog-$vers" --version | head -1 | grep -c "$vers"` != 0 ; then
+       #program="$prog-$vers"
+    #else
+       program="$prog"
+    #fi
+}
+
+# Find appropriate versions of the auto tools
+find_program aclocal 1.7
+aclocal="$program"
+find_program autoheader 2.53
+autoheader="$program"
+find_program automake 1.7
+automake="$program"
+find_program autoconf 2.53
+autoconf="$program"
+
+set -x
+
+# Remove autoconf 2.5x's cache directory
+rm -rf autom4te*.cache
+
+$aclocal -I .                            || exit 1
+$autoheader                              || exit 1
+# libtoolize --force --copy               || exit 1
+$automake --foreign --add-missing --copy || exit 1
+$autoconf                                || exit 1
diff --git a/checkinstall b/checkinstall
new file mode 100644 (file)
index 0000000..6adfb56
--- /dev/null
@@ -0,0 +1,9 @@
+#!/bin/sh\r
+\r
+expected_platform="sparc"\r
+platform=`uname -p`\r
+if [ ${platform} != ${expected_platform} ]; then\r
+       echo "This package must be installed on ${expected_platform}"\r
+       exit 1\r
+fi\r
+exit 0\r
diff --git a/config_win32.h b/config_win32.h
new file mode 100644 (file)
index 0000000..baa4947
--- /dev/null
@@ -0,0 +1,100 @@
+/* config_win32.h.  Copied from a ./configure on Unix */\r
+\r
+/* Define to 1 if you have the <dlfcn.h> header file.\r
+#define HAVE_DLFCN_H 1\r
+*/\r
+\r
+/* Define to 1 if you have the `gmtime_r' function. */\r
+/* #undef HAVE_GMTIME_R */\r
+\r
+/* Define if you have an STL implementation that supports useful string\r
+   specialization. */\r
+#define HAVE_GOOD_STL 1\r
+\r
+/* Define to 1 if you have the <inttypes.h> header file.\r
+#define HAVE_INTTYPES_H 1\r
+*/\r
+\r
+/* Define if log4cpp library was found */\r
+#define HAVE_LIBLOG4CPP 1\r
+\r
+/* Define if Xerces-C library was found */\r
+#define HAVE_LIBXERCESC 1\r
+\r
+/* Define to 1 if you have the <memory.h> header file. */\r
+#define HAVE_MEMORY_H 1\r
+\r
+/* define if the compiler implements namespaces */\r
+#define HAVE_NAMESPACES 1\r
+\r
+/* Define to 1 if you have the <stdint.h> header file. */\r
+/* #undef HAVE_STDINT_H */\r
+\r
+/* Define to 1 if you have the <stdlib.h> header file. */\r
+#define HAVE_STDLIB_H 1\r
+\r
+/* Define to 1 if you have the `strchr' function. */\r
+#define HAVE_STRCHR 1\r
+\r
+/* Define to 1 if you have the `strdup' function. */\r
+#define HAVE_STRDUP 1\r
+\r
+/* Define to 1 if you have the <strings.h> header file.\r
+#define HAVE_STRINGS_H 1\r
+*/\r
+\r
+/* Define to 1 if you have the <string.h> header file. */\r
+#define HAVE_STRING_H 1\r
+\r
+/* Define to 1 if you have the `strstr' function. */\r
+#define HAVE_STRSTR 1\r
+\r
+/* Define to 1 if you have the <sys/stat.h> header file. */\r
+#define HAVE_SYS_STAT_H 1\r
+\r
+/* Define to 1 if you have the <sys/types.h> header file. */\r
+#define HAVE_SYS_TYPES_H 1\r
+\r
+/* Define to 1 if you have the <unistd.h> header file.\r
+#define HAVE_UNISTD_H 1\r
+*/\r
+\r
+/* Name of package */\r
+#define PACKAGE "opensaml"\r
+\r
+/* Define to the address where bug reports for this package should be sent. */\r
+#define PACKAGE_BUGREPORT "mace-opensaml-users@internet2.edu"\r
+\r
+/* Define to the full name of this package. */\r
+#define PACKAGE_NAME "opensaml"\r
+\r
+/* Define to the full name and version of this package. */\r
+#define PACKAGE_STRING "opensaml 2.0"\r
+\r
+/* Define to the one symbol short name of this package. */\r
+#define PACKAGE_TARNAME "opensaml"\r
+\r
+/* Define to the version of this package. */\r
+#define PACKAGE_VERSION "2.0"\r
+\r
+/* Define to the necessary symbol if this constant uses a non-standard name on\r
+   your system. */\r
+/* #undef PTHREAD_CREATE_JOINABLE */\r
+\r
+/* Define to 1 if you have the ANSI C header files. */\r
+#define STDC_HEADERS 1\r
+\r
+/* Define to 1 if your <sys/time.h> declares `struct tm'. */\r
+/* #undef TM_IN_SYS_TIME */\r
+\r
+/* Version number of package */\r
+#define VERSION "2.0"\r
+\r
+/* Define if you wish to disable XML-Security-dependent features. */\r
+/* #undef XMLTOOLING_NO_XMLSEC */\r
+\r
+/* Define to empty if `const' does not conform to ANSI C. */\r
+/* #undef const */\r
+\r
+/* Define to `unsigned' if <sys/types.h> does not define. */\r
+/* #undef size_t */\r
diff --git a/configure.ac b/configure.ac
new file mode 100644 (file)
index 0000000..ecee958
--- /dev/null
@@ -0,0 +1,197 @@
+AC_PREREQ([2.50])
+AC_INIT([opensaml], [2.0], [mace-opensaml-users@internet2.edu], [saml])
+AM_CONFIG_HEADER(config.h)
+AM_CONFIG_HEADER(saml/config_pub.h)
+AM_INIT_AUTOMAKE([opensaml], [2.0])
+
+sinclude(doxygen.m4)
+
+# Docygen features
+DX_HTML_FEATURE(ON)
+DX_CHM_FEATURE(OFF)
+DX_CHI_FEATURE(OFF)
+DX_MAN_FEATURE(OFF)
+DX_RTF_FEATURE(OFF)
+DX_XML_FEATURE(OFF)
+DX_PDF_FEATURE(OFF)
+DX_PS_FEATURE(OFF)
+DX_INIT_DOXYGEN(opensaml, doxygen.cfg, doc/api)
+
+AC_ARG_ENABLE(debug,
+    AC_HELP_STRING(--enable-debug, [Have GCC compile with symbols (Default = no)]),
+    enable_debug=$enableval, enable_debug=no)
+
+if test "$enable_debug" = "yes" ; then
+    GCC_CFLAGS="$CFLAGS -Wall -g -D_DEBUG"
+    GCC_CXXFLAGS="$CXXFLAGS -Wall -g -D_DEBUG"
+else
+    GCC_CFLAGS="$CFLAGS -Wall -O2 -DNDEBUG"
+    GCC_CXXFLAGS="$CXXFLAGS -Wall -O2 -DNDEBUG"
+fi
+
+AC_PROG_CC([gcc gcc3 cc])
+AC_PROG_CXX([g++ g++3 c++ CC])
+
+if test "$GCC" = "yes" ; then
+#    AC_HAVE_GCC_VERSION(4,0,0,0,
+#        [
+#        AC_DEFINE(GCC_HASCLASSVISIBILITY,1,
+#            [Define to enable class visibility control in gcc.])
+#        GCC_CFLAGS="$GCC_CFLAGS -fvisibility=hidden -fvisibility-inlines-hidden"
+#        GCC_CXXFLAGS="$GCC_CXXFLAGS -fvisibility=hidden -fvisibility-inlines-hidden"
+#        ])
+    CFLAGS="$GCC_CFLAGS"
+    CXXFLAGS="$GCC_CXXFLAGS"
+fi
+
+AC_DISABLE_STATIC
+AC_PROG_LIBTOOL
+
+# Checks for typedefs, structures, and compiler characteristics.
+AC_C_CONST
+AC_TYPE_SIZE_T
+
+# Checks for library functions.
+AC_CHECK_FUNCS([strchr strdup strstr])
+
+# libcurl settings
+AC_PATH_PROG(CURL_CONFIG,curl-config)
+AC_ARG_WITH(curl,
+    AC_HELP_STRING([--with-curl=PATH], [where curl-config is installed]),
+    [
+    CURL_CONFIG="${with_curl}"
+    if ! test -f "${CURL_CONFIG}" ; then
+       CURL_CONFIG="${with_curl}/bin/curl-config"
+    fi
+    ])
+if test -f "${CURL_CONFIG}" ; then
+    LDFLAGS="`${CURL_CONFIG} --libs` $LDFLAGS"
+    CPPFLAGS="`${CURL_CONFIG} --cflags` $CPPFLAGS"
+else
+    AC_MSG_ERROR([curl-config not found, may need to use --with-curl option])
+fi
+AC_CHECK_HEADER([curl/curl.h],,AC_MSG_ERROR([unable to find libcurl header files]))
+AC_CHECK_LIB([curl],[curl_global_init],,AC_MSG_ERROR([unable to link with libcurl]))
+AC_MSG_CHECKING([for CURLOPT_SSL_CTX_FUNCTION in curl.h])
+AC_EGREP_HEADER([CURLOPT_SSL_CTX_FUNCTION], [curl/curl.h],
+               [AC_MSG_RESULT(yes)],
+               [AC_MSG_ERROR([need libcurl that supports CURLOPT_SSL_CTX_FUNCTION])])
+
+AC_LANG(C++)
+
+# C++ requirements
+AC_CXX_REQUIRE_STL
+AC_CXX_NAMESPACES
+
+# log4cpp settings
+AC_PATH_PROG(LOG4CPP_CONFIG,log4cpp-config)
+AC_ARG_WITH(log4cpp,
+    AC_HELP_STRING([--with-log4cpp=PATH], [where log4cpp-config is installed]),
+    [
+    LOG4CPP_CONFIG="${with_log4cpp}"
+    if ! test -f "${LOG4CPP_CONFIG}" ; then
+       LOG4CPP_CONFIG="${with_log4cpp}/bin/log4cpp-config"
+    fi
+    ])
+if test -f "${LOG4CPP_CONFIG}"; then
+    LDFLAGS="`${LOG4CPP_CONFIG} --libs` $LDFLAGS"
+    CPPFLAGS="`${LOG4CPP_CONFIG} --cflags` $CPPFLAGS"
+else
+    AC_MSG_ERROR([log4cpp-config not found, may need to use --with-log4cpp option])
+    LIBS="-llog4cpp $LIBS"
+fi
+AC_CHECK_HEADER([log4cpp/Category.hh],,AC_MSG_ERROR([unable to find log4cpp header files]))
+AC_CHECK_HEADER([log4cpp/PropertyConfigurator.hh],,AC_MSG_ERROR([you need at least log4cpp 0.3.x]))
+AC_TRY_LINK(
+       [#include <log4cpp/Category.hh>],
+       [log4cpp::Category::getInstance("foo")],
+       [AC_DEFINE(HAVE_LIBLOG4CPP,1,[Define if log4cpp library was found])],
+       [AC_MSG_ERROR([unable to link with log4cpp])])
+
+# Xerces settings
+AC_ARG_WITH(xerces, 
+            AC_HELP_STRING([--with-xerces=PATH], [where xerces-c is installed]),
+            [if test x_$with_xerces != x_/usr; then
+                LDFLAGS="-L${with_xerces}/lib $LDFLAGS"
+                CPPFLAGS="-I${with_xerces}/include $CPPFLAGS"
+            fi])
+LIBS="-lxerces-c $LIBS"
+AC_CHECK_HEADER([xercesc/dom/DOM.hpp],,AC_MSG_ERROR([unable to find xerces header files]))
+AC_MSG_CHECKING([Xerces version])
+AC_PREPROC_IFELSE(
+    [AC_LANG_PROGRAM([#include <xercesc/util/XercesVersion.hpp>],
+[#if  _XERCES_VERSION != 20600
+int i = 0;
+#else
+#error cannot use version 2.6.0
+#endif])],
+    [AC_MSG_RESULT(OK)],
+    [AC_MSG_FAILURE([Xerces-C v2.6.0 has bugs that inhibit use with signed XML, please use special 2.6.1 tarball provided by Shibboleth Project])])
+AC_TRY_LINK(
+    [#include <xercesc/util/PlatformUtils.hpp>],
+    [xercesc::XMLPlatformUtils::Initialize()],
+    [AC_DEFINE(HAVE_LIBXERCESC,1,[Define if Xerces-C library was found])],
+    [AC_MSG_ERROR([unable to link with Xerces])])
+
+
+# XML-Security settings
+AC_ARG_WITH(xmlsec,
+    AC_HELP_STRING([--with-xmlsec=PATH], [where xmlsec is installed]),
+    [if test x_$with_xmlsec != x_/usr; then
+        LDFLAGS="-L${with_xmlsec}/lib $LDFLAGS"
+        CPPFLAGS="-I${with_xmlsec}/include $CPPFLAGS"
+    fi])
+LIBS="-lxml-security-c $LIBS"
+AC_CHECK_HEADER([xsec/utils/XSECPlatformUtils.hpp],,AC_MSG_ERROR([unable to find xmlsec header files]))
+AC_TRY_LINK(
+    [#include <xsec/utils/XSECPlatformUtils.hpp>],
+    [XSECPlatformUtils::Initialise()],
+    [AC_DEFINE(HAVE_LIBXSEC,1,[Define if XML-Sec library was found])],
+    [AC_MSG_ERROR([unable to link with xmlsec library])]
+    )
+
+# XML-Tooling settings
+AC_ARG_WITH(xmltooling,
+    AC_HELP_STRING([--with-xmltooling=PATH], [where xmltooling is installed]),
+    [if test x_$with_xmltooling != x_/usr; then
+        LDFLAGS="-L${with_xmltooling}/lib $LDFLAGS"
+        CPPFLAGS="-I${with_xmltooling}/include $CPPFLAGS"
+    fi])
+LIBS="-lxmltooling $LIBS"
+AC_CHECK_HEADER([xmltooling/XMLToolingConfig.h],,AC_MSG_ERROR([unable to find xmltooling header files]))
+AC_TRY_LINK(
+    [#include <xmltooling/XMLToolingConfig.h>],
+    [XMLToolingConfig::getConfig().init()],
+    [AC_DEFINE(HAVE_LIBXMLTOOLING,1,[Define if XML-Tooling library was found])],
+    [AC_MSG_ERROR([unable to link with xmltooling library])]
+    )
+
+# Does the STL in use help or screw us?
+AC_TRY_LINK(
+    [#include <string>],
+    [std::basic_string<unsigned short> foo; foo=foo+(unsigned short)65],
+    [AC_DEFINE(HAVE_GOOD_STL,1,
+        [Define if you have an STL implementation that supports useful string specialization.])],
+    )
+
+# Check for unit test support
+CXXTEST="/usr/bin/cxxtestgen.pl"
+CXXTESTFLAGS=""
+AC_ARG_WITH(cxxtest,
+            AC_HELP_STRING([--with-cxxtest=PATH], [where cxxtest is installed]),
+            [if test x_$with_cxxtest != x_/usr; then
+                CXXTEST="${with_cxxtest}/cxxtestgen.pl"
+                CXXTESTFLAGS="-I${with_cxxtest}"
+            fi])
+if ! test -f "${CXXTEST}"; then
+    AC_MSG_WARN([cxxtestgen not found, won't build unit tests])
+fi
+
+AC_SUBST(CXXTEST)
+AC_SUBST(CXXTESTFLAGS)
+AM_CONDITIONAL(BUILD_UNITTEST,test -f ${CXXTEST})
+
+LIBTOOL="$LIBTOOL --silent"
+
+# output makefiles
+AC_OUTPUT(Makefile saml/Makefile samltest/Makefile schemas/Makefile)
diff --git a/cpp-opensaml2.sln b/cpp-opensaml2.sln
new file mode 100644 (file)
index 0000000..a6e1762
--- /dev/null
@@ -0,0 +1,20 @@
+\r
+Microsoft Visual Studio Solution File, Format Version 9.00\r
+# Visual Studio 2005\r
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "saml", "saml\saml.vcproj", "{34DE3EA5-EA05-4261-8B63-A850FFB91768}"\r
+EndProject\r
+Global\r
+       GlobalSection(SolutionConfigurationPlatforms) = preSolution\r
+               Debug|Win32 = Debug|Win32\r
+               Release|Win32 = Release|Win32\r
+       EndGlobalSection\r
+       GlobalSection(ProjectConfigurationPlatforms) = postSolution\r
+               {34DE3EA5-EA05-4261-8B63-A850FFB91768}.Debug|Win32.ActiveCfg = Debug|Win32\r
+               {34DE3EA5-EA05-4261-8B63-A850FFB91768}.Debug|Win32.Build.0 = Debug|Win32\r
+               {34DE3EA5-EA05-4261-8B63-A850FFB91768}.Release|Win32.ActiveCfg = Release|Win32\r
+               {34DE3EA5-EA05-4261-8B63-A850FFB91768}.Release|Win32.Build.0 = Release|Win32\r
+       EndGlobalSection\r
+       GlobalSection(SolutionProperties) = preSolution\r
+               HideSolutionNode = FALSE\r
+       EndGlobalSection\r
+EndGlobal\r
diff --git a/doxygen.am b/doxygen.am
new file mode 100644 (file)
index 0000000..420049e
--- /dev/null
@@ -0,0 +1,186 @@
+# Copyright (C) 2004 Oren Ben-Kiki
+# This file is distributed under the same terms as the Automake macro files.
+
+# Generate automatic documentation using Doxygen. Goals and variables values
+# are controlled by the various DX_COND_??? conditionals set by autoconf.
+#
+# The provided goals are:
+# doxygen-doc: Generate all doxygen documentation.
+# doxygen-run: Run doxygen, which will generate some of the documentation
+#              (HTML, CHM, CHI, MAN, RTF, XML) but will not do the post
+#              processing required for the rest of it (PS, PDF, and some MAN).
+# doxygen-man: Rename some doxygen generated man pages.
+# doxygen-ps: Generate doxygen PostScript documentation.
+# doxygen-pdf: Generate doxygen PDF documentation.
+#
+# Note that by default these are not integrated into the automake goals. If
+# doxygen is used to generate man pages, you can achieve this integration by
+# setting man3_MANS to the list of man pages generated and then adding the
+# dependency:
+#
+#   $(man3_MANS): doxygen-doc
+#
+# This will cause make to run doxygen and generate all the documentation.
+#
+# The following variable is intended for use in Makefile.am:
+#
+# DX_CLEANFILES = everything to clean.
+#
+# This is usually added to MOSTLYCLEANFILES.
+
+## --------------------------------- ##
+## Format-independent Doxygen rules. ##
+## --------------------------------- ##
+
+if DX_COND_doc
+
+## ------------------------------- ##
+## Rules specific for HTML output. ##
+## ------------------------------- ##
+
+if DX_COND_html
+
+DX_CLEAN_HTML = @DX_DOCDIR@/html
+
+endif DX_COND_html
+
+## ------------------------------ ##
+## Rules specific for CHM output. ##
+## ------------------------------ ##
+
+if DX_COND_chm
+
+DX_CLEAN_CHM = @DX_DOCDIR@/chm
+
+if DX_COND_chi
+
+DX_CLEAN_CHI = @DX_DOCDIR@/@PACKAGE@.chi
+
+endif DX_COND_chi
+
+endif DX_COND_chm
+
+## ------------------------------ ##
+## Rules specific for MAN output. ##
+## ------------------------------ ##
+
+if DX_COND_man
+
+DX_CLEAN_MAN = @DX_DOCDIR@/man
+
+endif DX_COND_man
+
+## ------------------------------ ##
+## Rules specific for RTF output. ##
+## ------------------------------ ##
+
+if DX_COND_rtf
+
+DX_CLEAN_RTF = @DX_DOCDIR@/rtf
+
+endif DX_COND_rtf
+
+## ------------------------------ ##
+## Rules specific for XML output. ##
+## ------------------------------ ##
+
+if DX_COND_xml
+
+DX_CLEAN_XML = @DX_DOCDIR@/xml
+
+endif DX_COND_xml
+
+## ----------------------------- ##
+## Rules specific for PS output. ##
+## ----------------------------- ##
+
+if DX_COND_ps
+
+DX_CLEAN_PS = @DX_DOCDIR@/@PACKAGE@.ps
+
+DX_PS_GOAL = doxygen-ps
+
+doxygen-ps: @DX_DOCDIR@/@PACKAGE@.ps
+
+@DX_DOCDIR@/@PACKAGE@.ps: @DX_DOCDIR@/@PACKAGE@.tag
+       cd @DX_DOCDIR@/latex; \
+       rm -f *.aux *.toc *.idx *.ind *.ilg *.log *.out; \
+       $(DX_LATEX) refman.tex; \
+       $(MAKEINDEX_PATH) refman.idx; \
+       $(DX_LATEX) refman.tex; \
+       countdown=5; \
+       while $(DX_EGREP) 'Rerun (LaTeX|to get cross-references right)' \
+                         refman.log > /dev/null 2>&1 \
+          && test $$countdown -gt 0; do \
+           $(DX_LATEX) refman.tex; \
+           countdown=`expr $$countdown - 1`; \
+       done; \
+       $(DX_DVIPS) -o ../@PACKAGE@.ps refman.dvi
+
+endif DX_COND_ps
+
+## ------------------------------ ##
+## Rules specific for PDF output. ##
+## ------------------------------ ##
+
+if DX_COND_pdf
+
+DX_CLEAN_PDF = @DX_DOCDIR@/@PACKAGE@.pdf
+
+DX_PDF_GOAL = doxygen-pdf
+
+doxygen-pdf: @DX_DOCDIR@/@PACKAGE@.pdf
+
+@DX_DOCDIR@/@PACKAGE@.pdf: @DX_DOCDIR@/@PACKAGE@.tag
+       cd @DX_DOCDIR@/latex; \
+       rm -f *.aux *.toc *.idx *.ind *.ilg *.log *.out; \
+       $(DX_PDFLATEX) refman.tex; \
+       $(DX_MAKEINDEX) refman.idx; \
+       $(DX_PDFLATEX) refman.tex; \
+       countdown=5; \
+       while $(DX_EGREP) 'Rerun (LaTeX|to get cross-references right)' \
+                         refman.log > /dev/null 2>&1 \
+          && test $$countdown -gt 0; do \
+           $(DX_PDFLATEX) refman.tex; \
+           countdown=`expr $$countdown - 1`; \
+       done; \
+       mv refman.pdf ../@PACKAGE@.pdf
+
+endif DX_COND_pdf
+
+## ------------------------------------------------- ##
+## Rules specific for LaTeX (shared for PS and PDF). ##
+## ------------------------------------------------- ##
+
+if DX_COND_latex
+
+DX_CLEAN_LATEX = @DX_DOCDIR@/latex
+
+endif DX_COND_latex
+
+.PHONY: doxygen-run doxygen-doc $(DX_PS_GOAL) $(DX_PDF_GOAL)
+
+.INTERMEDIATE: doxygen-run $(DX_PS_GOAL) $(DX_PDF_GOAL)
+
+doxygen-run: @DX_DOCDIR@/@PACKAGE@.tag
+
+doxygen-doc: doxygen-run $(DX_PS_GOAL) $(DX_PDF_GOAL)
+
+@DX_DOCDIR@/@PACKAGE@.tag: $(DX_CONFIG) $(pkginclude_HEADERS)
+       rm -rf @DX_DOCDIR@
+       $(DX_ENV) $(DX_DOXYGEN) $(srcdir)/$(DX_CONFIG)
+
+DX_CLEANFILES = \
+    @DX_DOCDIR@/@PACKAGE@.tag \
+    -r \
+    $(DX_CLEAN_HTML) \
+    $(DX_CLEAN_CHM) \
+    $(DX_CLEAN_CHI) \
+    $(DX_CLEAN_MAN) \
+    $(DX_CLEAN_RTF) \
+    $(DX_CLEAN_XML) \
+    $(DX_CLEAN_PS) \
+    $(DX_CLEAN_PDF) \
+    $(DX_CLEAN_LATEX)
+
+endif DX_COND_doc
diff --git a/doxygen.cfg b/doxygen.cfg
new file mode 100644 (file)
index 0000000..975b66b
--- /dev/null
@@ -0,0 +1,255 @@
+# Doxyfile 1.4.6
+
+#---------------------------------------------------------------------------
+# Project related configuration options
+#---------------------------------------------------------------------------
+PROJECT_NAME           = $(PROJECT)-$(VERSION)
+PROJECT_NUMBER         = 
+OUTPUT_DIRECTORY       = $(DOCDIR)
+CREATE_SUBDIRS         = NO
+OUTPUT_LANGUAGE        = English
+USE_WINDOWS_ENCODING   = YES
+BRIEF_MEMBER_DESC      = YES
+REPEAT_BRIEF           = YES
+ABBREVIATE_BRIEF       = "The $name class" \
+                         "The $name widget" \
+                         "The $name file" \
+                         is \
+                         provides \
+                         specifies \
+                         contains \
+                         represents \
+                         a \
+                         an \
+                         the
+ALWAYS_DETAILED_SEC    = NO
+INLINE_INHERITED_MEMB  = NO
+FULL_PATH_NAMES        = YES
+STRIP_FROM_PATH        = $(SRCDIR)
+STRIP_FROM_INC_PATH    = $(SRCDIR)
+SHORT_NAMES            = YES
+JAVADOC_AUTOBRIEF      = YES
+MULTILINE_CPP_IS_BRIEF = NO
+DETAILS_AT_TOP         = NO
+INHERIT_DOCS           = YES
+SEPARATE_MEMBER_PAGES  = NO
+TAB_SIZE               = 4
+ALIASES                = 
+OPTIMIZE_OUTPUT_FOR_C  = NO
+OPTIMIZE_OUTPUT_JAVA   = NO
+BUILTIN_STL_SUPPORT    = YES
+DISTRIBUTE_GROUP_DOC   = NO
+SUBGROUPING            = YES
+#---------------------------------------------------------------------------
+# Build related configuration options
+#---------------------------------------------------------------------------
+EXTRACT_ALL            = NO
+EXTRACT_PRIVATE        = NO
+EXTRACT_STATIC         = YES
+EXTRACT_LOCAL_CLASSES  = YES
+EXTRACT_LOCAL_METHODS  = NO
+HIDE_UNDOC_MEMBERS     = NO
+HIDE_UNDOC_CLASSES     = NO
+HIDE_FRIEND_COMPOUNDS  = NO
+HIDE_IN_BODY_DOCS      = NO
+INTERNAL_DOCS          = NO
+CASE_SENSE_NAMES       = NO
+HIDE_SCOPE_NAMES       = NO
+SHOW_INCLUDE_FILES     = YES
+INLINE_INFO            = YES
+SORT_MEMBER_DOCS       = YES
+SORT_BRIEF_DOCS        = NO
+SORT_BY_SCOPE_NAME     = NO
+GENERATE_TODOLIST      = YES
+GENERATE_TESTLIST      = YES
+GENERATE_BUGLIST       = YES
+GENERATE_DEPRECATEDLIST= YES
+ENABLED_SECTIONS       = 
+MAX_INITIALIZER_LINES  = 30
+SHOW_USED_FILES        = YES
+SHOW_DIRECTORIES       = YES
+FILE_VERSION_FILTER    = 
+#---------------------------------------------------------------------------
+# configuration options related to warning and progress messages
+#---------------------------------------------------------------------------
+QUIET                  = NO
+WARNINGS               = YES
+WARN_IF_UNDOCUMENTED   = YES
+WARN_IF_DOC_ERROR      = YES
+WARN_NO_PARAMDOC       = NO
+WARN_FORMAT            = "$file:$line: $text"
+WARN_LOGFILE           = 
+#---------------------------------------------------------------------------
+# configuration options related to the input files
+#---------------------------------------------------------------------------
+INPUT                  = $(SRCDIR)/saml
+FILE_PATTERNS          = *.d \
+                         *.java \
+                         *.ii \
+                         *.ixx \
+                         *.ipp \
+                         *.i++ \
+                         *.inl \
+                         *.h \
+                         *.hh \
+                         *.hxx \
+                         *.hpp \
+                         *.h++ \
+                         *.idl \
+                         *.odl \
+                         *.cs \
+                         *.php \
+                         *.php3 \
+                         *.inc \
+                         *.m \
+                         *.mm \
+                         *.dox \
+                         *.py
+RECURSIVE              = YES
+EXCLUDE                = 
+EXCLUDE_SYMLINKS       = NO
+EXCLUDE_PATTERNS       = 
+EXAMPLE_PATH           = $(SRCDIR)/saml
+EXAMPLE_PATTERNS       =
+EXAMPLE_RECURSIVE      = NO
+IMAGE_PATH             = 
+INPUT_FILTER           = 
+FILTER_PATTERNS        = 
+FILTER_SOURCE_FILES    = NO
+#---------------------------------------------------------------------------
+# configuration options related to source browsing
+#---------------------------------------------------------------------------
+SOURCE_BROWSER         = NO
+INLINE_SOURCES         = NO
+STRIP_CODE_COMMENTS    = YES
+REFERENCED_BY_RELATION = NO
+REFERENCES_RELATION    = NO
+USE_HTAGS              = NO
+VERBATIM_HEADERS       = NO
+#---------------------------------------------------------------------------
+# configuration options related to the alphabetical class index
+#---------------------------------------------------------------------------
+ALPHABETICAL_INDEX     = NO
+COLS_IN_ALPHA_INDEX    = 5
+IGNORE_PREFIX          = 
+#---------------------------------------------------------------------------
+# configuration options related to the HTML output
+#---------------------------------------------------------------------------
+GENERATE_HTML          = $(GENERATE_HTML)
+HTML_OUTPUT            = html
+HTML_FILE_EXTENSION    = .html
+HTML_HEADER            = 
+HTML_FOOTER            = 
+HTML_STYLESHEET        = 
+HTML_ALIGN_MEMBERS     = YES
+GENERATE_HTMLHELP      = $(GENERATE_CHM)
+CHM_FILE               = ../$(PROJECT).chm
+HHC_LOCATION           = $(HHC_PATH)
+GENERATE_CHI           = $(GENERATE_CHI)
+BINARY_TOC             = NO
+TOC_EXPAND             = NO
+DISABLE_INDEX          = NO
+ENUM_VALUES_PER_LINE   = 4
+GENERATE_TREEVIEW      = YES
+TREEVIEW_WIDTH         = 250
+#---------------------------------------------------------------------------
+# configuration options related to the LaTeX output
+#---------------------------------------------------------------------------
+GENERATE_LATEX         = $(GENERATE_LATEX)
+LATEX_OUTPUT           = latex
+LATEX_CMD_NAME         = latex
+MAKEINDEX_CMD_NAME     = makeindex
+COMPACT_LATEX          = NO
+PAPER_TYPE             = $(PAPER_SIZE)
+EXTRA_PACKAGES         = 
+LATEX_HEADER           = 
+PDF_HYPERLINKS         = NO
+USE_PDFLATEX           = NO
+LATEX_BATCHMODE        = YES
+LATEX_HIDE_INDICES     = NO
+#---------------------------------------------------------------------------
+# configuration options related to the RTF output
+#---------------------------------------------------------------------------
+GENERATE_RTF           = $(GENERATE_RTF)
+RTF_OUTPUT             = rtf
+COMPACT_RTF            = NO
+RTF_HYPERLINKS         = NO
+RTF_STYLESHEET_FILE    = 
+RTF_EXTENSIONS_FILE    = 
+#---------------------------------------------------------------------------
+# configuration options related to the man page output
+#---------------------------------------------------------------------------
+GENERATE_MAN           = $(GENERATE_MAN)
+MAN_OUTPUT             = man
+MAN_EXTENSION          = .1
+MAN_LINKS              = NO
+#---------------------------------------------------------------------------
+# configuration options related to the XML output
+#---------------------------------------------------------------------------
+GENERATE_XML           = $(GENERATE_XML)
+XML_OUTPUT             = xml
+XML_SCHEMA             = 
+XML_DTD                = 
+XML_PROGRAMLISTING     = YES
+#---------------------------------------------------------------------------
+# configuration options for the AutoGen Definitions output
+#---------------------------------------------------------------------------
+GENERATE_AUTOGEN_DEF   = NO
+#---------------------------------------------------------------------------
+# configuration options related to the Perl module output
+#---------------------------------------------------------------------------
+GENERATE_PERLMOD       = NO
+PERLMOD_LATEX          = NO
+PERLMOD_PRETTY         = YES
+PERLMOD_MAKEVAR_PREFIX = 
+#---------------------------------------------------------------------------
+# Configuration options related to the preprocessor   
+#---------------------------------------------------------------------------
+ENABLE_PREPROCESSING   = YES
+MACRO_EXPANSION        = YES
+EXPAND_ONLY_PREDEF     = NO
+SEARCH_INCLUDES        = YES
+INCLUDE_PATH           = $(SRCDIR)
+INCLUDE_FILE_PATTERNS  = 
+PREDEFINED             = _MSC_VER \
+                         DOXYGEN_SKIP
+EXPAND_AS_DEFINED      = 
+SKIP_FUNCTION_MACROS   = YES
+#---------------------------------------------------------------------------
+# Configuration::additions related to external references   
+#---------------------------------------------------------------------------
+TAGFILES               = 
+GENERATE_TAGFILE       = $(DOCDIR)/$(PROJECT).tag
+ALLEXTERNALS           = NO
+EXTERNAL_GROUPS        = YES
+PERL_PATH              = $(PERL_PATH)
+#---------------------------------------------------------------------------
+# Configuration options related to the dot tool   
+#---------------------------------------------------------------------------
+CLASS_DIAGRAMS         = YES
+HIDE_UNDOC_RELATIONS   = YES
+HAVE_DOT               = $(HAVE_DOT)
+CLASS_GRAPH            = YES
+COLLABORATION_GRAPH    = YES
+GROUP_GRAPHS           = YES
+UML_LOOK               = NO
+TEMPLATE_RELATIONS     = NO
+INCLUDE_GRAPH          = YES
+INCLUDED_BY_GRAPH      = YES
+CALL_GRAPH             = NO
+GRAPHICAL_HIERARCHY    = YES
+DIRECTORY_GRAPH        = YES
+DOT_IMAGE_FORMAT       = png
+DOT_PATH               = $(DOT_PATH)
+DOTFILE_DIRS           = 
+MAX_DOT_GRAPH_WIDTH    = 1024
+MAX_DOT_GRAPH_HEIGHT   = 1024
+MAX_DOT_GRAPH_DEPTH    = 1000
+DOT_TRANSPARENT        = NO
+DOT_MULTI_TARGETS      = NO
+GENERATE_LEGEND        = YES
+DOT_CLEANUP            = YES
+#---------------------------------------------------------------------------
+# Configuration::additions related to the search engine   
+#---------------------------------------------------------------------------
+SEARCHENGINE           = NO
diff --git a/doxygen.m4 b/doxygen.m4
new file mode 100644 (file)
index 0000000..e4688de
--- /dev/null
@@ -0,0 +1,312 @@
+# This file is part of Autoconf.                       -*- Autoconf -*-
+
+# Copyright (C) 2004 Oren Ben-Kiki
+# This file is distributed under the same terms as the Autoconf macro files.
+
+# Generate automatic documentation using Doxygen. Works in concert with the
+# aminclude.m4 file and a compatible doxygen configuration file. Defines the
+# following public macros:
+#
+# DX_???_FEATURE(ON|OFF) - control the default setting fo a Doxygen feature.
+# Supported features are 'DOXYGEN' itself, 'DOT' for generating graphics,
+# 'HTML' for plain HTML, 'CHM' for compressed HTML help (for MS users), 'CHI'
+# for generating a seperate .chi file by the .chm file, and 'MAN', 'RTF',
+# 'XML', 'PDF' and 'PS' for the appropriate output formats. The environment
+# variable DOXYGEN_PAPER_SIZE may be specified to override the default 'a4wide'
+# paper size.
+#
+# By default, HTML, PDF and PS documentation is generated as this seems to be
+# the most popular and portable combination. MAN pages created by Doxygen are
+# usually problematic, though by picking an appropriate subset and doing some
+# massaging they might be better than nothing. CHM and RTF are specific for MS
+# (note that you can't generate both HTML and CHM at the same time). The XML is
+# rather useless unless you apply specialized post-processing to it.
+#
+# The macro mainly controls the default state of the feature. The use can
+# override the default by specifying --enable or --disable. The macros ensure
+# that contradictory flags are not given (e.g., --enable-doxygen-html and
+# --enable-doxygen-chm, --enable-doxygen-anything with --disable-doxygen, etc.)
+# Finally, each feature will be automatically disabled (with a warning) if the
+# required programs are missing.
+#
+# Once all the feature defaults have been specified, call DX_INIT_DOXYGEN with
+# the following parameters: a one-word name for the project for use as a
+# filename base etc., an optional configuration file name (the default is
+# 'Doxyfile', the same as Doxygen's default), and an optional output directory
+# name (the default is 'doxygen-doc').
+
+## ----------##
+## Defaults. ##
+## ----------##
+
+DX_ENV=""
+AC_DEFUN([DX_FEATURE_doc],  ON)
+AC_DEFUN([DX_FEATURE_dot],  ON)
+AC_DEFUN([DX_FEATURE_man],  OFF)
+AC_DEFUN([DX_FEATURE_html], ON)
+AC_DEFUN([DX_FEATURE_chm],  OFF)
+AC_DEFUN([DX_FEATURE_chi],  OFF)
+AC_DEFUN([DX_FEATURE_rtf],  OFF)
+AC_DEFUN([DX_FEATURE_xml],  OFF)
+AC_DEFUN([DX_FEATURE_pdf],  ON)
+AC_DEFUN([DX_FEATURE_ps],   ON)
+
+## --------------- ##
+## Private macros. ##
+## --------------- ##
+
+# DX_ENV_APPEND(VARIABLE, VALUE)
+# ------------------------------
+# Append VARIABLE="VALUE" to DX_ENV for invoking doxygen.
+AC_DEFUN([DX_ENV_APPEND], [AC_SUBST([DX_ENV], ["$DX_ENV $1='$2'"])])
+
+# DX_DIRNAME_EXPR
+# ---------------
+# Expand into a shell expression prints the directory part of a path.
+AC_DEFUN([DX_DIRNAME_EXPR],
+         [[expr ".$1" : '\(\.\)[^/]*$' \| "x$1" : 'x\(.*\)/[^/]*$']])
+
+# DX_IF_FEATURE(FEATURE, IF-ON, IF-OFF)
+# -------------------------------------
+# Expands according to the M4 (static) status of the feature.
+AC_DEFUN([DX_IF_FEATURE], [ifelse(DX_FEATURE_$1, ON, [$2], [$3])])
+
+# DX_REQUIRE_PROG(VARIABLE, PROGRAM)
+# ----------------------------------
+# Require the specified program to be found for the DX_CURRENT_FEATURE to work.
+AC_DEFUN([DX_REQUIRE_PROG], [
+AC_PATH_TOOL([$1], [$2])
+if test "$DX_FLAG_[]DX_CURRENT_FEATURE$$1" = 1; then
+    AC_MSG_WARN([$2 not found - will not DX_CURRENT_DESCRIPTION])
+    AC_SUBST([DX_FLAG_[]DX_CURRENT_FEATURE], 0)
+fi
+])
+
+# DX_TEST_FEATURE(FEATURE)
+# ------------------------
+# Expand to a shell expression testing whether the feature is active.
+AC_DEFUN([DX_TEST_FEATURE], [test "$DX_FLAG_$1" = 1])
+
+# DX_CHECK_DEPEND(REQUIRED_FEATURE, REQUIRED_STATE)
+# -------------------------------------------------
+# Verify that a required features has the right state before trying to turn on
+# the DX_CURRENT_FEATURE.
+AC_DEFUN([DX_CHECK_DEPEND], [
+test "$DX_FLAG_$1" = "$2" \
+|| AC_MSG_ERROR([doxygen-DX_CURRENT_FEATURE ifelse([$2], 1,
+                            requires, contradicts) doxygen-DX_CURRENT_FEATURE])
+])
+
+# DX_CLEAR_DEPEND(FEATURE, REQUIRED_FEATURE, REQUIRED_STATE)
+# ----------------------------------------------------------
+# Turn off the DX_CURRENT_FEATURE if the required feature is off.
+AC_DEFUN([DX_CLEAR_DEPEND], [
+test "$DX_FLAG_$1" = "$2" || AC_SUBST([DX_FLAG_[]DX_CURRENT_FEATURE], 0)
+])
+
+# DX_FEATURE_ARG(FEATURE, DESCRIPTION,
+#                CHECK_DEPEND, CLEAR_DEPEND,
+#                REQUIRE, DO-IF-ON, DO-IF-OFF)
+# --------------------------------------------
+# Parse the command-line option controlling a feature. CHECK_DEPEND is called
+# if the user explicitly turns the feature on (and invokes DX_CHECK_DEPEND),
+# otherwise CLEAR_DEPEND is called to turn off the default state if a required
+# feature is disabled (using DX_CLEAR_DEPEND). REQUIRE performs additional
+# requirement tests (DX_REQUIRE_PROG). Finally, an automake flag is set and
+# DO-IF-ON or DO-IF-OFF are called according to the final state of the feature.
+AC_DEFUN([DX_ARG_ABLE], [
+    AC_DEFUN([DX_CURRENT_FEATURE], [$1])
+    AC_DEFUN([DX_CURRENT_DESCRIPTION], [$2])
+    AC_ARG_ENABLE(doxygen-$1,
+                  [AS_HELP_STRING(DX_IF_FEATURE([$1], [--disable-doxygen-$1],
+                                                      [--enable-doxygen-$1]),
+                                  DX_IF_FEATURE([$1], [don't $2], [$2]))],
+                  [
+case "$enableval" in
+#(
+y|Y|yes|Yes|YES)
+    AC_SUBST([DX_FLAG_$1], 1)
+    $3
+;; #(
+n|N|no|No|NO)
+    AC_SUBST([DX_FLAG_$1], 0)
+;; #(
+*)
+    AC_MSG_ERROR([invalid value '$enableval' given to doxygen-$1])
+;;
+esac
+], [
+AC_SUBST([DX_FLAG_$1], [DX_IF_FEATURE([$1], 1, 0)])
+$4
+])
+if DX_TEST_FEATURE([$1]); then
+    $5
+    :
+fi
+if DX_TEST_FEATURE([$1]); then
+    AM_CONDITIONAL(DX_COND_$1, :)
+    $6
+    :
+else
+    AM_CONDITIONAL(DX_COND_$1, false)
+    $7
+    :
+fi
+])
+
+## -------------- ##
+## Public macros. ##
+## -------------- ##
+
+# DX_XXX_FEATURE(DEFAULT_STATE)
+# -----------------------------
+AC_DEFUN([DX_DOXYGEN_FEATURE], [AC_DEFUN([DX_FEATURE_doc],  [$1])])
+AC_DEFUN([DX_MAN_FEATURE],     [AC_DEFUN([DX_FEATURE_man],  [$1])])
+AC_DEFUN([DX_HTML_FEATURE],    [AC_DEFUN([DX_FEATURE_html], [$1])])
+AC_DEFUN([DX_CHM_FEATURE],     [AC_DEFUN([DX_FEATURE_chm],  [$1])])
+AC_DEFUN([DX_CHI_FEATURE],     [AC_DEFUN([DX_FEATURE_chi],  [$1])])
+AC_DEFUN([DX_RTF_FEATURE],     [AC_DEFUN([DX_FEATURE_rtf],  [$1])])
+AC_DEFUN([DX_XML_FEATURE],     [AC_DEFUN([DX_FEATURE_xml],  [$1])])
+AC_DEFUN([DX_XML_FEATURE],     [AC_DEFUN([DX_FEATURE_xml],  [$1])])
+AC_DEFUN([DX_PDF_FEATURE],     [AC_DEFUN([DX_FEATURE_pdf],  [$1])])
+AC_DEFUN([DX_PS_FEATURE],      [AC_DEFUN([DX_FEATURE_ps],   [$1])])
+
+# DX_INIT_DOXYGEN(PROJECT, [CONFIG-FILE], [OUTPUT-DOC-DIR])
+# ---------------------------------------------------------
+# PROJECT also serves as the base name for the documentation files.
+# The default CONFIG-FILE is "Doxyfile" and OUTPUT-DOC-DIR is "doxygen-doc".
+AC_DEFUN([DX_INIT_DOXYGEN], [
+
+# Files:
+AC_SUBST([DX_PROJECT], [$1])
+AC_SUBST([DX_CONFIG], [ifelse([$2], [], Doxyfile, [$2])])
+AC_SUBST([DX_DOCDIR], [ifelse([$3], [], doxygen-doc, [$3])])
+
+# Environment variables used inside doxygen.cfg:
+DX_ENV_APPEND(SRCDIR, $srcdir)
+DX_ENV_APPEND(PROJECT, $DX_PROJECT)
+DX_ENV_APPEND(DOCDIR, $DX_DOCDIR)
+DX_ENV_APPEND(VERSION, $PACKAGE_VERSION)
+
+# Doxygen itself:
+DX_ARG_ABLE(doc, [generate any doxygen documentation],
+            [],
+            [],
+            [DX_REQUIRE_PROG([DX_DOXYGEN], doxygen)
+             DX_REQUIRE_PROG([DX_PERL], perl)],
+            [DX_ENV_APPEND(PERL_PATH, $DX_PERL)])
+
+# Dot for graphics:
+DX_ARG_ABLE(dot, [generate graphics for doxygen documentation],
+            [DX_CHECK_DEPEND(doc, 1)],
+            [DX_CLEAR_DEPEND(doc, 1)],
+            [DX_REQUIRE_PROG([DX_DOT], dot)],
+            [DX_ENV_APPEND(HAVE_DOT, YES)
+             DX_ENV_APPEND(DOT_PATH, [`DX_DIRNAME_EXPR($DX_DOT)`])],
+            [DX_ENV_APPEND(HAVE_DOT, NO)])
+
+# Man pages generation:
+DX_ARG_ABLE(man, [generate doxygen manual pages],
+            [DX_CHECK_DEPEND(doc, 1)],
+            [DX_CLEAR_DEPEND(doc, 1)],
+            [],
+            [DX_ENV_APPEND(GENERATE_MAN, YES)],
+            [DX_ENV_APPEND(GENERATE_MAN, NO)])
+
+# RTF file generation:
+DX_ARG_ABLE(rtf, [generate doxygen RTF documentation],
+            [DX_CHECK_DEPEND(doc, 1)],
+            [DX_CLEAR_DEPEND(doc, 1)],
+            [],
+            [DX_ENV_APPEND(GENERATE_RTF, YES)],
+            [DX_ENV_APPEND(GENERATE_RTF, NO)])
+
+# XML file generation:
+DX_ARG_ABLE(xml, [generate doxygen XML documentation],
+            [DX_CHECK_DEPEND(doc, 1)],
+            [DX_CLEAR_DEPEND(doc, 1)],
+            [],
+            [DX_ENV_APPEND(GENERATE_XML, YES)],
+            [DX_ENV_APPEND(GENERATE_XML, NO)])
+
+# (Compressed) HTML help generation:
+DX_ARG_ABLE(chm, [generate doxygen compressed HTML help documentation],
+            [DX_CHECK_DEPEND(doc, 1)],
+            [DX_CLEAR_DEPEND(doc, 1)],
+            [DX_REQUIRE_PROG([DX_HHC], hhc)],
+            [DX_ENV_APPEND(HHC_PATH, $DX_HHC)
+             DX_ENV_APPEND(GENERATE_HTML, YES)
+             DX_ENV_APPEND(GENERATE_HTMLHELP, YES)],
+            [DX_ENV_APPEND(GENERATE_HTMLHELP, NO)])
+
+# Seperate CHI file generation.
+DX_ARG_ABLE(chi, [generate doxygen seperate compressed HTML help index file],
+            [DX_CHECK_DEPEND(chm, 1)],
+            [DX_CLEAR_DEPEND(chm, 1)],
+            [],
+            [DX_ENV_APPEND(GENERATE_CHI, YES)],
+            [DX_ENV_APPEND(GENERATE_CHI, NO)])
+
+# Plain HTML pages generation:
+DX_ARG_ABLE(html, [generate doxygen plain HTML documentation],
+            [DX_CHECK_DEPEND(doc, 1) DX_CHECK_DEPEND(chm, 0)],
+            [DX_CLEAR_DEPEND(doc, 1) DX_CLEAR_DEPEND(chm, 0)],
+            [],
+            [DX_ENV_APPEND(GENERATE_HTML, YES)],
+            [DX_TEST_FEATURE(chm) || DX_ENV_APPEND(GENERATE_HTML, NO)])
+
+# PostScript file generation:
+DX_ARG_ABLE(ps, [generate doxygen PostScript documentation],
+            [DX_CHECK_DEPEND(doc, 1)],
+            [DX_CLEAR_DEPEND(doc, 1)],
+            [DX_REQUIRE_PROG([DX_LATEX], latex)
+             DX_REQUIRE_PROG([DX_MAKEINDEX], makeindex)
+             DX_REQUIRE_PROG([DX_DVIPS], dvips)
+             DX_REQUIRE_PROG([DX_EGREP], egrep)])
+
+# PDF file generation:
+DX_ARG_ABLE(pdf, [generate doxygen PDF documentation],
+            [DX_CHECK_DEPEND(doc, 1)],
+            [DX_CLEAR_DEPEND(doc, 1)],
+            [DX_REQUIRE_PROG([DX_PDFLATEX], pdflatex)
+             DX_REQUIRE_PROG([DX_MAKEINDEX], makeindex)
+             DX_REQUIRE_PROG([DX_EGREP], egrep)])
+
+# LaTeX generation for PS and/or PDF:
+if DX_TEST_FEATURE(ps) || DX_TEST_FEATURE(pdf); then
+    AM_CONDITIONAL(DX_COND_latex, :)
+    DX_ENV_APPEND(GENERATE_LATEX, YES)
+else
+    AM_CONDITIONAL(DX_COND_latex, false)
+    DX_ENV_APPEND(GENERATE_LATEX, NO)
+fi
+
+# Paper size for PS and/or PDF:
+AC_ARG_VAR(DOXYGEN_PAPER_SIZE,
+           [a4wide (default), a4, letter, legal or executive])
+case "$DOXYGEN_PAPER_SIZE" in
+#(
+"")
+    AC_SUBST(DOXYGEN_PAPER_SIZE, "")
+;; #(
+a4wide|a4|letter|legal|executive)
+    DX_ENV_APPEND(PAPER_SIZE, $DOXYGEN_PAPER_SIZE)
+;; #(
+*)
+    AC_MSG_ERROR([unknown DOXYGEN_PAPER_SIZE='$DOXYGEN_PAPER_SIZE'])
+;;
+esac
+
+#For debugging:
+#echo DX_FLAG_doc=$DX_FLAG_doc
+#echo DX_FLAG_dot=$DX_FLAG_dot
+#echo DX_FLAG_man=$DX_FLAG_man
+#echo DX_FLAG_html=$DX_FLAG_html
+#echo DX_FLAG_chm=$DX_FLAG_chm
+#echo DX_FLAG_chi=$DX_FLAG_chi
+#echo DX_FLAG_rtf=$DX_FLAG_rtf
+#echo DX_FLAG_xml=$DX_FLAG_xml
+#echo DX_FLAG_pdf=$DX_FLAG_pdf
+#echo DX_FLAG_ps=$DX_FLAG_ps
+#echo DX_ENV=$DX_ENV
+])
diff --git a/libtool.m4 b/libtool.m4
new file mode 100644 (file)
index 0000000..a489f4b
--- /dev/null
@@ -0,0 +1,5960 @@
+# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-\r
+## Copyright 1996, 1997, 1998, 1999, 2000, 2001\r
+## Free Software Foundation, Inc.\r
+## Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996\r
+##\r
+## This program is free software; you can redistribute it and/or modify\r
+## it under the terms of the GNU General Public License as published by\r
+## the Free Software Foundation; either version 2 of the License, or\r
+## (at your option) any later version.\r
+##\r
+## This program is distributed in the hope that it will be useful, but\r
+## WITHOUT ANY WARRANTY; without even the implied warranty of\r
+## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\r
+## General Public License for more details.\r
+##\r
+## You should have received a copy of the GNU General Public License\r
+## along with this program; if not, write to the Free Software\r
+## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\r
+##\r
+## As a special exception to the GNU General Public License, if you\r
+## distribute this file as part of a program that contains a\r
+## configuration script generated by Autoconf, you may include it under\r
+## the same distribution terms that you use for the rest of that program.\r
+\r
+# serial 47 AC_PROG_LIBTOOL\r
+\r
+\r
+# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)\r
+# -----------------------------------------------------------\r
+# If this macro is not defined by Autoconf, define it here.\r
+m4_ifdef([AC_PROVIDE_IFELSE],\r
+         [],\r
+         [m4_define([AC_PROVIDE_IFELSE],\r
+                [m4_ifdef([AC_PROVIDE_$1],\r
+                          [$2], [$3])])])\r
+\r
+\r
+# AC_PROG_LIBTOOL\r
+# ---------------\r
+AC_DEFUN([AC_PROG_LIBTOOL],\r
+[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl\r
+dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX\r
+dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.\r
+  AC_PROVIDE_IFELSE([AC_PROG_CXX],\r
+    [AC_LIBTOOL_CXX],\r
+    [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX\r
+  ])])\r
+dnl And a similar setup for Fortran 77 support\r
+  AC_PROVIDE_IFELSE([AC_PROG_F77],\r
+    [AC_LIBTOOL_F77],\r
+    [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77\r
+])])\r
+\r
+dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.\r
+dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run\r
+dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.\r
+  AC_PROVIDE_IFELSE([AC_PROG_GCJ],\r
+    [AC_LIBTOOL_GCJ],\r
+    [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],\r
+      [AC_LIBTOOL_GCJ],\r
+      [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],\r
+       [AC_LIBTOOL_GCJ],\r
+      [ifdef([AC_PROG_GCJ],\r
+            [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])\r
+       ifdef([A][M_PROG_GCJ],\r
+            [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])\r
+       ifdef([LT_AC_PROG_GCJ],\r
+            [define([LT_AC_PROG_GCJ],\r
+               defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])\r
+])])# AC_PROG_LIBTOOL\r
+\r
+\r
+# _AC_PROG_LIBTOOL\r
+# ----------------\r
+AC_DEFUN([_AC_PROG_LIBTOOL],\r
+[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl\r
+AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl\r
+AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl\r
+AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl\r
+\r
+# This can be used to rebuild libtool when needed\r
+LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"\r
+\r
+# Always use our own libtool.\r
+LIBTOOL='$(SHELL) $(top_builddir)/libtool'\r
+AC_SUBST(LIBTOOL)dnl\r
+\r
+# Prevent multiple expansion\r
+define([AC_PROG_LIBTOOL], [])\r
+])# _AC_PROG_LIBTOOL\r
+\r
+\r
+# AC_LIBTOOL_SETUP\r
+# ----------------\r
+AC_DEFUN([AC_LIBTOOL_SETUP],\r
+[AC_PREREQ(2.50)dnl\r
+AC_REQUIRE([AC_ENABLE_SHARED])dnl\r
+AC_REQUIRE([AC_ENABLE_STATIC])dnl\r
+AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl\r
+AC_REQUIRE([AC_CANONICAL_HOST])dnl\r
+AC_REQUIRE([AC_CANONICAL_BUILD])dnl\r
+AC_REQUIRE([AC_PROG_CC])dnl\r
+AC_REQUIRE([AC_PROG_LD])dnl\r
+AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl\r
+AC_REQUIRE([AC_PROG_NM])dnl\r
+\r
+AC_REQUIRE([AC_PROG_LN_S])dnl\r
+AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl\r
+# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!\r
+AC_REQUIRE([AC_OBJEXT])dnl\r
+AC_REQUIRE([AC_EXEEXT])dnl\r
+dnl\r
+\r
+AC_LIBTOOL_SYS_MAX_CMD_LEN\r
+AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE\r
+AC_LIBTOOL_OBJDIR\r
+\r
+AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl\r
+_LT_AC_PROG_ECHO_BACKSLASH\r
+\r
+case $host_os in\r
+aix3*)\r
+  # AIX sometimes has problems with the GCC collect2 program.  For some\r
+  # reason, if we set the COLLECT_NAMES environment variable, the problems\r
+  # vanish in a puff of smoke.\r
+  if test "X${COLLECT_NAMES+set}" != Xset; then\r
+    COLLECT_NAMES=\r
+    export COLLECT_NAMES\r
+  fi\r
+  ;;\r
+esac\r
+\r
+# Sed substitution that helps us do robust quoting.  It backslashifies\r
+# metacharacters that are still active within double-quoted strings.\r
+Xsed='sed -e s/^X//'\r
+[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']\r
+\r
+# Same as above, but do not quote variable references.\r
+[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']\r
+\r
+# Sed substitution to delay expansion of an escaped shell variable in a\r
+# double_quote_subst'ed string.\r
+delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'\r
+\r
+# Sed substitution to avoid accidental globbing in evaled expressions\r
+no_glob_subst='s/\*/\\\*/g'\r
+\r
+# Constants:\r
+rm="rm -f"\r
+\r
+# Global variables:\r
+default_ofile=libtool\r
+can_build_shared=yes\r
+\r
+# All known linkers require a `.a' archive for static linking (except M$VC,\r
+# which needs '.lib').\r
+libext=a\r
+ltmain="$ac_aux_dir/ltmain.sh"\r
+ofile="$default_ofile"\r
+with_gnu_ld="$lt_cv_prog_gnu_ld"\r
+\r
+AC_CHECK_TOOL(AR, ar, false)\r
+AC_CHECK_TOOL(RANLIB, ranlib, :)\r
+AC_CHECK_TOOL(STRIP, strip, :)\r
+\r
+old_CC="$CC"\r
+old_CFLAGS="$CFLAGS"\r
+\r
+# Set sane defaults for various variables\r
+test -z "$AR" && AR=ar\r
+test -z "$AR_FLAGS" && AR_FLAGS=cru\r
+test -z "$AS" && AS=as\r
+test -z "$CC" && CC=cc\r
+test -z "$LTCC" && LTCC=$CC\r
+test -z "$DLLTOOL" && DLLTOOL=dlltool\r
+test -z "$LD" && LD=ld\r
+test -z "$LN_S" && LN_S="ln -s"\r
+test -z "$MAGIC_CMD" && MAGIC_CMD=file\r
+test -z "$NM" && NM=nm\r
+test -z "$SED" && SED=sed\r
+test -z "$OBJDUMP" && OBJDUMP=objdump\r
+test -z "$RANLIB" && RANLIB=:\r
+test -z "$STRIP" && STRIP=:\r
+test -z "$ac_objext" && ac_objext=o\r
+\r
+# Determine commands to create old-style static archives.\r
+old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'\r
+old_postinstall_cmds='chmod 644 $oldlib'\r
+old_postuninstall_cmds=\r
+\r
+if test -n "$RANLIB"; then\r
+  case $host_os in\r
+  openbsd*)\r
+    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"\r
+    ;;\r
+  *)\r
+    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"\r
+    ;;\r
+  esac\r
+  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"\r
+fi\r
+\r
+# Only perform the check for file, if the check method requires it\r
+case $deplibs_check_method in\r
+file_magic*)\r
+  if test "$file_magic_cmd" = '$MAGIC_CMD'; then\r
+    AC_PATH_MAGIC\r
+  fi\r
+  ;;\r
+esac\r
+\r
+AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)\r
+AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],\r
+enable_win32_dll=yes, enable_win32_dll=no)\r
+\r
+AC_ARG_ENABLE([libtool-lock],\r
+    [AC_HELP_STRING([--disable-libtool-lock],\r
+       [avoid locking (might break parallel builds)])])\r
+test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes\r
+\r
+AC_ARG_WITH([pic],\r
+    [AC_HELP_STRING([--with-pic],\r
+       [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],\r
+    [pic_mode="$withval"],\r
+    [pic_mode=default])\r
+test -z "$pic_mode" && pic_mode=default\r
+\r
+# Use C for the default configuration in the libtool script\r
+tagname=\r
+AC_LIBTOOL_LANG_C_CONFIG\r
+_LT_AC_TAGCONFIG\r
+])# AC_LIBTOOL_SETUP\r
+\r
+\r
+# _LT_AC_SYS_COMPILER\r
+# -------------------\r
+AC_DEFUN([_LT_AC_SYS_COMPILER],\r
+[AC_REQUIRE([AC_PROG_CC])dnl\r
+\r
+# If no C compiler was specified, use CC.\r
+LTCC=${LTCC-"$CC"}\r
+\r
+# Allow CC to be a program name with arguments.\r
+compiler=$CC\r
+])# _LT_AC_SYS_COMPILER\r
+\r
+\r
+# _LT_AC_SYS_LIBPATH_AIX\r
+# ----------------------\r
+# Links a minimal program and checks the executable\r
+# for the system default hardcoded library path. In most cases,\r
+# this is /usr/lib:/lib, but when the MPI compilers are used\r
+# the location of the communication and MPI libs are included too.\r
+# If we don't find anything, use the default library path according\r
+# to the aix ld manual.\r
+AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],\r
+[AC_LINK_IFELSE(AC_LANG_PROGRAM,[\r
+aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }\r
+}'`\r
+# Check for a 64-bit object if we didn't find anything.\r
+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; }\r
+}'`; fi],[])\r
+if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi\r
+])# _LT_AC_SYS_LIBPATH_AIX\r
+\r
+\r
+# _LT_AC_SHELL_INIT(ARG)\r
+# ----------------------\r
+AC_DEFUN([_LT_AC_SHELL_INIT],\r
+[ifdef([AC_DIVERSION_NOTICE],\r
+            [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],\r
+        [AC_DIVERT_PUSH(NOTICE)])\r
+$1\r
+AC_DIVERT_POP\r
+])# _LT_AC_SHELL_INIT\r
+\r
+\r
+# _LT_AC_PROG_ECHO_BACKSLASH\r
+# --------------------------\r
+# Add some code to the start of the generated configure script which\r
+# will find an echo command which doesn't interpret backslashes.\r
+AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],\r
+[_LT_AC_SHELL_INIT([\r
+# Check that we are running under the correct shell.\r
+SHELL=${CONFIG_SHELL-/bin/sh}\r
+\r
+case X$ECHO in\r
+X*--fallback-echo)\r
+  # Remove one level of quotation (which was required for Make).\r
+  ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`\r
+  ;;\r
+esac\r
+\r
+echo=${ECHO-echo}\r
+if test "X[$]1" = X--no-reexec; then\r
+  # Discard the --no-reexec flag, and continue.\r
+  shift\r
+elif test "X[$]1" = X--fallback-echo; then\r
+  # Avoid inline document here, it may be left over\r
+  :\r
+elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then\r
+  # Yippee, $echo works!\r
+  :\r
+else\r
+  # Restart under the correct shell.\r
+  exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}\r
+fi\r
+\r
+if test "X[$]1" = X--fallback-echo; then\r
+  # used as fallback echo\r
+  shift\r
+  cat <<EOF\r
+[$]*\r
+EOF\r
+  exit 0\r
+fi\r
+\r
+# The HP-UX ksh and POSIX shell print the target directory to stdout\r
+# if CDPATH is set.\r
+if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi\r
+\r
+if test -z "$ECHO"; then\r
+if test "X${echo_test_string+set}" != Xset; then\r
+# find a string as large as possible, as long as the shell can cope with it\r
+  for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do\r
+    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...\r
+    if (echo_test_string="`eval $cmd`") 2>/dev/null &&\r
+       echo_test_string="`eval $cmd`" &&\r
+       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null\r
+    then\r
+      break\r
+    fi\r
+  done\r
+fi\r
+\r
+if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&\r
+   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&\r
+   test "X$echo_testing_string" = "X$echo_test_string"; then\r
+  :\r
+else\r
+  # The Solaris, AIX, and Digital Unix default echo programs unquote\r
+  # backslashes.  This makes it impossible to quote backslashes using\r
+  #   echo "$something" | sed 's/\\/\\\\/g'\r
+  #\r
+  # So, first we look for a working echo in the user's PATH.\r
+\r
+  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR\r
+  for dir in $PATH /usr/ucb; do\r
+    IFS="$lt_save_ifs"\r
+    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&\r
+       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&\r
+       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&\r
+       test "X$echo_testing_string" = "X$echo_test_string"; then\r
+      echo="$dir/echo"\r
+      break\r
+    fi\r
+  done\r
+  IFS="$lt_save_ifs"\r
+\r
+  if test "X$echo" = Xecho; then\r
+    # We didn't find a better echo, so look for alternatives.\r
+    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&\r
+       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&\r
+       test "X$echo_testing_string" = "X$echo_test_string"; then\r
+      # This shell has a builtin print -r that does the trick.\r
+      echo='print -r'\r
+    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&\r
+        test "X$CONFIG_SHELL" != X/bin/ksh; then\r
+      # If we have ksh, try running configure again with it.\r
+      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}\r
+      export ORIGINAL_CONFIG_SHELL\r
+      CONFIG_SHELL=/bin/ksh\r
+      export CONFIG_SHELL\r
+      exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}\r
+    else\r
+      # Try using printf.\r
+      echo='printf %s\n'\r
+      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&\r
+        echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&\r
+        test "X$echo_testing_string" = "X$echo_test_string"; then\r
+       # Cool, printf works\r
+       :\r
+      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&\r
+          test "X$echo_testing_string" = 'X\t' &&\r
+          echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&\r
+          test "X$echo_testing_string" = "X$echo_test_string"; then\r
+       CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL\r
+       export CONFIG_SHELL\r
+       SHELL="$CONFIG_SHELL"\r
+       export SHELL\r
+       echo="$CONFIG_SHELL [$]0 --fallback-echo"\r
+      elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&\r
+          test "X$echo_testing_string" = 'X\t' &&\r
+          echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&\r
+          test "X$echo_testing_string" = "X$echo_test_string"; then\r
+       echo="$CONFIG_SHELL [$]0 --fallback-echo"\r
+      else\r
+       # maybe with a smaller string...\r
+       prev=:\r
+\r
+       for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do\r
+         if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null\r
+         then\r
+           break\r
+         fi\r
+         prev="$cmd"\r
+       done\r
+\r
+       if test "$prev" != 'sed 50q "[$]0"'; then\r
+         echo_test_string=`eval $prev`\r
+         export echo_test_string\r
+         exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}\r
+       else\r
+         # Oops.  We lost completely, so just stick with echo.\r
+         echo=echo\r
+       fi\r
+      fi\r
+    fi\r
+  fi\r
+fi\r
+fi\r
+\r
+# Copy echo and quote the copy suitably for passing to libtool from\r
+# the Makefile, instead of quoting the original, which is used later.\r
+ECHO=$echo\r
+if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then\r
+   ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"\r
+fi\r
+\r
+AC_SUBST(ECHO)\r
+])])# _LT_AC_PROG_ECHO_BACKSLASH\r
+\r
+\r
+# _LT_AC_LOCK\r
+# -----------\r
+AC_DEFUN([_LT_AC_LOCK],\r
+[AC_ARG_ENABLE([libtool-lock],\r
+    [AC_HELP_STRING([--disable-libtool-lock],\r
+       [avoid locking (might break parallel builds)])])\r
+test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes\r
+\r
+# Some flags need to be propagated to the compiler or linker for good\r
+# libtool support.\r
+case $host in\r
+ia64-*-hpux*)\r
+  # Find out which ABI we are using.\r
+  echo 'int i;' > conftest.$ac_ext\r
+  if AC_TRY_EVAL(ac_compile); then\r
+    case `/usr/bin/file conftest.$ac_objext` in\r
+    *ELF-32*)\r
+      HPUX_IA64_MODE="32"\r
+      ;;\r
+    *ELF-64*)\r
+      HPUX_IA64_MODE="64"\r
+      ;;\r
+    esac\r
+  fi\r
+  rm -rf conftest*\r
+  ;;\r
+*-*-irix6*)\r
+  # Find out which ABI we are using.\r
+  echo '[#]line __oline__ "configure"' > conftest.$ac_ext\r
+  if AC_TRY_EVAL(ac_compile); then\r
+   if test "$lt_cv_prog_gnu_ld" = yes; then\r
+    case `/usr/bin/file conftest.$ac_objext` in\r
+    *32-bit*)\r
+      LD="${LD-ld} -melf32bsmip"\r
+      ;;\r
+    *N32*)\r
+      LD="${LD-ld} -melf32bmipn32"\r
+      ;;\r
+    *64-bit*)\r
+      LD="${LD-ld} -melf64bmip"\r
+      ;;\r
+    esac\r
+   else\r
+    case `/usr/bin/file conftest.$ac_objext` in\r
+    *32-bit*)\r
+      LD="${LD-ld} -32"\r
+      ;;\r
+    *N32*)\r
+      LD="${LD-ld} -n32"\r
+      ;;\r
+    *64-bit*)\r
+      LD="${LD-ld} -64"\r
+      ;;\r
+    esac\r
+   fi\r
+  fi\r
+  rm -rf conftest*\r
+  ;;\r
+\r
+x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)\r
+  # Find out which ABI we are using.\r
+  echo 'int i;' > conftest.$ac_ext\r
+  if AC_TRY_EVAL(ac_compile); then\r
+    case "`/usr/bin/file conftest.o`" in\r
+    *32-bit*)\r
+      case $host in\r
+        x86_64-*linux*)\r
+          LD="${LD-ld} -m elf_i386"\r
+          ;;\r
+        ppc64-*linux*|powerpc64-*linux*)\r
+          LD="${LD-ld} -m elf32ppclinux"\r
+          ;;\r
+        s390x-*linux*)\r
+          LD="${LD-ld} -m elf_s390"\r
+          ;;\r
+        sparc64-*linux*)\r
+          LD="${LD-ld} -m elf32_sparc"\r
+          ;;\r
+      esac\r
+      ;;\r
+    *64-bit*)\r
+      case $host in\r
+        x86_64-*linux*)\r
+          LD="${LD-ld} -m elf_x86_64"\r
+          ;;\r
+        ppc*-*linux*|powerpc*-*linux*)\r
+          LD="${LD-ld} -m elf64ppc"\r
+          ;;\r
+        s390*-*linux*)\r
+          LD="${LD-ld} -m elf64_s390"\r
+          ;;\r
+        sparc*-*linux*)\r
+          LD="${LD-ld} -m elf64_sparc"\r
+          ;;\r
+      esac\r
+      ;;\r
+    esac\r
+  fi\r
+  rm -rf conftest*\r
+  ;;\r
+\r
+*-*-sco3.2v5*)\r
+  # On SCO OpenServer 5, we need -belf to get full-featured binaries.\r
+  SAVE_CFLAGS="$CFLAGS"\r
+  CFLAGS="$CFLAGS -belf"\r
+  AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,\r
+    [AC_LANG_PUSH(C)\r
+     AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])\r
+     AC_LANG_POP])\r
+  if test x"$lt_cv_cc_needs_belf" != x"yes"; then\r
+    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf\r
+    CFLAGS="$SAVE_CFLAGS"\r
+  fi\r
+  ;;\r
+AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],\r
+[*-*-cygwin* | *-*-mingw* | *-*-pw32*)\r
+  AC_CHECK_TOOL(DLLTOOL, dlltool, false)\r
+  AC_CHECK_TOOL(AS, as, false)\r
+  AC_CHECK_TOOL(OBJDUMP, objdump, false)\r
+  ;;\r
+  ])\r
+esac\r
+\r
+need_locks="$enable_libtool_lock"\r
+\r
+])# _LT_AC_LOCK\r
+\r
+\r
+# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,\r
+#              [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])\r
+# ----------------------------------------------------------------\r
+# Check whether the given compiler option works\r
+AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],\r
+[AC_REQUIRE([LT_AC_PROG_SED])\r
+AC_CACHE_CHECK([$1], [$2],\r
+  [$2=no\r
+  ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])\r
+   printf "$lt_simple_compile_test_code" > conftest.$ac_ext\r
+   lt_compiler_flag="$3"\r
+   # Insert the option either (1) after the last *FLAGS variable, or\r
+   # (2) before a word containing "conftest.", or (3) at the end.\r
+   # Note that $ac_compile itself does not contain backslashes and begins\r
+   # with a dollar sign (not a hyphen), so the echo should work correctly.\r
+   # The option is referenced via a variable to avoid confusing sed.\r
+   lt_compile=`echo "$ac_compile" | $SED \\r
+   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \\r
+   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \\r
+   -e 's:$: $lt_compiler_flag:'`\r
+   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)\r
+   (eval "$lt_compile" 2>conftest.err)\r
+   ac_status=$?\r
+   cat conftest.err >&AS_MESSAGE_LOG_FD\r
+   echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD\r
+   if (exit $ac_status) && test -s "$ac_outfile"; then\r
+     # The compiler can only warn and ignore the option if not recognized\r
+     # So say no if there are warnings\r
+     if test ! -s conftest.err; then\r
+       $2=yes\r
+     fi\r
+   fi\r
+   $rm conftest*\r
+])\r
+\r
+if test x"[$]$2" = xyes; then\r
+    ifelse([$5], , :, [$5])\r
+else\r
+    ifelse([$6], , :, [$6])\r
+fi\r
+])# AC_LIBTOOL_COMPILER_OPTION\r
+\r
+\r
+# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,\r
+#                          [ACTION-SUCCESS], [ACTION-FAILURE])\r
+# ------------------------------------------------------------\r
+# Check whether the given compiler option works\r
+AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],\r
+[AC_CACHE_CHECK([$1], [$2],\r
+  [$2=no\r
+   save_LDFLAGS="$LDFLAGS"\r
+   LDFLAGS="$LDFLAGS $3"\r
+   printf "$lt_simple_link_test_code" > conftest.$ac_ext\r
+   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then\r
+     # The compiler can only warn and ignore the option if not recognized\r
+     # So say no if there are warnings\r
+     if test -s conftest.err; then\r
+       # Append any errors to the config.log.\r
+       cat conftest.err 1>&AS_MESSAGE_LOG_FD\r
+     else\r
+       $2=yes\r
+     fi\r
+   fi\r
+   $rm conftest*\r
+   LDFLAGS="$save_LDFLAGS"\r
+])\r
+\r
+if test x"[$]$2" = xyes; then\r
+    ifelse([$4], , :, [$4])\r
+else\r
+    ifelse([$5], , :, [$5])\r
+fi\r
+])# AC_LIBTOOL_LINKER_OPTION\r
+\r
+\r
+# AC_LIBTOOL_SYS_MAX_CMD_LEN\r
+# --------------------------\r
+AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],\r
+[# find the maximum length of command line arguments\r
+AC_MSG_CHECKING([the maximum length of command line arguments])\r
+AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl\r
+  i=0\r
+  teststring="ABCD"\r
+\r
+  case $build_os in\r
+  msdosdjgpp*)\r
+    # On DJGPP, this test can blow up pretty badly due to problems in libc\r
+    # (any single argument exceeding 2000 bytes causes a buffer overrun\r
+    # during glob expansion).  Even if it were fixed, the result of this\r
+    # check would be larger than it should be.\r
+    lt_cv_sys_max_cmd_len=12288;    # 12K is about right\r
+    ;;\r
+\r
+  gnu*)\r
+    # Under GNU Hurd, this test is not required because there is\r
+    # no limit to the length of command line arguments.\r
+    # Libtool will interpret -1 as no limit whatsoever\r
+    lt_cv_sys_max_cmd_len=-1;\r
+    ;;\r
+\r
+  cygwin* | mingw*)\r
+    # On Win9x/ME, this test blows up -- it succeeds, but takes\r
+    # about 5 minutes as the teststring grows exponentially.\r
+    # Worse, since 9x/ME are not pre-emptively multitasking,\r
+    # you end up with a "frozen" computer, even though with patience\r
+    # the test eventually succeeds (with a max line length of 256k).\r
+    # Instead, let's just punt: use the minimum linelength reported by\r
+    # all of the supported platforms: 8192 (on NT/2K/XP).\r
+    lt_cv_sys_max_cmd_len=8192;\r
+    ;;\r
+\r
+  amigaos*)\r
+    # On AmigaOS with pdksh, this test takes hours, literally.\r
+    # So we just punt and use a minimum line length of 8192.\r
+    lt_cv_sys_max_cmd_len=8192;\r
+    ;;\r
+\r
+ *)\r
+    # If test is not a shell built-in, we'll probably end up computing a\r
+    # maximum length that is only half of the actual maximum length, but\r
+    # we can't tell.\r
+    while (test "X"`$CONFIG_SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \\r
+              = "XX$teststring") >/dev/null 2>&1 &&\r
+           new_result=`expr "X$teststring" : ".*" 2>&1` &&\r
+           lt_cv_sys_max_cmd_len=$new_result &&\r
+           test $i != 17 # 1/2 MB should be enough\r
+    do\r
+      i=`expr $i + 1`\r
+      teststring=$teststring$teststring\r
+    done\r
+    teststring=\r
+    # Add a significant safety factor because C++ compilers can tack on massive\r
+    # amounts of additional arguments before passing them to the linker.\r
+    # It appears as though 1/2 is a usable value.\r
+    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`\r
+    ;;\r
+  esac\r
+])\r
+if test -n $lt_cv_sys_max_cmd_len ; then\r
+  AC_MSG_RESULT($lt_cv_sys_max_cmd_len)\r
+else\r
+  AC_MSG_RESULT(none)\r
+fi\r
+])# AC_LIBTOOL_SYS_MAX_CMD_LEN\r
+\r
+\r
+# _LT_AC_CHECK_DLFCN\r
+# --------------------\r
+AC_DEFUN([_LT_AC_CHECK_DLFCN],\r
+[AC_CHECK_HEADERS(dlfcn.h)dnl\r
+])# _LT_AC_CHECK_DLFCN\r
+\r
+\r
+# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,\r
+#                           ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)\r
+# ------------------------------------------------------------------\r
+AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],\r
+[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl\r
+if test "$cross_compiling" = yes; then :\r
+  [$4]\r
+else\r
+  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2\r
+  lt_status=$lt_dlunknown\r
+  cat > conftest.$ac_ext <<EOF\r
+[#line __oline__ "configure"\r
+#include "confdefs.h"\r
+\r
+#if HAVE_DLFCN_H\r
+#include <dlfcn.h>\r
+#endif\r
+\r
+#include <stdio.h>\r
+\r
+#ifdef RTLD_GLOBAL\r
+#  define LT_DLGLOBAL          RTLD_GLOBAL\r
+#else\r
+#  ifdef DL_GLOBAL\r
+#    define LT_DLGLOBAL                DL_GLOBAL\r
+#  else\r
+#    define LT_DLGLOBAL                0\r
+#  endif\r
+#endif\r
+\r
+/* We may have to define LT_DLLAZY_OR_NOW in the command line if we\r
+   find out it does not work in some platform. */\r
+#ifndef LT_DLLAZY_OR_NOW\r
+#  ifdef RTLD_LAZY\r
+#    define LT_DLLAZY_OR_NOW           RTLD_LAZY\r
+#  else\r
+#    ifdef DL_LAZY\r
+#      define LT_DLLAZY_OR_NOW         DL_LAZY\r
+#    else\r
+#      ifdef RTLD_NOW\r
+#        define LT_DLLAZY_OR_NOW       RTLD_NOW\r
+#      else\r
+#        ifdef DL_NOW\r
+#          define LT_DLLAZY_OR_NOW     DL_NOW\r
+#        else\r
+#          define LT_DLLAZY_OR_NOW     0\r
+#        endif\r
+#      endif\r
+#    endif\r
+#  endif\r
+#endif\r
+\r
+#ifdef __cplusplus\r
+extern "C" void exit (int);\r
+#endif\r
+\r
+void fnord() { int i=42;}\r
+int main ()\r
+{\r
+  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);\r
+  int status = $lt_dlunknown;\r
+\r
+  if (self)\r
+    {\r
+      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;\r
+      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;\r
+      /* dlclose (self); */\r
+    }\r
+\r
+    exit (status);\r
+}]\r
+EOF\r
+  if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then\r
+    (./conftest; exit; ) 2>/dev/null\r
+    lt_status=$?\r
+    case x$lt_status in\r
+      x$lt_dlno_uscore) $1 ;;\r
+      x$lt_dlneed_uscore) $2 ;;\r
+      x$lt_unknown|x*) $3 ;;\r
+    esac\r
+  else :\r
+    # compilation failed\r
+    $3\r
+  fi\r
+fi\r
+rm -fr conftest*\r
+])# _LT_AC_TRY_DLOPEN_SELF\r
+\r
+\r
+# AC_LIBTOOL_DLOPEN_SELF\r
+# -------------------\r
+AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],\r
+[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl\r
+if test "x$enable_dlopen" != xyes; then\r
+  enable_dlopen=unknown\r
+  enable_dlopen_self=unknown\r
+  enable_dlopen_self_static=unknown\r
+else\r
+  lt_cv_dlopen=no\r
+  lt_cv_dlopen_libs=\r
+\r
+  case $host_os in\r
+  beos*)\r
+    lt_cv_dlopen="load_add_on"\r
+    lt_cv_dlopen_libs=\r
+    lt_cv_dlopen_self=yes\r
+    ;;\r
+\r
+  mingw* | pw32*)\r
+    lt_cv_dlopen="LoadLibrary"\r
+    lt_cv_dlopen_libs=\r
+   ;;\r
+\r
+  cygwin*)\r
+    lt_cv_dlopen="dlopen"\r
+    lt_cv_dlopen_libs=\r
+   ;;\r
+\r
+  darwin*)\r
+  # if libdl is installed we need to link against it\r
+    AC_CHECK_LIB([dl], [dlopen],\r
+               [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[\r
+    lt_cv_dlopen="dyld"\r
+    lt_cv_dlopen_libs=\r
+    lt_cv_dlopen_self=yes\r
+    ])\r
+   ;;\r
+\r
+  *)\r
+    AC_CHECK_FUNC([shl_load],\r
+         [lt_cv_dlopen="shl_load"],\r
+      [AC_CHECK_LIB([dld], [shl_load],\r
+           [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],\r
+       [AC_CHECK_FUNC([dlopen],\r
+             [lt_cv_dlopen="dlopen"],\r
+         [AC_CHECK_LIB([dl], [dlopen],\r
+               [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],\r
+           [AC_CHECK_LIB([svld], [dlopen],\r
+                 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],\r
+             [AC_CHECK_LIB([dld], [dld_link],\r
+                   [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])\r
+             ])\r
+           ])\r
+         ])\r
+       ])\r
+      ])\r
+    ;;\r
+  esac\r
+\r
+  if test "x$lt_cv_dlopen" != xno; then\r
+    enable_dlopen=yes\r
+  else\r
+    enable_dlopen=no\r
+  fi\r
+\r
+  case $lt_cv_dlopen in\r
+  dlopen)\r
+    save_CPPFLAGS="$CPPFLAGS"\r
+    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"\r
+\r
+    save_LDFLAGS="$LDFLAGS"\r
+    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"\r
+\r
+    save_LIBS="$LIBS"\r
+    LIBS="$lt_cv_dlopen_libs $LIBS"\r
+\r
+    AC_CACHE_CHECK([whether a program can dlopen itself],\r
+         lt_cv_dlopen_self, [dnl\r
+         _LT_AC_TRY_DLOPEN_SELF(\r
+           lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,\r
+           lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)\r
+    ])\r
+\r
+    if test "x$lt_cv_dlopen_self" = xyes; then\r
+      LDFLAGS="$LDFLAGS $link_static_flag"\r
+      AC_CACHE_CHECK([whether a statically linked program can dlopen itself],\r
+         lt_cv_dlopen_self_static, [dnl\r
+         _LT_AC_TRY_DLOPEN_SELF(\r
+           lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,\r
+           lt_cv_dlopen_self_static=no,  lt_cv_dlopen_self_static=cross)\r
+      ])\r
+    fi\r
+\r
+    CPPFLAGS="$save_CPPFLAGS"\r
+    LDFLAGS="$save_LDFLAGS"\r
+    LIBS="$save_LIBS"\r
+    ;;\r
+  esac\r
+\r
+  case $lt_cv_dlopen_self in\r
+  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;\r
+  *) enable_dlopen_self=unknown ;;\r
+  esac\r
+\r
+  case $lt_cv_dlopen_self_static in\r
+  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;\r
+  *) enable_dlopen_self_static=unknown ;;\r
+  esac\r
+fi\r
+])# AC_LIBTOOL_DLOPEN_SELF\r
+\r
+\r
+# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])\r
+# ---------------------------------\r
+# Check to see if options -c and -o are simultaneously supported by compiler\r
+AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],\r
+[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl\r
+AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],\r
+  [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],\r
+  [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no\r
+   $rm -r conftest 2>/dev/null\r
+   mkdir conftest\r
+   cd conftest\r
+   mkdir out\r
+   printf "$lt_simple_compile_test_code" > conftest.$ac_ext\r
+\r
+   lt_compiler_flag="-o out/conftest2.$ac_objext"\r
+   # Insert the option either (1) after the last *FLAGS variable, or\r
+   # (2) before a word containing "conftest.", or (3) at the end.\r
+   # Note that $ac_compile itself does not contain backslashes and begins\r
+   # with a dollar sign (not a hyphen), so the echo should work correctly.\r
+   lt_compile=`echo "$ac_compile" | $SED \\r
+   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \\r
+   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \\r
+   -e 's:$: $lt_compiler_flag:'`\r
+   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)\r
+   (eval "$lt_compile" 2>out/conftest.err)\r
+   ac_status=$?\r
+   cat out/conftest.err >&AS_MESSAGE_LOG_FD\r
+   echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD\r
+   if (exit $ac_status) && test -s out/conftest2.$ac_objext\r
+   then\r
+     # The compiler can only warn and ignore the option if not recognized\r
+     # So say no if there are warnings\r
+     if test ! -s out/conftest.err; then\r
+       _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes\r
+     fi\r
+   fi\r
+   chmod u+w .\r
+   $rm conftest*\r
+   # SGI C++ compiler will create directory out/ii_files/ for\r
+   # template instantiation\r
+   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files\r
+   $rm out/* && rmdir out\r
+   cd ..\r
+   rmdir conftest\r
+   $rm conftest*\r
+])\r
+])# AC_LIBTOOL_PROG_CC_C_O\r
+\r
+\r
+# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])\r
+# -----------------------------------------\r
+# Check to see if we can do hard links to lock some files if needed\r
+AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],\r
+[AC_REQUIRE([_LT_AC_LOCK])dnl\r
+\r
+hard_links="nottested"\r
+if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then\r
+  # do not overwrite the value of need_locks provided by the user\r
+  AC_MSG_CHECKING([if we can lock with hard links])\r
+  hard_links=yes\r
+  $rm conftest*\r
+  ln conftest.a conftest.b 2>/dev/null && hard_links=no\r
+  touch conftest.a\r
+  ln conftest.a conftest.b 2>&5 || hard_links=no\r
+  ln conftest.a conftest.b 2>/dev/null && hard_links=no\r
+  AC_MSG_RESULT([$hard_links])\r
+  if test "$hard_links" = no; then\r
+    AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])\r
+    need_locks=warn\r
+  fi\r
+else\r
+  need_locks=no\r
+fi\r
+])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS\r
+\r
+\r
+# AC_LIBTOOL_OBJDIR\r
+# -----------------\r
+AC_DEFUN([AC_LIBTOOL_OBJDIR],\r
+[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],\r
+[rm -f .libs 2>/dev/null\r
+mkdir .libs 2>/dev/null\r
+if test -d .libs; then\r
+  lt_cv_objdir=.libs\r
+else\r
+  # MS-DOS does not allow filenames that begin with a dot.\r
+  lt_cv_objdir=_libs\r
+fi\r
+rmdir .libs 2>/dev/null])\r
+objdir=$lt_cv_objdir\r
+])# AC_LIBTOOL_OBJDIR\r
+\r
+\r
+# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])\r
+# ----------------------------------------------\r
+# Check hardcoding attributes.\r
+AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],\r
+[AC_MSG_CHECKING([how to hardcode library paths into programs])\r
+_LT_AC_TAGVAR(hardcode_action, $1)=\r
+if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \\r
+   test -n "$_LT_AC_TAGVAR(runpath_var $1)" || \\r
+   test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)"="Xyes" ; then\r
+\r
+  # We can hardcode non-existant directories.\r
+  if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&\r
+     # If the only mechanism to avoid hardcoding is shlibpath_var, we\r
+     # have to relink, otherwise we might link with an installed library\r
+     # when we should be linking with a yet-to-be-installed one\r
+     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&\r
+     test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then\r
+    # Linking always hardcodes the temporary library directory.\r
+    _LT_AC_TAGVAR(hardcode_action, $1)=relink\r
+  else\r
+    # We can link without hardcoding, and we can hardcode nonexisting dirs.\r
+    _LT_AC_TAGVAR(hardcode_action, $1)=immediate\r
+  fi\r
+else\r
+  # We cannot hardcode anything, or else we can only hardcode existing\r
+  # directories.\r
+  _LT_AC_TAGVAR(hardcode_action, $1)=unsupported\r
+fi\r
+AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])\r
+\r
+if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then\r
+  # Fast installation is not supported\r
+  enable_fast_install=no\r
+elif test "$shlibpath_overrides_runpath" = yes ||\r
+     test "$enable_shared" = no; then\r
+  # Fast installation is not necessary\r
+  enable_fast_install=needless\r
+fi\r
+])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH\r
+\r
+\r
+# AC_LIBTOOL_SYS_LIB_STRIP\r
+# ------------------------\r
+AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],\r
+[striplib=\r
+old_striplib=\r
+AC_MSG_CHECKING([whether stripping libraries is possible])\r
+if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then\r
+  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"\r
+  test -z "$striplib" && striplib="$STRIP --strip-unneeded"\r
+  AC_MSG_RESULT([yes])\r
+else\r
+# FIXME - insert some real tests, host_os isn't really good enough\r
+  case $host_os in\r
+   darwin*)\r
+       if test -n "$STRIP" ; then\r
+         striplib="$STRIP -x"\r
+         AC_MSG_RESULT([yes])\r
+       else\r
+  AC_MSG_RESULT([no])\r
+fi\r
+       ;;\r
+   *)\r
+  AC_MSG_RESULT([no])\r
+    ;;\r
+  esac\r
+fi\r
+])# AC_LIBTOOL_SYS_LIB_STRIP\r
+\r
+\r
+# AC_LIBTOOL_SYS_DYNAMIC_LINKER\r
+# -----------------------------\r
+# PORTME Fill in your ld.so characteristics\r
+AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],\r
+[AC_MSG_CHECKING([dynamic linker characteristics])\r
+library_names_spec=\r
+libname_spec='lib$name'\r
+soname_spec=\r
+shrext_cmds=".so"\r
+postinstall_cmds=\r
+postuninstall_cmds=\r
+finish_cmds=\r
+finish_eval=\r
+shlibpath_var=\r
+shlibpath_overrides_runpath=unknown\r
+version_type=none\r
+dynamic_linker="$host_os ld.so"\r
+sys_lib_dlsearch_path_spec="/lib /usr/lib"\r
+if test "$GCC" = yes; then\r
+  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`\r
+  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then\r
+    # if the path contains ";" then we assume it to be the separator\r
+    # otherwise default to the standard path separator (i.e. ":") - it is\r
+    # assumed that no part of a normal pathname contains ";" but that should\r
+    # okay in the real world where ";" in dirpaths is itself problematic.\r
+    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`\r
+  else\r
+    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`\r
+  fi\r
+else\r
+  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"\r
+fi\r
+need_lib_prefix=unknown\r
+hardcode_into_libs=no\r
+\r
+# when you set need_version to no, make sure it does not cause -set_version\r
+# flags to be left without arguments\r
+need_version=unknown\r
+\r
+case $host_os in\r
+aix3*)\r
+  version_type=linux\r
+  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'\r
+  shlibpath_var=LIBPATH\r
+\r
+  # AIX 3 has no versioning support, so we append a major version to the name.\r
+  soname_spec='${libname}${release}${shared_ext}$major'\r
+  ;;\r
+\r
+aix4* | aix5*)\r
+  version_type=linux\r
+  need_lib_prefix=no\r
+  need_version=no\r
+  hardcode_into_libs=yes\r
+  if test "$host_cpu" = ia64; then\r
+    # AIX 5 supports IA64\r
+    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'\r
+    shlibpath_var=LD_LIBRARY_PATH\r
+  else\r
+    # With GCC up to 2.95.x, collect2 would create an import file\r
+    # for dependence libraries.  The import file would start with\r
+    # the line `#! .'.  This would cause the generated library to\r
+    # depend on `.', always an invalid library.  This was fixed in\r
+    # development snapshots of GCC prior to 3.0.\r
+    case $host_os in\r
+      aix4 | aix4.[[01]] | aix4.[[01]].*)\r
+      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'\r
+          echo ' yes '\r
+          echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then\r
+       :\r
+      else\r
+       can_build_shared=no\r
+      fi\r
+      ;;\r
+    esac\r
+    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct\r
+    # soname into executable. Probably we can add versioning support to\r
+    # collect2, so additional links can be useful in future.\r
+    if test "$aix_use_runtimelinking" = yes; then\r
+      # If using run time linking (on AIX 4.2 or later) use lib<name>.so\r
+      # instead of lib<name>.a to let people know that these are not\r
+      # typical AIX shared libraries.\r
+      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'\r
+    else\r
+      # We preserve .a as extension for shared libraries through AIX4.2\r
+      # and later when we are not doing run time linking.\r
+      library_names_spec='${libname}${release}.a $libname.a'\r
+      soname_spec='${libname}${release}${shared_ext}$major'\r
+    fi\r
+    shlibpath_var=LIBPATH\r
+  fi\r
+  ;;\r
+\r
+amigaos*)\r
+  library_names_spec='$libname.ixlibrary $libname.a'\r
+  # Create ${libname}_ixlibrary.a entries in /sys/libs.\r
+  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'\r
+  ;;\r
+\r
+beos*)\r
+  library_names_spec='${libname}${shared_ext}'\r
+  dynamic_linker="$host_os ld.so"\r
+  shlibpath_var=LIBRARY_PATH\r
+  ;;\r
+\r
+bsdi4*)\r
+  version_type=linux\r
+  need_version=no\r
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'\r
+  soname_spec='${libname}${release}${shared_ext}$major'\r
+  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'\r
+  shlibpath_var=LD_LIBRARY_PATH\r
+  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"\r
+  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"\r
+  # the default ld.so.conf also contains /usr/contrib/lib and\r
+  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow\r
+  # libtool to hard-code these into programs\r
+  ;;\r
+\r
+cygwin* | mingw* | pw32*)\r
+  version_type=windows\r
+  shrext_cmds=".dll"\r
+  need_version=no\r
+  need_lib_prefix=no\r
+\r
+  case $GCC,$host_os in\r
+  yes,cygwin* | yes,mingw* | yes,pw32*)\r
+    library_names_spec='$libname.dll.a'\r
+    # DLL is installed to $(libdir)/../bin by postinstall_cmds\r
+    postinstall_cmds='base_file=`basename \${file}`~\r
+      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~\r
+      dldir=$destdir/`dirname \$dlpath`~\r
+      test -d \$dldir || mkdir -p \$dldir~\r
+      $install_prog $dir/$dlname \$dldir/$dlname'\r
+    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~\r
+      dlpath=$dir/\$dldll~\r
+       $rm \$dlpath'\r
+    shlibpath_overrides_runpath=yes\r
+\r
+    case $host_os in\r
+    cygwin*)\r
+      # Cygwin DLLs use 'cyg' prefix rather than 'lib'\r
+      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'\r
+      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"\r
+      ;;\r
+    mingw*)\r
+      # MinGW DLLs use traditional 'lib' prefix\r
+      soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'\r
+      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`\r
+      if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then\r
+        # It is most probably a Windows format PATH printed by\r
+        # mingw gcc, but we are running on Cygwin. Gcc prints its search\r
+        # path with ; separators, and with drive letters. We can handle the\r
+        # drive letters (cygwin fileutils understands them), so leave them,\r
+        # especially as we might pass files found there to a mingw objdump,\r
+        # which wouldn't understand a cygwinified path. Ahh.\r
+        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`\r
+      else\r
+        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`\r
+      fi\r
+      ;;\r
+    pw32*)\r
+      # pw32 DLLs use 'pw' prefix rather than 'lib'\r
+      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'\r
+      ;;\r
+    esac\r
+    ;;\r
+\r
+  *)\r
+    library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'\r
+    ;;\r
+  esac\r
+  dynamic_linker='Win32 ld.exe'\r
+  # FIXME: first we should search . and the directory the executable is in\r
+  shlibpath_var=PATH\r
+  ;;\r
+\r
+darwin* | rhapsody*)\r
+  dynamic_linker="$host_os dyld"\r
+  version_type=darwin\r
+  need_lib_prefix=no\r
+  need_version=no\r
+  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'\r
+  soname_spec='${libname}${release}${major}$shared_ext'\r
+  shlibpath_overrides_runpath=yes\r
+  shlibpath_var=DYLD_LIBRARY_PATH\r
+  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'\r
+  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.\r
+  if test "$GCC" = yes; then\r
+    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"`\r
+  else\r
+    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'\r
+  fi\r
+  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'\r
+  ;;\r
+\r
+dgux*)\r
+  version_type=linux\r
+  need_lib_prefix=no\r
+  need_version=no\r
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'\r
+  soname_spec='${libname}${release}${shared_ext}$major'\r
+  shlibpath_var=LD_LIBRARY_PATH\r
+  ;;\r
+\r
+freebsd1*)\r
+  dynamic_linker=no\r
+  ;;\r
+\r
+kfreebsd*-gnu)\r
+  version_type=linux\r
+  need_lib_prefix=no\r
+  need_version=no\r
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'\r
+  soname_spec='${libname}${release}${shared_ext}$major'\r
+  shlibpath_var=LD_LIBRARY_PATH\r
+  shlibpath_overrides_runpath=no\r
+  hardcode_into_libs=yes\r
+  dynamic_linker='GNU ld.so'\r
+  ;;\r
+\r
+freebsd*)\r
+  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`\r
+  version_type=freebsd-$objformat\r
+  case $version_type in\r
+    freebsd-elf*)\r
+      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'\r
+      need_version=no\r
+      need_lib_prefix=no\r
+      ;;\r
+    freebsd-*)\r
+      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'\r
+      need_version=yes\r
+      ;;\r
+  esac\r
+  shlibpath_var=LD_LIBRARY_PATH\r
+  case $host_os in\r
+  freebsd2*)\r
+    shlibpath_overrides_runpath=yes\r
+    ;;\r
+  freebsd3.[01]* | freebsdelf3.[01]*)\r
+    shlibpath_overrides_runpath=yes\r
+    hardcode_into_libs=yes\r
+    ;;\r
+  *) # from 3.2 on\r
+    shlibpath_overrides_runpath=no\r
+    hardcode_into_libs=yes\r
+    ;;\r
+  esac\r
+  ;;\r
+\r
+gnu*)\r
+  version_type=linux\r
+  need_lib_prefix=no\r
+  need_version=no\r
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'\r
+  soname_spec='${libname}${release}${shared_ext}$major'\r
+  shlibpath_var=LD_LIBRARY_PATH\r
+  hardcode_into_libs=yes\r
+  ;;\r
+\r
+hpux9* | hpux10* | hpux11*)\r
+  # Give a soname corresponding to the major version so that dld.sl refuses to\r
+  # link against other versions.\r
+  version_type=sunos\r
+  need_lib_prefix=no\r
+  need_version=no\r
+  case "$host_cpu" in\r
+  ia64*)\r
+    shrext_cmds='.so'\r
+    hardcode_into_libs=yes\r
+    dynamic_linker="$host_os dld.so"\r
+    shlibpath_var=LD_LIBRARY_PATH\r
+    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.\r
+    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'\r
+    soname_spec='${libname}${release}${shared_ext}$major'\r
+    if test "X$HPUX_IA64_MODE" = X32; then\r
+      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"\r
+    else\r
+      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"\r
+    fi\r
+    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec\r
+    ;;\r
+   hppa*64*)\r
+     shrext_cmds='.sl'\r
+     hardcode_into_libs=yes\r
+     dynamic_linker="$host_os dld.sl"\r
+     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH\r
+     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.\r
+     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'\r
+     soname_spec='${libname}${release}${shared_ext}$major'\r
+     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"\r
+     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec\r
+     ;;\r
+   *)\r
+    shrext_cmds='.sl'\r
+    dynamic_linker="$host_os dld.sl"\r
+    shlibpath_var=SHLIB_PATH\r
+    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH\r
+    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'\r
+    soname_spec='${libname}${release}${shared_ext}$major'\r
+    ;;\r
+  esac\r
+  # HP-UX runs *really* slowly unless shared libraries are mode 555.\r
+  postinstall_cmds='chmod 555 $lib'\r
+  ;;\r
+\r
+irix5* | irix6* | nonstopux*)\r
+  case $host_os in\r
+    nonstopux*) version_type=nonstopux ;;\r
+    *)\r
+       if test "$lt_cv_prog_gnu_ld" = yes; then\r
+               version_type=linux\r
+       else\r
+               version_type=irix\r
+       fi ;;\r
+  esac\r
+  need_lib_prefix=no\r
+  need_version=no\r
+  soname_spec='${libname}${release}${shared_ext}$major'\r
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'\r
+  case $host_os in\r
+  irix5* | nonstopux*)\r
+    libsuff= shlibsuff=\r
+    ;;\r
+  *)\r
+    case $LD in # libtool.m4 will add one of these switches to LD\r
+    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")\r
+      libsuff= shlibsuff= libmagic=32-bit;;\r
+    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")\r
+      libsuff=32 shlibsuff=N32 libmagic=N32;;\r
+    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")\r
+      libsuff=64 shlibsuff=64 libmagic=64-bit;;\r
+    *) libsuff= shlibsuff= libmagic=never-match;;\r
+    esac\r
+    ;;\r
+  esac\r
+  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH\r
+  shlibpath_overrides_runpath=no\r
+  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"\r
+  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"\r
+  hardcode_into_libs=yes\r
+  ;;\r
+\r
+# No shared lib support for Linux oldld, aout, or coff.\r
+linux*oldld* | linux*aout* | linux*coff*)\r
+  dynamic_linker=no\r
+  ;;\r
+\r
+# This must be Linux ELF.\r
+linux*)\r
+  version_type=linux\r
+  need_lib_prefix=no\r
+  need_version=no\r
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'\r
+  soname_spec='${libname}${release}${shared_ext}$major'\r
+  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'\r
+  shlibpath_var=LD_LIBRARY_PATH\r
+  shlibpath_overrides_runpath=no\r
+  # This implies no fast_install, which is unacceptable.\r
+  # Some rework will be needed to allow for fast_install\r
+  # before this can be enabled.\r
+  hardcode_into_libs=yes\r
+\r
+  # find out which ABI we are using\r
+  libsuff=\r
+  case "$host_cpu" in\r
+  x86_64*|s390x*|powerpc64*)\r
+    echo '[#]line __oline__ "configure"' > conftest.$ac_ext\r
+    if AC_TRY_EVAL(ac_compile); then\r
+      case `/usr/bin/file conftest.$ac_objext` in\r
+      *64-bit*)\r
+        libsuff=64\r
+        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"\r
+        ;;\r
+      esac\r
+    fi\r
+    rm -rf conftest*\r
+    ;;\r
+  esac\r
+\r
+  # Append ld.so.conf contents to the search path\r
+  if test -f /etc/ld.so.conf; then\r
+    lt_ld_extra=`$SED -e 's/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g' /etc/ld.so.conf | tr '\n' ' '`\r
+    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"\r
+  fi\r
+\r
+  # We used to test for /lib/ld.so.1 and disable shared libraries on\r
+  # powerpc, because MkLinux only supported shared libraries with the\r
+  # GNU dynamic linker.  Since this was broken with cross compilers,\r
+  # most powerpc-linux boxes support dynamic linking these days and\r
+  # people can always --disable-shared, the test was removed, and we\r
+  # assume the GNU/Linux dynamic linker is in use.\r
+  dynamic_linker='GNU/Linux ld.so'\r
+  ;;\r
+\r
+knetbsd*-gnu)\r
+  version_type=linux\r
+  need_lib_prefix=no\r
+  need_version=no\r
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'\r
+  soname_spec='${libname}${release}${shared_ext}$major'\r
+  shlibpath_var=LD_LIBRARY_PATH\r
+  shlibpath_overrides_runpath=no\r
+  hardcode_into_libs=yes\r
+  dynamic_linker='GNU ld.so'\r
+  ;;\r
+\r
+netbsd*)\r
+  version_type=sunos\r
+  need_lib_prefix=no\r
+  need_version=no\r
+  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then\r
+    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'\r
+    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'\r
+    dynamic_linker='NetBSD (a.out) ld.so'\r
+  else\r
+    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'\r
+    soname_spec='${libname}${release}${shared_ext}$major'\r
+    dynamic_linker='NetBSD ld.elf_so'\r
+  fi\r
+  shlibpath_var=LD_LIBRARY_PATH\r
+  shlibpath_overrides_runpath=yes\r
+  hardcode_into_libs=yes\r
+  ;;\r
+\r
+newsos6)\r
+  version_type=linux\r
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'\r
+  shlibpath_var=LD_LIBRARY_PATH\r
+  shlibpath_overrides_runpath=yes\r
+  ;;\r
+\r
+nto-qnx*)\r
+  version_type=linux\r
+  need_lib_prefix=no\r
+  need_version=no\r
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'\r
+  soname_spec='${libname}${release}${shared_ext}$major'\r
+  shlibpath_var=LD_LIBRARY_PATH\r
+  shlibpath_overrides_runpath=yes\r
+  ;;\r
+\r
+openbsd*)\r
+  version_type=sunos\r
+  need_lib_prefix=no\r
+  need_version=yes\r
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'\r
+  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'\r
+  shlibpath_var=LD_LIBRARY_PATH\r
+  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then\r
+    case $host_os in\r
+      openbsd2.[[89]] | openbsd2.[[89]].*)\r
+       shlibpath_overrides_runpath=no\r
+       ;;\r
+      *)\r
+       shlibpath_overrides_runpath=yes\r
+       ;;\r
+      esac\r
+  else\r
+    shlibpath_overrides_runpath=yes\r
+  fi\r
+  ;;\r
+\r
+os2*)\r
+  libname_spec='$name'\r
+  shrext_cmds=".dll"\r
+  need_lib_prefix=no\r
+  library_names_spec='$libname${shared_ext} $libname.a'\r
+  dynamic_linker='OS/2 ld.exe'\r
+  shlibpath_var=LIBPATH\r
+  ;;\r
+\r
+osf3* | osf4* | osf5*)\r
+  version_type=osf\r
+  need_lib_prefix=no\r
+  need_version=no\r
+  soname_spec='${libname}${release}${shared_ext}$major'\r
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'\r
+  shlibpath_var=LD_LIBRARY_PATH\r
+  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"\r
+  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"\r
+  ;;\r
+\r
+sco3.2v5*)\r
+  version_type=osf\r
+  soname_spec='${libname}${release}${shared_ext}$major'\r
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'\r
+  shlibpath_var=LD_LIBRARY_PATH\r
+  ;;\r
+\r
+solaris*)\r
+  version_type=linux\r
+  need_lib_prefix=no\r
+  need_version=no\r
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'\r
+  soname_spec='${libname}${release}${shared_ext}$major'\r
+  shlibpath_var=LD_LIBRARY_PATH\r
+  shlibpath_overrides_runpath=yes\r
+  hardcode_into_libs=yes\r
+  # ldd complains unless libraries are executable\r
+  postinstall_cmds='chmod +x $lib'\r
+  ;;\r
+\r
+sunos4*)\r
+  version_type=sunos\r
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'\r
+  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'\r
+  shlibpath_var=LD_LIBRARY_PATH\r
+  shlibpath_overrides_runpath=yes\r
+  if test "$with_gnu_ld" = yes; then\r
+    need_lib_prefix=no\r
+  fi\r
+  need_version=yes\r
+  ;;\r
+\r
+sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)\r
+  version_type=linux\r
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'\r
+  soname_spec='${libname}${release}${shared_ext}$major'\r
+  shlibpath_var=LD_LIBRARY_PATH\r
+  case $host_vendor in\r
+    sni)\r
+      shlibpath_overrides_runpath=no\r
+      need_lib_prefix=no\r
+      export_dynamic_flag_spec='${wl}-Blargedynsym'\r
+      runpath_var=LD_RUN_PATH\r
+      ;;\r
+    siemens)\r
+      need_lib_prefix=no\r
+      ;;\r
+    motorola)\r
+      need_lib_prefix=no\r
+      need_version=no\r
+      shlibpath_overrides_runpath=no\r
+      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'\r
+      ;;\r
+  esac\r
+  ;;\r
+\r
+sysv4*MP*)\r
+  if test -d /usr/nec ;then\r
+    version_type=linux\r
+    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'\r
+    soname_spec='$libname${shared_ext}.$major'\r
+    shlibpath_var=LD_LIBRARY_PATH\r
+  fi\r
+  ;;\r
+\r
+uts4*)\r
+  version_type=linux\r
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'\r
+  soname_spec='${libname}${release}${shared_ext}$major'\r
+  shlibpath_var=LD_LIBRARY_PATH\r
+  ;;\r
+\r
+*)\r
+  dynamic_linker=no\r
+  ;;\r
+esac\r
+AC_MSG_RESULT([$dynamic_linker])\r
+test "$dynamic_linker" = no && can_build_shared=no\r
+])# AC_LIBTOOL_SYS_DYNAMIC_LINKER\r
+\r
+\r
+# _LT_AC_TAGCONFIG\r
+# ----------------\r
+AC_DEFUN([_LT_AC_TAGCONFIG],\r
+[AC_ARG_WITH([tags],\r
+    [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],\r
+        [include additional configurations @<:@automatic@:>@])],\r
+    [tagnames="$withval"])\r
+\r
+if test -f "$ltmain" && test -n "$tagnames"; then\r
+  if test ! -f "${ofile}"; then\r
+    AC_MSG_WARN([output file `$ofile' does not exist])\r
+  fi\r
+\r
+  if test -z "$LTCC"; then\r
+    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"\r
+    if test -z "$LTCC"; then\r
+      AC_MSG_WARN([output file `$ofile' does not look like a libtool script])\r
+    else\r
+      AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])\r
+    fi\r
+  fi\r
+\r
+  # Extract list of available tagged configurations in $ofile.\r
+  # Note that this assumes the entire list is on one line.\r
+  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`\r
+\r
+  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"\r
+  for tagname in $tagnames; do\r
+    IFS="$lt_save_ifs"\r
+    # Check whether tagname contains only valid characters\r
+    case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in\r
+    "") ;;\r
+    *)  AC_MSG_ERROR([invalid tag name: $tagname])\r
+       ;;\r
+    esac\r
+\r
+    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null\r
+    then\r
+      AC_MSG_ERROR([tag name \"$tagname\" already exists])\r
+    fi\r
+\r
+    # Update the list of available tags.\r
+    if test -n "$tagname"; then\r
+      echo appending configuration tag \"$tagname\" to $ofile\r
+\r
+      case $tagname in\r
+      CXX)\r
+       if test -n "$CXX" && test "X$CXX" != "Xno"; then\r
+         AC_LIBTOOL_LANG_CXX_CONFIG\r
+       else\r
+         tagname=""\r
+       fi\r
+       ;;\r
+\r
+      F77)\r
+       if test -n "$F77" && test "X$F77" != "Xno"; then\r
+         AC_LIBTOOL_LANG_F77_CONFIG\r
+       else\r
+         tagname=""\r
+       fi\r
+       ;;\r
+\r
+      GCJ)\r
+       if test -n "$GCJ" && test "X$GCJ" != "Xno"; then\r
+         AC_LIBTOOL_LANG_GCJ_CONFIG\r
+       else\r
+         tagname=""\r
+       fi\r
+       ;;\r
+\r
+      RC)\r
+       AC_LIBTOOL_LANG_RC_CONFIG\r
+       ;;\r
+\r
+      *)\r
+       AC_MSG_ERROR([Unsupported tag name: $tagname])\r
+       ;;\r
+      esac\r
+\r
+      # Append the new tag name to the list of available tags.\r
+      if test -n "$tagname" ; then\r
+      available_tags="$available_tags $tagname"\r
+    fi\r
+    fi\r
+  done\r
+  IFS="$lt_save_ifs"\r
+\r
+  # Now substitute the updated list of available tags.\r
+  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then\r
+    mv "${ofile}T" "$ofile"\r
+    chmod +x "$ofile"\r
+  else\r
+    rm -f "${ofile}T"\r
+    AC_MSG_ERROR([unable to update list of available tagged configurations.])\r
+  fi\r
+fi\r
+])# _LT_AC_TAGCONFIG\r
+\r
+\r
+# AC_LIBTOOL_DLOPEN\r
+# -----------------\r
+# enable checks for dlopen support\r
+AC_DEFUN([AC_LIBTOOL_DLOPEN],\r
+ [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])\r
+])# AC_LIBTOOL_DLOPEN\r
+\r
+\r
+# AC_LIBTOOL_WIN32_DLL\r
+# --------------------\r
+# declare package support for building win32 dll's\r
+AC_DEFUN([AC_LIBTOOL_WIN32_DLL],\r
+[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])\r
+])# AC_LIBTOOL_WIN32_DLL\r
+\r
+\r
+# AC_ENABLE_SHARED([DEFAULT])\r
+# ---------------------------\r
+# implement the --enable-shared flag\r
+# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.\r
+AC_DEFUN([AC_ENABLE_SHARED],\r
+[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl\r
+AC_ARG_ENABLE([shared],\r
+    [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],\r
+       [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],\r
+    [p=${PACKAGE-default}\r
+    case $enableval in\r
+    yes) enable_shared=yes ;;\r
+    no) enable_shared=no ;;\r
+    *)\r
+      enable_shared=no\r
+      # Look at the argument we got.  We use all the common list separators.\r
+      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"\r
+      for pkg in $enableval; do\r
+       IFS="$lt_save_ifs"\r
+       if test "X$pkg" = "X$p"; then\r
+         enable_shared=yes\r
+       fi\r
+      done\r
+      IFS="$lt_save_ifs"\r
+      ;;\r
+    esac],\r
+    [enable_shared=]AC_ENABLE_SHARED_DEFAULT)\r
+])# AC_ENABLE_SHARED\r
+\r
+\r
+# AC_DISABLE_SHARED\r
+# -----------------\r
+#- set the default shared flag to --disable-shared\r
+AC_DEFUN([AC_DISABLE_SHARED],\r
+[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl\r
+AC_ENABLE_SHARED(no)\r
+])# AC_DISABLE_SHARED\r
+\r
+\r
+# AC_ENABLE_STATIC([DEFAULT])\r
+# ---------------------------\r
+# implement the --enable-static flag\r
+# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.\r
+AC_DEFUN([AC_ENABLE_STATIC],\r
+[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl\r
+AC_ARG_ENABLE([static],\r
+    [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],\r
+       [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],\r
+    [p=${PACKAGE-default}\r
+    case $enableval in\r
+    yes) enable_static=yes ;;\r
+    no) enable_static=no ;;\r
+    *)\r
+     enable_static=no\r
+      # Look at the argument we got.  We use all the common list separators.\r
+      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"\r
+      for pkg in $enableval; do\r
+       IFS="$lt_save_ifs"\r
+       if test "X$pkg" = "X$p"; then\r
+         enable_static=yes\r
+       fi\r
+      done\r
+      IFS="$lt_save_ifs"\r
+      ;;\r
+    esac],\r
+    [enable_static=]AC_ENABLE_STATIC_DEFAULT)\r
+])# AC_ENABLE_STATIC\r
+\r
+\r
+# AC_DISABLE_STATIC\r
+# -----------------\r
+# set the default static flag to --disable-static\r
+AC_DEFUN([AC_DISABLE_STATIC],\r
+[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl\r
+AC_ENABLE_STATIC(no)\r
+])# AC_DISABLE_STATIC\r
+\r
+\r
+# AC_ENABLE_FAST_INSTALL([DEFAULT])\r
+# ---------------------------------\r
+# implement the --enable-fast-install flag\r
+# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.\r
+AC_DEFUN([AC_ENABLE_FAST_INSTALL],\r
+[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl\r
+AC_ARG_ENABLE([fast-install],\r
+    [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],\r
+    [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],\r
+    [p=${PACKAGE-default}\r
+    case $enableval in\r
+    yes) enable_fast_install=yes ;;\r
+    no) enable_fast_install=no ;;\r
+    *)\r
+      enable_fast_install=no\r
+      # Look at the argument we got.  We use all the common list separators.\r
+      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"\r
+      for pkg in $enableval; do\r
+       IFS="$lt_save_ifs"\r
+       if test "X$pkg" = "X$p"; then\r
+         enable_fast_install=yes\r
+       fi\r
+      done\r
+      IFS="$lt_save_ifs"\r
+      ;;\r
+    esac],\r
+    [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)\r
+])# AC_ENABLE_FAST_INSTALL\r
+\r
+\r
+# AC_DISABLE_FAST_INSTALL\r
+# -----------------------\r
+# set the default to --disable-fast-install\r
+AC_DEFUN([AC_DISABLE_FAST_INSTALL],\r
+[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl\r
+AC_ENABLE_FAST_INSTALL(no)\r
+])# AC_DISABLE_FAST_INSTALL\r
+\r
+\r
+# AC_LIBTOOL_PICMODE([MODE])\r
+# --------------------------\r
+# implement the --with-pic flag\r
+# MODE is either `yes' or `no'.  If omitted, it defaults to `both'.\r
+AC_DEFUN([AC_LIBTOOL_PICMODE],\r
+[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl\r
+pic_mode=ifelse($#,1,$1,default)\r
+])# AC_LIBTOOL_PICMODE\r
+\r
+\r
+# AC_PROG_EGREP\r
+# -------------\r
+# This is predefined starting with Autoconf 2.54, so this conditional\r
+# definition can be removed once we require Autoconf 2.54 or later.\r
+m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],\r
+[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],\r
+   [if echo a | (grep -E '(a|b)') >/dev/null 2>&1\r
+    then ac_cv_prog_egrep='grep -E'\r
+    else ac_cv_prog_egrep='egrep'\r
+    fi])\r
+ EGREP=$ac_cv_prog_egrep\r
+ AC_SUBST([EGREP])\r
+])])\r
+\r
+\r
+# AC_PATH_TOOL_PREFIX\r
+# -------------------\r
+# find a file program which can recognise shared library\r
+AC_DEFUN([AC_PATH_TOOL_PREFIX],\r
+[AC_REQUIRE([AC_PROG_EGREP])dnl\r
+AC_MSG_CHECKING([for $1])\r
+AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,\r
+[case $MAGIC_CMD in\r
+[[\\/*] |  ?:[\\/]*])\r
+  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.\r
+  ;;\r
+*)\r
+  lt_save_MAGIC_CMD="$MAGIC_CMD"\r
+  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR\r
+dnl $ac_dummy forces splitting on constant user-supplied paths.\r
+dnl POSIX.2 word splitting is done only on the output of word expansions,\r
+dnl not every word.  This closes a longstanding sh security hole.\r
+  ac_dummy="ifelse([$2], , $PATH, [$2])"\r
+  for ac_dir in $ac_dummy; do\r
+    IFS="$lt_save_ifs"\r
+    test -z "$ac_dir" && ac_dir=.\r
+    if test -f $ac_dir/$1; then\r
+      lt_cv_path_MAGIC_CMD="$ac_dir/$1"\r
+      if test -n "$file_magic_test_file"; then\r
+       case $deplibs_check_method in\r
+       "file_magic "*)\r
+         file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"\r
+         MAGIC_CMD="$lt_cv_path_MAGIC_CMD"\r
+         if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |\r
+           $EGREP "$file_magic_regex" > /dev/null; then\r
+           :\r
+         else\r
+           cat <<EOF 1>&2\r
+\r
+*** Warning: the command libtool uses to detect shared libraries,\r
+*** $file_magic_cmd, produces output that libtool cannot recognize.\r
+*** The result is that libtool may fail to recognize shared libraries\r
+*** as such.  This will affect the creation of libtool libraries that\r
+*** depend on shared libraries, but programs linked with such libtool\r
+*** libraries will work regardless of this problem.  Nevertheless, you\r
+*** may want to report the problem to your system manager and/or to\r
+*** bug-libtool@gnu.org\r
+\r
+EOF\r
+         fi ;;\r
+       esac\r
+      fi\r
+      break\r
+    fi\r
+  done\r
+  IFS="$lt_save_ifs"\r
+  MAGIC_CMD="$lt_save_MAGIC_CMD"\r
+  ;;\r
+esac])\r
+MAGIC_CMD="$lt_cv_path_MAGIC_CMD"\r
+if test -n "$MAGIC_CMD"; then\r
+  AC_MSG_RESULT($MAGIC_CMD)\r
+else\r
+  AC_MSG_RESULT(no)\r
+fi\r
+])# AC_PATH_TOOL_PREFIX\r
+\r
+\r
+# AC_PATH_MAGIC\r
+# -------------\r
+# find a file program which can recognise a shared library\r
+AC_DEFUN([AC_PATH_MAGIC],\r
+[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)\r
+if test -z "$lt_cv_path_MAGIC_CMD"; then\r
+  if test -n "$ac_tool_prefix"; then\r
+    AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)\r
+  else\r
+    MAGIC_CMD=:\r
+  fi\r
+fi\r
+])# AC_PATH_MAGIC\r
+\r
+\r
+# AC_PROG_LD\r
+# ----------\r
+# find the pathname to the GNU or non-GNU linker\r
+AC_DEFUN([AC_PROG_LD],\r
+[AC_ARG_WITH([gnu-ld],\r
+    [AC_HELP_STRING([--with-gnu-ld],\r
+       [assume the C compiler uses GNU ld @<:@default=no@:>@])],\r
+    [test "$withval" = no || with_gnu_ld=yes],\r
+    [with_gnu_ld=no])\r
+AC_REQUIRE([LT_AC_PROG_SED])dnl\r
+AC_REQUIRE([AC_PROG_CC])dnl\r
+AC_REQUIRE([AC_CANONICAL_HOST])dnl\r
+AC_REQUIRE([AC_CANONICAL_BUILD])dnl\r
+ac_prog=ld\r
+if test "$GCC" = yes; then\r
+  # Check if gcc -print-prog-name=ld gives a path.\r
+  AC_MSG_CHECKING([for ld used by $CC])\r
+  case $host in\r
+  *-*-mingw*)\r
+    # gcc leaves a trailing carriage return which upsets mingw\r
+    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;\r
+  *)\r
+    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;\r
+  esac\r
+  case $ac_prog in\r
+    # Accept absolute paths.\r
+    [[\\/]]* | ?:[[\\/]]*)\r
+      re_direlt='/[[^/]][[^/]]*/\.\./'\r
+      # Canonicalize the pathname of ld\r
+      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`\r
+      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do\r
+       ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`\r
+      done\r
+      test -z "$LD" && LD="$ac_prog"\r
+      ;;\r
+  "")\r
+    # If it fails, then pretend we aren't using GCC.\r
+    ac_prog=ld\r
+    ;;\r
+  *)\r
+    # If it is relative, then search for the first ld in PATH.\r
+    with_gnu_ld=unknown\r
+    ;;\r
+  esac\r
+elif test "$with_gnu_ld" = yes; then\r
+  AC_MSG_CHECKING([for GNU ld])\r
+else\r
+  AC_MSG_CHECKING([for non-GNU ld])\r
+fi\r
+AC_CACHE_VAL(lt_cv_path_LD,\r
+[if test -z "$LD"; then\r
+  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR\r
+  for ac_dir in $PATH; do\r
+    IFS="$lt_save_ifs"\r
+    test -z "$ac_dir" && ac_dir=.\r
+    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then\r
+      lt_cv_path_LD="$ac_dir/$ac_prog"\r
+      # Check to see if the program is GNU ld.  I'd rather use --version,\r
+      # but apparently some GNU ld's only accept -v.\r
+      # Break only if it was the GNU/non-GNU ld that we prefer.\r
+      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in\r
+      *GNU* | *'with BFD'*)\r
+       test "$with_gnu_ld" != no && break\r
+       ;;\r
+      *)\r
+       test "$with_gnu_ld" != yes && break\r
+       ;;\r
+      esac\r
+    fi\r
+  done\r
+  IFS="$lt_save_ifs"\r
+else\r
+  lt_cv_path_LD="$LD" # Let the user override the test with a path.\r
+fi])\r
+LD="$lt_cv_path_LD"\r
+if test -n "$LD"; then\r
+  AC_MSG_RESULT($LD)\r
+else\r
+  AC_MSG_RESULT(no)\r
+fi\r
+test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])\r
+AC_PROG_LD_GNU\r
+])# AC_PROG_LD\r
+\r
+\r
+# AC_PROG_LD_GNU\r
+# --------------\r
+AC_DEFUN([AC_PROG_LD_GNU],\r
+[AC_REQUIRE([AC_PROG_EGREP])dnl\r
+AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,\r
+[# I'd rather use --version here, but apparently some GNU ld's only accept -v.\r
+case `$LD -v 2>&1 </dev/null` in\r
+*GNU* | *'with BFD'*)\r
+  lt_cv_prog_gnu_ld=yes\r
+  ;;\r
+*)\r
+  lt_cv_prog_gnu_ld=no\r
+  ;;\r
+esac])\r
+with_gnu_ld=$lt_cv_prog_gnu_ld\r
+])# AC_PROG_LD_GNU\r
+\r
+\r
+# AC_PROG_LD_RELOAD_FLAG\r
+# ----------------------\r
+# find reload flag for linker\r
+#   -- PORTME Some linkers may need a different reload flag.\r
+AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],\r
+[AC_CACHE_CHECK([for $LD option to reload object files],\r
+  lt_cv_ld_reload_flag,\r
+  [lt_cv_ld_reload_flag='-r'])\r
+reload_flag=$lt_cv_ld_reload_flag\r
+case $reload_flag in\r
+"" | " "*) ;;\r
+*) reload_flag=" $reload_flag" ;;\r
+esac\r
+reload_cmds='$LD$reload_flag -o $output$reload_objs'\r
+])# AC_PROG_LD_RELOAD_FLAG\r
+\r
+\r
+# AC_DEPLIBS_CHECK_METHOD\r
+# -----------------------\r
+# how to check for library dependencies\r
+#  -- PORTME fill in with the dynamic library characteristics\r
+AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],\r
+[AC_CACHE_CHECK([how to recognise dependent libraries],\r
+lt_cv_deplibs_check_method,\r
+[lt_cv_file_magic_cmd='$MAGIC_CMD'\r
+lt_cv_file_magic_test_file=\r
+lt_cv_deplibs_check_method='unknown'\r
+# Need to set the preceding variable on all platforms that support\r
+# interlibrary dependencies.\r
+# 'none' -- dependencies not supported.\r
+# `unknown' -- same as none, but documents that we really don't know.\r
+# 'pass_all' -- all dependencies passed with no checks.\r
+# 'test_compile' -- check by making test program.\r
+# 'file_magic [[regex]]' -- check by looking for files in library path\r
+# which responds to the $file_magic_cmd with a given extended regex.\r
+# If you have `file' or equivalent on your system and you're not sure\r
+# whether `pass_all' will *always* work, you probably want this one.\r
+\r
+case $host_os in\r
+aix4* | aix5*)\r
+  lt_cv_deplibs_check_method=pass_all\r
+  ;;\r
+\r
+beos*)\r
+  lt_cv_deplibs_check_method=pass_all\r
+  ;;\r
+\r
+bsdi4*)\r
+  lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'\r
+  lt_cv_file_magic_cmd='/usr/bin/file -L'\r
+  lt_cv_file_magic_test_file=/shlib/libc.so\r
+  ;;\r
+\r
+cygwin*)\r
+  # func_win32_libid is a shell function defined in ltmain.sh\r
+  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'\r
+  lt_cv_file_magic_cmd='func_win32_libid'\r
+  ;;\r
+\r
+mingw* | pw32*)\r
+  # Base MSYS/MinGW do not provide the 'file' command needed by\r
+  # func_win32_libid shell function, so use a weaker test based on 'objdump'.\r
+  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'\r
+  lt_cv_file_magic_cmd='$OBJDUMP -f'\r
+  ;;\r
+\r
+darwin* | rhapsody*)\r
+  lt_cv_deplibs_check_method=pass_all\r
+  ;;\r
+\r
+freebsd* | kfreebsd*-gnu)\r
+  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then\r
+    case $host_cpu in\r
+    i*86 )\r
+      # Not sure whether the presence of OpenBSD here was a mistake.\r
+      # Let's accept both of them until this is cleared up.\r
+      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[[3-9]]86 (compact )?demand paged shared library'\r
+      lt_cv_file_magic_cmd=/usr/bin/file\r
+      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`\r
+      ;;\r
+    esac\r
+  else\r
+    lt_cv_deplibs_check_method=pass_all\r
+  fi\r
+  ;;\r
+\r
+gnu*)\r
+  lt_cv_deplibs_check_method=pass_all\r
+  ;;\r
+\r
+hpux10.20* | hpux11*)\r
+  lt_cv_file_magic_cmd=/usr/bin/file\r
+  case "$host_cpu" in\r
+  ia64*)\r
+    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'\r
+    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so\r
+    ;;\r
+  hppa*64*)\r
+    [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]']\r
+    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl\r
+    ;;\r
+  *)\r
+    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'\r
+    lt_cv_file_magic_test_file=/usr/lib/libc.sl\r
+    ;;\r
+  esac\r
+  ;;\r
+\r
+irix5* | irix6* | nonstopux*)\r
+  case $LD in\r
+  *-32|*"-32 ") libmagic=32-bit;;\r
+  *-n32|*"-n32 ") libmagic=N32;;\r
+  *-64|*"-64 ") libmagic=64-bit;;\r
+  *) libmagic=never-match;;\r
+  esac\r
+  lt_cv_deplibs_check_method=pass_all\r
+  ;;\r
+\r
+# This must be Linux ELF.\r
+linux*)\r
+  case $host_cpu in\r
+  alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*|x86_64*)\r
+    lt_cv_deplibs_check_method=pass_all ;;\r
+  *)\r
+    # glibc up to 2.1.1 does not perform some relocations on ARM\r
+    # this will be overridden with pass_all, but let us keep it just in case\r
+    lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' ;;\r
+  esac\r
+  lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`\r
+  lt_cv_deplibs_check_method=pass_all\r
+  ;;\r
+\r
+netbsd*)\r
+  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then\r
+    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'\r
+  else\r
+    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'\r
+  fi\r
+  ;;\r
+\r
+newos6*)\r
+  lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'\r
+  lt_cv_file_magic_cmd=/usr/bin/file\r
+  lt_cv_file_magic_test_file=/usr/lib/libnls.so\r
+  ;;\r
+\r
+nto-qnx*)\r
+  lt_cv_deplibs_check_method=unknown\r
+  ;;\r
+\r
+openbsd*)\r
+  lt_cv_file_magic_cmd=/usr/bin/file\r
+  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`\r
+  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then\r
+    lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB shared object'\r
+  else\r
+    lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'\r
+  fi\r
+  ;;\r
+\r
+osf3* | osf4* | osf5*)\r
+  lt_cv_deplibs_check_method=pass_all\r
+  ;;\r
+\r
+sco3.2v5*)\r
+  lt_cv_deplibs_check_method=pass_all\r
+  ;;\r
+\r
+solaris*)\r
+  lt_cv_deplibs_check_method=pass_all\r
+  ;;\r
+\r
+sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)\r
+  case $host_vendor in\r
+  motorola)\r
+    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]]'\r
+    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`\r
+    ;;\r
+  ncr)\r
+    lt_cv_deplibs_check_method=pass_all\r
+    ;;\r
+  sequent)\r
+    lt_cv_file_magic_cmd='/bin/file'\r
+    lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'\r
+    ;;\r
+  sni)\r
+    lt_cv_file_magic_cmd='/bin/file'\r
+    lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"\r
+    lt_cv_file_magic_test_file=/lib/libc.so\r
+    ;;\r
+  siemens)\r
+    lt_cv_deplibs_check_method=pass_all\r
+    ;;\r
+  esac\r
+  ;;\r
+\r
+sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7* | sysv4*uw2*)\r
+  lt_cv_deplibs_check_method=pass_all\r
+  ;;\r
+esac\r
+])\r
+file_magic_cmd=$lt_cv_file_magic_cmd\r
+deplibs_check_method=$lt_cv_deplibs_check_method\r
+test -z "$deplibs_check_method" && deplibs_check_method=unknown\r
+])# AC_DEPLIBS_CHECK_METHOD\r
+\r
+\r
+# AC_PROG_NM\r
+# ----------\r
+# find the pathname to a BSD-compatible name lister\r
+AC_DEFUN([AC_PROG_NM],\r
+[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,\r
+[if test -n "$NM"; then\r
+  # Let the user override the test.\r
+  lt_cv_path_NM="$NM"\r
+else\r
+  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR\r
+  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do\r
+    IFS="$lt_save_ifs"\r
+    test -z "$ac_dir" && ac_dir=.\r
+    tmp_nm="$ac_dir/${ac_tool_prefix}nm"\r
+    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then\r
+      # Check to see if the nm accepts a BSD-compat flag.\r
+      # Adding the `sed 1q' prevents false positives on HP-UX, which says:\r
+      #   nm: unknown option "B" ignored\r
+      # Tru64's nm complains that /dev/null is an invalid object file\r
+      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in\r
+      */dev/null* | *'Invalid file or object type'*)\r
+       lt_cv_path_NM="$tmp_nm -B"\r
+       break\r
+        ;;\r
+      *)\r
+       case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in\r
+       */dev/null*)\r
+         lt_cv_path_NM="$tmp_nm -p"\r
+         break\r
+         ;;\r
+       *)\r
+         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but\r
+         continue # so that we can try to find one that supports BSD flags\r
+         ;;\r
+       esac\r
+      esac\r
+    fi\r
+  done\r
+  IFS="$lt_save_ifs"\r
+  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm\r
+fi])\r
+NM="$lt_cv_path_NM"\r
+])# AC_PROG_NM\r
+\r
+\r
+# AC_CHECK_LIBM\r
+# -------------\r
+# check for math library\r
+AC_DEFUN([AC_CHECK_LIBM],\r
+[AC_REQUIRE([AC_CANONICAL_HOST])dnl\r
+LIBM=\r
+case $host in\r
+*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)\r
+  # These system don't have libm, or don't need it\r
+  ;;\r
+*-ncr-sysv4.3*)\r
+  AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")\r
+  AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")\r
+  ;;\r
+*)\r
+  AC_CHECK_LIB(m, cos, LIBM="-lm")\r
+  ;;\r
+esac\r
+])# AC_CHECK_LIBM\r
+\r
+\r
+# AC_LIBLTDL_CONVENIENCE([DIRECTORY])\r
+# -----------------------------------\r
+# sets LIBLTDL to the link flags for the libltdl convenience library and\r
+# LTDLINCL to the include flags for the libltdl header and adds\r
+# --enable-ltdl-convenience to the configure arguments.  Note that LIBLTDL\r
+# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called.  If\r
+# DIRECTORY is not provided, it is assumed to be `libltdl'.  LIBLTDL will\r
+# be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed with\r
+# '${top_srcdir}/' (note the single quotes!).  If your package is not\r
+# flat and you're not using automake, define top_builddir and\r
+# top_srcdir appropriately in the Makefiles.\r
+AC_DEFUN([AC_LIBLTDL_CONVENIENCE],\r
+[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl\r
+  case $enable_ltdl_convenience in\r
+  no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;\r
+  "") enable_ltdl_convenience=yes\r
+      ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;\r
+  esac\r
+  LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la\r
+  LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])\r
+  # For backwards non-gettext consistent compatibility...\r
+  INCLTDL="$LTDLINCL"\r
+])# AC_LIBLTDL_CONVENIENCE\r
+\r
+\r
+# AC_LIBLTDL_INSTALLABLE([DIRECTORY])\r
+# -----------------------------------\r
+# sets LIBLTDL to the link flags for the libltdl installable library and\r
+# LTDLINCL to the include flags for the libltdl header and adds\r
+# --enable-ltdl-install to the configure arguments.  Note that LIBLTDL\r
+# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called.  If\r
+# DIRECTORY is not provided and an installed libltdl is not found, it is\r
+# assumed to be `libltdl'.  LIBLTDL will be prefixed with '${top_builddir}/'\r
+# and LTDLINCL will be prefixed with '${top_srcdir}/' (note the single\r
+# quotes!).  If your package is not flat and you're not using automake,\r
+# define top_builddir and top_srcdir appropriately in the Makefiles.\r
+# In the future, this macro may have to be called after AC_PROG_LIBTOOL.\r
+AC_DEFUN([AC_LIBLTDL_INSTALLABLE],\r
+[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl\r
+  AC_CHECK_LIB(ltdl, lt_dlinit,\r
+  [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],\r
+  [if test x"$enable_ltdl_install" = xno; then\r
+     AC_MSG_WARN([libltdl not installed, but installation disabled])\r
+   else\r
+     enable_ltdl_install=yes\r
+   fi\r
+  ])\r
+  if test x"$enable_ltdl_install" = x"yes"; then\r
+    ac_configure_args="$ac_configure_args --enable-ltdl-install"\r
+    LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la\r
+    LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])\r
+  else\r
+    ac_configure_args="$ac_configure_args --enable-ltdl-install=no"\r
+    LIBLTDL="-lltdl"\r
+    LTDLINCL=\r
+  fi\r
+  # For backwards non-gettext consistent compatibility...\r
+  INCLTDL="$LTDLINCL"\r
+])# AC_LIBLTDL_INSTALLABLE\r
+\r
+\r
+# AC_LIBTOOL_CXX\r
+# --------------\r
+# enable support for C++ libraries\r
+AC_DEFUN([AC_LIBTOOL_CXX],\r
+[AC_REQUIRE([_LT_AC_LANG_CXX])\r
+])# AC_LIBTOOL_CXX\r
+\r
+\r
+# _LT_AC_LANG_CXX\r
+# ---------------\r
+AC_DEFUN([_LT_AC_LANG_CXX],\r
+[AC_REQUIRE([AC_PROG_CXX])\r
+AC_REQUIRE([AC_PROG_CXXCPP])\r
+_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])\r
+])# _LT_AC_LANG_CXX\r
+\r
+\r
+# AC_LIBTOOL_F77\r
+# --------------\r
+# enable support for Fortran 77 libraries\r
+AC_DEFUN([AC_LIBTOOL_F77],\r
+[AC_REQUIRE([_LT_AC_LANG_F77])\r
+])# AC_LIBTOOL_F77\r
+\r
+\r
+# _LT_AC_LANG_F77\r
+# ---------------\r
+AC_DEFUN([_LT_AC_LANG_F77],\r
+[AC_REQUIRE([AC_PROG_F77])\r
+_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])\r
+])# _LT_AC_LANG_F77\r
+\r
+\r
+# AC_LIBTOOL_GCJ\r
+# --------------\r
+# enable support for GCJ libraries\r
+AC_DEFUN([AC_LIBTOOL_GCJ],\r
+[AC_REQUIRE([_LT_AC_LANG_GCJ])\r
+])# AC_LIBTOOL_GCJ\r
+\r
+\r
+# _LT_AC_LANG_GCJ\r
+# ---------------\r
+AC_DEFUN([_LT_AC_LANG_GCJ],\r
+[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],\r
+  [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],\r
+    [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],\r
+      [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],\r
+        [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],\r
+          [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])\r
+_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])\r
+])# _LT_AC_LANG_GCJ\r
+\r
+\r
+# AC_LIBTOOL_RC\r
+# --------------\r
+# enable support for Windows resource files\r
+AC_DEFUN([AC_LIBTOOL_RC],\r
+[AC_REQUIRE([LT_AC_PROG_RC])\r
+_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])\r
+])# AC_LIBTOOL_RC\r
+\r
+\r
+# AC_LIBTOOL_LANG_C_CONFIG\r
+# ------------------------\r
+# Ensure that the configuration vars for the C compiler are\r
+# suitably defined.  Those variables are subsequently used by\r
+# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.\r
+AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])\r
+AC_DEFUN([_LT_AC_LANG_C_CONFIG],\r
+[lt_save_CC="$CC"\r
+AC_LANG_PUSH(C)\r
+\r
+# Source file extension for C test sources.\r
+ac_ext=c\r
+\r
+# Object file extension for compiled C test sources.\r
+objext=o\r
+_LT_AC_TAGVAR(objext, $1)=$objext\r
+\r
+# Code to be used in simple compile tests\r
+lt_simple_compile_test_code="int some_variable = 0;\n"\r
+\r
+# Code to be used in simple link tests\r
+lt_simple_link_test_code='int main(){return(0);}\n'\r
+\r
+_LT_AC_SYS_COMPILER\r
+\r
+#\r
+# Check for any special shared library compilation flags.\r
+#\r
+_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)=\r
+if test "$GCC" = no; then\r
+  case $host_os in\r
+  sco3.2v5*)\r
+    _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf'\r
+    ;;\r
+  esac\r
+fi\r
+if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then\r
+  AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries])\r
+  if echo "$old_CC $old_CFLAGS " | grep "[[    ]]$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[        ]]" >/dev/null; then :\r
+  else\r
+    AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure])\r
+    _LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no\r
+  fi\r
+fi\r
+\r
+\r
+#\r
+# Check to make sure the static flag actually works.\r
+#\r
+AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works],\r
+  _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),\r
+  $_LT_AC_TAGVAR(lt_prog_compiler_static, $1),\r
+  [],\r
+  [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])\r
+\r
+\r
+## CAVEAT EMPTOR:\r
+## There is no encapsulation within the following macros, do not change\r
+## the running order or otherwise move them around unless you know exactly\r
+## what you are doing...\r
+AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)\r
+AC_LIBTOOL_PROG_COMPILER_PIC($1)\r
+AC_LIBTOOL_PROG_CC_C_O($1)\r
+AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)\r
+AC_LIBTOOL_PROG_LD_SHLIBS($1)\r
+AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)\r
+AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)\r
+AC_LIBTOOL_SYS_LIB_STRIP\r
+AC_LIBTOOL_DLOPEN_SELF($1)\r
+\r
+# Report which librarie types wil actually be built\r
+AC_MSG_CHECKING([if libtool supports shared libraries])\r
+AC_MSG_RESULT([$can_build_shared])\r
+\r
+AC_MSG_CHECKING([whether to build shared libraries])\r
+test "$can_build_shared" = "no" && enable_shared=no\r
+\r
+# On AIX, shared libraries and static libraries use the same namespace, and\r
+# are all built from PIC.\r
+case "$host_os" in\r
+aix3*)\r
+  test "$enable_shared" = yes && enable_static=no\r
+  if test -n "$RANLIB"; then\r
+    archive_cmds="$archive_cmds~\$RANLIB \$lib"\r
+    postinstall_cmds='$RANLIB $lib'\r
+  fi\r
+  ;;\r
+\r
+aix4* | aix5*)\r
+  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then\r
+    test "$enable_shared" = yes && enable_static=no\r
+  fi\r
+  ;;\r
+  darwin* | rhapsody*)\r
+  if test "$GCC" = yes; then\r
+    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no\r
+    case "$host_os" in\r
+    rhapsody* | darwin1.[[012]])\r
+      _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'\r
+      ;;\r
+    *) # Darwin 1.3 on\r
+      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then\r
+       _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'\r
+      else\r
+        case ${MACOSX_DEPLOYMENT_TARGET} in\r
+          10.[[012]])\r
+            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'\r
+            ;;\r
+          10.*)\r
+            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'\r
+            ;;\r
+        esac\r
+      fi\r
+      ;;\r
+    esac\r
+    output_verbose_link_cmd='echo'\r
+    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'\r
+    _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'\r
+    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's\r
+    _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}'\r
+    _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}'\r
+    _LT_AC_TAGVAR(hardcode_direct, $1)=no\r
+    _LT_AC_TAGVAR(hardcode_automatic, $1)=yes\r
+    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported\r
+    _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'\r
+    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes\r
+  else\r
+    _LT_AC_TAGVAR(ld_shlibs, $1)=no\r
+  fi\r
+    ;;\r
+esac\r
+AC_MSG_RESULT([$enable_shared])\r
+\r
+AC_MSG_CHECKING([whether to build static libraries])\r
+# Make sure either enable_shared or enable_static is yes.\r
+test "$enable_shared" = yes || enable_static=yes\r
+AC_MSG_RESULT([$enable_static])\r
+\r
+AC_LIBTOOL_CONFIG($1)\r
+\r
+AC_LANG_POP\r
+CC="$lt_save_CC"\r
+])# AC_LIBTOOL_LANG_C_CONFIG\r
+\r
+\r
+# AC_LIBTOOL_LANG_CXX_CONFIG\r
+# --------------------------\r
+# Ensure that the configuration vars for the C compiler are\r
+# suitably defined.  Those variables are subsequently used by\r
+# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.\r
+AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])\r
+AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],\r
+[AC_LANG_PUSH(C++)\r
+AC_REQUIRE([AC_PROG_CXX])\r
+AC_REQUIRE([AC_PROG_CXXCPP])\r
+\r
+_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no\r
+_LT_AC_TAGVAR(allow_undefined_flag, $1)=\r
+_LT_AC_TAGVAR(always_export_symbols, $1)=no\r
+_LT_AC_TAGVAR(archive_expsym_cmds, $1)=\r
+_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=\r
+_LT_AC_TAGVAR(hardcode_direct, $1)=no\r
+_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=\r
+_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=\r
+_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=\r
+_LT_AC_TAGVAR(hardcode_minus_L, $1)=no\r
+_LT_AC_TAGVAR(hardcode_automatic, $1)=no\r
+_LT_AC_TAGVAR(module_cmds, $1)=\r
+_LT_AC_TAGVAR(module_expsym_cmds, $1)=\r
+_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown\r
+_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds\r
+_LT_AC_TAGVAR(no_undefined_flag, $1)=\r
+_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=\r
+_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no\r
+\r
+# Dependencies to place before and after the object being linked:\r
+_LT_AC_TAGVAR(predep_objects, $1)=\r
+_LT_AC_TAGVAR(postdep_objects, $1)=\r
+_LT_AC_TAGVAR(predeps, $1)=\r
+_LT_AC_TAGVAR(postdeps, $1)=\r
+_LT_AC_TAGVAR(compiler_lib_search_path, $1)=\r
+\r
+# Source file extension for C++ test sources.\r
+ac_ext=cc\r
+\r
+# Object file extension for compiled C++ test sources.\r
+objext=o\r
+_LT_AC_TAGVAR(objext, $1)=$objext\r
+\r
+# Code to be used in simple compile tests\r
+lt_simple_compile_test_code="int some_variable = 0;\n"\r
+\r
+# Code to be used in simple link tests\r
+lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'\r
+\r
+# ltmain only uses $CC for tagged configurations so make sure $CC is set.\r
+_LT_AC_SYS_COMPILER\r
+\r
+# Allow CC to be a program name with arguments.\r
+lt_save_CC=$CC\r
+lt_save_LD=$LD\r
+lt_save_GCC=$GCC\r
+GCC=$GXX\r
+lt_save_with_gnu_ld=$with_gnu_ld\r
+lt_save_path_LD=$lt_cv_path_LD\r
+if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then\r
+  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx\r
+else\r
+  unset lt_cv_prog_gnu_ld\r
+fi\r
+if test -n "${lt_cv_path_LDCXX+set}"; then\r
+  lt_cv_path_LD=$lt_cv_path_LDCXX\r
+else\r
+  unset lt_cv_path_LD\r
+fi\r
+test -z "${LDCXX+set}" || LD=$LDCXX\r
+CC=${CXX-"c++"}\r
+compiler=$CC\r
+_LT_AC_TAGVAR(compiler, $1)=$CC\r
+cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`\r
+\r
+# We don't want -fno-exception wen compiling C++ code, so set the\r
+# no_builtin_flag separately\r
+if test "$GXX" = yes; then\r
+  _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'\r
+else\r
+  _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=\r
+fi\r
+\r
+if test "$GXX" = yes; then\r
+  # Set up default GNU C++ configuration\r
+\r
+  AC_PROG_LD\r
+\r
+  # Check if GNU C++ uses GNU ld as the underlying linker, since the\r
+  # archiving commands below assume that GNU ld is being used.\r
+  if test "$with_gnu_ld" = yes; then\r
+    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'\r
+    _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'\r
+\r
+    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'\r
+    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'\r
+\r
+    # If archive_cmds runs LD, not CC, wlarc should be empty\r
+    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to\r
+    #     investigate it a little bit more. (MM)\r
+    wlarc='${wl}'\r
+\r
+    # ancient GNU ld didn't support --whole-archive et. al.\r
+    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \\r
+       grep 'no-whole-archive' > /dev/null; then\r
+      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'\r
+    else\r
+      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=\r
+    fi\r
+  else\r
+    with_gnu_ld=no\r
+    wlarc=\r
+\r
+    # A generic and very simple default shared library creation\r
+    # command for GNU C++ for the case where it uses the native\r
+    # linker, instead of GNU ld.  If possible, this setting should\r
+    # overridden to take advantage of the native linker features on\r
+    # the platform it is being used on.\r
+    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'\r
+  fi\r
+\r
+  # Commands to make compiler produce verbose output that lists\r
+  # what "hidden" libraries, object files and flags are used when\r
+  # linking a shared library.\r
+  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'\r
+\r
+else\r
+  GXX=no\r
+  with_gnu_ld=no\r
+  wlarc=\r
+fi\r
+\r
+# PORTME: fill in a description of your system's C++ link characteristics\r
+AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])\r
+_LT_AC_TAGVAR(ld_shlibs, $1)=yes\r
+case $host_os in\r
+  aix3*)\r
+    # FIXME: insert proper C++ library support\r
+    _LT_AC_TAGVAR(ld_shlibs, $1)=no\r
+    ;;\r
+  aix4* | aix5*)\r
+    if test "$host_cpu" = ia64; then\r
+      # On IA64, the linker does run time linking by default, so we don't\r
+      # have to do anything special.\r
+      aix_use_runtimelinking=no\r
+      exp_sym_flag='-Bexport'\r
+      no_entry_flag=""\r
+    else\r
+      aix_use_runtimelinking=no\r
+\r
+      # Test if we are trying to use run time linking or normal\r
+      # AIX style linking. If -brtl is somewhere in LDFLAGS, we\r
+      # need to do runtime linking.\r
+      case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)\r
+       for ld_flag in $LDFLAGS; do\r
+         case $ld_flag in\r
+         *-brtl*)\r
+           aix_use_runtimelinking=yes\r
+           break\r
+           ;;\r
+         esac\r
+       done\r
+      esac\r
+\r
+      exp_sym_flag='-bexport'\r
+      no_entry_flag='-bnoentry'\r
+    fi\r
+\r
+    # When large executables or shared objects are built, AIX ld can\r
+    # have problems creating the table of contents.  If linking a library\r
+    # or program results in "error TOC overflow" add -mminimal-toc to\r
+    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not\r
+    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.\r
+\r
+    _LT_AC_TAGVAR(archive_cmds, $1)=''\r
+    _LT_AC_TAGVAR(hardcode_direct, $1)=yes\r
+    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'\r
+    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes\r
+\r
+    if test "$GXX" = yes; then\r
+      case $host_os in aix4.[012]|aix4.[012].*)\r
+      # We only want to do this on AIX 4.2 and lower, the check\r
+      # below for broken collect2 doesn't work under 4.3+\r
+       collect2name=`${CC} -print-prog-name=collect2`\r
+       if test -f "$collect2name" && \\r
+          strings "$collect2name" | grep resolve_lib_name >/dev/null\r
+       then\r
+         # We have reworked collect2\r
+         _LT_AC_TAGVAR(hardcode_direct, $1)=yes\r
+       else\r
+         # We have old collect2\r
+         _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported\r
+         # It fails to find uninstalled libraries when the uninstalled\r
+         # path is not listed in the libpath.  Setting hardcode_minus_L\r
+         # to unsupported forces relinking\r
+         _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes\r
+         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'\r
+         _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=\r
+       fi\r
+      esac\r
+      shared_flag='-shared'\r
+    else\r
+      # not using gcc\r
+      if test "$host_cpu" = ia64; then\r
+       # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release\r
+       # chokes on -Wl,-G. The following line is correct:\r
+       shared_flag='-G'\r
+      else\r
+       if test "$aix_use_runtimelinking" = yes; then\r
+         shared_flag='${wl}-G'\r
+       else\r
+         shared_flag='${wl}-bM:SRE'\r
+       fi\r
+      fi\r
+    fi\r
+\r
+    # It seems that -bexpall does not export symbols beginning with\r
+    # underscore (_), so it is better to generate a list of symbols to export.\r
+    _LT_AC_TAGVAR(always_export_symbols, $1)=yes\r
+    if test "$aix_use_runtimelinking" = yes; then\r
+      # Warning - without using the other runtime loading flags (-brtl),\r
+      # -berok will link without error, but may produce a broken library.\r
+      _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'\r
+      # Determine the default libpath from the value encoded in an empty executable.\r
+      _LT_AC_SYS_LIBPATH_AIX\r
+      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"\r
+\r
+      _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"\r
+     else\r
+      if test "$host_cpu" = ia64; then\r
+       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'\r
+       _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"\r
+       _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"\r
+      else\r
+       # Determine the default libpath from the value encoded in an empty executable.\r
+       _LT_AC_SYS_LIBPATH_AIX\r
+       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"\r
+       # Warning - without using the other run time loading flags,\r
+       # -berok will link without error, but may produce a broken library.\r
+       _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'\r
+       _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'\r
+       # -bexpall does not export symbols beginning with underscore (_)\r
+       _LT_AC_TAGVAR(always_export_symbols, $1)=yes\r
+       # Exported symbols can be pulled into shared objects from archives\r
+       _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '\r
+       _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes\r
+       # This is similar to how AIX traditionally builds it's shared libraries.\r
+       _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'\r
+      fi\r
+    fi\r
+    ;;\r
+  chorus*)\r
+    case $cc_basename in\r
+      *)\r
+       # FIXME: insert proper C++ library support\r
+       _LT_AC_TAGVAR(ld_shlibs, $1)=no\r
+       ;;\r
+    esac\r
+    ;;\r
+\r
+  cygwin* | mingw* | pw32*)\r
+    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,\r
+    # as there is no search path for DLLs.\r
+    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'\r
+    _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported\r
+    _LT_AC_TAGVAR(always_export_symbols, $1)=no\r
+    _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes\r
+\r
+    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then\r
+      _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'\r
+      # If the export-symbols file already is a .def file (1st line\r
+      # is EXPORTS), use it as is; otherwise, prepend...\r
+      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then\r
+       cp $export_symbols $output_objdir/$soname.def;\r
+      else\r
+       echo EXPORTS > $output_objdir/$soname.def;\r
+       cat $export_symbols >> $output_objdir/$soname.def;\r
+      fi~\r
+      $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'\r
+    else\r
+      _LT_AC_TAGVAR(ld_shlibs, $1)=no\r
+    fi\r
+  ;;\r
+\r
+  darwin* | rhapsody*)\r
+  if test "$GXX" = yes; then\r
+    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no\r
+    case "$host_os" in\r
+    rhapsody* | darwin1.[[012]])\r
+      _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'\r
+      ;;\r
+    *) # Darwin 1.3 on\r
+      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then\r
+       _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'\r
+      else\r
+        case ${MACOSX_DEPLOYMENT_TARGET} in\r
+          10.[[012]])\r
+            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'\r
+            ;;\r
+          10.*)\r
+            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'\r
+            ;;\r
+        esac\r
+      fi\r
+      ;;\r
+    esac\r
+    lt_int_apple_cc_single_mod=no\r
+    output_verbose_link_cmd='echo'\r
+    if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then\r
+      lt_int_apple_cc_single_mod=yes\r
+    fi\r
+    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then\r
+      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'\r
+    else\r
+      _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'\r
+    fi\r
+    _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'\r
+\r
+    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's\r
+    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then\r
+      _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}'\r
+    else\r
+      _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}'\r
+    fi\r
+    _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}'\r
+    _LT_AC_TAGVAR(hardcode_direct, $1)=no\r
+    _LT_AC_TAGVAR(hardcode_automatic, $1)=yes\r
+    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported\r
+    _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'\r
+    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes\r
+  else\r
+    _LT_AC_TAGVAR(ld_shlibs, $1)=no\r
+  fi\r
+    ;;\r
+\r
+  dgux*)\r
+    case $cc_basename in\r
+      ec++)\r
+       # FIXME: insert proper C++ library support\r
+       _LT_AC_TAGVAR(ld_shlibs, $1)=no\r
+       ;;\r
+      ghcx)\r
+       # Green Hills C++ Compiler\r
+       # FIXME: insert proper C++ library support\r
+       _LT_AC_TAGVAR(ld_shlibs, $1)=no\r
+       ;;\r
+      *)\r
+       # FIXME: insert proper C++ library support\r
+       _LT_AC_TAGVAR(ld_shlibs, $1)=no\r
+       ;;\r
+    esac\r
+    ;;\r
+  freebsd[12]*)\r
+    # C++ shared libraries reported to be fairly broken before switch to ELF\r
+    _LT_AC_TAGVAR(ld_shlibs, $1)=no\r
+    ;;\r
+  freebsd-elf*)\r
+    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no\r
+    ;;\r
+  freebsd* | kfreebsd*-gnu)\r
+    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF\r
+    # conventions\r
+    _LT_AC_TAGVAR(ld_shlibs, $1)=yes\r
+    ;;\r
+  gnu*)\r
+    ;;\r
+  hpux9*)\r
+    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'\r
+    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:\r
+    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'\r
+    _LT_AC_TAGVAR(hardcode_direct, $1)=yes\r
+    _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,\r
+                               # but as the default\r
+                               # location of the library.\r
+\r
+    case $cc_basename in\r
+    CC)\r
+      # FIXME: insert proper C++ library support\r
+      _LT_AC_TAGVAR(ld_shlibs, $1)=no\r
+      ;;\r
+    aCC)\r
+      _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'\r
+      # Commands to make compiler produce verbose output that lists\r
+      # what "hidden" libraries, object files and flags are used when\r
+      # linking a shared library.\r
+      #\r
+      # There doesn't appear to be a way to prevent this compiler from\r
+      # explicitly linking system object files so we need to strip them\r
+      # from the output so that they don't get included in the library\r
+      # dependencies.\r
+      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'\r
+      ;;\r
+    *)\r
+      if test "$GXX" = yes; then\r
+        _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'\r
+      else\r
+        # FIXME: insert proper C++ library support\r
+        _LT_AC_TAGVAR(ld_shlibs, $1)=no\r
+      fi\r
+      ;;\r
+    esac\r
+    ;;\r
+  hpux10*|hpux11*)\r
+    if test $with_gnu_ld = no; then\r
+      case "$host_cpu" in\r
+      hppa*64*)\r
+       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'\r
+       _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'\r
+       _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:\r
+        ;;\r
+      ia64*)\r
+       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'\r
+        ;;\r
+      *)\r
+       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'\r
+       _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:\r
+       _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'\r
+        ;;\r
+      esac\r
+    fi\r
+    case "$host_cpu" in\r
+    hppa*64*)\r
+      _LT_AC_TAGVAR(hardcode_direct, $1)=no\r
+      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no\r
+      ;;\r
+    ia64*)\r
+      _LT_AC_TAGVAR(hardcode_direct, $1)=no\r
+      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no\r
+      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,\r
+                                             # but as the default\r
+                                             # location of the library.\r
+      ;;\r
+    *)\r
+      _LT_AC_TAGVAR(hardcode_direct, $1)=yes\r
+      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,\r
+                                             # but as the default\r
+                                             # location of the library.\r
+      ;;\r
+    esac\r
+\r
+    case $cc_basename in\r
+      CC)\r
+       # FIXME: insert proper C++ library support\r
+       _LT_AC_TAGVAR(ld_shlibs, $1)=no\r
+       ;;\r
+      aCC)\r
+       case "$host_cpu" in\r
+       hppa*64*|ia64*)\r
+         _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'\r
+         ;;\r
+       *)\r
+         _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'\r
+         ;;\r
+       esac\r
+       # Commands to make compiler produce verbose output that lists\r
+       # what "hidden" libraries, object files and flags are used when\r
+       # linking a shared library.\r
+       #\r
+       # There doesn't appear to be a way to prevent this compiler from\r
+       # explicitly linking system object files so we need to strip them\r
+       # from the output so that they don't get included in the library\r
+       # dependencies.\r
+       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'\r
+       ;;\r
+      *)\r
+       if test "$GXX" = yes; then\r
+         if test $with_gnu_ld = no; then\r
+           case "$host_cpu" in\r
+           ia64*|hppa*64*)\r
+             _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'\r
+             ;;\r
+           *)\r
+             _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'\r
+             ;;\r
+           esac\r
+         fi\r
+       else\r
+         # FIXME: insert proper C++ library support\r
+         _LT_AC_TAGVAR(ld_shlibs, $1)=no\r
+       fi\r
+       ;;\r
+    esac\r
+    ;;\r
+  irix5* | irix6*)\r
+    case $cc_basename in\r
+      CC)\r
+       # SGI C++\r
+       _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'\r
+\r
+       # Archives containing C++ object files must be created using\r
+       # "CC -ar", where "CC" is the IRIX C++ compiler.  This is\r
+       # necessary to make sure instantiated templates are included\r
+       # in the archive.\r
+       _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'\r
+       ;;\r
+      *)\r
+       if test "$GXX" = yes; then\r
+         if test "$with_gnu_ld" = no; then\r
+           _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'\r
+         else\r
+           _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'\r
+         fi\r
+       fi\r
+       _LT_AC_TAGVAR(link_all_deplibs, $1)=yes\r
+       ;;\r
+    esac\r
+    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'\r
+    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:\r
+    ;;\r
+  linux*)\r
+    case $cc_basename in\r
+      KCC)\r
+       # Kuck and Associates, Inc. (KAI) C++ Compiler\r
+\r
+       # KCC will only create a shared library if the output file\r
+       # ends with ".so" (or ".sl" for HP-UX), so rename the library\r
+       # to its proper name (with version) after linking.\r
+       _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'\r
+       _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'\r
+       # Commands to make compiler produce verbose output that lists\r
+       # what "hidden" libraries, object files and flags are used when\r
+       # linking a shared library.\r
+       #\r
+       # There doesn't appear to be a way to prevent this compiler from\r
+       # explicitly linking system object files so we need to strip them\r
+       # from the output so that they don't get included in the library\r
+       # dependencies.\r
+       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'\r
+\r
+       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'\r
+       _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'\r
+\r
+       # Archives containing C++ object files must be created using\r
+       # "CC -Bstatic", where "CC" is the KAI C++ compiler.\r
+       _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'\r
+       ;;\r
+      icpc)\r
+       # Intel C++\r
+       with_gnu_ld=yes\r
+       _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no\r
+       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'\r
+       _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'\r
+       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'\r
+       _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'\r
+       _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'\r
+       ;;\r
+      cxx)\r
+       # Compaq C++\r
+       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'\r
+       _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'\r
+\r
+       runpath_var=LD_RUN_PATH\r
+       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'\r
+       _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:\r
+\r
+       # Commands to make compiler produce verbose output that lists\r
+       # what "hidden" libraries, object files and flags are used when\r
+       # linking a shared library.\r
+       #\r
+       # There doesn't appear to be a way to prevent this compiler from\r
+       # explicitly linking system object files so we need to strip them\r
+       # from the output so that they don't get included in the library\r
+       # dependencies.\r
+       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'\r
+       ;;\r
+    esac\r
+    ;;\r
+  lynxos*)\r
+    # FIXME: insert proper C++ library support\r
+    _LT_AC_TAGVAR(ld_shlibs, $1)=no\r
+    ;;\r
+  m88k*)\r
+    # FIXME: insert proper C++ library support\r
+    _LT_AC_TAGVAR(ld_shlibs, $1)=no\r
+    ;;\r
+  mvs*)\r
+    case $cc_basename in\r
+      cxx)\r
+       # FIXME: insert proper C++ library support\r
+       _LT_AC_TAGVAR(ld_shlibs, $1)=no\r
+       ;;\r
+      *)\r
+       # FIXME: insert proper C++ library support\r
+       _LT_AC_TAGVAR(ld_shlibs, $1)=no\r
+       ;;\r
+    esac\r
+    ;;\r
+  netbsd*)\r
+    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then\r
+      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'\r
+      wlarc=\r
+      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'\r
+      _LT_AC_TAGVAR(hardcode_direct, $1)=yes\r
+      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no\r
+    fi\r
+    # Workaround some broken pre-1.5 toolchains\r
+    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'\r
+    ;;\r
+  osf3*)\r
+    case $cc_basename in\r
+      KCC)\r
+       # Kuck and Associates, Inc. (KAI) C++ Compiler\r
+\r
+       # KCC will only create a shared library if the output file\r
+       # ends with ".so" (or ".sl" for HP-UX), so rename the library\r
+       # to its proper name (with version) after linking.\r
+       _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'\r
+\r
+       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'\r
+       _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:\r
+\r
+       # Archives containing C++ object files must be created using\r
+       # "CC -Bstatic", where "CC" is the KAI C++ compiler.\r
+       _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'\r
+\r
+       ;;\r
+      RCC)\r
+       # Rational C++ 2.4.1\r
+       # FIXME: insert proper C++ library support\r
+       _LT_AC_TAGVAR(ld_shlibs, $1)=no\r
+       ;;\r
+      cxx)\r
+       _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'\r
+       _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'\r
+\r
+       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'\r
+       _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:\r
+\r
+       # Commands to make compiler produce verbose output that lists\r
+       # what "hidden" libraries, object files and flags are used when\r
+       # linking a shared library.\r
+       #\r
+       # There doesn't appear to be a way to prevent this compiler from\r
+       # explicitly linking system object files so we need to strip them\r
+       # from the output so that they don't get included in the library\r
+       # dependencies.\r
+       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'\r
+       ;;\r
+      *)\r
+       if test "$GXX" = yes && test "$with_gnu_ld" = no; then\r
+         _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'\r
+         _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'\r
+\r
+         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'\r
+         _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:\r
+\r
+         # Commands to make compiler produce verbose output that lists\r
+         # what "hidden" libraries, object files and flags are used when\r
+         # linking a shared library.\r
+         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'\r
+\r
+       else\r
+         # FIXME: insert proper C++ library support\r
+         _LT_AC_TAGVAR(ld_shlibs, $1)=no\r
+       fi\r
+       ;;\r
+    esac\r
+    ;;\r
+  osf4* | osf5*)\r
+    case $cc_basename in\r
+      KCC)\r
+       # Kuck and Associates, Inc. (KAI) C++ Compiler\r
+\r
+       # KCC will only create a shared library if the output file\r
+       # ends with ".so" (or ".sl" for HP-UX), so rename the library\r
+       # to its proper name (with version) after linking.\r
+       _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'\r
+\r
+       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'\r
+       _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:\r
+\r
+       # Archives containing C++ object files must be created using\r
+       # the KAI C++ compiler.\r
+       _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'\r
+       ;;\r
+      RCC)\r
+       # Rational C++ 2.4.1\r
+       # FIXME: insert proper C++ library support\r
+       _LT_AC_TAGVAR(ld_shlibs, $1)=no\r
+       ;;\r
+      cxx)\r
+       _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'\r
+       _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'\r
+       _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~\r
+         echo "-hidden">> $lib.exp~\r
+         $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~\r
+         $rm $lib.exp'\r
+\r
+       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'\r
+       _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:\r
+\r
+       # Commands to make compiler produce verbose output that lists\r
+       # what "hidden" libraries, object files and flags are used when\r
+       # linking a shared library.\r
+       #\r
+       # There doesn't appear to be a way to prevent this compiler from\r
+       # explicitly linking system object files so we need to strip them\r
+       # from the output so that they don't get included in the library\r
+       # dependencies.\r
+       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'\r
+       ;;\r
+      *)\r
+       if test "$GXX" = yes && test "$with_gnu_ld" = no; then\r
+         _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'\r
+        _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'\r
+\r
+         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'\r
+         _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:\r
+\r
+         # Commands to make compiler produce verbose output that lists\r
+         # what "hidden" libraries, object files and flags are used when\r
+         # linking a shared library.\r
+         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'\r
+\r
+       else\r
+         # FIXME: insert proper C++ library support\r
+         _LT_AC_TAGVAR(ld_shlibs, $1)=no\r
+       fi\r
+       ;;\r
+    esac\r
+    ;;\r
+  psos*)\r
+    # FIXME: insert proper C++ library support\r
+    _LT_AC_TAGVAR(ld_shlibs, $1)=no\r
+    ;;\r
+  sco*)\r
+    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no\r
+    case $cc_basename in\r
+      CC)\r
+       # FIXME: insert proper C++ library support\r
+       _LT_AC_TAGVAR(ld_shlibs, $1)=no\r
+       ;;\r
+      *)\r
+       # FIXME: insert proper C++ library support\r
+       _LT_AC_TAGVAR(ld_shlibs, $1)=no\r
+       ;;\r
+    esac\r
+    ;;\r
+  sunos4*)\r
+    case $cc_basename in\r
+      CC)\r
+       # Sun C++ 4.x\r
+       # FIXME: insert proper C++ library support\r
+       _LT_AC_TAGVAR(ld_shlibs, $1)=no\r
+       ;;\r
+      lcc)\r
+       # Lucid\r
+       # FIXME: insert proper C++ library support\r
+       _LT_AC_TAGVAR(ld_shlibs, $1)=no\r
+       ;;\r
+      *)\r
+       # FIXME: insert proper C++ library support\r
+       _LT_AC_TAGVAR(ld_shlibs, $1)=no\r
+       ;;\r
+    esac\r
+    ;;\r
+  solaris*)\r
+    case $cc_basename in\r
+      CC)\r
+       # Sun C++ 4.2, 5.x and Centerline C++\r
+       _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'\r
+       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'\r
+       _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~\r
+       $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'\r
+\r
+       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'\r
+       _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no\r
+       case $host_os in\r
+         solaris2.[0-5] | solaris2.[0-5].*) ;;\r
+         *)\r
+           # The C++ compiler is used as linker so we must use $wl\r
+           # flag to pass the commands to the underlying system\r
+           # linker.\r
+           # Supported since Solaris 2.6 (maybe 2.5.1?)\r
+           _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'\r
+           ;;\r
+       esac\r
+       _LT_AC_TAGVAR(link_all_deplibs, $1)=yes\r
+\r
+       # Commands to make compiler produce verbose output that lists\r
+       # what "hidden" libraries, object files and flags are used when\r
+       # linking a shared library.\r
+       #\r
+       # There doesn't appear to be a way to prevent this compiler from\r
+       # explicitly linking system object files so we need to strip them\r
+       # from the output so that they don't get included in the library\r
+       # dependencies.\r
+       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'\r
+\r
+       # Archives containing C++ object files must be created using\r
+       # "CC -xar", where "CC" is the Sun C++ compiler.  This is\r
+       # necessary to make sure instantiated templates are included\r
+       # in the archive.\r
+       _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'\r
+       ;;\r
+      gcx)\r
+       # Green Hills C++ Compiler\r
+       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'\r
+\r
+       # The C++ compiler must be used to create the archive.\r
+       _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'\r
+       ;;\r
+      *)\r
+       # GNU C++ compiler with Solaris linker\r
+       if test "$GXX" = yes && test "$with_gnu_ld" = no; then\r
+         _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'\r
+         if $CC --version | grep -v '^2\.7' > /dev/null; then\r
+           _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'\r
+           _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~\r
+               $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'\r
+\r
+           # Commands to make compiler produce verbose output that lists\r
+           # what "hidden" libraries, object files and flags are used when\r
+           # linking a shared library.\r
+           output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""\r
+         else\r
+           # g++ 2.7 appears to require `-G' NOT `-shared' on this\r
+           # platform.\r
+           _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'\r
+           _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~\r
+               $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'\r
+\r
+           # Commands to make compiler produce verbose output that lists\r
+           # what "hidden" libraries, object files and flags are used when\r
+           # linking a shared library.\r
+           output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""\r
+         fi\r
+\r
+         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'\r
+       fi\r
+       ;;\r
+    esac\r
+    ;;\r
+  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)\r
+    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no\r
+    ;;\r
+  tandem*)\r
+    case $cc_basename in\r
+      NCC)\r
+       # NonStop-UX NCC 3.20\r
+       # FIXME: insert proper C++ library support\r
+       _LT_AC_TAGVAR(ld_shlibs, $1)=no\r
+       ;;\r
+      *)\r
+       # FIXME: insert proper C++ library support\r
+       _LT_AC_TAGVAR(ld_shlibs, $1)=no\r
+       ;;\r
+    esac\r
+    ;;\r
+  vxworks*)\r
+    # FIXME: insert proper C++ library support\r
+    _LT_AC_TAGVAR(ld_shlibs, $1)=no\r
+    ;;\r
+  *)\r
+    # FIXME: insert proper C++ library support\r
+    _LT_AC_TAGVAR(ld_shlibs, $1)=no\r
+    ;;\r
+esac\r
+AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])\r
+test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no\r
+\r
+_LT_AC_TAGVAR(GCC, $1)="$GXX"\r
+_LT_AC_TAGVAR(LD, $1)="$LD"\r
+\r
+## CAVEAT EMPTOR:\r
+## There is no encapsulation within the following macros, do not change\r
+## the running order or otherwise move them around unless you know exactly\r
+## what you are doing...\r
+AC_LIBTOOL_POSTDEP_PREDEP($1)\r
+AC_LIBTOOL_PROG_COMPILER_PIC($1)\r
+AC_LIBTOOL_PROG_CC_C_O($1)\r
+AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)\r
+AC_LIBTOOL_PROG_LD_SHLIBS($1)\r
+AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)\r
+AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)\r
+AC_LIBTOOL_SYS_LIB_STRIP\r
+AC_LIBTOOL_DLOPEN_SELF($1)\r
+\r
+AC_LIBTOOL_CONFIG($1)\r
+\r
+AC_LANG_POP\r
+CC=$lt_save_CC\r
+LDCXX=$LD\r
+LD=$lt_save_LD\r
+GCC=$lt_save_GCC\r
+with_gnu_ldcxx=$with_gnu_ld\r
+with_gnu_ld=$lt_save_with_gnu_ld\r
+lt_cv_path_LDCXX=$lt_cv_path_LD\r
+lt_cv_path_LD=$lt_save_path_LD\r
+lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld\r
+lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld\r
+])# AC_LIBTOOL_LANG_CXX_CONFIG\r
+\r
+# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])\r
+# ------------------------\r
+# Figure out "hidden" library dependencies from verbose\r
+# compiler output when linking a shared library.\r
+# Parse the compiler output and extract the necessary\r
+# objects, libraries and library flags.\r
+AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[\r
+dnl we can't use the lt_simple_compile_test_code here,\r
+dnl because it contains code intended for an executable,\r
+dnl not a library.  It's possible we should let each\r
+dnl tag define a new lt_????_link_test_code variable,\r
+dnl but it's only used here...\r
+ifelse([$1],[],[cat > conftest.$ac_ext <<EOF\r
+int a;\r
+void foo (void) { a = 0; }\r
+EOF\r
+],[$1],[CXX],[cat > conftest.$ac_ext <<EOF\r
+class Foo\r
+{\r
+public:\r
+  Foo (void) { a = 0; }\r
+private:\r
+  int a;\r
+};\r
+EOF\r
+],[$1],[F77],[cat > conftest.$ac_ext <<EOF\r
+      subroutine foo\r
+      implicit none\r
+      integer*4 a\r
+      a=0\r
+      return\r
+      end\r
+EOF\r
+],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF\r
+public class foo {\r
+  private int a;\r
+  public void bar (void) {\r
+    a = 0;\r
+  }\r
+};\r
+EOF\r
+])\r
+dnl Parse the compiler output and extract the necessary\r
+dnl objects, libraries and library flags.\r
+if AC_TRY_EVAL(ac_compile); then\r
+  # Parse the compiler output and extract the necessary\r
+  # objects, libraries and library flags.\r
+\r
+  # Sentinel used to keep track of whether or not we are before\r
+  # the conftest object file.\r
+  pre_test_object_deps_done=no\r
+\r
+  # The `*' in the case matches for architectures that use `case' in\r
+  # $output_verbose_cmd can trigger glob expansion during the loop\r
+  # eval without this substitution.\r
+  output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"\r
+\r
+  for p in `eval $output_verbose_link_cmd`; do\r
+    case $p in\r
+\r
+    -L* | -R* | -l*)\r
+       # Some compilers place space between "-{L,R}" and the path.\r
+       # Remove the space.\r
+       if test $p = "-L" \\r
+         || test $p = "-R"; then\r
+        prev=$p\r
+        continue\r
+       else\r
+        prev=\r
+       fi\r
+\r
+       if test "$pre_test_object_deps_done" = no; then\r
+        case $p in\r
+        -L* | -R*)\r
+          # Internal compiler library paths should come after those\r
+          # provided the user.  The postdeps already come after the\r
+          # user supplied libs so there is no need to process them.\r
+          if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then\r
+            _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"\r
+          else\r
+            _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"\r
+          fi\r
+          ;;\r
+        # The "-l" case would never come before the object being\r
+        # linked, so don't bother handling this case.\r
+        esac\r
+       else\r
+        if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then\r
+          _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"\r
+        else\r
+          _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"\r
+        fi\r
+       fi\r
+       ;;\r
+\r
+    *.$objext)\r
+       # This assumes that the test object file only shows up\r
+       # once in the compiler output.\r
+       if test "$p" = "conftest.$objext"; then\r
+        pre_test_object_deps_done=yes\r
+        continue\r
+       fi\r
+\r
+       if test "$pre_test_object_deps_done" = no; then\r
+        if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then\r
+          _LT_AC_TAGVAR(predep_objects, $1)="$p"\r
+        else\r
+          _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"\r
+        fi\r
+       else\r
+        if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then\r
+          _LT_AC_TAGVAR(postdep_objects, $1)="$p"\r
+        else\r
+          _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"\r
+        fi\r
+       fi\r
+       ;;\r
+\r
+    *) ;; # Ignore the rest.\r
+\r
+    esac\r
+  done\r
+\r
+  # Clean up.\r
+  rm -f a.out a.exe\r
+else\r
+  echo "libtool.m4: error: problem compiling $1 test program"\r
+fi\r
+\r
+$rm -f confest.$objext\r
+\r
+case " $_LT_AC_TAGVAR(postdeps, $1) " in\r
+*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;\r
+esac\r
+])# AC_LIBTOOL_POSTDEP_PREDEP\r
+\r
+# AC_LIBTOOL_LANG_F77_CONFIG\r
+# ------------------------\r
+# Ensure that the configuration vars for the C compiler are\r
+# suitably defined.  Those variables are subsequently used by\r
+# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.\r
+AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])\r
+AC_DEFUN([_LT_AC_LANG_F77_CONFIG],\r
+[AC_REQUIRE([AC_PROG_F77])\r
+AC_LANG_PUSH(Fortran 77)\r
+\r
+_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no\r
+_LT_AC_TAGVAR(allow_undefined_flag, $1)=\r
+_LT_AC_TAGVAR(always_export_symbols, $1)=no\r
+_LT_AC_TAGVAR(archive_expsym_cmds, $1)=\r
+_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=\r
+_LT_AC_TAGVAR(hardcode_direct, $1)=no\r
+_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=\r
+_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=\r
+_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=\r
+_LT_AC_TAGVAR(hardcode_minus_L, $1)=no\r
+_LT_AC_TAGVAR(hardcode_automatic, $1)=no\r
+_LT_AC_TAGVAR(module_cmds, $1)=\r
+_LT_AC_TAGVAR(module_expsym_cmds, $1)=\r
+_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown\r
+_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds\r
+_LT_AC_TAGVAR(no_undefined_flag, $1)=\r
+_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=\r
+_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no\r
+\r
+# Source file extension for f77 test sources.\r
+ac_ext=f\r
+\r
+# Object file extension for compiled f77 test sources.\r
+objext=o\r
+_LT_AC_TAGVAR(objext, $1)=$objext\r
+\r
+# Code to be used in simple compile tests\r
+lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"\r
+\r
+# Code to be used in simple link tests\r
+lt_simple_link_test_code="      program t\n      end\n"\r
+\r
+# ltmain only uses $CC for tagged configurations so make sure $CC is set.\r
+_LT_AC_SYS_COMPILER\r
+\r
+# Allow CC to be a program name with arguments.\r
+lt_save_CC="$CC"\r
+CC=${F77-"f77"}\r
+compiler=$CC\r
+_LT_AC_TAGVAR(compiler, $1)=$CC\r
+cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`\r
+\r
+AC_MSG_CHECKING([if libtool supports shared libraries])\r
+AC_MSG_RESULT([$can_build_shared])\r
+\r
+AC_MSG_CHECKING([whether to build shared libraries])\r
+test "$can_build_shared" = "no" && enable_shared=no\r
+\r
+# On AIX, shared libraries and static libraries use the same namespace, and\r
+# are all built from PIC.\r
+case "$host_os" in\r
+aix3*)\r
+  test "$enable_shared" = yes && enable_static=no\r
+  if test -n "$RANLIB"; then\r
+    archive_cmds="$archive_cmds~\$RANLIB \$lib"\r
+    postinstall_cmds='$RANLIB $lib'\r
+  fi\r
+  ;;\r
+aix4* | aix5*)\r
+  test "$enable_shared" = yes && enable_static=no\r
+  ;;\r
+esac\r
+AC_MSG_RESULT([$enable_shared])\r
+\r
+AC_MSG_CHECKING([whether to build static libraries])\r
+# Make sure either enable_shared or enable_static is yes.\r
+test "$enable_shared" = yes || enable_static=yes\r
+AC_MSG_RESULT([$enable_static])\r
+\r
+test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no\r
+\r
+_LT_AC_TAGVAR(GCC, $1)="$G77"\r
+_LT_AC_TAGVAR(LD, $1)="$LD"\r
+\r
+AC_LIBTOOL_PROG_COMPILER_PIC($1)\r
+AC_LIBTOOL_PROG_CC_C_O($1)\r
+AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)\r
+AC_LIBTOOL_PROG_LD_SHLIBS($1)\r
+AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)\r
+AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)\r
+AC_LIBTOOL_SYS_LIB_STRIP\r
+\r
+\r
+AC_LIBTOOL_CONFIG($1)\r
+\r
+AC_LANG_POP\r
+CC="$lt_save_CC"\r
+])# AC_LIBTOOL_LANG_F77_CONFIG\r
+\r
+\r
+# AC_LIBTOOL_LANG_GCJ_CONFIG\r
+# --------------------------\r
+# Ensure that the configuration vars for the C compiler are\r
+# suitably defined.  Those variables are subsequently used by\r
+# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.\r
+AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])\r
+AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],\r
+[AC_LANG_SAVE\r
+\r
+# Source file extension for Java test sources.\r
+ac_ext=java\r
+\r
+# Object file extension for compiled Java test sources.\r
+objext=o\r
+_LT_AC_TAGVAR(objext, $1)=$objext\r
+\r
+# Code to be used in simple compile tests\r
+lt_simple_compile_test_code="class foo {}\n"\r
+\r
+# Code to be used in simple link tests\r
+lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'\r
+\r
+# ltmain only uses $CC for tagged configurations so make sure $CC is set.\r
+_LT_AC_SYS_COMPILER\r
+\r
+# Allow CC to be a program name with arguments.\r
+lt_save_CC="$CC"\r
+CC=${GCJ-"gcj"}\r
+compiler=$CC\r
+_LT_AC_TAGVAR(compiler, $1)=$CC\r
+\r
+# GCJ did not exist at the time GCC didn't implicitly link libc in.\r
+_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no\r
+\r
+## CAVEAT EMPTOR:\r
+## There is no encapsulation within the following macros, do not change\r
+## the running order or otherwise move them around unless you know exactly\r
+## what you are doing...\r
+AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)\r
+AC_LIBTOOL_PROG_COMPILER_PIC($1)\r
+AC_LIBTOOL_PROG_CC_C_O($1)\r
+AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)\r
+AC_LIBTOOL_PROG_LD_SHLIBS($1)\r
+AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)\r
+AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)\r
+AC_LIBTOOL_SYS_LIB_STRIP\r
+AC_LIBTOOL_DLOPEN_SELF($1)\r
+\r
+AC_LIBTOOL_CONFIG($1)\r
+\r
+AC_LANG_RESTORE\r
+CC="$lt_save_CC"\r
+])# AC_LIBTOOL_LANG_GCJ_CONFIG\r
+\r
+\r
+# AC_LIBTOOL_LANG_RC_CONFIG\r
+# --------------------------\r
+# Ensure that the configuration vars for the Windows resource compiler are\r
+# suitably defined.  Those variables are subsequently used by\r
+# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.\r
+AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])\r
+AC_DEFUN([_LT_AC_LANG_RC_CONFIG],\r
+[AC_LANG_SAVE\r
+\r
+# Source file extension for RC test sources.\r
+ac_ext=rc\r
+\r
+# Object file extension for compiled RC test sources.\r
+objext=o\r
+_LT_AC_TAGVAR(objext, $1)=$objext\r
+\r
+# Code to be used in simple compile tests\r
+lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'\r
+\r
+# Code to be used in simple link tests\r
+lt_simple_link_test_code="$lt_simple_compile_test_code"\r
+\r
+# ltmain only uses $CC for tagged configurations so make sure $CC is set.\r
+_LT_AC_SYS_COMPILER\r
+\r
+# Allow CC to be a program name with arguments.\r
+lt_save_CC="$CC"\r
+CC=${RC-"windres"}\r
+compiler=$CC\r
+_LT_AC_TAGVAR(compiler, $1)=$CC\r
+_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes\r
+\r
+AC_LIBTOOL_CONFIG($1)\r
+\r
+AC_LANG_RESTORE\r
+CC="$lt_save_CC"\r
+])# AC_LIBTOOL_LANG_RC_CONFIG\r
+\r
+\r
+# AC_LIBTOOL_CONFIG([TAGNAME])\r
+# ----------------------------\r
+# If TAGNAME is not passed, then create an initial libtool script\r
+# with a default configuration from the untagged config vars.  Otherwise\r
+# add code to config.status for appending the configuration named by\r
+# TAGNAME from the matching tagged config vars.\r
+AC_DEFUN([AC_LIBTOOL_CONFIG],\r
+[# The else clause should only fire when bootstrapping the\r
+# libtool distribution, otherwise you forgot to ship ltmain.sh\r
+# with your package, and you will get complaints that there are\r
+# no rules to generate ltmain.sh.\r
+if test -f "$ltmain"; then\r
+  # See if we are running on zsh, and set the options which allow our commands through\r
+  # without removal of \ escapes.\r
+  if test -n "${ZSH_VERSION+set}" ; then\r
+    setopt NO_GLOB_SUBST\r
+  fi\r
+  # Now quote all the things that may contain metacharacters while being\r
+  # careful not to overquote the AC_SUBSTed values.  We take copies of the\r
+  # variables and quote the copies for generation of the libtool script.\r
+  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \\r
+    SED SHELL STRIP \\r
+    libname_spec library_names_spec soname_spec extract_expsyms_cmds \\r
+    old_striplib striplib file_magic_cmd finish_cmds finish_eval \\r
+    deplibs_check_method reload_flag reload_cmds need_locks \\r
+    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \\r
+    lt_cv_sys_global_symbol_to_c_name_address \\r
+    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \\r
+    old_postinstall_cmds old_postuninstall_cmds \\r
+    _LT_AC_TAGVAR(compiler, $1) \\r
+    _LT_AC_TAGVAR(CC, $1) \\r
+    _LT_AC_TAGVAR(LD, $1) \\r
+    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \\r
+    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \\r
+    _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \\r
+    _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \\r
+    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \\r
+    _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \\r
+    _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \\r
+    _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \\r
+    _LT_AC_TAGVAR(old_archive_cmds, $1) \\r
+    _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \\r
+    _LT_AC_TAGVAR(predep_objects, $1) \\r
+    _LT_AC_TAGVAR(postdep_objects, $1) \\r
+    _LT_AC_TAGVAR(predeps, $1) \\r
+    _LT_AC_TAGVAR(postdeps, $1) \\r
+    _LT_AC_TAGVAR(compiler_lib_search_path, $1) \\r
+    _LT_AC_TAGVAR(archive_cmds, $1) \\r
+    _LT_AC_TAGVAR(archive_expsym_cmds, $1) \\r
+    _LT_AC_TAGVAR(postinstall_cmds, $1) \\r
+    _LT_AC_TAGVAR(postuninstall_cmds, $1) \\r
+    _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \\r
+    _LT_AC_TAGVAR(allow_undefined_flag, $1) \\r
+    _LT_AC_TAGVAR(no_undefined_flag, $1) \\r
+    _LT_AC_TAGVAR(export_symbols_cmds, $1) \\r
+    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \\r
+    _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \\r
+    _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \\r
+    _LT_AC_TAGVAR(hardcode_automatic, $1) \\r
+    _LT_AC_TAGVAR(module_cmds, $1) \\r
+    _LT_AC_TAGVAR(module_expsym_cmds, $1) \\r
+    _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \\r
+    _LT_AC_TAGVAR(exclude_expsyms, $1) \\r
+    _LT_AC_TAGVAR(include_expsyms, $1); do\r
+\r
+    case $var in\r
+    _LT_AC_TAGVAR(old_archive_cmds, $1) | \\r
+    _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \\r
+    _LT_AC_TAGVAR(archive_cmds, $1) | \\r
+    _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \\r
+    _LT_AC_TAGVAR(module_cmds, $1) | \\r
+    _LT_AC_TAGVAR(module_expsym_cmds, $1) | \\r
+    _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \\r
+    _LT_AC_TAGVAR(export_symbols_cmds, $1) | \\r
+    extract_expsyms_cmds | reload_cmds | finish_cmds | \\r
+    postinstall_cmds | postuninstall_cmds | \\r
+    old_postinstall_cmds | old_postuninstall_cmds | \\r
+    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)\r
+      # Double-quote double-evaled strings.\r
+      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""\r
+      ;;\r
+    *)\r
+      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""\r
+      ;;\r
+    esac\r
+  done\r
+\r
+  case $lt_echo in\r
+  *'\[$]0 --fallback-echo"')\r
+    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`\r
+    ;;\r
+  esac\r
+\r
+ifelse([$1], [],\r
+  [cfgfile="${ofile}T"\r
+  trap "$rm \"$cfgfile\"; exit 1" 1 2 15\r
+  $rm -f "$cfgfile"\r
+  AC_MSG_NOTICE([creating $ofile])],\r
+  [cfgfile="$ofile"])\r
+\r
+  cat <<__EOF__ >> "$cfgfile"\r
+ifelse([$1], [],\r
+[#! $SHELL\r
+\r
+# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.\r
+# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)\r
+# NOTE: Changes made to this file will be lost: look at ltmain.sh.\r
+#\r
+# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001\r
+# Free Software Foundation, Inc.\r
+#\r
+# This file is part of GNU Libtool:\r
+# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996\r
+#\r
+# This program is free software; you can redistribute it and/or modify\r
+# it under the terms of the GNU General Public License as published by\r
+# the Free Software Foundation; either version 2 of the License, or\r
+# (at your option) any later version.\r
+#\r
+# This program is distributed in the hope that it will be useful, but\r
+# WITHOUT ANY WARRANTY; without even the implied warranty of\r
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\r
+# General Public License for more details.\r
+#\r
+# You should have received a copy of the GNU General Public License\r
+# along with this program; if not, write to the Free Software\r
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\r
+#\r
+# As a special exception to the GNU General Public License, if you\r
+# distribute this file as part of a program that contains a\r
+# configuration script generated by Autoconf, you may include it under\r
+# the same distribution terms that you use for the rest of that program.\r
+\r
+# A sed program that does not truncate output.\r
+SED=$lt_SED\r
+\r
+# Sed that helps us avoid accidentally triggering echo(1) options like -n.\r
+Xsed="$SED -e s/^X//"\r
+\r
+# The HP-UX ksh and POSIX shell print the target directory to stdout\r
+# if CDPATH is set.\r
+if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi\r
+\r
+# The names of the tagged configurations supported by this script.\r
+available_tags=\r
+\r
+# ### BEGIN LIBTOOL CONFIG],\r
+[# ### BEGIN LIBTOOL TAG CONFIG: $tagname])\r
+\r
+# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:\r
+\r
+# Shell to use when invoking shell scripts.\r
+SHELL=$lt_SHELL\r
+\r
+# Whether or not to build shared libraries.\r
+build_libtool_libs=$enable_shared\r
+\r
+# Whether or not to build static libraries.\r
+build_old_libs=$enable_static\r
+\r
+# Whether or not to add -lc for building shared libraries.\r
+build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)\r
+\r
+# Whether or not to disallow shared libs when runtime libs are static\r
+allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)\r
+\r
+# Whether or not to optimize for fast installation.\r
+fast_install=$enable_fast_install\r
+\r
+# The host system.\r
+host_alias=$host_alias\r
+host=$host\r
+\r
+# An echo program that does not interpret backslashes.\r
+echo=$lt_echo\r
+\r
+# The archiver.\r
+AR=$lt_AR\r
+AR_FLAGS=$lt_AR_FLAGS\r
+\r
+# A C compiler.\r
+LTCC=$lt_LTCC\r
+\r
+# A language-specific compiler.\r
+CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)\r
+\r
+# Is the compiler the GNU C compiler?\r
+with_gcc=$_LT_AC_TAGVAR(GCC, $1)\r
+\r
+# An ERE matcher.\r
+EGREP=$lt_EGREP\r
+\r
+# The linker used to build libraries.\r
+LD=$lt_[]_LT_AC_TAGVAR(LD, $1)\r
+\r
+# Whether we need hard or soft links.\r
+LN_S=$lt_LN_S\r
+\r
+# A BSD-compatible nm program.\r
+NM=$lt_NM\r
+\r
+# A symbol stripping program\r
+STRIP=$lt_STRIP\r
+\r
+# Used to examine libraries when file_magic_cmd begins "file"\r
+MAGIC_CMD=$MAGIC_CMD\r
+\r
+# Used on cygwin: DLL creation program.\r
+DLLTOOL="$DLLTOOL"\r
+\r
+# Used on cygwin: object dumper.\r
+OBJDUMP="$OBJDUMP"\r
+\r
+# Used on cygwin: assembler.\r
+AS="$AS"\r
+\r
+# The name of the directory that contains temporary libtool files.\r
+objdir=$objdir\r
+\r
+# How to create reloadable object files.\r
+reload_flag=$lt_reload_flag\r
+reload_cmds=$lt_reload_cmds\r
+\r
+# How to pass a linker flag through the compiler.\r
+wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)\r
+\r
+# Object file suffix (normally "o").\r
+objext="$ac_objext"\r
+\r
+# Old archive suffix (normally "a").\r
+libext="$libext"\r
+\r
+# Shared library suffix (normally ".so").\r
+shrext_cmds='$shrext_cmds'\r
+\r
+# Executable file suffix (normally "").\r
+exeext="$exeext"\r
+\r
+# Additional compiler flags for building library objects.\r
+pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)\r
+pic_mode=$pic_mode\r
+\r
+# What is the maximum length of a command?\r
+max_cmd_len=$lt_cv_sys_max_cmd_len\r
+\r
+# Does compiler simultaneously support -c and -o options?\r
+compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)\r
+\r
+# Must we lock files when doing compilation ?\r
+need_locks=$lt_need_locks\r
+\r
+# Do we need the lib prefix for modules?\r
+need_lib_prefix=$need_lib_prefix\r
+\r
+# Do we need a version for libraries?\r
+need_version=$need_version\r
+\r
+# Whether dlopen is supported.\r
+dlopen_support=$enable_dlopen\r
+\r
+# Whether dlopen of programs is supported.\r
+dlopen_self=$enable_dlopen_self\r
+\r
+# Whether dlopen of statically linked programs is supported.\r
+dlopen_self_static=$enable_dlopen_self_static\r
+\r
+# Compiler flag to prevent dynamic linking.\r
+link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\r
+\r
+# Compiler flag to turn off builtin functions.\r
+no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)\r
+\r
+# Compiler flag to allow reflexive dlopens.\r
+export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)\r
+\r
+# Compiler flag to generate shared objects directly from archives.\r
+whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)\r
+\r
+# Compiler flag to generate thread-safe objects.\r
+thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)\r
+\r
+# Library versioning type.\r
+version_type=$version_type\r
+\r
+# Format of library name prefix.\r
+libname_spec=$lt_libname_spec\r
+\r
+# List of archive names.  First name is the real one, the rest are links.\r
+# The last name is the one that the linker finds with -lNAME.\r
+library_names_spec=$lt_library_names_spec\r
+\r
+# The coded name of the library, if different from the real name.\r
+soname_spec=$lt_soname_spec\r
+\r
+# Commands used to build and install an old-style archive.\r
+RANLIB=$lt_RANLIB\r
+old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)\r
+old_postinstall_cmds=$lt_old_postinstall_cmds\r
+old_postuninstall_cmds=$lt_old_postuninstall_cmds\r
+\r
+# Create an old-style archive from a shared archive.\r
+old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)\r
+\r
+# Create a temporary old-style archive to link instead of a shared archive.\r
+old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)\r
+\r
+# Commands used to build and install a shared archive.\r
+archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)\r
+archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)\r
+postinstall_cmds=$lt_postinstall_cmds\r
+postuninstall_cmds=$lt_postuninstall_cmds\r
+\r
+# Commands used to build a loadable module (assumed same as above if empty)\r
+module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)\r
+module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)\r
+\r
+# Commands to strip libraries.\r
+old_striplib=$lt_old_striplib\r
+striplib=$lt_striplib\r
+\r
+# Dependencies to place before the objects being linked to create a\r
+# shared library.\r
+predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)\r
+\r
+# Dependencies to place after the objects being linked to create a\r
+# shared library.\r
+postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)\r
+\r
+# Dependencies to place before the objects being linked to create a\r
+# shared library.\r
+predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)\r
+\r
+# Dependencies to place after the objects being linked to create a\r
+# shared library.\r
+postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)\r
+\r
+# The library search path used internally by the compiler when linking\r
+# a shared library.\r
+compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)\r
+\r
+# Method to check whether dependent libraries are shared objects.\r
+deplibs_check_method=$lt_deplibs_check_method\r
+\r
+# Command to use when deplibs_check_method == file_magic.\r
+file_magic_cmd=$lt_file_magic_cmd\r
+\r
+# Flag that allows shared libraries with undefined symbols to be built.\r
+allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)\r
+\r
+# Flag that forces no undefined symbols.\r
+no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)\r
+\r
+# Commands used to finish a libtool library installation in a directory.\r
+finish_cmds=$lt_finish_cmds\r
+\r
+# Same as above, but a single script fragment to be evaled but not shown.\r
+finish_eval=$lt_finish_eval\r
+\r
+# Take the output of nm and produce a listing of raw symbols and C names.\r
+global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe\r
+\r
+# Transform the output of nm in a proper C declaration\r
+global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl\r
+\r
+# Transform the output of nm in a C name address pair\r
+global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address\r
+\r
+# This is the shared library runtime path variable.\r
+runpath_var=$runpath_var\r
+\r
+# This is the shared library path variable.\r
+shlibpath_var=$shlibpath_var\r
+\r
+# Is shlibpath searched before the hard-coded library search path?\r
+shlibpath_overrides_runpath=$shlibpath_overrides_runpath\r
+\r
+# How to hardcode a shared library path into an executable.\r
+hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)\r
+\r
+# Whether we should hardcode library paths into libraries.\r
+hardcode_into_libs=$hardcode_into_libs\r
+\r
+# Flag to hardcode \$libdir into a binary during linking.\r
+# This must work even if \$libdir does not exist.\r
+hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)\r
+\r
+# If ld is used when linking, flag to hardcode \$libdir into\r
+# a binary during linking. This must work even if \$libdir does\r
+# not exist.\r
+hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)\r
+\r
+# Whether we need a single -rpath flag with a separated argument.\r
+hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)\r
+\r
+# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the\r
+# resulting binary.\r
+hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)\r
+\r
+# Set to yes if using the -LDIR flag during linking hardcodes DIR into the\r
+# resulting binary.\r
+hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)\r
+\r
+# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into\r
+# the resulting binary.\r
+hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)\r
+\r
+# Set to yes if building a shared library automatically hardcodes DIR into the library\r
+# and all subsequent libraries and executables linked against it.\r
+hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)\r
+\r
+# Variables whose values should be saved in libtool wrapper scripts and\r
+# restored at relink time.\r
+variables_saved_for_relink="$variables_saved_for_relink"\r
+\r
+# Whether libtool must link a program against all its dependency libraries.\r
+link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)\r
+\r
+# Compile-time system search path for libraries\r
+sys_lib_search_path_spec=$lt_sys_lib_search_path_spec\r
+\r
+# Run-time system search path for libraries\r
+sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec\r
+\r
+# Fix the shell variable \$srcfile for the compiler.\r
+fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"\r
+\r
+# Set to yes if exported symbols are required.\r
+always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)\r
+\r
+# The commands to list exported symbols.\r
+export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)\r
+\r
+# The commands to extract the exported symbol list from a shared archive.\r
+extract_expsyms_cmds=$lt_extract_expsyms_cmds\r
+\r
+# Symbols that should not be listed in the preloaded symbols.\r
+exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)\r
+\r
+# Symbols that must always be exported.\r
+include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)\r
+\r
+ifelse([$1],[],\r
+[# ### END LIBTOOL CONFIG],\r
+[# ### END LIBTOOL TAG CONFIG: $tagname])\r
+\r
+__EOF__\r
+\r
+ifelse([$1],[], [\r
+  case $host_os in\r
+  aix3*)\r
+    cat <<\EOF >> "$cfgfile"\r
+\r
+# AIX sometimes has problems with the GCC collect2 program.  For some\r
+# reason, if we set the COLLECT_NAMES environment variable, the problems\r
+# vanish in a puff of smoke.\r
+if test "X${COLLECT_NAMES+set}" != Xset; then\r
+  COLLECT_NAMES=\r
+  export COLLECT_NAMES\r
+fi\r
+EOF\r
+    ;;\r
+  esac\r
+\r
+  # We use sed instead of cat because bash on DJGPP gets confused if\r
+  # if finds mixed CR/LF and LF-only lines.  Since sed operates in\r
+  # text mode, it properly converts lines to CR/LF.  This bash problem\r
+  # is reportedly fixed, but why not run on old versions too?\r
+  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)\r
+\r
+  mv -f "$cfgfile" "$ofile" || \\r
+    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")\r
+  chmod +x "$ofile"\r
+])\r
+else\r
+  # If there is no Makefile yet, we rely on a make rule to execute\r
+  # `config.status --recheck' to rerun these tests and create the\r
+  # libtool script then.\r
+  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`\r
+  if test -f "$ltmain_in"; then\r
+    test -f Makefile && make "$ltmain"\r
+  fi\r
+fi\r
+])# AC_LIBTOOL_CONFIG\r
+\r
+\r
+# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])\r
+# -------------------------------------------\r
+AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],\r
+[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl\r
+\r
+_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=\r
+\r
+if test "$GCC" = yes; then\r
+  _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'\r
+\r
+  AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],\r
+    lt_cv_prog_compiler_rtti_exceptions,\r
+    [-fno-rtti -fno-exceptions], [],\r
+    [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])\r
+fi\r
+])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI\r
+\r
+\r
+# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE\r
+# ---------------------------------\r
+AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],\r
+[AC_REQUIRE([AC_CANONICAL_HOST])\r
+AC_REQUIRE([AC_PROG_NM])\r
+AC_REQUIRE([AC_OBJEXT])\r
+# Check for command to grab the raw symbol name followed by C symbol from nm.\r
+AC_MSG_CHECKING([command to parse $NM output from $compiler object])\r
+AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],\r
+[\r
+# These are sane defaults that work on at least a few old systems.\r
+# [They come from Ultrix.  What could be older than Ultrix?!! ;)]\r
+\r
+# Character class describing NM global symbol codes.\r
+symcode='[[BCDEGRST]]'\r
+\r
+# Regexp to match symbols that can be accessed directly from C.\r
+sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'\r
+\r
+# Transform the above into a raw symbol and a C symbol.\r
+symxfrm='\1 \2\3 \3'\r
+\r
+# Transform an extracted symbol line into a proper C declaration\r
+lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"\r
+\r
+# Transform an extracted symbol line into symbol name and symbol address\r
+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'"\r
+\r
+# Define system-specific variables.\r
+case $host_os in\r
+aix*)\r
+  symcode='[[BCDT]]'\r
+  ;;\r
+cygwin* | mingw* | pw32*)\r
+  symcode='[[ABCDGISTW]]'\r
+  ;;\r
+hpux*) # Its linker distinguishes data from code symbols\r
+  if test "$host_cpu" = ia64; then\r
+    symcode='[[ABCDEGRST]]'\r
+  fi\r
+  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"\r
+  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'"\r
+  ;;\r
+irix* | nonstopux*)\r
+  symcode='[[BCDEGRST]]'\r
+  ;;\r
+osf*)\r
+  symcode='[[BCDEGQRST]]'\r
+  ;;\r
+solaris* | sysv5*)\r
+  symcode='[[BDRT]]'\r
+  ;;\r
+sysv4)\r
+  symcode='[[DFNSTU]]'\r
+  ;;\r
+esac\r
+\r
+# Handle CRLF in mingw tool chain\r
+opt_cr=\r
+case $build_os in\r
+mingw*)\r
+  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp\r
+  ;;\r
+esac\r
+\r
+# If we're using GNU nm, then use its standard symbol codes.\r
+case `$NM -V 2>&1` in\r
+*GNU* | *'with BFD'*)\r
+  symcode='[[ABCDGIRSTW]]' ;;\r
+esac\r
+\r
+# Try without a prefix undercore, then with it.\r
+for ac_symprfx in "" "_"; do\r
+\r
+  # Write the raw and C identifiers.\r
+  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[     ]]\($symcode$symcode*\)[[       ]][[    ]]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"\r
+\r
+  # Check to see that the pipe works correctly.\r
+  pipe_works=no\r
+\r
+  rm -f conftest*\r
+  cat > conftest.$ac_ext <<EOF\r
+#ifdef __cplusplus\r
+extern "C" {\r
+#endif\r
+char nm_test_var;\r
+void nm_test_func(){}\r
+#ifdef __cplusplus\r
+}\r
+#endif\r
+int main(){nm_test_var='a';nm_test_func();return(0);}\r
+EOF\r
+\r
+  if AC_TRY_EVAL(ac_compile); then\r
+    # Now try to grab the symbols.\r
+    nlist=conftest.nm\r
+    if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then\r
+      # Try sorting and uniquifying the output.\r
+      if sort "$nlist" | uniq > "$nlist"T; then\r
+       mv -f "$nlist"T "$nlist"\r
+      else\r
+       rm -f "$nlist"T\r
+      fi\r
+\r
+      # Make sure that we snagged all the symbols we need.\r
+      if grep ' nm_test_var$' "$nlist" >/dev/null; then\r
+       if grep ' nm_test_func$' "$nlist" >/dev/null; then\r
+         cat <<EOF > conftest.$ac_ext\r
+#ifdef __cplusplus\r
+extern "C" {\r
+#endif\r
+\r
+EOF\r
+         # Now generate the symbol file.\r
+         eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'\r
+\r
+         cat <<EOF >> conftest.$ac_ext\r
+#if defined (__STDC__) && __STDC__\r
+# define lt_ptr_t void *\r
+#else\r
+# define lt_ptr_t char *\r
+# define const\r
+#endif\r
+\r
+/* The mapping between symbol names and symbols. */\r
+const struct {\r
+  const char *name;\r
+  lt_ptr_t address;\r
+}\r
+lt_preloaded_symbols[[]] =\r
+{\r
+EOF\r
+         $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext\r
+         cat <<\EOF >> conftest.$ac_ext\r
+  {0, (lt_ptr_t) 0}\r
+};\r
+\r
+#ifdef __cplusplus\r
+}\r
+#endif\r
+EOF\r
+         # Now try linking the two files.\r
+         mv conftest.$ac_objext conftstm.$ac_objext\r
+         lt_save_LIBS="$LIBS"\r
+         lt_save_CFLAGS="$CFLAGS"\r
+         LIBS="conftstm.$ac_objext"\r
+         CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"\r
+         if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then\r
+           pipe_works=yes\r
+         fi\r
+         LIBS="$lt_save_LIBS"\r
+         CFLAGS="$lt_save_CFLAGS"\r
+       else\r
+         echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD\r
+       fi\r
+      else\r
+       echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD\r
+      fi\r
+    else\r
+      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD\r
+    fi\r
+  else\r
+    echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD\r
+    cat conftest.$ac_ext >&5\r
+  fi\r
+  rm -f conftest* conftst*\r
+\r
+  # Do not use the global_symbol_pipe unless it works.\r
+  if test "$pipe_works" = yes; then\r
+    break\r
+  else\r
+    lt_cv_sys_global_symbol_pipe=\r
+  fi\r
+done\r
+])\r
+if test -z "$lt_cv_sys_global_symbol_pipe"; then\r
+  lt_cv_sys_global_symbol_to_cdecl=\r
+fi\r
+if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then\r
+  AC_MSG_RESULT(failed)\r
+else\r
+  AC_MSG_RESULT(ok)\r
+fi\r
+]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE\r
+\r
+\r
+# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])\r
+# ---------------------------------------\r
+AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],\r
+[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=\r
+_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=\r
+_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=\r
+\r
+AC_MSG_CHECKING([for $compiler option to produce PIC])\r
+ ifelse([$1],[CXX],[\r
+  # C++ specific cases for pic, static, wl, etc.\r
+  if test "$GXX" = yes; then\r
+    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'\r
+    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'\r
+\r
+    case $host_os in\r
+    aix*)\r
+      # All AIX code is PIC.\r
+      if test "$host_cpu" = ia64; then\r
+       # AIX 5 now supports IA64 processor\r
+       _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'\r
+      fi\r
+      ;;\r
+    amigaos*)\r
+      # FIXME: we need at least 68020 code to build shared libraries, but\r
+      # adding the `-m68020' flag to GCC prevents building anything better,\r
+      # like `-m68040'.\r
+      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'\r
+      ;;\r
+    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)\r
+      # PIC is the default for these OSes.\r
+      ;;\r
+    mingw* | os2* | pw32*)\r
+      # This hack is so that the source file can tell whether it is being\r
+      # built for inclusion in a dll (and should export symbols for example).\r
+      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'\r
+      ;;\r
+    darwin* | rhapsody*)\r
+      # PIC is the default on this platform\r
+      # Common symbols not allowed in MH_DYLIB files\r
+      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'\r
+      ;;\r
+    *djgpp*)\r
+      # DJGPP does not support shared libraries at all\r
+      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=\r
+      ;;\r
+    sysv4*MP*)\r
+      if test -d /usr/nec; then\r
+       _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic\r
+      fi\r
+      ;;\r
+    hpux*)\r
+      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but\r
+      # not for PA HP-UX.\r
+      case "$host_cpu" in\r
+      hppa*64*|ia64*)\r
+       ;;\r
+      *)\r
+       _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'\r
+       ;;\r
+      esac\r
+      ;;\r
+    *)\r
+      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'\r
+      ;;\r
+    esac\r
+  else\r
+    case $host_os in\r
+      aix4* | aix5*)\r
+       # All AIX code is PIC.\r
+       if test "$host_cpu" = ia64; then\r
+         # AIX 5 now supports IA64 processor\r
+         _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'\r
+       else\r
+         _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'\r
+       fi\r
+       ;;\r
+      chorus*)\r
+       case $cc_basename in\r
+       cxch68)\r
+         # Green Hills C++ Compiler\r
+         # _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"\r
+         ;;\r
+       esac\r
+       ;;\r
+      dgux*)\r
+       case $cc_basename in\r
+         ec++)\r
+           _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'\r
+           ;;\r
+         ghcx)\r
+           # Green Hills C++ Compiler\r
+           _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'\r
+           ;;\r
+         *)\r
+           ;;\r
+       esac\r
+       ;;\r
+      freebsd* | kfreebsd*-gnu)\r
+       # FreeBSD uses GNU C++\r
+       ;;\r
+      hpux9* | hpux10* | hpux11*)\r
+       case $cc_basename in\r
+         CC)\r
+           _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'\r
+           _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"\r
+           if test "$host_cpu" != ia64; then\r
+             _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'\r
+           fi\r
+           ;;\r
+         aCC)\r
+           _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'\r
+           _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"\r
+           case "$host_cpu" in\r
+           hppa*64*|ia64*)\r
+             # +Z the default\r
+             ;;\r
+           *)\r
+             _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'\r
+             ;;\r
+           esac\r
+           ;;\r
+         *)\r
+           ;;\r
+       esac\r
+       ;;\r
+      irix5* | irix6* | nonstopux*)\r
+       case $cc_basename in\r
+         CC)\r
+           _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'\r
+           _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'\r
+           # CC pic flag -KPIC is the default.\r
+           ;;\r
+         *)\r
+           ;;\r
+       esac\r
+       ;;\r
+      linux*)\r
+       case $cc_basename in\r
+         KCC)\r
+           # KAI C++ Compiler\r
+           _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'\r
+           _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'\r
+           ;;\r
+         icpc)\r
+           # Intel C++\r
+           _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'\r
+           _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'\r
+           _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'\r
+           ;;\r
+         cxx)\r
+           # Compaq C++\r
+           # Make sure the PIC flag is empty.  It appears that all Alpha\r
+           # Linux and Compaq Tru64 Unix objects are PIC.\r
+           _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=\r
+           _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'\r
+           ;;\r
+         *)\r
+           ;;\r
+       esac\r
+       ;;\r
+      lynxos*)\r
+       ;;\r
+      m88k*)\r
+       ;;\r
+      mvs*)\r
+       case $cc_basename in\r
+         cxx)\r
+           _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'\r
+           ;;\r
+         *)\r
+           ;;\r
+       esac\r
+       ;;\r
+      netbsd*)\r
+       ;;\r
+      osf3* | osf4* | osf5*)\r
+       case $cc_basename in\r
+         KCC)\r
+           _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'\r
+           ;;\r
+         RCC)\r
+           # Rational C++ 2.4.1\r
+           _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'\r
+           ;;\r
+         cxx)\r
+           # Digital/Compaq C++\r
+           _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'\r
+           # Make sure the PIC flag is empty.  It appears that all Alpha\r
+           # Linux and Compaq Tru64 Unix objects are PIC.\r
+           _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=\r
+           _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'\r
+           ;;\r
+         *)\r
+           ;;\r
+       esac\r
+       ;;\r
+      psos*)\r
+       ;;\r
+      sco*)\r
+       case $cc_basename in\r
+         CC)\r
+           _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'\r
+           ;;\r
+         *)\r
+           ;;\r
+       esac\r
+       ;;\r
+      solaris*)\r
+       case $cc_basename in\r
+         CC)\r
+           # Sun C++ 4.2, 5.x and Centerline C++\r
+           _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'\r
+           _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'\r
+           _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '\r
+           ;;\r
+         gcx)\r
+           # Green Hills C++ Compiler\r
+           _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'\r
+           ;;\r
+         *)\r
+           ;;\r
+       esac\r
+       ;;\r
+      sunos4*)\r
+       case $cc_basename in\r
+         CC)\r
+           # Sun C++ 4.x\r
+           _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'\r
+           _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'\r
+           ;;\r
+         lcc)\r
+           # Lucid\r
+           _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'\r
+           ;;\r
+         *)\r
+           ;;\r
+       esac\r
+       ;;\r
+      tandem*)\r
+       case $cc_basename in\r
+         NCC)\r
+           # NonStop-UX NCC 3.20\r
+           _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'\r
+           ;;\r
+         *)\r
+           ;;\r
+       esac\r
+       ;;\r
+      unixware*)\r
+       ;;\r
+      vxworks*)\r
+       ;;\r
+      *)\r
+       _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no\r
+       ;;\r
+    esac\r
+  fi\r
+],\r
+[\r
+  if test "$GCC" = yes; then\r
+    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'\r
+    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'\r
+\r
+    case $host_os in\r
+      aix*)\r
+      # All AIX code is PIC.\r
+      if test "$host_cpu" = ia64; then\r
+       # AIX 5 now supports IA64 processor\r
+       _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'\r
+      fi\r
+      ;;\r
+\r
+    amigaos*)\r
+      # FIXME: we need at least 68020 code to build shared libraries, but\r
+      # adding the `-m68020' flag to GCC prevents building anything better,\r
+      # like `-m68040'.\r
+      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'\r
+      ;;\r
+\r
+    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)\r
+      # PIC is the default for these OSes.\r
+      ;;\r
+\r
+    mingw* | pw32* | os2*)\r
+      # This hack is so that the source file can tell whether it is being\r
+      # built for inclusion in a dll (and should export symbols for example).\r
+      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'\r
+      ;;\r
+\r
+    darwin* | rhapsody*)\r
+      # PIC is the default on this platform\r
+      # Common symbols not allowed in MH_DYLIB files\r
+      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'\r
+      ;;\r
+\r
+    msdosdjgpp*)\r
+      # Just because we use GCC doesn't mean we suddenly get shared libraries\r
+      # on systems that don't support them.\r
+      _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no\r
+      enable_shared=no\r
+      ;;\r
+\r
+    sysv4*MP*)\r
+      if test -d /usr/nec; then\r
+       _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic\r
+      fi\r
+      ;;\r
+\r
+    hpux*)\r
+      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but\r
+      # not for PA HP-UX.\r
+      case "$host_cpu" in\r
+      hppa*64*|ia64*)\r
+       # +Z the default\r
+       ;;\r
+      *)\r
+       _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'\r
+       ;;\r
+      esac\r
+      ;;\r
+\r
+    *)\r
+      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'\r
+      ;;\r
+    esac\r
+  else\r
+    # PORTME Check for flag to pass linker flags through the system compiler.\r
+    case $host_os in\r
+    aix*)\r
+      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'\r
+      if test "$host_cpu" = ia64; then\r
+       # AIX 5 now supports IA64 processor\r
+       _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'\r
+      else\r
+       _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'\r
+      fi\r
+      ;;\r
+\r
+    mingw* | pw32* | os2*)\r
+      # This hack is so that the source file can tell whether it is being\r
+      # built for inclusion in a dll (and should export symbols for example).\r
+      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'\r
+      ;;\r
+\r
+    hpux9* | hpux10* | hpux11*)\r
+      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'\r
+      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but\r
+      # not for PA HP-UX.\r
+      case "$host_cpu" in\r
+      hppa*64*|ia64*)\r
+       # +Z the default\r
+       ;;\r
+      *)\r
+       _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'\r
+       ;;\r
+      esac\r
+      # Is there a better lt_prog_compiler_static that works with the bundled CC?\r
+      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'\r
+      ;;\r
+\r
+    irix5* | irix6* | nonstopux*)\r
+      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'\r
+      # PIC (with -KPIC) is the default.\r
+      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'\r
+      ;;\r
+\r
+    newsos6)\r
+      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'\r
+      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'\r
+      ;;\r
+\r
+    linux*)\r
+      case $CC in\r
+      icc* | ecc*)\r
+       _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'\r
+       _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'\r
+       _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'\r
+        ;;\r
+      ccc*)\r
+        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'\r
+        # All Alpha code is PIC.\r
+        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'\r
+        ;;\r
+      esac\r
+      ;;\r
+\r
+    osf3* | osf4* | osf5*)\r
+      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'\r
+      # All OSF/1 code is PIC.\r
+      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'\r
+      ;;\r
+\r
+    sco3.2v5*)\r
+      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kpic'\r
+      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-dn'\r
+      ;;\r
+\r
+    solaris*)\r
+      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'\r
+      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'\r
+      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'\r
+      ;;\r
+\r
+    sunos4*)\r
+      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '\r
+      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'\r
+      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'\r
+      ;;\r
+\r
+    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)\r
+      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'\r
+      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'\r
+      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'\r
+      ;;\r
+\r
+    sysv4*MP*)\r
+      if test -d /usr/nec ;then\r
+       _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'\r
+       _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'\r
+      fi\r
+      ;;\r
+\r
+    uts4*)\r
+      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'\r
+      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'\r
+      ;;\r
+\r
+    *)\r
+      _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no\r
+      ;;\r
+    esac\r
+  fi\r
+])\r
+AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])\r
+\r
+#\r
+# Check to make sure the PIC flag actually works.\r
+#\r
+if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then\r
+  AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],\r
+    _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),\r
+    [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],\r
+    [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in\r
+     "" | " "*) ;;\r
+     *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;\r
+     esac],\r
+    [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=\r
+     _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])\r
+fi\r
+case "$host_os" in\r
+  # For platforms which do not support PIC, -DPIC is meaningless:\r
+  *djgpp*)\r
+    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=\r
+    ;;\r
+  *)\r
+    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"\r
+    ;;\r
+esac\r
+])\r
+\r
+\r
+# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])\r
+# ------------------------------------\r
+# See if the linker supports building shared libraries.\r
+AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],\r
+[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])\r
+ifelse([$1],[CXX],[\r
+  _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'\r
+  case $host_os in\r
+  aix4* | aix5*)\r
+    # If we're using GNU nm, then we don't want the "-C" option.\r
+    # -C means demangle to AIX nm, but means don't demangle with GNU nm\r
+    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then\r
+      _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'\r
+    else\r
+      _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'\r
+    fi\r
+    ;;\r
+  pw32*)\r
+    _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"\r
+  ;;\r
+  cygwin* | mingw*)\r
+    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'\r
+  ;;\r
+  *)\r
+    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'\r
+  ;;\r
+  esac\r
+],[\r
+  runpath_var=\r
+  _LT_AC_TAGVAR(allow_undefined_flag, $1)=\r
+  _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no\r
+  _LT_AC_TAGVAR(archive_cmds, $1)=\r
+  _LT_AC_TAGVAR(archive_expsym_cmds, $1)=\r
+  _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=\r
+  _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=\r
+  _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=\r
+  _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=\r
+  _LT_AC_TAGVAR(thread_safe_flag_spec, $1)=\r
+  _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=\r
+  _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=\r
+  _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=\r
+  _LT_AC_TAGVAR(hardcode_direct, $1)=no\r
+  _LT_AC_TAGVAR(hardcode_minus_L, $1)=no\r
+  _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported\r
+  _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown\r
+  _LT_AC_TAGVAR(hardcode_automatic, $1)=no\r
+  _LT_AC_TAGVAR(module_cmds, $1)=\r
+  _LT_AC_TAGVAR(module_expsym_cmds, $1)=\r
+  _LT_AC_TAGVAR(always_export_symbols, $1)=no\r
+  _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'\r
+  # include_expsyms should be a list of space-separated symbols to be *always*\r
+  # included in the symbol list\r
+  _LT_AC_TAGVAR(include_expsyms, $1)=\r
+  # exclude_expsyms can be an extended regexp of symbols to exclude\r
+  # it will be wrapped by ` (' and `)$', so one must not match beginning or\r
+  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',\r
+  # as well as any symbol that contains `d'.\r
+  _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"\r
+  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out\r
+  # platforms (ab)use it in PIC code, but their linkers get confused if\r
+  # the symbol is explicitly referenced.  Since portable code cannot\r
+  # rely on this symbol name, it's probably fine to never include it in\r
+  # preloaded symbol tables.\r
+  extract_expsyms_cmds=\r
+\r
+  case $host_os in\r
+  cygwin* | mingw* | pw32*)\r
+    # FIXME: the MSVC++ port hasn't been tested in a loooong time\r
+    # When not using gcc, we currently assume that we are using\r
+    # Microsoft Visual C++.\r
+    if test "$GCC" != yes; then\r
+      with_gnu_ld=no\r
+    fi\r
+    ;;\r
+  openbsd*)\r
+    with_gnu_ld=no\r
+    ;;\r
+  esac\r
+\r
+  _LT_AC_TAGVAR(ld_shlibs, $1)=yes\r
+  if test "$with_gnu_ld" = yes; then\r
+    # If archive_cmds runs LD, not CC, wlarc should be empty\r
+    wlarc='${wl}'\r
+\r
+    # See if GNU ld supports shared libraries.\r
+    case $host_os in\r
+    aix3* | aix4* | aix5*)\r
+      # On AIX/PPC, the GNU linker is very broken\r
+      if test "$host_cpu" != ia64; then\r
+       _LT_AC_TAGVAR(ld_shlibs, $1)=no\r
+       cat <<EOF 1>&2\r
+\r
+*** Warning: the GNU linker, at least up to release 2.9.1, is reported\r
+*** to be unable to reliably create shared libraries on AIX.\r
+*** Therefore, libtool is disabling shared libraries support.  If you\r
+*** really care for shared libraries, you may want to modify your PATH\r
+*** so that a non-GNU linker is found, and then restart.\r
+\r
+EOF\r
+      fi\r
+      ;;\r
+\r
+    amigaos*)\r
+      _LT_AC_TAGVAR(archive_cmds, $1)='$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)'\r
+      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'\r
+      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes\r
+\r
+      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports\r
+      # that the semantics of dynamic libraries on AmigaOS, at least up\r
+      # to version 4, is to share data among multiple programs linked\r
+      # with the same dynamic library.  Since this doesn't match the\r
+      # behavior of shared libraries on other platforms, we can't use\r
+      # them.\r
+      _LT_AC_TAGVAR(ld_shlibs, $1)=no\r
+      ;;\r
+\r
+    beos*)\r
+      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then\r
+       _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported\r
+       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc\r
+       # support --undefined.  This deserves some investigation.  FIXME\r
+       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'\r
+      else\r
+       _LT_AC_TAGVAR(ld_shlibs, $1)=no\r
+      fi\r
+      ;;\r
+\r
+    cygwin* | mingw* | pw32*)\r
+      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,\r
+      # as there is no search path for DLLs.\r
+      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'\r
+      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported\r
+      _LT_AC_TAGVAR(always_export_symbols, $1)=no\r
+      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes\r
+      _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'\r
+\r
+      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then\r
+        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'\r
+       # If the export-symbols file already is a .def file (1st line\r
+       # is EXPORTS), use it as is; otherwise, prepend...\r
+       _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then\r
+         cp $export_symbols $output_objdir/$soname.def;\r
+       else\r
+         echo EXPORTS > $output_objdir/$soname.def;\r
+         cat $export_symbols >> $output_objdir/$soname.def;\r
+       fi~\r
+       $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'\r
+      else\r
+       ld_shlibs=no\r
+      fi\r
+      ;;\r
+\r
+    netbsd*)\r
+      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then\r
+       _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'\r
+       wlarc=\r
+      else\r
+       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'\r
+       _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'\r
+      fi\r
+      ;;\r
+\r
+    solaris* | sysv5*)\r
+      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then\r
+       _LT_AC_TAGVAR(ld_shlibs, $1)=no\r
+       cat <<EOF 1>&2\r
+\r
+*** Warning: The releases 2.8.* of the GNU linker cannot reliably\r
+*** create shared libraries on Solaris systems.  Therefore, libtool\r
+*** is disabling shared libraries support.  We urge you to upgrade GNU\r
+*** binutils to release 2.9.1 or newer.  Another option is to modify\r
+*** your PATH or compiler configuration so that the native linker is\r
+*** used, and then restart.\r
+\r
+EOF\r
+      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then\r
+       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'\r
+       _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'\r
+      else\r
+       _LT_AC_TAGVAR(ld_shlibs, $1)=no\r
+      fi\r
+      ;;\r
+\r
+    sunos4*)\r
+      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'\r
+      wlarc=\r
+      _LT_AC_TAGVAR(hardcode_direct, $1)=yes\r
+      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no\r
+      ;;\r
+\r
+  linux*)\r
+    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then\r
+        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'\r
+       _LT_AC_TAGVAR(archive_cmds, $1)="$tmp_archive_cmds"\r
+      supports_anon_versioning=no\r
+      case `$LD -v 2>/dev/null` in\r
+        *\ [01].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11\r
+        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...\r
+        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...\r
+        *\ 2.11.*) ;; # other 2.11 versions\r
+        *) supports_anon_versioning=yes ;;\r
+      esac\r
+      if test $supports_anon_versioning = yes; then\r
+        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~\r
+cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~\r
+$echo "local: *; };" >> $output_objdir/$libname.ver~\r
+        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'\r
+      else\r
+        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="$tmp_archive_cmds"\r
+      fi\r
+    else\r
+      _LT_AC_TAGVAR(ld_shlibs, $1)=no\r
+    fi\r
+    ;;\r
+\r
+    *)\r
+      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then\r
+       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'\r
+       _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'\r
+      else\r
+       _LT_AC_TAGVAR(ld_shlibs, $1)=no\r
+      fi\r
+      ;;\r
+    esac\r
+\r
+    if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = yes; then\r
+      runpath_var=LD_RUN_PATH\r
+      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'\r
+      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'\r
+      # ancient GNU ld didn't support --whole-archive et. al.\r
+      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then\r
+       _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'\r
+      else\r
+       _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=\r
+      fi\r
+    fi\r
+  else\r
+    # PORTME fill in a description of your system's linker (not GNU ld)\r
+    case $host_os in\r
+    aix3*)\r
+      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported\r
+      _LT_AC_TAGVAR(always_export_symbols, $1)=yes\r
+      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'\r
+      # Note: this linker hardcodes the directories in LIBPATH if there\r
+      # are no directories specified by -L.\r
+      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes\r
+      if test "$GCC" = yes && test -z "$link_static_flag"; then\r
+       # Neither direct hardcoding nor static linking is supported with a\r
+       # broken collect2.\r
+       _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported\r
+      fi\r
+      ;;\r
+\r
+    aix4* | aix5*)\r
+      if test "$host_cpu" = ia64; then\r
+       # On IA64, the linker does run time linking by default, so we don't\r
+       # have to do anything special.\r
+       aix_use_runtimelinking=no\r
+       exp_sym_flag='-Bexport'\r
+       no_entry_flag=""\r
+      else\r
+       # If we're using GNU nm, then we don't want the "-C" option.\r
+       # -C means demangle to AIX nm, but means don't demangle with GNU nm\r
+       if $NM -V 2>&1 | grep 'GNU' > /dev/null; then\r
+         _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'\r
+       else\r
+         _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'\r
+       fi\r
+       aix_use_runtimelinking=no\r
+\r
+       # Test if we are trying to use run time linking or normal\r
+       # AIX style linking. If -brtl is somewhere in LDFLAGS, we\r
+       # need to do runtime linking.\r
+       case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)\r
+         for ld_flag in $LDFLAGS; do\r
+         if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then\r
+           aix_use_runtimelinking=yes\r
+           break\r
+         fi\r
+         done\r
+       esac\r
+\r
+       exp_sym_flag='-bexport'\r
+       no_entry_flag='-bnoentry'\r
+      fi\r
+\r
+      # When large executables or shared objects are built, AIX ld can\r
+      # have problems creating the table of contents.  If linking a library\r
+      # or program results in "error TOC overflow" add -mminimal-toc to\r
+      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not\r
+      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.\r
+\r
+      _LT_AC_TAGVAR(archive_cmds, $1)=''\r
+      _LT_AC_TAGVAR(hardcode_direct, $1)=yes\r
+      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'\r
+      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes\r
+\r
+      if test "$GCC" = yes; then\r
+       case $host_os in aix4.[012]|aix4.[012].*)\r
+       # We only want to do this on AIX 4.2 and lower, the check\r
+       # below for broken collect2 doesn't work under 4.3+\r
+         collect2name=`${CC} -print-prog-name=collect2`\r
+         if test -f "$collect2name" && \\r
+          strings "$collect2name" | grep resolve_lib_name >/dev/null\r
+         then\r
+         # We have reworked collect2\r
+         _LT_AC_TAGVAR(hardcode_direct, $1)=yes\r
+         else\r
+         # We have old collect2\r
+         _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported\r
+         # It fails to find uninstalled libraries when the uninstalled\r
+         # path is not listed in the libpath.  Setting hardcode_minus_L\r
+         # to unsupported forces relinking\r
+         _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes\r
+         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'\r
+         _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=\r
+         fi\r
+       esac\r
+       shared_flag='-shared'\r
+      else\r
+       # not using gcc\r
+       if test "$host_cpu" = ia64; then\r
+       # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release\r
+       # chokes on -Wl,-G. The following line is correct:\r
+         shared_flag='-G'\r
+       else\r
+       if test "$aix_use_runtimelinking" = yes; then\r
+           shared_flag='${wl}-G'\r
+         else\r
+           shared_flag='${wl}-bM:SRE'\r
+       fi\r
+       fi\r
+      fi\r
+\r
+      # It seems that -bexpall does not export symbols beginning with\r
+      # underscore (_), so it is better to generate a list of symbols to export.\r
+      _LT_AC_TAGVAR(always_export_symbols, $1)=yes\r
+      if test "$aix_use_runtimelinking" = yes; then\r
+       # Warning - without using the other runtime loading flags (-brtl),\r
+       # -berok will link without error, but may produce a broken library.\r
+       _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'\r
+       # Determine the default libpath from the value encoded in an empty executable.\r
+       _LT_AC_SYS_LIBPATH_AIX\r
+       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"\r
+       _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"\r
+       else\r
+       if test "$host_cpu" = ia64; then\r
+         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'\r
+         _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"\r
+         _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"\r
+       else\r
+        # Determine the default libpath from the value encoded in an empty executable.\r
+        _LT_AC_SYS_LIBPATH_AIX\r
+        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"\r
+         # Warning - without using the other run time loading flags,\r
+         # -berok will link without error, but may produce a broken library.\r
+         _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'\r
+         _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'\r
+         # -bexpall does not export symbols beginning with underscore (_)\r
+         _LT_AC_TAGVAR(always_export_symbols, $1)=yes\r
+         # Exported symbols can be pulled into shared objects from archives\r
+         _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '\r
+         _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes\r
+         # This is similar to how AIX traditionally builds it's shared libraries.\r
+         _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'\r
+       fi\r
+      fi\r
+      ;;\r
+\r
+    amigaos*)\r
+      _LT_AC_TAGVAR(archive_cmds, $1)='$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)'\r
+      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'\r
+      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes\r
+      # see comment about different semantics on the GNU ld section\r
+      _LT_AC_TAGVAR(ld_shlibs, $1)=no\r
+      ;;\r
+\r
+    bsdi4*)\r
+      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic\r
+      ;;\r
+\r
+    cygwin* | mingw* | pw32*)\r
+      # When not using gcc, we currently assume that we are using\r
+      # Microsoft Visual C++.\r
+      # hardcode_libdir_flag_spec is actually meaningless, as there is\r
+      # no search path for DLLs.\r
+      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '\r
+      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported\r
+      # Tell ltmain to make .lib files, not .a files.\r
+      libext=lib\r
+      # Tell ltmain to make .dll files, not .so files.\r
+      shrext_cmds=".dll"\r
+      # FIXME: Setting linknames here is a bad hack.\r
+      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='\r
+      # The linker will automatically build a .lib file if we build a DLL.\r
+      _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'\r
+      # FIXME: Should let the user specify the lib program.\r
+      _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'\r
+      fix_srcfile_path='`cygpath -w "$srcfile"`'\r
+      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes\r
+      ;;\r
+\r
+    darwin* | rhapsody*)\r
+    if test "$GXX" = yes ; then\r
+      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no\r
+      case "$host_os" in\r
+      rhapsody* | darwin1.[[012]])\r
+       _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'\r
+       ;;\r
+      *) # Darwin 1.3 on\r
+      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then\r
+       _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'\r
+      else\r
+        case ${MACOSX_DEPLOYMENT_TARGET} in\r
+          10.[[012]])\r
+            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'\r
+            ;;\r
+          10.*)\r
+            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'\r
+            ;;\r
+        esac\r
+      fi\r
+       ;;\r
+      esac\r
+       lt_int_apple_cc_single_mod=no\r
+       output_verbose_link_cmd='echo'\r
+       if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then\r
+         lt_int_apple_cc_single_mod=yes\r
+       fi\r
+       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then\r
+         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'\r
+       else\r
+        _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'\r
+      fi\r
+      _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'\r
+      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's\r
+        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then\r
+          _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}'\r
+        else\r
+          _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}'\r
+        fi\r
+          _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}'\r
+      _LT_AC_TAGVAR(hardcode_direct, $1)=no\r
+      _LT_AC_TAGVAR(hardcode_automatic, $1)=yes\r
+      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported\r
+      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'\r
+      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes\r
+    else\r
+      _LT_AC_TAGVAR(ld_shlibs, $1)=no\r
+    fi\r
+      ;;\r
+\r
+    dgux*)\r
+      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'\r
+      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'\r
+      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no\r
+      ;;\r
+\r
+    freebsd1*)\r
+      _LT_AC_TAGVAR(ld_shlibs, $1)=no\r
+      ;;\r
+\r
+    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor\r
+    # support.  Future versions do this automatically, but an explicit c++rt0.o\r
+    # does not break anything, and helps significantly (at the cost of a little\r
+    # extra space).\r
+    freebsd2.2*)\r
+      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'\r
+      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'\r
+      _LT_AC_TAGVAR(hardcode_direct, $1)=yes\r
+      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no\r
+      ;;\r
+\r
+    # Unfortunately, older versions of FreeBSD 2 do not have this feature.\r
+    freebsd2*)\r
+      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'\r
+      _LT_AC_TAGVAR(hardcode_direct, $1)=yes\r
+      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes\r
+      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no\r
+      ;;\r
+\r
+    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.\r
+    freebsd* | kfreebsd*-gnu)\r
+      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'\r
+      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'\r
+      _LT_AC_TAGVAR(hardcode_direct, $1)=yes\r
+      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no\r
+      ;;\r
+\r
+    hpux9*)\r
+      if test "$GCC" = yes; then\r
+       _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'\r
+      else\r
+       _LT_AC_TAGVAR(archive_cmds, $1)='$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'\r
+      fi\r
+      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'\r
+      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:\r
+      _LT_AC_TAGVAR(hardcode_direct, $1)=yes\r
+\r
+      # hardcode_minus_L: Not really in the search PATH,\r
+      # but as the default location of the library.\r
+      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes\r
+      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'\r
+      ;;\r
+\r
+    hpux10* | hpux11*)\r
+      if test "$GCC" = yes -a "$with_gnu_ld" = no; then\r
+       case "$host_cpu" in\r
+       hppa*64*|ia64*)\r
+         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'\r
+         ;;\r
+       *)\r
+         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'\r
+         ;;\r
+       esac\r
+      else\r
+       case "$host_cpu" in\r
+       hppa*64*|ia64*)\r
+         _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'\r
+         ;;\r
+       *)\r
+         _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'\r
+         ;;\r
+       esac\r
+      fi\r
+      if test "$with_gnu_ld" = no; then\r
+       case "$host_cpu" in\r
+       hppa*64*)\r
+         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'\r
+         _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'\r
+         _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:\r
+         _LT_AC_TAGVAR(hardcode_direct, $1)=no\r
+         _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no\r
+         ;;\r
+       ia64*)\r
+         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'\r
+         _LT_AC_TAGVAR(hardcode_direct, $1)=no\r
+         _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no\r
+\r
+         # hardcode_minus_L: Not really in the search PATH,\r
+         # but as the default location of the library.\r
+         _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes\r
+         ;;\r
+       *)\r
+         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'\r
+         _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:\r
+         _LT_AC_TAGVAR(hardcode_direct, $1)=yes\r
+         _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'\r
+\r
+         # hardcode_minus_L: Not really in the search PATH,\r
+         # but as the default location of the library.\r
+         _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes\r
+         ;;\r
+       esac\r
+      fi\r
+      ;;\r
+\r
+    irix5* | irix6* | nonstopux*)\r
+      if test "$GCC" = yes; then\r
+       _LT_AC_TAGVAR(archive_cmds, $1)='$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'\r
+      else\r
+       _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'\r
+       _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'\r
+      fi\r
+      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'\r
+      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:\r
+      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes\r
+      ;;\r
+\r
+    netbsd*)\r
+      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then\r
+       _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out\r
+      else\r
+       _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF\r
+      fi\r
+      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'\r
+      _LT_AC_TAGVAR(hardcode_direct, $1)=yes\r
+      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no\r
+      ;;\r
+\r
+    newsos6)\r
+      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'\r
+      _LT_AC_TAGVAR(hardcode_direct, $1)=yes\r
+      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'\r
+      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:\r
+      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no\r
+      ;;\r
+\r
+    openbsd*)\r
+      _LT_AC_TAGVAR(hardcode_direct, $1)=yes\r
+      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no\r
+      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then\r
+       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'\r
+       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'\r
+       _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'\r
+      else\r
+       case $host_os in\r
+        openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)\r
+          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'\r
+          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'\r
+          ;;\r
+        *)\r
+          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'\r
+          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'\r
+          ;;\r
+       esac\r
+      fi\r
+      ;;\r
+\r
+    os2*)\r
+      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'\r
+      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes\r
+      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported\r
+      _LT_AC_TAGVAR(archive_cmds, $1)='$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'\r
+      _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'\r
+      ;;\r
+\r
+    osf3*)\r
+      if test "$GCC" = yes; then\r
+       _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'\r
+       _LT_AC_TAGVAR(archive_cmds, $1)='$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'\r
+      else\r
+       _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'\r
+       _LT_AC_TAGVAR(archive_cmds, $1)='$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'\r
+      fi\r
+      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'\r
+      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:\r
+      ;;\r
+\r
+    osf4* | osf5*)     # as osf3* with the addition of -msym flag\r
+      if test "$GCC" = yes; then\r
+       _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'\r
+       _LT_AC_TAGVAR(archive_cmds, $1)='$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'\r
+       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'\r
+      else\r
+       _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'\r
+       _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'\r
+       _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~\r
+       $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'\r
+\r
+       # Both c and cxx compiler support -rpath directly\r
+       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'\r
+      fi\r
+      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:\r
+      ;;\r
+\r
+    sco3.2v5*)\r
+      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'\r
+      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no\r
+      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'\r
+      runpath_var=LD_RUN_PATH\r
+      hardcode_runpath_var=yes\r
+      ;;\r
+\r
+    solaris*)\r
+      _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'\r
+      if test "$GCC" = yes; then\r
+       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'\r
+       _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~\r
+         $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'\r
+      else\r
+       _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'\r
+       _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~\r
+       $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'\r
+      fi\r
+      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'\r
+      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no\r
+      case $host_os in\r
+      solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;\r
+      *) # Supported since Solaris 2.6 (maybe 2.5.1?)\r
+       _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;\r
+      esac\r
+      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes\r
+      ;;\r
+\r
+    sunos4*)\r
+      if test "x$host_vendor" = xsequent; then\r
+       # Use $CC to link under sequent, because it throws in some extra .o\r
+       # files that make .init and .fini sections work.\r
+       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'\r
+      else\r
+       _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'\r
+      fi\r
+      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'\r
+      _LT_AC_TAGVAR(hardcode_direct, $1)=yes\r
+      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes\r
+      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no\r
+      ;;\r
+\r
+    sysv4)\r
+      case $host_vendor in\r
+       sni)\r
+         _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'\r
+         _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???\r
+       ;;\r
+       siemens)\r
+         ## LD is ld it makes a PLAMLIB\r
+         ## CC just makes a GrossModule.\r
+         _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'\r
+         _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'\r
+         _LT_AC_TAGVAR(hardcode_direct, $1)=no\r
+        ;;\r
+       motorola)\r
+         _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'\r
+         _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie\r
+       ;;\r
+      esac\r
+      runpath_var='LD_RUN_PATH'\r
+      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no\r
+      ;;\r
+\r
+    sysv4.3*)\r
+      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'\r
+      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no\r
+      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'\r
+      ;;\r
+\r
+    sysv4*MP*)\r
+      if test -d /usr/nec; then\r
+       _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'\r
+       _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no\r
+       runpath_var=LD_RUN_PATH\r
+       hardcode_runpath_var=yes\r
+       _LT_AC_TAGVAR(ld_shlibs, $1)=yes\r
+      fi\r
+      ;;\r
+\r
+    sysv4.2uw2*)\r
+      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'\r
+      _LT_AC_TAGVAR(hardcode_direct, $1)=yes\r
+      _LT_AC_TAGVAR(hardcode_minus_L, $1)=no\r
+      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no\r
+      hardcode_runpath_var=yes\r
+      runpath_var=LD_RUN_PATH\r
+      ;;\r
+\r
+   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[[78]]* | unixware7*)\r
+      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text'\r
+      if test "$GCC" = yes; then\r
+       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'\r
+      else\r
+       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'\r
+      fi\r
+      runpath_var='LD_RUN_PATH'\r
+      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no\r
+      ;;\r
+\r
+    sysv5*)\r
+      _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'\r
+      # $CC -shared without GNU ld will not create a library from C++\r
+      # object files and a static libstdc++, better avoid it by now\r
+      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'\r
+      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~\r
+               $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'\r
+      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=\r
+      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no\r
+      runpath_var='LD_RUN_PATH'\r
+      ;;\r
+\r
+    uts4*)\r
+      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'\r
+      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'\r
+      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no\r
+      ;;\r
+\r
+    *)\r
+      _LT_AC_TAGVAR(ld_shlibs, $1)=no\r
+      ;;\r
+    esac\r
+  fi\r
+])\r
+AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])\r
+test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no\r
+\r
+variables_saved_for_relink="PATH $shlibpath_var $runpath_var"\r
+if test "$GCC" = yes; then\r
+  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"\r
+fi\r
+\r
+#\r
+# Do we need to explicitly link libc?\r
+#\r
+case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in\r
+x|xyes)\r
+  # Assume -lc should be added\r
+  _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes\r
+\r
+  if test "$enable_shared" = yes && test "$GCC" = yes; then\r
+    case $_LT_AC_TAGVAR(archive_cmds, $1) in\r
+    *'~'*)\r
+      # FIXME: we may have to deal with multi-command sequences.\r
+      ;;\r
+    '$CC '*)\r
+      # Test whether the compiler implicitly links with -lc since on some\r
+      # systems, -lgcc has to come before -lc. If gcc already passes -lc\r
+      # to ld, don't add -lc before -lgcc.\r
+      AC_MSG_CHECKING([whether -lc should be explicitly linked in])\r
+      $rm conftest*\r
+      printf "$lt_simple_compile_test_code" > conftest.$ac_ext\r
+\r
+      if AC_TRY_EVAL(ac_compile) 2>conftest.err; then\r
+        soname=conftest\r
+        lib=conftest\r
+        libobjs=conftest.$ac_objext\r
+        deplibs=\r
+        wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)\r
+        compiler_flags=-v\r
+        linker_flags=-v\r
+        verstring=\r
+        output_objdir=.\r
+        libname=conftest\r
+        lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)\r
+        _LT_AC_TAGVAR(allow_undefined_flag, $1)=\r
+        if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)\r
+        then\r
+         _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no\r
+        else\r
+         _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes\r
+        fi\r
+        _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag\r
+      else\r
+        cat conftest.err 1>&5\r
+      fi\r
+      $rm conftest*\r
+      AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])\r
+      ;;\r
+    esac\r
+  fi\r
+  ;;\r
+esac\r
+])# AC_LIBTOOL_PROG_LD_SHLIBS\r
+\r
+\r
+# _LT_AC_FILE_LTDLL_C\r
+# -------------------\r
+# Be careful that the start marker always follows a newline.\r
+AC_DEFUN([_LT_AC_FILE_LTDLL_C], [\r
+# /* ltdll.c starts here */\r
+# #define WIN32_LEAN_AND_MEAN\r
+# #include <windows.h>\r
+# #undef WIN32_LEAN_AND_MEAN\r
+# #include <stdio.h>\r
+#\r
+# #ifndef __CYGWIN__\r
+# #  ifdef __CYGWIN32__\r
+# #    define __CYGWIN__ __CYGWIN32__\r
+# #  endif\r
+# #endif\r
+#\r
+# #ifdef __cplusplus\r
+# extern "C" {\r
+# #endif\r
+# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);\r
+# #ifdef __cplusplus\r
+# }\r
+# #endif\r
+#\r
+# #ifdef __CYGWIN__\r
+# #include <cygwin/cygwin_dll.h>\r
+# DECLARE_CYGWIN_DLL( DllMain );\r
+# #endif\r
+# HINSTANCE __hDllInstance_base;\r
+#\r
+# BOOL APIENTRY\r
+# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)\r
+# {\r
+#   __hDllInstance_base = hInst;\r
+#   return TRUE;\r
+# }\r
+# /* ltdll.c ends here */\r
+])# _LT_AC_FILE_LTDLL_C\r
+\r
+\r
+# _LT_AC_TAGVAR(VARNAME, [TAGNAME])\r
+# ---------------------------------\r
+AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])\r
+\r
+\r
+# old names\r
+AC_DEFUN([AM_PROG_LIBTOOL],   [AC_PROG_LIBTOOL])\r
+AC_DEFUN([AM_ENABLE_SHARED],  [AC_ENABLE_SHARED($@)])\r
+AC_DEFUN([AM_ENABLE_STATIC],  [AC_ENABLE_STATIC($@)])\r
+AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])\r
+AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])\r
+AC_DEFUN([AM_PROG_LD],        [AC_PROG_LD])\r
+AC_DEFUN([AM_PROG_NM],        [AC_PROG_NM])\r
+\r
+# This is just to silence aclocal about the macro not being used\r
+ifelse([AC_DISABLE_FAST_INSTALL])\r
+\r
+AC_DEFUN([LT_AC_PROG_GCJ],\r
+[AC_CHECK_TOOL(GCJ, gcj, no)\r
+  test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"\r
+  AC_SUBST(GCJFLAGS)\r
+])\r
+\r
+AC_DEFUN([LT_AC_PROG_RC],\r
+[AC_CHECK_TOOL(RC, windres, no)\r
+])\r
+\r
+############################################################\r
+# NOTE: This macro has been submitted for inclusion into   #\r
+#  GNU Autoconf as AC_PROG_SED.  When it is available in   #\r
+#  a released version of Autoconf we should remove this    #\r
+#  macro and use it instead.                               #\r
+############################################################\r
+# LT_AC_PROG_SED\r
+# --------------\r
+# Check for a fully-functional sed program, that truncates\r
+# as few characters as possible.  Prefer GNU sed if found.\r
+AC_DEFUN([LT_AC_PROG_SED],\r
+[AC_MSG_CHECKING([for a sed that does not truncate output])\r
+AC_CACHE_VAL(lt_cv_path_SED,\r
+[# Loop through the user's path and test for sed and gsed.\r
+# Then use that list of sed's as ones to test for truncation.\r
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR\r
+for as_dir in $PATH\r
+do\r
+  IFS=$as_save_IFS\r
+  test -z "$as_dir" && as_dir=.\r
+  for lt_ac_prog in sed gsed; do\r
+    for ac_exec_ext in '' $ac_executable_extensions; do\r
+      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then\r
+        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"\r
+      fi\r
+    done\r
+  done\r
+done\r
+lt_ac_max=0\r
+lt_ac_count=0\r
+# Add /usr/xpg4/bin/sed as it is typically found on Solaris\r
+# along with /bin/sed that truncates output.\r
+for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do\r
+  test ! -f $lt_ac_sed && break\r
+  cat /dev/null > conftest.in\r
+  lt_ac_count=0\r
+  echo $ECHO_N "0123456789$ECHO_C" >conftest.in\r
+  # Check for GNU sed and select it if it is found.\r
+  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then\r
+    lt_cv_path_SED=$lt_ac_sed\r
+    break\r
+  fi\r
+  while true; do\r
+    cat conftest.in conftest.in >conftest.tmp\r
+    mv conftest.tmp conftest.in\r
+    cp conftest.in conftest.nl\r
+    echo >>conftest.nl\r
+    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break\r
+    cmp -s conftest.out conftest.nl || break\r
+    # 10000 chars as input seems more than enough\r
+    test $lt_ac_count -gt 10 && break\r
+    lt_ac_count=`expr $lt_ac_count + 1`\r
+    if test $lt_ac_count -gt $lt_ac_max; then\r
+      lt_ac_max=$lt_ac_count\r
+      lt_cv_path_SED=$lt_ac_sed\r
+    fi\r
+  done\r
+done\r
+SED=$lt_cv_path_SED\r
+])\r
+AC_MSG_RESULT([$SED])\r
+])\r
diff --git a/ltmain.sh b/ltmain.sh
new file mode 100644 (file)
index 0000000..23f82e3
--- /dev/null
+++ b/ltmain.sh
@@ -0,0 +1,6425 @@
+# ltmain.sh - Provide generalized library-building support services.
+# NOTE: Changing this file will not affect anything until you rerun configure.
+#
+# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004
+# Free Software Foundation, Inc.
+# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+#
+# As a special exception to the GNU General Public License, if you
+# distribute this file as part of a program that contains a
+# configuration script generated by Autoconf, you may include it under
+# the same distribution terms that you use for the rest of that program.
+
+basename="s,^.*/,,g"
+
+# Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh
+# is ksh but when the shell is invoked as "sh" and the current value of
+# the _XPG environment variable is not equal to 1 (one), the special
+# positional parameter $0, within a function call, is the name of the
+# function.
+progpath="$0"
+
+# RH: define SED for historic ltconfig's generated by Libtool 1.3
+[ -z "$SED" ] && SED=sed
+
+# The name of this program:
+progname=`echo "$progpath" | $SED $basename`
+modename="$progname"
+
+# Global variables:
+EXIT_SUCCESS=0
+EXIT_FAILURE=1
+
+PROGRAM=ltmain.sh
+PACKAGE=libtool
+VERSION=1.5.6
+TIMESTAMP=" (1.1220.2.95 2004/04/11 05:50:42)"
+
+
+# Check that we have a working $echo.
+if test "X$1" = X--no-reexec; then
+  # Discard the --no-reexec flag, and continue.
+  shift
+elif test "X$1" = X--fallback-echo; then
+  # Avoid inline document here, it may be left over
+  :
+elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
+  # Yippee, $echo works!
+  :
+else
+  # Restart under the correct shell, and then maybe $echo will work.
+  exec $SHELL "$progpath" --no-reexec ${1+"$@"}
+fi
+
+if test "X$1" = X--fallback-echo; then
+  # used as fallback echo
+  shift
+  cat <<EOF
+$*
+EOF
+  exit $EXIT_SUCCESS
+fi
+
+default_mode=
+help="Try \`$progname --help' for more information."
+magic="%%%MAGIC variable%%%"
+mkdir="mkdir"
+mv="mv -f"
+rm="rm -f"
+
+# Sed substitution that helps us do robust quoting.  It backslashifies
+# metacharacters that are still active within double-quoted strings.
+Xsed="${SED}"' -e 1s/^X//'
+sed_quote_subst='s/\([\\`\\"$\\\\]\)/\\\1/g'
+# test EBCDIC or ASCII
+case `echo A|tr A '\301'` in
+ A) # EBCDIC based system
+  SP2NL="tr '\100' '\n'"
+  NL2SP="tr '\r\n' '\100\100'"
+  ;;
+ *) # Assume ASCII based system
+  SP2NL="tr '\040' '\012'"
+  NL2SP="tr '\015\012' '\040\040'"
+  ;;
+esac
+
+# NLS nuisances.
+# Only set LANG and LC_ALL to C if already set.
+# These must not be set unconditionally because not all systems understand
+# e.g. LANG=C (notably SCO).
+# We save the old values to restore during execute mode.
+if test "${LC_ALL+set}" = set; then
+  save_LC_ALL="$LC_ALL"; LC_ALL=C; export LC_ALL
+fi
+if test "${LANG+set}" = set; then
+  save_LANG="$LANG"; LANG=C; export LANG
+fi
+
+# Make sure IFS has a sensible default
+: ${IFS="      
+"}
+
+if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
+  $echo "$modename: not configured to build any kind of library" 1>&2
+  $echo "Fatal configuration error.  See the $PACKAGE docs for more information." 1>&2
+  exit $EXIT_FAILURE
+fi
+
+# Global variables.
+mode=$default_mode
+nonopt=
+prev=
+prevopt=
+run=
+show="$echo"
+show_help=
+execute_dlfiles=
+lo2o="s/\\.lo\$/.${objext}/"
+o2lo="s/\\.${objext}\$/.lo/"
+
+#####################################
+# Shell function definitions:
+# This seems to be the best place for them
+
+# func_win32_libid arg
+# return the library type of file 'arg'
+#
+# Need a lot of goo to handle *both* DLLs and import libs
+# Has to be a shell function in order to 'eat' the argument
+# that is supplied when $file_magic_command is called.
+func_win32_libid () {
+  win32_libid_type="unknown"
+  win32_fileres=`file -L $1 2>/dev/null`
+  case $win32_fileres in
+  *ar\ archive\ import\ library*) # definitely import
+    win32_libid_type="x86 archive import"
+    ;;
+  *ar\ archive*) # could be an import, or static
+    if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | \
+      $EGREP -e 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
+      win32_nmres=`eval $NM -f posix -A $1 | \
+       sed -n -e '1,100{/ I /{x;/import/!{s/^/import/;h;p;};x;};}'`
+      if test "X$win32_nmres" = "Ximport" ; then
+        win32_libid_type="x86 archive import"
+      else
+        win32_libid_type="x86 archive static"
+      fi
+    fi
+    ;;
+  *DLL*)
+    win32_libid_type="x86 DLL"
+    ;;
+  *executable*) # but shell scripts are "executable" too...
+    case $win32_fileres in
+    *MS\ Windows\ PE\ Intel*)
+      win32_libid_type="x86 DLL"
+      ;;
+    esac
+    ;;
+  esac
+  $echo $win32_libid_type
+}
+
+
+# func_infer_tag arg
+# Infer tagged configuration to use if any are available and
+# if one wasn't chosen via the "--tag" command line option.
+# Only attempt this if the compiler in the base compile
+# command doesn't match the default compiler.
+# arg is usually of the form 'gcc ...'
+func_infer_tag () {
+    if test -n "$available_tags" && test -z "$tagname"; then
+      CC_quoted=
+      for arg in $CC; do
+       case $arg in
+         *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
+         arg="\"$arg\""
+         ;;
+       esac
+       CC_quoted="$CC_quoted $arg"
+      done
+      case $@ in
+      # Blanks in the command may have been stripped by the calling shell,
+      # but not from the CC environment variable when configure was run.
+      " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*) ;;
+      # Blanks at the start of $base_compile will cause this to fail
+      # if we don't check for them as well.
+      *)
+       for z in $available_tags; do
+         if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then
+           # Evaluate the configuration.
+           eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`"
+           CC_quoted=
+           for arg in $CC; do
+           # Double-quote args containing other shell metacharacters.
+           case $arg in
+             *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \     ]*|*]*|"")
+             arg="\"$arg\""
+             ;;
+           esac
+           CC_quoted="$CC_quoted $arg"
+         done
+           case "$@ " in
+             " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*)
+             # The compiler in the base compile command matches
+             # the one in the tagged configuration.
+             # Assume this is the tagged configuration we want.
+             tagname=$z
+             break
+             ;;
+           esac
+         fi
+       done
+       # If $tagname still isn't set, then no tagged configuration
+       # was found and let the user know that the "--tag" command
+       # line option must be used.
+       if test -z "$tagname"; then
+         $echo "$modename: unable to infer tagged configuration"
+         $echo "$modename: specify a tag with \`--tag'" 1>&2
+         exit $EXIT_FAILURE
+#        else
+#          $echo "$modename: using $tagname tagged configuration"
+       fi
+       ;;
+      esac
+    fi
+}
+# End of Shell function definitions
+#####################################
+
+# Darwin sucks
+eval std_shrext=\"$shrext_cmds\"
+
+# Parse our command line options once, thoroughly.
+while test "$#" -gt 0
+do
+  arg="$1"
+  shift
+
+  case $arg in
+  -*=*) optarg=`$echo "X$arg" | $Xsed -e 's/[-_a-zA-Z0-9]*=//'` ;;
+  *) optarg= ;;
+  esac
+
+  # If the previous option needs an argument, assign it.
+  if test -n "$prev"; then
+    case $prev in
+    execute_dlfiles)
+      execute_dlfiles="$execute_dlfiles $arg"
+      ;;
+    tag)
+      tagname="$arg"
+      preserve_args="${preserve_args}=$arg"
+
+      # Check whether tagname contains only valid characters
+      case $tagname in
+      *[!-_A-Za-z0-9,/]*)
+       $echo "$progname: invalid tag name: $tagname" 1>&2
+       exit $EXIT_FAILURE
+       ;;
+      esac
+
+      case $tagname in
+      CC)
+       # Don't test for the "default" C tag, as we know, it's there, but
+       # not specially marked.
+       ;;
+      *)
+       if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "$progpath" > /dev/null; then
+         taglist="$taglist $tagname"
+         # Evaluate the configuration.
+         eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$tagname'$/,/^# ### END LIBTOOL TAG CONFIG: '$tagname'$/p' < $progpath`"
+       else
+         $echo "$progname: ignoring unknown tag $tagname" 1>&2
+       fi
+       ;;
+      esac
+      ;;
+    *)
+      eval "$prev=\$arg"
+      ;;
+    esac
+
+    prev=
+    prevopt=
+    continue
+  fi
+
+  # Have we seen a non-optional argument yet?
+  case $arg in
+  --help)
+    show_help=yes
+    ;;
+
+  --version)
+    $echo "$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP"
+    $echo
+    $echo "Copyright (C) 2003  Free Software Foundation, Inc."
+    $echo "This is free software; see the source for copying conditions.  There is NO"
+    $echo "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
+    exit $EXIT_SUCCESS
+    ;;
+
+  --config)
+    ${SED} -e '1,/^# ### BEGIN LIBTOOL CONFIG/d' -e '/^# ### END LIBTOOL CONFIG/,$d' $progpath
+    # Now print the configurations for the tags.
+    for tagname in $taglist; do
+      ${SED} -n -e "/^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$/,/^# ### END LIBTOOL TAG CONFIG: $tagname$/p" < "$progpath"
+    done
+    exit $EXIT_SUCCESS
+    ;;
+
+  --debug)
+    $echo "$progname: enabling shell trace mode"
+    set -x
+    preserve_args="$preserve_args $arg"
+    ;;
+
+  --dry-run | -n)
+    run=:
+    ;;
+
+  --features)
+    $echo "host: $host"
+    if test "$build_libtool_libs" = yes; then
+      $echo "enable shared libraries"
+    else
+      $echo "disable shared libraries"
+    fi
+    if test "$build_old_libs" = yes; then
+      $echo "enable static libraries"
+    else
+      $echo "disable static libraries"
+    fi
+    exit $EXIT_SUCCESS
+    ;;
+
+  --finish) mode="finish" ;;
+
+  --mode) prevopt="--mode" prev=mode ;;
+  --mode=*) mode="$optarg" ;;
+
+  --preserve-dup-deps) duplicate_deps="yes" ;;
+
+  --quiet | --silent)
+    show=:
+    preserve_args="$preserve_args $arg"
+    ;;
+
+  --tag) prevopt="--tag" prev=tag ;;
+  --tag=*)
+    set tag "$optarg" ${1+"$@"}
+    shift
+    prev=tag
+    preserve_args="$preserve_args --tag"
+    ;;
+
+  -dlopen)
+    prevopt="-dlopen"
+    prev=execute_dlfiles
+    ;;
+
+  -*)
+    $echo "$modename: unrecognized option \`$arg'" 1>&2
+    $echo "$help" 1>&2
+    exit $EXIT_FAILURE
+    ;;
+
+  *)
+    nonopt="$arg"
+    break
+    ;;
+  esac
+done
+
+if test -n "$prevopt"; then
+  $echo "$modename: option \`$prevopt' requires an argument" 1>&2
+  $echo "$help" 1>&2
+  exit $EXIT_FAILURE
+fi
+
+# If this variable is set in any of the actions, the command in it
+# will be execed at the end.  This prevents here-documents from being
+# left over by shells.
+exec_cmd=
+
+if test -z "$show_help"; then
+
+  # Infer the operation mode.
+  if test -z "$mode"; then
+    $echo "*** Warning: inferring the mode of operation is deprecated." 1>&2
+    $echo "*** Future versions of Libtool will require -mode=MODE be specified." 1>&2
+    case $nonopt in
+    *cc | cc* | *++ | gcc* | *-gcc* | g++* | xlc*)
+      mode=link
+      for arg
+      do
+       case $arg in
+       -c)
+          mode=compile
+          break
+          ;;
+       esac
+      done
+      ;;
+    *db | *dbx | *strace | *truss)
+      mode=execute
+      ;;
+    *install*|cp|mv)
+      mode=install
+      ;;
+    *rm)
+      mode=uninstall
+      ;;
+    *)
+      # If we have no mode, but dlfiles were specified, then do execute mode.
+      test -n "$execute_dlfiles" && mode=execute
+
+      # Just use the default operation mode.
+      if test -z "$mode"; then
+       if test -n "$nonopt"; then
+         $echo "$modename: warning: cannot infer operation mode from \`$nonopt'" 1>&2
+       else
+         $echo "$modename: warning: cannot infer operation mode without MODE-ARGS" 1>&2
+       fi
+      fi
+      ;;
+    esac
+  fi
+
+  # Only execute mode is allowed to have -dlopen flags.
+  if test -n "$execute_dlfiles" && test "$mode" != execute; then
+    $echo "$modename: unrecognized option \`-dlopen'" 1>&2
+    $echo "$help" 1>&2
+    exit $EXIT_FAILURE
+  fi
+
+  # Change the help message to a mode-specific one.
+  generic_help="$help"
+  help="Try \`$modename --help --mode=$mode' for more information."
+
+  # These modes are in order of execution frequency so that they run quickly.
+  case $mode in
+  # libtool compile mode
+  compile)
+    modename="$modename: compile"
+    # Get the compilation command and the source file.
+    base_compile=
+    srcfile="$nonopt"  #  always keep a non-empty value in "srcfile"
+    suppress_opt=yes
+    suppress_output=
+    arg_mode=normal
+    libobj=
+    later=
+
+    for arg
+    do
+      case "$arg_mode" in
+      arg  )
+       # do not "continue".  Instead, add this to base_compile
+       lastarg="$arg"
+       arg_mode=normal
+       ;;
+
+      target )
+       libobj="$arg"
+       arg_mode=normal
+       continue
+       ;;
+
+      normal )
+       # Accept any command-line options.
+       case $arg in
+       -o)
+         if test -n "$libobj" ; then
+           $echo "$modename: you cannot specify \`-o' more than once" 1>&2
+           exit $EXIT_FAILURE
+         fi
+         arg_mode=target
+         continue
+         ;;
+
+       -static | -prefer-pic | -prefer-non-pic)
+         later="$later $arg"
+         continue
+         ;;
+
+       -no-suppress)
+         suppress_opt=no
+         continue
+         ;;
+
+       -Xcompiler)
+         arg_mode=arg  #  the next one goes into the "base_compile" arg list
+         continue      #  The current "srcfile" will either be retained or
+         ;;            #  replaced later.  I would guess that would be a bug.
+
+       -Wc,*)
+         args=`$echo "X$arg" | $Xsed -e "s/^-Wc,//"`
+         lastarg=
+         save_ifs="$IFS"; IFS=','
+         for arg in $args; do
+           IFS="$save_ifs"
+
+           # Double-quote args containing other shell metacharacters.
+           # Many Bourne shells cannot handle close brackets correctly
+           # in scan sets, so we specify it separately.
+           case $arg in
+             *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \     ]*|*]*|"")
+             arg="\"$arg\""
+             ;;
+           esac
+           lastarg="$lastarg $arg"
+         done
+         IFS="$save_ifs"
+         lastarg=`$echo "X$lastarg" | $Xsed -e "s/^ //"`
+
+         # Add the arguments to base_compile.
+         base_compile="$base_compile $lastarg"
+         continue
+         ;;
+
+       * )
+         # Accept the current argument as the source file.
+         # The previous "srcfile" becomes the current argument.
+         #
+         lastarg="$srcfile"
+         srcfile="$arg"
+         ;;
+       esac  #  case $arg
+       ;;
+      esac    #  case $arg_mode
+
+      # Aesthetically quote the previous argument.
+      lastarg=`$echo "X$lastarg" | $Xsed -e "$sed_quote_subst"`
+
+      case $lastarg in
+      # Double-quote args containing other shell metacharacters.
+      # Many Bourne shells cannot handle close brackets correctly
+      # in scan sets, so we specify it separately.
+      *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \    ]*|*]*|"")
+       lastarg="\"$lastarg\""
+       ;;
+      esac
+
+      base_compile="$base_compile $lastarg"
+    done # for arg
+
+    case $arg_mode in
+    arg)
+      $echo "$modename: you must specify an argument for -Xcompile"
+      exit $EXIT_FAILURE
+      ;;
+    target)
+      $echo "$modename: you must specify a target with \`-o'" 1>&2
+      exit $EXIT_FAILURE
+      ;;
+    *)
+      # Get the name of the library object.
+      [ -z "$libobj" ] && libobj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%'`
+      ;;
+    esac
+
+    # Recognize several different file suffixes.
+    # If the user specifies -o file.o, it is replaced with file.lo
+    xform='[cCFSifmso]'
+    case $libobj in
+    *.ada) xform=ada ;;
+    *.adb) xform=adb ;;
+    *.ads) xform=ads ;;
+    *.asm) xform=asm ;;
+    *.c++) xform=c++ ;;
+    *.cc) xform=cc ;;
+    *.ii) xform=ii ;;
+    *.class) xform=class ;;
+    *.cpp) xform=cpp ;;
+    *.cxx) xform=cxx ;;
+    *.f90) xform=f90 ;;
+    *.for) xform=for ;;
+    *.java) xform=java ;;
+    esac
+
+    libobj=`$echo "X$libobj" | $Xsed -e "s/\.$xform$/.lo/"`
+
+    case $libobj in
+    *.lo) obj=`$echo "X$libobj" | $Xsed -e "$lo2o"` ;;
+    *)
+      $echo "$modename: cannot determine name of library object from \`$libobj'" 1>&2
+      exit $EXIT_FAILURE
+      ;;
+    esac
+
+    func_infer_tag $base_compile
+
+    for arg in $later; do
+      case $arg in
+      -static)
+       build_old_libs=yes
+       continue
+       ;;
+
+      -prefer-pic)
+       pic_mode=yes
+       continue
+       ;;
+
+      -prefer-non-pic)
+       pic_mode=no
+       continue
+       ;;
+      esac
+    done
+
+    objname=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
+    xdir=`$echo "X$obj" | $Xsed -e 's%/[^/]*$%%'`
+    if test "X$xdir" = "X$obj"; then
+      xdir=
+    else
+      xdir=$xdir/
+    fi
+    lobj=${xdir}$objdir/$objname
+
+    if test -z "$base_compile"; then
+      $echo "$modename: you must specify a compilation command" 1>&2
+      $echo "$help" 1>&2
+      exit $EXIT_FAILURE
+    fi
+
+    # Delete any leftover library objects.
+    if test "$build_old_libs" = yes; then
+      removelist="$obj $lobj $libobj ${libobj}T"
+    else
+      removelist="$lobj $libobj ${libobj}T"
+    fi
+
+    $run $rm $removelist
+    trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15
+
+    # On Cygwin there's no "real" PIC flag so we must build both object types
+    case $host_os in
+    cygwin* | mingw* | pw32* | os2*)
+      pic_mode=default
+      ;;
+    esac
+    if test "$pic_mode" = no && test "$deplibs_check_method" != pass_all; then
+      # non-PIC code in shared libraries is not supported
+      pic_mode=default
+    fi
+
+    # Calculate the filename of the output object if compiler does
+    # not support -o with -c
+    if test "$compiler_c_o" = no; then
+      output_obj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext}
+      lockfile="$output_obj.lock"
+      removelist="$removelist $output_obj $lockfile"
+      trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15
+    else
+      output_obj=
+      need_locks=no
+      lockfile=
+    fi
+
+    # Lock this critical section if it is needed
+    # We use this script file to make the link, it avoids creating a new file
+    if test "$need_locks" = yes; then
+      until $run ln "$progpath" "$lockfile" 2>/dev/null; do
+       $show "Waiting for $lockfile to be removed"
+       sleep 2
+      done
+    elif test "$need_locks" = warn; then
+      if test -f "$lockfile"; then
+       $echo "\
+*** ERROR, $lockfile exists and contains:
+`cat $lockfile 2>/dev/null`
+
+This indicates that another process is trying to use the same
+temporary object file, and libtool could not work around it because
+your compiler does not support \`-c' and \`-o' together.  If you
+repeat this compilation, it may succeed, by chance, but you had better
+avoid parallel builds (make -j) in this platform, or get a better
+compiler."
+
+       $run $rm $removelist
+       exit $EXIT_FAILURE
+      fi
+      $echo $srcfile > "$lockfile"
+    fi
+
+    if test -n "$fix_srcfile_path"; then
+      eval srcfile=\"$fix_srcfile_path\"
+    fi
+
+    $run $rm "$libobj" "${libobj}T"
+
+    # Create a libtool object file (analogous to a ".la" file),
+    # but don't create it if we're doing a dry run.
+    test -z "$run" && cat > ${libobj}T <<EOF
+# $libobj - a libtool object file
+# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
+#
+# Please DO NOT delete this file!
+# It is necessary for linking the library.
+
+# Name of the PIC object.
+EOF
+
+    # Only build a PIC object if we are building libtool libraries.
+    if test "$build_libtool_libs" = yes; then
+      # Without this assignment, base_compile gets emptied.
+      fbsd_hideous_sh_bug=$base_compile
+
+      if test "$pic_mode" != no; then
+       command="$base_compile $srcfile $pic_flag"
+      else
+       # Don't build PIC code
+       command="$base_compile $srcfile"
+      fi
+
+      if test ! -d "${xdir}$objdir"; then
+       $show "$mkdir ${xdir}$objdir"
+       $run $mkdir ${xdir}$objdir
+       status=$?
+       if test "$status" -ne 0 && test ! -d "${xdir}$objdir"; then
+         exit $status
+       fi
+      fi
+
+      if test -z "$output_obj"; then
+       # Place PIC objects in $objdir
+       command="$command -o $lobj"
+      fi
+
+      $run $rm "$lobj" "$output_obj"
+
+      $show "$command"
+      if $run eval "$command"; then :
+      else
+       test -n "$output_obj" && $run $rm $removelist
+       exit $EXIT_FAILURE
+      fi
+
+      if test "$need_locks" = warn &&
+        test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
+       $echo "\
+*** ERROR, $lockfile contains:
+`cat $lockfile 2>/dev/null`
+
+but it should contain:
+$srcfile
+
+This indicates that another process is trying to use the same
+temporary object file, and libtool could not work around it because
+your compiler does not support \`-c' and \`-o' together.  If you
+repeat this compilation, it may succeed, by chance, but you had better
+avoid parallel builds (make -j) in this platform, or get a better
+compiler."
+
+       $run $rm $removelist
+       exit $EXIT_FAILURE
+      fi
+
+      # Just move the object if needed, then go on to compile the next one
+      if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then
+       $show "$mv $output_obj $lobj"
+       if $run $mv $output_obj $lobj; then :
+       else
+         error=$?
+         $run $rm $removelist
+         exit $error
+       fi
+      fi
+
+      # Append the name of the PIC object to the libtool object file.
+      test -z "$run" && cat >> ${libobj}T <<EOF
+pic_object='$objdir/$objname'
+
+EOF
+
+      # Allow error messages only from the first compilation.
+      if test "$suppress_opt" = yes; then
+        suppress_output=' >/dev/null 2>&1'
+      fi
+    else
+      # No PIC object so indicate it doesn't exist in the libtool
+      # object file.
+      test -z "$run" && cat >> ${libobj}T <<EOF
+pic_object=none
+
+EOF
+    fi
+
+    # Only build a position-dependent object if we build old libraries.
+    if test "$build_old_libs" = yes; then
+      if test "$pic_mode" != yes; then
+       # Don't build PIC code
+       command="$base_compile $srcfile"
+      else
+       command="$base_compile $srcfile $pic_flag"
+      fi
+      if test "$compiler_c_o" = yes; then
+       command="$command -o $obj"
+      fi
+
+      # Suppress compiler output if we already did a PIC compilation.
+      command="$command$suppress_output"
+      $run $rm "$obj" "$output_obj"
+      $show "$command"
+      if $run eval "$command"; then :
+      else
+       $run $rm $removelist
+       exit $EXIT_FAILURE
+      fi
+
+      if test "$need_locks" = warn &&
+        test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
+       $echo "\
+*** ERROR, $lockfile contains:
+`cat $lockfile 2>/dev/null`
+
+but it should contain:
+$srcfile
+
+This indicates that another process is trying to use the same
+temporary object file, and libtool could not work around it because
+your compiler does not support \`-c' and \`-o' together.  If you
+repeat this compilation, it may succeed, by chance, but you had better
+avoid parallel builds (make -j) in this platform, or get a better
+compiler."
+
+       $run $rm $removelist
+       exit $EXIT_FAILURE
+      fi
+
+      # Just move the object if needed
+      if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then
+       $show "$mv $output_obj $obj"
+       if $run $mv $output_obj $obj; then :
+       else
+         error=$?
+         $run $rm $removelist
+         exit $error
+       fi
+      fi
+
+      # Append the name of the non-PIC object the libtool object file.
+      # Only append if the libtool object file exists.
+      test -z "$run" && cat >> ${libobj}T <<EOF
+# Name of the non-PIC object.
+non_pic_object='$objname'
+
+EOF
+    else
+      # Append the name of the non-PIC object the libtool object file.
+      # Only append if the libtool object file exists.
+      test -z "$run" && cat >> ${libobj}T <<EOF
+# Name of the non-PIC object.
+non_pic_object=none
+
+EOF
+    fi
+
+    $run $mv "${libobj}T" "${libobj}"
+
+    # Unlock the critical section if it was locked
+    if test "$need_locks" != no; then
+      $run $rm "$lockfile"
+    fi
+
+    exit $EXIT_SUCCESS
+    ;;
+
+  # libtool link mode
+  link | relink)
+    modename="$modename: link"
+    case $host in
+    *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
+      # It is impossible to link a dll without this setting, and
+      # we shouldn't force the makefile maintainer to figure out
+      # which system we are compiling for in order to pass an extra
+      # flag for every libtool invocation.
+      # allow_undefined=no
+
+      # FIXME: Unfortunately, there are problems with the above when trying
+      # to make a dll which has undefined symbols, in which case not
+      # even a static library is built.  For now, we need to specify
+      # -no-undefined on the libtool link line when we can be certain
+      # that all symbols are satisfied, otherwise we get a static library.
+      allow_undefined=yes
+      ;;
+    *)
+      allow_undefined=yes
+      ;;
+    esac
+    libtool_args="$nonopt"
+    base_compile="$nonopt $@"
+    compile_command="$nonopt"
+    finalize_command="$nonopt"
+
+    compile_rpath=
+    finalize_rpath=
+    compile_shlibpath=
+    finalize_shlibpath=
+    convenience=
+    old_convenience=
+    deplibs=
+    old_deplibs=
+    compiler_flags=
+    linker_flags=
+    dllsearchpath=
+    lib_search_path=`pwd`
+    inst_prefix_dir=
+
+    avoid_version=no
+    dlfiles=
+    dlprefiles=
+    dlself=no
+    export_dynamic=no
+    export_symbols=
+    export_symbols_regex=
+    generated=
+    libobjs=
+    ltlibs=
+    module=no
+    no_install=no
+    objs=
+    non_pic_objects=
+    precious_files_regex=
+    prefer_static_libs=no
+    preload=no
+    prev=
+    prevarg=
+    release=
+    rpath=
+    xrpath=
+    perm_rpath=
+    temp_rpath=
+    thread_safe=no
+    vinfo=
+    vinfo_number=no
+
+    func_infer_tag $base_compile
+
+    # We need to know -static, to get the right output filenames.
+    for arg
+    do
+      case $arg in
+      -all-static | -static)
+       if test "X$arg" = "X-all-static"; then
+         if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
+           $echo "$modename: warning: complete static linking is impossible in this configuration" 1>&2
+         fi
+         if test -n "$link_static_flag"; then
+           dlopen_self=$dlopen_self_static
+         fi
+       else
+         if test -z "$pic_flag" && test -n "$link_static_flag"; then
+           dlopen_self=$dlopen_self_static
+         fi
+       fi
+       build_libtool_libs=no
+       build_old_libs=yes
+       prefer_static_libs=yes
+       break
+       ;;
+      esac
+    done
+
+    # See if our shared archives depend on static archives.
+    test -n "$old_archive_from_new_cmds" && build_old_libs=yes
+
+    # Go through the arguments, transforming them on the way.
+    while test "$#" -gt 0; do
+      arg="$1"
+      shift
+      case $arg in
+      *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \    ]*|*]*|"")
+       qarg=\"`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`\" ### testsuite: skip nested quoting test
+       ;;
+      *) qarg=$arg ;;
+      esac
+      libtool_args="$libtool_args $qarg"
+
+      # If the previous option needs an argument, assign it.
+      if test -n "$prev"; then
+       case $prev in
+       output)
+         compile_command="$compile_command @OUTPUT@"
+         finalize_command="$finalize_command @OUTPUT@"
+         ;;
+       esac
+
+       case $prev in
+       dlfiles|dlprefiles)
+         if test "$preload" = no; then
+           # Add the symbol object into the linking commands.
+           compile_command="$compile_command @SYMFILE@"
+           finalize_command="$finalize_command @SYMFILE@"
+           preload=yes
+         fi
+         case $arg in
+         *.la | *.lo) ;;  # We handle these cases below.
+         force)
+           if test "$dlself" = no; then
+             dlself=needless
+             export_dynamic=yes
+           fi
+           prev=
+           continue
+           ;;
+         self)
+           if test "$prev" = dlprefiles; then
+             dlself=yes
+           elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then
+             dlself=yes
+           else
+             dlself=needless
+             export_dynamic=yes
+           fi
+           prev=
+           continue
+           ;;
+         *)
+           if test "$prev" = dlfiles; then
+             dlfiles="$dlfiles $arg"
+           else
+             dlprefiles="$dlprefiles $arg"
+           fi
+           prev=
+           continue
+           ;;
+         esac
+         ;;
+       expsyms)
+         export_symbols="$arg"
+         if test ! -f "$arg"; then
+           $echo "$modename: symbol file \`$arg' does not exist"
+           exit $EXIT_FAILURE
+         fi
+         prev=
+         continue
+         ;;
+       expsyms_regex)
+         export_symbols_regex="$arg"
+         prev=
+         continue
+         ;;
+       inst_prefix)
+         inst_prefix_dir="$arg"
+         prev=
+         continue
+         ;;
+       precious_regex)
+         precious_files_regex="$arg"
+         prev=
+         continue
+         ;;
+       release)
+         release="-$arg"
+         prev=
+         continue
+         ;;
+       objectlist)
+         if test -f "$arg"; then
+           save_arg=$arg
+           moreargs=
+           for fil in `cat $save_arg`
+           do
+#            moreargs="$moreargs $fil"
+             arg=$fil
+             # A libtool-controlled object.
+
+             # Check to see that this really is a libtool object.
+             if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
+               pic_object=
+               non_pic_object=
+
+               # Read the .lo file
+               # If there is no directory component, then add one.
+               case $arg in
+               */* | *\\*) . $arg ;;
+               *) . ./$arg ;;
+               esac
+
+               if test -z "$pic_object" || \
+                  test -z "$non_pic_object" ||
+                  test "$pic_object" = none && \
+                  test "$non_pic_object" = none; then
+                 $echo "$modename: cannot find name of object for \`$arg'" 1>&2
+                 exit $EXIT_FAILURE
+               fi
+
+               # Extract subdirectory from the argument.
+               xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
+               if test "X$xdir" = "X$arg"; then
+                 xdir=
+               else
+                 xdir="$xdir/"
+               fi
+
+               if test "$pic_object" != none; then
+                 # Prepend the subdirectory the object is found in.
+                 pic_object="$xdir$pic_object"
+
+                 if test "$prev" = dlfiles; then
+                   if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
+                     dlfiles="$dlfiles $pic_object"
+                     prev=
+                     continue
+                   else
+                     # If libtool objects are unsupported, then we need to preload.
+                     prev=dlprefiles
+                   fi
+                 fi
+
+                 # CHECK ME:  I think I busted this.  -Ossama
+                 if test "$prev" = dlprefiles; then
+                   # Preload the old-style object.
+                   dlprefiles="$dlprefiles $pic_object"
+                   prev=
+                 fi
+
+                 # A PIC object.
+                 libobjs="$libobjs $pic_object"
+                 arg="$pic_object"
+               fi
+
+               # Non-PIC object.
+               if test "$non_pic_object" != none; then
+                 # Prepend the subdirectory the object is found in.
+                 non_pic_object="$xdir$non_pic_object"
+
+                 # A standard non-PIC object
+                 non_pic_objects="$non_pic_objects $non_pic_object"
+                 if test -z "$pic_object" || test "$pic_object" = none ; then
+                   arg="$non_pic_object"
+                 fi
+               fi
+             else
+               # Only an error if not doing a dry-run.
+               if test -z "$run"; then
+                 $echo "$modename: \`$arg' is not a valid libtool object" 1>&2
+                 exit $EXIT_FAILURE
+               else
+                 # Dry-run case.
+
+                 # Extract subdirectory from the argument.
+                 xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
+                 if test "X$xdir" = "X$arg"; then
+                   xdir=
+                 else
+                   xdir="$xdir/"
+                 fi
+
+                 pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"`
+                 non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"`
+                 libobjs="$libobjs $pic_object"
+                 non_pic_objects="$non_pic_objects $non_pic_object"
+               fi
+             fi
+           done
+         else
+           $echo "$modename: link input file \`$save_arg' does not exist"
+           exit $EXIT_FAILURE
+         fi
+         arg=$save_arg
+         prev=
+         continue
+         ;;
+       rpath | xrpath)
+         # We need an absolute path.
+         case $arg in
+         [\\/]* | [A-Za-z]:[\\/]*) ;;
+         *)
+           $echo "$modename: only absolute run-paths are allowed" 1>&2
+           exit $EXIT_FAILURE
+           ;;
+         esac
+         if test "$prev" = rpath; then
+           case "$rpath " in
+           *" $arg "*) ;;
+           *) rpath="$rpath $arg" ;;
+           esac
+         else
+           case "$xrpath " in
+           *" $arg "*) ;;
+           *) xrpath="$xrpath $arg" ;;
+           esac
+         fi
+         prev=
+         continue
+         ;;
+       xcompiler)
+         compiler_flags="$compiler_flags $qarg"
+         prev=
+         compile_command="$compile_command $qarg"
+         finalize_command="$finalize_command $qarg"
+         continue
+         ;;
+       xlinker)
+         linker_flags="$linker_flags $qarg"
+         compiler_flags="$compiler_flags $wl$qarg"
+         prev=
+         compile_command="$compile_command $wl$qarg"
+         finalize_command="$finalize_command $wl$qarg"
+         continue
+         ;;
+       xcclinker)
+         linker_flags="$linker_flags $qarg"
+         compiler_flags="$compiler_flags $qarg"
+         prev=
+         compile_command="$compile_command $qarg"
+         finalize_command="$finalize_command $qarg"
+         continue
+         ;;
+       shrext)
+         shrext_cmds="$arg"
+         prev=
+         continue
+         ;;
+       *)
+         eval "$prev=\"\$arg\""
+         prev=
+         continue
+         ;;
+       esac
+      fi # test -n "$prev"
+
+      prevarg="$arg"
+
+      case $arg in
+      -all-static)
+       if test -n "$link_static_flag"; then
+         compile_command="$compile_command $link_static_flag"
+         finalize_command="$finalize_command $link_static_flag"
+       fi
+       continue
+       ;;
+
+      -allow-undefined)
+       # FIXME: remove this flag sometime in the future.
+       $echo "$modename: \`-allow-undefined' is deprecated because it is the default" 1>&2
+       continue
+       ;;
+
+      -avoid-version)
+       avoid_version=yes
+       continue
+       ;;
+
+      -dlopen)
+       prev=dlfiles
+       continue
+       ;;
+
+      -dlpreopen)
+       prev=dlprefiles
+       continue
+       ;;
+
+      -export-dynamic)
+       export_dynamic=yes
+       continue
+       ;;
+
+      -export-symbols | -export-symbols-regex)
+       if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
+         $echo "$modename: more than one -exported-symbols argument is not allowed"
+         exit $EXIT_FAILURE
+       fi
+       if test "X$arg" = "X-export-symbols"; then
+         prev=expsyms
+       else
+         prev=expsyms_regex
+       fi
+       continue
+       ;;
+
+      -inst-prefix-dir)
+       prev=inst_prefix
+       continue
+       ;;
+
+      # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:*
+      # so, if we see these flags be careful not to treat them like -L
+      -L[A-Z][A-Z]*:*)
+       case $with_gcc/$host in
+       no/*-*-irix* | /*-*-irix*)
+         compile_command="$compile_command $arg"
+         finalize_command="$finalize_command $arg"
+         ;;
+       esac
+       continue
+       ;;
+
+      -L*)
+       dir=`$echo "X$arg" | $Xsed -e 's/^-L//'`
+       # We need an absolute path.
+       case $dir in
+       [\\/]* | [A-Za-z]:[\\/]*) ;;
+       *)
+         absdir=`cd "$dir" && pwd`
+         if test -z "$absdir"; then
+           $echo "$modename: cannot determine absolute directory name of \`$dir'" 1>&2
+           exit $EXIT_FAILURE
+         fi
+         dir="$absdir"
+         ;;
+       esac
+       case "$deplibs " in
+       *" -L$dir "*) ;;
+       *)
+         deplibs="$deplibs -L$dir"
+         lib_search_path="$lib_search_path $dir"
+         ;;
+       esac
+       case $host in
+       *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
+         case :$dllsearchpath: in
+         *":$dir:"*) ;;
+         *) dllsearchpath="$dllsearchpath:$dir";;
+         esac
+         ;;
+       esac
+       continue
+       ;;
+
+      -l*)
+       if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
+         case $host in
+         *-*-cygwin* | *-*-pw32* | *-*-beos*)
+           # These systems don't actually have a C or math library (as such)
+           continue
+           ;;
+         *-*-mingw* | *-*-os2*)
+           # These systems don't actually have a C library (as such)
+           test "X$arg" = "X-lc" && continue
+           ;;
+         *-*-openbsd* | *-*-freebsd*)
+           # Do not include libc due to us having libc/libc_r.
+           test "X$arg" = "X-lc" && continue
+           ;;
+         *-*-rhapsody* | *-*-darwin1.[012])
+           # Rhapsody C and math libraries are in the System framework
+           deplibs="$deplibs -framework System"
+           continue
+         esac
+       elif test "X$arg" = "X-lc_r"; then
+        case $host in
+        *-*-openbsd* | *-*-freebsd*)
+          # Do not include libc_r directly, use -pthread flag.
+          continue
+          ;;
+        esac
+       fi
+       deplibs="$deplibs $arg"
+       continue
+       ;;
+
+     -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe)
+       deplibs="$deplibs $arg"
+       continue
+       ;;
+
+      -module)
+       module=yes
+       continue
+       ;;
+
+      # gcc -m* arguments should be passed to the linker via $compiler_flags
+      # in order to pass architecture information to the linker
+      # (e.g. 32 vs 64-bit).  This may also be accomplished via -Wl,-mfoo
+      # but this is not reliable with gcc because gcc may use -mfoo to
+      # select a different linker, different libraries, etc, while
+      # -Wl,-mfoo simply passes -mfoo to the linker.
+      -m*)
+       # Unknown arguments in both finalize_command and compile_command need
+       # to be aesthetically quoted because they are evaled later.
+       arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
+       case $arg in
+       *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \   ]*|*]*|"")
+         arg="\"$arg\""
+         ;;
+       esac
+        compile_command="$compile_command $arg"
+        finalize_command="$finalize_command $arg"
+        if test "$with_gcc" = "yes" ; then
+          compiler_flags="$compiler_flags $arg"
+        fi
+        continue
+        ;;
+
+      -shrext)
+       prev=shrext
+       continue
+       ;;
+
+      -no-fast-install)
+       fast_install=no
+       continue
+       ;;
+
+      -no-install)
+       case $host in
+       *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
+         # The PATH hackery in wrapper scripts is required on Windows
+         # in order for the loader to find any dlls it needs.
+         $echo "$modename: warning: \`-no-install' is ignored for $host" 1>&2
+         $echo "$modename: warning: assuming \`-no-fast-install' instead" 1>&2
+         fast_install=no
+         ;;
+       *) no_install=yes ;;
+       esac
+       continue
+       ;;
+
+      -no-undefined)
+       allow_undefined=no
+       continue
+       ;;
+
+      -objectlist)
+       prev=objectlist
+       continue
+       ;;
+
+      -o) prev=output ;;
+
+      -precious-files-regex)
+       prev=precious_regex
+       continue
+       ;;
+
+      -release)
+       prev=release
+       continue
+       ;;
+
+      -rpath)
+       prev=rpath
+       continue
+       ;;
+
+      -R)
+       prev=xrpath
+       continue
+       ;;
+
+      -R*)
+       dir=`$echo "X$arg" | $Xsed -e 's/^-R//'`
+       # We need an absolute path.
+       case $dir in
+       [\\/]* | [A-Za-z]:[\\/]*) ;;
+       *)
+         $echo "$modename: only absolute run-paths are allowed" 1>&2
+         exit $EXIT_FAILURE
+         ;;
+       esac
+       case "$xrpath " in
+       *" $dir "*) ;;
+       *) xrpath="$xrpath $dir" ;;
+       esac
+       continue
+       ;;
+
+      -static)
+       # The effects of -static are defined in a previous loop.
+       # We used to do the same as -all-static on platforms that
+       # didn't have a PIC flag, but the assumption that the effects
+       # would be equivalent was wrong.  It would break on at least
+       # Digital Unix and AIX.
+       continue
+       ;;
+
+      -thread-safe)
+       thread_safe=yes
+       continue
+       ;;
+
+      -version-info)
+       prev=vinfo
+       continue
+       ;;
+      -version-number)
+       prev=vinfo
+       vinfo_number=yes
+       continue
+       ;;
+
+      -Wc,*)
+       args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wc,//'`
+       arg=
+       save_ifs="$IFS"; IFS=','
+       for flag in $args; do
+         IFS="$save_ifs"
+         case $flag in
+           *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \       ]*|*]*|"")
+           flag="\"$flag\""
+           ;;
+         esac
+         arg="$arg $wl$flag"
+         compiler_flags="$compiler_flags $flag"
+       done
+       IFS="$save_ifs"
+       arg=`$echo "X$arg" | $Xsed -e "s/^ //"`
+       ;;
+
+      -Wl,*)
+       args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wl,//'`
+       arg=
+       save_ifs="$IFS"; IFS=','
+       for flag in $args; do
+         IFS="$save_ifs"
+         case $flag in
+           *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \       ]*|*]*|"")
+           flag="\"$flag\""
+           ;;
+         esac
+         arg="$arg $wl$flag"
+         compiler_flags="$compiler_flags $wl$flag"
+         linker_flags="$linker_flags $flag"
+       done
+       IFS="$save_ifs"
+       arg=`$echo "X$arg" | $Xsed -e "s/^ //"`
+       ;;
+
+      -Xcompiler)
+       prev=xcompiler
+       continue
+       ;;
+
+      -Xlinker)
+       prev=xlinker
+       continue
+       ;;
+
+      -XCClinker)
+       prev=xcclinker
+       continue
+       ;;
+
+      # Some other compiler flag.
+      -* | +*)
+       # Unknown arguments in both finalize_command and compile_command need
+       # to be aesthetically quoted because they are evaled later.
+       arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
+       case $arg in
+       *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \   ]*|*]*|"")
+         arg="\"$arg\""
+         ;;
+       esac
+       ;;
+
+      *.$objext)
+       # A standard object.
+       objs="$objs $arg"
+       ;;
+
+      *.lo)
+       # A libtool-controlled object.
+
+       # Check to see that this really is a libtool object.
+       if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
+         pic_object=
+         non_pic_object=
+
+         # Read the .lo file
+         # If there is no directory component, then add one.
+         case $arg in
+         */* | *\\*) . $arg ;;
+         *) . ./$arg ;;
+         esac
+
+         if test -z "$pic_object" || \
+            test -z "$non_pic_object" ||
+            test "$pic_object" = none && \
+            test "$non_pic_object" = none; then
+           $echo "$modename: cannot find name of object for \`$arg'" 1>&2
+           exit $EXIT_FAILURE
+         fi
+
+         # Extract subdirectory from the argument.
+         xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
+         if test "X$xdir" = "X$arg"; then
+           xdir=
+         else
+           xdir="$xdir/"
+         fi
+
+         if test "$pic_object" != none; then
+           # Prepend the subdirectory the object is found in.
+           pic_object="$xdir$pic_object"
+
+           if test "$prev" = dlfiles; then
+             if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
+               dlfiles="$dlfiles $pic_object"
+               prev=
+               continue
+             else
+               # If libtool objects are unsupported, then we need to preload.
+               prev=dlprefiles
+             fi
+           fi
+
+           # CHECK ME:  I think I busted this.  -Ossama
+           if test "$prev" = dlprefiles; then
+             # Preload the old-style object.
+             dlprefiles="$dlprefiles $pic_object"
+             prev=
+           fi
+
+           # A PIC object.
+           libobjs="$libobjs $pic_object"
+           arg="$pic_object"
+         fi
+
+         # Non-PIC object.
+         if test "$non_pic_object" != none; then
+           # Prepend the subdirectory the object is found in.
+           non_pic_object="$xdir$non_pic_object"
+
+           # A standard non-PIC object
+           non_pic_objects="$non_pic_objects $non_pic_object"
+           if test -z "$pic_object" || test "$pic_object" = none ; then
+             arg="$non_pic_object"
+           fi
+         fi
+       else
+         # Only an error if not doing a dry-run.
+         if test -z "$run"; then
+           $echo "$modename: \`$arg' is not a valid libtool object" 1>&2
+           exit $EXIT_FAILURE
+         else
+           # Dry-run case.
+
+           # Extract subdirectory from the argument.
+           xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
+           if test "X$xdir" = "X$arg"; then
+             xdir=
+           else
+             xdir="$xdir/"
+           fi
+
+           pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"`
+           non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"`
+           libobjs="$libobjs $pic_object"
+           non_pic_objects="$non_pic_objects $non_pic_object"
+         fi
+       fi
+       ;;
+
+      *.$libext)
+       # An archive.
+       deplibs="$deplibs $arg"
+       old_deplibs="$old_deplibs $arg"
+       continue
+       ;;
+
+      *.la)
+       # A libtool-controlled library.
+
+       if test "$prev" = dlfiles; then
+         # This library was specified with -dlopen.
+         dlfiles="$dlfiles $arg"
+         prev=
+       elif test "$prev" = dlprefiles; then
+         # The library was specified with -dlpreopen.
+         dlprefiles="$dlprefiles $arg"
+         prev=
+       else
+         deplibs="$deplibs $arg"
+       fi
+       continue
+       ;;
+
+      # Some other compiler argument.
+      *)
+       # Unknown arguments in both finalize_command and compile_command need
+       # to be aesthetically quoted because they are evaled later.
+       arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
+       case $arg in
+       *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \   ]*|*]*|"")
+         arg="\"$arg\""
+         ;;
+       esac
+       ;;
+      esac # arg
+
+      # Now actually substitute the argument into the commands.
+      if test -n "$arg"; then
+       compile_command="$compile_command $arg"
+       finalize_command="$finalize_command $arg"
+      fi
+    done # argument parsing loop
+
+    if test -n "$prev"; then
+      $echo "$modename: the \`$prevarg' option requires an argument" 1>&2
+      $echo "$help" 1>&2
+      exit $EXIT_FAILURE
+    fi
+
+    if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then
+      eval arg=\"$export_dynamic_flag_spec\"
+      compile_command="$compile_command $arg"
+      finalize_command="$finalize_command $arg"
+    fi
+
+    oldlibs=
+    # calculate the name of the file, without its directory
+    outputname=`$echo "X$output" | $Xsed -e 's%^.*/%%'`
+    libobjs_save="$libobjs"
+
+    if test -n "$shlibpath_var"; then
+      # get the directories listed in $shlibpath_var
+      eval shlib_search_path=\`\$echo \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\`
+    else
+      shlib_search_path=
+    fi
+    eval sys_lib_search_path=\"$sys_lib_search_path_spec\"
+    eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\"
+
+    output_objdir=`$echo "X$output" | $Xsed -e 's%/[^/]*$%%'`
+    if test "X$output_objdir" = "X$output"; then
+      output_objdir="$objdir"
+    else
+      output_objdir="$output_objdir/$objdir"
+    fi
+    # Create the object directory.
+    if test ! -d "$output_objdir"; then
+      $show "$mkdir $output_objdir"
+      $run $mkdir $output_objdir
+      status=$?
+      if test "$status" -ne 0 && test ! -d "$output_objdir"; then
+       exit $status
+      fi
+    fi
+
+    # Determine the type of output
+    case $output in
+    "")
+      $echo "$modename: you must specify an output file" 1>&2
+      $echo "$help" 1>&2
+      exit $EXIT_FAILURE
+      ;;
+    *.$libext) linkmode=oldlib ;;
+    *.lo | *.$objext) linkmode=obj ;;
+    *.la) linkmode=lib ;;
+    *) linkmode=prog ;; # Anything else should be a program.
+    esac
+
+    case $host in
+    *cygwin* | *mingw* | *pw32*)
+      # don't eliminate duplications in $postdeps and $predeps
+      duplicate_compiler_generated_deps=yes
+      ;;
+    *)
+      duplicate_compiler_generated_deps=$duplicate_deps
+      ;;
+    esac
+    specialdeplibs=
+
+    libs=
+    # Find all interdependent deplibs by searching for libraries
+    # that are linked more than once (e.g. -la -lb -la)
+    for deplib in $deplibs; do
+      if test "X$duplicate_deps" = "Xyes" ; then
+       case "$libs " in
+       *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
+       esac
+      fi
+      libs="$libs $deplib"
+    done
+
+    if test "$linkmode" = lib; then
+      libs="$predeps $libs $compiler_lib_search_path $postdeps"
+
+      # Compute libraries that are listed more than once in $predeps
+      # $postdeps and mark them as special (i.e., whose duplicates are
+      # not to be eliminated).
+      pre_post_deps=
+      if test "X$duplicate_compiler_generated_deps" = "Xyes" ; then
+       for pre_post_dep in $predeps $postdeps; do
+         case "$pre_post_deps " in
+         *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;;
+         esac
+         pre_post_deps="$pre_post_deps $pre_post_dep"
+       done
+      fi
+      pre_post_deps=
+    fi
+
+    deplibs=
+    newdependency_libs=
+    newlib_search_path=
+    need_relink=no # whether we're linking any uninstalled libtool libraries
+    notinst_deplibs= # not-installed libtool libraries
+    notinst_path= # paths that contain not-installed libtool libraries
+    case $linkmode in
+    lib)
+       passes="conv link"
+       for file in $dlfiles $dlprefiles; do
+         case $file in
+         *.la) ;;
+         *)
+           $echo "$modename: libraries can \`-dlopen' only libtool libraries: $file" 1>&2
+           exit $EXIT_FAILURE
+           ;;
+         esac
+       done
+       ;;
+    prog)
+       compile_deplibs=
+       finalize_deplibs=
+       alldeplibs=no
+       newdlfiles=
+       newdlprefiles=
+       passes="conv scan dlopen dlpreopen link"
+       ;;
+    *)  passes="conv"
+       ;;
+    esac
+    for pass in $passes; do
+      if test "$linkmode,$pass" = "lib,link" ||
+        test "$linkmode,$pass" = "prog,scan"; then
+       libs="$deplibs"
+       deplibs=
+      fi
+      if test "$linkmode" = prog; then
+       case $pass in
+       dlopen) libs="$dlfiles" ;;
+       dlpreopen) libs="$dlprefiles" ;;
+       link) libs="$deplibs %DEPLIBS% $dependency_libs" ;;
+       esac
+      fi
+      if test "$pass" = dlopen; then
+       # Collect dlpreopened libraries
+       save_deplibs="$deplibs"
+       deplibs=
+      fi
+      for deplib in $libs; do
+       lib=
+       found=no
+       case $deplib in
+       -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe)
+         if test "$linkmode,$pass" = "prog,link"; then
+           compile_deplibs="$deplib $compile_deplibs"
+           finalize_deplibs="$deplib $finalize_deplibs"
+         else
+           deplibs="$deplib $deplibs"
+         fi
+         continue
+         ;;
+       -l*)
+         if test "$linkmode" != lib && test "$linkmode" != prog; then
+           $echo "$modename: warning: \`-l' is ignored for archives/objects" 1>&2
+           continue
+         fi
+         if test "$pass" = conv; then
+           deplibs="$deplib $deplibs"
+           continue
+         fi
+         name=`$echo "X$deplib" | $Xsed -e 's/^-l//'`
+         for searchdir in $newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path; do
+           for search_ext in .la $std_shrext .so .a; do
+             # Search the libtool library
+             lib="$searchdir/lib${name}${search_ext}"
+             if test -f "$lib"; then
+               if test "$search_ext" = ".la"; then
+                 found=yes
+               else
+                 found=no
+               fi
+               break 2
+             fi
+           done
+         done
+         if test "$found" != yes; then
+           # deplib doesn't seem to be a libtool library
+           if test "$linkmode,$pass" = "prog,link"; then
+             compile_deplibs="$deplib $compile_deplibs"
+             finalize_deplibs="$deplib $finalize_deplibs"
+           else
+             deplibs="$deplib $deplibs"
+             test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
+           fi
+           continue
+         else # deplib is a libtool library
+           # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib,
+           # We need to do some special things here, and not later.
+           if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
+             case " $predeps $postdeps " in
+             *" $deplib "*)
+               if (${SED} -e '2q' $lib |
+                    grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
+                 library_names=
+                 old_library=
+                 case $lib in
+                 */* | *\\*) . $lib ;;
+                 *) . ./$lib ;;
+                 esac
+                 for l in $old_library $library_names; do
+                   ll="$l"
+                 done
+                 if test "X$ll" = "X$old_library" ; then # only static version available
+                   found=no
+                   ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'`
+                   test "X$ladir" = "X$lib" && ladir="."
+                   lib=$ladir/$old_library
+                   if test "$linkmode,$pass" = "prog,link"; then
+                     compile_deplibs="$deplib $compile_deplibs"
+                     finalize_deplibs="$deplib $finalize_deplibs"
+                   else
+                     deplibs="$deplib $deplibs"
+                     test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
+                   fi
+                   continue
+                 fi
+               fi
+               ;;
+             *) ;;
+             esac
+           fi
+         fi
+         ;; # -l
+       -L*)
+         case $linkmode in
+         lib)
+           deplibs="$deplib $deplibs"
+           test "$pass" = conv && continue
+           newdependency_libs="$deplib $newdependency_libs"
+           newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
+           ;;
+         prog)
+           if test "$pass" = conv; then
+             deplibs="$deplib $deplibs"
+             continue
+           fi
+           if test "$pass" = scan; then
+             deplibs="$deplib $deplibs"
+           else
+             compile_deplibs="$deplib $compile_deplibs"
+             finalize_deplibs="$deplib $finalize_deplibs"
+           fi
+           newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
+           ;;
+         *)
+           $echo "$modename: warning: \`-L' is ignored for archives/objects" 1>&2
+           ;;
+         esac # linkmode
+         continue
+         ;; # -L
+       -R*)
+         if test "$pass" = link; then
+           dir=`$echo "X$deplib" | $Xsed -e 's/^-R//'`
+           # Make sure the xrpath contains only unique directories.
+           case "$xrpath " in
+           *" $dir "*) ;;
+           *) xrpath="$xrpath $dir" ;;
+           esac
+         fi
+         deplibs="$deplib $deplibs"
+         continue
+         ;;
+       *.la) lib="$deplib" ;;
+       *.$libext)
+         if test "$pass" = conv; then
+           deplibs="$deplib $deplibs"
+           continue
+         fi
+         case $linkmode in
+         lib)
+           if test "$deplibs_check_method" != pass_all; then
+             $echo
+             $echo "*** Warning: Trying to link with static lib archive $deplib."
+             $echo "*** I have the capability to make that library automatically link in when"
+             $echo "*** you link to this library.  But I can only do this if you have a"
+             $echo "*** shared version of the library, which you do not appear to have"
+             $echo "*** because the file extensions .$libext of this argument makes me believe"
+             $echo "*** that it is just a static archive that I should not used here."
+           else
+             $echo
+             $echo "*** Warning: Linking the shared library $output against the"
+             $echo "*** static library $deplib is not portable!"
+             deplibs="$deplib $deplibs"
+           fi
+           continue
+           ;;
+         prog)
+           if test "$pass" != link; then
+             deplibs="$deplib $deplibs"
+           else
+             compile_deplibs="$deplib $compile_deplibs"
+             finalize_deplibs="$deplib $finalize_deplibs"
+           fi
+           continue
+           ;;
+         esac # linkmode
+         ;; # *.$libext
+       *.lo | *.$objext)
+         if test "$pass" = conv; then
+           deplibs="$deplib $deplibs"
+         elif test "$linkmode" = prog; then
+           if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
+             # If there is no dlopen support or we're linking statically,
+             # we need to preload.
+             newdlprefiles="$newdlprefiles $deplib"
+             compile_deplibs="$deplib $compile_deplibs"
+             finalize_deplibs="$deplib $finalize_deplibs"
+           else
+             newdlfiles="$newdlfiles $deplib"
+           fi
+         fi
+         continue
+         ;;
+       %DEPLIBS%)
+         alldeplibs=yes
+         continue
+         ;;
+       esac # case $deplib
+       if test "$found" = yes || test -f "$lib"; then :
+       else
+         $echo "$modename: cannot find the library \`$lib'" 1>&2
+         exit $EXIT_FAILURE
+       fi
+
+       # Check to see that this really is a libtool archive.
+       if (${SED} -e '2q' $lib | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
+       else
+         $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
+         exit $EXIT_FAILURE
+       fi
+
+       ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'`
+       test "X$ladir" = "X$lib" && ladir="."
+
+       dlname=
+       dlopen=
+       dlpreopen=
+       libdir=
+       library_names=
+       old_library=
+       # If the library was installed with an old release of libtool,
+       # it will not redefine variables installed, or shouldnotlink
+       installed=yes
+       shouldnotlink=no
+
+       # Read the .la file
+       case $lib in
+       */* | *\\*) . $lib ;;
+       *) . ./$lib ;;
+       esac
+
+       if test "$linkmode,$pass" = "lib,link" ||
+          test "$linkmode,$pass" = "prog,scan" ||
+          { test "$linkmode" != prog && test "$linkmode" != lib; }; then
+         test -n "$dlopen" && dlfiles="$dlfiles $dlopen"
+         test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen"
+       fi
+
+       if test "$pass" = conv; then
+         # Only check for convenience libraries
+         deplibs="$lib $deplibs"
+         if test -z "$libdir"; then
+           if test -z "$old_library"; then
+             $echo "$modename: cannot find name of link library for \`$lib'" 1>&2
+             exit $EXIT_FAILURE
+           fi
+           # It is a libtool convenience library, so add in its objects.
+           convenience="$convenience $ladir/$objdir/$old_library"
+           old_convenience="$old_convenience $ladir/$objdir/$old_library"
+           tmp_libs=
+           for deplib in $dependency_libs; do
+             deplibs="$deplib $deplibs"
+              if test "X$duplicate_deps" = "Xyes" ; then
+               case "$tmp_libs " in
+               *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
+               esac
+              fi
+             tmp_libs="$tmp_libs $deplib"
+           done
+         elif test "$linkmode" != prog && test "$linkmode" != lib; then
+           $echo "$modename: \`$lib' is not a convenience library" 1>&2
+           exit $EXIT_FAILURE
+         fi
+         continue
+       fi # $pass = conv
+
+
+       # Get the name of the library we link against.
+       linklib=
+       for l in $old_library $library_names; do
+         linklib="$l"
+       done
+       if test -z "$linklib"; then
+         $echo "$modename: cannot find name of link library for \`$lib'" 1>&2
+         exit $EXIT_FAILURE
+       fi
+
+       # This library was specified with -dlopen.
+       if test "$pass" = dlopen; then
+         if test -z "$libdir"; then
+           $echo "$modename: cannot -dlopen a convenience library: \`$lib'" 1>&2
+           exit $EXIT_FAILURE
+         fi
+         if test -z "$dlname" ||
+            test "$dlopen_support" != yes ||
+            test "$build_libtool_libs" = no; then
+           # If there is no dlname, no dlopen support or we're linking
+           # statically, we need to preload.  We also need to preload any
+           # dependent libraries so libltdl's deplib preloader doesn't
+           # bomb out in the load deplibs phase.
+           dlprefiles="$dlprefiles $lib $dependency_libs"
+         else
+           newdlfiles="$newdlfiles $lib"
+         fi
+         continue
+       fi # $pass = dlopen
+
+       # We need an absolute path.
+       case $ladir in
+       [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;;
+       *)
+         abs_ladir=`cd "$ladir" && pwd`
+         if test -z "$abs_ladir"; then
+           $echo "$modename: warning: cannot determine absolute directory name of \`$ladir'" 1>&2
+           $echo "$modename: passing it literally to the linker, although it might fail" 1>&2
+           abs_ladir="$ladir"
+         fi
+         ;;
+       esac
+       laname=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
+
+       # Find the relevant object directory and library name.
+       if test "X$installed" = Xyes; then
+         if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
+           $echo "$modename: warning: library \`$lib' was moved." 1>&2
+           dir="$ladir"
+           absdir="$abs_ladir"
+           libdir="$abs_ladir"
+         else
+           dir="$libdir"
+           absdir="$libdir"
+         fi
+       else
+         dir="$ladir/$objdir"
+         absdir="$abs_ladir/$objdir"
+         # Remove this search path later
+         notinst_path="$notinst_path $abs_ladir"
+       fi # $installed = yes
+       name=`$echo "X$laname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
+
+       # This library was specified with -dlpreopen.
+       if test "$pass" = dlpreopen; then
+         if test -z "$libdir"; then
+           $echo "$modename: cannot -dlpreopen a convenience library: \`$lib'" 1>&2
+           exit $EXIT_FAILURE
+         fi
+         # Prefer using a static library (so that no silly _DYNAMIC symbols
+         # are required to link).
+         if test -n "$old_library"; then
+           newdlprefiles="$newdlprefiles $dir/$old_library"
+         # Otherwise, use the dlname, so that lt_dlopen finds it.
+         elif test -n "$dlname"; then
+           newdlprefiles="$newdlprefiles $dir/$dlname"
+         else
+           newdlprefiles="$newdlprefiles $dir/$linklib"
+         fi
+       fi # $pass = dlpreopen
+
+       if test -z "$libdir"; then
+         # Link the convenience library
+         if test "$linkmode" = lib; then
+           deplibs="$dir/$old_library $deplibs"
+         elif test "$linkmode,$pass" = "prog,link"; then
+           compile_deplibs="$dir/$old_library $compile_deplibs"
+           finalize_deplibs="$dir/$old_library $finalize_deplibs"
+         else
+           deplibs="$lib $deplibs" # used for prog,scan pass
+         fi
+         continue
+       fi
+
+
+       if test "$linkmode" = prog && test "$pass" != link; then
+         newlib_search_path="$newlib_search_path $ladir"
+         deplibs="$lib $deplibs"
+
+         linkalldeplibs=no
+         if test "$link_all_deplibs" != no || test -z "$library_names" ||
+            test "$build_libtool_libs" = no; then
+           linkalldeplibs=yes
+         fi
+
+         tmp_libs=
+         for deplib in $dependency_libs; do
+           case $deplib in
+           -L*) newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`;; ### testsuite: skip nested quoting test
+           esac
+           # Need to link against all dependency_libs?
+           if test "$linkalldeplibs" = yes; then
+             deplibs="$deplib $deplibs"
+           else
+             # Need to hardcode shared library paths
+             # or/and link against static libraries
+             newdependency_libs="$deplib $newdependency_libs"
+           fi
+           if test "X$duplicate_deps" = "Xyes" ; then
+             case "$tmp_libs " in
+             *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
+             esac
+           fi
+           tmp_libs="$tmp_libs $deplib"
+         done # for deplib
+         continue
+       fi # $linkmode = prog...
+
+       if test "$linkmode,$pass" = "prog,link"; then
+         if test -n "$library_names" &&
+            { test "$prefer_static_libs" = no || test -z "$old_library"; }; then
+           # We need to hardcode the library path
+           if test -n "$shlibpath_var"; then
+             # Make sure the rpath contains only unique directories.
+             case "$temp_rpath " in
+             *" $dir "*) ;;
+             *" $absdir "*) ;;
+             *) temp_rpath="$temp_rpath $dir" ;;
+             esac
+           fi
+
+           # Hardcode the library path.
+           # Skip directories that are in the system default run-time
+           # search path.
+           case " $sys_lib_dlsearch_path " in
+           *" $absdir "*) ;;
+           *)
+             case "$compile_rpath " in
+             *" $absdir "*) ;;
+             *) compile_rpath="$compile_rpath $absdir"
+             esac
+             ;;
+           esac
+           case " $sys_lib_dlsearch_path " in
+           *" $libdir "*) ;;
+           *)
+             case "$finalize_rpath " in
+             *" $libdir "*) ;;
+             *) finalize_rpath="$finalize_rpath $libdir"
+             esac
+             ;;
+           esac
+         fi # $linkmode,$pass = prog,link...
+
+         if test "$alldeplibs" = yes &&
+            { test "$deplibs_check_method" = pass_all ||
+              { test "$build_libtool_libs" = yes &&
+                test -n "$library_names"; }; }; then
+           # We only need to search for static libraries
+           continue
+         fi
+       fi
+
+       link_static=no # Whether the deplib will be linked statically
+       if test -n "$library_names" &&
+          { test "$prefer_static_libs" = no || test -z "$old_library"; }; then
+         if test "$installed" = no; then
+           notinst_deplibs="$notinst_deplibs $lib"
+           need_relink=yes
+         fi
+         # This is a shared library
+
+         # Warn about portability, can't link against -module's on
+         # some systems (darwin)
+         if test "$shouldnotlink" = yes && test "$pass" = link ; then
+           $echo
+           if test "$linkmode" = prog; then
+             $echo "*** Warning: Linking the executable $output against the loadable module"
+           else
+             $echo "*** Warning: Linking the shared library $output against the loadable module"
+           fi
+           $echo "*** $linklib is not portable!"
+         fi
+         if test "$linkmode" = lib &&
+            test "$hardcode_into_libs" = yes; then
+           # Hardcode the library path.
+           # Skip directories that are in the system default run-time
+           # search path.
+           case " $sys_lib_dlsearch_path " in
+           *" $absdir "*) ;;
+           *)
+             case "$compile_rpath " in
+             *" $absdir "*) ;;
+             *) compile_rpath="$compile_rpath $absdir"
+             esac
+             ;;
+           esac
+           case " $sys_lib_dlsearch_path " in
+           *" $libdir "*) ;;
+           *)
+             case "$finalize_rpath " in
+             *" $libdir "*) ;;
+             *) finalize_rpath="$finalize_rpath $libdir"
+             esac
+             ;;
+           esac
+         fi
+
+         if test -n "$old_archive_from_expsyms_cmds"; then
+           # figure out the soname
+           set dummy $library_names
+           realname="$2"
+           shift; shift
+           libname=`eval \\$echo \"$libname_spec\"`
+           # use dlname if we got it. it's perfectly good, no?
+           if test -n "$dlname"; then
+             soname="$dlname"
+           elif test -n "$soname_spec"; then
+             # bleh windows
+             case $host in
+             *cygwin* | mingw*)
+               major=`expr $current - $age`
+               versuffix="-$major"
+               ;;
+             esac
+             eval soname=\"$soname_spec\"
+           else
+             soname="$realname"
+           fi
+
+           # Make a new name for the extract_expsyms_cmds to use
+           soroot="$soname"
+           soname=`$echo $soroot | ${SED} -e 's/^.*\///'`
+           newlib="libimp-`$echo $soname | ${SED} 's/^lib//;s/\.dll$//'`.a"
+
+           # If the library has no export list, then create one now
+           if test -f "$output_objdir/$soname-def"; then :
+           else
+             $show "extracting exported symbol list from \`$soname'"
+             save_ifs="$IFS"; IFS='~'
+             cmds=$extract_expsyms_cmds
+             for cmd in $cmds; do
+               IFS="$save_ifs"
+               eval cmd=\"$cmd\"
+               $show "$cmd"
+               $run eval "$cmd" || exit $?
+             done
+             IFS="$save_ifs"
+           fi
+
+           # Create $newlib
+           if test -f "$output_objdir/$newlib"; then :; else
+             $show "generating import library for \`$soname'"
+             save_ifs="$IFS"; IFS='~'
+             cmds=$old_archive_from_expsyms_cmds
+             for cmd in $cmds; do
+               IFS="$save_ifs"
+               eval cmd=\"$cmd\"
+               $show "$cmd"
+               $run eval "$cmd" || exit $?
+             done
+             IFS="$save_ifs"
+           fi
+           # make sure the library variables are pointing to the new library
+           dir=$output_objdir
+           linklib=$newlib
+         fi # test -n "$old_archive_from_expsyms_cmds"
+
+         if test "$linkmode" = prog || test "$mode" != relink; then
+           add_shlibpath=
+           add_dir=
+           add=
+           lib_linked=yes
+           case $hardcode_action in
+           immediate | unsupported)
+             if test "$hardcode_direct" = no; then
+               add="$dir/$linklib"
+               case $host in
+                 *-*-sco3.2v5* ) add_dir="-L$dir" ;;
+                 *-*-darwin* )
+                   # if the lib is a module then we can not link against
+                   # it, someone is ignoring the new warnings I added
+                   if /usr/bin/file -L $add 2> /dev/null | $EGREP "bundle" >/dev/null ; then
+                     $echo "** Warning, lib $linklib is a module, not a shared library"
+                     if test -z "$old_library" ; then
+                       $echo
+                       $echo "** And there doesn't seem to be a static archive available"
+                       $echo "** The link will probably fail, sorry"
+                     else
+                       add="$dir/$old_library"
+                     fi
+                   fi
+               esac
+             elif test "$hardcode_minus_L" = no; then
+               case $host in
+               *-*-sunos*) add_shlibpath="$dir" ;;
+               esac
+               add_dir="-L$dir"
+               add="-l$name"
+             elif test "$hardcode_shlibpath_var" = no; then
+               add_shlibpath="$dir"
+               add="-l$name"
+             else
+               lib_linked=no
+             fi
+             ;;
+           relink)
+             if test "$hardcode_direct" = yes; then
+               add="$dir/$linklib"
+             elif test "$hardcode_minus_L" = yes; then
+               add_dir="-L$dir"
+               # Try looking first in the location we're being installed to.
+               if test -n "$inst_prefix_dir"; then
+                 case "$libdir" in
+                   [\\/]*)
+                     add_dir="$add_dir -L$inst_prefix_dir$libdir"
+                     ;;
+                 esac
+               fi
+               add="-l$name"
+             elif test "$hardcode_shlibpath_var" = yes; then
+               add_shlibpath="$dir"
+               add="-l$name"
+             else
+               lib_linked=no
+             fi
+             ;;
+           *) lib_linked=no ;;
+           esac
+
+           if test "$lib_linked" != yes; then
+             $echo "$modename: configuration error: unsupported hardcode properties"
+             exit $EXIT_FAILURE
+           fi
+
+           if test -n "$add_shlibpath"; then
+             case :$compile_shlibpath: in
+             *":$add_shlibpath:"*) ;;
+             *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;;
+             esac
+           fi
+           if test "$linkmode" = prog; then
+             test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs"
+             test -n "$add" && compile_deplibs="$add $compile_deplibs"
+           else
+             test -n "$add_dir" && deplibs="$add_dir $deplibs"
+             test -n "$add" && deplibs="$add $deplibs"
+             if test "$hardcode_direct" != yes && \
+                test "$hardcode_minus_L" != yes && \
+                test "$hardcode_shlibpath_var" = yes; then
+               case :$finalize_shlibpath: in
+               *":$libdir:"*) ;;
+               *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
+               esac
+             fi
+           fi
+         fi
+
+         if test "$linkmode" = prog || test "$mode" = relink; then
+           add_shlibpath=
+           add_dir=
+           add=
+           # Finalize command for both is simple: just hardcode it.
+           if test "$hardcode_direct" = yes; then
+             add="$libdir/$linklib"
+           elif test "$hardcode_minus_L" = yes; then
+             add_dir="-L$libdir"
+             add="-l$name"
+           elif test "$hardcode_shlibpath_var" = yes; then
+             case :$finalize_shlibpath: in
+             *":$libdir:"*) ;;
+             *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
+             esac
+             add="-l$name"
+           elif test "$hardcode_automatic" = yes; then
+             if test -n "$inst_prefix_dir" &&
+                test -f "$inst_prefix_dir$libdir/$linklib" ; then
+               add="$inst_prefix_dir$libdir/$linklib"
+             else
+               add="$libdir/$linklib"
+             fi
+           else
+             # We cannot seem to hardcode it, guess we'll fake it.
+             add_dir="-L$libdir"
+             # Try looking first in the location we're being installed to.
+             if test -n "$inst_prefix_dir"; then
+               case "$libdir" in
+                 [\\/]*)
+                   add_dir="$add_dir -L$inst_prefix_dir$libdir"
+                   ;;
+               esac
+             fi
+             add="-l$name"
+           fi
+
+           if test "$linkmode" = prog; then
+             test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs"
+             test -n "$add" && finalize_deplibs="$add $finalize_deplibs"
+           else
+             test -n "$add_dir" && deplibs="$add_dir $deplibs"
+             test -n "$add" && deplibs="$add $deplibs"
+           fi
+         fi
+       elif test "$linkmode" = prog; then
+         # Here we assume that one of hardcode_direct or hardcode_minus_L
+         # is not unsupported.  This is valid on all known static and
+         # shared platforms.
+         if test "$hardcode_direct" != unsupported; then
+           test -n "$old_library" && linklib="$old_library"
+           compile_deplibs="$dir/$linklib $compile_deplibs"
+           finalize_deplibs="$dir/$linklib $finalize_deplibs"
+         else
+           compile_deplibs="-l$name -L$dir $compile_deplibs"
+           finalize_deplibs="-l$name -L$dir $finalize_deplibs"
+         fi
+       elif test "$build_libtool_libs" = yes; then
+         # Not a shared library
+         if test "$deplibs_check_method" != pass_all; then
+           # We're trying link a shared library against a static one
+           # but the system doesn't support it.
+
+           # Just print a warning and add the library to dependency_libs so
+           # that the program can be linked against the static library.
+           $echo
+           $echo "*** Warning: This system can not link to static lib archive $lib."
+           $echo "*** I have the capability to make that library automatically link in when"
+           $echo "*** you link to this library.  But I can only do this if you have a"
+           $echo "*** shared version of the library, which you do not appear to have."
+           if test "$module" = yes; then
+             $echo "*** But as you try to build a module library, libtool will still create "
+             $echo "*** a static module, that should work as long as the dlopening application"
+             $echo "*** is linked with the -dlopen flag to resolve symbols at runtime."
+             if test -z "$global_symbol_pipe"; then
+               $echo
+               $echo "*** However, this would only work if libtool was able to extract symbol"
+               $echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
+               $echo "*** not find such a program.  So, this module is probably useless."
+               $echo "*** \`nm' from GNU binutils and a full rebuild may help."
+             fi
+             if test "$build_old_libs" = no; then
+               build_libtool_libs=module
+               build_old_libs=yes
+             else
+               build_libtool_libs=no
+             fi
+           fi
+         else
+           convenience="$convenience $dir/$old_library"
+           old_convenience="$old_convenience $dir/$old_library"
+           deplibs="$dir/$old_library $deplibs"
+           link_static=yes
+         fi
+       fi # link shared/static library?
+
+       if test "$linkmode" = lib; then
+         if test -n "$dependency_libs" &&
+            { test "$hardcode_into_libs" != yes ||
+              test "$build_old_libs" = yes ||
+              test "$link_static" = yes; }; then
+           # Extract -R from dependency_libs
+           temp_deplibs=
+           for libdir in $dependency_libs; do
+             case $libdir in
+             -R*) temp_xrpath=`$echo "X$libdir" | $Xsed -e 's/^-R//'`
+                  case " $xrpath " in
+                  *" $temp_xrpath "*) ;;
+                  *) xrpath="$xrpath $temp_xrpath";;
+                  esac;;
+             *) temp_deplibs="$temp_deplibs $libdir";;
+             esac
+           done
+           dependency_libs="$temp_deplibs"
+         fi
+
+         newlib_search_path="$newlib_search_path $absdir"
+         # Link against this library
+         test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs"
+         # ... and its dependency_libs
+         tmp_libs=
+         for deplib in $dependency_libs; do
+           newdependency_libs="$deplib $newdependency_libs"
+           if test "X$duplicate_deps" = "Xyes" ; then
+             case "$tmp_libs " in
+             *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
+             esac
+           fi
+           tmp_libs="$tmp_libs $deplib"
+         done
+
+         if test "$link_all_deplibs" != no; then
+           # Add the search paths of all dependency libraries
+           for deplib in $dependency_libs; do
+             case $deplib in
+             -L*) path="$deplib" ;;
+             *.la)
+               dir=`$echo "X$deplib" | $Xsed -e 's%/[^/]*$%%'`
+               test "X$dir" = "X$deplib" && dir="."
+               # We need an absolute path.
+               case $dir in
+               [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;;
+               *)
+                 absdir=`cd "$dir" && pwd`
+                 if test -z "$absdir"; then
+                   $echo "$modename: warning: cannot determine absolute directory name of \`$dir'" 1>&2
+                   absdir="$dir"
+                 fi
+                 ;;
+               esac
+               if grep "^installed=no" $deplib > /dev/null; then
+                 path="$absdir/$objdir"
+               else
+                 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
+                 if test -z "$libdir"; then
+                   $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
+                   exit $EXIT_FAILURE
+                 fi
+                 if test "$absdir" != "$libdir"; then
+                   $echo "$modename: warning: \`$deplib' seems to be moved" 1>&2
+                 fi
+                 path="$absdir"
+               fi
+               depdepl=
+               case $host in
+               *-*-darwin*)
+                 # we do not want to link against static libs,
+                 # but need to link against shared
+                 eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
+                 if test -n "$deplibrary_names" ; then
+                   for tmp in $deplibrary_names ; do
+                     depdepl=$tmp
+                   done
+                   if test -f "$path/$depdepl" ; then
+                     depdepl="$path/$depdepl"
+                   fi
+                   # do not add paths which are already there
+                   case " $newlib_search_path " in
+                   *" $path "*) ;;
+                   *) newlib_search_path="$newlib_search_path $path";;
+                   esac
+                 fi
+                 path=""
+                 ;;
+               *)
+                 path="-L$path"
+                 ;;
+               esac
+               ;;
+             -l*)
+               case $host in
+               *-*-darwin*)
+                 # Again, we only want to link against shared libraries
+                 eval tmp_libs=`$echo "X$deplib" | $Xsed -e "s,^\-l,,"`
+                 for tmp in $newlib_search_path ; do
+                   if test -f "$tmp/lib$tmp_libs.dylib" ; then
+                     eval depdepl="$tmp/lib$tmp_libs.dylib"
+                     break
+                   fi
+                 done
+                 path=""
+                 ;;
+               *) continue ;;
+               esac
+               ;;
+             *) continue ;;
+             esac
+             case " $deplibs " in
+             *" $depdepl "*) ;;
+             *) deplibs="$depdepl $deplibs" ;;
+             esac
+             case " $deplibs " in
+             *" $path "*) ;;
+             *) deplibs="$deplibs $path" ;;
+             esac
+           done
+         fi # link_all_deplibs != no
+       fi # linkmode = lib
+      done # for deplib in $libs
+      dependency_libs="$newdependency_libs"
+      if test "$pass" = dlpreopen; then
+       # Link the dlpreopened libraries before other libraries
+       for deplib in $save_deplibs; do
+         deplibs="$deplib $deplibs"
+       done
+      fi
+      if test "$pass" != dlopen; then
+       if test "$pass" != conv; then
+         # Make sure lib_search_path contains only unique directories.
+         lib_search_path=
+         for dir in $newlib_search_path; do
+           case "$lib_search_path " in
+           *" $dir "*) ;;
+           *) lib_search_path="$lib_search_path $dir" ;;
+           esac
+         done
+         newlib_search_path=
+       fi
+
+       if test "$linkmode,$pass" != "prog,link"; then
+         vars="deplibs"
+       else
+         vars="compile_deplibs finalize_deplibs"
+       fi
+       for var in $vars dependency_libs; do
+         # Add libraries to $var in reverse order
+         eval tmp_libs=\"\$$var\"
+         new_libs=
+         for deplib in $tmp_libs; do
+           # FIXME: Pedantically, this is the right thing to do, so
+           #        that some nasty dependency loop isn't accidentally
+           #        broken:
+           #new_libs="$deplib $new_libs"
+           # Pragmatically, this seems to cause very few problems in
+           # practice:
+           case $deplib in
+           -L*) new_libs="$deplib $new_libs" ;;
+           -R*) ;;
+           *)
+             # And here is the reason: when a library appears more
+             # than once as an explicit dependence of a library, or
+             # is implicitly linked in more than once by the
+             # compiler, it is considered special, and multiple
+             # occurrences thereof are not removed.  Compare this
+             # with having the same library being listed as a
+             # dependency of multiple other libraries: in this case,
+             # we know (pedantically, we assume) the library does not
+             # need to be listed more than once, so we keep only the
+             # last copy.  This is not always right, but it is rare
+             # enough that we require users that really mean to play
+             # such unportable linking tricks to link the library
+             # using -Wl,-lname, so that libtool does not consider it
+             # for duplicate removal.
+             case " $specialdeplibs " in
+             *" $deplib "*) new_libs="$deplib $new_libs" ;;
+             *)
+               case " $new_libs " in
+               *" $deplib "*) ;;
+               *) new_libs="$deplib $new_libs" ;;
+               esac
+               ;;
+             esac
+             ;;
+           esac
+         done
+         tmp_libs=
+         for deplib in $new_libs; do
+           case $deplib in
+           -L*)
+             case " $tmp_libs " in
+             *" $deplib "*) ;;
+             *) tmp_libs="$tmp_libs $deplib" ;;
+             esac
+             ;;
+           *) tmp_libs="$tmp_libs $deplib" ;;
+           esac
+         done
+         eval $var=\"$tmp_libs\"
+       done # for var
+      fi
+      # Last step: remove runtime libs from dependency_libs
+      # (they stay in deplibs)
+      tmp_libs=
+      for i in $dependency_libs ; do
+       case " $predeps $postdeps $compiler_lib_search_path " in
+       *" $i "*)
+         i=""
+         ;;
+       esac
+       if test -n "$i" ; then
+         tmp_libs="$tmp_libs $i"
+       fi
+      done
+      dependency_libs=$tmp_libs
+    done # for pass
+    if test "$linkmode" = prog; then
+      dlfiles="$newdlfiles"
+      dlprefiles="$newdlprefiles"
+    fi
+
+    case $linkmode in
+    oldlib)
+      if test -n "$deplibs"; then
+       $echo "$modename: warning: \`-l' and \`-L' are ignored for archives" 1>&2
+      fi
+
+      if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
+       $echo "$modename: warning: \`-dlopen' is ignored for archives" 1>&2
+      fi
+
+      if test -n "$rpath"; then
+       $echo "$modename: warning: \`-rpath' is ignored for archives" 1>&2
+      fi
+
+      if test -n "$xrpath"; then
+       $echo "$modename: warning: \`-R' is ignored for archives" 1>&2
+      fi
+
+      if test -n "$vinfo"; then
+       $echo "$modename: warning: \`-version-info/-version-number' is ignored for archives" 1>&2
+      fi
+
+      if test -n "$release"; then
+       $echo "$modename: warning: \`-release' is ignored for archives" 1>&2
+      fi
+
+      if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
+       $echo "$modename: warning: \`-export-symbols' is ignored for archives" 1>&2
+      fi
+
+      # Now set the variables for building old libraries.
+      build_libtool_libs=no
+      oldlibs="$output"
+      objs="$objs$old_deplibs"
+      ;;
+
+    lib)
+      # Make sure we only generate libraries of the form `libNAME.la'.
+      case $outputname in
+      lib*)
+       name=`$echo "X$outputname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
+       eval shared_ext=\"$shrext_cmds\"
+       eval libname=\"$libname_spec\"
+       ;;
+      *)
+       if test "$module" = no; then
+         $echo "$modename: libtool library \`$output' must begin with \`lib'" 1>&2
+         $echo "$help" 1>&2
+         exit $EXIT_FAILURE
+       fi
+       if test "$need_lib_prefix" != no; then
+         # Add the "lib" prefix for modules if required
+         name=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
+         eval shared_ext=\"$shrext_cmds\"
+         eval libname=\"$libname_spec\"
+       else
+         libname=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
+       fi
+       ;;
+      esac
+
+      if test -n "$objs"; then
+       if test "$deplibs_check_method" != pass_all; then
+         $echo "$modename: cannot build libtool library \`$output' from non-libtool objects on this host:$objs" 2>&1
+         exit $EXIT_FAILURE
+       else
+         $echo
+         $echo "*** Warning: Linking the shared library $output against the non-libtool"
+         $echo "*** objects $objs is not portable!"
+         libobjs="$libobjs $objs"
+       fi
+      fi
+
+      if test "$dlself" != no; then
+       $echo "$modename: warning: \`-dlopen self' is ignored for libtool libraries" 1>&2
+      fi
+
+      set dummy $rpath
+      if test "$#" -gt 2; then
+       $echo "$modename: warning: ignoring multiple \`-rpath's for a libtool library" 1>&2
+      fi
+      install_libdir="$2"
+
+      oldlibs=
+      if test -z "$rpath"; then
+       if test "$build_libtool_libs" = yes; then
+         # Building a libtool convenience library.
+         # Some compilers have problems with a `.al' extension so
+         # convenience libraries should have the same extension an
+         # archive normally would.
+         oldlibs="$output_objdir/$libname.$libext $oldlibs"
+         build_libtool_libs=convenience
+         build_old_libs=yes
+       fi
+
+       if test -n "$vinfo"; then
+         $echo "$modename: warning: \`-version-info/-version-number' is ignored for convenience libraries" 1>&2
+       fi
+
+       if test -n "$release"; then
+         $echo "$modename: warning: \`-release' is ignored for convenience libraries" 1>&2
+       fi
+      else
+
+       # Parse the version information argument.
+       save_ifs="$IFS"; IFS=':'
+       set dummy $vinfo 0 0 0
+       IFS="$save_ifs"
+
+       if test -n "$8"; then
+         $echo "$modename: too many parameters to \`-version-info'" 1>&2
+         $echo "$help" 1>&2
+         exit $EXIT_FAILURE
+       fi
+
+       # convert absolute version numbers to libtool ages
+       # this retains compatibility with .la files and attempts
+       # to make the code below a bit more comprehensible
+
+       case $vinfo_number in
+       yes)
+         number_major="$2"
+         number_minor="$3"
+         number_revision="$4"
+         #
+         # There are really only two kinds -- those that
+         # use the current revision as the major version
+         # and those that subtract age and use age as
+         # a minor version.  But, then there is irix
+         # which has an extra 1 added just for fun
+         #
+         case $version_type in
+         darwin|linux|osf|windows)
+           current=`expr $number_major + $number_minor`
+           age="$number_minor"
+           revision="$number_revision"
+           ;;
+         freebsd-aout|freebsd-elf|sunos)
+           current="$number_major"
+           revision="$number_minor"
+           age="0"
+           ;;
+         irix|nonstopux)
+           current=`expr $number_major + $number_minor - 1`
+           age="$number_minor"
+           revision="$number_minor"
+           ;;
+         esac
+         ;;
+       no)
+         current="$2"
+         revision="$3"
+         age="$4"
+         ;;
+       esac
+
+       # Check that each of the things are valid numbers.
+       case $current in
+       [0-9]*) ;;
+       *)
+         $echo "$modename: CURRENT \`$current' is not a nonnegative integer" 1>&2
+         $echo "$modename: \`$vinfo' is not valid version information" 1>&2
+         exit $EXIT_FAILURE
+         ;;
+       esac
+
+       case $revision in
+       [0-9]*) ;;
+       *)
+         $echo "$modename: REVISION \`$revision' is not a nonnegative integer" 1>&2
+         $echo "$modename: \`$vinfo' is not valid version information" 1>&2
+         exit $EXIT_FAILURE
+         ;;
+       esac
+
+       case $age in
+       [0-9]*) ;;
+       *)
+         $echo "$modename: AGE \`$age' is not a nonnegative integer" 1>&2
+         $echo "$modename: \`$vinfo' is not valid version information" 1>&2
+         exit $EXIT_FAILURE
+         ;;
+       esac
+
+       if test "$age" -gt "$current"; then
+         $echo "$modename: AGE \`$age' is greater than the current interface number \`$current'" 1>&2
+         $echo "$modename: \`$vinfo' is not valid version information" 1>&2
+         exit $EXIT_FAILURE
+       fi
+
+       # Calculate the version variables.
+       major=
+       versuffix=
+       verstring=
+       case $version_type in
+       none) ;;
+
+       darwin)
+         # Like Linux, but with the current version available in
+         # verstring for coding it into the library header
+         major=.`expr $current - $age`
+         versuffix="$major.$age.$revision"
+         # Darwin ld doesn't like 0 for these options...
+         minor_current=`expr $current + 1`
+         verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
+         ;;
+
+       freebsd-aout)
+         major=".$current"
+         versuffix=".$current.$revision";
+         ;;
+
+       freebsd-elf)
+         major=".$current"
+         versuffix=".$current";
+         ;;
+
+       irix | nonstopux)
+         major=`expr $current - $age + 1`
+
+         case $version_type in
+           nonstopux) verstring_prefix=nonstopux ;;
+           *)         verstring_prefix=sgi ;;
+         esac
+         verstring="$verstring_prefix$major.$revision"
+
+         # Add in all the interfaces that we are compatible with.
+         loop=$revision
+         while test "$loop" -ne 0; do
+           iface=`expr $revision - $loop`
+           loop=`expr $loop - 1`
+           verstring="$verstring_prefix$major.$iface:$verstring"
+         done
+
+         # Before this point, $major must not contain `.'.
+         major=.$major
+         versuffix="$major.$revision"
+         ;;
+
+       linux)
+         major=.`expr $current - $age`
+         versuffix="$major.$age.$revision"
+         ;;
+
+       osf)
+         major=.`expr $current - $age`
+         versuffix=".$current.$age.$revision"
+         verstring="$current.$age.$revision"
+
+         # Add in all the interfaces that we are compatible with.
+         loop=$age
+         while test "$loop" -ne 0; do
+           iface=`expr $current - $loop`
+           loop=`expr $loop - 1`
+           verstring="$verstring:${iface}.0"
+         done
+
+         # Make executables depend on our current version.
+         verstring="$verstring:${current}.0"
+         ;;
+
+       sunos)
+         major=".$current"
+         versuffix=".$current.$revision"
+         ;;
+
+       windows)
+         # Use '-' rather than '.', since we only want one
+         # extension on DOS 8.3 filesystems.
+         major=`expr $current - $age`
+         versuffix="-$major"
+         ;;
+
+       *)
+         $echo "$modename: unknown library version type \`$version_type'" 1>&2
+         $echo "Fatal configuration error.  See the $PACKAGE docs for more information." 1>&2
+         exit $EXIT_FAILURE
+         ;;
+       esac
+
+       # Clear the version info if we defaulted, and they specified a release.
+       if test -z "$vinfo" && test -n "$release"; then
+         major=
+         case $version_type in
+         darwin)
+           # we can't check for "0.0" in archive_cmds due to quoting
+           # problems, so we reset it completely
+           verstring=
+           ;;
+         *)
+           verstring="0.0"
+           ;;
+         esac
+         if test "$need_version" = no; then
+           versuffix=
+         else
+           versuffix=".0.0"
+         fi
+       fi
+
+       # Remove version info from name if versioning should be avoided
+       if test "$avoid_version" = yes && test "$need_version" = no; then
+         major=
+         versuffix=
+         verstring=""
+       fi
+
+       # Check to see if the archive will have undefined symbols.
+       if test "$allow_undefined" = yes; then
+         if test "$allow_undefined_flag" = unsupported; then
+           $echo "$modename: warning: undefined symbols not allowed in $host shared libraries" 1>&2
+           build_libtool_libs=no
+           build_old_libs=yes
+         fi
+       else
+         # Don't allow undefined symbols.
+         allow_undefined_flag="$no_undefined_flag"
+       fi
+      fi
+
+      if test "$mode" != relink; then
+       # Remove our outputs, but don't remove object files since they
+       # may have been created when compiling PIC objects.
+       removelist=
+       tempremovelist=`$echo "$output_objdir/*"`
+       for p in $tempremovelist; do
+         case $p in
+           *.$objext)
+              ;;
+           $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*)
+              if test "X$precious_files_regex" != "X"; then
+                if echo $p | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
+                then
+                  continue
+                fi
+              fi
+              removelist="$removelist $p"
+              ;;
+           *) ;;
+         esac
+       done
+       if test -n "$removelist"; then
+         $show "${rm}r $removelist"
+         $run ${rm}r $removelist
+       fi
+      fi
+
+      # Now set the variables for building old libraries.
+      if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then
+       oldlibs="$oldlibs $output_objdir/$libname.$libext"
+
+       # Transform .lo files to .o files.
+       oldobjs="$objs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP`
+      fi
+
+      # Eliminate all temporary directories.
+      for path in $notinst_path; do
+       lib_search_path=`$echo "$lib_search_path " | ${SED} -e 's% $path % %g'`
+       deplibs=`$echo "$deplibs " | ${SED} -e 's% -L$path % %g'`
+       dependency_libs=`$echo "$dependency_libs " | ${SED} -e 's% -L$path % %g'`
+      done
+
+      if test -n "$xrpath"; then
+       # If the user specified any rpath flags, then add them.
+       temp_xrpath=
+       for libdir in $xrpath; do
+         temp_xrpath="$temp_xrpath -R$libdir"
+         case "$finalize_rpath " in
+         *" $libdir "*) ;;
+         *) finalize_rpath="$finalize_rpath $libdir" ;;
+         esac
+       done
+       if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then
+         dependency_libs="$temp_xrpath $dependency_libs"
+       fi
+      fi
+
+      # Make sure dlfiles contains only unique files that won't be dlpreopened
+      old_dlfiles="$dlfiles"
+      dlfiles=
+      for lib in $old_dlfiles; do
+       case " $dlprefiles $dlfiles " in
+       *" $lib "*) ;;
+       *) dlfiles="$dlfiles $lib" ;;
+       esac
+      done
+
+      # Make sure dlprefiles contains only unique files
+      old_dlprefiles="$dlprefiles"
+      dlprefiles=
+      for lib in $old_dlprefiles; do
+       case "$dlprefiles " in
+       *" $lib "*) ;;
+       *) dlprefiles="$dlprefiles $lib" ;;
+       esac
+      done
+
+      if test "$build_libtool_libs" = yes; then
+       if test -n "$rpath"; then
+         case $host in
+         *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos*)
+           # these systems don't actually have a c library (as such)!
+           ;;
+         *-*-rhapsody* | *-*-darwin1.[012])
+           # Rhapsody C library is in the System framework
+           deplibs="$deplibs -framework System"
+           ;;
+         *-*-netbsd*)
+           # Don't link with libc until the a.out ld.so is fixed.
+           ;;
+         *-*-openbsd* | *-*-freebsd*)
+           # Do not include libc due to us having libc/libc_r.
+           test "X$arg" = "X-lc" && continue
+           ;;
+         *)
+           # Add libc to deplibs on all other systems if necessary.
+           if test "$build_libtool_need_lc" = "yes"; then
+             deplibs="$deplibs -lc"
+           fi
+           ;;
+         esac
+       fi
+
+       # Transform deplibs into only deplibs that can be linked in shared.
+       name_save=$name
+       libname_save=$libname
+       release_save=$release
+       versuffix_save=$versuffix
+       major_save=$major
+       # I'm not sure if I'm treating the release correctly.  I think
+       # release should show up in the -l (ie -lgmp5) so we don't want to
+       # add it in twice.  Is that correct?
+       release=""
+       versuffix=""
+       major=""
+       newdeplibs=
+       droppeddeps=no
+       case $deplibs_check_method in
+       pass_all)
+         # Don't check for shared/static.  Everything works.
+         # This might be a little naive.  We might want to check
+         # whether the library exists or not.  But this is on
+         # osf3 & osf4 and I'm not really sure... Just
+         # implementing what was already the behavior.
+         newdeplibs=$deplibs
+         ;;
+       test_compile)
+         # This code stresses the "libraries are programs" paradigm to its
+         # limits. Maybe even breaks it.  We compile a program, linking it
+         # against the deplibs as a proxy for the library.  Then we can check
+         # whether they linked in statically or dynamically with ldd.
+         $rm conftest.c
+         cat > conftest.c <<EOF
+         int main() { return 0; }
+EOF
+         $rm conftest
+         $LTCC -o conftest conftest.c $deplibs
+         if test "$?" -eq 0 ; then
+           ldd_output=`ldd conftest`
+           for i in $deplibs; do
+             name="`expr $i : '-l\(.*\)'`"
+             # If $name is empty we are operating on a -L argument.
+              if test "$name" != "" && test "$name" -ne "0"; then
+               if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
+                 case " $predeps $postdeps " in
+                 *" $i "*)
+                   newdeplibs="$newdeplibs $i"
+                   i=""
+                   ;;
+                 esac
+               fi
+               if test -n "$i" ; then
+                 libname=`eval \\$echo \"$libname_spec\"`
+                 deplib_matches=`eval \\$echo \"$library_names_spec\"`
+                 set dummy $deplib_matches
+                 deplib_match=$2
+                 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
+                   newdeplibs="$newdeplibs $i"
+                 else
+                   droppeddeps=yes
+                   $echo
+                   $echo "*** Warning: dynamic linker does not accept needed library $i."
+                   $echo "*** I have the capability to make that library automatically link in when"
+                   $echo "*** you link to this library.  But I can only do this if you have a"
+                   $echo "*** shared version of the library, which I believe you do not have"
+                   $echo "*** because a test_compile did reveal that the linker did not use it for"
+                   $echo "*** its dynamic dependency list that programs get resolved with at runtime."
+                 fi
+               fi
+             else
+               newdeplibs="$newdeplibs $i"
+             fi
+           done
+         else
+           # Error occurred in the first compile.  Let's try to salvage
+           # the situation: Compile a separate program for each library.
+           for i in $deplibs; do
+             name="`expr $i : '-l\(.*\)'`"
+             # If $name is empty we are operating on a -L argument.
+              if test "$name" != "" && test "$name" != "0"; then
+               $rm conftest
+               $LTCC -o conftest conftest.c $i
+               # Did it work?
+               if test "$?" -eq 0 ; then
+                 ldd_output=`ldd conftest`
+                 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
+                   case " $predeps $postdeps " in
+                   *" $i "*)
+                     newdeplibs="$newdeplibs $i"
+                     i=""
+                     ;;
+                   esac
+                 fi
+                 if test -n "$i" ; then
+                   libname=`eval \\$echo \"$libname_spec\"`
+                   deplib_matches=`eval \\$echo \"$library_names_spec\"`
+                   set dummy $deplib_matches
+                   deplib_match=$2
+                   if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
+                     newdeplibs="$newdeplibs $i"
+                   else
+                     droppeddeps=yes
+                     $echo
+                     $echo "*** Warning: dynamic linker does not accept needed library $i."
+                     $echo "*** I have the capability to make that library automatically link in when"
+                     $echo "*** you link to this library.  But I can only do this if you have a"
+                     $echo "*** shared version of the library, which you do not appear to have"
+                     $echo "*** because a test_compile did reveal that the linker did not use this one"
+                     $echo "*** as a dynamic dependency that programs can get resolved with at runtime."
+                   fi
+                 fi
+               else
+                 droppeddeps=yes
+                 $echo
+                 $echo "*** Warning!  Library $i is needed by this library but I was not able to"
+                 $echo "***  make it link in!  You will probably need to install it or some"
+                 $echo "*** library that it depends on before this library will be fully"
+                 $echo "*** functional.  Installing it before continuing would be even better."
+               fi
+             else
+               newdeplibs="$newdeplibs $i"
+             fi
+           done
+         fi
+         ;;
+       file_magic*)
+         set dummy $deplibs_check_method
+         file_magic_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
+         for a_deplib in $deplibs; do
+           name="`expr $a_deplib : '-l\(.*\)'`"
+           # If $name is empty we are operating on a -L argument.
+            if test "$name" != "" && test  "$name" != "0"; then
+             if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
+               case " $predeps $postdeps " in
+               *" $a_deplib "*)
+                 newdeplibs="$newdeplibs $a_deplib"
+                 a_deplib=""
+                 ;;
+               esac
+             fi
+             if test -n "$a_deplib" ; then
+               libname=`eval \\$echo \"$libname_spec\"`
+               for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
+                 potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
+                 for potent_lib in $potential_libs; do
+                     # Follow soft links.
+                     if ls -lLd "$potent_lib" 2>/dev/null \
+                        | grep " -> " >/dev/null; then
+                       continue
+                     fi
+                     # The statement above tries to avoid entering an
+                     # endless loop below, in case of cyclic links.
+                     # We might still enter an endless loop, since a link
+                     # loop can be closed while we follow links,
+                     # but so what?
+                     potlib="$potent_lib"
+                     while test -h "$potlib" 2>/dev/null; do
+                       potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'`
+                       case $potliblink in
+                       [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";;
+                       *) potlib=`$echo "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";;
+                       esac
+                     done
+                     if eval $file_magic_cmd \"\$potlib\" 2>/dev/null \
+                        | ${SED} 10q \
+                        | $EGREP "$file_magic_regex" > /dev/null; then
+                       newdeplibs="$newdeplibs $a_deplib"
+                       a_deplib=""
+                       break 2
+                     fi
+                 done
+               done
+             fi
+             if test -n "$a_deplib" ; then
+               droppeddeps=yes
+               $echo
+               $echo "*** Warning: linker path does not have real file for library $a_deplib."
+               $echo "*** I have the capability to make that library automatically link in when"
+               $echo "*** you link to this library.  But I can only do this if you have a"
+               $echo "*** shared version of the library, which you do not appear to have"
+               $echo "*** because I did check the linker path looking for a file starting"
+               if test -z "$potlib" ; then
+                 $echo "*** with $libname but no candidates were found. (...for file magic test)"
+               else
+                 $echo "*** with $libname and none of the candidates passed a file format test"
+                 $echo "*** using a file magic. Last file checked: $potlib"
+               fi
+             fi
+           else
+             # Add a -L argument.
+             newdeplibs="$newdeplibs $a_deplib"
+           fi
+         done # Gone through all deplibs.
+         ;;
+       match_pattern*)
+         set dummy $deplibs_check_method
+         match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
+         for a_deplib in $deplibs; do
+           name="`expr $a_deplib : '-l\(.*\)'`"
+           # If $name is empty we are operating on a -L argument.
+           if test -n "$name" && test "$name" != "0"; then
+             if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
+               case " $predeps $postdeps " in
+               *" $a_deplib "*)
+                 newdeplibs="$newdeplibs $a_deplib"
+                 a_deplib=""
+                 ;;
+               esac
+             fi
+             if test -n "$a_deplib" ; then
+               libname=`eval \\$echo \"$libname_spec\"`
+               for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
+                 potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
+                 for potent_lib in $potential_libs; do
+                   potlib="$potent_lib" # see symlink-check above in file_magic test
+                   if eval $echo \"$potent_lib\" 2>/dev/null \
+                       | ${SED} 10q \
+                       | $EGREP "$match_pattern_regex" > /dev/null; then
+                     newdeplibs="$newdeplibs $a_deplib"
+                     a_deplib=""
+                     break 2
+                   fi
+                 done
+               done
+             fi
+             if test -n "$a_deplib" ; then
+               droppeddeps=yes
+               $echo
+               $echo "*** Warning: linker path does not have real file for library $a_deplib."
+               $echo "*** I have the capability to make that library automatically link in when"
+               $echo "*** you link to this library.  But I can only do this if you have a"
+               $echo "*** shared version of the library, which you do not appear to have"
+               $echo "*** because I did check the linker path looking for a file starting"
+               if test -z "$potlib" ; then
+                 $echo "*** with $libname but no candidates were found. (...for regex pattern test)"
+               else
+                 $echo "*** with $libname and none of the candidates passed a file format test"
+                 $echo "*** using a regex pattern. Last file checked: $potlib"
+               fi
+             fi
+           else
+             # Add a -L argument.
+             newdeplibs="$newdeplibs $a_deplib"
+           fi
+         done # Gone through all deplibs.
+         ;;
+       none | unknown | *)
+         newdeplibs=""
+         tmp_deplibs=`$echo "X $deplibs" | $Xsed -e 's/ -lc$//' \
+           -e 's/ -[LR][^ ]*//g'`
+         if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
+           for i in $predeps $postdeps ; do
+             # can't use Xsed below, because $i might contain '/'
+             tmp_deplibs=`$echo "X $tmp_deplibs" | ${SED} -e "1s,^X,," -e "s,$i,,"`
+           done
+         fi
+         if $echo "X $tmp_deplibs" | $Xsed -e 's/[     ]//g' \
+           | grep . >/dev/null; then
+           $echo
+           if test "X$deplibs_check_method" = "Xnone"; then
+             $echo "*** Warning: inter-library dependencies are not supported in this platform."
+           else
+             $echo "*** Warning: inter-library dependencies are not known to be supported."
+           fi
+           $echo "*** All declared inter-library dependencies are being dropped."
+           droppeddeps=yes
+         fi
+         ;;
+       esac
+       versuffix=$versuffix_save
+       major=$major_save
+       release=$release_save
+       libname=$libname_save
+       name=$name_save
+
+       case $host in
+       *-*-rhapsody* | *-*-darwin1.[012])
+         # On Rhapsody replace the C library is the System framework
+         newdeplibs=`$echo "X $newdeplibs" | $Xsed -e 's/ -lc / -framework System /'`
+         ;;
+       esac
+
+       if test "$droppeddeps" = yes; then
+         if test "$module" = yes; then
+           $echo
+           $echo "*** Warning: libtool could not satisfy all declared inter-library"
+           $echo "*** dependencies of module $libname.  Therefore, libtool will create"
+           $echo "*** a static module, that should work as long as the dlopening"
+           $echo "*** application is linked with the -dlopen flag."
+           if test -z "$global_symbol_pipe"; then
+             $echo
+             $echo "*** However, this would only work if libtool was able to extract symbol"
+             $echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
+             $echo "*** not find such a program.  So, this module is probably useless."
+             $echo "*** \`nm' from GNU binutils and a full rebuild may help."
+           fi
+           if test "$build_old_libs" = no; then
+             oldlibs="$output_objdir/$libname.$libext"
+             build_libtool_libs=module
+             build_old_libs=yes
+           else
+             build_libtool_libs=no
+           fi
+         else
+           $echo "*** The inter-library dependencies that have been dropped here will be"
+           $echo "*** automatically added whenever a program is linked with this library"
+           $echo "*** or is declared to -dlopen it."
+
+           if test "$allow_undefined" = no; then
+             $echo
+             $echo "*** Since this library must not contain undefined symbols,"
+             $echo "*** because either the platform does not support them or"
+             $echo "*** it was explicitly requested with -no-undefined,"
+             $echo "*** libtool will only create a static version of it."
+             if test "$build_old_libs" = no; then
+               oldlibs="$output_objdir/$libname.$libext"
+               build_libtool_libs=module
+               build_old_libs=yes
+             else
+               build_libtool_libs=no
+             fi
+           fi
+         fi
+       fi
+       # Done checking deplibs!
+       deplibs=$newdeplibs
+      fi
+
+      # All the library-specific variables (install_libdir is set above).
+      library_names=
+      old_library=
+      dlname=
+
+      # Test again, we may have decided not to build it any more
+      if test "$build_libtool_libs" = yes; then
+       if test "$hardcode_into_libs" = yes; then
+         # Hardcode the library paths
+         hardcode_libdirs=
+         dep_rpath=
+         rpath="$finalize_rpath"
+         test "$mode" != relink && rpath="$compile_rpath$rpath"
+         for libdir in $rpath; do
+           if test -n "$hardcode_libdir_flag_spec"; then
+             if test -n "$hardcode_libdir_separator"; then
+               if test -z "$hardcode_libdirs"; then
+                 hardcode_libdirs="$libdir"
+               else
+                 # Just accumulate the unique libdirs.
+                 case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
+                 *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
+                   ;;
+                 *)
+                   hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
+                   ;;
+                 esac
+               fi
+             else
+               eval flag=\"$hardcode_libdir_flag_spec\"
+               dep_rpath="$dep_rpath $flag"
+             fi
+           elif test -n "$runpath_var"; then
+             case "$perm_rpath " in
+             *" $libdir "*) ;;
+             *) perm_rpath="$perm_rpath $libdir" ;;
+             esac
+           fi
+         done
+         # Substitute the hardcoded libdirs into the rpath.
+         if test -n "$hardcode_libdir_separator" &&
+            test -n "$hardcode_libdirs"; then
+           libdir="$hardcode_libdirs"
+           if test -n "$hardcode_libdir_flag_spec_ld"; then
+             eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\"
+           else
+             eval dep_rpath=\"$hardcode_libdir_flag_spec\"
+           fi
+         fi
+         if test -n "$runpath_var" && test -n "$perm_rpath"; then
+           # We should set the runpath_var.
+           rpath=
+           for dir in $perm_rpath; do
+             rpath="$rpath$dir:"
+           done
+           eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var"
+         fi
+         test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs"
+       fi
+
+       shlibpath="$finalize_shlibpath"
+       test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath"
+       if test -n "$shlibpath"; then
+         eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var"
+       fi
+
+       # Get the real and link names of the library.
+       eval shared_ext=\"$shrext_cmds\"
+       eval library_names=\"$library_names_spec\"
+       set dummy $library_names
+       realname="$2"
+       shift; shift
+
+       if test -n "$soname_spec"; then
+         eval soname=\"$soname_spec\"
+       else
+         soname="$realname"
+       fi
+       if test -z "$dlname"; then
+         dlname=$soname
+       fi
+
+       lib="$output_objdir/$realname"
+       for link
+       do
+         linknames="$linknames $link"
+       done
+
+       # Use standard objects if they are pic
+       test -z "$pic_flag" && libobjs=`$echo "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
+
+       # Prepare the list of exported symbols
+       if test -z "$export_symbols"; then
+         if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then
+           $show "generating symbol list for \`$libname.la'"
+           export_symbols="$output_objdir/$libname.exp"
+           $run $rm $export_symbols
+           cmds=$export_symbols_cmds
+           save_ifs="$IFS"; IFS='~'
+           for cmd in $cmds; do
+             IFS="$save_ifs"
+             eval cmd=\"$cmd\"
+             if len=`expr "X$cmd" : ".*"` &&
+              test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
+               $show "$cmd"
+               $run eval "$cmd" || exit $?
+               skipped_export=false
+             else
+               # The command line is too long to execute in one step.
+               $show "using reloadable object file for export list..."
+               skipped_export=:
+             fi
+           done
+           IFS="$save_ifs"
+           if test -n "$export_symbols_regex"; then
+             $show "$EGREP -e \"$export_symbols_regex\" \"$export_symbols\" > \"${export_symbols}T\""
+             $run eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
+             $show "$mv \"${export_symbols}T\" \"$export_symbols\""
+             $run eval '$mv "${export_symbols}T" "$export_symbols"'
+           fi
+         fi
+       fi
+
+       if test -n "$export_symbols" && test -n "$include_expsyms"; then
+         $run eval '$echo "X$include_expsyms" | $SP2NL >> "$export_symbols"'
+       fi
+
+       tmp_deplibs=
+       for test_deplib in $deplibs; do
+               case " $convenience " in
+               *" $test_deplib "*) ;;
+               *)
+                       tmp_deplibs="$tmp_deplibs $test_deplib"
+                       ;;
+               esac
+       done
+       deplibs="$tmp_deplibs"
+
+       if test -n "$convenience"; then
+         if test -n "$whole_archive_flag_spec"; then
+           save_libobjs=$libobjs
+           eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
+         else
+           gentop="$output_objdir/${outputname}x"
+           $show "${rm}r $gentop"
+           $run ${rm}r "$gentop"
+           $show "$mkdir $gentop"
+           $run $mkdir "$gentop"
+           status=$?
+           if test "$status" -ne 0 && test ! -d "$gentop"; then
+             exit $status
+           fi
+           generated="$generated $gentop"
+
+           for xlib in $convenience; do
+             # Extract the objects.
+             case $xlib in
+             [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
+             *) xabs=`pwd`"/$xlib" ;;
+             esac
+             xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'`
+             xdir="$gentop/$xlib"
+
+             $show "${rm}r $xdir"
+             $run ${rm}r "$xdir"
+             $show "$mkdir $xdir"
+             $run $mkdir "$xdir"
+             status=$?
+             if test "$status" -ne 0 && test ! -d "$xdir"; then
+               exit $status
+             fi
+             # We will extract separately just the conflicting names and we will no
+             # longer touch any unique names. It is faster to leave these extract
+             # automatically by $AR in one run.
+             $show "(cd $xdir && $AR x $xabs)"
+             $run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
+             if ($AR t "$xabs" | sort | sort -uc >/dev/null 2>&1); then
+               :
+             else
+               $echo "$modename: warning: object name conflicts; renaming object files" 1>&2
+               $echo "$modename: warning: to ensure that they will not overwrite" 1>&2
+               $AR t "$xabs" | sort | uniq -cd | while read -r count name
+               do
+                 i=1
+                 while test "$i" -le "$count"
+                 do
+                  # Put our $i before any first dot (extension)
+                  # Never overwrite any file
+                  name_to="$name"
+                  while test "X$name_to" = "X$name" || test -f "$xdir/$name_to"
+                  do
+                    name_to=`$echo "X$name_to" | $Xsed -e "s/\([^.]*\)/\1-$i/"`
+                  done
+                  $show "(cd $xdir && $AR xN $i $xabs '$name' && $mv '$name' '$name_to')"
+                  $run eval "(cd \$xdir && $AR xN $i \$xabs '$name' && $mv '$name' '$name_to')" || exit $?
+                  i=`expr $i + 1`
+                 done
+               done
+             fi
+
+             libobjs="$libobjs "`find $xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
+           done
+         fi
+       fi
+
+       if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
+         eval flag=\"$thread_safe_flag_spec\"
+         linker_flags="$linker_flags $flag"
+       fi
+
+       # Make a backup of the uninstalled library when relinking
+       if test "$mode" = relink; then
+         $run eval '(cd $output_objdir && $rm ${realname}U && $mv $realname ${realname}U)' || exit $?
+       fi
+
+       # Do each of the archive commands.
+       if test "$module" = yes && test -n "$module_cmds" ; then
+         if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
+           eval test_cmds=\"$module_expsym_cmds\"
+           cmds=$module_expsym_cmds
+         else
+           eval test_cmds=\"$module_cmds\"
+           cmds=$module_cmds
+         fi
+       else
+       if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
+         eval test_cmds=\"$archive_expsym_cmds\"
+         cmds=$archive_expsym_cmds
+       else
+         eval test_cmds=\"$archive_cmds\"
+         cmds=$archive_cmds
+         fi
+       fi
+
+       if test "X$skipped_export" != "X:" && len=`expr "X$test_cmds" : ".*"` &&
+          test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
+         :
+       else
+         # The command line is too long to link in one step, link piecewise.
+         $echo "creating reloadable object files..."
+
+         # Save the value of $output and $libobjs because we want to
+         # use them later.  If we have whole_archive_flag_spec, we
+         # want to use save_libobjs as it was before
+         # whole_archive_flag_spec was expanded, because we can't
+         # assume the linker understands whole_archive_flag_spec.
+         # This may have to be revisited, in case too many
+         # convenience libraries get linked in and end up exceeding
+         # the spec.
+         if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then
+           save_libobjs=$libobjs
+         fi
+         save_output=$output
+
+         # Clear the reloadable object creation command queue and
+         # initialize k to one.
+         test_cmds=
+         concat_cmds=
+         objlist=
+         delfiles=
+         last_robj=
+         k=1
+         output=$output_objdir/$save_output-${k}.$objext
+         # Loop over the list of objects to be linked.
+         for obj in $save_libobjs
+         do
+           eval test_cmds=\"$reload_cmds $objlist $last_robj\"
+           if test "X$objlist" = X ||
+              { len=`expr "X$test_cmds" : ".*"` &&
+                test "$len" -le "$max_cmd_len"; }; then
+             objlist="$objlist $obj"
+           else
+             # The command $test_cmds is almost too long, add a
+             # command to the queue.
+             if test "$k" -eq 1 ; then
+               # The first file doesn't have a previous command to add.
+               eval concat_cmds=\"$reload_cmds $objlist $last_robj\"
+             else
+               # All subsequent reloadable object files will link in
+               # the last one created.
+               eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj\"
+             fi
+             last_robj=$output_objdir/$save_output-${k}.$objext
+             k=`expr $k + 1`
+             output=$output_objdir/$save_output-${k}.$objext
+             objlist=$obj
+             len=1
+           fi
+         done
+         # Handle the remaining objects by creating one last
+         # reloadable object file.  All subsequent reloadable object
+         # files will link in the last one created.
+         test -z "$concat_cmds" || concat_cmds=$concat_cmds~
+         eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\"
+
+         if ${skipped_export-false}; then
+           $show "generating symbol list for \`$libname.la'"
+           export_symbols="$output_objdir/$libname.exp"
+           $run $rm $export_symbols
+           libobjs=$output
+           # Append the command to create the export file.
+           eval concat_cmds=\"\$concat_cmds~$export_symbols_cmds\"
+          fi
+
+         # Set up a command to remove the reloadale object files
+         # after they are used.
+         i=0
+         while test "$i" -lt "$k"
+         do
+           i=`expr $i + 1`
+           delfiles="$delfiles $output_objdir/$save_output-${i}.$objext"
+         done
+
+         $echo "creating a temporary reloadable object file: $output"
+
+         # Loop through the commands generated above and execute them.
+         save_ifs="$IFS"; IFS='~'
+         for cmd in $concat_cmds; do
+           IFS="$save_ifs"
+           $show "$cmd"
+           $run eval "$cmd" || exit $?
+         done
+         IFS="$save_ifs"
+
+         libobjs=$output
+         # Restore the value of output.
+         output=$save_output
+
+         if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then
+           eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
+         fi
+         # Expand the library linking commands again to reset the
+         # value of $libobjs for piecewise linking.
+
+         # Do each of the archive commands.
+         if test "$module" = yes && test -n "$module_cmds" ; then
+           if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
+             cmds=$module_expsym_cmds
+           else
+             cmds=$module_cmds
+           fi
+         else
+         if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
+           cmds=$archive_expsym_cmds
+         else
+           cmds=$archive_cmds
+           fi
+         fi
+
+         # Append the command to remove the reloadable object files
+         # to the just-reset $cmds.
+         eval cmds=\"\$cmds~\$rm $delfiles\"
+       fi
+       save_ifs="$IFS"; IFS='~'
+       for cmd in $cmds; do
+         IFS="$save_ifs"
+         eval cmd=\"$cmd\"
+         $show "$cmd"
+         $run eval "$cmd" || exit $?
+       done
+       IFS="$save_ifs"
+
+       # Restore the uninstalled library and exit
+       if test "$mode" = relink; then
+         $run eval '(cd $output_objdir && $rm ${realname}T && $mv $realname ${realname}T && $mv "$realname"U $realname)' || exit $?
+         exit $EXIT_SUCCESS
+       fi
+
+       # Create links to the real library.
+       for linkname in $linknames; do
+         if test "$realname" != "$linkname"; then
+           $show "(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)"
+           $run eval '(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)' || exit $?
+         fi
+       done
+
+       # If -module or -export-dynamic was specified, set the dlname.
+       if test "$module" = yes || test "$export_dynamic" = yes; then
+         # On all known operating systems, these are identical.
+         dlname="$soname"
+       fi
+      fi
+      ;;
+
+    obj)
+      if test -n "$deplibs"; then
+       $echo "$modename: warning: \`-l' and \`-L' are ignored for objects" 1>&2
+      fi
+
+      if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
+       $echo "$modename: warning: \`-dlopen' is ignored for objects" 1>&2
+      fi
+
+      if test -n "$rpath"; then
+       $echo "$modename: warning: \`-rpath' is ignored for objects" 1>&2
+      fi
+
+      if test -n "$xrpath"; then
+       $echo "$modename: warning: \`-R' is ignored for objects" 1>&2
+      fi
+
+      if test -n "$vinfo"; then
+       $echo "$modename: warning: \`-version-info' is ignored for objects" 1>&2
+      fi
+
+      if test -n "$release"; then
+       $echo "$modename: warning: \`-release' is ignored for objects" 1>&2
+      fi
+
+      case $output in
+      *.lo)
+       if test -n "$objs$old_deplibs"; then
+         $echo "$modename: cannot build library object \`$output' from non-libtool objects" 1>&2
+         exit $EXIT_FAILURE
+       fi
+       libobj="$output"
+       obj=`$echo "X$output" | $Xsed -e "$lo2o"`
+       ;;
+      *)
+       libobj=
+       obj="$output"
+       ;;
+      esac
+
+      # Delete the old objects.
+      $run $rm $obj $libobj
+
+      # Objects from convenience libraries.  This assumes
+      # single-version convenience libraries.  Whenever we create
+      # different ones for PIC/non-PIC, this we'll have to duplicate
+      # the extraction.
+      reload_conv_objs=
+      gentop=
+      # reload_cmds runs $LD directly, so let us get rid of
+      # -Wl from whole_archive_flag_spec
+      wl=
+
+      if test -n "$convenience"; then
+       if test -n "$whole_archive_flag_spec"; then
+         eval reload_conv_objs=\"\$reload_objs $whole_archive_flag_spec\"
+       else
+         gentop="$output_objdir/${obj}x"
+         $show "${rm}r $gentop"
+         $run ${rm}r "$gentop"
+         $show "$mkdir $gentop"
+         $run $mkdir "$gentop"
+         status=$?
+         if test "$status" -ne 0 && test ! -d "$gentop"; then
+           exit $status
+         fi
+         generated="$generated $gentop"
+
+         for xlib in $convenience; do
+           # Extract the objects.
+           case $xlib in
+           [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
+           *) xabs=`pwd`"/$xlib" ;;
+           esac
+           xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'`
+           xdir="$gentop/$xlib"
+
+           $show "${rm}r $xdir"
+           $run ${rm}r "$xdir"
+           $show "$mkdir $xdir"
+           $run $mkdir "$xdir"
+           status=$?
+           if test "$status" -ne 0 && test ! -d "$xdir"; then
+             exit $status
+           fi
+           # We will extract separately just the conflicting names and we will no
+           # longer touch any unique names. It is faster to leave these extract
+           # automatically by $AR in one run.
+           $show "(cd $xdir && $AR x $xabs)"
+           $run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
+           if ($AR t "$xabs" | sort | sort -uc >/dev/null 2>&1); then
+             :
+           else
+             $echo "$modename: warning: object name conflicts; renaming object files" 1>&2
+             $echo "$modename: warning: to ensure that they will not overwrite" 1>&2
+             $AR t "$xabs" | sort | uniq -cd | while read -r count name
+             do
+               i=1
+               while test "$i" -le "$count"
+               do
+                # Put our $i before any first dot (extension)
+                # Never overwrite any file
+                name_to="$name"
+                while test "X$name_to" = "X$name" || test -f "$xdir/$name_to"
+                do
+                  name_to=`$echo "X$name_to" | $Xsed -e "s/\([^.]*\)/\1-$i/"`
+                done
+                $show "(cd $xdir && $AR xN $i $xabs '$name' && $mv '$name' '$name_to')"
+                $run eval "(cd \$xdir && $AR xN $i \$xabs '$name' && $mv '$name' '$name_to')" || exit $?
+                i=`expr $i + 1`
+               done
+             done
+           fi
+
+           reload_conv_objs="$reload_objs "`find $xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
+         done
+       fi
+      fi
+
+      # Create the old-style object.
+      reload_objs="$objs$old_deplibs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}$'/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test
+
+      output="$obj"
+      cmds=$reload_cmds
+      save_ifs="$IFS"; IFS='~'
+      for cmd in $cmds; do
+       IFS="$save_ifs"
+       eval cmd=\"$cmd\"
+       $show "$cmd"
+       $run eval "$cmd" || exit $?
+      done
+      IFS="$save_ifs"
+
+      # Exit if we aren't doing a library object file.
+      if test -z "$libobj"; then
+       if test -n "$gentop"; then
+         $show "${rm}r $gentop"
+         $run ${rm}r $gentop
+       fi
+
+       exit $EXIT_SUCCESS
+      fi
+
+      if test "$build_libtool_libs" != yes; then
+       if test -n "$gentop"; then
+         $show "${rm}r $gentop"
+         $run ${rm}r $gentop
+       fi
+
+       # Create an invalid libtool object if no PIC, so that we don't
+       # accidentally link it into a program.
+       # $show "echo timestamp > $libobj"
+       # $run eval "echo timestamp > $libobj" || exit $?
+       exit $EXIT_SUCCESS
+      fi
+
+      if test -n "$pic_flag" || test "$pic_mode" != default; then
+       # Only do commands if we really have different PIC objects.
+       reload_objs="$libobjs $reload_conv_objs"
+       output="$libobj"
+       cmds=$reload_cmds
+       save_ifs="$IFS"; IFS='~'
+       for cmd in $cmds; do
+         IFS="$save_ifs"
+         eval cmd=\"$cmd\"
+         $show "$cmd"
+         $run eval "$cmd" || exit $?
+       done
+       IFS="$save_ifs"
+      fi
+
+      if test -n "$gentop"; then
+       $show "${rm}r $gentop"
+       $run ${rm}r $gentop
+      fi
+
+      exit $EXIT_SUCCESS
+      ;;
+
+    prog)
+      case $host in
+       *cygwin*) output=`$echo $output | ${SED} -e 's,.exe$,,;s,$,.exe,'` ;;
+      esac
+      if test -n "$vinfo"; then
+       $echo "$modename: warning: \`-version-info' is ignored for programs" 1>&2
+      fi
+
+      if test -n "$release"; then
+       $echo "$modename: warning: \`-release' is ignored for programs" 1>&2
+      fi
+
+      if test "$preload" = yes; then
+       if test "$dlopen_support" = unknown && test "$dlopen_self" = unknown &&
+          test "$dlopen_self_static" = unknown; then
+         $echo "$modename: warning: \`AC_LIBTOOL_DLOPEN' not used. Assuming no dlopen support."
+       fi
+      fi
+
+      case $host in
+      *-*-rhapsody* | *-*-darwin1.[012])
+       # On Rhapsody replace the C library is the System framework
+       compile_deplibs=`$echo "X $compile_deplibs" | $Xsed -e 's/ -lc / -framework System /'`
+       finalize_deplibs=`$echo "X $finalize_deplibs" | $Xsed -e 's/ -lc / -framework System /'`
+       ;;
+      esac
+
+      case $host in
+      *darwin*)
+        # Don't allow lazy linking, it breaks C++ global constructors
+        if test "$tagname" = CXX ; then
+        compile_command="$compile_command ${wl}-bind_at_load"
+        finalize_command="$finalize_command ${wl}-bind_at_load"
+        fi
+        ;;
+      esac
+
+      compile_command="$compile_command $compile_deplibs"
+      finalize_command="$finalize_command $finalize_deplibs"
+
+      if test -n "$rpath$xrpath"; then
+       # If the user specified any rpath flags, then add them.
+       for libdir in $rpath $xrpath; do
+         # This is the magic to use -rpath.
+         case "$finalize_rpath " in
+         *" $libdir "*) ;;
+         *) finalize_rpath="$finalize_rpath $libdir" ;;
+         esac
+       done
+      fi
+
+      # Now hardcode the library paths
+      rpath=
+      hardcode_libdirs=
+      for libdir in $compile_rpath $finalize_rpath; do
+       if test -n "$hardcode_libdir_flag_spec"; then
+         if test -n "$hardcode_libdir_separator"; then
+           if test -z "$hardcode_libdirs"; then
+             hardcode_libdirs="$libdir"
+           else
+             # Just accumulate the unique libdirs.
+             case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
+             *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
+               ;;
+             *)
+               hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
+               ;;
+             esac
+           fi
+         else
+           eval flag=\"$hardcode_libdir_flag_spec\"
+           rpath="$rpath $flag"
+         fi
+       elif test -n "$runpath_var"; then
+         case "$perm_rpath " in
+         *" $libdir "*) ;;
+         *) perm_rpath="$perm_rpath $libdir" ;;
+         esac
+       fi
+       case $host in
+       *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
+         case :$dllsearchpath: in
+         *":$libdir:"*) ;;
+         *) dllsearchpath="$dllsearchpath:$libdir";;
+         esac
+         ;;
+       esac
+      done
+      # Substitute the hardcoded libdirs into the rpath.
+      if test -n "$hardcode_libdir_separator" &&
+        test -n "$hardcode_libdirs"; then
+       libdir="$hardcode_libdirs"
+       eval rpath=\" $hardcode_libdir_flag_spec\"
+      fi
+      compile_rpath="$rpath"
+
+      rpath=
+      hardcode_libdirs=
+      for libdir in $finalize_rpath; do
+       if test -n "$hardcode_libdir_flag_spec"; then
+         if test -n "$hardcode_libdir_separator"; then
+           if test -z "$hardcode_libdirs"; then
+             hardcode_libdirs="$libdir"
+           else
+             # Just accumulate the unique libdirs.
+             case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
+             *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
+               ;;
+             *)
+               hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
+               ;;
+             esac
+           fi
+         else
+           eval flag=\"$hardcode_libdir_flag_spec\"
+           rpath="$rpath $flag"
+         fi
+       elif test -n "$runpath_var"; then
+         case "$finalize_perm_rpath " in
+         *" $libdir "*) ;;
+         *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;;
+         esac
+       fi
+      done
+      # Substitute the hardcoded libdirs into the rpath.
+      if test -n "$hardcode_libdir_separator" &&
+        test -n "$hardcode_libdirs"; then
+       libdir="$hardcode_libdirs"
+       eval rpath=\" $hardcode_libdir_flag_spec\"
+      fi
+      finalize_rpath="$rpath"
+
+      if test -n "$libobjs" && test "$build_old_libs" = yes; then
+       # Transform all the library objects into standard objects.
+       compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
+       finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
+      fi
+
+      dlsyms=
+      if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
+       if test -n "$NM" && test -n "$global_symbol_pipe"; then
+         dlsyms="${outputname}S.c"
+       else
+         $echo "$modename: not configured to extract global symbols from dlpreopened files" 1>&2
+       fi
+      fi
+
+      if test -n "$dlsyms"; then
+       case $dlsyms in
+       "") ;;
+       *.c)
+         # Discover the nlist of each of the dlfiles.
+         nlist="$output_objdir/${outputname}.nm"
+
+         $show "$rm $nlist ${nlist}S ${nlist}T"
+         $run $rm "$nlist" "${nlist}S" "${nlist}T"
+
+         # Parse the name list into a source file.
+         $show "creating $output_objdir/$dlsyms"
+
+         test -z "$run" && $echo > "$output_objdir/$dlsyms" "\
+/* $dlsyms - symbol resolution table for \`$outputname' dlsym emulation. */
+/* Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP */
+
+#ifdef __cplusplus
+extern \"C\" {
+#endif
+
+/* Prevent the only kind of declaration conflicts we can make. */
+#define lt_preloaded_symbols some_other_symbol
+
+/* External symbol declarations for the compiler. */\
+"
+
+         if test "$dlself" = yes; then
+           $show "generating symbol list for \`$output'"
+
+           test -z "$run" && $echo ': @PROGRAM@ ' > "$nlist"
+
+           # Add our own program objects to the symbol list.
+           progfiles=`$echo "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
+           for arg in $progfiles; do
+             $show "extracting global C symbols from \`$arg'"
+             $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'"
+           done
+
+           if test -n "$exclude_expsyms"; then
+             $run eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
+             $run eval '$mv "$nlist"T "$nlist"'
+           fi
+
+           if test -n "$export_symbols_regex"; then
+             $run eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T'
+             $run eval '$mv "$nlist"T "$nlist"'
+           fi
+
+           # Prepare the list of exported symbols
+           if test -z "$export_symbols"; then
+             export_symbols="$output_objdir/$output.exp"
+             $run $rm $export_symbols
+             $run eval "${SED} -n -e '/^: @PROGRAM@$/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
+           else
+             $run eval "${SED} -e 's/\([][.*^$]\)/\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$output.exp"'
+             $run eval 'grep -f "$output_objdir/$output.exp" < "$nlist" > "$nlist"T'
+             $run eval 'mv "$nlist"T "$nlist"'
+           fi
+         fi
+
+         for arg in $dlprefiles; do
+           $show "extracting global C symbols from \`$arg'"
+           name=`$echo "$arg" | ${SED} -e 's%^.*/%%'`
+           $run eval '$echo ": $name " >> "$nlist"'
+           $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'"
+         done
+
+         if test -z "$run"; then
+           # Make sure we have at least an empty file.
+           test -f "$nlist" || : > "$nlist"
+
+           if test -n "$exclude_expsyms"; then
+             $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
+             $mv "$nlist"T "$nlist"
+           fi
+
+           # Try sorting and uniquifying the output.
+           if grep -v "^: " < "$nlist" |
+               if sort -k 3 </dev/null >/dev/null 2>&1; then
+                 sort -k 3
+               else
+                 sort +2
+               fi |
+               uniq > "$nlist"S; then
+             :
+           else
+             grep -v "^: " < "$nlist" > "$nlist"S
+           fi
+
+           if test -f "$nlist"S; then
+             eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$dlsyms"'
+           else
+             $echo '/* NONE */' >> "$output_objdir/$dlsyms"
+           fi
+
+           $echo >> "$output_objdir/$dlsyms" "\
+
+#undef lt_preloaded_symbols
+
+#if defined (__STDC__) && __STDC__
+# define lt_ptr void *
+#else
+# define lt_ptr char *
+# define const
+#endif
+
+/* The mapping between symbol names and symbols. */
+const struct {
+  const char *name;
+  lt_ptr address;
+}
+lt_preloaded_symbols[] =
+{\
+"
+
+           eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$dlsyms"
+
+           $echo >> "$output_objdir/$dlsyms" "\
+  {0, (lt_ptr) 0}
+};
+
+/* This works around a problem in FreeBSD linker */
+#ifdef FREEBSD_WORKAROUND
+static const void *lt_preloaded_setup() {
+  return lt_preloaded_symbols;
+}
+#endif
+
+#ifdef __cplusplus
+}
+#endif\
+"
+         fi
+
+         pic_flag_for_symtable=
+         case $host in
+         # compiling the symbol table file with pic_flag works around
+         # a FreeBSD bug that causes programs to crash when -lm is
+         # linked before any other PIC object.  But we must not use
+         # pic_flag when linking with -static.  The problem exists in
+         # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1.
+         *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
+           case "$compile_command " in
+           *" -static "*) ;;
+           *) pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND";;
+           esac;;
+         *-*-hpux*)
+           case "$compile_command " in
+           *" -static "*) ;;
+           *) pic_flag_for_symtable=" $pic_flag";;
+           esac
+         esac
+
+         # Now compile the dynamic symbol file.
+         $show "(cd $output_objdir && $LTCC -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")"
+         $run eval '(cd $output_objdir && $LTCC -c$no_builtin_flag$pic_flag_for_symtable "$dlsyms")' || exit $?
+
+         # Clean up the generated files.
+         $show "$rm $output_objdir/$dlsyms $nlist ${nlist}S ${nlist}T"
+         $run $rm "$output_objdir/$dlsyms" "$nlist" "${nlist}S" "${nlist}T"
+
+         # Transform the symbol file into the correct name.
+         compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
+         finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
+         ;;
+       *)
+         $echo "$modename: unknown suffix for \`$dlsyms'" 1>&2
+         exit $EXIT_FAILURE
+         ;;
+       esac
+      else
+       # We keep going just in case the user didn't refer to
+       # lt_preloaded_symbols.  The linker will fail if global_symbol_pipe
+       # really was required.
+
+       # Nullify the symbol file.
+       compile_command=`$echo "X$compile_command" | $Xsed -e "s% @SYMFILE@%%"`
+       finalize_command=`$echo "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"`
+      fi
+
+      if test "$need_relink" = no || test "$build_libtool_libs" != yes; then
+       # Replace the output file specification.
+       compile_command=`$echo "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
+       link_command="$compile_command$compile_rpath"
+
+       # We have no uninstalled library dependencies, so finalize right now.
+       $show "$link_command"
+       $run eval "$link_command"
+       status=$?
+
+       # Delete the generated files.
+       if test -n "$dlsyms"; then
+         $show "$rm $output_objdir/${outputname}S.${objext}"
+         $run $rm "$output_objdir/${outputname}S.${objext}"
+       fi
+
+       exit $status
+      fi
+
+      if test -n "$shlibpath_var"; then
+       # We should set the shlibpath_var
+       rpath=
+       for dir in $temp_rpath; do
+         case $dir in
+         [\\/]* | [A-Za-z]:[\\/]*)
+           # Absolute path.
+           rpath="$rpath$dir:"
+           ;;
+         *)
+           # Relative path: add a thisdir entry.
+           rpath="$rpath\$thisdir/$dir:"
+           ;;
+         esac
+       done
+       temp_rpath="$rpath"
+      fi
+
+      if test -n "$compile_shlibpath$finalize_shlibpath"; then
+       compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command"
+      fi
+      if test -n "$finalize_shlibpath"; then
+       finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command"
+      fi
+
+      compile_var=
+      finalize_var=
+      if test -n "$runpath_var"; then
+       if test -n "$perm_rpath"; then
+         # We should set the runpath_var.
+         rpath=
+         for dir in $perm_rpath; do
+           rpath="$rpath$dir:"
+         done
+         compile_var="$runpath_var=\"$rpath\$$runpath_var\" "
+       fi
+       if test -n "$finalize_perm_rpath"; then
+         # We should set the runpath_var.
+         rpath=
+         for dir in $finalize_perm_rpath; do
+           rpath="$rpath$dir:"
+         done
+         finalize_var="$runpath_var=\"$rpath\$$runpath_var\" "
+       fi
+      fi
+
+      if test "$no_install" = yes; then
+       # We don't need to create a wrapper script.
+       link_command="$compile_var$compile_command$compile_rpath"
+       # Replace the output file specification.
+       link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
+       # Delete the old output file.
+       $run $rm $output
+       # Link the executable and exit
+       $show "$link_command"
+       $run eval "$link_command" || exit $?
+       exit $EXIT_SUCCESS
+      fi
+
+      if test "$hardcode_action" = relink; then
+       # Fast installation is not supported
+       link_command="$compile_var$compile_command$compile_rpath"
+       relink_command="$finalize_var$finalize_command$finalize_rpath"
+
+       $echo "$modename: warning: this platform does not like uninstalled shared libraries" 1>&2
+       $echo "$modename: \`$output' will be relinked during installation" 1>&2
+      else
+       if test "$fast_install" != no; then
+         link_command="$finalize_var$compile_command$finalize_rpath"
+         if test "$fast_install" = yes; then
+           relink_command=`$echo "X$compile_var$compile_command$compile_rpath" | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g'`
+         else
+           # fast_install is set to needless
+           relink_command=
+         fi
+       else
+         link_command="$compile_var$compile_command$compile_rpath"
+         relink_command="$finalize_var$finalize_command$finalize_rpath"
+       fi
+      fi
+
+      # Replace the output file specification.
+      link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
+
+      # Delete the old output files.
+      $run $rm $output $output_objdir/$outputname $output_objdir/lt-$outputname
+
+      $show "$link_command"
+      $run eval "$link_command" || exit $?
+
+      # Now create the wrapper script.
+      $show "creating $output"
+
+      # Quote the relink command for shipping.
+      if test -n "$relink_command"; then
+       # Preserve any variables that may affect compiler behavior
+       for var in $variables_saved_for_relink; do
+         if eval test -z \"\${$var+set}\"; then
+           relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command"
+         elif eval var_value=\$$var; test -z "$var_value"; then
+           relink_command="$var=; export $var; $relink_command"
+         else
+           var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"`
+           relink_command="$var=\"$var_value\"; export $var; $relink_command"
+         fi
+       done
+       relink_command="(cd `pwd`; $relink_command)"
+       relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"`
+      fi
+
+      # Quote $echo for shipping.
+      if test "X$echo" = "X$SHELL $progpath --fallback-echo"; then
+       case $progpath in
+       [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";;
+       *) qecho="$SHELL `pwd`/$progpath --fallback-echo";;
+       esac
+       qecho=`$echo "X$qecho" | $Xsed -e "$sed_quote_subst"`
+      else
+       qecho=`$echo "X$echo" | $Xsed -e "$sed_quote_subst"`
+      fi
+
+      # Only actually do things if our run command is non-null.
+      if test -z "$run"; then
+       # win32 will think the script is a binary if it has
+       # a .exe suffix, so we strip it off here.
+       case $output in
+         *.exe) output=`$echo $output|${SED} 's,.exe$,,'` ;;
+       esac
+       # test for cygwin because mv fails w/o .exe extensions
+       case $host in
+         *cygwin*)
+           exeext=.exe
+           outputname=`$echo $outputname|${SED} 's,.exe$,,'` ;;
+         *) exeext= ;;
+       esac
+       case $host in
+         *cygwin* | *mingw* )
+           cwrappersource=`$echo ${objdir}/lt-${output}.c`
+           cwrapper=`$echo ${output}.exe`
+           $rm $cwrappersource $cwrapper
+           trap "$rm $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
+
+           cat > $cwrappersource <<EOF
+
+/* $cwrappersource - temporary wrapper executable for $objdir/$outputname
+   Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
+
+   The $output program cannot be directly executed until all the libtool
+   libraries that it depends on are installed.
+
+   This wrapper executable should never be moved out of the build directory.
+   If it is, it will not operate correctly.
+
+   Currently, it simply execs the wrapper *script* "/bin/sh $output",
+   but could eventually absorb all of the scripts functionality and
+   exec $objdir/$outputname directly.
+*/
+EOF
+           cat >> $cwrappersource<<"EOF"
+#include <stdio.h>
+#include <stdlib.h>
+#include <unistd.h>
+#include <malloc.h>
+#include <stdarg.h>
+#include <assert.h>
+
+#if defined(PATH_MAX)
+# define LT_PATHMAX PATH_MAX
+#elif defined(MAXPATHLEN)
+# define LT_PATHMAX MAXPATHLEN
+#else
+# define LT_PATHMAX 1024
+#endif
+
+#ifndef DIR_SEPARATOR
+#define DIR_SEPARATOR '/'
+#endif
+
+#if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \
+  defined (__OS2__)
+#define HAVE_DOS_BASED_FILE_SYSTEM
+#ifndef DIR_SEPARATOR_2
+#define DIR_SEPARATOR_2 '\\'
+#endif
+#endif
+
+#ifndef DIR_SEPARATOR_2
+# define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR)
+#else /* DIR_SEPARATOR_2 */
+# define IS_DIR_SEPARATOR(ch) \
+        (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
+#endif /* DIR_SEPARATOR_2 */
+
+#define XMALLOC(type, num)      ((type *) xmalloc ((num) * sizeof(type)))
+#define XFREE(stale) do { \
+  if (stale) { free ((void *) stale); stale = 0; } \
+} while (0)
+
+const char *program_name = NULL;
+
+void * xmalloc (size_t num);
+char * xstrdup (const char *string);
+char * basename (const char *name);
+char * fnqualify(const char *path);
+char * strendzap(char *str, const char *pat);
+void lt_fatal (const char *message, ...);
+
+int
+main (int argc, char *argv[])
+{
+  char **newargz;
+  int i;
+
+  program_name = (char *) xstrdup ((char *) basename (argv[0]));
+  newargz = XMALLOC(char *, argc+2);
+EOF
+
+           cat >> $cwrappersource <<EOF
+  newargz[0] = "$SHELL";
+EOF
+
+           cat >> $cwrappersource <<"EOF"
+  newargz[1] = fnqualify(argv[0]);
+  /* we know the script has the same name, without the .exe */
+  /* so make sure newargz[1] doesn't end in .exe */
+  strendzap(newargz[1],".exe");
+  for (i = 1; i < argc; i++)
+    newargz[i+1] = xstrdup(argv[i]);
+  newargz[argc+1] = NULL;
+EOF
+
+           cat >> $cwrappersource <<EOF
+  execv("$SHELL",newargz);
+EOF
+
+           cat >> $cwrappersource <<"EOF"
+}
+
+void *
+xmalloc (size_t num)
+{
+  void * p = (void *) malloc (num);
+  if (!p)
+    lt_fatal ("Memory exhausted");
+
+  return p;
+}
+
+char *
+xstrdup (const char *string)
+{
+  return string ? strcpy ((char *) xmalloc (strlen (string) + 1), string) : NULL
+;
+}
+
+char *
+basename (const char *name)
+{
+  const char *base;
+
+#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
+  /* Skip over the disk name in MSDOS pathnames. */
+  if (isalpha (name[0]) && name[1] == ':')
+    name += 2;
+#endif
+
+  for (base = name; *name; name++)
+    if (IS_DIR_SEPARATOR (*name))
+      base = name + 1;
+  return (char *) base;
+}
+
+char *
+fnqualify(const char *path)
+{
+  size_t size;
+  char *p;
+  char tmp[LT_PATHMAX + 1];
+
+  assert(path != NULL);
+
+  /* Is it qualified already? */
+#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
+  if (isalpha (path[0]) && path[1] == ':')
+    return xstrdup (path);
+#endif
+  if (IS_DIR_SEPARATOR (path[0]))
+    return xstrdup (path);
+
+  /* prepend the current directory */
+  /* doesn't handle '~' */
+  if (getcwd (tmp, LT_PATHMAX) == NULL)
+    lt_fatal ("getcwd failed");
+  size = strlen(tmp) + 1 + strlen(path) + 1; /* +2 for '/' and '\0' */
+  p = XMALLOC(char, size);
+  sprintf(p, "%s%c%s", tmp, DIR_SEPARATOR, path);
+  return p;
+}
+
+char *
+strendzap(char *str, const char *pat)
+{
+  size_t len, patlen;
+
+  assert(str != NULL);
+  assert(pat != NULL);
+
+  len = strlen(str);
+  patlen = strlen(pat);
+
+  if (patlen <= len)
+  {
+    str += len - patlen;
+    if (strcmp(str, pat) == 0)
+      *str = '\0';
+  }
+  return str;
+}
+
+static void
+lt_error_core (int exit_status, const char * mode,
+          const char * message, va_list ap)
+{
+  fprintf (stderr, "%s: %s: ", program_name, mode);
+  vfprintf (stderr, message, ap);
+  fprintf (stderr, ".\n");
+
+  if (exit_status >= 0)
+    exit (exit_status);
+}
+
+void
+lt_fatal (const char *message, ...)
+{
+  va_list ap;
+  va_start (ap, message);
+  lt_error_core (EXIT_FAILURE, "FATAL", message, ap);
+  va_end (ap);
+}
+EOF
+         # we should really use a build-platform specific compiler
+         # here, but OTOH, the wrappers (shell script and this C one)
+         # are only useful if you want to execute the "real" binary.
+         # Since the "real" binary is built for $host, then this
+         # wrapper might as well be built for $host, too.
+         $run $LTCC -s -o $cwrapper $cwrappersource
+         ;;
+       esac
+       $rm $output
+       trap "$rm $output; exit $EXIT_FAILURE" 1 2 15
+
+       $echo > $output "\
+#! $SHELL
+
+# $output - temporary wrapper script for $objdir/$outputname
+# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
+#
+# The $output program cannot be directly executed until all the libtool
+# libraries that it depends on are installed.
+#
+# This wrapper script should never be moved out of the build directory.
+# If it is, it will not operate correctly.
+
+# Sed substitution that helps us do robust quoting.  It backslashifies
+# metacharacters that are still active within double-quoted strings.
+Xsed='${SED} -e 1s/^X//'
+sed_quote_subst='$sed_quote_subst'
+
+# The HP-UX ksh and POSIX shell print the target directory to stdout
+# if CDPATH is set.
+if test \"\${CDPATH+set}\" = set; then CDPATH=:; export CDPATH; fi
+
+relink_command=\"$relink_command\"
+
+# This environment variable determines our operation mode.
+if test \"\$libtool_install_magic\" = \"$magic\"; then
+  # install mode needs the following variable:
+  notinst_deplibs='$notinst_deplibs'
+else
+  # When we are sourced in execute mode, \$file and \$echo are already set.
+  if test \"\$libtool_execute_magic\" != \"$magic\"; then
+    echo=\"$qecho\"
+    file=\"\$0\"
+    # Make sure echo works.
+    if test \"X\$1\" = X--no-reexec; then
+      # Discard the --no-reexec flag, and continue.
+      shift
+    elif test \"X\`(\$echo '\t') 2>/dev/null\`\" = 'X\t'; then
+      # Yippee, \$echo works!
+      :
+    else
+      # Restart under the correct shell, and then maybe \$echo will work.
+      exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"}
+    fi
+  fi\
+"
+       $echo >> $output "\
+
+  # Find the directory that this script lives in.
+  thisdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\`
+  test \"x\$thisdir\" = \"x\$file\" && thisdir=.
+
+  # Follow symbolic links until we get to the real thisdir.
+  file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\`
+  while test -n \"\$file\"; do
+    destdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\`
+
+    # If there was a directory component, then change thisdir.
+    if test \"x\$destdir\" != \"x\$file\"; then
+      case \"\$destdir\" in
+      [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
+      *) thisdir=\"\$thisdir/\$destdir\" ;;
+      esac
+    fi
+
+    file=\`\$echo \"X\$file\" | \$Xsed -e 's%^.*/%%'\`
+    file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\`
+  done
+
+  # Try to get the absolute directory name.
+  absdir=\`cd \"\$thisdir\" && pwd\`
+  test -n \"\$absdir\" && thisdir=\"\$absdir\"
+"
+
+       if test "$fast_install" = yes; then
+         $echo >> $output "\
+  program=lt-'$outputname'$exeext
+  progdir=\"\$thisdir/$objdir\"
+
+  if test ! -f \"\$progdir/\$program\" || \\
+     { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\
+       test \"X\$file\" != \"X\$progdir/\$program\"; }; then
+
+    file=\"\$\$-\$program\"
+
+    if test ! -d \"\$progdir\"; then
+      $mkdir \"\$progdir\"
+    else
+      $rm \"\$progdir/\$file\"
+    fi"
+
+         $echo >> $output "\
+
+    # relink executable if necessary
+    if test -n \"\$relink_command\"; then
+      if relink_command_output=\`eval \$relink_command 2>&1\`; then :
+      else
+       $echo \"\$relink_command_output\" >&2
+       $rm \"\$progdir/\$file\"
+       exit $EXIT_FAILURE
+      fi
+    fi
+
+    $mv \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null ||
+    { $rm \"\$progdir/\$program\";
+      $mv \"\$progdir/\$file\" \"\$progdir/\$program\"; }
+    $rm \"\$progdir/\$file\"
+  fi"
+       else
+         $echo >> $output "\
+  program='$outputname'
+  progdir=\"\$thisdir/$objdir\"
+"
+       fi
+
+       $echo >> $output "\
+
+  if test -f \"\$progdir/\$program\"; then"
+
+       # Export our shlibpath_var if we have one.
+       if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
+         $echo >> $output "\
+    # Add our own library path to $shlibpath_var
+    $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
+
+    # Some systems cannot cope with colon-terminated $shlibpath_var
+    # The second colon is a workaround for a bug in BeOS R4 sed
+    $shlibpath_var=\`\$echo \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\`
+
+    export $shlibpath_var
+"
+       fi
+
+       # fixup the dll searchpath if we need to.
+       if test -n "$dllsearchpath"; then
+         $echo >> $output "\
+    # Add the dll search path components to the executable PATH
+    PATH=$dllsearchpath:\$PATH
+"
+       fi
+
+       $echo >> $output "\
+    if test \"\$libtool_execute_magic\" != \"$magic\"; then
+      # Run the actual program with our arguments.
+"
+       case $host in
+       # Backslashes separate directories on plain windows
+       *-*-mingw | *-*-os2*)
+         $echo >> $output "\
+      exec \$progdir\\\\\$program \${1+\"\$@\"}
+"
+         ;;
+
+       *)
+         $echo >> $output "\
+      exec \$progdir/\$program \${1+\"\$@\"}
+"
+         ;;
+       esac
+       $echo >> $output "\
+      \$echo \"\$0: cannot exec \$program \${1+\"\$@\"}\"
+      exit $EXIT_FAILURE
+    fi
+  else
+    # The program doesn't exist.
+    \$echo \"\$0: error: \$progdir/\$program does not exist\" 1>&2
+    \$echo \"This script is just a wrapper for \$program.\" 1>&2
+    $echo \"See the $PACKAGE documentation for more information.\" 1>&2
+    exit $EXIT_FAILURE
+  fi
+fi\
+"
+       chmod +x $output
+      fi
+      exit $EXIT_SUCCESS
+      ;;
+    esac
+
+    # See if we need to build an old-fashioned archive.
+    for oldlib in $oldlibs; do
+
+      if test "$build_libtool_libs" = convenience; then
+       oldobjs="$libobjs_save"
+       addlibs="$convenience"
+       build_libtool_libs=no
+      else
+       if test "$build_libtool_libs" = module; then
+         oldobjs="$libobjs_save"
+         build_libtool_libs=no
+       else
+         oldobjs="$old_deplibs $non_pic_objects"
+       fi
+       addlibs="$old_convenience"
+      fi
+
+      if test -n "$addlibs"; then
+       gentop="$output_objdir/${outputname}x"
+       $show "${rm}r $gentop"
+       $run ${rm}r "$gentop"
+       $show "$mkdir $gentop"
+       $run $mkdir "$gentop"
+       status=$?
+       if test "$status" -ne 0 && test ! -d "$gentop"; then
+         exit $status
+       fi
+       generated="$generated $gentop"
+
+       # Add in members from convenience archives.
+       for xlib in $addlibs; do
+         # Extract the objects.
+         case $xlib in
+         [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
+         *) xabs=`pwd`"/$xlib" ;;
+         esac
+         xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'`
+         xdir="$gentop/$xlib"
+
+         $show "${rm}r $xdir"
+         $run ${rm}r "$xdir"
+         $show "$mkdir $xdir"
+         $run $mkdir "$xdir"
+         status=$?
+         if test "$status" -ne 0 && test ! -d "$xdir"; then
+           exit $status
+         fi
+         # We will extract separately just the conflicting names and we will no
+         # longer touch any unique names. It is faster to leave these extract
+         # automatically by $AR in one run.
+         $show "(cd $xdir && $AR x $xabs)"
+         $run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
+         if ($AR t "$xabs" | sort | sort -uc >/dev/null 2>&1); then
+           :
+         else
+           $echo "$modename: warning: object name conflicts; renaming object files" 1>&2
+           $echo "$modename: warning: to ensure that they will not overwrite" 1>&2
+           $AR t "$xabs" | sort | uniq -cd | while read -r count name
+           do
+             i=1
+             while test "$i" -le "$count"
+             do
+              # Put our $i before any first dot (extension)
+              # Never overwrite any file
+              name_to="$name"
+              while test "X$name_to" = "X$name" || test -f "$xdir/$name_to"
+              do
+                name_to=`$echo "X$name_to" | $Xsed -e "s/\([^.]*\)/\1-$i/"`
+              done
+              $show "(cd $xdir && $AR xN $i $xabs '$name' && $mv '$name' '$name_to')"
+              $run eval "(cd \$xdir && $AR xN $i \$xabs '$name' && $mv '$name' '$name_to')" || exit $?
+              i=`expr $i + 1`
+             done
+           done
+         fi
+
+         oldobjs="$oldobjs "`find $xdir -name \*.${objext} -print -o -name \*.lo -print | $NL2SP`
+       done
+      fi
+
+      # Do each command in the archive commands.
+      if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
+       cmds=$old_archive_from_new_cmds
+      else
+       eval cmds=\"$old_archive_cmds\"
+
+       if len=`expr "X$cmds" : ".*"` &&
+            test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
+         cmds=$old_archive_cmds
+       else
+         # the command line is too long to link in one step, link in parts
+         $echo "using piecewise archive linking..."
+         save_RANLIB=$RANLIB
+         RANLIB=:
+         objlist=
+         concat_cmds=
+         save_oldobjs=$oldobjs
+         # GNU ar 2.10+ was changed to match POSIX; thus no paths are
+         # encoded into archives.  This makes 'ar r' malfunction in
+         # this piecewise linking case whenever conflicting object
+         # names appear in distinct ar calls; check, warn and compensate.
+           if (for obj in $save_oldobjs
+           do
+             $echo "X$obj" | $Xsed -e 's%^.*/%%'
+           done | sort | sort -uc >/dev/null 2>&1); then
+           :
+         else
+           $echo "$modename: warning: object name conflicts; overriding AR_FLAGS to 'cq'" 1>&2
+           $echo "$modename: warning: to ensure that POSIX-compatible ar will work" 1>&2
+           AR_FLAGS=cq
+         fi
+         # Is there a better way of finding the last object in the list?
+         for obj in $save_oldobjs
+         do
+           last_oldobj=$obj
+         done
+         for obj in $save_oldobjs
+         do
+           oldobjs="$objlist $obj"
+           objlist="$objlist $obj"
+           eval test_cmds=\"$old_archive_cmds\"
+           if len=`expr "X$test_cmds" : ".*"` &&
+              test "$len" -le "$max_cmd_len"; then
+             :
+           else
+             # the above command should be used before it gets too long
+             oldobjs=$objlist
+             if test "$obj" = "$last_oldobj" ; then
+               RANLIB=$save_RANLIB
+             fi
+             test -z "$concat_cmds" || concat_cmds=$concat_cmds~
+             eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\"
+             objlist=
+           fi
+         done
+         RANLIB=$save_RANLIB
+         oldobjs=$objlist
+         if test "X$oldobjs" = "X" ; then
+           eval cmds=\"\$concat_cmds\"
+         else
+           eval cmds=\"\$concat_cmds~\$old_archive_cmds\"
+         fi
+       fi
+      fi
+      save_ifs="$IFS"; IFS='~'
+      for cmd in $cmds; do
+        eval cmd=\"$cmd\"
+       IFS="$save_ifs"
+       $show "$cmd"
+       $run eval "$cmd" || exit $?
+      done
+      IFS="$save_ifs"
+    done
+
+    if test -n "$generated"; then
+      $show "${rm}r$generated"
+      $run ${rm}r$generated
+    fi
+
+    # Now create the libtool archive.
+    case $output in
+    *.la)
+      old_library=
+      test "$build_old_libs" = yes && old_library="$libname.$libext"
+      $show "creating $output"
+
+      # Preserve any variables that may affect compiler behavior
+      for var in $variables_saved_for_relink; do
+       if eval test -z \"\${$var+set}\"; then
+         relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command"
+       elif eval var_value=\$$var; test -z "$var_value"; then
+         relink_command="$var=; export $var; $relink_command"
+       else
+         var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"`
+         relink_command="$var=\"$var_value\"; export $var; $relink_command"
+       fi
+      done
+      # Quote the link command for shipping.
+      relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
+      relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"`
+      if test "$hardcode_automatic" = yes ; then
+       relink_command=
+      fi
+
+
+      # Only create the output if not a dry run.
+      if test -z "$run"; then
+       for installed in no yes; do
+         if test "$installed" = yes; then
+           if test -z "$install_libdir"; then
+             break
+           fi
+           output="$output_objdir/$outputname"i
+           # Replace all uninstalled libtool libraries with the installed ones
+           newdependency_libs=
+           for deplib in $dependency_libs; do
+             case $deplib in
+             *.la)
+               name=`$echo "X$deplib" | $Xsed -e 's%^.*/%%'`
+               eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
+               if test -z "$libdir"; then
+                 $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
+                 exit $EXIT_FAILURE
+               fi
+               newdependency_libs="$newdependency_libs $libdir/$name"
+               ;;
+             *) newdependency_libs="$newdependency_libs $deplib" ;;
+             esac
+           done
+           dependency_libs="$newdependency_libs"
+           newdlfiles=
+           for lib in $dlfiles; do
+             name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
+             eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
+             if test -z "$libdir"; then
+               $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
+               exit $EXIT_FAILURE
+             fi
+             newdlfiles="$newdlfiles $libdir/$name"
+           done
+           dlfiles="$newdlfiles"
+           newdlprefiles=
+           for lib in $dlprefiles; do
+             name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
+             eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
+             if test -z "$libdir"; then
+               $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
+               exit $EXIT_FAILURE
+             fi
+             newdlprefiles="$newdlprefiles $libdir/$name"
+           done
+           dlprefiles="$newdlprefiles"
+         else
+           newdlfiles=
+           for lib in $dlfiles; do
+             case $lib in
+               [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
+               *) abs=`pwd`"/$lib" ;;
+             esac
+             newdlfiles="$newdlfiles $abs"
+           done
+           dlfiles="$newdlfiles"
+           newdlprefiles=
+           for lib in $dlprefiles; do
+             case $lib in
+               [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
+               *) abs=`pwd`"/$lib" ;;
+             esac
+             newdlprefiles="$newdlprefiles $abs"
+           done
+           dlprefiles="$newdlprefiles"
+         fi
+         $rm $output
+         # place dlname in correct position for cygwin
+         tdlname=$dlname
+         case $host,$output,$installed,$module,$dlname in
+           *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;;
+         esac
+         $echo > $output "\
+# $outputname - a libtool library file
+# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
+#
+# Please DO NOT delete this file!
+# It is necessary for linking the library.
+
+# The name that we can dlopen(3).
+dlname='$tdlname'
+
+# Names of this library.
+library_names='$library_names'
+
+# The name of the static archive.
+old_library='$old_library'
+
+# Libraries that this one depends upon.
+dependency_libs='$dependency_libs'
+
+# Version information for $libname.
+current=$current
+age=$age
+revision=$revision
+
+# Is this an already installed library?
+installed=$installed
+
+# Should we warn about portability when linking against -modules?
+shouldnotlink=$module
+
+# Files to dlopen/dlpreopen
+dlopen='$dlfiles'
+dlpreopen='$dlprefiles'
+
+# Directory that this library needs to be installed in:
+libdir='$install_libdir'"
+         if test "$installed" = no && test "$need_relink" = yes; then
+           $echo >> $output "\
+relink_command=\"$relink_command\""
+         fi
+       done
+      fi
+
+      # Do a symbolic link so that the libtool archive can be found in
+      # LD_LIBRARY_PATH before the program is installed.
+      $show "(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)"
+      $run eval '(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)' || exit $?
+      ;;
+    esac
+    exit $EXIT_SUCCESS
+    ;;
+
+  # libtool install mode
+  install)
+    modename="$modename: install"
+
+    # There may be an optional sh(1) argument at the beginning of
+    # install_prog (especially on Windows NT).
+    if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
+       # Allow the use of GNU shtool's install command.
+       $echo "X$nonopt" | $Xsed | grep shtool > /dev/null; then
+      # Aesthetically quote it.
+      arg=`$echo "X$nonopt" | $Xsed -e "$sed_quote_subst"`
+      case $arg in
+      *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \    ]*|*]*)
+       arg="\"$arg\""
+       ;;
+      esac
+      install_prog="$arg "
+      arg="$1"
+      shift
+    else
+      install_prog=
+      arg="$nonopt"
+    fi
+
+    # The real first argument should be the name of the installation program.
+    # Aesthetically quote it.
+    arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
+    case $arg in
+    *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \      ]*|*]*)
+      arg="\"$arg\""
+      ;;
+    esac
+    install_prog="$install_prog$arg"
+
+    # We need to accept at least all the BSD install flags.
+    dest=
+    files=
+    opts=
+    prev=
+    install_type=
+    isdir=no
+    stripme=
+    for arg
+    do
+      if test -n "$dest"; then
+       files="$files $dest"
+       dest="$arg"
+       continue
+      fi
+
+      case $arg in
+      -d) isdir=yes ;;
+      -f) prev="-f" ;;
+      -g) prev="-g" ;;
+      -m) prev="-m" ;;
+      -o) prev="-o" ;;
+      -s)
+       stripme=" -s"
+       continue
+       ;;
+      -*) ;;
+
+      *)
+       # If the previous option needed an argument, then skip it.
+       if test -n "$prev"; then
+         prev=
+       else
+         dest="$arg"
+         continue
+       fi
+       ;;
+      esac
+
+      # Aesthetically quote the argument.
+      arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
+      case $arg in
+      *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \    ]*|*]*)
+       arg="\"$arg\""
+       ;;
+      esac
+      install_prog="$install_prog $arg"
+    done
+
+    if test -z "$install_prog"; then
+      $echo "$modename: you must specify an install program" 1>&2
+      $echo "$help" 1>&2
+      exit $EXIT_FAILURE
+    fi
+
+    if test -n "$prev"; then
+      $echo "$modename: the \`$prev' option requires an argument" 1>&2
+      $echo "$help" 1>&2
+      exit $EXIT_FAILURE
+    fi
+
+    if test -z "$files"; then
+      if test -z "$dest"; then
+       $echo "$modename: no file or destination specified" 1>&2
+      else
+       $echo "$modename: you must specify a destination" 1>&2
+      fi
+      $echo "$help" 1>&2
+      exit $EXIT_FAILURE
+    fi
+
+    # Strip any trailing slash from the destination.
+    dest=`$echo "X$dest" | $Xsed -e 's%/$%%'`
+
+    # Check to see that the destination is a directory.
+    test -d "$dest" && isdir=yes
+    if test "$isdir" = yes; then
+      destdir="$dest"
+      destname=
+    else
+      destdir=`$echo "X$dest" | $Xsed -e 's%/[^/]*$%%'`
+      test "X$destdir" = "X$dest" && destdir=.
+      destname=`$echo "X$dest" | $Xsed -e 's%^.*/%%'`
+
+      # Not a directory, so check to see that there is only one file specified.
+      set dummy $files
+      if test "$#" -gt 2; then
+       $echo "$modename: \`$dest' is not a directory" 1>&2
+       $echo "$help" 1>&2
+       exit $EXIT_FAILURE
+      fi
+    fi
+    case $destdir in
+    [\\/]* | [A-Za-z]:[\\/]*) ;;
+    *)
+      for file in $files; do
+       case $file in
+       *.lo) ;;
+       *)
+         $echo "$modename: \`$destdir' must be an absolute directory name" 1>&2
+         $echo "$help" 1>&2
+         exit $EXIT_FAILURE
+         ;;
+       esac
+      done
+      ;;
+    esac
+
+    # This variable tells wrapper scripts just to set variables rather
+    # than running their programs.
+    libtool_install_magic="$magic"
+
+    staticlibs=
+    future_libdirs=
+    current_libdirs=
+    for file in $files; do
+
+      # Do each installation.
+      case $file in
+      *.$libext)
+       # Do the static libraries later.
+       staticlibs="$staticlibs $file"
+       ;;
+
+      *.la)
+       # Check to see that this really is a libtool archive.
+       if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
+       else
+         $echo "$modename: \`$file' is not a valid libtool archive" 1>&2
+         $echo "$help" 1>&2
+         exit $EXIT_FAILURE
+       fi
+
+       library_names=
+       old_library=
+       relink_command=
+       # If there is no directory component, then add one.
+       case $file in
+       */* | *\\*) . $file ;;
+       *) . ./$file ;;
+       esac
+
+       # Add the libdir to current_libdirs if it is the destination.
+       if test "X$destdir" = "X$libdir"; then
+         case "$current_libdirs " in
+         *" $libdir "*) ;;
+         *) current_libdirs="$current_libdirs $libdir" ;;
+         esac
+       else
+         # Note the libdir as a future libdir.
+         case "$future_libdirs " in
+         *" $libdir "*) ;;
+         *) future_libdirs="$future_libdirs $libdir" ;;
+         esac
+       fi
+
+       dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`/
+       test "X$dir" = "X$file/" && dir=
+       dir="$dir$objdir"
+
+       if test -n "$relink_command"; then
+         # Determine the prefix the user has applied to our future dir.
+         inst_prefix_dir=`$echo "$destdir" | $SED "s%$libdir\$%%"`
+
+         # Don't allow the user to place us outside of our expected
+         # location b/c this prevents finding dependent libraries that
+         # are installed to the same prefix.
+         # At present, this check doesn't affect windows .dll's that
+         # are installed into $libdir/../bin (currently, that works fine)
+         # but it's something to keep an eye on.
+         if test "$inst_prefix_dir" = "$destdir"; then
+           $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2
+           exit $EXIT_FAILURE
+         fi
+
+         if test -n "$inst_prefix_dir"; then
+           # Stick the inst_prefix_dir data into the link command.
+           relink_command=`$echo "$relink_command" | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"`
+         else
+           relink_command=`$echo "$relink_command" | $SED "s%@inst_prefix_dir@%%"`
+         fi
+
+         $echo "$modename: warning: relinking \`$file'" 1>&2
+         $show "$relink_command"
+         if $run eval "$relink_command"; then :
+         else
+           $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2
+           exit $EXIT_FAILURE
+         fi
+       fi
+
+       # See the names of the shared library.
+       set dummy $library_names
+       if test -n "$2"; then
+         realname="$2"
+         shift
+         shift
+
+         srcname="$realname"
+         test -n "$relink_command" && srcname="$realname"T
+
+         # Install the shared library and build the symlinks.
+         $show "$install_prog $dir/$srcname $destdir/$realname"
+         $run eval "$install_prog $dir/$srcname $destdir/$realname" || exit $?
+         if test -n "$stripme" && test -n "$striplib"; then
+           $show "$striplib $destdir/$realname"
+           $run eval "$striplib $destdir/$realname" || exit $?
+         fi
+
+         if test "$#" -gt 0; then
+           # Delete the old symlinks, and create new ones.
+           for linkname
+           do
+             if test "$linkname" != "$realname"; then
+               $show "(cd $destdir && $rm $linkname && $LN_S $realname $linkname)"
+               $run eval "(cd $destdir && $rm $linkname && $LN_S $realname $linkname)"
+             fi
+           done
+         fi
+
+         # Do each command in the postinstall commands.
+         lib="$destdir/$realname"
+         cmds=$postinstall_cmds
+         save_ifs="$IFS"; IFS='~'
+         for cmd in $cmds; do
+           IFS="$save_ifs"
+           eval cmd=\"$cmd\"
+           $show "$cmd"
+           $run eval "$cmd" || exit $?
+         done
+         IFS="$save_ifs"
+       fi
+
+       # Install the pseudo-library for information purposes.
+       name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
+       instname="$dir/$name"i
+       $show "$install_prog $instname $destdir/$name"
+       $run eval "$install_prog $instname $destdir/$name" || exit $?
+
+       # Maybe install the static library, too.
+       test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
+       ;;
+
+      *.lo)
+       # Install (i.e. copy) a libtool object.
+
+       # Figure out destination file name, if it wasn't already specified.
+       if test -n "$destname"; then
+         destfile="$destdir/$destname"
+       else
+         destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
+         destfile="$destdir/$destfile"
+       fi
+
+       # Deduce the name of the destination old-style object file.
+       case $destfile in
+       *.lo)
+         staticdest=`$echo "X$destfile" | $Xsed -e "$lo2o"`
+         ;;
+       *.$objext)
+         staticdest="$destfile"
+         destfile=
+         ;;
+       *)
+         $echo "$modename: cannot copy a libtool object to \`$destfile'" 1>&2
+         $echo "$help" 1>&2
+         exit $EXIT_FAILURE
+         ;;
+       esac
+
+       # Install the libtool object if requested.
+       if test -n "$destfile"; then
+         $show "$install_prog $file $destfile"
+         $run eval "$install_prog $file $destfile" || exit $?
+       fi
+
+       # Install the old object if enabled.
+       if test "$build_old_libs" = yes; then
+         # Deduce the name of the old-style object file.
+         staticobj=`$echo "X$file" | $Xsed -e "$lo2o"`
+
+         $show "$install_prog $staticobj $staticdest"
+         $run eval "$install_prog \$staticobj \$staticdest" || exit $?
+       fi
+       exit $EXIT_SUCCESS
+       ;;
+
+      *)
+       # Figure out destination file name, if it wasn't already specified.
+       if test -n "$destname"; then
+         destfile="$destdir/$destname"
+       else
+         destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
+         destfile="$destdir/$destfile"
+       fi
+
+       # If the file is missing, and there is a .exe on the end, strip it
+       # because it is most likely a libtool script we actually want to
+       # install
+       stripped_ext=""
+       case $file in
+         *.exe)
+           if test ! -f "$file"; then
+             file=`$echo $file|${SED} 's,.exe$,,'`
+             stripped_ext=".exe"
+           fi
+           ;;
+       esac
+
+       # Do a test to see if this is really a libtool program.
+       case $host in
+       *cygwin*|*mingw*)
+           wrapper=`$echo $file | ${SED} -e 's,.exe$,,'`
+           ;;
+       *)
+           wrapper=$file
+           ;;
+       esac
+       if (${SED} -e '4q' $wrapper | grep "^# Generated by .*$PACKAGE")>/dev/null 2>&1; then
+         notinst_deplibs=
+         relink_command=
+
+         # To insure that "foo" is sourced, and not "foo.exe",
+         # finese the cygwin/MSYS system by explicitly sourcing "foo."
+         # which disallows the automatic-append-.exe behavior.
+         case $build in
+         *cygwin* | *mingw*) wrapperdot=${wrapper}. ;;
+         *) wrapperdot=${wrapper} ;;
+         esac
+         # If there is no directory component, then add one.
+         case $file in
+         */* | *\\*) . ${wrapperdot} ;;
+         *) . ./${wrapperdot} ;;
+         esac
+
+         # Check the variables that should have been set.
+         if test -z "$notinst_deplibs"; then
+           $echo "$modename: invalid libtool wrapper script \`$wrapper'" 1>&2
+           exit $EXIT_FAILURE
+         fi
+
+         finalize=yes
+         for lib in $notinst_deplibs; do
+           # Check to see that each library is installed.
+           libdir=
+           if test -f "$lib"; then
+             # If there is no directory component, then add one.
+             case $lib in
+             */* | *\\*) . $lib ;;
+             *) . ./$lib ;;
+             esac
+           fi
+           libfile="$libdir/"`$echo "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test
+           if test -n "$libdir" && test ! -f "$libfile"; then
+             $echo "$modename: warning: \`$lib' has not been installed in \`$libdir'" 1>&2
+             finalize=no
+           fi
+         done
+
+         relink_command=
+         # To insure that "foo" is sourced, and not "foo.exe",
+         # finese the cygwin/MSYS system by explicitly sourcing "foo."
+         # which disallows the automatic-append-.exe behavior.
+         case $build in
+         *cygwin* | *mingw*) wrapperdot=${wrapper}. ;;
+         *) wrapperdot=${wrapper} ;;
+         esac
+         # If there is no directory component, then add one.
+         case $file in
+         */* | *\\*) . ${wrapperdot} ;;
+         *) . ./${wrapperdot} ;;
+         esac
+
+         outputname=
+         if test "$fast_install" = no && test -n "$relink_command"; then
+           if test "$finalize" = yes && test -z "$run"; then
+             tmpdir="/tmp"
+             test -n "$TMPDIR" && tmpdir="$TMPDIR"
+             tmpdir="$tmpdir/libtool-$$"
+             save_umask=`umask`
+             umask 0077
+             if $mkdir "$tmpdir"; then
+               umask $save_umask
+             else
+               umask $save_umask
+               $echo "$modename: error: cannot create temporary directory \`$tmpdir'" 1>&2
+               continue
+             fi
+             file=`$echo "X$file$stripped_ext" | $Xsed -e 's%^.*/%%'`
+             outputname="$tmpdir/$file"
+             # Replace the output file specification.
+             relink_command=`$echo "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'`
+
+             $show "$relink_command"
+             if $run eval "$relink_command"; then :
+             else
+               $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2
+               ${rm}r "$tmpdir"
+               continue
+             fi
+             file="$outputname"
+           else
+             $echo "$modename: warning: cannot relink \`$file'" 1>&2
+           fi
+         else
+           # Install the binary that we compiled earlier.
+           file=`$echo "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"`
+         fi
+       fi
+
+       # remove .exe since cygwin /usr/bin/install will append another
+       # one anyways
+       case $install_prog,$host in
+       */usr/bin/install*,*cygwin*)
+         case $file:$destfile in
+         *.exe:*.exe)
+           # this is ok
+           ;;
+         *.exe:*)
+           destfile=$destfile.exe
+           ;;
+         *:*.exe)
+           destfile=`$echo $destfile | ${SED} -e 's,.exe$,,'`
+           ;;
+         esac
+         ;;
+       esac
+       $show "$install_prog$stripme $file $destfile"
+       $run eval "$install_prog\$stripme \$file \$destfile" || exit $?
+       test -n "$outputname" && ${rm}r "$tmpdir"
+       ;;
+      esac
+    done
+
+    for file in $staticlibs; do
+      name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
+
+      # Set up the ranlib parameters.
+      oldlib="$destdir/$name"
+
+      $show "$install_prog $file $oldlib"
+      $run eval "$install_prog \$file \$oldlib" || exit $?
+
+      if test -n "$stripme" && test -n "$old_striplib"; then
+       $show "$old_striplib $oldlib"
+       $run eval "$old_striplib $oldlib" || exit $?
+      fi
+
+      # Do each command in the postinstall commands.
+      cmds=$old_postinstall_cmds
+      save_ifs="$IFS"; IFS='~'
+      for cmd in $cmds; do
+       IFS="$save_ifs"
+       eval cmd=\"$cmd\"
+       $show "$cmd"
+       $run eval "$cmd" || exit $?
+      done
+      IFS="$save_ifs"
+    done
+
+    if test -n "$future_libdirs"; then
+      $echo "$modename: warning: remember to run \`$progname --finish$future_libdirs'" 1>&2
+    fi
+
+    if test -n "$current_libdirs"; then
+      # Maybe just do a dry run.
+      test -n "$run" && current_libdirs=" -n$current_libdirs"
+      exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs'
+    else
+      exit $EXIT_SUCCESS
+    fi
+    ;;
+
+  # libtool finish mode
+  finish)
+    modename="$modename: finish"
+    libdirs="$nonopt"
+    admincmds=
+
+    if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
+      for dir
+      do
+       libdirs="$libdirs $dir"
+      done
+
+      for libdir in $libdirs; do
+       if test -n "$finish_cmds"; then
+         # Do each command in the finish commands.
+         cmds=$finish_cmds
+         save_ifs="$IFS"; IFS='~'
+         for cmd in $cmds; do
+           IFS="$save_ifs"
+           eval cmd=\"$cmd\"
+           $show "$cmd"
+           $run eval "$cmd" || admincmds="$admincmds
+       $cmd"
+         done
+         IFS="$save_ifs"
+       fi
+       if test -n "$finish_eval"; then
+         # Do the single finish_eval.
+         eval cmds=\"$finish_eval\"
+         $run eval "$cmds" || admincmds="$admincmds
+       $cmds"
+       fi
+      done
+    fi
+
+    # Exit here if they wanted silent mode.
+    test "$show" = : && exit $EXIT_SUCCESS
+
+    $echo "----------------------------------------------------------------------"
+    $echo "Libraries have been installed in:"
+    for libdir in $libdirs; do
+      $echo "   $libdir"
+    done
+    $echo
+    $echo "If you ever happen to want to link against installed libraries"
+    $echo "in a given directory, LIBDIR, you must either use libtool, and"
+    $echo "specify the full pathname of the library, or use the \`-LLIBDIR'"
+    $echo "flag during linking and do at least one of the following:"
+    if test -n "$shlibpath_var"; then
+      $echo "   - add LIBDIR to the \`$shlibpath_var' environment variable"
+      $echo "     during execution"
+    fi
+    if test -n "$runpath_var"; then
+      $echo "   - add LIBDIR to the \`$runpath_var' environment variable"
+      $echo "     during linking"
+    fi
+    if test -n "$hardcode_libdir_flag_spec"; then
+      libdir=LIBDIR
+      eval flag=\"$hardcode_libdir_flag_spec\"
+
+      $echo "   - use the \`$flag' linker flag"
+    fi
+    if test -n "$admincmds"; then
+      $echo "   - have your system administrator run these commands:$admincmds"
+    fi
+    if test -f /etc/ld.so.conf; then
+      $echo "   - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
+    fi
+    $echo
+    $echo "See any operating system documentation about shared libraries for"
+    $echo "more information, such as the ld(1) and ld.so(8) manual pages."
+    $echo "----------------------------------------------------------------------"
+    exit $EXIT_SUCCESS
+    ;;
+
+  # libtool execute mode
+  execute)
+    modename="$modename: execute"
+
+    # The first argument is the command name.
+    cmd="$nonopt"
+    if test -z "$cmd"; then
+      $echo "$modename: you must specify a COMMAND" 1>&2
+      $echo "$help"
+      exit $EXIT_FAILURE
+    fi
+
+    # Handle -dlopen flags immediately.
+    for file in $execute_dlfiles; do
+      if test ! -f "$file"; then
+       $echo "$modename: \`$file' is not a file" 1>&2
+       $echo "$help" 1>&2
+       exit $EXIT_FAILURE
+      fi
+
+      dir=
+      case $file in
+      *.la)
+       # Check to see that this really is a libtool archive.
+       if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
+       else
+         $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
+         $echo "$help" 1>&2
+         exit $EXIT_FAILURE
+       fi
+
+       # Read the libtool library.
+       dlname=
+       library_names=
+
+       # If there is no directory component, then add one.
+       case $file in
+       */* | *\\*) . $file ;;
+       *) . ./$file ;;
+       esac
+
+       # Skip this library if it cannot be dlopened.
+       if test -z "$dlname"; then
+         # Warn if it was a shared library.
+         test -n "$library_names" && $echo "$modename: warning: \`$file' was not linked with \`-export-dynamic'"
+         continue
+       fi
+
+       dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
+       test "X$dir" = "X$file" && dir=.
+
+       if test -f "$dir/$objdir/$dlname"; then
+         dir="$dir/$objdir"
+       else
+         $echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2
+         exit $EXIT_FAILURE
+       fi
+       ;;
+
+      *.lo)
+       # Just add the directory containing the .lo file.
+       dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
+       test "X$dir" = "X$file" && dir=.
+       ;;
+
+      *)
+       $echo "$modename: warning \`-dlopen' is ignored for non-libtool libraries and objects" 1>&2
+       continue
+       ;;
+      esac
+
+      # Get the absolute pathname.
+      absdir=`cd "$dir" && pwd`
+      test -n "$absdir" && dir="$absdir"
+
+      # Now add the directory to shlibpath_var.
+      if eval "test -z \"\$$shlibpath_var\""; then
+       eval "$shlibpath_var=\"\$dir\""
+      else
+       eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\""
+      fi
+    done
+
+    # This variable tells wrapper scripts just to set shlibpath_var
+    # rather than running their programs.
+    libtool_execute_magic="$magic"
+
+    # Check if any of the arguments is a wrapper script.
+    args=
+    for file
+    do
+      case $file in
+      -*) ;;
+      *)
+       # Do a test to see if this is really a libtool program.
+       if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
+         # If there is no directory component, then add one.
+         case $file in
+         */* | *\\*) . $file ;;
+         *) . ./$file ;;
+         esac
+
+         # Transform arg to wrapped name.
+         file="$progdir/$program"
+       fi
+       ;;
+      esac
+      # Quote arguments (to preserve shell metacharacters).
+      file=`$echo "X$file" | $Xsed -e "$sed_quote_subst"`
+      args="$args \"$file\""
+    done
+
+    if test -z "$run"; then
+      if test -n "$shlibpath_var"; then
+       # Export the shlibpath_var.
+       eval "export $shlibpath_var"
+      fi
+
+      # Restore saved environment variables
+      if test "${save_LC_ALL+set}" = set; then
+       LC_ALL="$save_LC_ALL"; export LC_ALL
+      fi
+      if test "${save_LANG+set}" = set; then
+       LANG="$save_LANG"; export LANG
+      fi
+
+      # Now prepare to actually exec the command.
+      exec_cmd="\$cmd$args"
+    else
+      # Display what would be done.
+      if test -n "$shlibpath_var"; then
+       eval "\$echo \"\$shlibpath_var=\$$shlibpath_var\""
+       $echo "export $shlibpath_var"
+      fi
+      $echo "$cmd$args"
+      exit $EXIT_SUCCESS
+    fi
+    ;;
+
+  # libtool clean and uninstall mode
+  clean | uninstall)
+    modename="$modename: $mode"
+    rm="$nonopt"
+    files=
+    rmforce=
+    exit_status=0
+
+    # This variable tells wrapper scripts just to set variables rather
+    # than running their programs.
+    libtool_install_magic="$magic"
+
+    for arg
+    do
+      case $arg in
+      -f) rm="$rm $arg"; rmforce=yes ;;
+      -*) rm="$rm $arg" ;;
+      *) files="$files $arg" ;;
+      esac
+    done
+
+    if test -z "$rm"; then
+      $echo "$modename: you must specify an RM program" 1>&2
+      $echo "$help" 1>&2
+      exit $EXIT_FAILURE
+    fi
+
+    rmdirs=
+
+    origobjdir="$objdir"
+    for file in $files; do
+      dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
+      if test "X$dir" = "X$file"; then
+       dir=.
+       objdir="$origobjdir"
+      else
+       objdir="$dir/$origobjdir"
+      fi
+      name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
+      test "$mode" = uninstall && objdir="$dir"
+
+      # Remember objdir for removal later, being careful to avoid duplicates
+      if test "$mode" = clean; then
+       case " $rmdirs " in
+         *" $objdir "*) ;;
+         *) rmdirs="$rmdirs $objdir" ;;
+       esac
+      fi
+
+      # Don't error if the file doesn't exist and rm -f was used.
+      if (test -L "$file") >/dev/null 2>&1 \
+       || (test -h "$file") >/dev/null 2>&1 \
+       || test -f "$file"; then
+       :
+      elif test -d "$file"; then
+       exit_status=1
+       continue
+      elif test "$rmforce" = yes; then
+       continue
+      fi
+
+      rmfiles="$file"
+
+      case $name in
+      *.la)
+       # Possibly a libtool archive, so verify it.
+       if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
+         . $dir/$name
+
+         # Delete the libtool libraries and symlinks.
+         for n in $library_names; do
+           rmfiles="$rmfiles $objdir/$n"
+         done
+         test -n "$old_library" && rmfiles="$rmfiles $objdir/$old_library"
+         test "$mode" = clean && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
+
+         if test "$mode" = uninstall; then
+           if test -n "$library_names"; then
+             # Do each command in the postuninstall commands.
+             cmds=$postuninstall_cmds
+             save_ifs="$IFS"; IFS='~'
+             for cmd in $cmds; do
+               IFS="$save_ifs"
+               eval cmd=\"$cmd\"
+               $show "$cmd"
+               $run eval "$cmd"
+               if test "$?" -ne 0 && test "$rmforce" != yes; then
+                 exit_status=1
+               fi
+             done
+             IFS="$save_ifs"
+           fi
+
+           if test -n "$old_library"; then
+             # Do each command in the old_postuninstall commands.
+             cmds=$old_postuninstall_cmds
+             save_ifs="$IFS"; IFS='~'
+             for cmd in $cmds; do
+               IFS="$save_ifs"
+               eval cmd=\"$cmd\"
+               $show "$cmd"
+               $run eval "$cmd"
+               if test "$?" -ne 0 && test "$rmforce" != yes; then
+                 exit_status=1
+               fi
+             done
+             IFS="$save_ifs"
+           fi
+           # FIXME: should reinstall the best remaining shared library.
+         fi
+       fi
+       ;;
+
+      *.lo)
+       # Possibly a libtool object, so verify it.
+       if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
+
+         # Read the .lo file
+         . $dir/$name
+
+         # Add PIC object to the list of files to remove.
+         if test -n "$pic_object" \
+            && test "$pic_object" != none; then
+           rmfiles="$rmfiles $dir/$pic_object"
+         fi
+
+         # Add non-PIC object to the list of files to remove.
+         if test -n "$non_pic_object" \
+            && test "$non_pic_object" != none; then
+           rmfiles="$rmfiles $dir/$non_pic_object"
+         fi
+       fi
+       ;;
+
+      *)
+       if test "$mode" = clean ; then
+         noexename=$name
+         case $file in
+         *.exe)
+           file=`$echo $file|${SED} 's,.exe$,,'`
+           noexename=`$echo $name|${SED} 's,.exe$,,'`
+           # $file with .exe has already been added to rmfiles,
+           # add $file without .exe
+           rmfiles="$rmfiles $file"
+           ;;
+         esac
+         # Do a test to see if this is a libtool program.
+         if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
+           relink_command=
+           . $dir/$noexename
+
+           # note $name still contains .exe if it was in $file originally
+           # as does the version of $file that was added into $rmfiles
+           rmfiles="$rmfiles $objdir/$name $objdir/${name}S.${objext}"
+           if test "$fast_install" = yes && test -n "$relink_command"; then
+             rmfiles="$rmfiles $objdir/lt-$name"
+           fi
+           if test "X$noexename" != "X$name" ; then
+             rmfiles="$rmfiles $objdir/lt-${noexename}.c"
+           fi
+         fi
+       fi
+       ;;
+      esac
+      $show "$rm $rmfiles"
+      $run $rm $rmfiles || exit_status=1
+    done
+    objdir="$origobjdir"
+
+    # Try to remove the ${objdir}s in the directories where we deleted files
+    for dir in $rmdirs; do
+      if test -d "$dir"; then
+       $show "rmdir $dir"
+       $run rmdir $dir >/dev/null 2>&1
+      fi
+    done
+
+    exit $exit_status
+    ;;
+
+  "")
+    $echo "$modename: you must specify a MODE" 1>&2
+    $echo "$generic_help" 1>&2
+    exit $EXIT_FAILURE
+    ;;
+  esac
+
+  if test -z "$exec_cmd"; then
+    $echo "$modename: invalid operation mode \`$mode'" 1>&2
+    $echo "$generic_help" 1>&2
+    exit $EXIT_FAILURE
+  fi
+fi # test -z "$show_help"
+
+if test -n "$exec_cmd"; then
+  eval exec $exec_cmd
+  exit $EXIT_FAILURE
+fi
+
+# We need to display help for each of the modes.
+case $mode in
+"") $echo \
+"Usage: $modename [OPTION]... [MODE-ARG]...
+
+Provide generalized library-building support services.
+
+    --config          show all configuration variables
+    --debug           enable verbose shell tracing
+-n, --dry-run         display commands without modifying any files
+    --features        display basic configuration information and exit
+    --finish          same as \`--mode=finish'
+    --help            display this help message and exit
+    --mode=MODE       use operation mode MODE [default=inferred from MODE-ARGS]
+    --quiet           same as \`--silent'
+    --silent          don't print informational messages
+    --tag=TAG         use configuration variables from tag TAG
+    --version         print version information
+
+MODE must be one of the following:
+
+      clean           remove files from the build directory
+      compile         compile a source file into a libtool object
+      execute         automatically set library path, then run a program
+      finish          complete the installation of libtool libraries
+      install         install libraries or executables
+      link            create a library or an executable
+      uninstall       remove libraries from an installed directory
+
+MODE-ARGS vary depending on the MODE.  Try \`$modename --help --mode=MODE' for
+a more detailed description of MODE.
+
+Report bugs to <bug-libtool@gnu.org>."
+  exit $EXIT_SUCCESS
+  ;;
+
+clean)
+  $echo \
+"Usage: $modename [OPTION]... --mode=clean RM [RM-OPTION]... FILE...
+
+Remove files from the build directory.
+
+RM is the name of the program to use to delete files associated with each FILE
+(typically \`/bin/rm').  RM-OPTIONS are options (such as \`-f') to be passed
+to RM.
+
+If FILE is a libtool library, object or program, all the files associated
+with it are deleted. Otherwise, only FILE itself is deleted using RM."
+  ;;
+
+compile)
+  $echo \
+"Usage: $modename [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE
+
+Compile a source file into a libtool library object.
+
+This mode accepts the following additional options:
+
+  -o OUTPUT-FILE    set the output file name to OUTPUT-FILE
+  -prefer-pic       try to building PIC objects only
+  -prefer-non-pic   try to building non-PIC objects only
+  -static           always build a \`.o' file suitable for static linking
+
+COMPILE-COMMAND is a command to be used in creating a \`standard' object file
+from the given SOURCEFILE.
+
+The output file name is determined by removing the directory component from
+SOURCEFILE, then substituting the C source code suffix \`.c' with the
+library object suffix, \`.lo'."
+  ;;
+
+execute)
+  $echo \
+"Usage: $modename [OPTION]... --mode=execute COMMAND [ARGS]...
+
+Automatically set library path, then run a program.
+
+This mode accepts the following additional options:
+
+  -dlopen FILE      add the directory containing FILE to the library path
+
+This mode sets the library path environment variable according to \`-dlopen'
+flags.
+
+If any of the ARGS are libtool executable wrappers, then they are translated
+into their corresponding uninstalled binary, and any of their required library
+directories are added to the library path.
+
+Then, COMMAND is executed, with ARGS as arguments."
+  ;;
+
+finish)
+  $echo \
+"Usage: $modename [OPTION]... --mode=finish [LIBDIR]...
+
+Complete the installation of libtool libraries.
+
+Each LIBDIR is a directory that contains libtool libraries.
+
+The commands that this mode executes may require superuser privileges.  Use
+the \`--dry-run' option if you just want to see what would be executed."
+  ;;
+
+install)
+  $echo \
+"Usage: $modename [OPTION]... --mode=install INSTALL-COMMAND...
+
+Install executables or libraries.
+
+INSTALL-COMMAND is the installation command.  The first component should be
+either the \`install' or \`cp' program.
+
+The rest of the components are interpreted as arguments to that command (only
+BSD-compatible install options are recognized)."
+  ;;
+
+link)
+  $echo \
+"Usage: $modename [OPTION]... --mode=link LINK-COMMAND...
+
+Link object files or libraries together to form another library, or to
+create an executable program.
+
+LINK-COMMAND is a command using the C compiler that you would use to create
+a program from several object files.
+
+The following components of LINK-COMMAND are treated specially:
+
+  -all-static       do not do any dynamic linking at all
+  -avoid-version    do not add a version suffix if possible
+  -dlopen FILE      \`-dlpreopen' FILE if it cannot be dlopened at runtime
+  -dlpreopen FILE   link in FILE and add its symbols to lt_preloaded_symbols
+  -export-dynamic   allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
+  -export-symbols SYMFILE
+                   try to export only the symbols listed in SYMFILE
+  -export-symbols-regex REGEX
+                   try to export only the symbols matching REGEX
+  -LLIBDIR          search LIBDIR for required installed libraries
+  -lNAME            OUTPUT-FILE requires the installed library libNAME
+  -module           build a library that can dlopened
+  -no-fast-install  disable the fast-install mode
+  -no-install       link a not-installable executable
+  -no-undefined     declare that a library does not refer to external symbols
+  -o OUTPUT-FILE    create OUTPUT-FILE from the specified objects
+  -objectlist FILE  Use a list of object files found in FILE to specify objects
+  -precious-files-regex REGEX
+                    don't remove output files matching REGEX
+  -release RELEASE  specify package release information
+  -rpath LIBDIR     the created library will eventually be installed in LIBDIR
+  -R[ ]LIBDIR       add LIBDIR to the runtime path of programs and libraries
+  -static           do not do any dynamic linking of libtool libraries
+  -version-info CURRENT[:REVISION[:AGE]]
+                   specify library version info [each variable defaults to 0]
+
+All other options (arguments beginning with \`-') are ignored.
+
+Every other argument is treated as a filename.  Files ending in \`.la' are
+treated as uninstalled libtool libraries, other files are standard or library
+object files.
+
+If the OUTPUT-FILE ends in \`.la', then a libtool library is created,
+only library objects (\`.lo' files) may be specified, and \`-rpath' is
+required, except when creating a convenience library.
+
+If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created
+using \`ar' and \`ranlib', or on Windows using \`lib'.
+
+If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file
+is created, otherwise an executable program is created."
+  ;;
+
+uninstall)
+  $echo \
+"Usage: $modename [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE...
+
+Remove libraries from an installation directory.
+
+RM is the name of the program to use to delete files associated with each FILE
+(typically \`/bin/rm').  RM-OPTIONS are options (such as \`-f') to be passed
+to RM.
+
+If FILE is a libtool library, all the files associated with it are deleted.
+Otherwise, only FILE itself is deleted using RM."
+  ;;
+
+*)
+  $echo "$modename: invalid operation mode \`$mode'" 1>&2
+  $echo "$help" 1>&2
+  exit $EXIT_FAILURE
+  ;;
+esac
+
+$echo
+$echo "Try \`$modename --help' for more information about other modes."
+
+exit $EXIT_SUCCESS
+
+# The TAGs below are defined such that we never get into a situation
+# in which we disable both kinds of libraries.  Given conflicting
+# choices, we go for a static library, that is the most portable,
+# since we can't tell whether shared libraries were disabled because
+# the user asked for that or because the platform doesn't support
+# them.  This is particularly important on AIX, because we don't
+# support having both static and shared libraries enabled at the same
+# time on that platform, so we default to a shared-only configuration.
+# If a disable-shared tag is given, we'll fallback to a static-only
+# configuration.  But we'll never go from static-only to shared-only.
+
+# ### BEGIN LIBTOOL TAG CONFIG: disable-shared
+build_libtool_libs=no
+build_old_libs=yes
+# ### END LIBTOOL TAG CONFIG: disable-shared
+
+# ### BEGIN LIBTOOL TAG CONFIG: disable-static
+build_old_libs=`case $build_libtool_libs in yes) $echo no;; *) $echo yes;; esac`
+# ### END LIBTOOL TAG CONFIG: disable-static
+
+# Local Variables:
+# mode:shell-script
+# sh-indentation:2
+# End:
diff --git a/opensaml.spec.in b/opensaml.spec.in
new file mode 100644 (file)
index 0000000..04d64e9
--- /dev/null
@@ -0,0 +1,91 @@
+Name:          opensaml
+Summary:       Open source SAML library
+Version:       @-VERSION-@
+Release:       1
+Group:         System Environment/Libraries
+Vendor:                Internet2
+License:       Apache 2.0
+URL:           http://www.opensaml.org/
+Source0:       http://shibboleth.internet2.edu/downloads/%{name}-%{version}.tar.gz
+Source1:       http://shibboleth.internet2.edu/downloads/%{name}-%{version}.tar.gz.asc
+BuildRoot:     %{_tmppath}/%{name}-%{version}-root
+
+BuildRequires: xerces-c-devel >= 2.6.1
+BuildRequires: xml-security-c-devel >= 1.3.0
+BuildRequires: log4cpp-devel >= 0.3.5
+BuildRequires: xmltooling-devel, cxxtest, doxygen
+
+%description
+OpenSAML is an open source implementation of the OASIS Security Assertion
+Markup Language Specification. It contains a set of open source C++ classes
+that support the SAML 1.0, 1.1, and 2.0 specifications.
+
+This package contains the saml runtime library.
+
+%package devel
+Summary: OpenSAML development Headers
+Group: Development/Libraries
+Requires: %{name} = %{version}
+
+%description devel
+OpenSAML is an open source implementation of the OASIS Security Assertion
+Markup Language Specification. It contains a set of open source C++ classes
+that support the SAML 1.0, 1.1, and 2.0 specifications.
+
+This package contains the headers and other necessary files to build
+applications or libraries that use or extend the saml library.
+
+%package docs
+Summary: OpenSAML API Documentation
+Group: Development/Libraries
+Requires: %{name} = %{version}
+
+%description docs
+OpenSAML Library API documentation generated by doxygen.
+
+%prep
+%setup -q
+
+%build
+%configure %{?saml_options}
+make
+
+%install
+[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
+rm -rf _docs
+
+make install DESTDIR=$RPM_BUILD_ROOT
+#mv $RPM_BUILD_ROOT/usr/doc/%{name} _docs
+
+%check || :
+make check
+
+%clean
+[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
+
+%post
+/sbin/ldconfig
+
+%postun
+/sbin/ldconfig
+
+%files
+%defattr(-,root,root,-)
+#%doc _docs/LICENSE.txt _docs/NEWS.txt _docs/README.txt _docs/TODO.txt
+%{_bindir}/samltest
+%{_libdir}/libsaml.so.*
+%dir %{_datadir}/xml/%{name}
+%{_datadir}/xml/%{name}
+
+%files devel
+%defattr(-,root,root,-)
+%{_includedir}
+%{_libdir}/libsaml.so
+
+%files docs
+%defattr(644,root,root,755)
+%doc doc/api/*
+
+%changelog
+* Sun Apr 16 2006  Scott Cantor  <cantor.2@osu.edu>  - 2.0-1
+- First SPEC file for 2.0
diff --git a/pkginfo.in b/pkginfo.in
new file mode 100644 (file)
index 0000000..df6977c
--- /dev/null
@@ -0,0 +1,10 @@
+ARCH=sparc\r
+PKG=SHIBosaml\r
+NAME=OpenSAML for C++\r
+VERSION=@-VERSION-@\r
+CATEGORY=system\r
+VENDOR=http://www.opensaml.org/ packaged for Shibboleth by Scott Cantor\r
+HOTLINE=http://bugzilla.internet2.edu/\r
+EMAIL=cantor.2@osu.edu\r
+PSTAMP=1May2006\r
+CLASSES=none\r