Changeset 3f5c713 in mod_gnutls


Ignore:
Timestamp:
Jan 11, 2013, 12:55:21 AM (7 years ago)
Author:
Daniel Kahn Gillmor <dkg@…>
Branches:
debian/master, debian/stretch-backports, jessie-backports
Children:
40ac29f
Parents:
1c87791 (diff), 70c2d86 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge tag 'upstream/0.3.4'

Upstream version 0.3.4

Files:
2 added
26 edited

Legend:

Unmodified
Added
Removed
  • Makefile.am

    r1c87791 r3f5c713  
    33EXTRA_DIST = m4/outoforder.m4 m4/apache.m4 \
    44                m4/libgnutls.m4 m4/apr_memcache.m4 \
    5                 m4/apache_test.m4 \
     5                m4/apache_test.m4 m4/lua.m4 \
    66                include/mod_gnutls.h.in \
    7                 README \
     7                README README.ENV \
    88                NOTICE LICENSE autogen.sh
    99
    1010SUBDIRS = src data
     11ACLOCAL_AMFLAGS = -I m4
  • Makefile.in

    r1c87791 r3f5c713  
    1 # Makefile.in generated by automake 1.9.5 from Makefile.am.
     1# Makefile.in generated by automake 1.10 from Makefile.am.
    22# @configure_input@
    33
    44# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
    5 # 2003, 2004, 2005  Free Software Foundation, Inc.
     5# 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
    66# This Makefile.in is free software; the Free Software Foundation
    77# gives unlimited permission to copy and/or distribute it,
     
    1414
    1515@SET_MAKE@
    16 srcdir = @srcdir@
    17 top_srcdir = @top_srcdir@
    1816VPATH = @srcdir@
    1917pkgdatadir = $(datadir)/@PACKAGE@
    2018pkglibdir = $(libdir)/@PACKAGE@
    2119pkgincludedir = $(includedir)/@PACKAGE@
    22 top_builddir = .
    2320am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
    24 INSTALL = @INSTALL@
    2521install_sh_DATA = $(install_sh) -c -m 644
    2622install_sh_PROGRAM = $(install_sh) -c
     
    3733host_triplet = @host@
    3834target_triplet = @target@
     35subdir = .
    3936DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \
    4037        $(srcdir)/Makefile.in $(srcdir)/config.in \
     
    4340        config/depcomp config/install-sh config/ltmain.sh \
    4441        config/missing
    45 subdir = .
    4642ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
    4743am__aclocal_m4_deps = $(top_srcdir)/m4/apache.m4 \
     
    5248        $(ACLOCAL_M4)
    5349am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
    54  configure.lineno configure.status.lineno
     50 configure.lineno config.status.lineno
    5551mkinstalldirs = $(install_sh) -d
    5652CONFIG_HEADER = $(top_builddir)/include/mod_gnutls_config.h
     
    6056RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
    6157        html-recursive info-recursive install-data-recursive \
    62         install-exec-recursive install-info-recursive \
    63         install-recursive installcheck-recursive installdirs-recursive \
    64         pdf-recursive ps-recursive uninstall-info-recursive \
    65         uninstall-recursive
     58        install-dvi-recursive install-exec-recursive \
     59        install-html-recursive install-info-recursive \
     60        install-pdf-recursive install-ps-recursive install-recursive \
     61        installcheck-recursive installdirs-recursive pdf-recursive \
     62        ps-recursive uninstall-recursive
     63RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
     64  distclean-recursive maintainer-clean-recursive
    6665ETAGS = etags
    6766CTAGS = ctags
     
    7978distcleancheck_listfiles = find . -type f -print
    8079ACLOCAL = @ACLOCAL@
    81 AMDEP_FALSE = @AMDEP_FALSE@
    82 AMDEP_TRUE = @AMDEP_TRUE@
    8380AMTAR = @AMTAR@
    8481APR_INCLUDES = @APR_INCLUDES@
     
    10097AP_SYSCONFDIR = @AP_SYSCONFDIR@
    10198AP_VERSION = @AP_VERSION@
     99AR = @AR@
    102100AUTOCONF = @AUTOCONF@
    103101AUTOHEADER = @AUTOHEADER@
     
    107105CCDEPMODE = @CCDEPMODE@
    108106CFLAGS = @CFLAGS@
     107CPP = @CPP@
    109108CPPFLAGS = @CPPFLAGS@
     109CXX = @CXX@
     110CXXCPP = @CXXCPP@
     111CXXDEPMODE = @CXXDEPMODE@
     112CXXFLAGS = @CXXFLAGS@
    110113CYGPATH_W = @CYGPATH_W@
    111114DEFS = @DEFS@
    112115DEPDIR = @DEPDIR@
     116ECHO = @ECHO@
    113117ECHO_C = @ECHO_C@
    114118ECHO_N = @ECHO_N@
     
    116120EGREP = @EGREP@
    117121EXEEXT = @EXEEXT@
     122F77 = @F77@
     123FFLAGS = @FFLAGS@
    118124GNUTLS_CERTTOOL = @GNUTLS_CERTTOOL@
     125GREP = @GREP@
    119126GTLS_BIN = @GTLS_BIN@
     127INSTALL = @INSTALL@
    120128INSTALL_DATA = @INSTALL_DATA@
    121129INSTALL_PROGRAM = @INSTALL_PROGRAM@
     
    130138LIBS = @LIBS@
    131139LIBTOOL = @LIBTOOL@
     140LN_S = @LN_S@
    132141LTLIBOBJS = @LTLIBOBJS@
    133142MAINT = @MAINT@
    134 MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
    135 MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
    136143MAKEINFO = @MAKEINFO@
     144MKDIR_P = @MKDIR_P@
    137145MODULE_CFLAGS = @MODULE_CFLAGS@
    138146MODULE_LIBS = @MODULE_LIBS@
     
    147155PACKAGE_VERSION = @PACKAGE_VERSION@
    148156PATH_SEPARATOR = @PATH_SEPARATOR@
     157RANLIB = @RANLIB@
     158SED = @SED@
    149159SET_MAKE = @SET_MAKE@
    150160SHELL = @SHELL@
    151161STRIP = @STRIP@
    152162VERSION = @VERSION@
     163abs_builddir = @abs_builddir@
     164abs_srcdir = @abs_srcdir@
     165abs_top_builddir = @abs_top_builddir@
     166abs_top_srcdir = @abs_top_srcdir@
    153167ac_ct_CC = @ac_ct_CC@
    154 ac_ct_STRIP = @ac_ct_STRIP@
    155 am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
    156 am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
     168ac_ct_CXX = @ac_ct_CXX@
     169ac_ct_F77 = @ac_ct_F77@
    157170am__include = @am__include@
    158171am__leading_dot = @am__leading_dot@
     
    166179build_os = @build_os@
    167180build_vendor = @build_vendor@
     181builddir = @builddir@
    168182datadir = @datadir@
     183datarootdir = @datarootdir@
     184docdir = @docdir@
     185dvidir = @dvidir@
    169186exec_prefix = @exec_prefix@
    170187have_apr_memcache = @have_apr_memcache@
     
    174191host_os = @host_os@
    175192host_vendor = @host_vendor@
     193htmldir = @htmldir@
    176194includedir = @includedir@
    177195infodir = @infodir@
     
    179197libdir = @libdir@
    180198libexecdir = @libexecdir@
     199localedir = @localedir@
    181200localstatedir = @localstatedir@
    182201mandir = @mandir@
    183202mkdir_p = @mkdir_p@
    184203oldincludedir = @oldincludedir@
     204pdfdir = @pdfdir@
    185205prefix = @prefix@
    186206program_transform_name = @program_transform_name@
     207psdir = @psdir@
    187208sbindir = @sbindir@
    188209sharedstatedir = @sharedstatedir@
     210srcdir = @srcdir@
    189211sysconfdir = @sysconfdir@
    190212target = @target@
     
    193215target_os = @target_os@
    194216target_vendor = @target_vendor@
     217top_builddir = @top_builddir@
     218top_srcdir = @top_srcdir@
    195219AUTOMAKE_OPTIONS = foreign dist-bzip2
    196220EXTRA_DIST = m4/outoforder.m4 m4/apache.m4 \
    197221                m4/libgnutls.m4 m4/apr_memcache.m4 \
    198                 m4/apache_test.m4 \
     222                m4/apache_test.m4 m4/lua.m4 \
    199223                include/mod_gnutls.h.in \
    200                 README \
     224                README README.ENV \
    201225                NOTICE LICENSE autogen.sh
    202226
    203227SUBDIRS = src data
     228ACLOCAL_AMFLAGS = -I m4
    204229all: all-recursive
    205230
     
    242267        @if test ! -f $@; then \
    243268          rm -f include/stamp-h1; \
    244           $(MAKE) include/stamp-h1; \
     269          $(MAKE) $(AM_MAKEFLAGS) include/stamp-h1; \
    245270        else :; fi
    246271
     
    266291distclean-libtool:
    267292        -rm -f libtool
    268 uninstall-info-am:
    269293
    270294# This directory's subdirectories are mostly independent; you can cd
     
    299323        fi; test -z "$$fail"
    300324
    301 mostlyclean-recursive clean-recursive distclean-recursive \
    302 maintainer-clean-recursive:
     325$(RECURSIVE_CLEAN_TARGETS):
    303326        @failcom='exit 1'; \
    304327        for f in x $$MAKEFLAGS; do \
     
    402425distdir: $(DISTFILES)
    403426        $(am__remove_distdir)
    404         mkdir $(distdir)
    405         $(mkdir_p) $(distdir)/config $(distdir)/include $(distdir)/m4
    406         @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
    407         topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
    408         list='$(DISTFILES)'; for file in $$list; do \
    409           case $$file in \
    410             $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
    411             $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
    412           esac; \
     427        test -d $(distdir) || mkdir $(distdir)
     428        @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
     429        topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
     430        list='$(DISTFILES)'; \
     431          dist_files=`for file in $$list; do echo $$file; done | \
     432          sed -e "s|^$$srcdirstrip/||;t" \
     433              -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
     434        case $$dist_files in \
     435          */*) $(MKDIR_P) `echo "$$dist_files" | \
     436                           sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
     437                           sort -u` ;; \
     438        esac; \
     439        for file in $$dist_files; do \
    413440          if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
    414           dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
    415           if test "$$dir" != "$$file" && test "$$dir" != "."; then \
    416             dir="/$$dir"; \
    417             $(mkdir_p) "$(distdir)$$dir"; \
    418           else \
    419             dir=''; \
    420           fi; \
    421441          if test -d $$d/$$file; then \
     442            dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
    422443            if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
    423444              cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
     
    433454          if test "$$subdir" = .; then :; else \
    434455            test -d "$(distdir)/$$subdir" \
    435             || $(mkdir_p) "$(distdir)/$$subdir" \
     456            || $(MKDIR_P) "$(distdir)/$$subdir" \
    436457            || exit 1; \
    437458            distdir=`$(am__cd) $(distdir) && pwd`; \
     
    441462                top_distdir="$$top_distdir" \
    442463                distdir="$$distdir/$$subdir" \
     464                am__remove_distdir=: \
     465                am__skip_length_check=: \
    443466                distdir) \
    444467              || exit 1; \
     
    448471          ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
    449472          ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
    450           ! -type d ! -perm -444 -exec $(SHELL) $(install_sh) -c -m a+r {} {} \; \
     473          ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
    451474        || chmod -R a+r $(distdir)
    452475dist-gzip: distdir
     
    523546        @(echo "$(distdir) archives ready for distribution: "; \
    524547          list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
    525           sed -e '1{h;s/./=/g;p;x;}' -e '$${p;x;}'
     548          sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
    526549distuninstallcheck:
    527550        @cd $(distuninstallcheck_dir) \
     
    593616install-data-am:
    594617
     618install-dvi: install-dvi-recursive
     619
    595620install-exec-am:
    596621
     622install-html: install-html-recursive
     623
    597624install-info: install-info-recursive
    598625
    599626install-man:
     627
     628install-pdf: install-pdf-recursive
     629
     630install-ps: install-ps-recursive
    600631
    601632installcheck-am:
     
    619650ps-am:
    620651
    621 uninstall-am: uninstall-info-am
    622 
    623 uninstall-info: uninstall-info-recursive
    624 
    625 .PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am am--refresh check \
    626         check-am clean clean-generic clean-libtool clean-recursive \
    627         ctags ctags-recursive dist dist-all dist-bzip2 dist-gzip \
    628         dist-shar dist-tarZ dist-zip distcheck distclean \
     652uninstall-am:
     653
     654.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) install-am \
     655        install-strip
     656
     657.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
     658        all all-am am--refresh check check-am clean clean-generic \
     659        clean-libtool ctags ctags-recursive dist dist-all dist-bzip2 \
     660        dist-gzip dist-shar dist-tarZ dist-zip distcheck distclean \
    629661        distclean-generic distclean-hdr distclean-libtool \
    630         distclean-recursive distclean-tags distcleancheck distdir \
    631         distuninstallcheck dvi dvi-am html html-am info info-am \
    632         install install-am install-data install-data-am install-exec \
    633         install-exec-am install-info install-info-am install-man \
    634         install-strip installcheck installcheck-am installdirs \
    635         installdirs-am maintainer-clean maintainer-clean-generic \
    636         maintainer-clean-recursive mostlyclean mostlyclean-generic \
    637         mostlyclean-libtool mostlyclean-recursive pdf pdf-am ps ps-am \
    638         tags tags-recursive uninstall uninstall-am uninstall-info-am
     662        distclean-tags distcleancheck distdir distuninstallcheck dvi \
     663        dvi-am html html-am info info-am install install-am \
     664        install-data install-data-am install-dvi install-dvi-am \
     665        install-exec install-exec-am install-html install-html-am \
     666        install-info install-info-am install-man install-pdf \
     667        install-pdf-am install-ps install-ps-am install-strip \
     668        installcheck installcheck-am installdirs installdirs-am \
     669        maintainer-clean maintainer-clean-generic mostlyclean \
     670        mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
     671        tags tags-recursive uninstall uninstall-am
    639672
    640673# Tell versions [3.59,3.63) of GNU make to not export all variables.
  • README

    r1c87791 r3f5c713  
    2020----------------------------
    2121
    22 Author: Paul Querna <chip force-elite.com
     22Author: Paul Querna <chip force-elite.com>
     23
     24Heavily modified by Nikos Mavrogiannopoulos <nmav gnutls.org>
    2325
    2426License: Apache Software License v2.0. (see the LICENSE file for details)
     
    2628Current Status:
    2729- SSL and TLS connections with all popular browsers work!
    28 - Sets some enviromental vars for scripts
     30- Sets enviromental vars for scripts (compatible with mod_ssl vars)
    2931- Supports Memcached as a distributed SSL Session Cache
    3032- Supports DBM as a local SSL Session Cache
    31 
    32 Future Development:
    33 - Support for Server Name Indication (partial support is in, but disabled)
     33- Support for Server Name Indication
    3434- Support for Client Certificates
     35- Support for TLS-SRP
    3536
    3637Basic Configuration:
     
    5960    GnuTLSCertificateFile conf/server.cert
    6061</VirtualHost>
     62
     63
     64# a more advance configuration
     65GnuTLSCache dbm "/var/cache/www-tls-cache/cache"
     66GnuTLSCacheTimeout 500
     67GnuTLSProtocols TLS1.1 TLS1.0 SSL3.0
     68NameVirtualHost 1.2.3.4:443
     69
     70<VirtualHost 1.2.3.4:443>
     71        Servername server.com:443
     72        GnuTLSEnable on
     73        GnuTLSCiphers AES-128-CBC 3DES-CBC ARCFOUR-128
     74        GnuTLSKeyExchangeAlgorithms RSA DHE-RSA DHE-DSS SRP SRP-RSA SRP-DSS
     75        GnuTLSMACAlgorithms SHA1 MD5
     76        GnuTLSCompressionMethods NULL
     77# To export exactly the same environment variables as mod_ssl to CGI scripts.
     78        GNUTLSExportCertificates on
     79
     80        GnuTLSCertificateFile /etc/apache2/server-cert.pem
     81        GnuTLSKeyFile /etc/apache2/server-key.pem
     82
     83# To enable SRP you must have these files installed. Check the gnutls srptool.
     84        GnuTLSSRPPasswdFile /etc/apache2/tpasswd
     85        GnuTLSSRPPasswdConfFile /etc/apache2/tpasswd.conf
     86
     87# In order to verify client certificates. Other options to
     88# GnuTLSClientVerify could be ignore or require. The GnuTLSClientCAFile
     89# contains the CAs to verify client certificates.
     90        GnuTLSClientVerify request
     91        GnuTLSClientCAFile ca.pem
     92        ...
     93</VirtualHost>
  • aclocal.m4

    r1c87791 r3f5c713  
    1 # generated automatically by aclocal 1.9.5 -*- Autoconf -*-
     1# generated automatically by aclocal 1.10 -*- Autoconf -*-
    22
    33# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
    4 # 2005  Free Software Foundation, Inc.
     4# 2005, 2006  Free Software Foundation, Inc.
    55# This file is free software; the Free Software Foundation
    66# gives unlimited permission to copy and/or distribute it,
     
    1212# PARTICULAR PURPOSE.
    1313
     14m4_if(m4_PACKAGE_VERSION, [2.61],,
     15[m4_fatal([this file was generated for autoconf 2.61.
     16You have another version of autoconf.  If you want to use that,
     17you should regenerate the build system entirely.], [63])])
     18
    1419# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
    1520
    16 # serial 47 AC_PROG_LIBTOOL
    17 # Debian $Rev: 214 $
     21# serial 51 Debian 1.5.24-1ubuntu1 AC_PROG_LIBTOOL
    1822
    1923
     
    125129# Sed substitution that helps us do robust quoting.  It backslashifies
    126130# metacharacters that are still active within double-quoted strings.
    127 Xsed='sed -e s/^X//'
     131Xsed='sed -e 1s/^X//'
    128132[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
    129133
     
    145149can_build_shared=yes
    146150
    147 # All known linkers require a `.a' archive for static linking (except M$VC,
     151# All known linkers require a `.a' archive for static linking (except MSVC,
    148152# which needs '.lib').
    149153libext=a
     
    165169test -z "$CC" && CC=cc
    166170test -z "$LTCC" && LTCC=$CC
     171test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
    167172test -z "$DLLTOOL" && DLLTOOL=dlltool
    168173test -z "$LD" && LD=ld
     
    177182
    178183# Determine commands to create old-style static archives.
    179 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
     184old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
    180185old_postinstall_cmds='chmod 644 $oldlib'
    181186old_postuninstall_cmds=
     
    184189  case $host_os in
    185190  openbsd*)
    186     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
     191    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
    187192    ;;
    188193  *)
    189     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
     194    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
    190195    ;;
    191196  esac
    192197  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
    193198fi
     199
     200_LT_CC_BASENAME([$compiler])
    194201
    195202# Only perform the check for file, if the check method requires it
     
    233240LTCC=${LTCC-"$CC"}
    234241
     242# If no C compiler flags were specified, use CFLAGS.
     243LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
     244
    235245# Allow CC to be a program name with arguments.
    236246compiler=$CC
    237247])# _LT_AC_SYS_COMPILER
     248
     249
     250# _LT_CC_BASENAME(CC)
     251# -------------------
     252# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
     253AC_DEFUN([_LT_CC_BASENAME],
     254[for cc_temp in $1""; do
     255  case $cc_temp in
     256    compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
     257    distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
     258    \-*) ;;
     259    *) break;;
     260  esac
     261done
     262cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
     263])
     264
     265
     266# _LT_COMPILER_BOILERPLATE
     267# ------------------------
     268# Check for compiler boilerplate output or warnings with
     269# the simple compiler test code.
     270AC_DEFUN([_LT_COMPILER_BOILERPLATE],
     271[AC_REQUIRE([LT_AC_PROG_SED])dnl
     272ac_outfile=conftest.$ac_objext
     273echo "$lt_simple_compile_test_code" >conftest.$ac_ext
     274eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
     275_lt_compiler_boilerplate=`cat conftest.err`
     276$rm conftest*
     277])# _LT_COMPILER_BOILERPLATE
     278
     279
     280# _LT_LINKER_BOILERPLATE
     281# ----------------------
     282# Check for linker boilerplate output or warnings with
     283# the simple link test code.
     284AC_DEFUN([_LT_LINKER_BOILERPLATE],
     285[AC_REQUIRE([LT_AC_PROG_SED])dnl
     286ac_outfile=conftest.$ac_objext
     287echo "$lt_simple_link_test_code" >conftest.$ac_ext
     288eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
     289_lt_linker_boilerplate=`cat conftest.err`
     290$rm conftest*
     291])# _LT_LINKER_BOILERPLATE
    238292
    239293
     
    247301# to the aix ld manual.
    248302AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
    249 [AC_LINK_IFELSE(AC_LANG_PROGRAM,[
    250 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
    251 }'`
     303[AC_REQUIRE([LT_AC_PROG_SED])dnl
     304AC_LINK_IFELSE(AC_LANG_PROGRAM,[
     305lt_aix_libpath_sed='
     306    /Import File Strings/,/^$/ {
     307        /^0/ {
     308            s/^0  *\(.*\)$/\1/
     309            p
     310        }
     311    }'
     312aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
    252313# Check for a 64-bit object if we didn't find anything.
    253 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; }
    254 }'`; fi],[])
     314if test -z "$aix_libpath"; then
     315  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
     316fi],[])
    255317if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
    256318])# _LT_AC_SYS_LIBPATH_AIX
     
    310372# The HP-UX ksh and POSIX shell print the target directory to stdout
    311373# if CDPATH is set.
    312 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
     374(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
    313375
    314376if test -z "$ECHO"; then
     
    317379  for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
    318380    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
    319     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
    320        echo_test_string="`eval $cmd`" &&
     381    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
     382       echo_test_string=`eval $cmd` &&
    321383       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
    322384    then
     
    483545  ;;
    484546
    485 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
     547x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
     548s390*-*linux*|sparc*-*linux*)
    486549  # Find out which ABI we are using.
    487550  echo 'int i;' > conftest.$ac_ext
    488551  if AC_TRY_EVAL(ac_compile); then
    489     case "`/usr/bin/file conftest.o`" in
     552    case `/usr/bin/file conftest.o` in
    490553    *32-bit*)
    491554      case $host in
     555        x86_64-*kfreebsd*-gnu)
     556          LD="${LD-ld} -m elf_i386_fbsd"
     557          ;;
    492558        x86_64-*linux*)
    493559          LD="${LD-ld} -m elf_i386"
     
    506572    *64-bit*)
    507573      case $host in
     574        x86_64-*kfreebsd*-gnu)
     575          LD="${LD-ld} -m elf_x86_64_fbsd"
     576          ;;
    508577        x86_64-*linux*)
    509578          LD="${LD-ld} -m elf_x86_64"
     
    538607  fi
    539608  ;;
     609sparc*-*solaris*)
     610  # Find out which ABI we are using.
     611  echo 'int i;' > conftest.$ac_ext
     612  if AC_TRY_EVAL(ac_compile); then
     613    case `/usr/bin/file conftest.o` in
     614    *64-bit*)
     615      case $lt_cv_prog_gnu_ld in
     616      yes*) LD="${LD-ld} -m elf64_sparc" ;;
     617      *)    LD="${LD-ld} -64" ;;
     618      esac
     619      ;;
     620    esac
     621  fi
     622  rm -rf conftest*
     623  ;;
     624
    540625AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
    541626[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
     
    561646  [$2=no
    562647  ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
    563    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
     648   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
    564649   lt_compiler_flag="$3"
    565650   # Insert the option either (1) after the last *FLAGS variable, or
     
    569654   # The option is referenced via a variable to avoid confusing sed.
    570655   lt_compile=`echo "$ac_compile" | $SED \
    571    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
     656   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
    572657   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
    573658   -e 's:$: $lt_compiler_flag:'`
     
    579664   if (exit $ac_status) && test -s "$ac_outfile"; then
    580665     # The compiler can only warn and ignore the option if not recognized
    581      # So say no if there are warnings
    582      if test ! -s conftest.err; then
     666     # So say no if there are warnings other than the usual output.
     667     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
     668     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
     669     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
    583670       $2=yes
    584671     fi
     
    600687# Check whether the given compiler option works
    601688AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
    602 [AC_CACHE_CHECK([$1], [$2],
     689[AC_REQUIRE([LT_AC_PROG_SED])dnl
     690AC_CACHE_CHECK([$1], [$2],
    603691  [$2=no
    604692   save_LDFLAGS="$LDFLAGS"
    605693   LDFLAGS="$LDFLAGS $3"
    606    printf "$lt_simple_link_test_code" > conftest.$ac_ext
     694   echo "$lt_simple_link_test_code" > conftest.$ac_ext
    607695   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
    608      # The compiler can only warn and ignore the option if not recognized
     696     # The linker can only warn and ignore the option if not recognized
    609697     # So say no if there are warnings
    610698     if test -s conftest.err; then
    611699       # Append any errors to the config.log.
    612700       cat conftest.err 1>&AS_MESSAGE_LOG_FD
     701       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
     702       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
     703       if diff conftest.exp conftest.er2 >/dev/null; then
     704         $2=yes
     705       fi
    613706     else
    614707       $2=yes
     
    669762    ;;
    670763
    671  *)
    672     # If test is not a shell built-in, we'll probably end up computing a
    673     # maximum length that is only half of the actual maximum length, but
    674     # we can't tell.
    675     while (test "X"`$CONFIG_SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
     764  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
     765    # This has been around since 386BSD, at least.  Likely further.
     766    if test -x /sbin/sysctl; then
     767      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
     768    elif test -x /usr/sbin/sysctl; then
     769      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
     770    else
     771      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
     772    fi
     773    # And add a safety zone
     774    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
     775    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
     776    ;;
     777
     778  interix*)
     779    # We know the value 262144 and hardcode it with a safety zone (like BSD)
     780    lt_cv_sys_max_cmd_len=196608
     781    ;;
     782
     783  osf*)
     784    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
     785    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
     786    # nice to cause kernel panics so lets avoid the loop below.
     787    # First set a reasonable default.
     788    lt_cv_sys_max_cmd_len=16384
     789    #
     790    if test -x /sbin/sysconfig; then
     791      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
     792        *1*) lt_cv_sys_max_cmd_len=-1 ;;
     793      esac
     794    fi
     795    ;;
     796  sco3.2v5*)
     797    lt_cv_sys_max_cmd_len=102400
     798    ;;
     799  sysv5* | sco5v6* | sysv4.2uw2*)
     800    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
     801    if test -n "$kargmax"; then
     802      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[        ]]//'`
     803    else
     804      lt_cv_sys_max_cmd_len=32768
     805    fi
     806    ;;
     807  *)
     808    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
     809    if test -n "$lt_cv_sys_max_cmd_len"; then
     810      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
     811      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
     812    else
     813      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
     814      while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
    676815               = "XX$teststring") >/dev/null 2>&1 &&
    677             new_result=`expr "X$teststring" : ".*" 2>&1` &&
    678             lt_cv_sys_max_cmd_len=$new_result &&
    679             test $i != 17 # 1/2 MB should be enough
    680     do
    681       i=`expr $i + 1`
    682       teststring=$teststring$teststring
    683     done
    684     teststring=
    685     # Add a significant safety factor because C++ compilers can tack on massive
    686     # amounts of additional arguments before passing them to the linker.
    687     # It appears as though 1/2 is a usable value.
    688     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
     816              new_result=`expr "X$teststring" : ".*" 2>&1` &&
     817              lt_cv_sys_max_cmd_len=$new_result &&
     818              test $i != 17 # 1/2 MB should be enough
     819      do
     820        i=`expr $i + 1`
     821        teststring=$teststring$teststring
     822      done
     823      teststring=
     824      # Add a significant safety factor because C++ compilers can tack on massive
     825      # amounts of additional arguments before passing them to the linker.
     826      # It appears as though 1/2 is a usable value.
     827      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
     828    fi
    689829    ;;
    690830  esac
     
    699839
    700840# _LT_AC_CHECK_DLFCN
    701 # --------------------
     841# ------------------
    702842AC_DEFUN([_LT_AC_CHECK_DLFCN],
    703843[AC_CHECK_HEADERS(dlfcn.h)dnl
     
    707847# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
    708848#                           ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
    709 # ------------------------------------------------------------------
     849# ---------------------------------------------------------------------
    710850AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
    711851[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
     
    773913      /* dlclose (self); */
    774914    }
     915  else
     916    puts (dlerror ());
    775917
    776918    exit (status);
     
    778920EOF
    779921  if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
    780     (./conftest; exit; ) 2>/dev/null
     922    (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
    781923    lt_status=$?
    782924    case x$lt_status in
    783925      x$lt_dlno_uscore) $1 ;;
    784926      x$lt_dlneed_uscore) $2 ;;
    785       x$lt_unknown|x*) $3 ;;
     927      x$lt_dlunknown|x*) $3 ;;
    786928    esac
    787929  else :
     
    795937
    796938# AC_LIBTOOL_DLOPEN_SELF
    797 # -------------------
     939# ----------------------
    798940AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
    799941[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
     
    8661008
    8671009    save_LDFLAGS="$LDFLAGS"
    868     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
     1010    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
    8691011
    8701012    save_LIBS="$LIBS"
     
    8791021
    8801022    if test "x$lt_cv_dlopen_self" = xyes; then
    881       LDFLAGS="$LDFLAGS $link_static_flag"
     1023      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
    8821024      AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
    8831025          lt_cv_dlopen_self_static, [dnl
     
    9111053# Check to see if options -c and -o are simultaneously supported by compiler
    9121054AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
    913 [AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
     1055[AC_REQUIRE([LT_AC_PROG_SED])dnl
     1056AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
    9141057AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
    9151058  [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
     
    9191062   cd conftest
    9201063   mkdir out
    921    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
     1064   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
    9221065
    9231066   lt_compiler_flag="-o out/conftest2.$ac_objext"
     
    9271070   # with a dollar sign (not a hyphen), so the echo should work correctly.
    9281071   lt_compile=`echo "$ac_compile" | $SED \
    929    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
     1072   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
    9301073   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
    9311074   -e 's:$: $lt_compiler_flag:'`
     
    9391082     # The compiler can only warn and ignore the option if not recognized
    9401083     # So say no if there are warnings
    941      if test ! -s out/conftest.err; then
     1084     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
     1085     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
     1086     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
    9421087       _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
    9431088     fi
    9441089   fi
    945    chmod u+w .
     1090   chmod u+w . 2>&AS_MESSAGE_LOG_FD
    9461091   $rm conftest*
    9471092   # SGI C++ compiler will create directory out/ii_files/ for
     
    10071152_LT_AC_TAGVAR(hardcode_action, $1)=
    10081153if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
    1009    test -n "$_LT_AC_TAGVAR(runpath_var $1)" || \
    1010    test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)"="Xyes" ; then
     1154   test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
     1155   test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
    10111156
    10121157  # We can hardcode non-existant directories.
     
    10571202       if test -n "$STRIP" ; then
    10581203         striplib="$STRIP -x"
     1204         old_striplib="$STRIP -S"
    10591205         AC_MSG_RESULT([yes])
    10601206       else
     
    10741220# PORTME Fill in your ld.so characteristics
    10751221AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
    1076 [AC_MSG_CHECKING([dynamic linker characteristics])
     1222[AC_REQUIRE([LT_AC_PROG_SED])dnl
     1223AC_MSG_CHECKING([dynamic linker characteristics])
    10771224library_names_spec=
    10781225libname_spec='lib$name'
     
    10881235dynamic_linker="$host_os ld.so"
    10891236sys_lib_dlsearch_path_spec="/lib /usr/lib"
     1237m4_if($1,[],[
    10901238if test "$GCC" = yes; then
    1091   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
    1092   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
     1239  case $host_os in
     1240    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
     1241    *) lt_awk_arg="/^libraries:/" ;;
     1242  esac
     1243  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
     1244  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
    10931245    # if the path contains ";" then we assume it to be the separator
    10941246    # otherwise default to the standard path separator (i.e. ":") - it is
    10951247    # assumed that no part of a normal pathname contains ";" but that should
    10961248    # okay in the real world where ";" in dirpaths is itself problematic.
    1097     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
     1249    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
    10981250  else
    1099     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
     1251    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
    11001252  fi
     1253  # Ok, now we have the path, separated by spaces, we can step through it
     1254  # and add multilib dir if necessary.
     1255  lt_tmp_lt_search_path_spec=
     1256  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
     1257  for lt_sys_path in $lt_search_path_spec; do
     1258    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
     1259      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
     1260    else
     1261      test -d "$lt_sys_path" && \
     1262        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
     1263    fi
     1264  done
     1265  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
     1266BEGIN {RS=" "; FS="/|\n";} {
     1267  lt_foo="";
     1268  lt_count=0;
     1269  for (lt_i = NF; lt_i > 0; lt_i--) {
     1270    if ($lt_i != "" && $lt_i != ".") {
     1271      if ($lt_i == "..") {
     1272        lt_count++;
     1273      } else {
     1274        if (lt_count == 0) {
     1275          lt_foo="/" $lt_i lt_foo;
     1276        } else {
     1277          lt_count--;
     1278        }
     1279      }
     1280    }
     1281  }
     1282  if (lt_foo != "") { lt_freq[[lt_foo]]++; }
     1283  if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
     1284}'`
     1285  sys_lib_search_path_spec=`echo $lt_search_path_spec`
    11011286else
    11021287  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
    1103 fi
     1288fi])
    11041289need_lib_prefix=unknown
    11051290hardcode_into_libs=no
     
    11751360  ;;
    11761361
    1177 bsdi4*)
     1362bsdi[[45]]*)
    11781363  version_type=linux
    11791364  need_version=no
     
    12031388      dldir=$destdir/`dirname \$dlpath`~
    12041389      test -d \$dldir || mkdir -p \$dldir~
    1205       $install_prog $dir/$dlname \$dldir/$dlname'
     1390      $install_prog $dir/$dlname \$dldir/$dlname~
     1391      chmod a+x \$dldir/$dlname'
    12061392    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
    12071393      dlpath=$dir/\$dldll~
     
    12331419    pw32*)
    12341420      # pw32 DLLs use 'pw' prefix rather than 'lib'
    1235       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
     1421      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
    12361422      ;;
    12371423    esac
     
    12561442  shlibpath_overrides_runpath=yes
    12571443  shlibpath_var=DYLD_LIBRARY_PATH
    1258   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
    1259   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
    1260   if test "$GCC" = yes; then
    1261     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"`
    1262   else
    1263     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
    1264   fi
     1444  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
     1445  m4_if([$1], [],[
     1446  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
    12651447  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
    12661448  ;;
     
    12791461  ;;
    12801462
    1281 kfreebsd*-gnu)
    1282   version_type=linux
    1283   need_lib_prefix=no
    1284   need_version=no
    1285   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
    1286   soname_spec='${libname}${release}${shared_ext}$major'
    1287   shlibpath_var=LD_LIBRARY_PATH
    1288   shlibpath_overrides_runpath=no
    1289   hardcode_into_libs=yes
    1290   dynamic_linker='GNU ld.so'
    1291   ;;
    1292 
    1293 freebsd*)
    1294   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
     1463freebsd* | dragonfly*)
     1464  # DragonFly does not have aout.  When/if they implement a new
     1465  # versioning mechanism, adjust this.
     1466  if test -x /usr/bin/objformat; then
     1467    objformat=`/usr/bin/objformat`
     1468  else
     1469    case $host_os in
     1470    freebsd[[123]]*) objformat=aout ;;
     1471    *) objformat=elf ;;
     1472    esac
     1473  fi
    12951474  version_type=freebsd-$objformat
    12961475  case $version_type in
     
    13101489    shlibpath_overrides_runpath=yes
    13111490    ;;
    1312   freebsd3.[01]* | freebsdelf3.[01]*)
     1491  freebsd3.[[01]]* | freebsdelf3.[[01]]*)
    13131492    shlibpath_overrides_runpath=yes
    13141493    hardcode_into_libs=yes
    13151494    ;;
    1316   *) # from 3.2 on
     1495  freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
     1496  freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
    13171497    shlibpath_overrides_runpath=no
     1498    hardcode_into_libs=yes
     1499    ;;
     1500  *) # from 4.6 on, and DragonFly
     1501    shlibpath_overrides_runpath=yes
    13181502    hardcode_into_libs=yes
    13191503    ;;
     
    13371521  need_lib_prefix=no
    13381522  need_version=no
    1339   case "$host_cpu" in
     1523  case $host_cpu in
    13401524  ia64*)
    13411525    shrext_cmds='.so'
     
    13771561  ;;
    13781562
     1563interix[[3-9]]*)
     1564  version_type=linux
     1565  need_lib_prefix=no
     1566  need_version=no
     1567  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
     1568  soname_spec='${libname}${release}${shared_ext}$major'
     1569  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
     1570  shlibpath_var=LD_LIBRARY_PATH
     1571  shlibpath_overrides_runpath=no
     1572  hardcode_into_libs=yes
     1573  ;;
     1574
    13791575irix5* | irix6* | nonstopux*)
    13801576  case $host_os in
     
    14201616
    14211617# This must be Linux ELF.
    1422 linux*)
     1618linux* | k*bsd*-gnu)
    14231619  version_type=linux
    14241620  need_lib_prefix=no
     
    14361632  # Append ld.so.conf contents to the search path
    14371633  if test -f /etc/ld.so.conf; then
    1438     lt_ld_extra=`$SED -e 's/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g' /etc/ld.so.conf | tr '\n' ' '`
     1634    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[  ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
    14391635    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
    14401636  fi
     
    14591655  hardcode_into_libs=yes
    14601656  dynamic_linker='NetBSD ld.elf_so'
    1461   ;;
    1462 
    1463 knetbsd*-gnu)
    1464   version_type=linux
    1465   need_lib_prefix=no
    1466   need_version=no
    1467   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
    1468   soname_spec='${libname}${release}${shared_ext}$major'
    1469   shlibpath_var=LD_LIBRARY_PATH
    1470   shlibpath_overrides_runpath=no
    1471   hardcode_into_libs=yes
    1472   dynamic_linker='GNU ld.so'
    14731657  ;;
    14741658
     
    15101694openbsd*)
    15111695  version_type=sunos
     1696  sys_lib_dlsearch_path_spec="/usr/lib"
    15121697  need_lib_prefix=no
    1513   need_version=yes
     1698  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
     1699  case $host_os in
     1700    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
     1701    *)                         need_version=no  ;;
     1702  esac
    15141703  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
    15151704  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
     
    15491738  ;;
    15501739
    1551 sco3.2v5*)
    1552   version_type=osf
    1553   soname_spec='${libname}${release}${shared_ext}$major'
    1554   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    1555   shlibpath_var=LD_LIBRARY_PATH
     1740rdos*)
     1741  dynamic_linker=no
    15561742  ;;
    15571743
     
    15811767  ;;
    15821768
    1583 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
     1769sysv4 | sysv4.3*)
    15841770  version_type=linux
    15851771  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
     
    16141800  ;;
    16151801
     1802sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
     1803  version_type=freebsd-elf
     1804  need_lib_prefix=no
     1805  need_version=no
     1806  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
     1807  soname_spec='${libname}${release}${shared_ext}$major'
     1808  shlibpath_var=LD_LIBRARY_PATH
     1809  hardcode_into_libs=yes
     1810  if test "$with_gnu_ld" = yes; then
     1811    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
     1812    shlibpath_overrides_runpath=no
     1813  else
     1814    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
     1815    shlibpath_overrides_runpath=yes
     1816    case $host_os in
     1817      sco3.2v5*)
     1818        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
     1819        ;;
     1820    esac
     1821  fi
     1822  sys_lib_dlsearch_path_spec='/usr/lib'
     1823  ;;
     1824
    16161825uts4*)
    16171826  version_type=linux
     
    16271836AC_MSG_RESULT([$dynamic_linker])
    16281837test "$dynamic_linker" = no && can_build_shared=no
     1838
     1839variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
     1840if test "$GCC" = yes; then
     1841  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
     1842fi
    16291843])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
    16301844
     
    16331847# ----------------
    16341848AC_DEFUN([_LT_AC_TAGCONFIG],
    1635 [AC_ARG_WITH([tags],
     1849[AC_REQUIRE([LT_AC_PROG_SED])dnl
     1850AC_ARG_WITH([tags],
    16361851    [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
    16371852        [include additional configurations @<:@automatic@:>@])],
     
    16511866    fi
    16521867  fi
     1868  if test -z "$LTCFLAGS"; then
     1869    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
     1870  fi
    16531871
    16541872  # Extract list of available tagged configurations in $ofile.
     
    16771895      case $tagname in
    16781896      CXX)
    1679         if test -n "$CXX" && test "X$CXX" != "Xno"; then
     1897        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
     1898            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
     1899            (test "X$CXX" != "Xg++"))) ; then
    16801900          AC_LIBTOOL_LANG_CXX_CONFIG
    16811901        else
     
    17391959# AC_LIBTOOL_WIN32_DLL
    17401960# --------------------
    1741 # declare package support for building win32 dll's
     1961# declare package support for building win32 DLLs
    17421962AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
    17431963[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
     
    17771997# AC_DISABLE_SHARED
    17781998# -----------------
    1779 #- set the default shared flag to --disable-shared
     1999# set the default shared flag to --disable-shared
    17802000AC_DEFUN([AC_DISABLE_SHARED],
    17812001[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
     
    18892109# AC_PATH_TOOL_PREFIX
    18902110# -------------------
    1891 # find a file program which can recognise shared library
     2111# find a file program which can recognize shared library
    18922112AC_DEFUN([AC_PATH_TOOL_PREFIX],
    18932113[AC_REQUIRE([AC_PROG_EGREP])dnl
     
    19132133        case $deplibs_check_method in
    19142134        "file_magic "*)
    1915           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
     2135          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
    19162136          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
    19172137          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
     
    19522172# AC_PATH_MAGIC
    19532173# -------------
    1954 # find a file program which can recognise a shared library
     2174# find a file program which can recognize a shared library
    19552175AC_DEFUN([AC_PATH_MAGIC],
    19562176[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
     
    20232243      lt_cv_path_LD="$ac_dir/$ac_prog"
    20242244      # Check to see if the program is GNU ld.  I'd rather use --version,
    2025       # but apparently some GNU ld's only accept -v.
     2245      # but apparently some variants of GNU ld only accept -v.
    20262246      # Break only if it was the GNU/non-GNU ld that we prefer.
    20272247      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
     
    20552275[AC_REQUIRE([AC_PROG_EGREP])dnl
    20562276AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
    2057 [# I'd rather use --version here, but apparently some GNU ld's only accept -v.
     2277[# I'd rather use --version here, but apparently some GNU lds only accept -v.
    20582278case `$LD -v 2>&1 </dev/null` in
    20592279*GNU* | *'with BFD'*)
     
    20822302esac
    20832303reload_cmds='$LD$reload_flag -o $output$reload_objs'
     2304case $host_os in
     2305  darwin*)
     2306    if test "$GCC" = yes; then
     2307      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
     2308    else
     2309      reload_cmds='$LD$reload_flag -o $output$reload_objs'
     2310    fi
     2311    ;;
     2312esac
    20842313])# AC_PROG_LD_RELOAD_FLAG
    20852314
     
    20902319#  -- PORTME fill in with the dynamic library characteristics
    20912320AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
    2092 [AC_CACHE_CHECK([how to recognise dependent libraries],
     2321[AC_CACHE_CHECK([how to recognize dependent libraries],
    20932322lt_cv_deplibs_check_method,
    20942323[lt_cv_file_magic_cmd='$MAGIC_CMD'
     
    21152344  ;;
    21162345
    2117 bsdi4*)
     2346bsdi[[45]]*)
    21182347  lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
    21192348  lt_cv_file_magic_cmd='/usr/bin/file -L'
     
    21292358mingw* | pw32*)
    21302359  # Base MSYS/MinGW do not provide the 'file' command needed by
    2131   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
    2132   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
    2133   lt_cv_file_magic_cmd='$OBJDUMP -f'
     2360  # func_win32_libid shell function, so use a weaker test based on 'objdump',
     2361  # unless we find 'file', for example because we are cross-compiling.
     2362  if ( file / ) >/dev/null 2>&1; then
     2363    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
     2364    lt_cv_file_magic_cmd='func_win32_libid'
     2365  else
     2366    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
     2367    lt_cv_file_magic_cmd='$OBJDUMP -f'
     2368  fi
    21342369  ;;
    21352370
     
    21382373  ;;
    21392374
    2140 freebsd* | kfreebsd*-gnu)
     2375freebsd* | dragonfly*)
    21412376  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
    21422377    case $host_cpu in
     
    21442379      # Not sure whether the presence of OpenBSD here was a mistake.
    21452380      # Let's accept both of them until this is cleared up.
    2146       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[[3-9]]86 (compact )?demand paged shared library'
     2381      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
    21472382      lt_cv_file_magic_cmd=/usr/bin/file
    21482383      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
     
    21602395hpux10.20* | hpux11*)
    21612396  lt_cv_file_magic_cmd=/usr/bin/file
    2162   case "$host_cpu" in
     2397  case $host_cpu in
    21632398  ia64*)
    21642399    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
     
    21742409    ;;
    21752410  esac
     2411  ;;
     2412
     2413interix[[3-9]]*)
     2414  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
     2415  lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
    21762416  ;;
    21772417
     
    21872427
    21882428# This must be Linux ELF.
    2189 linux*)
     2429linux* | k*bsd*-gnu)
    21902430  lt_cv_deplibs_check_method=pass_all
    21912431  ;;
    21922432
    2193 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
     2433netbsd* | netbsdelf*-gnu)
    21942434  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
    21952435    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
     
    22102450
    22112451openbsd*)
    2212   lt_cv_file_magic_cmd=/usr/bin/file
    2213   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
    22142452  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
    2215     lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB shared object'
     2453    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
    22162454  else
    2217     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
     2455    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
    22182456  fi
    22192457  ;;
     
    22232461  ;;
    22242462
    2225 sco3.2v5*)
     2463rdos*)
    22262464  lt_cv_deplibs_check_method=pass_all
    22272465  ;;
     
    22312469  ;;
    22322470
    2233 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
     2471sysv4 | sysv4.3*)
    22342472  case $host_vendor in
    22352473  motorola)
     
    22522490    lt_cv_deplibs_check_method=pass_all
    22532491    ;;
     2492  pc)
     2493    lt_cv_deplibs_check_method=pass_all
     2494    ;;
    22542495  esac
    22552496  ;;
    22562497
    2257 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7* | sysv4*uw2*)
     2498sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
    22582499  lt_cv_deplibs_check_method=pass_all
    22592500  ;;
     
    22752516  lt_cv_path_NM="$NM"
    22762517else
    2277   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
    2278   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
    2279     IFS="$lt_save_ifs"
    2280     test -z "$ac_dir" && ac_dir=.
    2281     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
    2282     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
    2283       # Check to see if the nm accepts a BSD-compat flag.
    2284       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
    2285       #   nm: unknown option "B" ignored
    2286       # Tru64's nm complains that /dev/null is an invalid object file
    2287       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
    2288       */dev/null* | *'Invalid file or object type'*)
    2289         lt_cv_path_NM="$tmp_nm -B"
    2290         break
    2291         ;;
    2292       *)
    2293         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
    2294         */dev/null*)
    2295           lt_cv_path_NM="$tmp_nm -p"
     2518  lt_nm_to_check="${ac_tool_prefix}nm"
     2519  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
     2520    lt_nm_to_check="$lt_nm_to_check nm"
     2521  fi
     2522  for lt_tmp_nm in $lt_nm_to_check; do
     2523    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
     2524    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
     2525      IFS="$lt_save_ifs"
     2526      test -z "$ac_dir" && ac_dir=.
     2527      tmp_nm="$ac_dir/$lt_tmp_nm"
     2528      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
     2529        # Check to see if the nm accepts a BSD-compat flag.
     2530        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
     2531        #   nm: unknown option "B" ignored
     2532        # Tru64's nm complains that /dev/null is an invalid object file
     2533        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
     2534        */dev/null* | *'Invalid file or object type'*)
     2535          lt_cv_path_NM="$tmp_nm -B"
    22962536          break
    22972537          ;;
    22982538        *)
    2299           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
    2300           continue # so that we can try to find one that supports BSD flags
     2539          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
     2540          */dev/null*)
     2541            lt_cv_path_NM="$tmp_nm -p"
     2542            break
     2543            ;;
     2544          *)
     2545            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
     2546            continue # so that we can try to find one that supports BSD flags
     2547            ;;
     2548          esac
    23012549          ;;
    23022550        esac
    2303       esac
    2304     fi
     2551      fi
     2552    done
     2553    IFS="$lt_save_ifs"
    23052554  done
    2306   IFS="$lt_save_ifs"
    23072555  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
    23082556fi])
     
    23362584# sets LIBLTDL to the link flags for the libltdl convenience library and
    23372585# LTDLINCL to the include flags for the libltdl header and adds
    2338 # --enable-ltdl-convenience to the configure arguments.  Note that LIBLTDL
    2339 # and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called.  If
    2340 # DIRECTORY is not provided, it is assumed to be `libltdl'.  LIBLTDL will
    2341 # be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed with
    2342 # '${top_srcdir}/' (note the single quotes!).  If your package is not
    2343 # flat and you're not using automake, define top_builddir and
    2344 # top_srcdir appropriately in the Makefiles.
     2586# --enable-ltdl-convenience to the configure arguments.  Note that
     2587# AC_CONFIG_SUBDIRS is not called here.  If DIRECTORY is not provided,
     2588# it is assumed to be `libltdl'.  LIBLTDL will be prefixed with
     2589# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
     2590# (note the single quotes!).  If your package is not flat and you're not
     2591# using automake, define top_builddir and top_srcdir appropriately in
     2592# the Makefiles.
    23452593AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
    23462594[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
     
    23612609# sets LIBLTDL to the link flags for the libltdl installable library and
    23622610# LTDLINCL to the include flags for the libltdl header and adds
    2363 # --enable-ltdl-install to the configure arguments.  Note that LIBLTDL
    2364 # and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called.  If
    2365 # DIRECTORY is not provided and an installed libltdl is not found, it is
    2366 # assumed to be `libltdl'.  LIBLTDL will be prefixed with '${top_builddir}/'
    2367 # and LTDLINCL will be prefixed with '${top_srcdir}/' (note the single
    2368 # quotes!).  If your package is not flat and you're not using automake,
    2369 # define top_builddir and top_srcdir appropriately in the Makefiles.
     2611# --enable-ltdl-install to the configure arguments.  Note that
     2612# AC_CONFIG_SUBDIRS is not called here.  If DIRECTORY is not provided,
     2613# and an installed libltdl is not found, it is assumed to be `libltdl'.
     2614# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
     2615# '${top_srcdir}/' (note the single quotes!).  If your package is not
     2616# flat and you're not using automake, define top_builddir and top_srcdir
     2617# appropriately in the Makefiles.
    23702618# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
    23712619AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
     
    24052653AC_DEFUN([_LT_AC_LANG_CXX],
    24062654[AC_REQUIRE([AC_PROG_CXX])
    2407 AC_REQUIRE([AC_PROG_CXXCPP])
     2655AC_REQUIRE([_LT_AC_PROG_CXXCPP])
    24082656_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
    24092657])# _LT_AC_LANG_CXX
    24102658
     2659# _LT_AC_PROG_CXXCPP
     2660# ------------------
     2661AC_DEFUN([_LT_AC_PROG_CXXCPP],
     2662[
     2663AC_REQUIRE([AC_PROG_CXX])
     2664if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
     2665    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
     2666    (test "X$CXX" != "Xg++"))) ; then
     2667  AC_PROG_CXXCPP
     2668fi
     2669])# _LT_AC_PROG_CXXCPP
    24112670
    24122671# AC_LIBTOOL_F77
     
    24482707
    24492708# AC_LIBTOOL_RC
    2450 # --------------
     2709# -------------
    24512710# enable support for Windows resource files
    24522711AC_DEFUN([AC_LIBTOOL_RC],
     
    24742733
    24752734# Code to be used in simple compile tests
    2476 lt_simple_compile_test_code="int some_variable = 0;\n"
     2735lt_simple_compile_test_code="int some_variable = 0;"
    24772736
    24782737# Code to be used in simple link tests
    2479 lt_simple_link_test_code='int main(){return(0);}\n'
     2738lt_simple_link_test_code='int main(){return(0);}'
    24802739
    24812740_LT_AC_SYS_COMPILER
    24822741
    2483 #
    2484 # Check for any special shared library compilation flags.
    2485 #
    2486 _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)=
    2487 if test "$GCC" = no; then
    2488   case $host_os in
    2489   sco3.2v5*)
    2490     _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf'
    2491     ;;
    2492   esac
    2493 fi
    2494 if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then
    2495   AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries])
    2496   if echo "$old_CC $old_CFLAGS " | grep "[[     ]]$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[        ]]" >/dev/null; then :
    2497   else
    2498     AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure])
    2499     _LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no
    2500   fi
    2501 fi
    2502 
    2503 
    2504 #
    2505 # Check to make sure the static flag actually works.
    2506 #
    2507 AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works],
    2508   _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
    2509   $_LT_AC_TAGVAR(lt_prog_compiler_static, $1),
    2510   [],
    2511   [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
    2512 
     2742# save warnings/boilerplate of simple test code
     2743_LT_COMPILER_BOILERPLATE
     2744_LT_LINKER_BOILERPLATE
    25132745
    25142746AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
     
    25202752AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
    25212753AC_LIBTOOL_SYS_LIB_STRIP
    2522 AC_LIBTOOL_DLOPEN_SELF($1)
    2523 
    2524 # Report which librarie types wil actually be built
     2754AC_LIBTOOL_DLOPEN_SELF
     2755
     2756# Report which library types will actually be built
    25252757AC_MSG_CHECKING([if libtool supports shared libraries])
    25262758AC_MSG_RESULT([$can_build_shared])
     
    25312763# On AIX, shared libraries and static libraries use the same namespace, and
    25322764# are all built from PIC.
    2533 case "$host_os" in
     2765case $host_os in
    25342766aix3*)
    25352767  test "$enable_shared" = yes && enable_static=no
     
    25432775  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
    25442776    test "$enable_shared" = yes && enable_static=no
    2545   fi
    2546   ;;
    2547   darwin* | rhapsody*)
    2548   if test "$GCC" = yes; then
    2549     _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
    2550     case "$host_os" in
    2551     rhapsody* | darwin1.[[012]])
    2552       _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
    2553       ;;
    2554     *) # Darwin 1.3 on
    2555       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
    2556         _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
    2557       else
    2558         case ${MACOSX_DEPLOYMENT_TARGET} in
    2559           10.[[012]])
    2560             _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
    2561             ;;
    2562           10.*)
    2563             _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
    2564             ;;
    2565         esac
    2566       fi
    2567       ;;
    2568     esac
    2569     output_verbose_link_cmd='echo'
    2570     _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
    2571     _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
    2572     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
    2573     _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}'
    2574     _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}'
    2575     _LT_AC_TAGVAR(hardcode_direct, $1)=no
    2576     _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
    2577     _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
    2578     _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
    2579     _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
    2580   else
    2581     _LT_AC_TAGVAR(ld_shlibs, $1)=no
    25822777  fi
    25832778    ;;
     
    26062801[AC_LANG_PUSH(C++)
    26072802AC_REQUIRE([AC_PROG_CXX])
    2608 AC_REQUIRE([AC_PROG_CXXCPP])
     2803AC_REQUIRE([_LT_AC_PROG_CXXCPP])
    26092804
    26102805_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
     
    26182813_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
    26192814_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
     2815_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
    26202816_LT_AC_TAGVAR(hardcode_automatic, $1)=no
    26212817_LT_AC_TAGVAR(module_cmds, $1)=
     
    26352831
    26362832# Source file extension for C++ test sources.
    2637 ac_ext=cc
     2833ac_ext=cpp
    26382834
    26392835# Object file extension for compiled C++ test sources.
     
    26422838
    26432839# Code to be used in simple compile tests
    2644 lt_simple_compile_test_code="int some_variable = 0;\n"
     2840lt_simple_compile_test_code="int some_variable = 0;"
    26452841
    26462842# Code to be used in simple link tests
    2647 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
     2843lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
    26482844
    26492845# ltmain only uses $CC for tagged configurations so make sure $CC is set.
    26502846_LT_AC_SYS_COMPILER
     2847
     2848# save warnings/boilerplate of simple test code
     2849_LT_COMPILER_BOILERPLATE
     2850_LT_LINKER_BOILERPLATE
    26512851
    26522852# Allow CC to be a program name with arguments.
     
    26602860  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
    26612861else
    2662   unset lt_cv_prog_gnu_ld
     2862  $as_unset lt_cv_prog_gnu_ld
    26632863fi
    26642864if test -n "${lt_cv_path_LDCXX+set}"; then
    26652865  lt_cv_path_LD=$lt_cv_path_LDCXX
    26662866else
    2667   unset lt_cv_path_LD
     2867  $as_unset lt_cv_path_LD
    26682868fi
    26692869test -z "${LDCXX+set}" || LD=$LDCXX
     
    26712871compiler=$CC
    26722872_LT_AC_TAGVAR(compiler, $1)=$CC
    2673 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
     2873_LT_CC_BASENAME([$compiler])
    26742874
    26752875# We don't want -fno-exception wen compiling C++ code, so set the
     
    27602960          esac
    27612961        done
     2962        ;;
    27622963      esac
    27632964
     
    27782979
    27792980    if test "$GXX" = yes; then
    2780       case $host_os in aix4.[012]|aix4.[012].*)
     2981      case $host_os in aix4.[[012]]|aix4.[[012]].*)
    27812982      # We only want to do this on AIX 4.2 and lower, the check
    27822983      # below for broken collect2 doesn't work under 4.3+
     
    27862987        then
    27872988          # We have reworked collect2
    2788           _LT_AC_TAGVAR(hardcode_direct, $1)=yes
     2989          :
    27892990        else
    27902991          # We have old collect2
     
    27972998          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
    27982999        fi
     3000        ;;
    27993001      esac
    28003002      shared_flag='-shared'
     3003      if test "$aix_use_runtimelinking" = yes; then
     3004        shared_flag="$shared_flag "'${wl}-G'
     3005      fi
    28013006    else
    28023007      # not using gcc
     
    28253030      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
    28263031
    2827       _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"
     3032      _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
    28283033     else
    28293034      if test "$host_cpu" = ia64; then
    28303035        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
    28313036        _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
    2832         _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"
     3037        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
    28333038      else
    28343039        # Determine the default libpath from the value encoded in an empty executable.
     
    28393044        _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
    28403045        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
    2841         # -bexpall does not export symbols beginning with underscore (_)
    2842         _LT_AC_TAGVAR(always_export_symbols, $1)=yes
    28433046        # Exported symbols can be pulled into shared objects from archives
    2844         _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
     3047        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
    28453048        _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
    2846         # This is similar to how AIX traditionally builds it's shared libraries.
    2847         _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'
     3049        # This is similar to how AIX traditionally builds its shared libraries.
     3050        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
    28483051      fi
    28493052    fi
    28503053    ;;
     3054
     3055  beos*)
     3056    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
     3057      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
     3058      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
     3059      # support --undefined.  This deserves some investigation.  FIXME
     3060      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
     3061    else
     3062      _LT_AC_TAGVAR(ld_shlibs, $1)=no
     3063    fi
     3064    ;;
     3065
    28513066  chorus*)
    28523067    case $cc_basename in
     
    28673082
    28683083    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
    2869       _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'
     3084      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
    28703085      # If the export-symbols file already is a .def file (1st line
    28713086      # is EXPORTS), use it as is; otherwise, prepend...
     
    28763091        cat $export_symbols >> $output_objdir/$soname.def;
    28773092      fi~
    2878       $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'
     3093      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
    28793094    else
    28803095      _LT_AC_TAGVAR(ld_shlibs, $1)=no
    28813096    fi
    28823097  ;;
    2883 
    2884   darwin* | rhapsody*)
    2885   if test "$GXX" = yes; then
    2886     _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
    2887     case "$host_os" in
    2888     rhapsody* | darwin1.[[012]])
    2889       _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
    2890       ;;
    2891     *) # Darwin 1.3 on
    2892       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
    2893         _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
     3098      darwin* | rhapsody*)
     3099        case $host_os in
     3100        rhapsody* | darwin1.[[012]])
     3101         _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
     3102         ;;
     3103       *) # Darwin 1.3 on
     3104         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
     3105           _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
     3106         else
     3107           case ${MACOSX_DEPLOYMENT_TARGET} in
     3108             10.[[012]])
     3109               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
     3110               ;;
     3111             10.*)
     3112               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
     3113               ;;
     3114           esac
     3115         fi
     3116         ;;
     3117        esac
     3118      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
     3119      _LT_AC_TAGVAR(hardcode_direct, $1)=no
     3120      _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
     3121      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
     3122      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
     3123      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
     3124
     3125    if test "$GXX" = yes ; then
     3126      lt_int_apple_cc_single_mod=no
     3127      output_verbose_link_cmd='echo'
     3128      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
     3129       lt_int_apple_cc_single_mod=yes
     3130      fi
     3131      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
     3132       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
    28943133      else
    2895         case ${MACOSX_DEPLOYMENT_TARGET} in
    2896           10.[[012]])
    2897             _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
    2898             ;;
    2899           10.*)
    2900             _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
    2901             ;;
    2902         esac
     3134          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
     3135        fi
     3136        _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
     3137        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
     3138          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
     3139            _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}'
     3140          else
     3141            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
     3142          fi
     3143            _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}'
     3144      else
     3145      case $cc_basename in
     3146        xlc*)
     3147         output_verbose_link_cmd='echo'
     3148          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
     3149          _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
     3150          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
     3151          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
     3152          _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}'
     3153          ;;
     3154       *)
     3155         _LT_AC_TAGVAR(ld_shlibs, $1)=no
     3156          ;;
     3157      esac
    29033158      fi
    2904       ;;
    2905     esac
    2906     lt_int_apple_cc_single_mod=no
    2907     output_verbose_link_cmd='echo'
    2908     if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
    2909       lt_int_apple_cc_single_mod=yes
    2910     fi
    2911     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
    2912       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
    2913     else
    2914       _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'
    2915     fi
    2916     _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
    2917 
    2918     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
    2919     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
    2920       _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}'
    2921     else
    2922       _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}'
    2923     fi
    2924     _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}'
    2925     _LT_AC_TAGVAR(hardcode_direct, $1)=no
    2926     _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
    2927     _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
    2928     _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
    2929     _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
    2930   else
    2931     _LT_AC_TAGVAR(ld_shlibs, $1)=no
    2932   fi
    2933     ;;
     3159        ;;
    29343160
    29353161  dgux*)
    29363162    case $cc_basename in
    2937       ec++)
     3163      ec++*)
    29383164        # FIXME: insert proper C++ library support
    29393165        _LT_AC_TAGVAR(ld_shlibs, $1)=no
    29403166        ;;
    2941       ghcx)
     3167      ghcx*)
    29423168        # Green Hills C++ Compiler
    29433169        # FIXME: insert proper C++ library support
     
    29503176    esac
    29513177    ;;
    2952   freebsd[12]*)
     3178  freebsd[[12]]*)
    29533179    # C++ shared libraries reported to be fairly broken before switch to ELF
    29543180    _LT_AC_TAGVAR(ld_shlibs, $1)=no
     
    29573183    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
    29583184    ;;
    2959   freebsd* | kfreebsd*-gnu)
     3185  freebsd* | dragonfly*)
    29603186    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
    29613187    # conventions
     
    29743200
    29753201    case $cc_basename in
    2976     CC)
     3202    CC*)
    29773203      # FIXME: insert proper C++ library support
    29783204      _LT_AC_TAGVAR(ld_shlibs, $1)=no
    29793205      ;;
    2980     aCC)
     3206    aCC*)
    29813207      _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'
    29823208      # Commands to make compiler produce verbose output that lists
     
    29883214      # from the output so that they don't get included in the library
    29893215      # dependencies.
    2990       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'
     3216      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'
    29913217      ;;
    29923218    *)
     
    30023228  hpux10*|hpux11*)
    30033229    if test $with_gnu_ld = no; then
    3004       case "$host_cpu" in
    3005       hppa*64*)
    3006         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
    3007         _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
    3008         _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
    3009         ;;
    3010       ia64*)
    3011         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
    3012         ;;
     3230      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
     3231      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
     3232
     3233      case $host_cpu in
     3234      hppa*64*|ia64*) ;;
    30133235      *)
    3014         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
    3015         _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
    30163236        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
    30173237        ;;
    30183238      esac
    30193239    fi
    3020     case "$host_cpu" in
    3021     hppa*64*)
     3240    case $host_cpu in
     3241    hppa*64*|ia64*)
    30223242      _LT_AC_TAGVAR(hardcode_direct, $1)=no
    30233243      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
    3024       ;;
    3025     ia64*)
    3026       _LT_AC_TAGVAR(hardcode_direct, $1)=no
    3027       _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
    3028       _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
    3029                                               # but as the default
    3030                                               # location of the library.
    30313244      ;;
    30323245    *)
     
    30393252
    30403253    case $cc_basename in
    3041       CC)
     3254      CC*)
    30423255        # FIXME: insert proper C++ library support
    30433256        _LT_AC_TAGVAR(ld_shlibs, $1)=no
    30443257        ;;
    3045       aCC)
    3046         case "$host_cpu" in
    3047         hppa*64*|ia64*)
    3048           _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
     3258      aCC*)
     3259        case $host_cpu in
     3260        hppa*64*)
     3261          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
     3262          ;;
     3263        ia64*)
     3264          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
    30493265          ;;
    30503266        *)
     
    30653281        if test "$GXX" = yes; then
    30663282          if test $with_gnu_ld = no; then
    3067             case "$host_cpu" in
    3068             ia64*|hppa*64*)
    3069               _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
     3283            case $host_cpu in
     3284            hppa*64*)
     3285              _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
     3286              ;;
     3287            ia64*)
     3288              _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
    30703289              ;;
    30713290            *)
     
    30813300    esac
    30823301    ;;
     3302  interix[[3-9]]*)
     3303    _LT_AC_TAGVAR(hardcode_direct, $1)=no
     3304    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
     3305    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
     3306    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
     3307    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
     3308    # Instead, shared libraries are loaded at an image base (0x10000000 by
     3309    # default) and relocated if they conflict, which is a slow very memory
     3310    # consuming and fragmenting process.  To avoid this, we pick a random,
     3311    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
     3312    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
     3313    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
     3314    _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
     3315    ;;
    30833316  irix5* | irix6*)
    30843317    case $cc_basename in
    3085       CC)
     3318      CC*)
    30863319        # SGI C++
    3087         _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'
     3320        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
    30883321
    30893322        # Archives containing C++ object files must be created using
     
    30963329        if test "$GXX" = yes; then
    30973330          if test "$with_gnu_ld" = no; then
    3098             _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'
     3331            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
    30993332          else
    31003333            _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'
     
    31073340    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
    31083341    ;;
    3109   linux*)
     3342  linux* | k*bsd*-gnu)
    31103343    case $cc_basename in
    3111       KCC)
     3344      KCC*)
    31123345        # Kuck and Associates, Inc. (KAI) C++ Compiler
    31133346
     
    31343367        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
    31353368        ;;
    3136       icpc)
     3369      icpc*)
    31373370        # Intel C++
    31383371        with_gnu_ld=yes
     3372        # version 8.0 and above of icpc choke on multiply defined symbols
     3373        # if we add $predep_objects and $postdep_objects, however 7.1 and
     3374        # earlier do not add the objects themselves.
     3375        case `$CC -V 2>&1` in
     3376        *"Version 7."*)
     3377          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
     3378          _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'
     3379          ;;
     3380        *)  # Version 8.0 or newer
     3381          tmp_idyn=
     3382          case $host_cpu in
     3383            ia64*) tmp_idyn=' -i_dynamic';;
     3384          esac
     3385          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
     3386          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
     3387          ;;
     3388        esac
    31393389        _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
    3140         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
    3141         _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'
    31423390        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
    31433391        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
    31443392        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
    31453393        ;;
    3146       cxx)
     3394      pgCC*)
     3395        # Portland Group C++ compiler
     3396        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
     3397        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
     3398
     3399        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
     3400        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
     3401        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
     3402        ;;
     3403      cxx*)
    31473404        # Compaq C++
    31483405        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
     
    31633420        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'
    31643421        ;;
     3422      *)
     3423        case `$CC -V 2>&1 | sed 5q` in
     3424        *Sun\ C*)
     3425          # Sun C++ 5.9
     3426          _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
     3427          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
     3428          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
     3429          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
     3430          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
     3431
     3432          # Not sure whether something based on
     3433          # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
     3434          # would be better.
     3435          output_verbose_link_cmd='echo'
     3436
     3437          # Archives containing C++ object files must be created using
     3438          # "CC -xar", where "CC" is the Sun C++ compiler.  This is
     3439          # necessary to make sure instantiated templates are included
     3440          # in the archive.
     3441          _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
     3442          ;;
     3443        esac
     3444        ;;
    31653445    esac
    31663446    ;;
     
    31753455  mvs*)
    31763456    case $cc_basename in
    3177       cxx)
     3457      cxx*)
    31783458        # FIXME: insert proper C++ library support
    31793459        _LT_AC_TAGVAR(ld_shlibs, $1)=no
     
    31853465    esac
    31863466    ;;
    3187   netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
     3467  netbsd* | netbsdelf*-gnu)
    31883468    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
    31893469      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
     
    31963476    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
    31973477    ;;
     3478  openbsd2*)
     3479    # C++ shared libraries are fairly broken
     3480    _LT_AC_TAGVAR(ld_shlibs, $1)=no
     3481    ;;
     3482  openbsd*)
     3483    if test -f /usr/libexec/ld.so; then
     3484      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
     3485      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
     3486      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
     3487      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
     3488      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
     3489        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
     3490        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
     3491        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
     3492      fi
     3493      output_verbose_link_cmd='echo'
     3494    else
     3495      _LT_AC_TAGVAR(ld_shlibs, $1)=no
     3496    fi
     3497    ;;
    31983498  osf3*)
    31993499    case $cc_basename in
    3200       KCC)
     3500      KCC*)
    32013501        # Kuck and Associates, Inc. (KAI) C++ Compiler
    32023502
     
    32143514
    32153515        ;;
    3216       RCC)
     3516      RCC*)
    32173517        # Rational C++ 2.4.1
    32183518        # FIXME: insert proper C++ library support
    32193519        _LT_AC_TAGVAR(ld_shlibs, $1)=no
    32203520        ;;
    3221       cxx)
     3521      cxx*)
    32223522        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
    3223         _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'
     3523        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
    32243524
    32253525        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
     
    32393539        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
    32403540          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
    3241           _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'
     3541          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
    32423542
    32433543          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
     
    32583558  osf4* | osf5*)
    32593559    case $cc_basename in
    3260       KCC)
     3560      KCC*)
    32613561        # Kuck and Associates, Inc. (KAI) C++ Compiler
    32623562
     
    32733573        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
    32743574        ;;
    3275       RCC)
     3575      RCC*)
    32763576        # Rational C++ 2.4.1
    32773577        # FIXME: insert proper C++ library support
    32783578        _LT_AC_TAGVAR(ld_shlibs, $1)=no
    32793579        ;;
    3280       cxx)
     3580      cxx*)
    32813581        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
    3282         _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'
     3582        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
    32833583        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
    32843584          echo "-hidden">> $lib.exp~
    3285           $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~
     3585          $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
    32863586          $rm $lib.exp'
    32873587
     
    33023602        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
    33033603          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
    3304          _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'
     3604         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
    33053605
    33063606          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
     
    33233623    _LT_AC_TAGVAR(ld_shlibs, $1)=no
    33243624    ;;
    3325   sco*)
    3326     _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
     3625  sunos4*)
    33273626    case $cc_basename in
    3328       CC)
     3627      CC*)
     3628        # Sun C++ 4.x
     3629        # FIXME: insert proper C++ library support
     3630        _LT_AC_TAGVAR(ld_shlibs, $1)=no
     3631        ;;
     3632      lcc*)
     3633        # Lucid
    33293634        # FIXME: insert proper C++ library support
    33303635        _LT_AC_TAGVAR(ld_shlibs, $1)=no
     
    33363641    esac
    33373642    ;;
    3338   sunos4*)
    3339     case $cc_basename in
    3340       CC)
    3341         # Sun C++ 4.x
    3342         # FIXME: insert proper C++ library support
    3343         _LT_AC_TAGVAR(ld_shlibs, $1)=no
    3344         ;;
    3345       lcc)
    3346         # Lucid
    3347         # FIXME: insert proper C++ library support
    3348         _LT_AC_TAGVAR(ld_shlibs, $1)=no
    3349         ;;
    3350       *)
    3351         # FIXME: insert proper C++ library support
    3352         _LT_AC_TAGVAR(ld_shlibs, $1)=no
    3353         ;;
    3354     esac
    3355     ;;
    33563643  solaris*)
    33573644    case $cc_basename in
    3358       CC)
     3645      CC*)
    33593646        # Sun C++ 4.2, 5.x and Centerline C++
     3647        _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
    33603648        _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
    3361         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
     3649        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
    33623650        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
    3363         $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'
     3651        $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
    33643652
    33653653        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
    33663654        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
    33673655        case $host_os in
    3368           solaris2.[0-5] | solaris2.[0-5].*) ;;
     3656          solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
    33693657          *)
    3370             # The C++ compiler is used as linker so we must use $wl
    3371             # flag to pass the commands to the underlying system
    3372             # linker.
     3658            # The compiler driver will combine and reorder linker options,
     3659            # but understands `-z linker_flag'.
    33733660            # Supported since Solaris 2.6 (maybe 2.5.1?)
    3374             _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
     3661            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
    33753662            ;;
    33763663        esac
    33773664        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
    33783665
    3379         # Commands to make compiler produce verbose output that lists
    3380         # what "hidden" libraries, object files and flags are used when
    3381         # linking a shared library.
    3382         #
    3383         # There doesn't appear to be a way to prevent this compiler from
    3384         # explicitly linking system object files so we need to strip them
    3385         # from the output so that they don't get included in the library
    3386         # dependencies.
    3387         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'
     3666        output_verbose_link_cmd='echo'
    33883667
    33893668        # Archives containing C++ object files must be created using
     
    33933672        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
    33943673        ;;
    3395       gcx)
     3674      gcx*)
    33963675        # Green Hills C++ Compiler
    33973676        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
     
    34273706
    34283707          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
     3708          case $host_os in
     3709          solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
     3710          *)
     3711            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
     3712            ;;
     3713          esac
    34293714        fi
    34303715        ;;
    34313716    esac
    34323717    ;;
    3433   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
     3718  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
     3719    _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
    34343720    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
     3721    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
     3722    runpath_var='LD_RUN_PATH'
     3723
     3724    case $cc_basename in
     3725      CC*)
     3726        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
     3727        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
     3728        ;;
     3729      *)
     3730        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
     3731        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
     3732        ;;
     3733    esac
     3734    ;;
     3735  sysv5* | sco3.2v5* | sco5v6*)
     3736    # Note: We can NOT use -z defs as we might desire, because we do not
     3737    # link with -lc, and that would cause any symbols used from libc to
     3738    # always be unresolved, which means just about no library would
     3739    # ever link correctly.  If we're not using GNU ld we use -z text
     3740    # though, which does catch some bad symbols but isn't as heavy-handed
     3741    # as -z defs.
     3742    # For security reasons, it is highly recommended that you always
     3743    # use absolute paths for naming shared libraries, and exclude the
     3744    # DT_RUNPATH tag from executables and libraries.  But doing so
     3745    # requires that you compile everything twice, which is a pain.
     3746    # So that behaviour is only enabled if SCOABSPATH is set to a
     3747    # non-empty value in the environment.  Most likely only useful for
     3748    # creating official distributions of packages.
     3749    # This is a hack until libtool officially supports absolute path
     3750    # names for shared libraries.
     3751    _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
     3752    _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
     3753    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
     3754    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
     3755    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
     3756    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
     3757    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
     3758    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
     3759    runpath_var='LD_RUN_PATH'
     3760
     3761    case $cc_basename in
     3762      CC*)
     3763        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
     3764        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
     3765        ;;
     3766      *)
     3767        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
     3768        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
     3769        ;;
     3770    esac
    34353771    ;;
    34363772  tandem*)
    34373773    case $cc_basename in
    3438       NCC)
     3774      NCC*)
    34393775        # NonStop-UX NCC 3.20
    34403776        # FIXME: insert proper C++ library support
     
    34693805AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
    34703806AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
    3471 AC_LIBTOOL_SYS_LIB_STRIP
    3472 AC_LIBTOOL_DLOPEN_SELF($1)
    34733807
    34743808AC_LIBTOOL_CONFIG($1)
     
    34883822
    34893823# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
    3490 # ------------------------
     3824# ------------------------------------
    34913825# Figure out "hidden" library dependencies from verbose
    34923826# compiler output when linking a shared library.
     
    35423876  # $output_verbose_cmd can trigger glob expansion during the loop
    35433877  # eval without this substitution.
    3544   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
     3878  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
    35453879
    35463880  for p in `eval $output_verbose_link_cmd`; do
     
    36183952$rm -f confest.$objext
    36193953
     3954# PORTME: override above test on systems where it is broken
     3955ifelse([$1],[CXX],
     3956[case $host_os in
     3957interix[[3-9]]*)
     3958  # Interix 3.5 installs completely hosed .la files for C++, so rather than
     3959  # hack all around it, let's just trust "g++" to DTRT.
     3960  _LT_AC_TAGVAR(predep_objects,$1)=
     3961  _LT_AC_TAGVAR(postdep_objects,$1)=
     3962  _LT_AC_TAGVAR(postdeps,$1)=
     3963  ;;
     3964
     3965linux*)
     3966  case `$CC -V 2>&1 | sed 5q` in
     3967  *Sun\ C*)
     3968    # Sun C++ 5.9
     3969    #
     3970    # The more standards-conforming stlport4 library is
     3971    # incompatible with the Cstd library. Avoid specifying
     3972    # it if it's in CXXFLAGS. Ignore libCrun as
     3973    # -library=stlport4 depends on it.
     3974    case " $CXX $CXXFLAGS " in
     3975    *" -library=stlport4 "*)
     3976      solaris_use_stlport4=yes
     3977      ;;
     3978    esac
     3979    if test "$solaris_use_stlport4" != yes; then
     3980      _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
     3981    fi
     3982    ;;
     3983  esac
     3984  ;;
     3985
     3986solaris*)
     3987  case $cc_basename in
     3988  CC*)
     3989    # The more standards-conforming stlport4 library is
     3990    # incompatible with the Cstd library. Avoid specifying
     3991    # it if it's in CXXFLAGS. Ignore libCrun as
     3992    # -library=stlport4 depends on it.
     3993    case " $CXX $CXXFLAGS " in
     3994    *" -library=stlport4 "*)
     3995      solaris_use_stlport4=yes
     3996      ;;
     3997    esac
     3998
     3999    # Adding this requires a known-good setup of shared libraries for
     4000    # Sun compiler versions before 5.6, else PIC objects from an old
     4001    # archive will be linked into the output, leading to subtle bugs.
     4002    if test "$solaris_use_stlport4" != yes; then
     4003      _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
     4004    fi
     4005    ;;
     4006  esac
     4007  ;;
     4008esac
     4009])
     4010
    36204011case " $_LT_AC_TAGVAR(postdeps, $1) " in
    36214012*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
     
    36244015
    36254016# AC_LIBTOOL_LANG_F77_CONFIG
    3626 # ------------------------
     4017# --------------------------
    36274018# Ensure that the configuration vars for the C compiler are
    36284019# suitably defined.  Those variables are subsequently used by
     
    36604051
    36614052# Code to be used in simple compile tests
    3662 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
     4053lt_simple_compile_test_code="\
     4054      subroutine t
     4055      return
     4056      end
     4057"
    36634058
    36644059# Code to be used in simple link tests
    3665 lt_simple_link_test_code="      program t\n      end\n"
     4060lt_simple_link_test_code="\
     4061      program t
     4062      end
     4063"
    36664064
    36674065# ltmain only uses $CC for tagged configurations so make sure $CC is set.
    36684066_LT_AC_SYS_COMPILER
     4067
     4068# save warnings/boilerplate of simple test code
     4069_LT_COMPILER_BOILERPLATE
     4070_LT_LINKER_BOILERPLATE
    36694071
    36704072# Allow CC to be a program name with arguments.
     
    36734075compiler=$CC
    36744076_LT_AC_TAGVAR(compiler, $1)=$CC
    3675 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
     4077_LT_CC_BASENAME([$compiler])
    36764078
    36774079AC_MSG_CHECKING([if libtool supports shared libraries])
     
    36834085# On AIX, shared libraries and static libraries use the same namespace, and
    36844086# are all built from PIC.
    3685 case "$host_os" in
     4087case $host_os in
    36864088aix3*)
    36874089  test "$enable_shared" = yes && enable_static=no
     
    36924094  ;;
    36934095aix4* | aix5*)
    3694   test "$enable_shared" = yes && enable_static=no
     4096  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
     4097    test "$enable_shared" = yes && enable_static=no
     4098  fi
    36954099  ;;
    36964100esac
     
    37014105test "$enable_shared" = yes || enable_static=yes
    37024106AC_MSG_RESULT([$enable_static])
    3703 
    3704 test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
    37054107
    37064108_LT_AC_TAGVAR(GCC, $1)="$G77"
     
    37134115AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
    37144116AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
    3715 AC_LIBTOOL_SYS_LIB_STRIP
    3716 
    37174117
    37184118AC_LIBTOOL_CONFIG($1)
     
    37404140
    37414141# Code to be used in simple compile tests
    3742 lt_simple_compile_test_code="class foo {}\n"
     4142lt_simple_compile_test_code="class foo {}"
    37434143
    37444144# Code to be used in simple link tests
    3745 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
     4145lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
    37464146
    37474147# ltmain only uses $CC for tagged configurations so make sure $CC is set.
    37484148_LT_AC_SYS_COMPILER
     4149
     4150# save warnings/boilerplate of simple test code
     4151_LT_COMPILER_BOILERPLATE
     4152_LT_LINKER_BOILERPLATE
    37494153
    37504154# Allow CC to be a program name with arguments.
     
    37534157compiler=$CC
    37544158_LT_AC_TAGVAR(compiler, $1)=$CC
     4159_LT_CC_BASENAME([$compiler])
    37554160
    37564161# GCJ did not exist at the time GCC didn't implicitly link libc in.
    37574162_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
     4163
     4164_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
    37584165
    37594166AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
     
    37644171AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
    37654172AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
    3766 AC_LIBTOOL_SYS_LIB_STRIP
    3767 AC_LIBTOOL_DLOPEN_SELF($1)
    37684173
    37694174AC_LIBTOOL_CONFIG($1)
     
    37754180
    37764181# AC_LIBTOOL_LANG_RC_CONFIG
    3777 # --------------------------
     4182# -------------------------
    37784183# Ensure that the configuration vars for the Windows resource compiler are
    37794184# suitably defined.  Those variables are subsequently used by
     
    37914196
    37924197# Code to be used in simple compile tests
    3793 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
     4198lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
    37944199
    37954200# Code to be used in simple link tests
     
    37984203# ltmain only uses $CC for tagged configurations so make sure $CC is set.
    37994204_LT_AC_SYS_COMPILER
     4205
     4206# save warnings/boilerplate of simple test code
     4207_LT_COMPILER_BOILERPLATE
     4208_LT_LINKER_BOILERPLATE
    38004209
    38014210# Allow CC to be a program name with arguments.
     
    38044213compiler=$CC
    38054214_LT_AC_TAGVAR(compiler, $1)=$CC
     4215_LT_CC_BASENAME([$compiler])
    38064216_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
    38074217
     
    38334243  # careful not to overquote the AC_SUBSTed values.  We take copies of the
    38344244  # variables and quote the copies for generation of the libtool script.
    3835   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
     4245  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
    38364246    SED SHELL STRIP \
    38374247    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
     
    38754285    _LT_AC_TAGVAR(module_expsym_cmds, $1) \
    38764286    _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
     4287    _LT_AC_TAGVAR(fix_srcfile_path, $1) \
    38774288    _LT_AC_TAGVAR(exclude_expsyms, $1) \
    38784289    _LT_AC_TAGVAR(include_expsyms, $1); do
     
    39214332# NOTE: Changes made to this file will be lost: look at ltmain.sh.
    39224333#
    3923 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
     4334# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
    39244335# Free Software Foundation, Inc.
    39254336#
     
    39394350# You should have received a copy of the GNU General Public License
    39404351# along with this program; if not, write to the Free Software
    3941 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
     4352# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
    39424353#
    39434354# As a special exception to the GNU General Public License, if you
     
    39504361
    39514362# Sed that helps us avoid accidentally triggering echo(1) options like -n.
    3952 Xsed="$SED -e s/^X//"
     4363Xsed="$SED -e 1s/^X//"
    39534364
    39544365# The HP-UX ksh and POSIX shell print the target directory to stdout
    39554366# if CDPATH is set.
    3956 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
     4367(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
    39574368
    39584369# The names of the tagged configurations supported by this script.
     
    39854396host_alias=$host_alias
    39864397host=$host
     4398host_os=$host_os
     4399
     4400# The build system.
     4401build_alias=$build_alias
     4402build=$build
     4403build_os=$build_os
    39874404
    39884405# An echo program that does not interpret backslashes.
     
    39964413LTCC=$lt_LTCC
    39974414
     4415# LTCC compiler flags.
     4416LTCFLAGS=$lt_LTCFLAGS
     4417
    39984418# A language-specific compiler.
    39994419CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
     
    40614481compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
    40624482
    4063 # Must we lock files when doing compilation ?
     4483# Must we lock files when doing compilation?
    40644484need_locks=$lt_need_locks
    40654485
     
    42374657
    42384658# Fix the shell variable \$srcfile for the compiler.
    4239 fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
     4659fix_srcfile_path=$lt_fix_srcfile_path
    42404660
    42414661# Set to yes if exported symbols are required.
     
    43204740AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
    43214741[AC_REQUIRE([AC_CANONICAL_HOST])
     4742AC_REQUIRE([LT_AC_PROG_SED])
    43224743AC_REQUIRE([AC_PROG_NM])
    43234744AC_REQUIRE([AC_OBJEXT])
     
    43354756sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
    43364757
    4337 # Transform the above into a raw symbol and a C symbol.
    4338 symxfrm='\1 \2\3 \3'
    4339 
    43404758# Transform an extracted symbol line into a proper C declaration
    43414759lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
     
    43594777  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'"
    43604778  ;;
     4779linux* | k*bsd*-gnu)
     4780  if test "$host_cpu" = ia64; then
     4781    symcode='[[ABCDGIRSTW]]'
     4782    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
     4783    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'"
     4784  fi
     4785  ;;
    43614786irix* | nonstopux*)
    43624787  symcode='[[BCDEGRST]]'
     
    43654790  symcode='[[BCDEGQRST]]'
    43664791  ;;
    4367 solaris* | sysv5*)
     4792solaris*)
    43684793  symcode='[[BDRT]]'
     4794  ;;
     4795sco3.2v5*)
     4796  symcode='[[DT]]'
     4797  ;;
     4798sysv4.2uw2*)
     4799  symcode='[[DT]]'
     4800  ;;
     4801sysv5* | sco5v6* | unixware* | OpenUNIX*)
     4802  symcode='[[ABDT]]'
    43694803  ;;
    43704804sysv4)
     
    43904824for ac_symprfx in "" "_"; do
    43914825
     4826  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
     4827  symxfrm="\\1 $ac_symprfx\\2 \\2"
     4828
    43924829  # Write the raw and C identifiers.
    4393   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[      ]]\($symcode$symcode*\)[[       ]][[    ]]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
     4830  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[      ]]\($symcode$symcode*\)[[       ]][[    ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
    43944831
    43954832  # Check to see that the pipe works correctly.
     
    45304967      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
    45314968      ;;
    4532     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
     4969    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
    45334970      # PIC is the default for these OSes.
    45344971      ;;
    4535     mingw* | os2* | pw32*)
     4972    mingw* | cygwin* | os2* | pw32*)
    45364973      # This hack is so that the source file can tell whether it is being
    45374974      # built for inclusion in a dll (and should export symbols for example).
     4975      # Although the cygwin gcc ignores -fPIC, still need this for old-style
     4976      # (--disable-auto-import) libraries
    45384977      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
    45394978      ;;
     
    45474986      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
    45484987      ;;
     4988    interix[[3-9]]*)
     4989      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
     4990      # Instead, we relocate shared libraries at runtime.
     4991      ;;
    45494992    sysv4*MP*)
    45504993      if test -d /usr/nec; then
     
    45554998      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
    45564999      # not for PA HP-UX.
    4557       case "$host_cpu" in
     5000      case $host_cpu in
    45585001      hppa*64*|ia64*)
    45595002        ;;
     
    45805023      chorus*)
    45815024        case $cc_basename in
    4582         cxch68)
     5025        cxch68*)
    45835026          # Green Hills C++ Compiler
    45845027          # _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"
     
    45865029        esac
    45875030        ;;
     5031       darwin*)
     5032         # PIC is the default on this platform
     5033         # Common symbols not allowed in MH_DYLIB files
     5034         case $cc_basename in
     5035           xlc*)
     5036           _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
     5037           _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
     5038           ;;
     5039         esac
     5040       ;;
    45885041      dgux*)
    45895042        case $cc_basename in
    4590           ec++)
     5043          ec++*)
    45915044            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
    45925045            ;;
    4593           ghcx)
     5046          ghcx*)
    45945047            # Green Hills C++ Compiler
    45955048            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
     
    45995052        esac
    46005053        ;;
    4601       freebsd* | kfreebsd*-gnu)
     5054      freebsd* | dragonfly*)
    46025055        # FreeBSD uses GNU C++
    46035056        ;;
    46045057      hpux9* | hpux10* | hpux11*)
    46055058        case $cc_basename in
    4606           CC)
     5059          CC*)
    46075060            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
    4608             _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
     5061            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
    46095062            if test "$host_cpu" != ia64; then
    46105063              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
    46115064            fi
    46125065            ;;
    4613           aCC)
     5066          aCC*)
    46145067            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
    4615             _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
    4616             case "$host_cpu" in
     5068            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
     5069            case $host_cpu in
    46175070            hppa*64*|ia64*)
    46185071              # +Z the default
     
    46275080        esac
    46285081        ;;
     5082      interix*)
     5083        # This is c89, which is MS Visual C++ (no shared libs)
     5084        # Anyone wants to do a port?
     5085        ;;
    46295086      irix5* | irix6* | nonstopux*)
    46305087        case $cc_basename in
    4631           CC)
     5088          CC*)
    46325089            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
    46335090            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
     
    46385095        esac
    46395096        ;;
    4640       linux*)
     5097      linux* | k*bsd*-gnu)
    46415098        case $cc_basename in
    4642           KCC)
     5099          KCC*)
    46435100            # KAI C++ Compiler
    46445101            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
    46455102            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
    46465103            ;;
    4647           icpc)
     5104          icpc* | ecpc*)
    46485105            # Intel C++
    46495106            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
     
    46515108            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
    46525109            ;;
    4653           cxx)
     5110          pgCC*)
     5111            # Portland Group C++ compiler.
     5112            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
     5113            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
     5114            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
     5115            ;;
     5116          cxx*)
    46545117            # Compaq C++
    46555118            # Make sure the PIC flag is empty.  It appears that all Alpha
     
    46595122            ;;
    46605123          *)
     5124            case `$CC -V 2>&1 | sed 5q` in
     5125            *Sun\ C*)
     5126              # Sun C++ 5.9
     5127              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
     5128              _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
     5129              _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
     5130              ;;
     5131            esac
    46615132            ;;
    46625133        esac
     
    46685139      mvs*)
    46695140        case $cc_basename in
    4670           cxx)
     5141          cxx*)
    46715142            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
    46725143            ;;
     
    46755146        esac
    46765147        ;;
    4677       netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
     5148      netbsd* | netbsdelf*-gnu)
    46785149        ;;
    46795150      osf3* | osf4* | osf5*)
    46805151        case $cc_basename in
    4681           KCC)
     5152          KCC*)
    46825153            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
    46835154            ;;
    4684           RCC)
     5155          RCC*)
    46855156            # Rational C++ 2.4.1
    46865157            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
    46875158            ;;
    4688           cxx)
     5159          cxx*)
    46895160            # Digital/Compaq C++
    46905161            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
     
    47005171      psos*)
    47015172        ;;
    4702       sco*)
    4703         case $cc_basename in
    4704           CC)
    4705             _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
    4706             ;;
    4707           *)
    4708             ;;
    4709         esac
    4710         ;;
    47115173      solaris*)
    47125174        case $cc_basename in
    4713           CC)
     5175          CC*)
    47145176            # Sun C++ 4.2, 5.x and Centerline C++
    47155177            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
     
    47175179            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
    47185180            ;;
    4719           gcx)
     5181          gcx*)
    47205182            # Green Hills C++ Compiler
    47215183            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
     
    47275189      sunos4*)
    47285190        case $cc_basename in
    4729           CC)
     5191          CC*)
    47305192            # Sun C++ 4.x
    47315193            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
    47325194            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
    47335195            ;;
    4734           lcc)
     5196          lcc*)
    47355197            # Lucid
    47365198            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
     
    47425204      tandem*)
    47435205        case $cc_basename in
    4744           NCC)
     5206          NCC*)
    47455207            # NonStop-UX NCC 3.20
    47465208            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
     
    47505212        esac
    47515213        ;;
    4752       unixware*)
     5214      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
     5215        case $cc_basename in
     5216          CC*)
     5217            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
     5218            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
     5219            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
     5220            ;;
     5221        esac
    47535222        ;;
    47545223      vxworks*)
     
    47815250      ;;
    47825251
    4783     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
     5252    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
    47845253      # PIC is the default for these OSes.
    47855254      ;;
    47865255
    4787     mingw* | pw32* | os2*)
     5256    mingw* | cygwin* | pw32* | os2*)
    47885257      # This hack is so that the source file can tell whether it is being
    47895258      # built for inclusion in a dll (and should export symbols for example).
     5259      # Although the cygwin gcc ignores -fPIC, still need this for old-style
     5260      # (--disable-auto-import) libraries
    47905261      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
    47915262      ;;
     
    47955266      # Common symbols not allowed in MH_DYLIB files
    47965267      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
     5268      ;;
     5269
     5270    interix[[3-9]]*)
     5271      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
     5272      # Instead, we relocate shared libraries at runtime.
    47975273      ;;
    47985274
     
    48135289      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
    48145290      # not for PA HP-UX.
    4815       case "$host_cpu" in
     5291      case $host_cpu in
    48165292      hppa*64*|ia64*)
    48175293        # +Z the default
     
    48395315      fi
    48405316      ;;
    4841 
    4842     mingw* | pw32* | os2*)
     5317      darwin*)
     5318        # PIC is the default on this platform
     5319        # Common symbols not allowed in MH_DYLIB files
     5320       case $cc_basename in
     5321         xlc*)
     5322         _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
     5323         _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
     5324         ;;
     5325       esac
     5326       ;;
     5327
     5328    mingw* | cygwin* | pw32* | os2*)
    48435329      # This hack is so that the source file can tell whether it is being
    48445330      # built for inclusion in a dll (and should export symbols for example).
     
    48505336      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
    48515337      # not for PA HP-UX.
    4852       case "$host_cpu" in
     5338      case $host_cpu in
    48535339      hppa*64*|ia64*)
    48545340        # +Z the default
     
    48735359      ;;
    48745360
    4875     linux*)
    4876       case $CC in
     5361    linux* | k*bsd*-gnu)
     5362      case $cc_basename in
    48775363      icc* | ecc*)
    48785364        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
    48795365        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
    48805366        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
     5367        ;;
     5368      pgcc* | pgf77* | pgf90* | pgf95*)
     5369        # Portland Group compilers (*not* the Pentium gcc compiler,
     5370        # which looks to be a dead project)
     5371        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
     5372        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
     5373        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
    48815374        ;;
    48825375      ccc*)
     
    48855378        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
    48865379        ;;
     5380      *)
     5381        case `$CC -V 2>&1 | sed 5q` in
     5382        *Sun\ C*)
     5383          # Sun C 5.9
     5384          _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
     5385          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
     5386          _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
     5387          ;;
     5388        *Sun\ F*)
     5389          # Sun Fortran 8.3 passes all unrecognized flags to the linker
     5390          _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
     5391          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
     5392          _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=''
     5393          ;;
     5394        esac
     5395        ;;
    48875396      esac
    48885397      ;;
     
    48945403      ;;
    48955404
    4896     sco3.2v5*)
    4897       _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kpic'
    4898       _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-dn'
     5405    rdos*)
     5406      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
    48995407      ;;
    49005408
    49015409    solaris*)
    4902       _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
    49035410      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
    49045411      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
     5412      case $cc_basename in
     5413      f77* | f90* | f95*)
     5414        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
     5415      *)
     5416        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
     5417      esac
    49055418      ;;
    49065419
     
    49115424      ;;
    49125425
    4913     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
     5426    sysv4 | sysv4.2uw2* | sysv4.3*)
    49145427      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
    49155428      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
     
    49225435        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
    49235436      fi
     5437      ;;
     5438
     5439    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
     5440      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
     5441      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
     5442      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
     5443      ;;
     5444
     5445    unicos*)
     5446      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
     5447      _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
    49245448      ;;
    49255449
     
    49515475     _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
    49525476fi
    4953 case "$host_os" in
     5477case $host_os in
    49545478  # For platforms which do not support PIC, -DPIC is meaningless:
    49555479  *djgpp*)
     
    49605484    ;;
    49615485esac
     5486
     5487#
     5488# Check to make sure the static flag actually works.
     5489#
     5490wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
     5491AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
     5492  _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
     5493  $lt_tmp_static_flag,
     5494  [],
     5495  [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
    49625496])
    49635497
     
    49675501# See if the linker supports building shared libraries.
    49685502AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
    4969 [AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
     5503[AC_REQUIRE([LT_AC_PROG_SED])dnl
     5504AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
    49705505ifelse([$1],[CXX],[
    49715506  _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
     
    49845519  ;;
    49855520  cygwin* | mingw*)
    4986     _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'
    4987   ;;
    4988   linux*)
     5521    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
     5522  ;;
     5523  linux* | k*bsd*-gnu)
    49895524    _LT_AC_TAGVAR(link_all_deplibs, $1)=no
    49905525  ;;
     
    50305565  # preloaded symbol tables.
    50315566  extract_expsyms_cmds=
    5032 
     5567  # Just being paranoid about ensuring that cc_basename is set.
     5568  _LT_CC_BASENAME([$compiler])
    50335569  case $host_os in
    50345570  cygwin* | mingw* | pw32*)
     
    50405576    fi
    50415577    ;;
     5578  interix*)
     5579    # we just hope/assume this is gcc and not c89 (= MSVC++)
     5580    with_gnu_ld=yes
     5581    ;;
    50425582  openbsd*)
    50435583    with_gnu_ld=no
     
    50495589    # If archive_cmds runs LD, not CC, wlarc should be empty
    50505590    wlarc='${wl}'
     5591
     5592    # Set some defaults for GNU ld with shared library support. These
     5593    # are reset later if shared libraries are not supported. Putting them
     5594    # here allows them to be overridden if necessary.
     5595    runpath_var=LD_RUN_PATH
     5596    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
     5597    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
     5598    # ancient GNU ld didn't support --whole-archive et. al.
     5599    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
     5600        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
     5601      else
     5602        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
     5603    fi
     5604    supports_anon_versioning=no
     5605    case `$LD -v 2>/dev/null` in
     5606      *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
     5607      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
     5608      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
     5609      *\ 2.11.*) ;; # other 2.11 versions
     5610      *) supports_anon_versioning=yes ;;
     5611    esac
    50515612
    50525613    # See if GNU ld supports shared libraries.
     
    51005661      _LT_AC_TAGVAR(always_export_symbols, $1)=no
    51015662      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
    5102       _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'
     5663      _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
    51035664
    51045665      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
    5105         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
     5666        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
    51065667        # If the export-symbols file already is a .def file (1st line
    51075668        # is EXPORTS), use it as is; otherwise, prepend...
     
    51125673          cat $export_symbols >> $output_objdir/$soname.def;
    51135674        fi~
    5114         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
     5675        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
    51155676      else
    5116         ld_shlibs=no
     5677        _LT_AC_TAGVAR(ld_shlibs, $1)=no
    51175678      fi
    51185679      ;;
    51195680
    5120     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
     5681    interix[[3-9]]*)
     5682      _LT_AC_TAGVAR(hardcode_direct, $1)=no
     5683      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
     5684      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
     5685      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
     5686      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
     5687      # Instead, shared libraries are loaded at an image base (0x10000000 by
     5688      # default) and relocated if they conflict, which is a slow very memory
     5689      # consuming and fragmenting process.  To avoid this, we pick a random,
     5690      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
     5691      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
     5692      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
     5693      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
     5694      ;;
     5695
     5696    gnu* | linux* | k*bsd*-gnu)
     5697      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
     5698        tmp_addflag=
     5699        case $cc_basename,$host_cpu in
     5700        pgcc*)                          # Portland Group C compiler
     5701          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
     5702          tmp_addflag=' $pic_flag'
     5703          ;;
     5704        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
     5705          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
     5706          tmp_addflag=' $pic_flag -Mnomain' ;;
     5707        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
     5708          tmp_addflag=' -i_dynamic' ;;
     5709        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
     5710          tmp_addflag=' -i_dynamic -nofor_main' ;;
     5711        ifc* | ifort*)                  # Intel Fortran compiler
     5712          tmp_addflag=' -nofor_main' ;;
     5713        esac
     5714        case `$CC -V 2>&1 | sed 5q` in
     5715        *Sun\ C*)                       # Sun C 5.9
     5716          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
     5717          tmp_sharedflag='-G' ;;
     5718        *Sun\ F*)                       # Sun Fortran 8.3
     5719          tmp_sharedflag='-G' ;;
     5720        *)
     5721          tmp_sharedflag='-shared' ;;
     5722        esac
     5723        _LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
     5724
     5725        if test $supports_anon_versioning = yes; then
     5726          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
     5727  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
     5728  $echo "local: *; };" >> $output_objdir/$libname.ver~
     5729          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
     5730        fi
     5731        _LT_AC_TAGVAR(link_all_deplibs, $1)=no
     5732      else
     5733        _LT_AC_TAGVAR(ld_shlibs, $1)=no
     5734      fi
     5735      ;;
     5736
     5737    netbsd* | netbsdelf*-gnu)
    51215738      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
    51225739        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
     
    51285745      ;;
    51295746
    5130     solaris* | sysv5*)
     5747    solaris*)
    51315748      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
    51325749        _LT_AC_TAGVAR(ld_shlibs, $1)=no
     
    51495766      ;;
    51505767
     5768    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
     5769      case `$LD -v 2>&1` in
     5770        *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
     5771        _LT_AC_TAGVAR(ld_shlibs, $1)=no
     5772        cat <<_LT_EOF 1>&2
     5773
     5774*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
     5775*** reliably create shared libraries on SCO systems.  Therefore, libtool
     5776*** is disabling shared libraries support.  We urge you to upgrade GNU
     5777*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
     5778*** your PATH or compiler configuration so that the native linker is
     5779*** used, and then restart.
     5780
     5781_LT_EOF
     5782        ;;
     5783        *)
     5784          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
     5785            _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
     5786            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
     5787            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
     5788          else
     5789            _LT_AC_TAGVAR(ld_shlibs, $1)=no
     5790          fi
     5791        ;;
     5792      esac
     5793      ;;
     5794
    51515795    sunos4*)
    51525796      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
     
    51555799      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
    51565800      ;;
    5157 
    5158   linux*)
    5159     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
    5160         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
    5161         _LT_AC_TAGVAR(archive_cmds, $1)="$tmp_archive_cmds"
    5162       supports_anon_versioning=no
    5163       case `$LD -v 2>/dev/null` in
    5164         *\ [01].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
    5165         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
    5166         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
    5167         *\ 2.11.*) ;; # other 2.11 versions
    5168         *) supports_anon_versioning=yes ;;
    5169       esac
    5170       if test $supports_anon_versioning = yes; then
    5171         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
    5172 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
    5173 $echo "local: *; };" >> $output_objdir/$libname.ver~
    5174         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
    5175       else
    5176         _LT_AC_TAGVAR(archive_expsym_cmds, $1)="$tmp_archive_cmds"
    5177       fi
    5178       _LT_AC_TAGVAR(link_all_deplibs, $1)=no
    5179     else
    5180       _LT_AC_TAGVAR(ld_shlibs, $1)=no
    5181     fi
    5182     ;;
    51835801
    51845802    *)
     
    51925810    esac
    51935811
    5194     if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = yes; then
    5195       runpath_var=LD_RUN_PATH
    5196       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
    5197       _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
    5198       # ancient GNU ld didn't support --whole-archive et. al.
    5199       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
    5200         _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
    5201       else
    5202         _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
    5203       fi
     5812    if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
     5813      runpath_var=
     5814      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
     5815      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
     5816      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
    52045817    fi
    52055818  else
     
    52135826      # are no directories specified by -L.
    52145827      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
    5215       if test "$GCC" = yes && test -z "$link_static_flag"; then
     5828      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
    52165829        # Neither direct hardcoding nor static linking is supported with a
    52175830        # broken collect2.
     
    52475860          fi
    52485861          done
     5862          ;;
    52495863        esac
    52505864
     
    52655879
    52665880      if test "$GCC" = yes; then
    5267         case $host_os in aix4.[012]|aix4.[012].*)
     5881        case $host_os in aix4.[[012]]|aix4.[[012]].*)
    52685882        # We only want to do this on AIX 4.2 and lower, the check
    52695883        # below for broken collect2 doesn't work under 4.3+
     
    52735887          then
    52745888          # We have reworked collect2
    5275           _LT_AC_TAGVAR(hardcode_direct, $1)=yes
     5889          :
    52765890          else
    52775891          # We have old collect2
     
    52845898          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
    52855899          fi
     5900          ;;
    52865901        esac
    52875902        shared_flag='-shared'
     5903        if test "$aix_use_runtimelinking" = yes; then
     5904          shared_flag="$shared_flag "'${wl}-G'
     5905        fi
    52885906      else
    52895907        # not using gcc
     
    52935911          shared_flag='-G'
    52945912        else
    5295         if test "$aix_use_runtimelinking" = yes; then
     5913          if test "$aix_use_runtimelinking" = yes; then
    52965914            shared_flag='${wl}-G'
    52975915          else
    52985916            shared_flag='${wl}-bM:SRE'
    5299         fi
     5917          fi
    53005918        fi
    53015919      fi
     
    53115929       _LT_AC_SYS_LIBPATH_AIX
    53125930       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
    5313         _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"
     5931        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
    53145932       else
    53155933        if test "$host_cpu" = ia64; then
    53165934          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
    53175935          _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
    5318           _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"
     5936          _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
    53195937        else
    53205938         # Determine the default libpath from the value encoded in an empty executable.
     
    53255943          _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
    53265944          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
    5327           # -bexpall does not export symbols beginning with underscore (_)
    5328           _LT_AC_TAGVAR(always_export_symbols, $1)=yes
    53295945          # Exported symbols can be pulled into shared objects from archives
    5330           _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
     5946          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
    53315947          _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
    5332           # This is similar to how AIX traditionally builds it's shared libraries.
    5333           _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'
     5948          # This is similar to how AIX traditionally builds its shared libraries.
     5949          _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
    53345950        fi
    53355951      fi
     
    53445960      ;;
    53455961
    5346     bsdi4*)
     5962    bsdi[[45]]*)
    53475963      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
    53485964      ;;
     
    53645980      _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
    53655981      # FIXME: Should let the user specify the lib program.
    5366       _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
    5367       fix_srcfile_path='`cygpath -w "$srcfile"`'
     5982      _LT_AC_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
     5983      _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
    53685984      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
    53695985      ;;
    53705986
    53715987    darwin* | rhapsody*)
    5372     if test "$GXX" = yes ; then
     5988      case $host_os in
     5989        rhapsody* | darwin1.[[012]])
     5990         _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
     5991         ;;
     5992       *) # Darwin 1.3 on
     5993         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
     5994           _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
     5995         else
     5996           case ${MACOSX_DEPLOYMENT_TARGET} in
     5997             10.[[012]])
     5998               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
     5999               ;;
     6000             10.*)
     6001               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
     6002               ;;
     6003           esac
     6004         fi
     6005         ;;
     6006      esac
    53736007      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
    5374       case "$host_os" in
    5375       rhapsody* | darwin1.[[012]])
    5376         _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
    5377         ;;
    5378       *) # Darwin 1.3 on
    5379       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
    5380         _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
    5381       else
    5382         case ${MACOSX_DEPLOYMENT_TARGET} in
    5383           10.[[012]])
    5384             _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
    5385             ;;
    5386           10.*)
    5387             _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
    5388             ;;
    5389         esac
    5390       fi
    5391         ;;
    5392       esac
    5393         lt_int_apple_cc_single_mod=no
    5394         output_verbose_link_cmd='echo'
    5395         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
    5396           lt_int_apple_cc_single_mod=yes
    5397         fi
    5398         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
    5399           _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
    5400         else
    5401         _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'
    5402       fi
    5403       _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
    5404       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
    5405         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
    5406           _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}'
    5407         else
    5408           _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}'
    5409         fi
    5410           _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}'
    54116008      _LT_AC_TAGVAR(hardcode_direct, $1)=no
    54126009      _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
    54136010      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
    5414       _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
     6011      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
    54156012      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
     6013    if test "$GCC" = yes ; then
     6014        output_verbose_link_cmd='echo'
     6015        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
     6016      _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
     6017      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
     6018      _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}'
     6019      _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}'
    54166020    else
    5417       _LT_AC_TAGVAR(ld_shlibs, $1)=no
     6021      case $cc_basename in
     6022        xlc*)
     6023         output_verbose_link_cmd='echo'
     6024         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
     6025         _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
     6026          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
     6027         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
     6028          _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}'
     6029          ;;
     6030       *)
     6031         _LT_AC_TAGVAR(ld_shlibs, $1)=no
     6032          ;;
     6033      esac
    54186034    fi
    54196035      ;;
     
    54496065
    54506066    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
    5451     freebsd* | kfreebsd*-gnu)
     6067    freebsd* | dragonfly*)
    54526068      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
    54536069      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
     
    54726088      ;;
    54736089
    5474     hpux10* | hpux11*)
     6090    hpux10*)
    54756091      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
    5476         case "$host_cpu" in
    5477         hppa*64*|ia64*)
     6092        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
     6093      else
     6094        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
     6095      fi
     6096      if test "$with_gnu_ld" = no; then
     6097        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
     6098        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
     6099
     6100        _LT_AC_TAGVAR(hardcode_direct, $1)=yes
     6101        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
     6102
     6103        # hardcode_minus_L: Not really in the search PATH,
     6104        # but as the default location of the library.
     6105        _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
     6106      fi
     6107      ;;
     6108
     6109    hpux11*)
     6110      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
     6111        case $host_cpu in
     6112        hppa*64*)
    54786113          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
     6114          ;;
     6115        ia64*)
     6116          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
    54796117          ;;
    54806118        *)
     
    54836121        esac
    54846122      else
    5485         case "$host_cpu" in
    5486         hppa*64*|ia64*)
    5487           _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
     6123        case $host_cpu in
     6124        hppa*64*)
     6125          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
     6126          ;;
     6127        ia64*)
     6128          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
    54886129          ;;
    54896130        *)
    5490           _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
     6131          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
    54916132          ;;
    54926133        esac
    54936134      fi
    54946135      if test "$with_gnu_ld" = no; then
    5495         case "$host_cpu" in
    5496         hppa*64*)
    5497           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
     6136        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
     6137        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
     6138
     6139        case $host_cpu in
     6140        hppa*64*|ia64*)
    54986141          _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
    5499           _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
    55006142          _LT_AC_TAGVAR(hardcode_direct, $1)=no
    55016143          _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
    55026144          ;;
    5503         ia64*)
    5504           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
    5505           _LT_AC_TAGVAR(hardcode_direct, $1)=no
    5506           _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
    5507 
    5508           # hardcode_minus_L: Not really in the search PATH,
    5509           # but as the default location of the library.
    5510           _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
    5511           ;;
    55126145        *)
    5513           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
    5514           _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
    55156146          _LT_AC_TAGVAR(hardcode_direct, $1)=yes
    55166147          _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
     
    55366167      ;;
    55376168
    5538     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
     6169    netbsd* | netbsdelf*-gnu)
    55396170      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
    55406171        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
     
    55566187
    55576188    openbsd*)
    5558       _LT_AC_TAGVAR(hardcode_direct, $1)=yes
    5559       _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
    5560       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
    5561         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
    5562         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
    5563         _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
     6189      if test -f /usr/libexec/ld.so; then
     6190        _LT_AC_TAGVAR(hardcode_direct, $1)=yes
     6191        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
     6192        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
     6193          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
     6194          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
     6195          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
     6196          _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
     6197        else
     6198          case $host_os in
     6199           openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
     6200             _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
     6201             _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
     6202             ;;
     6203           *)
     6204             _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
     6205             _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
     6206             ;;
     6207          esac
     6208        fi
    55646209      else
    5565        case $host_os in
    5566          openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
    5567            _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
    5568            _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
    5569            ;;
    5570          *)
    5571            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
    5572            _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
    5573            ;;
    5574        esac
     6210        _LT_AC_TAGVAR(ld_shlibs, $1)=no
    55756211      fi
    55766212      ;;
     
    56056241        _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'
    56066242        _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~
    5607         $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'
     6243        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
    56086244
    56096245        # Both c and cxx compiler support -rpath directly
     
    56136249      ;;
    56146250
    5615     sco3.2v5*)
    5616       _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
    5617       _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
    5618       _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
    5619       runpath_var=LD_RUN_PATH
    5620       hardcode_runpath_var=yes
    5621       ;;
    5622 
    56236251    solaris*)
    56246252      _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
    56256253      if test "$GCC" = yes; then
     6254        wlarc='${wl}'
    56266255        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
    56276256        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
    56286257          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
    56296258      else
     6259        wlarc=''
    56306260        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
    56316261        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
     
    56366266      case $host_os in
    56376267      solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
    5638       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
    5639         _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
     6268      *)
     6269        # The compiler driver will combine and reorder linker options,
     6270        # but understands `-z linker_flag'.  GCC discards it without `$wl',
     6271        # but is careful enough not to reorder.
     6272        # Supported since Solaris 2.6 (maybe 2.5.1?)
     6273        if test "$GCC" = yes; then
     6274          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
     6275        else
     6276          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
     6277        fi
     6278        ;;
    56406279      esac
    56416280      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
     
    56946333      ;;
    56956334
    5696     sysv4.2uw2*)
    5697       _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
    5698       _LT_AC_TAGVAR(hardcode_direct, $1)=yes
    5699       _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
    5700       _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
    5701       hardcode_runpath_var=yes
    5702       runpath_var=LD_RUN_PATH
    5703       ;;
    5704 
    5705    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[[78]]* | unixware7*)
    5706       _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text'
    5707       if test "$GCC" = yes; then
    5708         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
    5709       else
    5710         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
    5711       fi
    5712       runpath_var='LD_RUN_PATH'
    5713       _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
    5714       ;;
    5715 
    5716     sysv5*)
    5717       _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
    5718       # $CC -shared without GNU ld will not create a library from C++
    5719       # object files and a static libstdc++, better avoid it by now
    5720       _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
    5721       _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
    5722                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
    5723       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
     6335    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
     6336      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
     6337      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
    57246338      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
    57256339      runpath_var='LD_RUN_PATH'
     6340
     6341      if test "$GCC" = yes; then
     6342        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
     6343        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
     6344      else
     6345        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
     6346        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
     6347      fi
     6348      ;;
     6349
     6350    sysv5* | sco3.2v5* | sco5v6*)
     6351      # Note: We can NOT use -z defs as we might desire, because we do not
     6352      # link with -lc, and that would cause any symbols used from libc to
     6353      # always be unresolved, which means just about no library would
     6354      # ever link correctly.  If we're not using GNU ld we use -z text
     6355      # though, which does catch some bad symbols but isn't as heavy-handed
     6356      # as -z defs.
     6357      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
     6358      _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
     6359      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
     6360      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
     6361      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
     6362      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
     6363      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
     6364      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
     6365      runpath_var='LD_RUN_PATH'
     6366
     6367      if test "$GCC" = yes; then
     6368        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
     6369        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
     6370      else
     6371        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
     6372        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
     6373      fi
    57266374      ;;
    57276375
     
    57406388AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
    57416389test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
    5742 
    5743 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
    5744 if test "$GCC" = yes; then
    5745   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
    5746 fi
    57476390
    57486391#
     
    57656408      AC_MSG_CHECKING([whether -lc should be explicitly linked in])
    57666409      $rm conftest*
    5767       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
     6410      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
    57686411
    57696412      if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
     
    57736416        deplibs=
    57746417        wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
     6418        pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
    57756419        compiler_flags=-v
    57766420        linker_flags=-v
     
    58676511])
    58686512
     6513
     6514# Cheap backport of AS_EXECUTABLE_P and required macros
     6515# from Autoconf 2.59; we should not use $as_executable_p directly.
     6516
     6517# _AS_TEST_PREPARE
     6518# ----------------
     6519m4_ifndef([_AS_TEST_PREPARE],
     6520[m4_defun([_AS_TEST_PREPARE],
     6521[if test -x / >/dev/null 2>&1; then
     6522  as_executable_p='test -x'
     6523else
     6524  as_executable_p='test -f'
     6525fi
     6526])])# _AS_TEST_PREPARE
     6527
     6528# AS_EXECUTABLE_P
     6529# ---------------
     6530# Check whether a file is executable.
     6531m4_ifndef([AS_EXECUTABLE_P],
     6532[m4_defun([AS_EXECUTABLE_P],
     6533[AS_REQUIRE([_AS_TEST_PREPARE])dnl
     6534$as_executable_p $1[]dnl
     6535])])# AS_EXECUTABLE_P
     6536
    58696537# NOTE: This macro has been submitted for inclusion into   #
    58706538#  GNU Autoconf as AC_PROG_SED.  When it is available in   #
     
    58876555  for lt_ac_prog in sed gsed; do
    58886556    for ac_exec_ext in '' $ac_executable_extensions; do
    5889       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
     6557      if AS_EXECUTABLE_P(["$as_dir/$lt_ac_prog$ac_exec_ext"]); then
    58906558        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
    58916559      fi
     
    58936561  done
    58946562done
     6563IFS=$as_save_IFS
    58956564lt_ac_max=0
    58966565lt_ac_count=0
     
    58986567# along with /bin/sed that truncates output.
    58996568for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
    5900   test ! -f $lt_ac_sed && break
     6569  test ! -f $lt_ac_sed && continue
    59016570  cat /dev/null > conftest.in
    59026571  lt_ac_count=0
     
    59236592  done
    59246593done
     6594])
    59256595SED=$lt_cv_path_SED
    5926 ])
     6596AC_SUBST([SED])
    59276597AC_MSG_RESULT([$SED])
    59286598])
    59296599
    5930 # Copyright (C) 2002, 2003, 2005  Free Software Foundation, Inc.
     6600# Copyright (C) 2002, 2003, 2005, 2006  Free Software Foundation, Inc.
    59316601#
    59326602# This file is free software; the Free Software Foundation
     
    59386608# Automake X.Y traces this macro to ensure aclocal.m4 has been
    59396609# generated from the m4 files accompanying Automake X.Y.
    5940 AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
     6610# (This private macro should not be called outside this file.)
     6611AC_DEFUN([AM_AUTOMAKE_VERSION],
     6612[am__api_version='1.10'
     6613dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
     6614dnl require some minimum version.  Point them to the right macro.
     6615m4_if([$1], [1.10], [],
     6616      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
     6617])
     6618
     6619# _AM_AUTOCONF_VERSION(VERSION)
     6620# -----------------------------
     6621# aclocal traces this macro to find the Autoconf version.
     6622# This is a private macro too.  Using m4_define simplifies
     6623# the logic in aclocal, which can simply ignore this definition.
     6624m4_define([_AM_AUTOCONF_VERSION], [])
    59416625
    59426626# AM_SET_CURRENT_AUTOMAKE_VERSION
    59436627# -------------------------------
    5944 # Call AM_AUTOMAKE_VERSION so it can be traced.
     6628# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
    59456629# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
    59466630AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
    5947          [AM_AUTOMAKE_VERSION([1.9.5])])
     6631[AM_AUTOMAKE_VERSION([1.10])dnl
     6632_AM_AUTOCONF_VERSION(m4_PACKAGE_VERSION)])
    59486633
    59496634# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
     
    60026687# AM_CONDITIONAL                                            -*- Autoconf -*-
    60036688
    6004 # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005
     6689# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006
    60056690# Free Software Foundation, Inc.
    60066691#
     
    60096694# with or without modifications, as long as this notice is preserved.
    60106695
    6011 # serial 7
     6696# serial 8
    60126697
    60136698# AM_CONDITIONAL(NAME, SHELL-CONDITION)
     
    60186703 ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
    60196704        [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
    6020 AC_SUBST([$1_TRUE])
    6021 AC_SUBST([$1_FALSE])
     6705AC_SUBST([$1_TRUE])dnl
     6706AC_SUBST([$1_FALSE])dnl
     6707_AM_SUBST_NOTMAKE([$1_TRUE])dnl
     6708_AM_SUBST_NOTMAKE([$1_FALSE])dnl
    60226709if $2; then
    60236710  $1_TRUE=
     
    60336720fi])])
    60346721
    6035 
    6036 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
     6722# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
    60376723# Free Software Foundation, Inc.
    60386724#
     
    60416727# with or without modifications, as long as this notice is preserved.
    60426728
    6043 # serial 8
     6729# serial 9
    60446730
    60456731# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
     
    60696755       [$1], CXX,  [depcc="$CXX"  am_compiler_list=],
    60706756       [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
     6757       [$1], UPC,  [depcc="$UPC"  am_compiler_list=],
    60716758       [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
    60726759                   [depcc="$$1"   am_compiler_list=])
     
    61346821       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
    61356822         >/dev/null 2>conftest.err &&
     6823       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
    61366824       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
    61376825       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
     
    61866874fi
    61876875AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
    6188 AC_SUBST([AMDEPBACKSLASH])
     6876AC_SUBST([AMDEPBACKSLASH])dnl
     6877_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
    61896878])
    61906879
     
    62116900  # Grep'ing the first line is not enough: some people post-process
    62126901  # each Makefile.in and add a new line on top of each file to say so.
    6213   # So let's grep whole file.
    6214   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
     6902  # Grep'ing the whole file is not good either: AIX grep has a line
     6903  # limit of 2048, but all sed's we know have understand at least 4000.
     6904  if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
    62156905    dirpart=`AS_DIRNAME("$mf")`
    62166906  else
     
    62716961# Do all the work for Automake.                             -*- Autoconf -*-
    62726962
    6273 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
    6274 # Free Software Foundation, Inc.
     6963# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
     6964# 2005, 2006 Free Software Foundation, Inc.
    62756965#
    62766966# This file is free software; the Free Software Foundation
     
    62956985# release and drop the old call support.
    62966986AC_DEFUN([AM_INIT_AUTOMAKE],
    6297 [AC_PREREQ([2.58])dnl
     6987[AC_PREREQ([2.60])dnl
    62986988dnl Autoconf wants to disallow AM_ names.  We explicitly allow
    62996989dnl the ones we care about.
     
    63016991AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
    63026992AC_REQUIRE([AC_PROG_INSTALL])dnl
    6303 # test to see if srcdir already configured
    6304 if test "`cd $srcdir && pwd`" != "`pwd`" &&
    6305    test -f $srcdir/config.status; then
    6306   AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
     6993if test "`cd $srcdir && pwd`" != "`pwd`"; then
     6994  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
     6995  # is not polluted with repeated "-I."
     6996  AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
     6997  # test to see if srcdir already configured
     6998  if test -f $srcdir/config.status; then
     6999    AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
     7000  fi
    63077001fi
    63087002
     
    63247018 AC_SUBST([VERSION], [$2])],
    63257019[_AM_SET_OPTIONS([$1])dnl
     7020dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
     7021m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
     7022  [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
    63267023 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
    63277024 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
     
    63597056                  [define([AC_PROG_CXX],
    63607057                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
     7058AC_PROVIDE_IFELSE([AC_PROG_OBJC],
     7059                  [_AM_DEPENDENCIES(OBJC)],
     7060                  [define([AC_PROG_OBJC],
     7061                          defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
    63617062])
    63627063])
     
    63947095AC_DEFUN([AM_PROG_INSTALL_SH],
    63957096[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
    6396 install_sh=${install_sh-"$am_aux_dir/install-sh"}
     7097install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
    63977098AC_SUBST(install_sh)])
    63987099
     
    65017202# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
    65027203
    6503 # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005
     7204# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005
    65047205# Free Software Foundation, Inc.
    65057206#
     
    65087209# with or without modifications, as long as this notice is preserved.
    65097210
    6510 # serial 4
     7211# serial 5
    65117212
    65127213# AM_MISSING_PROG(NAME, PROGRAM)
     
    65247225AC_DEFUN([AM_MISSING_HAS_RUN],
    65257226[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
     7227AC_REQUIRE_AUX_FILE([missing])dnl
    65267228test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
    65277229# Use eval to expand $SHELL
     
    65347236])
    65357237
    6536 # Copyright (C) 2003, 2004, 2005  Free Software Foundation, Inc.
     7238# Copyright (C) 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
    65377239#
    65387240# This file is free software; the Free Software Foundation
     
    65427244# AM_PROG_MKDIR_P
    65437245# ---------------
    6544 # Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
    6545 #
    6546 # Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
    6547 # created by `make install' are always world readable, even if the
    6548 # installer happens to have an overly restrictive umask (e.g. 077).
    6549 # This was a mistake.  There are at least two reasons why we must not
    6550 # use `-m 0755':
    6551 #   - it causes special bits like SGID to be ignored,
    6552 #   - it may be too restrictive (some setups expect 775 directories).
    6553 #
    6554 # Do not use -m 0755 and let people choose whatever they expect by
    6555 # setting umask.
    6556 #
    6557 # We cannot accept any implementation of `mkdir' that recognizes `-p'.
    6558 # Some implementations (such as Solaris 8's) are not thread-safe: if a
    6559 # parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
    6560 # concurrently, both version can detect that a/ is missing, but only
    6561 # one can create it and the other will error out.  Consequently we
    6562 # restrict ourselves to GNU make (using the --version option ensures
    6563 # this.)
     7246# Check for `mkdir -p'.
    65647247AC_DEFUN([AM_PROG_MKDIR_P],
    6565 [if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
    6566   # We used to keeping the `.' as first argument, in order to
    6567   # allow $(mkdir_p) to be used without argument.  As in
    6568   #   $(mkdir_p) $(somedir)
    6569   # where $(somedir) is conditionally defined.  However this is wrong
    6570   # for two reasons:
    6571   #  1. if the package is installed by a user who cannot write `.'
    6572   #     make install will fail,
    6573   #  2. the above comment should most certainly read
    6574   #     $(mkdir_p) $(DESTDIR)$(somedir)
    6575   #     so it does not work when $(somedir) is undefined and
    6576   #     $(DESTDIR) is not.
    6577   #  To support the latter case, we have to write
    6578   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
    6579   #  so the `.' trick is pointless.
    6580   mkdir_p='mkdir -p --'
    6581 else
    6582   # On NextStep and OpenStep, the `mkdir' command does not
    6583   # recognize any option.  It will interpret all options as
    6584   # directories to create, and then abort because `.' already
    6585   # exists.
    6586   for d in ./-p ./--version;
    6587   do
    6588     test -d $d && rmdir $d
    6589   done
    6590   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
    6591   if test -f "$ac_aux_dir/mkinstalldirs"; then
    6592     mkdir_p='$(mkinstalldirs)'
    6593   else
    6594     mkdir_p='$(install_sh) -d'
    6595   fi
    6596 fi
    6597 AC_SUBST([mkdir_p])])
     7248[AC_PREREQ([2.60])dnl
     7249AC_REQUIRE([AC_PROG_MKDIR_P])dnl
     7250dnl Automake 1.8 to 1.9.6 used to define mkdir_p.  We now use MKDIR_P,
     7251dnl while keeping a definition of mkdir_p for backward compatibility.
     7252dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
     7253dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
     7254dnl Makefile.ins that do not define MKDIR_P, so we do our own
     7255dnl adjustment using top_builddir (which is defined more often than
     7256dnl MKDIR_P).
     7257AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
     7258case $mkdir_p in
     7259  [[\\/$]]* | ?:[[\\/]]*) ;;
     7260  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
     7261esac
     7262])
    65987263
    65997264# Helper functions for option handling.                     -*- Autoconf -*-
     
    67077372  AC_CHECK_TOOL([STRIP], [strip], :)
    67087373fi
    6709 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
     7374INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
    67107375AC_SUBST([INSTALL_STRIP_PROGRAM])])
     7376
     7377# Copyright (C) 2006  Free Software Foundation, Inc.
     7378#
     7379# This file is free software; the Free Software Foundation
     7380# gives unlimited permission to copy and/or distribute it,
     7381# with or without modifications, as long as this notice is preserved.
     7382
     7383# _AM_SUBST_NOTMAKE(VARIABLE)
     7384# ---------------------------
     7385# Prevent Automake from outputing VARIABLE = @VARIABLE@ in Makefile.in.
     7386# This macro is traced by Automake.
     7387AC_DEFUN([_AM_SUBST_NOTMAKE])
    67117388
    67127389# Check how to create a tarball.                            -*- Autoconf -*-
  • autogen.sh

    • Property mode changed from 100755 to 100644
    r1c87791 r3f5c713  
    11#!/bin/sh
    2 # autogen.sh - generates configure using the autotools
    3 # $Id: autogen.sh,v 1.1 2004/03/04 08:12:13 firechipmunk Exp $
    4 libtoolize --force --copy
    5 #libtoolize14  --force --copy
    6 aclocal-1.9 -I m4
    7 autoheader
    8 automake-1.9 --add-missing --copy --foreign
    9 autoconf
    10 rm -rf autom4te.cache
     2
     3if [ -z $ACLOCAL ]; then
     4        ACLOCAL=aclocal
     5fi
     6if [ -z $AUTOCONF ]; then
     7        AUTOCONF=autoconf
     8fi
     9if [ -z $AUTOHEADER ]; then
     10        AUTOHEADER=autoheader
     11fi
     12if [ -z $AUTORECONF ]; then
     13        AUTORECONF=autoreconf
     14fi
     15
     16#rm -rf autom4te.cache
     17$AUTORECONF -f -i
     18#touch stamp-h.in
     19
     20for x in providers/*; do
     21        if [ -e $x/autogen.sh ]; then
     22                echo Generating Config files in $x
     23                (cd $x; ./autogen.sh $*)
     24        fi
     25done
  • config.in

    r1c87791 r3f5c713  
    11/* config.in.  Generated from configure.ac by autoheader.  */
     2
     3/* Define to 1 if you have the <dlfcn.h> header file. */
     4#undef HAVE_DLFCN_H
     5
     6/* Define to 1 if you have the <inttypes.h> header file. */
     7#undef HAVE_INTTYPES_H
     8
     9/* Define to 1 if you have the <memory.h> header file. */
     10#undef HAVE_MEMORY_H
    211
    312/* Define to 1 if mod_status.h and the mod_Status hook are available */
    413#undef HAVE_MOD_STATUS_H
     14
     15/* Define to 1 if you have the <stdint.h> header file. */
     16#undef HAVE_STDINT_H
     17
     18/* Define to 1 if you have the <stdlib.h> header file. */
     19#undef HAVE_STDLIB_H
     20
     21/* Define to 1 if you have the <strings.h> header file. */
     22#undef HAVE_STRINGS_H
     23
     24/* Define to 1 if you have the <string.h> header file. */
     25#undef HAVE_STRING_H
     26
     27/* Define to 1 if you have the <sys/stat.h> header file. */
     28#undef HAVE_SYS_STAT_H
     29
     30/* Define to 1 if you have the <sys/types.h> header file. */
     31#undef HAVE_SYS_TYPES_H
     32
     33/* Define to 1 if you have the <unistd.h> header file. */
     34#undef HAVE_UNISTD_H
    535
    636/* Name of package */
     
    2252#undef PACKAGE_VERSION
    2353
     54/* Define to 1 if you have the ANSI C header files. */
     55#undef STDC_HEADERS
     56
    2457/* Version number of package */
    2558#undef VERSION
  • config/compile

    r1c87791 r3f5c713  
    22# Wrapper for compilers which do not understand `-c -o'.
    33
    4 scriptversion=2005-02-03.08
     4scriptversion=2005-05-14.22
    55
    66# Copyright (C) 1999, 2000, 2003, 2004, 2005 Free Software Foundation, Inc.
     
    1919# You should have received a copy of the GNU General Public License
    2020# along with this program; if not, write to the Free Software
    21 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
     21# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
    2222
    2323# As a special exception to the GNU General Public License, if you
  • config/config.guess

    r1c87791 r3f5c713  
    22# Attempt to guess a canonical system name.
    33#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
    4 #   2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
    5 
    6 timestamp='2005-03-24'
     4#   2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation,
     5#   Inc.
     6
     7timestamp='2007-03-06'
    78
    89# This file is free software; you can redistribute it and/or modify it
     
    1819# You should have received a copy of the GNU General Public License
    1920# along with this program; if not, write to the Free Software
    20 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
     21# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
     22# 02110-1301, USA.
    2123#
    2224# As a special exception to the GNU General Public License, if you
     
    2426# configuration script generated by Autoconf, you may include it under
    2527# the same distribution terms that you use for the rest of that program.
     28
    2629
    2730# Originally written by Per Bothner <per@bothner.com>.
     
    6770  case $1 in
    6871    --time-stamp | --time* | -t )
    69        echo "$timestamp" ; exit 0 ;;
     72       echo "$timestamp" ; exit ;;
    7073    --version | -v )
    71        echo "$version" ; exit 0 ;;
     74       echo "$version" ; exit ;;
    7275    --help | --h* | -h )
    73        echo "$usage"; exit 0 ;;
     76       echo "$usage"; exit ;;
    7477    -- )     # Stop option processing
    7578       shift; break ;;
     
    105108trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
    106109: ${TMPDIR=/tmp} ;
    107  { tmp=`(umask 077 && mktemp -d -q "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
     110 { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
    108111 { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
    109112 { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
     
    124127 ,,*)   CC_FOR_BUILD=$CC ;;
    125128 ,*,*)  CC_FOR_BUILD=$HOST_CC ;;
    126 esac ;'
     129esac ; set_cc_for_build= ;'
    127130
    128131# This is needed to find uname on a Pyramid OSx when run in the BSD universe.
     
    159162            sh3el) machine=shl-unknown ;;
    160163            sh3eb) machine=sh-unknown ;;
     164            sh5el) machine=sh5le-unknown ;;
    161165            *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
    162166        esac
     
    197201        # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
    198202        echo "${machine}-${os}${release}"
    199         exit 0 ;;
    200     amd64:OpenBSD:*:*)
    201         echo x86_64-unknown-openbsd${UNAME_RELEASE}
    202         exit 0 ;;
    203     amiga:OpenBSD:*:*)
    204         echo m68k-unknown-openbsd${UNAME_RELEASE}
    205         exit 0 ;;
    206     cats:OpenBSD:*:*)
    207         echo arm-unknown-openbsd${UNAME_RELEASE}
    208         exit 0 ;;
    209     hp300:OpenBSD:*:*)
    210         echo m68k-unknown-openbsd${UNAME_RELEASE}
    211         exit 0 ;;
    212     luna88k:OpenBSD:*:*)
    213         echo m88k-unknown-openbsd${UNAME_RELEASE}
    214         exit 0 ;;
    215     mac68k:OpenBSD:*:*)
    216         echo m68k-unknown-openbsd${UNAME_RELEASE}
    217         exit 0 ;;
    218     macppc:OpenBSD:*:*)
    219         echo powerpc-unknown-openbsd${UNAME_RELEASE}
    220         exit 0 ;;
    221     mvme68k:OpenBSD:*:*)
    222         echo m68k-unknown-openbsd${UNAME_RELEASE}
    223         exit 0 ;;
    224     mvme88k:OpenBSD:*:*)
    225         echo m88k-unknown-openbsd${UNAME_RELEASE}
    226         exit 0 ;;
    227     mvmeppc:OpenBSD:*:*)
    228         echo powerpc-unknown-openbsd${UNAME_RELEASE}
    229         exit 0 ;;
    230     sgi:OpenBSD:*:*)
    231         echo mips64-unknown-openbsd${UNAME_RELEASE}
    232         exit 0 ;;
    233     sun3:OpenBSD:*:*)
    234         echo m68k-unknown-openbsd${UNAME_RELEASE}
    235         exit 0 ;;
     203        exit ;;
    236204    *:OpenBSD:*:*)
    237         echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE}
    238         exit 0 ;;
     205        UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
     206        echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
     207        exit ;;
    239208    *:ekkoBSD:*:*)
    240209        echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
    241         exit 0 ;;
     210        exit ;;
     211    *:SolidBSD:*:*)
     212        echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
     213        exit ;;
    242214    macppc:MirBSD:*:*)
    243         echo powerppc-unknown-mirbsd${UNAME_RELEASE}
    244         exit 0 ;;
     215        echo powerpc-unknown-mirbsd${UNAME_RELEASE}
     216        exit ;;
    245217    *:MirBSD:*:*)
    246218        echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
    247         exit 0 ;;
     219        exit ;;
    248220    alpha:OSF1:*:*)
    249221        case $UNAME_RELEASE in
     
    298270        # 1.2 uses "1.2" for uname -r.
    299271        echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
    300         exit 0 ;;
     272        exit ;;
    301273    Alpha\ *:Windows_NT*:*)
    302274        # How do we know it's Interix rather than the generic POSIX subsystem?
     
    304276        # of the specific Alpha model?
    305277        echo alpha-pc-interix
    306         exit 0 ;;
     278        exit ;;
    307279    21064:Windows_NT:50:3)
    308280        echo alpha-dec-winnt3.5
    309         exit 0 ;;
     281        exit ;;
    310282    Amiga*:UNIX_System_V:4.0:*)
    311283        echo m68k-unknown-sysv4
    312         exit 0;;
     284        exit ;;
    313285    *:[Aa]miga[Oo][Ss]:*:*)
    314286        echo ${UNAME_MACHINE}-unknown-amigaos
    315         exit 0 ;;
     287        exit ;;
    316288    *:[Mm]orph[Oo][Ss]:*:*)
    317289        echo ${UNAME_MACHINE}-unknown-morphos
    318         exit 0 ;;
     290        exit ;;
    319291    *:OS/390:*:*)
    320292        echo i370-ibm-openedition
    321         exit 0 ;;
     293        exit ;;
    322294    *:z/VM:*:*)
    323295        echo s390-ibm-zvmoe
    324         exit 0 ;;
     296        exit ;;
    325297    *:OS400:*:*)
    326298        echo powerpc-ibm-os400
    327         exit 0 ;;
     299        exit ;;
    328300    arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
    329301        echo arm-acorn-riscix${UNAME_RELEASE}
    330         exit 0;;
     302        exit ;;
     303    arm:riscos:*:*|arm:RISCOS:*:*)
     304        echo arm-unknown-riscos
     305        exit ;;
    331306    SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
    332307        echo hppa1.1-hitachi-hiuxmpp
    333         exit 0;;
     308        exit ;;
    334309    Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
    335310        # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
     
    339314                echo pyramid-pyramid-bsd
    340315        fi
    341         exit 0 ;;
     316        exit ;;
    342317    NILE*:*:*:dcosx)
    343318        echo pyramid-pyramid-svr4
    344         exit 0 ;;
     319        exit ;;
    345320    DRS?6000:unix:4.0:6*)
    346321        echo sparc-icl-nx6
    347         exit 0 ;;
     322        exit ;;
    348323    DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
    349324        case `/usr/bin/uname -p` in
    350             sparc) echo sparc-icl-nx7 && exit 0 ;;
     325            sparc) echo sparc-icl-nx7; exit ;;
    351326        esac ;;
    352327    sun4H:SunOS:5.*:*)
    353328        echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
    354         exit 0 ;;
     329        exit ;;
    355330    sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
    356331        echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
    357         exit 0 ;;
     332        exit ;;
    358333    i86pc:SunOS:5.*:*)
    359334        echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
    360         exit 0 ;;
     335        exit ;;
    361336    sun4*:SunOS:6*:*)
    362337        # According to config.sub, this is the proper way to canonicalize
     
    364339        # it's likely to be more like Solaris than SunOS4.
    365340        echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
    366         exit 0 ;;
     341        exit ;;
    367342    sun4*:SunOS:*:*)
    368343        case "`/usr/bin/arch -k`" in
     
    373348        # Japanese Language versions have a version number like `4.1.3-JL'.
    374349        echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
    375         exit 0 ;;
     350        exit ;;
    376351    sun3*:SunOS:*:*)
    377352        echo m68k-sun-sunos${UNAME_RELEASE}
    378         exit 0 ;;
     353        exit ;;
    379354    sun*:*:4.2BSD:*)
    380355        UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
     
    388363                ;;
    389364        esac
    390         exit 0 ;;
     365        exit ;;
    391366    aushp:SunOS:*:*)
    392367        echo sparc-auspex-sunos${UNAME_RELEASE}
    393         exit 0 ;;
     368        exit ;;
    394369    # The situation for MiNT is a little confusing.  The machine name
    395370    # can be virtually everything (everything which is not
     
    402377    atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
    403378        echo m68k-atari-mint${UNAME_RELEASE}
    404         exit 0 ;;
     379        exit ;;
    405380    atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
    406381        echo m68k-atari-mint${UNAME_RELEASE}
    407         exit 0 ;;
     382        exit ;;
    408383    *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
    409384        echo m68k-atari-mint${UNAME_RELEASE}
    410         exit 0 ;;
     385        exit ;;
    411386    milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
    412387        echo m68k-milan-mint${UNAME_RELEASE}
    413         exit 0 ;;
     388        exit ;;
    414389    hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
    415390        echo m68k-hades-mint${UNAME_RELEASE}
    416         exit 0 ;;
     391        exit ;;
    417392    *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
    418393        echo m68k-unknown-mint${UNAME_RELEASE}
    419         exit 0 ;;
     394        exit ;;
    420395    m68k:machten:*:*)
    421396        echo m68k-apple-machten${UNAME_RELEASE}
    422         exit 0 ;;
     397        exit ;;
    423398    powerpc:machten:*:*)
    424399        echo powerpc-apple-machten${UNAME_RELEASE}
    425         exit 0 ;;
     400        exit ;;
    426401    RISC*:Mach:*:*)
    427402        echo mips-dec-mach_bsd4.3
    428         exit 0 ;;
     403        exit ;;
    429404    RISC*:ULTRIX:*:*)
    430405        echo mips-dec-ultrix${UNAME_RELEASE}
    431         exit 0 ;;
     406        exit ;;
    432407    VAX*:ULTRIX*:*:*)
    433408        echo vax-dec-ultrix${UNAME_RELEASE}
    434         exit 0 ;;
     409        exit ;;
    435410    2020:CLIX:*:* | 2430:CLIX:*:*)
    436411        echo clipper-intergraph-clix${UNAME_RELEASE}
    437         exit 0 ;;
     412        exit ;;
    438413    mips:*:*:UMIPS | mips:*:*:RISCos)
    439414        eval $set_cc_for_build
     
    459434        }
    460435EOF
    461         $CC_FOR_BUILD -o $dummy $dummy.c \
    462           && $dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \
    463           && exit 0
     436        $CC_FOR_BUILD -o $dummy $dummy.c &&
     437          dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` &&
     438          SYSTEM_NAME=`$dummy $dummyarg` &&
     439            { echo "$SYSTEM_NAME"; exit; }
    464440        echo mips-mips-riscos${UNAME_RELEASE}
    465         exit 0 ;;
     441        exit ;;
    466442    Motorola:PowerMAX_OS:*:*)
    467443        echo powerpc-motorola-powermax
    468         exit 0 ;;
     444        exit ;;
    469445    Motorola:*:4.3:PL8-*)
    470446        echo powerpc-harris-powermax
    471         exit 0 ;;
     447        exit ;;
    472448    Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
    473449        echo powerpc-harris-powermax
    474         exit 0 ;;
     450        exit ;;
    475451    Night_Hawk:Power_UNIX:*:*)
    476452        echo powerpc-harris-powerunix
    477         exit 0 ;;
     453        exit ;;
    478454    m88k:CX/UX:7*:*)
    479455        echo m88k-harris-cxux7
    480         exit 0 ;;
     456        exit ;;
    481457    m88k:*:4*:R4*)
    482458        echo m88k-motorola-sysv4
    483         exit 0 ;;
     459        exit ;;
    484460    m88k:*:3*:R3*)
    485461        echo m88k-motorola-sysv3
    486         exit 0 ;;
     462        exit ;;
    487463    AViiON:dgux:*:*)
    488464        # DG/UX returns AViiON for all architectures
     
    500476            echo i586-dg-dgux${UNAME_RELEASE}
    501477        fi
    502         exit 0 ;;
     478        exit ;;
    503479    M88*:DolphinOS:*:*) # DolphinOS (SVR3)
    504480        echo m88k-dolphin-sysv3
    505         exit 0 ;;
     481        exit ;;
    506482    M88*:*:R3*:*)
    507483        # Delta 88k system running SVR3
    508484        echo m88k-motorola-sysv3
    509         exit 0 ;;
     485        exit ;;
    510486    XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
    511487        echo m88k-tektronix-sysv3
    512         exit 0 ;;
     488        exit ;;
    513489    Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
    514490        echo m68k-tektronix-bsd
    515         exit 0 ;;
     491        exit ;;
    516492    *:IRIX*:*:*)
    517493        echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
    518         exit 0 ;;
     494        exit ;;
    519495    ????????:AIX?:[12].1:2)   # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
    520         echo romp-ibm-aix      # uname -m gives an 8 hex-code CPU id
    521         exit 0 ;;              # Note that: echo "'`uname -s`'" gives 'AIX '
     496        echo romp-ibm-aix     # uname -m gives an 8 hex-code CPU id
     497        exit ;;               # Note that: echo "'`uname -s`'" gives 'AIX '
    522498    i*86:AIX:*:*)
    523499        echo i386-ibm-aix
    524         exit 0 ;;
     500        exit ;;
    525501    ia64:AIX:*:*)
    526502        if [ -x /usr/bin/oslevel ] ; then
     
    530506        fi
    531507        echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
    532         exit 0 ;;
     508        exit ;;
    533509    *:AIX:2:3)
    534510        if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
     
    545521                        }
    546522EOF
    547                 $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
    548                 echo rs6000-ibm-aix3.2.5
     523                if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy`
     524                then
     525                        echo "$SYSTEM_NAME"
     526                else
     527                        echo rs6000-ibm-aix3.2.5
     528                fi
    549529        elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
    550530                echo rs6000-ibm-aix3.2.4
     
    552532                echo rs6000-ibm-aix3.2
    553533        fi
    554         exit 0 ;;
     534        exit ;;
    555535    *:AIX:*:[45])
    556536        IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
     
    566546        fi
    567547        echo ${IBM_ARCH}-ibm-aix${IBM_REV}
    568         exit 0 ;;
     548        exit ;;
    569549    *:AIX:*:*)
    570550        echo rs6000-ibm-aix
    571         exit 0 ;;
     551        exit ;;
    572552    ibmrt:4.4BSD:*|romp-ibm:BSD:*)
    573553        echo romp-ibm-bsd4.4
    574         exit 0 ;;
     554        exit ;;
    575555    ibmrt:*BSD:*|romp-ibm:BSD:*)            # covers RT/PC BSD and
    576556        echo romp-ibm-bsd${UNAME_RELEASE}   # 4.3 with uname added to
    577         exit 0 ;;                           # report: romp-ibm BSD 4.3
     557        exit ;;                             # report: romp-ibm BSD 4.3
    578558    *:BOSX:*:*)
    579559        echo rs6000-bull-bosx
    580         exit 0 ;;
     560        exit ;;
    581561    DPX/2?00:B.O.S.:*:*)
    582562        echo m68k-bull-sysv3
    583         exit 0 ;;
     563        exit ;;
    584564    9000/[34]??:4.3bsd:1.*:*)
    585565        echo m68k-hp-bsd
    586         exit 0 ;;
     566        exit ;;
    587567    hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
    588568        echo m68k-hp-bsd4.4
    589         exit 0 ;;
     569        exit ;;
    590570    9000/[34678]??:HP-UX:*:*)
    591571        HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
     
    649629        if [ ${HP_ARCH} = "hppa2.0w" ]
    650630        then
    651             # avoid double evaluation of $set_cc_for_build
    652             test -n "$CC_FOR_BUILD" || eval $set_cc_for_build
    653             if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E -) | grep __LP64__ >/dev/null
     631            eval $set_cc_for_build
     632
     633            # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
     634            # 32-bit code.  hppa64-hp-hpux* has the same kernel and a compiler
     635            # generating 64-bit code.  GNU and HP use different nomenclature:
     636            #
     637            # $ CC_FOR_BUILD=cc ./config.guess
     638            # => hppa2.0w-hp-hpux11.23
     639            # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
     640            # => hppa64-hp-hpux11.23
     641
     642            if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
     643                grep __LP64__ >/dev/null
    654644            then
    655645                HP_ARCH="hppa2.0w"
     
    659649        fi
    660650        echo ${HP_ARCH}-hp-hpux${HPUX_REV}
    661         exit 0 ;;
     651        exit ;;
    662652    ia64:HP-UX:*:*)
    663653        HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
    664654        echo ia64-hp-hpux${HPUX_REV}
    665         exit 0 ;;
     655        exit ;;
    666656    3050*:HI-UX:*:*)
    667657        eval $set_cc_for_build
     
    691681        }
    692682EOF
    693         $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
     683        $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&
     684                { echo "$SYSTEM_NAME"; exit; }
    694685        echo unknown-hitachi-hiuxwe2
    695         exit 0 ;;
     686        exit ;;
    696687    9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
    697688        echo hppa1.1-hp-bsd
    698         exit 0 ;;
     689        exit ;;
    699690    9000/8??:4.3bsd:*:*)
    700691        echo hppa1.0-hp-bsd
    701         exit 0 ;;
     692        exit ;;
    702693    *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
    703694        echo hppa1.0-hp-mpeix
    704         exit 0 ;;
     695        exit ;;
    705696    hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
    706697        echo hppa1.1-hp-osf
    707         exit 0 ;;
     698        exit ;;
    708699    hp8??:OSF1:*:*)
    709700        echo hppa1.0-hp-osf
    710         exit 0 ;;
     701        exit ;;
    711702    i*86:OSF1:*:*)
    712703        if [ -x /usr/sbin/sysversion ] ; then
     
    715706            echo ${UNAME_MACHINE}-unknown-osf1
    716707        fi
    717         exit 0 ;;
     708        exit ;;
    718709    parisc*:Lites*:*:*)
    719710        echo hppa1.1-hp-lites
    720         exit 0 ;;
     711        exit ;;
    721712    C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
    722713        echo c1-convex-bsd
    723         exit 0 ;;
     714        exit ;;
    724715    C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
    725716        if getsysinfo -f scalar_acc
     
    727718        else echo c2-convex-bsd
    728719        fi
    729         exit 0 ;;
     720        exit ;;
    730721    C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
    731722        echo c34-convex-bsd
    732         exit 0 ;;
     723        exit ;;
    733724    C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
    734725        echo c38-convex-bsd
    735         exit 0 ;;
     726        exit ;;
    736727    C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
    737728        echo c4-convex-bsd
    738         exit 0 ;;
     729        exit ;;
    739730    CRAY*Y-MP:*:*:*)
    740731        echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
    741         exit 0 ;;
     732        exit ;;
    742733    CRAY*[A-Z]90:*:*:*)
    743734        echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
     
    745736              -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
    746737              -e 's/\.[^.]*$/.X/'
    747         exit 0 ;;
     738        exit ;;
    748739    CRAY*TS:*:*:*)
    749740        echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
    750         exit 0 ;;
     741        exit ;;
    751742    CRAY*T3E:*:*:*)
    752743        echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
    753         exit 0 ;;
     744        exit ;;
    754745    CRAY*SV1:*:*:*)
    755746        echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
    756         exit 0 ;;
     747        exit ;;
    757748    *:UNICOS/mp:*:*)
    758749        echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
    759         exit 0 ;;
     750        exit ;;
    760751    F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
    761752        FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
     
    763754        FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
    764755        echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
    765         exit 0 ;;
     756        exit ;;
    766757    5000:UNIX_System_V:4.*:*)
    767758        FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
    768759        FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
    769760        echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
    770         exit 0 ;;
     761        exit ;;
    771762    i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
    772763        echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
    773         exit 0 ;;
     764        exit ;;
    774765    sparc*:BSD/OS:*:*)
    775766        echo sparc-unknown-bsdi${UNAME_RELEASE}
    776         exit 0 ;;
     767        exit ;;
    777768    *:BSD/OS:*:*)
    778769        echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
    779         exit 0 ;;
     770        exit ;;
    780771    *:FreeBSD:*:*)
    781         echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
    782         exit 0 ;;
     772        case ${UNAME_MACHINE} in
     773            pc98)
     774                echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
     775            amd64)
     776                echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
     777            *)
     778                echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
     779        esac
     780        exit ;;
    783781    i*:CYGWIN*:*)
    784782        echo ${UNAME_MACHINE}-pc-cygwin
    785         exit 0 ;;
    786     i*:MINGW*:*)
     783        exit ;;
     784    *:MINGW*:*)
    787785        echo ${UNAME_MACHINE}-pc-mingw32
    788         exit 0 ;;
     786        exit ;;
     787    i*:windows32*:*)
     788        # uname -m includes "-pc" on this system.
     789        echo ${UNAME_MACHINE}-mingw32
     790        exit ;;
    789791    i*:PW*:*)
    790792        echo ${UNAME_MACHINE}-pc-pw32
    791         exit 0 ;;
    792     x86:Interix*:[34]*)
    793         echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//'
    794         exit 0 ;;
     793        exit ;;
     794    *:Interix*:[3456]*)
     795        case ${UNAME_MACHINE} in
     796            x86)
     797                echo i586-pc-interix${UNAME_RELEASE}
     798                exit ;;
     799            EM64T | authenticamd)
     800                echo x86_64-unknown-interix${UNAME_RELEASE}
     801                exit ;;
     802        esac ;;
    795803    [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
    796804        echo i${UNAME_MACHINE}-pc-mks
    797         exit 0 ;;
     805        exit ;;
    798806    i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
    799807        # How do we know it's Interix rather than the generic POSIX subsystem?
     
    801809        # UNAME_MACHINE based on the output of uname instead of i386?
    802810        echo i586-pc-interix
    803         exit 0 ;;
     811        exit ;;
    804812    i*:UWIN*:*)
    805813        echo ${UNAME_MACHINE}-pc-uwin
    806         exit 0 ;;
    807     amd64:CYGWIN*:*:*)
     814        exit ;;
     815    amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
    808816        echo x86_64-unknown-cygwin
    809         exit 0 ;;
     817        exit ;;
    810818    p*:CYGWIN*:*)
    811819        echo powerpcle-unknown-cygwin
    812         exit 0 ;;
     820        exit ;;
    813821    prep*:SunOS:5.*:*)
    814822        echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
    815         exit 0 ;;
     823        exit ;;
    816824    *:GNU:*:*)
    817825        # the GNU system
    818826        echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
    819         exit 0 ;;
     827        exit ;;
    820828    *:GNU/*:*:*)
    821829        # other systems with GNU libc and userland
    822830        echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
    823         exit 0 ;;
     831        exit ;;
    824832    i*86:Minix:*:*)
    825833        echo ${UNAME_MACHINE}-pc-minix
    826         exit 0 ;;
     834        exit ;;
    827835    arm*:Linux:*:*)
    828836        echo ${UNAME_MACHINE}-unknown-linux-gnu
    829         exit 0 ;;
     837        exit ;;
     838    avr32*:Linux:*:*)
     839        echo ${UNAME_MACHINE}-unknown-linux-gnu
     840        exit ;;
    830841    cris:Linux:*:*)
    831842        echo cris-axis-linux-gnu
    832         exit 0 ;;
     843        exit ;;
    833844    crisv32:Linux:*:*)
    834845        echo crisv32-axis-linux-gnu
    835         exit 0 ;;
     846        exit ;;
    836847    frv:Linux:*:*)
    837848        echo frv-unknown-linux-gnu
    838         exit 0 ;;
     849        exit ;;
    839850    ia64:Linux:*:*)
    840851        echo ${UNAME_MACHINE}-unknown-linux-gnu
    841         exit 0 ;;
     852        exit ;;
    842853    m32r*:Linux:*:*)
    843854        echo ${UNAME_MACHINE}-unknown-linux-gnu
    844         exit 0 ;;
     855        exit ;;
    845856    m68*:Linux:*:*)
    846857        echo ${UNAME_MACHINE}-unknown-linux-gnu
    847         exit 0 ;;
     858        exit ;;
    848859    mips:Linux:*:*)
    849860        eval $set_cc_for_build
     
    862873        #endif
    863874EOF
    864         eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
    865         test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
     875        eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
     876            /^CPU/{
     877                s: ::g
     878                p
     879            }'`"
     880        test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
    866881        ;;
    867882    mips64:Linux:*:*)
     
    881896        #endif
    882897EOF
    883         eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
    884         test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
     898        eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
     899            /^CPU/{
     900                s: ::g
     901                p
     902            }'`"
     903        test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
    885904        ;;
     905    or32:Linux:*:*)
     906        echo or32-unknown-linux-gnu
     907        exit ;;
    886908    ppc:Linux:*:*)
    887909        echo powerpc-unknown-linux-gnu
    888         exit 0 ;;
     910        exit ;;
    889911    ppc64:Linux:*:*)
    890912        echo powerpc64-unknown-linux-gnu
    891         exit 0 ;;
     913        exit ;;
    892914    alpha:Linux:*:*)
    893915        case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
     
    903925        if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
    904926        echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
    905         exit 0 ;;
     927        exit ;;
    906928    parisc:Linux:*:* | hppa:Linux:*:*)
    907929        # Look for CPU level
     
    911933          *)    echo hppa-unknown-linux-gnu ;;
    912934        esac
    913         exit 0 ;;
     935        exit ;;
    914936    parisc64:Linux:*:* | hppa64:Linux:*:*)
    915937        echo hppa64-unknown-linux-gnu
    916         exit 0 ;;
     938        exit ;;
    917939    s390:Linux:*:* | s390x:Linux:*:*)
    918940        echo ${UNAME_MACHINE}-ibm-linux
    919         exit 0 ;;
     941        exit ;;
    920942    sh64*:Linux:*:*)
    921943        echo ${UNAME_MACHINE}-unknown-linux-gnu
    922         exit 0 ;;
     944        exit ;;
    923945    sh*:Linux:*:*)
    924946        echo ${UNAME_MACHINE}-unknown-linux-gnu
    925         exit 0 ;;
     947        exit ;;
    926948    sparc:Linux:*:* | sparc64:Linux:*:*)
    927949        echo ${UNAME_MACHINE}-unknown-linux-gnu
    928         exit 0 ;;
     950        exit ;;
     951    vax:Linux:*:*)
     952        echo ${UNAME_MACHINE}-dec-linux-gnu
     953        exit ;;
    929954    x86_64:Linux:*:*)
    930955        echo x86_64-unknown-linux-gnu
    931         exit 0 ;;
     956        exit ;;
     957    xtensa:Linux:*:*)
     958        echo xtensa-unknown-linux-gnu
     959        exit ;;
    932960    i*86:Linux:*:*)
    933961        # The BFD linker knows what the default object file format is, so
     
    947975          a.out-i386-linux)
    948976                echo "${UNAME_MACHINE}-pc-linux-gnuaout"
    949                 exit 0 ;;
     977                exit ;;
    950978          coff-i386)
    951979                echo "${UNAME_MACHINE}-pc-linux-gnucoff"
    952                 exit 0 ;;
     980                exit ;;
    953981          "")
    954982                # Either a pre-BFD a.out linker (linux-gnuoldld) or
    955983                # one that does not give us useful --help.
    956984                echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
    957                 exit 0 ;;
     985                exit ;;
    958986        esac
    959987        # Determine whether the default compiler is a.out or elf
     
    9721000        # endif
    9731001        #else
    974         #ifdef __INTEL_COMPILER
     1002        #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
    9751003        LIBC=gnu
    9761004        #else
     
    9821010        #endif
    9831011EOF
    984         eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
    985         test x"${LIBC}" != x && echo "${UNAME_MACHINE}-pc-linux-${LIBC}" && exit 0
    986         test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0
     1012        eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
     1013            /^LIBC/{
     1014                s: ::g
     1015                p
     1016            }'`"
     1017