IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 2132


Ignore:
Timestamp:
Oct 14, 2004, 12:33:28 PM (22 years ago)
Author:
gusciora
Message:

Tests for the SubtractBias module.

Location:
trunk/psModules
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/Makefile.in

    r2125 r2132  
    1 # Makefile.in generated by automake 1.8.3 from Makefile.am.
     1# Makefile.in generated by automake 1.6.3 from Makefile.am.
    22# @configure_input@
    33
    4 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
    5 # 2003, 2004  Free Software Foundation, Inc.
     4# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002
     5# 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@
     16SHELL = @SHELL@
     17
    1618srcdir = @srcdir@
    1719top_srcdir = @top_srcdir@
    1820VPATH = @srcdir@
     21prefix = @prefix@
     22exec_prefix = @exec_prefix@
     23
     24bindir = @bindir@
     25sbindir = @sbindir@
     26libexecdir = @libexecdir@
     27datadir = @datadir@
     28sysconfdir = @sysconfdir@
     29sharedstatedir = @sharedstatedir@
     30localstatedir = @localstatedir@
     31libdir = @libdir@
     32infodir = @infodir@
     33mandir = @mandir@
     34includedir = @includedir@
     35oldincludedir = /usr/include
    1936pkgdatadir = $(datadir)/@PACKAGE@
    2037pkglibdir = $(libdir)/@PACKAGE@
    2138pkgincludedir = $(includedir)/@PACKAGE@
    2239top_builddir = .
     40
     41ACLOCAL = @ACLOCAL@
     42AUTOCONF = @AUTOCONF@
     43AUTOMAKE = @AUTOMAKE@
     44AUTOHEADER = @AUTOHEADER@
     45
    2346am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
    2447INSTALL = @INSTALL@
     48INSTALL_PROGRAM = @INSTALL_PROGRAM@
     49INSTALL_DATA = @INSTALL_DATA@
    2550install_sh_DATA = $(install_sh) -c -m 644
    2651install_sh_PROGRAM = $(install_sh) -c
    2752install_sh_SCRIPT = $(install_sh) -c
     53INSTALL_SCRIPT = @INSTALL_SCRIPT@
    2854INSTALL_HEADER = $(INSTALL_DATA)
    29 transform = $(program_transform_name)
     55transform = @program_transform_name@
    3056NORMAL_INSTALL = :
    3157PRE_INSTALL = :
     
    3460PRE_UNINSTALL = :
    3561POST_UNINSTALL = :
     62host_alias = @host_alias@
    3663host_triplet = @host@
    37 DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \
    38         $(srcdir)/Makefile.in $(top_srcdir)/configure AUTHORS COPYING \
    39         ChangeLog INSTALL NEWS TODO config.guess config.sub depcomp \
    40         install-sh ltmain.sh missing mkinstalldirs
     64
     65EXEEXT = @EXEEXT@
     66OBJEXT = @OBJEXT@
     67PATH_SEPARATOR = @PATH_SEPARATOR@
     68AMTAR = @AMTAR@
     69AS = @AS@
     70AWK = @AWK@
     71CC = @CC@
     72CFLAGS = @CFLAGS@
     73DEPDIR = @DEPDIR@
     74DLLTOOL = @DLLTOOL@
     75ECHO = @ECHO@
     76GSL_CONFIG = @GSL_CONFIG@
     77INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
     78LIBTOOL = @LIBTOOL@
     79LN_S = @LN_S@
     80OBJDUMP = @OBJDUMP@
     81PACKAGE = @PACKAGE@
     82RANLIB = @RANLIB@
     83STRIP = @STRIP@
     84VERSION = @VERSION@
     85am__include = @am__include@
     86am__quote = @am__quote@
     87install_sh = @install_sh@
     88AUTOMAKE_OPTIONS = foreign 1.4
     89
     90SUBDIRS = src test
    4191subdir = .
    4292ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
    43 am__aclocal_m4_deps = $(top_srcdir)/configure.in
    44 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
    45         $(ACLOCAL_M4)
    46 am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
    47  configure.lineno configure.status.lineno
    4893mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
    4994CONFIG_HEADER = $(top_builddir)/src/config.h
    5095CONFIG_CLEAN_FILES =
    51 SOURCES =
    5296DIST_SOURCES =
    53 RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
    54         html-recursive info-recursive install-data-recursive \
    55         install-exec-recursive install-info-recursive \
    56         install-recursive installcheck-recursive installdirs-recursive \
    57         pdf-recursive ps-recursive uninstall-info-recursive \
    58         uninstall-recursive
    59 ETAGS = etags
    60 CTAGS = ctags
     97
     98RECURSIVE_TARGETS = info-recursive dvi-recursive install-info-recursive \
     99        uninstall-info-recursive all-recursive install-data-recursive \
     100        install-exec-recursive installdirs-recursive install-recursive \
     101        uninstall-recursive check-recursive installcheck-recursive
     102DIST_COMMON = README AUTHORS COPYING ChangeLog INSTALL Makefile.am \
     103        Makefile.in NEWS TODO aclocal.m4 config.guess config.sub \
     104        configure configure.in depcomp install-sh ltmain.sh missing \
     105        mkinstalldirs
    61106DIST_SUBDIRS = $(SUBDIRS)
    62 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
    63 distdir = $(PACKAGE)-$(VERSION)
    64 top_distdir = $(distdir)
    65 am__remove_distdir = \
    66   { test ! -d $(distdir) \
    67     || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \
    68          && rm -fr $(distdir); }; }
    69 DIST_ARCHIVES = $(distdir).tar.gz
    70 GZIP_ENV = --best
    71 distuninstallcheck_listfiles = find . -type f -print
    72 distcleancheck_listfiles = find . -type f -print
    73 ACLOCAL = @ACLOCAL@
    74 AMDEP_FALSE = @AMDEP_FALSE@
    75 AMDEP_TRUE = @AMDEP_TRUE@
    76 AMTAR = @AMTAR@
    77 AR = @AR@
    78 AUTOCONF = @AUTOCONF@
    79 AUTOHEADER = @AUTOHEADER@
    80 AUTOMAKE = @AUTOMAKE@
    81 AWK = @AWK@
    82 CC = @CC@
    83 CCDEPMODE = @CCDEPMODE@
    84 CFLAGS = @CFLAGS@
    85 CPP = @CPP@
    86 CPPFLAGS = @CPPFLAGS@
    87 CXX = @CXX@
    88 CXXCPP = @CXXCPP@
    89 CXXDEPMODE = @CXXDEPMODE@
    90 CXXFLAGS = @CXXFLAGS@
    91 CYGPATH_W = @CYGPATH_W@
    92 DEFS = @DEFS@
    93 DEPDIR = @DEPDIR@
    94 ECHO = @ECHO@
    95 ECHO_C = @ECHO_C@
    96 ECHO_N = @ECHO_N@
    97 ECHO_T = @ECHO_T@
    98 EGREP = @EGREP@
    99 EXEEXT = @EXEEXT@
    100 F77 = @F77@
    101 FFLAGS = @FFLAGS@
    102 GSL_CONFIG = @GSL_CONFIG@
    103 INSTALL_DATA = @INSTALL_DATA@
    104 INSTALL_PROGRAM = @INSTALL_PROGRAM@
    105 INSTALL_SCRIPT = @INSTALL_SCRIPT@
    106 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
    107 LDFLAGS = @LDFLAGS@
    108 LIBOBJS = @LIBOBJS@
    109 LIBS = @LIBS@
    110 LIBTOOL = @LIBTOOL@
    111 LN_S = @LN_S@
    112 LTLIBOBJS = @LTLIBOBJS@
    113 MAKEINFO = @MAKEINFO@
    114 OBJEXT = @OBJEXT@
    115 PACKAGE = @PACKAGE@
    116 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
    117 PACKAGE_NAME = @PACKAGE_NAME@
    118 PACKAGE_STRING = @PACKAGE_STRING@
    119 PACKAGE_TARNAME = @PACKAGE_TARNAME@
    120 PACKAGE_VERSION = @PACKAGE_VERSION@
    121 PATH_SEPARATOR = @PATH_SEPARATOR@
    122 RANLIB = @RANLIB@
    123 SET_MAKE = @SET_MAKE@
    124 SHELL = @SHELL@
    125 STRIP = @STRIP@
    126 VERSION = @VERSION@
    127 ac_ct_AR = @ac_ct_AR@
    128 ac_ct_CC = @ac_ct_CC@
    129 ac_ct_CXX = @ac_ct_CXX@
    130 ac_ct_F77 = @ac_ct_F77@
    131 ac_ct_RANLIB = @ac_ct_RANLIB@
    132 ac_ct_STRIP = @ac_ct_STRIP@
    133 am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
    134 am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
    135 am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
    136 am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
    137 am__include = @am__include@
    138 am__leading_dot = @am__leading_dot@
    139 am__quote = @am__quote@
    140 bindir = @bindir@
    141 build = @build@
    142 build_alias = @build_alias@
    143 build_cpu = @build_cpu@
    144 build_os = @build_os@
    145 build_vendor = @build_vendor@
    146 datadir = @datadir@
    147 exec_prefix = @exec_prefix@
    148 host = @host@
    149 host_alias = @host_alias@
    150 host_cpu = @host_cpu@
    151 host_os = @host_os@
    152 host_vendor = @host_vendor@
    153 includedir = @includedir@
    154 infodir = @infodir@
    155 install_sh = @install_sh@
    156 libdir = @libdir@
    157 libexecdir = @libexecdir@
    158 localstatedir = @localstatedir@
    159 mandir = @mandir@
    160 mkdir_p = @mkdir_p@
    161 oldincludedir = @oldincludedir@
    162 prefix = @prefix@
    163 program_transform_name = @program_transform_name@
    164 sbindir = @sbindir@
    165 sharedstatedir = @sharedstatedir@
    166 sysconfdir = @sysconfdir@
    167 target_alias = @target_alias@
    168 AUTOMAKE_OPTIONS = foreign 1.4
    169 SUBDIRS = src test
    170107all: all-recursive
    171108
    172109.SUFFIXES:
    173 am--refresh:
    174         @:
    175 $(srcdir)/Makefile.in:  $(srcdir)/Makefile.am  $(am__configure_deps)
    176         @for dep in $?; do \
    177           case '$(am__configure_deps)' in \
    178             *$$dep*) \
    179               echo ' cd $(srcdir) && $(AUTOMAKE) --foreign '; \
    180               cd $(srcdir) && $(AUTOMAKE) --foreign  \
    181                 && exit 0; \
    182               exit 1;; \
    183           esac; \
    184         done; \
    185         echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign  Makefile'; \
     110
     111am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
     112 configure.lineno
     113$(srcdir)/Makefile.in:  Makefile.am  $(top_srcdir)/configure.in $(ACLOCAL_M4)
    186114        cd $(top_srcdir) && \
    187115          $(AUTOMAKE) --foreign  Makefile
    188 .PRECIOUS: Makefile
    189 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
    190         @case '$?' in \
    191           *config.status*) \
    192             echo ' $(SHELL) ./config.status'; \
    193             $(SHELL) ./config.status;; \
    194           *) \
    195             echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
    196             cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
    197         esac;
    198 
    199 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
     116Makefile:  $(srcdir)/Makefile.in  $(top_builddir)/config.status
     117        cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)
     118
     119$(top_builddir)/config.status: $(srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
    200120        $(SHELL) ./config.status --recheck
    201 
    202 $(top_srcdir)/configure:  $(am__configure_deps)
     121$(srcdir)/configure:  $(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES)
    203122        cd $(srcdir) && $(AUTOCONF)
    204 $(ACLOCAL_M4):  $(am__aclocal_m4_deps)
     123
     124$(ACLOCAL_M4):  configure.in
    205125        cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
    206126
     
    269189          test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
    270190        done
    271 ctags-recursive:
    272         list='$(SUBDIRS)'; for subdir in $$list; do \
    273           test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
    274         done
     191
     192ETAGS = etags
     193ETAGSFLAGS =
     194
     195tags: TAGS
    275196
    276197ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
     
    282203               END { for (i in files) print i; }'`; \
    283204        mkid -fID $$unique
    284 tags: TAGS
    285205
    286206TAGS: tags-recursive $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
     
    288208        tags=; \
    289209        here=`pwd`; \
    290         if (etags --etags-include --version) >/dev/null 2>&1; then \
    291           include_option=--etags-include; \
    292         else \
    293           include_option=--include; \
    294         fi; \
    295210        list='$(SUBDIRS)'; for subdir in $$list; do \
    296211          if test "$$subdir" = .; then :; else \
    297             test -f $$subdir/TAGS && \
    298               tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
     212            test -f $$subdir/TAGS && tags="$$tags -i $$here/$$subdir/TAGS"; \
    299213          fi; \
    300214        done; \
     
    308222          || $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
    309223             $$tags $$unique
    310 ctags: CTAGS
    311 CTAGS: ctags-recursive $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
    312                 $(TAGS_FILES) $(LISP)
    313         tags=; \
    314         here=`pwd`; \
    315         list='$(SOURCES) $(HEADERS)  $(LISP) $(TAGS_FILES)'; \
    316         unique=`for i in $$list; do \
    317             if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
    318           done | \
    319           $(AWK) '    { files[$$0] = 1; } \
    320                END { for (i in files) print i; }'`; \
    321         test -z "$(CTAGS_ARGS)$$tags$$unique" \
    322           || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
    323              $$tags $$unique
    324224
    325225GTAGS:
     
    329229
    330230distclean-tags:
    331         -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
     231        -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH
     232DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
     233
     234top_distdir = .
     235distdir = $(PACKAGE)-$(VERSION)
     236
     237am__remove_distdir = \
     238  { test ! -d $(distdir) \
     239    || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \
     240         && rm -fr $(distdir); }; }
     241
     242GZIP_ENV = --best
     243distcleancheck_listfiles = find . -type f -print
    332244
    333245distdir: $(DISTFILES)
    334246        $(am__remove_distdir)
    335247        mkdir $(distdir)
    336         @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
    337         topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
    338         list='$(DISTFILES)'; for file in $$list; do \
    339           case $$file in \
    340             $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
    341             $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
    342           esac; \
     248        @list='$(DISTFILES)'; for file in $$list; do \
    343249          if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
    344250          dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
    345251          if test "$$dir" != "$$file" && test "$$dir" != "."; then \
    346252            dir="/$$dir"; \
    347             $(mkdir_p) "$(distdir)$$dir"; \
     253            $(mkinstalldirs) "$(distdir)$$dir"; \
    348254          else \
    349255            dir=''; \
     
    362268        list='$(SUBDIRS)'; for subdir in $$list; do \
    363269          if test "$$subdir" = .; then :; else \
    364             test -d "$(distdir)/$$subdir" \
    365             || mkdir "$(distdir)/$$subdir" \
     270            test -d $(distdir)/$$subdir \
     271            || mkdir $(distdir)/$$subdir \
    366272            || exit 1; \
    367273            (cd $$subdir && \
    368274              $(MAKE) $(AM_MAKEFLAGS) \
    369                 top_distdir="../$(top_distdir)" \
    370                 distdir="../$(distdir)/$$subdir" \
     275                top_distdir="$(top_distdir)" \
     276                distdir=../$(distdir)/$$subdir \
    371277                distdir) \
    372278              || exit 1; \
     
    382288        $(am__remove_distdir)
    383289
    384 dist-bzip2: distdir
    385         $(AMTAR) chof - $(distdir) | bzip2 -9 -c >$(distdir).tar.bz2
    386         $(am__remove_distdir)
    387 
    388 dist-tarZ: distdir
    389         $(AMTAR) chof - $(distdir) | compress -c >$(distdir).tar.Z
    390         $(am__remove_distdir)
    391 
    392 dist-shar: distdir
    393         shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
    394         $(am__remove_distdir)
    395 
    396 dist-zip: distdir
    397         -rm -f $(distdir).zip
    398         zip -rq $(distdir).zip $(distdir)
    399         $(am__remove_distdir)
    400 
    401290dist dist-all: distdir
    402291        $(AMTAR) chof - $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
     
    407296# tarfile.
    408297distcheck: dist
    409         case '$(DIST_ARCHIVES)' in \
    410         *.tar.gz*) \
    411           GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(AMTAR) xf - ;;\
    412         *.tar.bz2*) \
    413           bunzip2 -c $(distdir).tar.bz2 | $(AMTAR) xf - ;;\
    414         *.tar.Z*) \
    415           uncompress -c $(distdir).tar.Z | $(AMTAR) xf - ;;\
    416         *.shar.gz*) \
    417           GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | unshar ;;\
    418         *.zip*) \
    419           unzip $(distdir).zip ;;\
    420         esac
     298        $(am__remove_distdir)
     299        GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(AMTAR) xf -
    421300        chmod -R a-w $(distdir); chmod a+w $(distdir)
    422         mkdir $(distdir)/_build
    423         mkdir $(distdir)/_inst
     301        mkdir $(distdir)/=build
     302        mkdir $(distdir)/=inst
    424303        chmod a-w $(distdir)
    425         dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
    426           && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
    427           && cd $(distdir)/_build \
    428           && ../configure --srcdir=.. --prefix="$$dc_install_base" \
     304        dc_install_base=`$(am__cd) $(distdir)/=inst && pwd` \
     305          && cd $(distdir)/=build \
     306          && ../configure --srcdir=.. --prefix=$$dc_install_base \
    429307            $(DISTCHECK_CONFIGURE_FLAGS) \
    430308          && $(MAKE) $(AM_MAKEFLAGS) \
     
    434312          && $(MAKE) $(AM_MAKEFLAGS) installcheck \
    435313          && $(MAKE) $(AM_MAKEFLAGS) uninstall \
    436           && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \
    437                 distuninstallcheck \
    438           && chmod -R a-w "$$dc_install_base" \
    439           && ({ \
    440                (cd ../.. && umask 077 && mkdir "$$dc_destdir") \
    441                && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
    442                && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
    443                && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \
    444                     distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \
    445               } || { rm -rf "$$dc_destdir"; exit 1; }) \
    446           && rm -rf "$$dc_destdir" \
    447           && $(MAKE) $(AM_MAKEFLAGS) dist \
    448           && rm -rf $(DIST_ARCHIVES) \
     314          && (test `find $$dc_install_base -type f -print | wc -l` -le 1 \
     315              || { echo "ERROR: files left after uninstall:" ; \
     316                   find $$dc_install_base -type f -print ; \
     317                   exit 1; } >&2 ) \
     318          && $(MAKE) $(AM_MAKEFLAGS) dist-gzip \
     319          && rm -f $(distdir).tar.gz \
    449320          && $(MAKE) $(AM_MAKEFLAGS) distcleancheck
    450321        $(am__remove_distdir)
    451         @(echo "$(distdir) archives ready for distribution: "; \
    452           list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
    453           sed -e '1{h;s/./=/g;p;x;}' -e '$${p;x;}'
    454 distuninstallcheck:
    455         @cd $(distuninstallcheck_dir) \
    456         && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
    457            || { echo "ERROR: files left after uninstall:" ; \
    458                 if test -n "$(DESTDIR)"; then \
    459                   echo "  (check DESTDIR support)"; \
    460                 fi ; \
    461                 $(distuninstallcheck_listfiles) ; \
    462                 exit 1; } >&2
     322        @echo "$(distdir).tar.gz is ready for distribution" | \
     323          sed 'h;s/./=/g;p;x;p;x'
    463324distcleancheck: distclean
    464         @if test '$(srcdir)' = . ; then \
     325        if test '$(srcdir)' = . ; then \
    465326          echo "ERROR: distcleancheck can only run from a VPATH build" ; \
    466327          exit 1 ; \
    467328        fi
    468         @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
    469           || { echo "ERROR: files left in build directory after distclean:" ; \
     329        test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
     330          || { echo "ERROR: files left after distclean:" ; \
    470331               $(distcleancheck_listfiles) ; \
    471332               exit 1; } >&2
     
    475336installdirs: installdirs-recursive
    476337installdirs-am:
     338
    477339install: install-recursive
    478340install-exec: install-exec-recursive
     
    486348install-strip:
    487349        $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
    488           install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
     350          INSTALL_STRIP_FLAG=-s \
    489351          `test -z '$(STRIP)' || \
    490352            echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
     
    494356
    495357distclean-generic:
    496         -rm -f $(CONFIG_CLEAN_FILES)
     358        -rm -f Makefile $(CONFIG_CLEAN_FILES)
    497359
    498360maintainer-clean-generic:
     
    505367distclean: distclean-recursive
    506368        -rm -f $(am__CONFIG_DISTCLEAN_FILES)
    507         -rm -f Makefile
    508369distclean-am: clean-am distclean-generic distclean-libtool \
    509370        distclean-tags
     
    513374dvi-am:
    514375
    515 html: html-recursive
    516 
    517376info: info-recursive
    518377
     
    531390maintainer-clean: maintainer-clean-recursive
    532391        -rm -f $(am__CONFIG_DISTCLEAN_FILES)
    533         -rm -rf $(top_srcdir)/autom4te.cache
    534         -rm -f Makefile
     392        -rm -rf autom4te.cache
    535393maintainer-clean-am: distclean-am maintainer-clean-generic
    536394
     
    539397mostlyclean-am: mostlyclean-generic mostlyclean-libtool
    540398
    541 pdf: pdf-recursive
    542 
    543 pdf-am:
    544 
    545 ps: ps-recursive
    546 
    547 ps-am:
    548 
    549399uninstall-am: uninstall-info-am
    550400
    551401uninstall-info: uninstall-info-recursive
    552402
    553 .PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am am--refresh check \
    554         check-am clean clean-generic clean-libtool clean-recursive \
    555         ctags ctags-recursive dist dist-all dist-bzip2 dist-gzip \
    556         dist-shar dist-tarZ dist-zip distcheck distclean \
    557         distclean-generic distclean-libtool distclean-recursive \
    558         distclean-tags distcleancheck distdir distuninstallcheck dvi \
    559         dvi-am html html-am info info-am install install-am \
    560         install-data install-data-am install-exec install-exec-am \
    561         install-info install-info-am install-man install-strip \
    562         installcheck installcheck-am installdirs installdirs-am \
    563         maintainer-clean maintainer-clean-generic \
    564         maintainer-clean-recursive mostlyclean mostlyclean-generic \
    565         mostlyclean-libtool mostlyclean-recursive pdf pdf-am ps ps-am \
    566         tags tags-recursive uninstall uninstall-am uninstall-info-am
     403.PHONY: $(RECURSIVE_TARGETS) GTAGS all all-am check check-am clean \
     404        clean-generic clean-libtool clean-recursive dist dist-all \
     405        dist-gzip distcheck distclean distclean-generic \
     406        distclean-libtool distclean-recursive distclean-tags \
     407        distcleancheck distdir dvi dvi-am dvi-recursive info info-am \
     408        info-recursive install install-am install-data install-data-am \
     409        install-data-recursive install-exec install-exec-am \
     410        install-exec-recursive install-info install-info-am \
     411        install-info-recursive install-man install-recursive \
     412        install-strip installcheck installcheck-am installdirs \
     413        installdirs-am installdirs-recursive maintainer-clean \
     414        maintainer-clean-generic maintainer-clean-recursive mostlyclean \
     415        mostlyclean-generic mostlyclean-libtool mostlyclean-recursive \
     416        tags tags-recursive uninstall uninstall-am uninstall-info-am \
     417        uninstall-info-recursive uninstall-recursive
    567418
    568419# Tell versions [3.59,3.63) of GNU make to not export all variables.
  • trunk/psModules/aclocal.m4

    r2125 r2132  
    1 # generated automatically by aclocal 1.8.3 -*- Autoconf -*-
    2 
    3 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
     1# aclocal.m4 generated automatically by aclocal 1.6.3 -*- Autoconf -*-
     2
     3# Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002
    44# Free Software Foundation, Inc.
    55# This file is free software; the Free Software Foundation
     
    1212# PARTICULAR PURPOSE.
    1313
    14 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
    15 
    16 # serial 47 AC_PROG_LIBTOOL
    17 
    18 
    19 # AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
    20 # -----------------------------------------------------------
    21 # If this macro is not defined by Autoconf, define it here.
    22 m4_ifdef([AC_PROVIDE_IFELSE],
    23          [],
    24          [m4_define([AC_PROVIDE_IFELSE],
    25                  [m4_ifdef([AC_PROVIDE_$1],
    26                            [$2], [$3])])])
    27 
    28 
    29 # AC_PROG_LIBTOOL
     14# Like AC_CONFIG_HEADER, but automatically create stamp file. -*- Autoconf -*-
     15
     16# Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc.
     17
     18# This program is free software; you can redistribute it and/or modify
     19# it under the terms of the GNU General Public License as published by
     20# the Free Software Foundation; either version 2, or (at your option)
     21# any later version.
     22
     23# This program is distributed in the hope that it will be useful,
     24# but WITHOUT ANY WARRANTY; without even the implied warranty of
     25# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     26# GNU General Public License for more details.
     27
     28# You should have received a copy of the GNU General Public License
     29# along with this program; if not, write to the Free Software
     30# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
     31# 02111-1307, USA.
     32
     33AC_PREREQ([2.52])
     34
     35# serial 6
     36
     37# When config.status generates a header, we must update the stamp-h file.
     38# This file resides in the same directory as the config header
     39# that is generated.  We must strip everything past the first ":",
     40# and everything past the last "/".
     41
     42# _AM_DIRNAME(PATH)
     43# -----------------
     44# Like AS_DIRNAME, only do it during macro expansion
     45AC_DEFUN([_AM_DIRNAME],
     46       [m4_if(regexp([$1], [^.*[^/]//*[^/][^/]*/*$]), -1,
     47              m4_if(regexp([$1], [^//\([^/]\|$\)]), -1,
     48                    m4_if(regexp([$1], [^/.*]), -1,
     49                          [.],
     50                          patsubst([$1], [^\(/\).*], [\1])),
     51                    patsubst([$1], [^\(//\)\([^/].*\|$\)], [\1])),
     52              patsubst([$1], [^\(.*[^/]\)//*[^/][^/]*/*$], [\1]))[]dnl
     53])# _AM_DIRNAME
     54
     55
     56# The stamp files are numbered to have different names.
     57# We could number them on a directory basis, but that's additional
     58# complications, let's have a unique counter.
     59m4_define([_AM_STAMP_Count], [0])
     60
     61
     62# _AM_STAMP(HEADER)
     63# -----------------
     64# The name of the stamp file for HEADER.
     65AC_DEFUN([_AM_STAMP],
     66[m4_define([_AM_STAMP_Count], m4_incr(_AM_STAMP_Count))dnl
     67AS_ESCAPE(_AM_DIRNAME(patsubst([$1],
     68                               [:.*])))/stamp-h[]_AM_STAMP_Count])
     69
     70
     71# _AM_CONFIG_HEADER(HEADER[:SOURCES], COMMANDS, INIT-COMMANDS)
     72# ------------------------------------------------------------
     73# We used to try to get a real timestamp in stamp-h.  But the fear is that
     74# that will cause unnecessary cvs conflicts.
     75AC_DEFUN([_AM_CONFIG_HEADER],
     76[# Add the stamp file to the list of files AC keeps track of,
     77# along with our hook.
     78AC_CONFIG_HEADERS([$1],
     79                  [# update the timestamp
     80echo 'timestamp for $1' >"_AM_STAMP([$1])"
     81$2],
     82                  [$3])
     83])# _AM_CONFIG_HEADER
     84
     85
     86# AM_CONFIG_HEADER(HEADER[:SOURCES]..., COMMANDS, INIT-COMMANDS)
     87# --------------------------------------------------------------
     88AC_DEFUN([AM_CONFIG_HEADER],
     89[AC_FOREACH([_AM_File], [$1], [_AM_CONFIG_HEADER(_AM_File, [$2], [$3])])
     90])# AM_CONFIG_HEADER
     91
     92# Do all the work for Automake.                            -*- Autoconf -*-
     93
     94# This macro actually does too much some checks are only needed if
     95# your package does certain things.  But this isn't really a big deal.
     96
     97# Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002
     98# Free Software Foundation, Inc.
     99
     100# This program is free software; you can redistribute it and/or modify
     101# it under the terms of the GNU General Public License as published by
     102# the Free Software Foundation; either version 2, or (at your option)
     103# any later version.
     104
     105# This program is distributed in the hope that it will be useful,
     106# but WITHOUT ANY WARRANTY; without even the implied warranty of
     107# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     108# GNU General Public License for more details.
     109
     110# You should have received a copy of the GNU General Public License
     111# along with this program; if not, write to the Free Software
     112# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
     113# 02111-1307, USA.
     114
     115# serial 8
     116
     117# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
     118# written in clear, in which case automake, when reading aclocal.m4,
     119# will think it sees a *use*, and therefore will trigger all it's
     120# C support machinery.  Also note that it means that autoscan, seeing
     121# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
     122
     123
     124AC_PREREQ([2.52])
     125
     126# Autoconf 2.50 wants to disallow AM_ names.  We explicitly allow
     127# the ones we care about.
     128m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
     129
     130# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
     131# AM_INIT_AUTOMAKE([OPTIONS])
     132# -----------------------------------------------
     133# The call with PACKAGE and VERSION arguments is the old style
     134# call (pre autoconf-2.50), which is being phased out.  PACKAGE
     135# and VERSION should now be passed to AC_INIT and removed from
     136# the call to AM_INIT_AUTOMAKE.
     137# We support both call styles for the transition.  After
     138# the next Automake release, Autoconf can make the AC_INIT
     139# arguments mandatory, and then we can depend on a new Autoconf
     140# release and drop the old call support.
     141AC_DEFUN([AM_INIT_AUTOMAKE],
     142[AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
     143 AC_REQUIRE([AC_PROG_INSTALL])dnl
     144# test to see if srcdir already configured
     145if test "`cd $srcdir && pwd`" != "`pwd`" &&
     146   test -f $srcdir/config.status; then
     147  AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
     148fi
     149
     150# Define the identity of the package.
     151dnl Distinguish between old-style and new-style calls.
     152m4_ifval([$2],
     153[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
     154 AC_SUBST([PACKAGE], [$1])dnl
     155 AC_SUBST([VERSION], [$2])],
     156[_AM_SET_OPTIONS([$1])dnl
     157 AC_SUBST([PACKAGE], [AC_PACKAGE_TARNAME])dnl
     158 AC_SUBST([VERSION], [AC_PACKAGE_VERSION])])dnl
     159
     160_AM_IF_OPTION([no-define],,
     161[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
     162 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
     163
     164# Some tools Automake needs.
     165AC_REQUIRE([AM_SANITY_CHECK])dnl
     166AC_REQUIRE([AC_ARG_PROGRAM])dnl
     167AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
     168AM_MISSING_PROG(AUTOCONF, autoconf)
     169AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
     170AM_MISSING_PROG(AUTOHEADER, autoheader)
     171AM_MISSING_PROG(MAKEINFO, makeinfo)
     172AM_MISSING_PROG(AMTAR, tar)
     173AM_PROG_INSTALL_SH
     174AM_PROG_INSTALL_STRIP
     175# We need awk for the "check" target.  The system "awk" is bad on
     176# some platforms.
     177AC_REQUIRE([AC_PROG_AWK])dnl
     178AC_REQUIRE([AC_PROG_MAKE_SET])dnl
     179
     180_AM_IF_OPTION([no-dependencies],,
     181[AC_PROVIDE_IFELSE([AC_PROG_][CC],
     182                  [_AM_DEPENDENCIES(CC)],
     183                  [define([AC_PROG_][CC],
     184                          defn([AC_PROG_][CC])[_AM_DEPENDENCIES(CC)])])dnl
     185AC_PROVIDE_IFELSE([AC_PROG_][CXX],
     186                  [_AM_DEPENDENCIES(CXX)],
     187                  [define([AC_PROG_][CXX],
     188                          defn([AC_PROG_][CXX])[_AM_DEPENDENCIES(CXX)])])dnl
     189])
     190])
     191
     192# Copyright 2002  Free Software Foundation, Inc.
     193
     194# This program is free software; you can redistribute it and/or modify
     195# it under the terms of the GNU General Public License as published by
     196# the Free Software Foundation; either version 2, or (at your option)
     197# any later version.
     198
     199# This program is distributed in the hope that it will be useful,
     200# but WITHOUT ANY WARRANTY; without even the implied warranty of
     201# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     202# GNU General Public License for more details.
     203
     204# You should have received a copy of the GNU General Public License
     205# along with this program; if not, write to the Free Software
     206# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
     207
     208# AM_AUTOMAKE_VERSION(VERSION)
     209# ----------------------------
     210# Automake X.Y traces this macro to ensure aclocal.m4 has been
     211# generated from the m4 files accompanying Automake X.Y.
     212AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.6"])
     213
     214# AM_SET_CURRENT_AUTOMAKE_VERSION
     215# -------------------------------
     216# Call AM_AUTOMAKE_VERSION so it can be traced.
     217# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
     218AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
     219         [AM_AUTOMAKE_VERSION([1.6.3])])
     220
     221# Helper functions for option handling.                    -*- Autoconf -*-
     222
     223# Copyright 2001, 2002  Free Software Foundation, Inc.
     224
     225# This program is free software; you can redistribute it and/or modify
     226# it under the terms of the GNU General Public License as published by
     227# the Free Software Foundation; either version 2, or (at your option)
     228# any later version.
     229
     230# This program is distributed in the hope that it will be useful,
     231# but WITHOUT ANY WARRANTY; without even the implied warranty of
     232# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     233# GNU General Public License for more details.
     234
     235# You should have received a copy of the GNU General Public License
     236# along with this program; if not, write to the Free Software
     237# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
     238# 02111-1307, USA.
     239
     240# serial 2
     241
     242# _AM_MANGLE_OPTION(NAME)
     243# -----------------------
     244AC_DEFUN([_AM_MANGLE_OPTION],
     245[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
     246
     247# _AM_SET_OPTION(NAME)
     248# ------------------------------
     249# Set option NAME.  Presently that only means defining a flag for this option.
     250AC_DEFUN([_AM_SET_OPTION],
     251[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
     252
     253# _AM_SET_OPTIONS(OPTIONS)
     254# ----------------------------------
     255# OPTIONS is a space-separated list of Automake options.
     256AC_DEFUN([_AM_SET_OPTIONS],
     257[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
     258
     259# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
     260# -------------------------------------------
     261# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
     262AC_DEFUN([_AM_IF_OPTION],
     263[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
     264
     265#
     266# Check to make sure that the build environment is sane.
     267#
     268
     269# Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc.
     270
     271# This program is free software; you can redistribute it and/or modify
     272# it under the terms of the GNU General Public License as published by
     273# the Free Software Foundation; either version 2, or (at your option)
     274# any later version.
     275
     276# This program is distributed in the hope that it will be useful,
     277# but WITHOUT ANY WARRANTY; without even the implied warranty of
     278# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     279# GNU General Public License for more details.
     280
     281# You should have received a copy of the GNU General Public License
     282# along with this program; if not, write to the Free Software
     283# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
     284# 02111-1307, USA.
     285
     286# serial 3
     287
     288# AM_SANITY_CHECK
    30289# ---------------
     290AC_DEFUN([AM_SANITY_CHECK],
     291[AC_MSG_CHECKING([whether build environment is sane])
     292# Just in case
     293sleep 1
     294echo timestamp > conftest.file
     295# Do `set' in a subshell so we don't clobber the current shell's
     296# arguments.  Must try -L first in case configure is actually a
     297# symlink; some systems play weird games with the mod time of symlinks
     298# (eg FreeBSD returns the mod time of the symlink's containing
     299# directory).
     300if (
     301   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
     302   if test "$[*]" = "X"; then
     303      # -L didn't work.
     304      set X `ls -t $srcdir/configure conftest.file`
     305   fi
     306   rm -f conftest.file
     307   if test "$[*]" != "X $srcdir/configure conftest.file" \
     308      && test "$[*]" != "X conftest.file $srcdir/configure"; then
     309
     310      # If neither matched, then we have a broken ls.  This can happen
     311      # if, for instance, CONFIG_SHELL is bash and it inherits a
     312      # broken ls alias from the environment.  This has actually
     313      # happened.  Such a system could not be considered "sane".
     314      AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
     315alias in your environment])
     316   fi
     317
     318   test "$[2]" = conftest.file
     319   )
     320then
     321   # Ok.
     322   :
     323else
     324   AC_MSG_ERROR([newly created file is older than distributed files!
     325Check your system clock])
     326fi
     327AC_MSG_RESULT(yes)])
     328
     329#  -*- Autoconf -*-
     330
     331
     332# Copyright 1997, 1999, 2000, 2001 Free Software Foundation, Inc.
     333
     334# This program is free software; you can redistribute it and/or modify
     335# it under the terms of the GNU General Public License as published by
     336# the Free Software Foundation; either version 2, or (at your option)
     337# any later version.
     338
     339# This program is distributed in the hope that it will be useful,
     340# but WITHOUT ANY WARRANTY; without even the implied warranty of
     341# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     342# GNU General Public License for more details.
     343
     344# You should have received a copy of the GNU General Public License
     345# along with this program; if not, write to the Free Software
     346# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
     347# 02111-1307, USA.
     348
     349# serial 3
     350
     351# AM_MISSING_PROG(NAME, PROGRAM)
     352# ------------------------------
     353AC_DEFUN([AM_MISSING_PROG],
     354[AC_REQUIRE([AM_MISSING_HAS_RUN])
     355$1=${$1-"${am_missing_run}$2"}
     356AC_SUBST($1)])
     357
     358
     359# AM_MISSING_HAS_RUN
     360# ------------------
     361# Define MISSING if not defined so far and test if it supports --run.
     362# If it does, set am_missing_run to use it, otherwise, to nothing.
     363AC_DEFUN([AM_MISSING_HAS_RUN],
     364[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
     365test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
     366# Use eval to expand $SHELL
     367if eval "$MISSING --run true"; then
     368  am_missing_run="$MISSING --run "
     369else
     370  am_missing_run=
     371  AC_MSG_WARN([`missing' script is too old or missing])
     372fi
     373])
     374
     375# AM_AUX_DIR_EXPAND
     376
     377# Copyright 2001 Free Software Foundation, Inc.
     378
     379# This program is free software; you can redistribute it and/or modify
     380# it under the terms of the GNU General Public License as published by
     381# the Free Software Foundation; either version 2, or (at your option)
     382# any later version.
     383
     384# This program is distributed in the hope that it will be useful,
     385# but WITHOUT ANY WARRANTY; without even the implied warranty of
     386# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     387# GNU General Public License for more details.
     388
     389# You should have received a copy of the GNU General Public License
     390# along with this program; if not, write to the Free Software
     391# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
     392# 02111-1307, USA.
     393
     394# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
     395# $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to
     396# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
     397#
     398# Of course, Automake must honor this variable whenever it calls a
     399# tool from the auxiliary directory.  The problem is that $srcdir (and
     400# therefore $ac_aux_dir as well) can be either absolute or relative,
     401# depending on how configure is run.  This is pretty annoying, since
     402# it makes $ac_aux_dir quite unusable in subdirectories: in the top
     403# source directory, any form will work fine, but in subdirectories a
     404# relative path needs to be adjusted first.
     405#
     406# $ac_aux_dir/missing
     407#    fails when called from a subdirectory if $ac_aux_dir is relative
     408# $top_srcdir/$ac_aux_dir/missing
     409#    fails if $ac_aux_dir is absolute,
     410#    fails when called from a subdirectory in a VPATH build with
     411#          a relative $ac_aux_dir
     412#
     413# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
     414# are both prefixed by $srcdir.  In an in-source build this is usually
     415# harmless because $srcdir is `.', but things will broke when you
     416# start a VPATH build or use an absolute $srcdir.
     417#
     418# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
     419# iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
     420#   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
     421# and then we would define $MISSING as
     422#   MISSING="\${SHELL} $am_aux_dir/missing"
     423# This will work as long as MISSING is not called from configure, because
     424# unfortunately $(top_srcdir) has no meaning in configure.
     425# However there are other variables, like CC, which are often used in
     426# configure, and could therefore not use this "fixed" $ac_aux_dir.
     427#
     428# Another solution, used here, is to always expand $ac_aux_dir to an
     429# absolute PATH.  The drawback is that using absolute paths prevent a
     430# configured tree to be moved without reconfiguration.
     431
     432# Rely on autoconf to set up CDPATH properly.
     433AC_PREREQ([2.50])
     434
     435AC_DEFUN([AM_AUX_DIR_EXPAND], [
     436# expand $ac_aux_dir to an absolute path
     437am_aux_dir=`cd $ac_aux_dir && pwd`
     438])
     439
     440# AM_PROG_INSTALL_SH
     441# ------------------
     442# Define $install_sh.
     443
     444# Copyright 2001 Free Software Foundation, Inc.
     445
     446# This program is free software; you can redistribute it and/or modify
     447# it under the terms of the GNU General Public License as published by
     448# the Free Software Foundation; either version 2, or (at your option)
     449# any later version.
     450
     451# This program is distributed in the hope that it will be useful,
     452# but WITHOUT ANY WARRANTY; without even the implied warranty of
     453# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     454# GNU General Public License for more details.
     455
     456# You should have received a copy of the GNU General Public License
     457# along with this program; if not, write to the Free Software
     458# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
     459# 02111-1307, USA.
     460
     461AC_DEFUN([AM_PROG_INSTALL_SH],
     462[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
     463install_sh=${install_sh-"$am_aux_dir/install-sh"}
     464AC_SUBST(install_sh)])
     465
     466# AM_PROG_INSTALL_STRIP
     467
     468# Copyright 2001 Free Software Foundation, Inc.
     469
     470# This program is free software; you can redistribute it and/or modify
     471# it under the terms of the GNU General Public License as published by
     472# the Free Software Foundation; either version 2, or (at your option)
     473# any later version.
     474
     475# This program is distributed in the hope that it will be useful,
     476# but WITHOUT ANY WARRANTY; without even the implied warranty of
     477# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     478# GNU General Public License for more details.
     479
     480# You should have received a copy of the GNU General Public License
     481# along with this program; if not, write to the Free Software
     482# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
     483# 02111-1307, USA.
     484
     485# One issue with vendor `install' (even GNU) is that you can't
     486# specify the program used to strip binaries.  This is especially
     487# annoying in cross-compiling environments, where the build's strip
     488# is unlikely to handle the host's binaries.
     489# Fortunately install-sh will honor a STRIPPROG variable, so we
     490# always use install-sh in `make install-strip', and initialize
     491# STRIPPROG with the value of the STRIP variable (set by the user).
     492AC_DEFUN([AM_PROG_INSTALL_STRIP],
     493[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
     494# Installed binaries are usually stripped using `strip' when the user
     495# run `make install-strip'.  However `strip' might not be the right
     496# tool to use in cross-compilation environments, therefore Automake
     497# will honor the `STRIP' environment variable to overrule this program.
     498dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
     499if test "$cross_compiling" != no; then
     500  AC_CHECK_TOOL([STRIP], [strip], :)
     501fi
     502INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
     503AC_SUBST([INSTALL_STRIP_PROGRAM])])
     504
     505# serial 4                                              -*- Autoconf -*-
     506
     507# Copyright 1999, 2000, 2001 Free Software Foundation, Inc.
     508
     509# This program is free software; you can redistribute it and/or modify
     510# it under the terms of the GNU General Public License as published by
     511# the Free Software Foundation; either version 2, or (at your option)
     512# any later version.
     513
     514# This program is distributed in the hope that it will be useful,
     515# but WITHOUT ANY WARRANTY; without even the implied warranty of
     516# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     517# GNU General Public License for more details.
     518
     519# You should have received a copy of the GNU General Public License
     520# along with this program; if not, write to the Free Software
     521# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
     522# 02111-1307, USA.
     523
     524
     525# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
     526# written in clear, in which case automake, when reading aclocal.m4,
     527# will think it sees a *use*, and therefore will trigger all it's
     528# C support machinery.  Also note that it means that autoscan, seeing
     529# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
     530
     531
     532
     533# _AM_DEPENDENCIES(NAME)
     534# ----------------------
     535# See how the compiler implements dependency checking.
     536# NAME is "CC", "CXX", "GCJ", or "OBJC".
     537# We try a few techniques and use that to set a single cache variable.
     538#
     539# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
     540# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
     541# dependency, and given that the user is not expected to run this macro,
     542# just rely on AC_PROG_CC.
     543AC_DEFUN([_AM_DEPENDENCIES],
     544[AC_REQUIRE([AM_SET_DEPDIR])dnl
     545AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
     546AC_REQUIRE([AM_MAKE_INCLUDE])dnl
     547AC_REQUIRE([AM_DEP_TRACK])dnl
     548
     549ifelse([$1], CC,   [depcc="$CC"   am_compiler_list=],
     550       [$1], CXX,  [depcc="$CXX"  am_compiler_list=],
     551       [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
     552       [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
     553                   [depcc="$$1"   am_compiler_list=])
     554
     555AC_CACHE_CHECK([dependency style of $depcc],
     556               [am_cv_$1_dependencies_compiler_type],
     557[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
     558  # We make a subdir and do the tests there.  Otherwise we can end up
     559  # making bogus files that we don't know about and never remove.  For
     560  # instance it was reported that on HP-UX the gcc test will end up
     561  # making a dummy file named `D' -- because `-MD' means `put the output
     562  # in D'.
     563  mkdir conftest.dir
     564  # Copy depcomp to subdir because otherwise we won't find it if we're
     565  # using a relative directory.
     566  cp "$am_depcomp" conftest.dir
     567  cd conftest.dir
     568
     569  am_cv_$1_dependencies_compiler_type=none
     570  if test "$am_compiler_list" = ""; then
     571     am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
     572  fi
     573  for depmode in $am_compiler_list; do
     574    # We need to recreate these files for each test, as the compiler may
     575    # overwrite some of them when testing with obscure command lines.
     576    # This happens at least with the AIX C compiler.
     577    echo '#include "conftest.h"' > conftest.c
     578    echo 'int i;' > conftest.h
     579    echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
     580
     581    case $depmode in
     582    nosideeffect)
     583      # after this tag, mechanisms are not by side-effect, so they'll
     584      # only be used when explicitly requested
     585      if test "x$enable_dependency_tracking" = xyes; then
     586        continue
     587      else
     588        break
     589      fi
     590      ;;
     591    none) break ;;
     592    esac
     593    # We check with `-c' and `-o' for the sake of the "dashmstdout"
     594    # mode.  It turns out that the SunPro C++ compiler does not properly
     595    # handle `-M -o', and we need to detect this.
     596    if depmode=$depmode \
     597       source=conftest.c object=conftest.o \
     598       depfile=conftest.Po tmpdepfile=conftest.TPo \
     599       $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
     600       grep conftest.h conftest.Po > /dev/null 2>&1 &&
     601       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
     602      am_cv_$1_dependencies_compiler_type=$depmode
     603      break
     604    fi
     605  done
     606
     607  cd ..
     608  rm -rf conftest.dir
     609else
     610  am_cv_$1_dependencies_compiler_type=none
     611fi
     612])
     613AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
     614])
     615
     616
     617# AM_SET_DEPDIR
     618# -------------
     619# Choose a directory name for dependency files.
     620# This macro is AC_REQUIREd in _AM_DEPENDENCIES
     621AC_DEFUN([AM_SET_DEPDIR],
     622[rm -f .deps 2>/dev/null
     623mkdir .deps 2>/dev/null
     624if test -d .deps; then
     625  DEPDIR=.deps
     626else
     627  # MS-DOS does not allow filenames that begin with a dot.
     628  DEPDIR=_deps
     629fi
     630rmdir .deps 2>/dev/null
     631AC_SUBST([DEPDIR])
     632])
     633
     634
     635# AM_DEP_TRACK
     636# ------------
     637AC_DEFUN([AM_DEP_TRACK],
     638[AC_ARG_ENABLE(dependency-tracking,
     639[  --disable-dependency-tracking Speeds up one-time builds
     640  --enable-dependency-tracking  Do not reject slow dependency extractors])
     641if test "x$enable_dependency_tracking" != xno; then
     642  am_depcomp="$ac_aux_dir/depcomp"
     643  AMDEPBACKSLASH='\'
     644fi
     645AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
     646AC_SUBST([AMDEPBACKSLASH])
     647])
     648
     649# Generate code to set up dependency tracking.   -*- Autoconf -*-
     650
     651# Copyright 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
     652
     653# This program is free software; you can redistribute it and/or modify
     654# it under the terms of the GNU General Public License as published by
     655# the Free Software Foundation; either version 2, or (at your option)
     656# any later version.
     657
     658# This program is distributed in the hope that it will be useful,
     659# but WITHOUT ANY WARRANTY; without even the implied warranty of
     660# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     661# GNU General Public License for more details.
     662
     663# You should have received a copy of the GNU General Public License
     664# along with this program; if not, write to the Free Software
     665# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
     666# 02111-1307, USA.
     667
     668#serial 2
     669
     670# _AM_OUTPUT_DEPENDENCY_COMMANDS
     671# ------------------------------
     672AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
     673[for mf in $CONFIG_FILES; do
     674  # Strip MF so we end up with the name of the file.
     675  mf=`echo "$mf" | sed -e 's/:.*$//'`
     676  # Check whether this is an Automake generated Makefile or not.
     677  # We used to match only the files named `Makefile.in', but
     678  # some people rename them; so instead we look at the file content.
     679  # Grep'ing the first line is not enough: some people post-process
     680  # each Makefile.in and add a new line on top of each file to say so.
     681  # So let's grep whole file.
     682  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
     683    dirpart=`AS_DIRNAME("$mf")`
     684  else
     685    continue
     686  fi
     687  grep '^DEP_FILES *= *[[^ @%:@]]' < "$mf" > /dev/null || continue
     688  # Extract the definition of DEP_FILES from the Makefile without
     689  # running `make'.
     690  DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
     691  test -z "$DEPDIR" && continue
     692  # When using ansi2knr, U may be empty or an underscore; expand it
     693  U=`sed -n -e '/^U = / s///p' < "$mf"`
     694  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
     695  # We invoke sed twice because it is the simplest approach to
     696  # changing $(DEPDIR) to its actual value in the expansion.
     697  for file in `sed -n -e '
     698    /^DEP_FILES = .*\\\\$/ {
     699      s/^DEP_FILES = //
     700      :loop
     701        s/\\\\$//
     702        p
     703        n
     704        /\\\\$/ b loop
     705      p
     706    }
     707    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
     708       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
     709    # Make sure the directory exists.
     710    test -f "$dirpart/$file" && continue
     711    fdir=`AS_DIRNAME(["$file"])`
     712    AS_MKDIR_P([$dirpart/$fdir])
     713    # echo "creating $dirpart/$file"
     714    echo '# dummy' > "$dirpart/$file"
     715  done
     716done
     717])# _AM_OUTPUT_DEPENDENCY_COMMANDS
     718
     719
     720# AM_OUTPUT_DEPENDENCY_COMMANDS
     721# -----------------------------
     722# This macro should only be invoked once -- use via AC_REQUIRE.
     723#
     724# This code is only required when automatic dependency tracking
     725# is enabled.  FIXME.  This creates each `.P' file that we will
     726# need in order to bootstrap the dependency handling code.
     727AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
     728[AC_CONFIG_COMMANDS([depfiles],
     729     [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
     730     [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
     731])
     732
     733# Copyright 2001 Free Software Foundation, Inc.             -*- Autoconf -*-
     734
     735# This program is free software; you can redistribute it and/or modify
     736# it under the terms of the GNU General Public License as published by
     737# the Free Software Foundation; either version 2, or (at your option)
     738# any later version.
     739
     740# This program is distributed in the hope that it will be useful,
     741# but WITHOUT ANY WARRANTY; without even the implied warranty of
     742# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     743# GNU General Public License for more details.
     744
     745# You should have received a copy of the GNU General Public License
     746# along with this program; if not, write to the Free Software
     747# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
     748# 02111-1307, USA.
     749
     750# serial 2
     751
     752# AM_MAKE_INCLUDE()
     753# -----------------
     754# Check to see how make treats includes.
     755AC_DEFUN([AM_MAKE_INCLUDE],
     756[am_make=${MAKE-make}
     757cat > confinc << 'END'
     758doit:
     759        @echo done
     760END
     761# If we don't find an include directive, just comment out the code.
     762AC_MSG_CHECKING([for style of include used by $am_make])
     763am__include="#"
     764am__quote=
     765_am_result=none
     766# First try GNU make style include.
     767echo "include confinc" > confmf
     768# We grep out `Entering directory' and `Leaving directory'
     769# messages which can occur if `w' ends up in MAKEFLAGS.
     770# In particular we don't look at `^make:' because GNU make might
     771# be invoked under some other name (usually "gmake"), in which
     772# case it prints its new name instead of `make'.
     773if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
     774   am__include=include
     775   am__quote=
     776   _am_result=GNU
     777fi
     778# Now try BSD make style include.
     779if test "$am__include" = "#"; then
     780   echo '.include "confinc"' > confmf
     781   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
     782      am__include=.include
     783      am__quote="\""
     784      _am_result=BSD
     785   fi
     786fi
     787AC_SUBST(am__include)
     788AC_SUBST(am__quote)
     789AC_MSG_RESULT($_am_result)
     790rm -f confinc confmf
     791])
     792
     793# AM_CONDITIONAL                                              -*- Autoconf -*-
     794
     795# Copyright 1997, 2000, 2001 Free Software Foundation, Inc.
     796
     797# This program is free software; you can redistribute it and/or modify
     798# it under the terms of the GNU General Public License as published by
     799# the Free Software Foundation; either version 2, or (at your option)
     800# any later version.
     801
     802# This program is distributed in the hope that it will be useful,
     803# but WITHOUT ANY WARRANTY; without even the implied warranty of
     804# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     805# GNU General Public License for more details.
     806
     807# You should have received a copy of the GNU General Public License
     808# along with this program; if not, write to the Free Software
     809# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
     810# 02111-1307, USA.
     811
     812# serial 5
     813
     814AC_PREREQ(2.52)
     815
     816# AM_CONDITIONAL(NAME, SHELL-CONDITION)
     817# -------------------------------------
     818# Define a conditional.
     819AC_DEFUN([AM_CONDITIONAL],
     820[ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
     821        [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
     822AC_SUBST([$1_TRUE])
     823AC_SUBST([$1_FALSE])
     824if $2; then
     825  $1_TRUE=
     826  $1_FALSE='#'
     827else
     828  $1_TRUE='#'
     829  $1_FALSE=
     830fi
     831AC_CONFIG_COMMANDS_PRE(
     832[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
     833  AC_MSG_ERROR([conditional \"$1\" was never defined.
     834Usually this means the macro was only invoked conditionally.])
     835fi])])
     836
     837# libtool.m4 - Configure libtool for the host system. -*-Shell-script-*-
     838
     839# serial 46 AC_PROG_LIBTOOL
     840
    31841AC_DEFUN([AC_PROG_LIBTOOL],
    32 [AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
    33 dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
    34 dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
    35   AC_PROVIDE_IFELSE([AC_PROG_CXX],
    36     [AC_LIBTOOL_CXX],
    37     [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
    38   ])])
    39 dnl And a similar setup for Fortran 77 support
    40   AC_PROVIDE_IFELSE([AC_PROG_F77],
    41     [AC_LIBTOOL_F77],
    42     [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
    43 ])])
    44 
    45 dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
    46 dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
    47 dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
    48   AC_PROVIDE_IFELSE([AC_PROG_GCJ],
    49     [AC_LIBTOOL_GCJ],
    50     [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
    51       [AC_LIBTOOL_GCJ],
    52       [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
    53         [AC_LIBTOOL_GCJ],
    54       [ifdef([AC_PROG_GCJ],
    55              [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
    56        ifdef([A][M_PROG_GCJ],
    57              [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
    58        ifdef([LT_AC_PROG_GCJ],
    59              [define([LT_AC_PROG_GCJ],
    60                 defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
    61 ])])# AC_PROG_LIBTOOL
    62 
    63 
    64 # _AC_PROG_LIBTOOL
    65 # ----------------
    66 AC_DEFUN([_AC_PROG_LIBTOOL],
    67842[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
    68 AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
    69 AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
    70 AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
    71843
    72844# This can be used to rebuild libtool when needed
     
    79851# Prevent multiple expansion
    80852define([AC_PROG_LIBTOOL], [])
    81 ])# _AC_PROG_LIBTOOL
    82 
    83 
    84 # AC_LIBTOOL_SETUP
    85 # ----------------
     853])
     854
    86855AC_DEFUN([AC_LIBTOOL_SETUP],
    87 [AC_PREREQ(2.50)dnl
     856[AC_PREREQ(2.13)dnl
    88857AC_REQUIRE([AC_ENABLE_SHARED])dnl
    89858AC_REQUIRE([AC_ENABLE_STATIC])dnl
     
    95864AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
    96865AC_REQUIRE([AC_PROG_NM])dnl
     866AC_REQUIRE([LT_AC_PROG_SED])dnl
    97867
    98868AC_REQUIRE([AC_PROG_LN_S])dnl
    99869AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
    100 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
    101870AC_REQUIRE([AC_OBJEXT])dnl
    102871AC_REQUIRE([AC_EXEEXT])dnl
    103872dnl
    104873
    105 AC_LIBTOOL_SYS_MAX_CMD_LEN
    106 AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
    107 AC_LIBTOOL_OBJDIR
    108 
    109 AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
    110874_LT_AC_PROG_ECHO_BACKSLASH
    111 
    112 case $host_os in
    113 aix3*)
    114   # AIX sometimes has problems with the GCC collect2 program.  For some
    115   # reason, if we set the COLLECT_NAMES environment variable, the problems
    116   # vanish in a puff of smoke.
    117   if test "X${COLLECT_NAMES+set}" != Xset; then
    118     COLLECT_NAMES=
    119     export COLLECT_NAMES
    120   fi
    121   ;;
    122 esac
    123 
    124 # Sed substitution that helps us do robust quoting.  It backslashifies
    125 # metacharacters that are still active within double-quoted strings.
    126 Xsed='sed -e s/^X//'
    127 [sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
    128 
    129 # Same as above, but do not quote variable references.
    130 [double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
    131 
    132 # Sed substitution to delay expansion of an escaped shell variable in a
    133 # double_quote_subst'ed string.
    134 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
    135 
    136 # Sed substitution to avoid accidental globbing in evaled expressions
    137 no_glob_subst='s/\*/\\\*/g'
    138 
    139 # Constants:
    140 rm="rm -f"
    141 
    142 # Global variables:
    143 default_ofile=libtool
    144 can_build_shared=yes
    145 
    146 # All known linkers require a `.a' archive for static linking (except M$VC,
    147 # which needs '.lib').
    148 libext=a
    149 ltmain="$ac_aux_dir/ltmain.sh"
    150 ofile="$default_ofile"
    151 with_gnu_ld="$lt_cv_prog_gnu_ld"
    152 
    153 AC_CHECK_TOOL(AR, ar, false)
    154 AC_CHECK_TOOL(RANLIB, ranlib, :)
    155 AC_CHECK_TOOL(STRIP, strip, :)
    156 
    157 old_CC="$CC"
    158 old_CFLAGS="$CFLAGS"
    159 
    160 # Set sane defaults for various variables
    161 test -z "$AR" && AR=ar
    162 test -z "$AR_FLAGS" && AR_FLAGS=cru
    163 test -z "$AS" && AS=as
    164 test -z "$CC" && CC=cc
    165 test -z "$LTCC" && LTCC=$CC
    166 test -z "$DLLTOOL" && DLLTOOL=dlltool
    167 test -z "$LD" && LD=ld
    168 test -z "$LN_S" && LN_S="ln -s"
    169 test -z "$MAGIC_CMD" && MAGIC_CMD=file
    170 test -z "$NM" && NM=nm
    171 test -z "$SED" && SED=sed
    172 test -z "$OBJDUMP" && OBJDUMP=objdump
    173 test -z "$RANLIB" && RANLIB=:
    174 test -z "$STRIP" && STRIP=:
    175 test -z "$ac_objext" && ac_objext=o
    176 
    177 # Determine commands to create old-style static archives.
    178 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
    179 old_postinstall_cmds='chmod 644 $oldlib'
    180 old_postuninstall_cmds=
    181 
    182 if test -n "$RANLIB"; then
    183   case $host_os in
    184   openbsd*)
    185     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
    186     ;;
    187   *)
    188     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
    189     ;;
    190   esac
    191   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
    192 fi
    193 
    194875# Only perform the check for file, if the check method requires it
    195876case $deplibs_check_method in
     
    201882esac
    202883
    203 AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
    204 AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
     884AC_CHECK_TOOL(RANLIB, ranlib, :)
     885AC_CHECK_TOOL(STRIP, strip, :)
     886
     887ifdef([AC_PROVIDE_AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
     888ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL],
    205889enable_win32_dll=yes, enable_win32_dll=no)
    206890
    207 AC_ARG_ENABLE([libtool-lock],
    208     [AC_HELP_STRING([--disable-libtool-lock],
    209         [avoid locking (might break parallel builds)])])
     891AC_ARG_ENABLE(libtool-lock,
     892  [  --disable-libtool-lock  avoid locking (might break parallel builds)])
    210893test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
    211894
    212 AC_ARG_WITH([pic],
    213     [AC_HELP_STRING([--with-pic],
    214         [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
    215     [pic_mode="$withval"],
    216     [pic_mode=default])
    217 test -z "$pic_mode" && pic_mode=default
    218 
    219 # Use C for the default configuration in the libtool script
    220 tagname=
    221 AC_LIBTOOL_LANG_C_CONFIG
    222 _LT_AC_TAGCONFIG
    223 ])# AC_LIBTOOL_SETUP
    224 
    225 
    226 # _LT_AC_SYS_COMPILER
    227 # -------------------
    228 AC_DEFUN([_LT_AC_SYS_COMPILER],
    229 [AC_REQUIRE([AC_PROG_CC])dnl
    230 
    231 # If no C compiler was specified, use CC.
    232 LTCC=${LTCC-"$CC"}
    233 
    234 # Allow CC to be a program name with arguments.
    235 compiler=$CC
    236 ])# _LT_AC_SYS_COMPILER
    237 
    238 
    239 # _LT_AC_SYS_LIBPATH_AIX
    240 # ----------------------
    241 # Links a minimal program and checks the executable
    242 # for the system default hardcoded library path. In most cases,
    243 # this is /usr/lib:/lib, but when the MPI compilers are used
    244 # the location of the communication and MPI libs are included too.
    245 # If we don't find anything, use the default library path according
    246 # to the aix ld manual.
    247 AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
    248 [AC_LINK_IFELSE(AC_LANG_PROGRAM,[
    249 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
    250 }'`
    251 # Check for a 64-bit object if we didn't find anything.
    252 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; }
    253 }'`; fi],[])
    254 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
    255 ])# _LT_AC_SYS_LIBPATH_AIX
    256 
    257 
    258 # _LT_AC_SHELL_INIT(ARG)
    259 # ----------------------
    260 AC_DEFUN([_LT_AC_SHELL_INIT],
    261 [ifdef([AC_DIVERSION_NOTICE],
    262              [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
    263          [AC_DIVERT_PUSH(NOTICE)])
    264 $1
    265 AC_DIVERT_POP
    266 ])# _LT_AC_SHELL_INIT
    267 
     895# Some flags need to be propagated to the compiler or linker for good
     896# libtool support.
     897case $host in
     898*-*-irix6*)
     899  # Find out which ABI we are using.
     900  echo '[#]line __oline__ "configure"' > conftest.$ac_ext
     901  if AC_TRY_EVAL(ac_compile); then
     902    case `/usr/bin/file conftest.$ac_objext` in
     903    *32-bit*)
     904      LD="${LD-ld} -32"
     905      ;;
     906    *N32*)
     907      LD="${LD-ld} -n32"
     908      ;;
     909    *64-bit*)
     910      LD="${LD-ld} -64"
     911      ;;
     912    esac
     913  fi
     914  rm -rf conftest*
     915  ;;
     916
     917*-*-sco3.2v5*)
     918  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
     919  SAVE_CFLAGS="$CFLAGS"
     920  CFLAGS="$CFLAGS -belf"
     921  AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
     922    [AC_LANG_SAVE
     923     AC_LANG_C
     924     AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
     925     AC_LANG_RESTORE])
     926  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
     927    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
     928    CFLAGS="$SAVE_CFLAGS"
     929  fi
     930  ;;
     931
     932ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL],
     933[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
     934  AC_CHECK_TOOL(DLLTOOL, dlltool, false)
     935  AC_CHECK_TOOL(AS, as, false)
     936  AC_CHECK_TOOL(OBJDUMP, objdump, false)
     937
     938  # recent cygwin and mingw systems supply a stub DllMain which the user
     939  # can override, but on older systems we have to supply one
     940  AC_CACHE_CHECK([if libtool should supply DllMain function], lt_cv_need_dllmain,
     941    [AC_TRY_LINK([],
     942      [extern int __attribute__((__stdcall__)) DllMain(void*, int, void*);
     943      DllMain (0, 0, 0);],
     944      [lt_cv_need_dllmain=no],[lt_cv_need_dllmain=yes])])
     945
     946  case $host/$CC in
     947  *-*-cygwin*/gcc*-mno-cygwin*|*-*-mingw*)
     948    # old mingw systems require "-dll" to link a DLL, while more recent ones
     949    # require "-mdll"
     950    SAVE_CFLAGS="$CFLAGS"
     951    CFLAGS="$CFLAGS -mdll"
     952    AC_CACHE_CHECK([how to link DLLs], lt_cv_cc_dll_switch,
     953      [AC_TRY_LINK([], [], [lt_cv_cc_dll_switch=-mdll],[lt_cv_cc_dll_switch=-dll])])
     954    CFLAGS="$SAVE_CFLAGS" ;;
     955  *-*-cygwin* | *-*-pw32*)
     956    # cygwin systems need to pass --dll to the linker, and not link
     957    # crt.o which will require a WinMain@16 definition.
     958    lt_cv_cc_dll_switch="-Wl,--dll -nostartfiles" ;;
     959  esac
     960  ;;
     961  ])
     962esac
     963
     964_LT_AC_LTCONFIG_HACK
     965
     966])
     967
     968# AC_LIBTOOL_HEADER_ASSERT
     969# ------------------------
     970AC_DEFUN([AC_LIBTOOL_HEADER_ASSERT],
     971[AC_CACHE_CHECK([whether $CC supports assert without backlinking],
     972    [lt_cv_func_assert_works],
     973    [case $host in
     974    *-*-solaris*)
     975      if test "$GCC" = yes && test "$with_gnu_ld" != yes; then
     976        case `$CC --version 2>/dev/null` in
     977        [[12]].*) lt_cv_func_assert_works=no ;;
     978        *)        lt_cv_func_assert_works=yes ;;
     979        esac
     980      fi
     981      ;;
     982    esac])
     983
     984if test "x$lt_cv_func_assert_works" = xyes; then
     985  AC_CHECK_HEADERS(assert.h)
     986fi
     987])# AC_LIBTOOL_HEADER_ASSERT
     988
     989# _LT_AC_CHECK_DLFCN
     990# --------------------
     991AC_DEFUN([_LT_AC_CHECK_DLFCN],
     992[AC_CHECK_HEADERS(dlfcn.h)
     993])# _LT_AC_CHECK_DLFCN
     994
     995# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
     996# ---------------------------------
     997AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
     998[AC_REQUIRE([AC_CANONICAL_HOST])
     999AC_REQUIRE([AC_PROG_NM])
     1000AC_REQUIRE([AC_OBJEXT])
     1001# Check for command to grab the raw symbol name followed by C symbol from nm.
     1002AC_MSG_CHECKING([command to parse $NM output])
     1003AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], [dnl
     1004
     1005# These are sane defaults that work on at least a few old systems.
     1006# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
     1007
     1008# Character class describing NM global symbol codes.
     1009symcode='[[BCDEGRST]]'
     1010
     1011# Regexp to match symbols that can be accessed directly from C.
     1012sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
     1013
     1014# Transform the above into a raw symbol and a C symbol.
     1015symxfrm='\1 \2\3 \3'
     1016
     1017# Transform an extracted symbol line into a proper C declaration
     1018lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
     1019
     1020# Transform an extracted symbol line into symbol name and symbol address
     1021lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
     1022
     1023# Define system-specific variables.
     1024case $host_os in
     1025aix*)
     1026  symcode='[[BCDT]]'
     1027  ;;
     1028cygwin* | mingw* | pw32*)
     1029  symcode='[[ABCDGISTW]]'
     1030  ;;
     1031hpux*) # Its linker distinguishes data from code symbols
     1032  lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
     1033  lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
     1034  ;;
     1035irix* | nonstopux*)
     1036  symcode='[[BCDEGRST]]'
     1037  ;;
     1038osf*)
     1039  symcode='[[BCDEGQRST]]'
     1040  ;;
     1041solaris* | sysv5*)
     1042  symcode='[[BDT]]'
     1043  ;;
     1044sysv4)
     1045  symcode='[[DFNSTU]]'
     1046  ;;
     1047esac
     1048
     1049# Handle CRLF in mingw tool chain
     1050opt_cr=
     1051case $host_os in
     1052mingw*)
     1053  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
     1054  ;;
     1055esac
     1056
     1057# If we're using GNU nm, then use its standard symbol codes.
     1058if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
     1059  symcode='[[ABCDGISTW]]'
     1060fi
     1061
     1062# Try without a prefix undercore, then with it.
     1063for ac_symprfx in "" "_"; do
     1064
     1065  # Write the raw and C identifiers.
     1066lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[        ]]\($symcode$symcode*\)[[       ]][[    ]]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
     1067
     1068  # Check to see that the pipe works correctly.
     1069  pipe_works=no
     1070  rm -f conftest*
     1071  cat > conftest.$ac_ext <<EOF
     1072#ifdef __cplusplus
     1073extern "C" {
     1074#endif
     1075char nm_test_var;
     1076void nm_test_func(){}
     1077#ifdef __cplusplus
     1078}
     1079#endif
     1080int main(){nm_test_var='a';nm_test_func();return(0);}
     1081EOF
     1082
     1083  if AC_TRY_EVAL(ac_compile); then
     1084    # Now try to grab the symbols.
     1085    nlist=conftest.nm
     1086    if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
     1087      # Try sorting and uniquifying the output.
     1088      if sort "$nlist" | uniq > "$nlist"T; then
     1089        mv -f "$nlist"T "$nlist"
     1090      else
     1091        rm -f "$nlist"T
     1092      fi
     1093
     1094      # Make sure that we snagged all the symbols we need.
     1095      if egrep ' nm_test_var$' "$nlist" >/dev/null; then
     1096        if egrep ' nm_test_func$' "$nlist" >/dev/null; then
     1097          cat <<EOF > conftest.$ac_ext
     1098#ifdef __cplusplus
     1099extern "C" {
     1100#endif
     1101
     1102EOF
     1103          # Now generate the symbol file.
     1104          eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
     1105
     1106          cat <<EOF >> conftest.$ac_ext
     1107#if defined (__STDC__) && __STDC__
     1108# define lt_ptr void *
     1109#else
     1110# define lt_ptr char *
     1111# define const
     1112#endif
     1113
     1114/* The mapping between symbol names and symbols. */
     1115const struct {
     1116  const char *name;
     1117  lt_ptr address;
     1118}
     1119lt_preloaded_symbols[[]] =
     1120{
     1121EOF
     1122          sed "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
     1123          cat <<\EOF >> conftest.$ac_ext
     1124  {0, (lt_ptr) 0}
     1125};
     1126
     1127#ifdef __cplusplus
     1128}
     1129#endif
     1130EOF
     1131          # Now try linking the two files.
     1132          mv conftest.$ac_objext conftstm.$ac_objext
     1133          save_LIBS="$LIBS"
     1134          save_CFLAGS="$CFLAGS"
     1135          LIBS="conftstm.$ac_objext"
     1136          CFLAGS="$CFLAGS$no_builtin_flag"
     1137          if AC_TRY_EVAL(ac_link) && test -s conftest$ac_exeext; then
     1138            pipe_works=yes
     1139          fi
     1140          LIBS="$save_LIBS"
     1141          CFLAGS="$save_CFLAGS"
     1142        else
     1143          echo "cannot find nm_test_func in $nlist" >&AC_FD_CC
     1144        fi
     1145      else
     1146        echo "cannot find nm_test_var in $nlist" >&AC_FD_CC
     1147      fi
     1148    else
     1149      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AC_FD_CC
     1150    fi
     1151  else
     1152    echo "$progname: failed program was:" >&AC_FD_CC
     1153    cat conftest.$ac_ext >&5
     1154  fi
     1155  rm -f conftest* conftst*
     1156
     1157  # Do not use the global_symbol_pipe unless it works.
     1158  if test "$pipe_works" = yes; then
     1159    break
     1160  else
     1161    lt_cv_sys_global_symbol_pipe=
     1162  fi
     1163done
     1164])
     1165global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
     1166if test -z "$lt_cv_sys_global_symbol_pipe"; then
     1167  global_symbol_to_cdecl=
     1168  global_symbol_to_c_name_address=
     1169else
     1170  global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
     1171  global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
     1172fi
     1173if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
     1174then
     1175  AC_MSG_RESULT(failed)
     1176else
     1177  AC_MSG_RESULT(ok)
     1178fi
     1179]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
     1180
     1181# _LT_AC_LIBTOOL_SYS_PATH_SEPARATOR
     1182# ---------------------------------
     1183AC_DEFUN([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR],
     1184[# Find the correct PATH separator.  Usually this is `:', but
     1185# DJGPP uses `;' like DOS.
     1186if test "X${PATH_SEPARATOR+set}" != Xset; then
     1187  UNAME=${UNAME-`uname 2>/dev/null`}
     1188  case X$UNAME in
     1189    *-DOS) lt_cv_sys_path_separator=';' ;;
     1190    *)     lt_cv_sys_path_separator=':' ;;
     1191  esac
     1192  PATH_SEPARATOR=$lt_cv_sys_path_separator
     1193fi
     1194])# _LT_AC_LIBTOOL_SYS_PATH_SEPARATOR
    2681195
    2691196# _LT_AC_PROG_ECHO_BACKSLASH
     
    2721199# will find an echo command which doesn't interpret backslashes.
    2731200AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
    274 [_LT_AC_SHELL_INIT([
     1201[ifdef([AC_DIVERSION_NOTICE], [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
     1202                              [AC_DIVERT_PUSH(NOTICE)])
     1203_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR
     1204
    2751205# Check that we are running under the correct shell.
    2761206SHELL=${CONFIG_SHELL-/bin/sh}
     
    2901220  # Avoid inline document here, it may be left over
    2911221  :
    292 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
     1222elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
    2931223  # Yippee, $echo works!
    2941224  :
     
    3021232  shift
    3031233  cat <<EOF
    304 [$]*
     1234$*
    3051235EOF
    3061236  exit 0
     
    3361266  # So, first we look for a working echo in the user's PATH.
    3371267
    338   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
     1268  IFS="${IFS=   }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
    3391269  for dir in $PATH /usr/ucb; do
    340     IFS="$lt_save_ifs"
    3411270    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
    3421271       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
     
    3471276    fi
    3481277  done
    349   IFS="$lt_save_ifs"
     1278  IFS="$save_ifs"
    3501279
    3511280  if test "X$echo" = Xecho; then
     
    4201349
    4211350AC_SUBST(ECHO)
    422 ])])# _LT_AC_PROG_ECHO_BACKSLASH
    423 
    424 
    425 # _LT_AC_LOCK
    426 # -----------
    427 AC_DEFUN([_LT_AC_LOCK],
    428 [AC_ARG_ENABLE([libtool-lock],
    429     [AC_HELP_STRING([--disable-libtool-lock],
    430         [avoid locking (might break parallel builds)])])
    431 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
    432 
    433 # Some flags need to be propagated to the compiler or linker for good
    434 # libtool support.
    435 case $host in
    436 ia64-*-hpux*)
    437   # Find out which ABI we are using.
    438   echo 'int i;' > conftest.$ac_ext
    439   if AC_TRY_EVAL(ac_compile); then
    440     case `/usr/bin/file conftest.$ac_objext` in
    441     *ELF-32*)
    442       HPUX_IA64_MODE="32"
    443       ;;
    444     *ELF-64*)
    445       HPUX_IA64_MODE="64"
    446       ;;
    447     esac
    448   fi
    449   rm -rf conftest*
    450   ;;
    451 *-*-irix6*)
    452   # Find out which ABI we are using.
    453   echo '[#]line __oline__ "configure"' > conftest.$ac_ext
    454   if AC_TRY_EVAL(ac_compile); then
    455    if test "$lt_cv_prog_gnu_ld" = yes; then
    456     case `/usr/bin/file conftest.$ac_objext` in
    457     *32-bit*)
    458       LD="${LD-ld} -melf32bsmip"
    459       ;;
    460     *N32*)
    461       LD="${LD-ld} -melf32bmipn32"
    462       ;;
    463     *64-bit*)
    464       LD="${LD-ld} -melf64bmip"
    465       ;;
    466     esac
    467    else
    468     case `/usr/bin/file conftest.$ac_objext` in
    469     *32-bit*)
    470       LD="${LD-ld} -32"
    471       ;;
    472     *N32*)
    473       LD="${LD-ld} -n32"
    474       ;;
    475     *64-bit*)
    476       LD="${LD-ld} -64"
    477       ;;
    478     esac
    479    fi
    480   fi
    481   rm -rf conftest*
    482   ;;
    483 
    484 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
    485   # Find out which ABI we are using.
    486   echo 'int i;' > conftest.$ac_ext
    487   if AC_TRY_EVAL(ac_compile); then
    488     case "`/usr/bin/file conftest.o`" in
    489     *32-bit*)
    490       case $host in
    491         x86_64-*linux*)
    492           LD="${LD-ld} -m elf_i386"
    493           ;;
    494         ppc64-*linux*|powerpc64-*linux*)
    495           LD="${LD-ld} -m elf32ppclinux"
    496           ;;
    497         s390x-*linux*)
    498           LD="${LD-ld} -m elf_s390"
    499           ;;
    500         sparc64-*linux*)
    501           LD="${LD-ld} -m elf32_sparc"
    502           ;;
    503       esac
    504       ;;
    505     *64-bit*)
    506       case $host in
    507         x86_64-*linux*)
    508           LD="${LD-ld} -m elf_x86_64"
    509           ;;
    510         ppc*-*linux*|powerpc*-*linux*)
    511           LD="${LD-ld} -m elf64ppc"
    512           ;;
    513         s390*-*linux*)
    514           LD="${LD-ld} -m elf64_s390"
    515           ;;
    516         sparc*-*linux*)
    517           LD="${LD-ld} -m elf64_sparc"
    518           ;;
    519       esac
    520       ;;
    521     esac
    522   fi
    523   rm -rf conftest*
    524   ;;
    525 
    526 *-*-sco3.2v5*)
    527   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
    528   SAVE_CFLAGS="$CFLAGS"
    529   CFLAGS="$CFLAGS -belf"
    530   AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
    531     [AC_LANG_PUSH(C)
    532      AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
    533      AC_LANG_POP])
    534   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
    535     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
    536     CFLAGS="$SAVE_CFLAGS"
    537   fi
    538   ;;
    539 AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
    540 [*-*-cygwin* | *-*-mingw* | *-*-pw32*)
    541   AC_CHECK_TOOL(DLLTOOL, dlltool, false)
    542   AC_CHECK_TOOL(AS, as, false)
    543   AC_CHECK_TOOL(OBJDUMP, objdump, false)
    544   ;;
    545   ])
    546 esac
    547 
    548 need_locks="$enable_libtool_lock"
    549 
    550 ])# _LT_AC_LOCK
    551 
    552 
    553 # AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
    554 #               [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
    555 # ----------------------------------------------------------------
    556 # Check whether the given compiler option works
    557 AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
    558 [AC_REQUIRE([LT_AC_PROG_SED])
    559 AC_CACHE_CHECK([$1], [$2],
    560   [$2=no
    561   ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
    562    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
    563    lt_compiler_flag="$3"
    564    # Insert the option either (1) after the last *FLAGS variable, or
    565    # (2) before a word containing "conftest.", or (3) at the end.
    566    # Note that $ac_compile itself does not contain backslashes and begins
    567    # with a dollar sign (not a hyphen), so the echo should work correctly.
    568    # The option is referenced via a variable to avoid confusing sed.
    569    lt_compile=`echo "$ac_compile" | $SED \
    570    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
    571    -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
    572    -e 's:$: $lt_compiler_flag:'`
    573    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
    574    (eval "$lt_compile" 2>conftest.err)
    575    ac_status=$?
    576    cat conftest.err >&AS_MESSAGE_LOG_FD
    577    echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
    578    if (exit $ac_status) && test -s "$ac_outfile"; then
    579      # The compiler can only warn and ignore the option if not recognized
    580      # So say no if there are warnings
    581      if test ! -s conftest.err; then
    582        $2=yes
    583      fi
    584    fi
    585    $rm conftest*
    586 ])
    587 
    588 if test x"[$]$2" = xyes; then
    589     ifelse([$5], , :, [$5])
    590 else
    591     ifelse([$6], , :, [$6])
    592 fi
    593 ])# AC_LIBTOOL_COMPILER_OPTION
    594 
    595 
    596 # AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
    597 #                          [ACTION-SUCCESS], [ACTION-FAILURE])
    598 # ------------------------------------------------------------
    599 # Check whether the given compiler option works
    600 AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
    601 [AC_CACHE_CHECK([$1], [$2],
    602   [$2=no
    603    save_LDFLAGS="$LDFLAGS"
    604    LDFLAGS="$LDFLAGS $3"
    605    printf "$lt_simple_link_test_code" > conftest.$ac_ext
    606    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
    607      # The compiler can only warn and ignore the option if not recognized
    608      # So say no if there are warnings
    609      if test -s conftest.err; then
    610        # Append any errors to the config.log.
    611        cat conftest.err 1>&AS_MESSAGE_LOG_FD
    612      else
    613        $2=yes
    614      fi
    615    fi
    616    $rm conftest*
    617    LDFLAGS="$save_LDFLAGS"
    618 ])
    619 
    620 if test x"[$]$2" = xyes; then
    621     ifelse([$4], , :, [$4])
    622 else
    623     ifelse([$5], , :, [$5])
    624 fi
    625 ])# AC_LIBTOOL_LINKER_OPTION
    626 
    627 
    628 # AC_LIBTOOL_SYS_MAX_CMD_LEN
    629 # --------------------------
    630 AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
    631 [# find the maximum length of command line arguments
    632 AC_MSG_CHECKING([the maximum length of command line arguments])
    633 AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
    634   i=0
    635   teststring="ABCD"
    636 
    637   case $build_os in
    638   msdosdjgpp*)
    639     # On DJGPP, this test can blow up pretty badly due to problems in libc
    640     # (any single argument exceeding 2000 bytes causes a buffer overrun
    641     # during glob expansion).  Even if it were fixed, the result of this
    642     # check would be larger than it should be.
    643     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
    644     ;;
    645 
    646   gnu*)
    647     # Under GNU Hurd, this test is not required because there is
    648     # no limit to the length of command line arguments.
    649     # Libtool will interpret -1 as no limit whatsoever
    650     lt_cv_sys_max_cmd_len=-1;
    651     ;;
    652 
    653   cygwin* | mingw*)
    654     # On Win9x/ME, this test blows up -- it succeeds, but takes
    655     # about 5 minutes as the teststring grows exponentially.
    656     # Worse, since 9x/ME are not pre-emptively multitasking,
    657     # you end up with a "frozen" computer, even though with patience
    658     # the test eventually succeeds (with a max line length of 256k).
    659     # Instead, let's just punt: use the minimum linelength reported by
    660     # all of the supported platforms: 8192 (on NT/2K/XP).
    661     lt_cv_sys_max_cmd_len=8192;
    662     ;;
    663 
    664   amigaos*)
    665     # On AmigaOS with pdksh, this test takes hours, literally.
    666     # So we just punt and use a minimum line length of 8192.
    667     lt_cv_sys_max_cmd_len=8192;
    668     ;;
    669 
    670  *)
    671     # If test is not a shell built-in, we'll probably end up computing a
    672     # maximum length that is only half of the actual maximum length, but
    673     # we can't tell.
    674     while (test "X"`$CONFIG_SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
    675                = "XX$teststring") >/dev/null 2>&1 &&
    676             new_result=`expr "X$teststring" : ".*" 2>&1` &&
    677             lt_cv_sys_max_cmd_len=$new_result &&
    678             test $i != 17 # 1/2 MB should be enough
    679     do
    680       i=`expr $i + 1`
    681       teststring=$teststring$teststring
    682     done
    683     teststring=
    684     # Add a significant safety factor because C++ compilers can tack on massive
    685     # amounts of additional arguments before passing them to the linker.
    686     # It appears as though 1/2 is a usable value.
    687     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
    688     ;;
    689   esac
    690 ])
    691 if test -n $lt_cv_sys_max_cmd_len ; then
    692   AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
    693 else
    694   AC_MSG_RESULT(none)
    695 fi
    696 ])# AC_LIBTOOL_SYS_MAX_CMD_LEN
    697 
    698 
    699 # _LT_AC_CHECK_DLFCN
    700 # --------------------
    701 AC_DEFUN([_LT_AC_CHECK_DLFCN],
    702 [AC_CHECK_HEADERS(dlfcn.h)dnl
    703 ])# _LT_AC_CHECK_DLFCN
    704 
     1351AC_DIVERT_POP
     1352])# _LT_AC_PROG_ECHO_BACKSLASH
    7051353
    7061354# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
     
    7081356# ------------------------------------------------------------------
    7091357AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
    710 [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
    711 if test "$cross_compiling" = yes; then :
     1358[if test "$cross_compiling" = yes; then :
    7121359  [$4]
    7131360else
     1361  AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
    7141362  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
    7151363  lt_status=$lt_dlunknown
     
    7921440])# _LT_AC_TRY_DLOPEN_SELF
    7931441
    794 
    7951442# AC_LIBTOOL_DLOPEN_SELF
    7961443# -------------------
    7971444AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
    798 [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
    799 if test "x$enable_dlopen" != xyes; then
     1445[if test "x$enable_dlopen" != xyes; then
    8001446  enable_dlopen=unknown
    8011447  enable_dlopen_self=unknown
     
    8121458    ;;
    8131459
    814   mingw* | pw32*)
     1460  cygwin* | mingw* | pw32*)
    8151461    lt_cv_dlopen="LoadLibrary"
    8161462    lt_cv_dlopen_libs=
    8171463   ;;
    8181464
    819   cygwin*)
    820     lt_cv_dlopen="dlopen"
    821     lt_cv_dlopen_libs=
    822    ;;
    823 
    824   darwin*)
    825   # if libdl is installed we need to link against it
    826     AC_CHECK_LIB([dl], [dlopen],
    827                 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
    828     lt_cv_dlopen="dyld"
    829     lt_cv_dlopen_libs=
    830     lt_cv_dlopen_self=yes
    831     ])
    832    ;;
    833 
    8341465  *)
    8351466    AC_CHECK_FUNC([shl_load],
    836           [lt_cv_dlopen="shl_load"],
     1467          [lt_cv_dlopen="shl_load"],
    8371468      [AC_CHECK_LIB([dld], [shl_load],
    838             [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
     1469            [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
    8391470        [AC_CHECK_FUNC([dlopen],
    8401471              [lt_cv_dlopen="dlopen"],
    8411472          [AC_CHECK_LIB([dl], [dlopen],
    842                 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
     1473                [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
    8431474            [AC_CHECK_LIB([svld], [dlopen],
    844                   [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
     1475                  [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
    8451476              [AC_CHECK_LIB([dld], [dld_link],
    846                     [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
     1477                    [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
    8471478              ])
    8481479            ])
     
    8621493  dlopen)
    8631494    save_CPPFLAGS="$CPPFLAGS"
     1495    AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
    8641496    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
    8651497
     
    9051537])# AC_LIBTOOL_DLOPEN_SELF
    9061538
    907 
    908 # AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
    909 # ---------------------------------
    910 # Check to see if options -c and -o are simultaneously supported by compiler
    911 AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
    912 [AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
    913 AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
    914   [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
    915   [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
    916    $rm -r conftest 2>/dev/null
    917    mkdir conftest
    918    cd conftest
    919    mkdir out
    920    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
    921 
    922    lt_compiler_flag="-o out/conftest2.$ac_objext"
    923    # Insert the option either (1) after the last *FLAGS variable, or
    924    # (2) before a word containing "conftest.", or (3) at the end.
    925    # Note that $ac_compile itself does not contain backslashes and begins
    926    # with a dollar sign (not a hyphen), so the echo should work correctly.
    927    lt_compile=`echo "$ac_compile" | $SED \
    928    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
    929    -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
    930    -e 's:$: $lt_compiler_flag:'`
    931    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
    932    (eval "$lt_compile" 2>out/conftest.err)
    933    ac_status=$?
    934    cat out/conftest.err >&AS_MESSAGE_LOG_FD
    935    echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
    936    if (exit $ac_status) && test -s out/conftest2.$ac_objext
    937    then
    938      # The compiler can only warn and ignore the option if not recognized
    939      # So say no if there are warnings
    940      if test ! -s out/conftest.err; then
    941        _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
    942      fi
    943    fi
    944    chmod u+w .
    945    $rm conftest*
    946    # SGI C++ compiler will create directory out/ii_files/ for
    947    # template instantiation
    948    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
    949    $rm out/* && rmdir out
    950    cd ..
    951    rmdir conftest
    952    $rm conftest*
     1539AC_DEFUN([_LT_AC_LTCONFIG_HACK],
     1540[AC_REQUIRE([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])dnl
     1541# Sed substitution that helps us do robust quoting.  It backslashifies
     1542# metacharacters that are still active within double-quoted strings.
     1543Xsed='sed -e s/^X//'
     1544sed_quote_subst='s/\([[\\"\\`$\\\\]]\)/\\\1/g'
     1545
     1546# Same as above, but do not quote variable references.
     1547double_quote_subst='s/\([[\\"\\`\\\\]]\)/\\\1/g'
     1548
     1549# Sed substitution to delay expansion of an escaped shell variable in a
     1550# double_quote_subst'ed string.
     1551delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
     1552
     1553# Constants:
     1554rm="rm -f"
     1555
     1556# Global variables:
     1557default_ofile=libtool
     1558can_build_shared=yes
     1559
     1560# All known linkers require a `.a' archive for static linking (except M$VC,
     1561# which needs '.lib').
     1562libext=a
     1563ltmain="$ac_aux_dir/ltmain.sh"
     1564ofile="$default_ofile"
     1565with_gnu_ld="$lt_cv_prog_gnu_ld"
     1566need_locks="$enable_libtool_lock"
     1567
     1568old_CC="$CC"
     1569old_CFLAGS="$CFLAGS"
     1570
     1571# Set sane defaults for various variables
     1572test -z "$AR" && AR=ar
     1573test -z "$AR_FLAGS" && AR_FLAGS=cru
     1574test -z "$AS" && AS=as
     1575test -z "$CC" && CC=cc
     1576test -z "$DLLTOOL" && DLLTOOL=dlltool
     1577test -z "$LD" && LD=ld
     1578test -z "$LN_S" && LN_S="ln -s"
     1579test -z "$MAGIC_CMD" && MAGIC_CMD=file
     1580test -z "$NM" && NM=nm
     1581test -z "$OBJDUMP" && OBJDUMP=objdump
     1582test -z "$RANLIB" && RANLIB=:
     1583test -z "$STRIP" && STRIP=:
     1584test -z "$ac_objext" && ac_objext=o
     1585
     1586if test x"$host" != x"$build"; then
     1587  ac_tool_prefix=${host_alias}-
     1588else
     1589  ac_tool_prefix=
     1590fi
     1591
     1592# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
     1593case $host_os in
     1594linux-gnu*) ;;
     1595linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
     1596esac
     1597
     1598case $host_os in
     1599aix3*)
     1600  # AIX sometimes has problems with the GCC collect2 program.  For some
     1601  # reason, if we set the COLLECT_NAMES environment variable, the problems
     1602  # vanish in a puff of smoke.
     1603  if test "X${COLLECT_NAMES+set}" != Xset; then
     1604    COLLECT_NAMES=
     1605    export COLLECT_NAMES
     1606  fi
     1607  ;;
     1608esac
     1609
     1610# Determine commands to create old-style static archives.
     1611old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
     1612old_postinstall_cmds='chmod 644 $oldlib'
     1613old_postuninstall_cmds=
     1614
     1615if test -n "$RANLIB"; then
     1616  case $host_os in
     1617  openbsd*)
     1618    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
     1619    ;;
     1620  *)
     1621    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
     1622    ;;
     1623  esac
     1624  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
     1625fi
     1626
     1627# Allow CC to be a program name with arguments.
     1628set dummy $CC
     1629compiler="[$]2"
     1630
     1631AC_MSG_CHECKING([for objdir])
     1632rm -f .libs 2>/dev/null
     1633mkdir .libs 2>/dev/null
     1634if test -d .libs; then
     1635  objdir=.libs
     1636else
     1637  # MS-DOS does not allow filenames that begin with a dot.
     1638  objdir=_libs
     1639fi
     1640rmdir .libs 2>/dev/null
     1641AC_MSG_RESULT($objdir)
     1642
     1643
     1644AC_ARG_WITH(pic,
     1645[  --with-pic              try to use only PIC/non-PIC objects [default=use both]],
     1646pic_mode="$withval", pic_mode=default)
     1647test -z "$pic_mode" && pic_mode=default
     1648
     1649# We assume here that the value for lt_cv_prog_cc_pic will not be cached
     1650# in isolation, and that seeing it set (from the cache) indicates that
     1651# the associated values are set (in the cache) correctly too.
     1652AC_MSG_CHECKING([for $compiler option to produce PIC])
     1653AC_CACHE_VAL(lt_cv_prog_cc_pic,
     1654[ lt_cv_prog_cc_pic=
     1655  lt_cv_prog_cc_shlib=
     1656  lt_cv_prog_cc_wl=
     1657  lt_cv_prog_cc_static=
     1658  lt_cv_prog_cc_no_builtin=
     1659  lt_cv_prog_cc_can_build_shared=$can_build_shared
     1660
     1661  if test "$GCC" = yes; then
     1662    lt_cv_prog_cc_wl='-Wl,'
     1663    lt_cv_prog_cc_static='-static'
     1664
     1665    case $host_os in
     1666    aix*)
     1667      # Below there is a dirty hack to force normal static linking with -ldl
     1668      # The problem is because libdl dynamically linked with both libc and
     1669      # libC (AIX C++ library), which obviously doesn't included in libraries
     1670      # list by gcc. This cause undefined symbols with -static flags.
     1671      # This hack allows C programs to be linked with "-static -ldl", but
     1672      # not sure about C++ programs.
     1673      lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
     1674      ;;
     1675    amigaos*)
     1676      # FIXME: we need at least 68020 code to build shared libraries, but
     1677      # adding the `-m68020' flag to GCC prevents building anything better,
     1678      # like `-m68040'.
     1679      lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
     1680      ;;
     1681    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
     1682      # PIC is the default for these OSes.
     1683      ;;
     1684    darwin* | rhapsody*)
     1685      # PIC is the default on this platform
     1686      # Common symbols not allowed in MH_DYLIB files
     1687      lt_cv_prog_cc_pic='-fno-common'
     1688      ;;
     1689    cygwin* | mingw* | pw32* | os2*)
     1690      # This hack is so that the source file can tell whether it is being
     1691      # built for inclusion in a dll (and should export symbols for example).
     1692      lt_cv_prog_cc_pic='-DDLL_EXPORT'
     1693      ;;
     1694    sysv4*MP*)
     1695      if test -d /usr/nec; then
     1696         lt_cv_prog_cc_pic=-Kconform_pic
     1697      fi
     1698      ;;
     1699    *)
     1700      lt_cv_prog_cc_pic='-fPIC'
     1701      ;;
     1702    esac
     1703  else
     1704    # PORTME Check for PIC flags for the system compiler.
     1705    case $host_os in
     1706    aix3* | aix4* | aix5*)
     1707      lt_cv_prog_cc_wl='-Wl,'
     1708      # All AIX code is PIC.
     1709      if test "$host_cpu" = ia64; then
     1710        # AIX 5 now supports IA64 processor
     1711        lt_cv_prog_cc_static='-Bstatic'
     1712      else
     1713        lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
     1714      fi
     1715      ;;
     1716
     1717    hpux9* | hpux10* | hpux11*)
     1718      # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
     1719      lt_cv_prog_cc_wl='-Wl,'
     1720      lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
     1721      lt_cv_prog_cc_pic='+Z'
     1722      ;;
     1723
     1724    irix5* | irix6* | nonstopux*)
     1725      lt_cv_prog_cc_wl='-Wl,'
     1726      lt_cv_prog_cc_static='-non_shared'
     1727      # PIC (with -KPIC) is the default.
     1728      ;;
     1729
     1730    cygwin* | mingw* | pw32* | os2*)
     1731      # This hack is so that the source file can tell whether it is being
     1732      # built for inclusion in a dll (and should export symbols for example).
     1733      lt_cv_prog_cc_pic='-DDLL_EXPORT'
     1734      ;;
     1735
     1736    newsos6)
     1737      lt_cv_prog_cc_pic='-KPIC'
     1738      lt_cv_prog_cc_static='-Bstatic'
     1739      ;;
     1740
     1741    osf3* | osf4* | osf5*)
     1742      # All OSF/1 code is PIC.
     1743      lt_cv_prog_cc_wl='-Wl,'
     1744      lt_cv_prog_cc_static='-non_shared'
     1745      ;;
     1746
     1747    sco3.2v5*)
     1748      lt_cv_prog_cc_pic='-Kpic'
     1749      lt_cv_prog_cc_static='-dn'
     1750      lt_cv_prog_cc_shlib='-belf'
     1751      ;;
     1752
     1753    solaris*)
     1754      lt_cv_prog_cc_pic='-KPIC'
     1755      lt_cv_prog_cc_static='-Bstatic'
     1756      lt_cv_prog_cc_wl='-Wl,'
     1757      ;;
     1758
     1759    sunos4*)
     1760      lt_cv_prog_cc_pic='-PIC'
     1761      lt_cv_prog_cc_static='-Bstatic'
     1762      lt_cv_prog_cc_wl='-Qoption ld '
     1763      ;;
     1764
     1765    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
     1766      lt_cv_prog_cc_pic='-KPIC'
     1767      lt_cv_prog_cc_static='-Bstatic'
     1768      lt_cv_prog_cc_wl='-Wl,'
     1769      ;;
     1770
     1771    uts4*)
     1772      lt_cv_prog_cc_pic='-pic'
     1773      lt_cv_prog_cc_static='-Bstatic'
     1774      ;;
     1775
     1776    sysv4*MP*)
     1777      if test -d /usr/nec ;then
     1778        lt_cv_prog_cc_pic='-Kconform_pic'
     1779        lt_cv_prog_cc_static='-Bstatic'
     1780      fi
     1781      ;;
     1782
     1783    *)
     1784      lt_cv_prog_cc_can_build_shared=no
     1785      ;;
     1786    esac
     1787  fi
    9531788])
    954 ])# AC_LIBTOOL_PROG_CC_C_O
    955 
    956 
    957 # AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
    958 # -----------------------------------------
     1789if test -z "$lt_cv_prog_cc_pic"; then
     1790  AC_MSG_RESULT([none])
     1791else
     1792  AC_MSG_RESULT([$lt_cv_prog_cc_pic])
     1793
     1794  # Check to make sure the pic_flag actually works.
     1795  AC_MSG_CHECKING([if $compiler PIC flag $lt_cv_prog_cc_pic works])
     1796  AC_CACHE_VAL(lt_cv_prog_cc_pic_works, [dnl
     1797    save_CFLAGS="$CFLAGS"
     1798    CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
     1799    AC_TRY_COMPILE([], [], [dnl
     1800      case $host_os in
     1801      hpux9* | hpux10* | hpux11*)
     1802        # On HP-UX, both CC and GCC only warn that PIC is supported... then
     1803        # they create non-PIC objects.  So, if there were any warnings, we
     1804        # assume that PIC is not supported.
     1805        if test -s conftest.err; then
     1806          lt_cv_prog_cc_pic_works=no
     1807        else
     1808          lt_cv_prog_cc_pic_works=yes
     1809        fi
     1810        ;;
     1811      *)
     1812        lt_cv_prog_cc_pic_works=yes
     1813        ;;
     1814      esac
     1815    ], [dnl
     1816      lt_cv_prog_cc_pic_works=no
     1817    ])
     1818    CFLAGS="$save_CFLAGS"
     1819  ])
     1820
     1821  if test "X$lt_cv_prog_cc_pic_works" = Xno; then
     1822    lt_cv_prog_cc_pic=
     1823    lt_cv_prog_cc_can_build_shared=no
     1824  else
     1825    lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
     1826  fi
     1827
     1828  AC_MSG_RESULT([$lt_cv_prog_cc_pic_works])
     1829fi
     1830
     1831# Check for any special shared library compilation flags.
     1832if test -n "$lt_cv_prog_cc_shlib"; then
     1833  AC_MSG_WARN([\`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries])
     1834  if echo "$old_CC $old_CFLAGS " | egrep -e "[[         ]]$lt_cv_prog_cc_shlib[[        ]]" >/dev/null; then :
     1835  else
     1836   AC_MSG_WARN([add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure])
     1837    lt_cv_prog_cc_can_build_shared=no
     1838  fi
     1839fi
     1840
     1841AC_MSG_CHECKING([if $compiler static flag $lt_cv_prog_cc_static works])
     1842AC_CACHE_VAL([lt_cv_prog_cc_static_works], [dnl
     1843  lt_cv_prog_cc_static_works=no
     1844  save_LDFLAGS="$LDFLAGS"
     1845  LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
     1846  AC_TRY_LINK([], [], [lt_cv_prog_cc_static_works=yes])
     1847  LDFLAGS="$save_LDFLAGS"
     1848])
     1849
     1850# Belt *and* braces to stop my trousers falling down:
     1851test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
     1852AC_MSG_RESULT([$lt_cv_prog_cc_static_works])
     1853
     1854pic_flag="$lt_cv_prog_cc_pic"
     1855special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
     1856wl="$lt_cv_prog_cc_wl"
     1857link_static_flag="$lt_cv_prog_cc_static"
     1858no_builtin_flag="$lt_cv_prog_cc_no_builtin"
     1859can_build_shared="$lt_cv_prog_cc_can_build_shared"
     1860
     1861
     1862# Check to see if options -o and -c are simultaneously supported by compiler
     1863AC_MSG_CHECKING([if $compiler supports -c -o file.$ac_objext])
     1864AC_CACHE_VAL([lt_cv_compiler_c_o], [
     1865$rm -r conftest 2>/dev/null
     1866mkdir conftest
     1867cd conftest
     1868echo "int some_variable = 0;" > conftest.$ac_ext
     1869mkdir out
     1870# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
     1871# that will create temporary files in the current directory regardless of
     1872# the output directory.  Thus, making CWD read-only will cause this test
     1873# to fail, enabling locking or at least warning the user not to do parallel
     1874# builds.
     1875chmod -w .
     1876save_CFLAGS="$CFLAGS"
     1877CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
     1878compiler_c_o=no
     1879if { (eval echo configure:__oline__: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
     1880  # The compiler can only warn and ignore the option if not recognized
     1881  # So say no if there are warnings
     1882  if test -s out/conftest.err; then
     1883    lt_cv_compiler_c_o=no
     1884  else
     1885    lt_cv_compiler_c_o=yes
     1886  fi
     1887else
     1888  # Append any errors to the config.log.
     1889  cat out/conftest.err 1>&AC_FD_CC
     1890  lt_cv_compiler_c_o=no
     1891fi
     1892CFLAGS="$save_CFLAGS"
     1893chmod u+w .
     1894$rm conftest* out/*
     1895rmdir out
     1896cd ..
     1897rmdir conftest
     1898$rm -r conftest 2>/dev/null
     1899])
     1900compiler_c_o=$lt_cv_compiler_c_o
     1901AC_MSG_RESULT([$compiler_c_o])
     1902
     1903if test x"$compiler_c_o" = x"yes"; then
     1904  # Check to see if we can write to a .lo
     1905  AC_MSG_CHECKING([if $compiler supports -c -o file.lo])
     1906  AC_CACHE_VAL([lt_cv_compiler_o_lo], [
     1907  lt_cv_compiler_o_lo=no
     1908  save_CFLAGS="$CFLAGS"
     1909  CFLAGS="$CFLAGS -c -o conftest.lo"
     1910  save_objext="$ac_objext"
     1911  ac_objext=lo
     1912  AC_TRY_COMPILE([], [int some_variable = 0;], [dnl
     1913    # The compiler can only warn and ignore the option if not recognized
     1914    # So say no if there are warnings
     1915    if test -s conftest.err; then
     1916      lt_cv_compiler_o_lo=no
     1917    else
     1918      lt_cv_compiler_o_lo=yes
     1919    fi
     1920  ])
     1921  ac_objext="$save_objext"
     1922  CFLAGS="$save_CFLAGS"
     1923  ])
     1924  compiler_o_lo=$lt_cv_compiler_o_lo
     1925  AC_MSG_RESULT([$compiler_o_lo])
     1926else
     1927  compiler_o_lo=no
     1928fi
     1929
    9591930# Check to see if we can do hard links to lock some files if needed
    960 AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
    961 [AC_REQUIRE([_LT_AC_LOCK])dnl
    962 
    9631931hard_links="nottested"
    964 if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
     1932if test "$compiler_c_o" = no && test "$need_locks" != no; then
    9651933  # do not overwrite the value of need_locks provided by the user
    9661934  AC_MSG_CHECKING([if we can lock with hard links])
     
    9731941  AC_MSG_RESULT([$hard_links])
    9741942  if test "$hard_links" = no; then
    975     AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
     1943    AC_MSG_WARN([\`$CC' does not support \`-c -o', so \`make -j' may be unsafe])
    9761944    need_locks=warn
    9771945  fi
     
    9791947  need_locks=no
    9801948fi
    981 ])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
    982 
    983 
    984 # AC_LIBTOOL_OBJDIR
    985 # -----------------
    986 AC_DEFUN([AC_LIBTOOL_OBJDIR],
    987 [AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
    988 [rm -f .libs 2>/dev/null
    989 mkdir .libs 2>/dev/null
    990 if test -d .libs; then
    991   lt_cv_objdir=.libs
     1949
     1950if test "$GCC" = yes; then
     1951  # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
     1952  AC_MSG_CHECKING([if $compiler supports -fno-rtti -fno-exceptions])
     1953  echo "int some_variable = 0;" > conftest.$ac_ext
     1954  save_CFLAGS="$CFLAGS"
     1955  CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
     1956  compiler_rtti_exceptions=no
     1957  AC_TRY_COMPILE([], [int some_variable = 0;], [dnl
     1958    # The compiler can only warn and ignore the option if not recognized
     1959    # So say no if there are warnings
     1960    if test -s conftest.err; then
     1961      compiler_rtti_exceptions=no
     1962    else
     1963      compiler_rtti_exceptions=yes
     1964    fi
     1965  ])
     1966  CFLAGS="$save_CFLAGS"
     1967  AC_MSG_RESULT([$compiler_rtti_exceptions])
     1968
     1969  if test "$compiler_rtti_exceptions" = "yes"; then
     1970    no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
     1971  else
     1972    no_builtin_flag=' -fno-builtin'
     1973  fi
     1974fi
     1975
     1976# See if the linker supports building shared libraries.
     1977AC_MSG_CHECKING([whether the linker ($LD) supports shared libraries])
     1978
     1979allow_undefined_flag=
     1980no_undefined_flag=
     1981need_lib_prefix=unknown
     1982need_version=unknown
     1983# when you set need_version to no, make sure it does not cause -set_version
     1984# flags to be left without arguments
     1985archive_cmds=
     1986archive_expsym_cmds=
     1987old_archive_from_new_cmds=
     1988old_archive_from_expsyms_cmds=
     1989export_dynamic_flag_spec=
     1990whole_archive_flag_spec=
     1991thread_safe_flag_spec=
     1992hardcode_into_libs=no
     1993hardcode_libdir_flag_spec=
     1994hardcode_libdir_separator=
     1995hardcode_direct=no
     1996hardcode_minus_L=no
     1997hardcode_shlibpath_var=unsupported
     1998runpath_var=
     1999link_all_deplibs=unknown
     2000always_export_symbols=no
     2001export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
     2002# include_expsyms should be a list of space-separated symbols to be *always*
     2003# included in the symbol list
     2004include_expsyms=
     2005# exclude_expsyms can be an egrep regular expression of symbols to exclude
     2006# it will be wrapped by ` (' and `)$', so one must not match beginning or
     2007# end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
     2008# as well as any symbol that contains `d'.
     2009exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
     2010# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
     2011# platforms (ab)use it in PIC code, but their linkers get confused if
     2012# the symbol is explicitly referenced.  Since portable code cannot
     2013# rely on this symbol name, it's probably fine to never include it in
     2014# preloaded symbol tables.
     2015extract_expsyms_cmds=
     2016
     2017case $host_os in
     2018cygwin* | mingw* | pw32*)
     2019  # FIXME: the MSVC++ port hasn't been tested in a loooong time
     2020  # When not using gcc, we currently assume that we are using
     2021  # Microsoft Visual C++.
     2022  if test "$GCC" != yes; then
     2023    with_gnu_ld=no
     2024  fi
     2025  ;;
     2026openbsd*)
     2027  with_gnu_ld=no
     2028  ;;
     2029esac
     2030
     2031ld_shlibs=yes
     2032if test "$with_gnu_ld" = yes; then
     2033  # If archive_cmds runs LD, not CC, wlarc should be empty
     2034  wlarc='${wl}'
     2035
     2036  # See if GNU ld supports shared libraries.
     2037  case $host_os in
     2038  aix3* | aix4* | aix5*)
     2039    # On AIX, the GNU linker is very broken
     2040    # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
     2041    ld_shlibs=no
     2042    cat <<EOF 1>&2
     2043
     2044*** Warning: the GNU linker, at least up to release 2.9.1, is reported
     2045*** to be unable to reliably create shared libraries on AIX.
     2046*** Therefore, libtool is disabling shared libraries support.  If you
     2047*** really care for shared libraries, you may want to modify your PATH
     2048*** so that a non-GNU linker is found, and then restart.
     2049
     2050EOF
     2051    ;;
     2052
     2053  amigaos*)
     2054    archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
     2055    hardcode_libdir_flag_spec='-L$libdir'
     2056    hardcode_minus_L=yes
     2057
     2058    # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
     2059    # that the semantics of dynamic libraries on AmigaOS, at least up
     2060    # to version 4, is to share data among multiple programs linked
     2061    # with the same dynamic library.  Since this doesn't match the
     2062    # behavior of shared libraries on other platforms, we can use
     2063    # them.
     2064    ld_shlibs=no
     2065    ;;
     2066
     2067  beos*)
     2068    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
     2069      allow_undefined_flag=unsupported
     2070      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
     2071      # support --undefined.  This deserves some investigation.  FIXME
     2072      archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
     2073    else
     2074      ld_shlibs=no
     2075    fi
     2076    ;;
     2077
     2078  cygwin* | mingw* | pw32*)
     2079    # hardcode_libdir_flag_spec is actually meaningless, as there is
     2080    # no search path for DLLs.
     2081    hardcode_libdir_flag_spec='-L$libdir'
     2082    allow_undefined_flag=unsupported
     2083    always_export_symbols=yes
     2084
     2085    extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
     2086      sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
     2087      test -f $output_objdir/impgen.exe || (cd $output_objdir && \
     2088      if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
     2089      else $CC -o impgen impgen.c ; fi)~
     2090      $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
     2091
     2092    old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
     2093
     2094    # cygwin and mingw dlls have different entry points and sets of symbols
     2095    # to exclude.
     2096    # FIXME: what about values for MSVC?
     2097    dll_entry=__cygwin_dll_entry@12
     2098    dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
     2099    case $host_os in
     2100    mingw*)
     2101      # mingw values
     2102      dll_entry=_DllMainCRTStartup@12
     2103      dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
     2104      ;;
     2105    esac
     2106
     2107    # mingw and cygwin differ, and it's simplest to just exclude the union
     2108    # of the two symbol sets.
     2109    dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
     2110
     2111    # recent cygwin and mingw systems supply a stub DllMain which the user
     2112    # can override, but on older systems we have to supply one (in ltdll.c)
     2113    if test "x$lt_cv_need_dllmain" = "xyes"; then
     2114      ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
     2115      ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
     2116        test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
     2117    else
     2118      ltdll_obj=
     2119      ltdll_cmds=
     2120    fi
     2121
     2122    # Extract the symbol export list from an `--export-all' def file,
     2123    # then regenerate the def file from the symbol export list, so that
     2124    # the compiled dll only exports the symbol export list.
     2125    # Be careful not to strip the DATA tag left be newer dlltools.
     2126    export_symbols_cmds="$ltdll_cmds"'
     2127      $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
     2128      sed -e "1,/EXPORTS/d" -e "s/ @ [[0-9]]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
     2129
     2130    # If the export-symbols file already is a .def file (1st line
     2131    # is EXPORTS), use it as is.
     2132    # If DATA tags from a recent dlltool are present, honour them!
     2133    archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
     2134        cp $export_symbols $output_objdir/$soname-def;
     2135      else
     2136        echo EXPORTS > $output_objdir/$soname-def;
     2137        _lt_hint=1;
     2138        cat $export_symbols | while read symbol; do
     2139         set dummy \$symbol;
     2140         case \[$]# in
     2141           2) echo "   \[$]2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
     2142           4) echo "   \[$]2 \[$]3 \[$]4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
     2143           *) echo "     \[$]2 @ \$_lt_hint \[$]3 ; " >> $output_objdir/$soname-def;;
     2144         esac;
     2145         _lt_hint=`expr 1 + \$_lt_hint`;
     2146        done;
     2147      fi~
     2148      '"$ltdll_cmds"'
     2149      $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
     2150      $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
     2151      $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
     2152      $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
     2153      $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
     2154    ;;
     2155
     2156  netbsd*)
     2157    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
     2158      archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
     2159      wlarc=
     2160    else
     2161      archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
     2162      archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
     2163    fi
     2164    ;;
     2165
     2166  solaris* | sysv5*)
     2167    if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
     2168      ld_shlibs=no
     2169      cat <<EOF 1>&2
     2170
     2171*** Warning: The releases 2.8.* of the GNU linker cannot reliably
     2172*** create shared libraries on Solaris systems.  Therefore, libtool
     2173*** is disabling shared libraries support.  We urge you to upgrade GNU
     2174*** binutils to release 2.9.1 or newer.  Another option is to modify
     2175*** your PATH or compiler configuration so that the native linker is
     2176*** used, and then restart.
     2177
     2178EOF
     2179    elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
     2180      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
     2181      archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
     2182    else
     2183      ld_shlibs=no
     2184    fi
     2185    ;;
     2186
     2187  sunos4*)
     2188    archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
     2189    wlarc=
     2190    hardcode_direct=yes
     2191    hardcode_shlibpath_var=no
     2192    ;;
     2193
     2194  *)
     2195    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
     2196      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
     2197      archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
     2198    else
     2199      ld_shlibs=no
     2200    fi
     2201    ;;
     2202  esac
     2203
     2204  if test "$ld_shlibs" = yes; then
     2205    runpath_var=LD_RUN_PATH
     2206    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
     2207    export_dynamic_flag_spec='${wl}--export-dynamic'
     2208    case $host_os in
     2209    cygwin* | mingw* | pw32*)
     2210      # dlltool doesn't understand --whole-archive et. al.
     2211      whole_archive_flag_spec=
     2212      ;;
     2213    *)
     2214      # ancient GNU ld didn't support --whole-archive et. al.
     2215      if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
     2216        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
     2217      else
     2218        whole_archive_flag_spec=
     2219      fi
     2220      ;;
     2221    esac
     2222  fi
    9922223else
    993   # MS-DOS does not allow filenames that begin with a dot.
    994   lt_cv_objdir=_libs
    995 fi
    996 rmdir .libs 2>/dev/null])
    997 objdir=$lt_cv_objdir
    998 ])# AC_LIBTOOL_OBJDIR
    999 
    1000 
    1001 # AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
    1002 # ----------------------------------------------
     2224  # PORTME fill in a description of your system's linker (not GNU ld)
     2225  case $host_os in
     2226  aix3*)
     2227    allow_undefined_flag=unsupported
     2228    always_export_symbols=yes
     2229    archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
     2230    # Note: this linker hardcodes the directories in LIBPATH if there
     2231    # are no directories specified by -L.
     2232    hardcode_minus_L=yes
     2233    if test "$GCC" = yes && test -z "$link_static_flag"; then
     2234      # Neither direct hardcoding nor static linking is supported with a
     2235      # broken collect2.
     2236      hardcode_direct=unsupported
     2237    fi
     2238    ;;
     2239
     2240  aix4* | aix5*)
     2241    if test "$host_cpu" = ia64; then
     2242      # On IA64, the linker does run time linking by default, so we don't
     2243      # have to do anything special.
     2244      aix_use_runtimelinking=no
     2245      exp_sym_flag='-Bexport'
     2246      no_entry_flag=""
     2247    else
     2248      aix_use_runtimelinking=no
     2249
     2250      # Test if we are trying to use run time linking or normal
     2251      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
     2252      # need to do runtime linking.
     2253      case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
     2254        for ld_flag in $LDFLAGS; do
     2255          case $ld_flag in
     2256          *-brtl*)
     2257            aix_use_runtimelinking=yes
     2258            break
     2259          ;;
     2260          esac
     2261        done
     2262      esac
     2263
     2264      exp_sym_flag='-bexport'
     2265      no_entry_flag='-bnoentry'
     2266    fi
     2267
     2268    # When large executables or shared objects are built, AIX ld can
     2269    # have problems creating the table of contents.  If linking a library
     2270    # or program results in "error TOC overflow" add -mminimal-toc to
     2271    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
     2272    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
     2273
     2274    hardcode_direct=yes
     2275    archive_cmds=''
     2276    hardcode_libdir_separator=':'
     2277    if test "$GCC" = yes; then
     2278      case $host_os in aix4.[[012]]|aix4.[[012]].*)
     2279        collect2name=`${CC} -print-prog-name=collect2`
     2280        if test -f "$collect2name" && \
     2281          strings "$collect2name" | grep resolve_lib_name >/dev/null
     2282        then
     2283          # We have reworked collect2
     2284          hardcode_direct=yes
     2285        else
     2286          # We have old collect2
     2287          hardcode_direct=unsupported
     2288          # It fails to find uninstalled libraries when the uninstalled
     2289          # path is not listed in the libpath.  Setting hardcode_minus_L
     2290          # to unsupported forces relinking
     2291          hardcode_minus_L=yes
     2292          hardcode_libdir_flag_spec='-L$libdir'
     2293          hardcode_libdir_separator=
     2294        fi
     2295      esac
     2296
     2297      shared_flag='-shared'
     2298    else
     2299      # not using gcc
     2300      if test "$host_cpu" = ia64; then
     2301        shared_flag='${wl}-G'
     2302      else
     2303        if test "$aix_use_runtimelinking" = yes; then
     2304          shared_flag='${wl}-G'
     2305        else
     2306          shared_flag='${wl}-bM:SRE'
     2307        fi
     2308      fi
     2309    fi
     2310
     2311    # It seems that -bexpall can do strange things, so it is better to
     2312    # generate a list of symbols to export.
     2313    always_export_symbols=yes
     2314    if test "$aix_use_runtimelinking" = yes; then
     2315      # Warning - without using the other runtime loading flags (-brtl),
     2316      # -berok will link without error, but may produce a broken library.
     2317      allow_undefined_flag='-berok'
     2318      hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
     2319      archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
     2320    else
     2321      if test "$host_cpu" = ia64; then
     2322        hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
     2323        allow_undefined_flag="-z nodefs"
     2324        archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
     2325      else
     2326        hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
     2327        # Warning - without using the other run time loading flags,
     2328        # -berok will link without error, but may produce a broken library.
     2329        allow_undefined_flag='${wl}-berok'
     2330        # This is a bit strange, but is similar to how AIX traditionally builds
     2331        # it's shared libraries.
     2332        archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
     2333      fi
     2334    fi
     2335    ;;
     2336
     2337  amigaos*)
     2338    archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
     2339    hardcode_libdir_flag_spec='-L$libdir'
     2340    hardcode_minus_L=yes
     2341    # see comment about different semantics on the GNU ld section
     2342    ld_shlibs=no
     2343    ;;
     2344
     2345  cygwin* | mingw* | pw32*)
     2346    # When not using gcc, we currently assume that we are using
     2347    # Microsoft Visual C++.
     2348    # hardcode_libdir_flag_spec is actually meaningless, as there is
     2349    # no search path for DLLs.
     2350    hardcode_libdir_flag_spec=' '
     2351    allow_undefined_flag=unsupported
     2352    # Tell ltmain to make .lib files, not .a files.
     2353    libext=lib
     2354    # FIXME: Setting linknames here is a bad hack.
     2355    archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
     2356    # The linker will automatically build a .lib file if we build a DLL.
     2357    old_archive_from_new_cmds='true'
     2358    # FIXME: Should let the user specify the lib program.
     2359    old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
     2360    fix_srcfile_path='`cygpath -w "$srcfile"`'
     2361    ;;
     2362
     2363  darwin* | rhapsody*)
     2364    case "$host_os" in
     2365    rhapsody* | darwin1.[[012]])
     2366      allow_undefined_flag='-undefined suppress'
     2367      ;;
     2368    *) # Darwin 1.3 on
     2369      allow_undefined_flag='-flat_namespace -undefined suppress'
     2370      ;;
     2371    esac
     2372    # FIXME: Relying on posixy $() will cause problems for
     2373    #        cross-compilation, but unfortunately the echo tests do not
     2374    #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
     2375    #        `"' quotes if we put them in here... so don't!
     2376    archive_cmds='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs && $CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib ${lib}-master.o $deplibs$linker_flags $(test .$module != .yes && echo -install_name $rpath/$soname $verstring)'
     2377    # We need to add '_' to the symbols in $export_symbols first
     2378    #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
     2379    hardcode_direct=yes
     2380    hardcode_shlibpath_var=no
     2381    whole_archive_flag_spec='-all_load $convenience'
     2382    ;;
     2383
     2384  freebsd1*)
     2385    ld_shlibs=no
     2386    ;;
     2387
     2388  # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
     2389  # support.  Future versions do this automatically, but an explicit c++rt0.o
     2390  # does not break anything, and helps significantly (at the cost of a little
     2391  # extra space).
     2392  freebsd2.2*)
     2393    archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
     2394    hardcode_libdir_flag_spec='-R$libdir'
     2395    hardcode_direct=yes
     2396    hardcode_shlibpath_var=no
     2397    ;;
     2398
     2399  # Unfortunately, older versions of FreeBSD 2 do not have this feature.
     2400  freebsd2*)
     2401    archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
     2402    hardcode_direct=yes
     2403    hardcode_minus_L=yes
     2404    hardcode_shlibpath_var=no
     2405    ;;
     2406
     2407  # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
     2408  freebsd*)
     2409    archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
     2410    hardcode_libdir_flag_spec='-R$libdir'
     2411    hardcode_direct=yes
     2412    hardcode_shlibpath_var=no
     2413    ;;
     2414
     2415  hpux9* | hpux10* | hpux11*)
     2416    case $host_os in
     2417    hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;;
     2418    *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
     2419    esac
     2420    hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
     2421    hardcode_libdir_separator=:
     2422    hardcode_direct=yes
     2423    hardcode_minus_L=yes # Not in the search PATH, but as the default
     2424                         # location of the library.
     2425    export_dynamic_flag_spec='${wl}-E'
     2426    ;;
     2427
     2428  irix5* | irix6* | nonstopux*)
     2429    if test "$GCC" = yes; then
     2430      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
     2431      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
     2432    else
     2433      archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
     2434      hardcode_libdir_flag_spec='-rpath $libdir'
     2435    fi
     2436    hardcode_libdir_separator=:
     2437    link_all_deplibs=yes
     2438    ;;
     2439
     2440  netbsd*)
     2441    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
     2442      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
     2443    else
     2444      archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
     2445    fi
     2446    hardcode_libdir_flag_spec='-R$libdir'
     2447    hardcode_direct=yes
     2448    hardcode_shlibpath_var=no
     2449    ;;
     2450
     2451  newsos6)
     2452    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
     2453    hardcode_direct=yes
     2454    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
     2455    hardcode_libdir_separator=:
     2456    hardcode_shlibpath_var=no
     2457    ;;
     2458
     2459  openbsd*)
     2460    hardcode_direct=yes
     2461    hardcode_shlibpath_var=no
     2462    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
     2463      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
     2464      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
     2465      export_dynamic_flag_spec='${wl}-E'
     2466    else
     2467      case "$host_os" in
     2468      openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
     2469        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
     2470        hardcode_libdir_flag_spec='-R$libdir'
     2471        ;;
     2472      *)
     2473        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
     2474        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
     2475        ;;
     2476      esac
     2477    fi
     2478    ;;
     2479
     2480  os2*)
     2481    hardcode_libdir_flag_spec='-L$libdir'
     2482    hardcode_minus_L=yes
     2483    allow_undefined_flag=unsupported
     2484    archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
     2485    old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
     2486    ;;
     2487
     2488  osf3*)
     2489    if test "$GCC" = yes; then
     2490      allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
     2491      archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
     2492    else
     2493      allow_undefined_flag=' -expect_unresolved \*'
     2494      archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
     2495    fi
     2496    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
     2497    hardcode_libdir_separator=:
     2498    ;;
     2499
     2500  osf4* | osf5*)        # as osf3* with the addition of -msym flag
     2501    if test "$GCC" = yes; then
     2502      allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
     2503      archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
     2504      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
     2505    else
     2506      allow_undefined_flag=' -expect_unresolved \*'
     2507      archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
     2508      archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
     2509      $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'
     2510
     2511      #Both c and cxx compiler support -rpath directly
     2512      hardcode_libdir_flag_spec='-rpath $libdir'
     2513    fi
     2514    hardcode_libdir_separator=:
     2515    ;;
     2516
     2517  sco3.2v5*)
     2518    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
     2519    hardcode_shlibpath_var=no
     2520    runpath_var=LD_RUN_PATH
     2521    hardcode_runpath_var=yes
     2522    export_dynamic_flag_spec='${wl}-Bexport'
     2523    ;;
     2524
     2525  solaris*)
     2526    # gcc --version < 3.0 without binutils cannot create self contained
     2527    # shared libraries reliably, requiring libgcc.a to resolve some of
     2528    # the object symbols generated in some cases.  Libraries that use
     2529    # assert need libgcc.a to resolve __eprintf, for example.  Linking
     2530    # a copy of libgcc.a into every shared library to guarantee resolving
     2531    # such symbols causes other problems:  According to Tim Van Holder
     2532    # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
     2533    # (to the application) exception stack for one thing.
     2534    no_undefined_flag=' -z defs'
     2535    if test "$GCC" = yes; then
     2536      case `$CC --version 2>/dev/null` in
     2537      [[12]].*)
     2538        cat <<EOF 1>&2
     2539
     2540*** Warning: Releases of GCC earlier than version 3.0 cannot reliably
     2541*** create self contained shared libraries on Solaris systems, without
     2542*** introducing a dependency on libgcc.a.  Therefore, libtool is disabling
     2543*** -no-undefined support, which will at least allow you to build shared
     2544*** libraries.  However, you may find that when you link such libraries
     2545*** into an application without using GCC, you have to manually add
     2546*** \`gcc --print-libgcc-file-name\` to the link command.  We urge you to
     2547*** upgrade to a newer version of GCC.  Another option is to rebuild your
     2548*** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
     2549
     2550EOF
     2551        no_undefined_flag=
     2552        ;;
     2553      esac
     2554    fi
     2555    # $CC -shared without GNU ld will not create a library from C++
     2556    # object files and a static libstdc++, better avoid it by now
     2557    archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
     2558    archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
     2559                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
     2560    hardcode_libdir_flag_spec='-R$libdir'
     2561    hardcode_shlibpath_var=no
     2562    case $host_os in
     2563    solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
     2564    *) # Supported since Solaris 2.6 (maybe 2.5.1?)
     2565      whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
     2566    esac
     2567    link_all_deplibs=yes
     2568    ;;
     2569
     2570  sunos4*)
     2571    if test "x$host_vendor" = xsequent; then
     2572      # Use $CC to link under sequent, because it throws in some extra .o
     2573      # files that make .init and .fini sections work.
     2574      archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
     2575    else
     2576      archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
     2577    fi
     2578    hardcode_libdir_flag_spec='-L$libdir'
     2579    hardcode_direct=yes
     2580    hardcode_minus_L=yes
     2581    hardcode_shlibpath_var=no
     2582    ;;
     2583
     2584  sysv4)
     2585    case $host_vendor in
     2586      sni)
     2587        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
     2588        hardcode_direct=yes # is this really true???
     2589        ;;
     2590      siemens)
     2591        ## LD is ld it makes a PLAMLIB
     2592        ## CC just makes a GrossModule.
     2593        archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
     2594        reload_cmds='$CC -r -o $output$reload_objs'
     2595        hardcode_direct=no
     2596        ;;
     2597      motorola)
     2598        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
     2599        hardcode_direct=no #Motorola manual says yes, but my tests say they lie
     2600        ;;
     2601    esac
     2602    runpath_var='LD_RUN_PATH'
     2603    hardcode_shlibpath_var=no
     2604    ;;
     2605
     2606  sysv4.3*)
     2607    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
     2608    hardcode_shlibpath_var=no
     2609    export_dynamic_flag_spec='-Bexport'
     2610    ;;
     2611
     2612  sysv5*)
     2613    no_undefined_flag=' -z text'
     2614    # $CC -shared without GNU ld will not create a library from C++
     2615    # object files and a static libstdc++, better avoid it by now
     2616    archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
     2617    archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
     2618                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
     2619    hardcode_libdir_flag_spec=
     2620    hardcode_shlibpath_var=no
     2621    runpath_var='LD_RUN_PATH'
     2622    ;;
     2623
     2624  uts4*)
     2625    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
     2626    hardcode_libdir_flag_spec='-L$libdir'
     2627    hardcode_shlibpath_var=no
     2628    ;;
     2629
     2630  dgux*)
     2631    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
     2632    hardcode_libdir_flag_spec='-L$libdir'
     2633    hardcode_shlibpath_var=no
     2634    ;;
     2635
     2636  sysv4*MP*)
     2637    if test -d /usr/nec; then
     2638      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
     2639      hardcode_shlibpath_var=no
     2640      runpath_var=LD_RUN_PATH
     2641      hardcode_runpath_var=yes
     2642      ld_shlibs=yes
     2643    fi
     2644    ;;
     2645
     2646  sysv4.2uw2*)
     2647    archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
     2648    hardcode_direct=yes
     2649    hardcode_minus_L=no
     2650    hardcode_shlibpath_var=no
     2651    hardcode_runpath_var=yes
     2652    runpath_var=LD_RUN_PATH
     2653    ;;
     2654
     2655  sysv5uw7* | unixware7*)
     2656    no_undefined_flag='${wl}-z ${wl}text'
     2657    if test "$GCC" = yes; then
     2658      archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
     2659    else
     2660      archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
     2661    fi
     2662    runpath_var='LD_RUN_PATH'
     2663    hardcode_shlibpath_var=no
     2664    ;;
     2665
     2666  *)
     2667    ld_shlibs=no
     2668    ;;
     2669  esac
     2670fi
     2671AC_MSG_RESULT([$ld_shlibs])
     2672test "$ld_shlibs" = no && can_build_shared=no
     2673
    10032674# Check hardcoding attributes.
    1004 AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
    1005 [AC_MSG_CHECKING([how to hardcode library paths into programs])
    1006 _LT_AC_TAGVAR(hardcode_action, $1)=
    1007 if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
    1008    test -n "$_LT_AC_TAGVAR(runpath_var $1)" || \
    1009    test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)"="Xyes" ; then
     2675AC_MSG_CHECKING([how to hardcode library paths into programs])
     2676hardcode_action=
     2677if test -n "$hardcode_libdir_flag_spec" || \
     2678   test -n "$runpath_var"; then
    10102679
    10112680  # We can hardcode non-existant directories.
    1012   if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
     2681  if test "$hardcode_direct" != no &&
    10132682     # If the only mechanism to avoid hardcoding is shlibpath_var, we
    10142683     # have to relink, otherwise we might link with an installed library
    10152684     # when we should be linking with a yet-to-be-installed one
    1016      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
    1017      test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
     2685     ## test "$hardcode_shlibpath_var" != no &&
     2686     test "$hardcode_minus_L" != no; then
    10182687    # Linking always hardcodes the temporary library directory.
    1019     _LT_AC_TAGVAR(hardcode_action, $1)=relink
     2688    hardcode_action=relink
    10202689  else
    10212690    # We can link without hardcoding, and we can hardcode nonexisting dirs.
    1022     _LT_AC_TAGVAR(hardcode_action, $1)=immediate
     2691    hardcode_action=immediate
    10232692  fi
    10242693else
    10252694  # We cannot hardcode anything, or else we can only hardcode existing
    10262695  # directories.
    1027   _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
    1028 fi
    1029 AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
    1030 
    1031 if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
    1032   # Fast installation is not supported
    1033   enable_fast_install=no
    1034 elif test "$shlibpath_overrides_runpath" = yes ||
    1035      test "$enable_shared" = no; then
    1036   # Fast installation is not necessary
    1037   enable_fast_install=needless
    1038 fi
    1039 ])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
    1040 
    1041 
    1042 # AC_LIBTOOL_SYS_LIB_STRIP
    1043 # ------------------------
    1044 AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
    1045 [striplib=
     2696  hardcode_action=unsupported
     2697fi
     2698AC_MSG_RESULT([$hardcode_action])
     2699
     2700striplib=
    10462701old_striplib=
    10472702AC_MSG_CHECKING([whether stripping libraries is possible])
     
    10512706  AC_MSG_RESULT([yes])
    10522707else
    1053 # FIXME - insert some real tests, host_os isn't really good enough
    1054   case $host_os in
    1055    darwin*)
    1056        if test -n "$STRIP" ; then
    1057          striplib="$STRIP -x"
    1058          AC_MSG_RESULT([yes])
    1059        else
    10602708  AC_MSG_RESULT([no])
    10612709fi
    1062        ;;
    1063    *)
    1064   AC_MSG_RESULT([no])
    1065     ;;
    1066   esac
    1067 fi
    1068 ])# AC_LIBTOOL_SYS_LIB_STRIP
    1069 
    1070 
    1071 # AC_LIBTOOL_SYS_DYNAMIC_LINKER
    1072 # -----------------------------
     2710
     2711reload_cmds='$LD$reload_flag -o $output$reload_objs'
     2712test -z "$deplibs_check_method" && deplibs_check_method=unknown
     2713
    10732714# PORTME Fill in your ld.so characteristics
    1074 AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
    1075 [AC_MSG_CHECKING([dynamic linker characteristics])
     2715AC_MSG_CHECKING([dynamic linker characteristics])
    10762716library_names_spec=
    10772717libname_spec='lib$name'
    10782718soname_spec=
    1079 shrext_cmds=".so"
    10802719postinstall_cmds=
    10812720postuninstall_cmds=
     
    10872726dynamic_linker="$host_os ld.so"
    10882727sys_lib_dlsearch_path_spec="/lib /usr/lib"
    1089 if test "$GCC" = yes; then
    1090   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
    1091   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
    1092     # if the path contains ";" then we assume it to be the separator
    1093     # otherwise default to the standard path separator (i.e. ":") - it is
    1094     # assumed that no part of a normal pathname contains ";" but that should
    1095     # okay in the real world where ";" in dirpaths is itself problematic.
    1096     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
    1097   else
    1098     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
    1099   fi
    1100 else
    1101   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
    1102 fi
    1103 need_lib_prefix=unknown
    1104 hardcode_into_libs=no
    1105 
    1106 # when you set need_version to no, make sure it does not cause -set_version
    1107 # flags to be left without arguments
    1108 need_version=unknown
     2728sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
    11092729
    11102730case $host_os in
    11112731aix3*)
    11122732  version_type=linux
    1113   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
     2733  library_names_spec='${libname}${release}.so$versuffix $libname.a'
    11142734  shlibpath_var=LIBPATH
    11152735
    1116   # AIX 3 has no versioning support, so we append a major version to the name.
    1117   soname_spec='${libname}${release}${shared_ext}$major'
     2736  # AIX has no versioning support, so we append a major version to the name.
     2737  soname_spec='${libname}${release}.so$major'
    11182738  ;;
    11192739
     
    11252745  if test "$host_cpu" = ia64; then
    11262746    # AIX 5 supports IA64
    1127     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
     2747    library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
    11282748    shlibpath_var=LD_LIBRARY_PATH
    11292749  else
     
    11352755    case $host_os in
    11362756      aix4 | aix4.[[01]] | aix4.[[01]].*)
    1137       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
    1138            echo ' yes '
    1139            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
    1140         :
    1141       else
    1142         can_build_shared=no
    1143       fi
    1144       ;;
     2757        if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
     2758             echo ' yes '
     2759             echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
     2760          :
     2761        else
     2762          can_build_shared=no
     2763        fi
     2764        ;;
    11452765    esac
    1146     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
    1147     # soname into executable. Probably we can add versioning support to
    1148     # collect2, so additional links can be useful in future.
     2766    # AIX (on Power*) has no versioning support, so currently we can
     2767    # not hardcode correct soname into executable. Probably we can
     2768    # add versioning support to collect2, so additional links can
     2769    # be useful in future.
    11492770    if test "$aix_use_runtimelinking" = yes; then
    11502771      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
    11512772      # instead of lib<name>.a to let people know that these are not
    11522773      # typical AIX shared libraries.
    1153       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
     2774      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
    11542775    else
    11552776      # We preserve .a as extension for shared libraries through AIX4.2
    11562777      # and later when we are not doing run time linking.
    11572778      library_names_spec='${libname}${release}.a $libname.a'
    1158       soname_spec='${libname}${release}${shared_ext}$major'
     2779      soname_spec='${libname}${release}.so$major'
    11592780    fi
    11602781    shlibpath_var=LIBPATH
    11612782  fi
     2783  hardcode_into_libs=yes
    11622784  ;;
    11632785
     
    11652787  library_names_spec='$libname.ixlibrary $libname.a'
    11662788  # Create ${libname}_ixlibrary.a entries in /sys/libs.
    1167   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
     2789  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
    11682790  ;;
    11692791
    11702792beos*)
    1171   library_names_spec='${libname}${shared_ext}'
     2793  library_names_spec='${libname}.so'
    11722794  dynamic_linker="$host_os ld.so"
    11732795  shlibpath_var=LIBRARY_PATH
     
    11772799  version_type=linux
    11782800  need_version=no
    1179   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    1180   soname_spec='${libname}${release}${shared_ext}$major'
     2801  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
     2802  soname_spec='${libname}${release}.so$major'
    11812803  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
    11822804  shlibpath_var=LD_LIBRARY_PATH
    11832805  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
    11842806  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
     2807  export_dynamic_flag_spec=-rdynamic
    11852808  # the default ld.so.conf also contains /usr/contrib/lib and
    11862809  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
     
    11902813cygwin* | mingw* | pw32*)
    11912814  version_type=windows
    1192   shrext_cmds=".dll"
    11932815  need_version=no
    11942816  need_lib_prefix=no
    1195 
    11962817  case $GCC,$host_os in
    1197   yes,cygwin* | yes,mingw* | yes,pw32*)
     2818  yes,cygwin*)
    11982819    library_names_spec='$libname.dll.a'
    1199     # DLL is installed to $(libdir)/../bin by postinstall_cmds
    1200     postinstall_cmds='base_file=`basename \${file}`~
    1201       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
     2820    soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[[.]]/-/g'`${versuffix}.dll'
     2821    postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
    12022822      dldir=$destdir/`dirname \$dlpath`~
    12032823      test -d \$dldir || mkdir -p \$dldir~
    1204       $install_prog $dir/$dlname \$dldir/$dlname'
    1205     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
     2824      $install_prog .libs/$dlname \$dldir/$dlname'
     2825    postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
    12062826      dlpath=$dir/\$dldll~
    12072827       $rm \$dlpath'
    1208     shlibpath_overrides_runpath=yes
    1209 
    1210     case $host_os in
    1211     cygwin*)
    1212       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
    1213       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
    1214       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
    1215       ;;
    1216     mingw*)
    1217       # MinGW DLLs use traditional 'lib' prefix
    1218       soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
    1219       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
    1220       if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
    1221         # It is most probably a Windows format PATH printed by
    1222         # mingw gcc, but we are running on Cygwin. Gcc prints its search
    1223         # path with ; separators, and with drive letters. We can handle the
    1224         # drive letters (cygwin fileutils understands them), so leave them,
    1225         # especially as we might pass files found there to a mingw objdump,
    1226         # which wouldn't understand a cygwinified path. Ahh.
    1227         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
    1228       else
    1229         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
    1230       fi
    1231       ;;
    1232     pw32*)
    1233       # pw32 DLLs use 'pw' prefix rather than 'lib'
    1234       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
    1235       ;;
    1236     esac
    1237     ;;
    1238 
     2828    ;;
     2829  yes,mingw*)
     2830    library_names_spec='${libname}`echo ${release} | sed -e 's/[[.]]/-/g'`${versuffix}.dll'
     2831    sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
     2832    ;;
     2833  yes,pw32*)
     2834    library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
     2835    ;;
    12392836  *)
    1240     library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
     2837    library_names_spec='${libname}`echo ${release} | sed -e 's/[[.]]/-/g'`${versuffix}.dll $libname.lib'
    12412838    ;;
    12422839  esac
     
    12512848  need_lib_prefix=no
    12522849  need_version=no
    1253   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
    1254   soname_spec='${libname}${release}${major}$shared_ext'
     2850  # FIXME: Relying on posixy $() will cause problems for
     2851  #        cross-compilation, but unfortunately the echo tests do not
     2852  #        yet detect zsh echo's removal of \ escapes.
     2853  library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
     2854  soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
    12552855  shlibpath_overrides_runpath=yes
    12562856  shlibpath_var=DYLD_LIBRARY_PATH
    1257   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
    1258   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
    1259   if test "$GCC" = yes; then
    1260     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"`
    1261   else
    1262     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
    1263   fi
    1264   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
    1265   ;;
    1266 
    1267 dgux*)
    1268   version_type=linux
    1269   need_lib_prefix=no
    1270   need_version=no
    1271   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
    1272   soname_spec='${libname}${release}${shared_ext}$major'
    1273   shlibpath_var=LD_LIBRARY_PATH
    12742857  ;;
    12752858
    12762859freebsd1*)
    12772860  dynamic_linker=no
    1278   ;;
    1279 
    1280 kfreebsd*-gnu)
    1281   version_type=linux
    1282   need_lib_prefix=no
    1283   need_version=no
    1284   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
    1285   soname_spec='${libname}${release}${shared_ext}$major'
    1286   shlibpath_var=LD_LIBRARY_PATH
    1287   shlibpath_overrides_runpath=no
    1288   hardcode_into_libs=yes
    1289   dynamic_linker='GNU ld.so'
    12902861  ;;
    12912862
     
    12952866  case $version_type in
    12962867    freebsd-elf*)
    1297       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
     2868      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
    12982869      need_version=no
    12992870      need_lib_prefix=no
    13002871      ;;
    13012872    freebsd-*)
    1302       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
     2873      library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
    13032874      need_version=yes
    13042875      ;;
     
    13092880    shlibpath_overrides_runpath=yes
    13102881    ;;
    1311   freebsd3.[01]* | freebsdelf3.[01]*)
    1312     shlibpath_overrides_runpath=yes
    1313     hardcode_into_libs=yes
    1314     ;;
    1315   *) # from 3.2 on
     2882  *)
    13162883    shlibpath_overrides_runpath=no
    13172884    hardcode_into_libs=yes
     
    13242891  need_lib_prefix=no
    13252892  need_version=no
    1326   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
    1327   soname_spec='${libname}${release}${shared_ext}$major'
     2893  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
     2894  soname_spec='${libname}${release}.so$major'
    13282895  shlibpath_var=LD_LIBRARY_PATH
    13292896  hardcode_into_libs=yes
     
    13332900  # Give a soname corresponding to the major version so that dld.sl refuses to
    13342901  # link against other versions.
     2902  dynamic_linker="$host_os dld.sl"
    13352903  version_type=sunos
    13362904  need_lib_prefix=no
    13372905  need_version=no
    1338   case "$host_cpu" in
    1339   ia64*)
    1340     shrext_cmds='.so'
    1341     hardcode_into_libs=yes
    1342     dynamic_linker="$host_os dld.so"
    1343     shlibpath_var=LD_LIBRARY_PATH
    1344     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
    1345     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    1346     soname_spec='${libname}${release}${shared_ext}$major'
    1347     if test "X$HPUX_IA64_MODE" = X32; then
    1348       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
    1349     else
    1350       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
    1351     fi
    1352     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
    1353     ;;
    1354    hppa*64*)
    1355      shrext_cmds='.sl'
    1356      hardcode_into_libs=yes
    1357      dynamic_linker="$host_os dld.sl"
    1358      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
    1359      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
    1360      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    1361      soname_spec='${libname}${release}${shared_ext}$major'
    1362      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
    1363      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
    1364      ;;
    1365    *)
    1366     shrext_cmds='.sl'
    1367     dynamic_linker="$host_os dld.sl"
    1368     shlibpath_var=SHLIB_PATH
    1369     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
    1370     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    1371     soname_spec='${libname}${release}${shared_ext}$major'
    1372     ;;
    1373   esac
     2906  shlibpath_var=SHLIB_PATH
     2907  shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
     2908  library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
     2909  soname_spec='${libname}${release}.sl$major'
    13742910  # HP-UX runs *really* slowly unless shared libraries are mode 555.
    13752911  postinstall_cmds='chmod 555 $lib'
     
    13792915  case $host_os in
    13802916    nonstopux*) version_type=nonstopux ;;
    1381     *)
    1382         if test "$lt_cv_prog_gnu_ld" = yes; then
    1383                 version_type=linux
    1384         else
    1385                 version_type=irix
    1386         fi ;;
     2917    *)          version_type=irix ;;
    13872918  esac
    13882919  need_lib_prefix=no
    13892920  need_version=no
    1390   soname_spec='${libname}${release}${shared_ext}$major'
    1391   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
     2921  soname_spec='${libname}${release}.so$major'
     2922  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
    13922923  case $host_os in
    13932924  irix5* | nonstopux*)
     
    13962927  *)
    13972928    case $LD in # libtool.m4 will add one of these switches to LD
    1398     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
    1399       libsuff= shlibsuff= libmagic=32-bit;;
    1400     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
    1401       libsuff=32 shlibsuff=N32 libmagic=N32;;
    1402     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
    1403       libsuff=64 shlibsuff=64 libmagic=64-bit;;
     2929    *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
     2930    *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
     2931    *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
    14042932    *) libsuff= shlibsuff= libmagic=never-match;;
    14052933    esac
     
    14102938  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
    14112939  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
    1412   hardcode_into_libs=yes
    14132940  ;;
    14142941
    14152942# No shared lib support for Linux oldld, aout, or coff.
    1416 linux*oldld* | linux*aout* | linux*coff*)
     2943linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
    14172944  dynamic_linker=no
    14182945  ;;
    14192946
    14202947# This must be Linux ELF.
    1421 linux*)
     2948linux-gnu*)
    14222949  version_type=linux
    14232950  need_lib_prefix=no
    14242951  need_version=no
    1425   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    1426   soname_spec='${libname}${release}${shared_ext}$major'
     2952  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
     2953  soname_spec='${libname}${release}.so$major'
    14272954  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
    14282955  shlibpath_var=LD_LIBRARY_PATH
     
    14332960  hardcode_into_libs=yes
    14342961
    1435   # find out which ABI we are using
    1436   libsuff=
    1437   case "$host_cpu" in
    1438   x86_64*|s390x*|powerpc64*)
    1439     echo '[#]line __oline__ "configure"' > conftest.$ac_ext
    1440     if AC_TRY_EVAL(ac_compile); then
    1441       case `/usr/bin/file conftest.$ac_objext` in
    1442       *64-bit*)
    1443         libsuff=64
    1444         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
    1445         ;;
    1446       esac
    1447     fi
    1448     rm -rf conftest*
    1449     ;;
    1450   esac
    1451 
    1452   # Append ld.so.conf contents to the search path
    1453   if test -f /etc/ld.so.conf; then
    1454     lt_ld_extra=`$SED -e 's/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g' /etc/ld.so.conf | tr '\n' ' '`
    1455     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
    1456   fi
    1457 
    14582962  # We used to test for /lib/ld.so.1 and disable shared libraries on
    14592963  # powerpc, because MkLinux only supported shared libraries with the
     
    14632967  # assume the GNU/Linux dynamic linker is in use.
    14642968  dynamic_linker='GNU/Linux ld.so'
    1465   ;;
    1466 
    1467 knetbsd*-gnu)
    1468   version_type=linux
    1469   need_lib_prefix=no
    1470   need_version=no
    1471   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
    1472   soname_spec='${libname}${release}${shared_ext}$major'
    1473   shlibpath_var=LD_LIBRARY_PATH
    1474   shlibpath_overrides_runpath=no
    1475   hardcode_into_libs=yes
    1476   dynamic_linker='GNU ld.so'
     2969
     2970  # Find out which ABI we are using (multilib Linux x86_64 hack).
     2971  libsuff=
     2972  case "$host_cpu" in
     2973  x86_64*|s390x*)
     2974    echo '[#]line __oline__ "configure"' > conftest.$ac_ext
     2975    if AC_TRY_EVAL(ac_compile); then
     2976      case `/usr/bin/file conftest.$ac_objext` in
     2977      *64-bit*)
     2978        libsuff=64
     2979        ;;
     2980      esac
     2981    fi
     2982    rm -rf conftest*
     2983    ;;
     2984  *)
     2985    ;;
     2986  esac
     2987  sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
     2988  sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
    14772989  ;;
    14782990
     
    14822994  need_version=no
    14832995  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
    1484     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
     2996    library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
    14852997    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
    14862998    dynamic_linker='NetBSD (a.out) ld.so'
    14872999  else
    1488     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
    1489     soname_spec='${libname}${release}${shared_ext}$major'
     3000    library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
     3001    soname_spec='${libname}${release}.so$major'
    14903002    dynamic_linker='NetBSD ld.elf_so'
    14913003  fi
     
    14973009newsos6)
    14983010  version_type=linux
    1499   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    1500   shlibpath_var=LD_LIBRARY_PATH
    1501   shlibpath_overrides_runpath=yes
    1502   ;;
    1503 
    1504 nto-qnx*)
    1505   version_type=linux
    1506   need_lib_prefix=no
    1507   need_version=no
    1508   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    1509   soname_spec='${libname}${release}${shared_ext}$major'
     3011  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
    15103012  shlibpath_var=LD_LIBRARY_PATH
    15113013  shlibpath_overrides_runpath=yes
     
    15153017  version_type=sunos
    15163018  need_lib_prefix=no
    1517   need_version=yes
    1518   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
    1519   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
    1520   shlibpath_var=LD_LIBRARY_PATH
     3019  need_version=no
    15213020  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
    1522     case $host_os in
    1523       openbsd2.[[89]] | openbsd2.[[89]].*)
    1524         shlibpath_overrides_runpath=no
    1525         ;;
    1526       *)
    1527         shlibpath_overrides_runpath=yes
    1528         ;;
    1529       esac
     3021    case "$host_os" in
     3022    openbsd2.[[89]] | openbsd2.[[89]].*)
     3023      shlibpath_overrides_runpath=no
     3024      ;;
     3025    *)
     3026      shlibpath_overrides_runpath=yes
     3027      ;;
     3028    esac
    15303029  else
    15313030    shlibpath_overrides_runpath=yes
    15323031  fi
     3032  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
     3033  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
     3034  shlibpath_var=LD_LIBRARY_PATH
    15333035  ;;
    15343036
    15353037os2*)
    15363038  libname_spec='$name'
    1537   shrext_cmds=".dll"
    15383039  need_lib_prefix=no
    1539   library_names_spec='$libname${shared_ext} $libname.a'
     3040  library_names_spec='$libname.dll $libname.a'
    15403041  dynamic_linker='OS/2 ld.exe'
    15413042  shlibpath_var=LIBPATH
     
    15443045osf3* | osf4* | osf5*)
    15453046  version_type=osf
    1546   need_lib_prefix=no
    15473047  need_version=no
    1548   soname_spec='${libname}${release}${shared_ext}$major'
    1549   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
     3048  soname_spec='${libname}${release}.so$major'
     3049  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
    15503050  shlibpath_var=LD_LIBRARY_PATH
    15513051  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
    15523052  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
     3053  hardcode_into_libs=yes
    15533054  ;;
    15543055
    15553056sco3.2v5*)
    15563057  version_type=osf
    1557   soname_spec='${libname}${release}${shared_ext}$major'
    1558   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
     3058  soname_spec='${libname}${release}.so$major'
     3059  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
    15593060  shlibpath_var=LD_LIBRARY_PATH
    15603061  ;;
     
    15643065  need_lib_prefix=no
    15653066  need_version=no
    1566   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    1567   soname_spec='${libname}${release}${shared_ext}$major'
     3067  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
     3068  soname_spec='${libname}${release}.so$major'
    15683069  shlibpath_var=LD_LIBRARY_PATH
    15693070  shlibpath_overrides_runpath=yes
     
    15753076sunos4*)
    15763077  version_type=sunos
    1577   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
     3078  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
    15783079  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
    15793080  shlibpath_var=LD_LIBRARY_PATH
     
    15873088sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
    15883089  version_type=linux
    1589   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    1590   soname_spec='${libname}${release}${shared_ext}$major'
     3090  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
     3091  soname_spec='${libname}${release}.so$major'
    15913092  shlibpath_var=LD_LIBRARY_PATH
    15923093  case $host_vendor in
     
    16093110  ;;
    16103111
     3112uts4*)
     3113  version_type=linux
     3114  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
     3115  soname_spec='${libname}${release}.so$major'
     3116  shlibpath_var=LD_LIBRARY_PATH
     3117  ;;
     3118
     3119dgux*)
     3120  version_type=linux
     3121  need_lib_prefix=no
     3122  need_version=no
     3123  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
     3124  soname_spec='${libname}${release}.so$major'
     3125  shlibpath_var=LD_LIBRARY_PATH
     3126  ;;
     3127
    16113128sysv4*MP*)
    16123129  if test -d /usr/nec ;then
    16133130    version_type=linux
    1614     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
    1615     soname_spec='$libname${shared_ext}.$major'
     3131    library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
     3132    soname_spec='$libname.so.$major'
    16163133    shlibpath_var=LD_LIBRARY_PATH
    16173134  fi
    1618   ;;
    1619 
    1620 uts4*)
    1621   version_type=linux
    1622   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    1623   soname_spec='${libname}${release}${shared_ext}$major'
    1624   shlibpath_var=LD_LIBRARY_PATH
    16253135  ;;
    16263136
     
    16313141AC_MSG_RESULT([$dynamic_linker])
    16323142test "$dynamic_linker" = no && can_build_shared=no
    1633 ])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
    1634 
    1635 
    1636 # _LT_AC_TAGCONFIG
    1637 # ----------------
    1638 AC_DEFUN([_LT_AC_TAGCONFIG],
    1639 [AC_ARG_WITH([tags],
    1640     [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
    1641         [include additional configurations @<:@automatic@:>@])],
    1642     [tagnames="$withval"])
    1643 
    1644 if test -f "$ltmain" && test -n "$tagnames"; then
    1645   if test ! -f "${ofile}"; then
    1646     AC_MSG_WARN([output file `$ofile' does not exist])
    1647   fi
    1648 
    1649   if test -z "$LTCC"; then
    1650     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
    1651     if test -z "$LTCC"; then
    1652       AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
    1653     else
    1654       AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
    1655     fi
    1656   fi
    1657 
    1658   # Extract list of available tagged configurations in $ofile.
    1659   # Note that this assumes the entire list is on one line.
    1660   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
    1661 
    1662   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
    1663   for tagname in $tagnames; do
    1664     IFS="$lt_save_ifs"
    1665     # Check whether tagname contains only valid characters
    1666     case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
    1667     "") ;;
    1668     *)  AC_MSG_ERROR([invalid tag name: $tagname])
    1669         ;;
    1670     esac
    1671 
    1672     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
    1673     then
    1674       AC_MSG_ERROR([tag name \"$tagname\" already exists])
    1675     fi
    1676 
    1677     # Update the list of available tags.
    1678     if test -n "$tagname"; then
    1679       echo appending configuration tag \"$tagname\" to $ofile
    1680 
    1681       case $tagname in
    1682       CXX)
    1683         if test -n "$CXX" && test "X$CXX" != "Xno"; then
    1684           AC_LIBTOOL_LANG_CXX_CONFIG
    1685         else
    1686           tagname=""
    1687         fi
    1688         ;;
    1689 
    1690       F77)
    1691         if test -n "$F77" && test "X$F77" != "Xno"; then
    1692           AC_LIBTOOL_LANG_F77_CONFIG
    1693         else
    1694           tagname=""
    1695         fi
    1696         ;;
    1697 
    1698       GCJ)
    1699         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
    1700           AC_LIBTOOL_LANG_GCJ_CONFIG
    1701         else
    1702           tagname=""
    1703         fi
    1704         ;;
    1705 
    1706       RC)
    1707         AC_LIBTOOL_LANG_RC_CONFIG
    1708         ;;
    1709 
    1710       *)
    1711         AC_MSG_ERROR([Unsupported tag name: $tagname])
    1712         ;;
    1713       esac
    1714 
    1715       # Append the new tag name to the list of available tags.
    1716       if test -n "$tagname" ; then
    1717       available_tags="$available_tags $tagname"
    1718     fi
    1719     fi
    1720   done
    1721   IFS="$lt_save_ifs"
    1722 
    1723   # Now substitute the updated list of available tags.
    1724   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
    1725     mv "${ofile}T" "$ofile"
    1726     chmod +x "$ofile"
    1727   else
    1728     rm -f "${ofile}T"
    1729     AC_MSG_ERROR([unable to update list of available tagged configurations.])
    1730   fi
    1731 fi
    1732 ])# _LT_AC_TAGCONFIG
    1733 
    1734 
    1735 # AC_LIBTOOL_DLOPEN
    1736 # -----------------
    1737 # enable checks for dlopen support
    1738 AC_DEFUN([AC_LIBTOOL_DLOPEN],
    1739  [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
    1740 ])# AC_LIBTOOL_DLOPEN
    1741 
    1742 
    1743 # AC_LIBTOOL_WIN32_DLL
    1744 # --------------------
    1745 # declare package support for building win32 dll's
    1746 AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
    1747 [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
    1748 ])# AC_LIBTOOL_WIN32_DLL
    1749 
    1750 
    1751 # AC_ENABLE_SHARED([DEFAULT])
    1752 # ---------------------------
    1753 # implement the --enable-shared flag
    1754 # DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
    1755 AC_DEFUN([AC_ENABLE_SHARED],
    1756 [define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
    1757 AC_ARG_ENABLE([shared],
    1758     [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
    1759         [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
    1760     [p=${PACKAGE-default}
    1761     case $enableval in
    1762     yes) enable_shared=yes ;;
    1763     no) enable_shared=no ;;
    1764     *)
    1765       enable_shared=no
    1766       # Look at the argument we got.  We use all the common list separators.
    1767       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
    1768       for pkg in $enableval; do
    1769         IFS="$lt_save_ifs"
    1770         if test "X$pkg" = "X$p"; then
    1771           enable_shared=yes
    1772         fi
    1773       done
    1774       IFS="$lt_save_ifs"
    1775       ;;
    1776     esac],
    1777     [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
    1778 ])# AC_ENABLE_SHARED
    1779 
    1780 
    1781 # AC_DISABLE_SHARED
    1782 # -----------------
    1783 #- set the default shared flag to --disable-shared
    1784 AC_DEFUN([AC_DISABLE_SHARED],
    1785 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
    1786 AC_ENABLE_SHARED(no)
    1787 ])# AC_DISABLE_SHARED
    1788 
    1789 
    1790 # AC_ENABLE_STATIC([DEFAULT])
    1791 # ---------------------------
    1792 # implement the --enable-static flag
    1793 # DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
    1794 AC_DEFUN([AC_ENABLE_STATIC],
    1795 [define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
    1796 AC_ARG_ENABLE([static],
    1797     [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
    1798         [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
    1799     [p=${PACKAGE-default}
    1800     case $enableval in
    1801     yes) enable_static=yes ;;
    1802     no) enable_static=no ;;
    1803     *)
    1804      enable_static=no
    1805       # Look at the argument we got.  We use all the common list separators.
    1806       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
    1807       for pkg in $enableval; do
    1808         IFS="$lt_save_ifs"
    1809         if test "X$pkg" = "X$p"; then
    1810           enable_static=yes
    1811         fi
    1812       done
    1813       IFS="$lt_save_ifs"
    1814       ;;
    1815     esac],
    1816     [enable_static=]AC_ENABLE_STATIC_DEFAULT)
    1817 ])# AC_ENABLE_STATIC
    1818 
    1819 
    1820 # AC_DISABLE_STATIC
    1821 # -----------------
    1822 # set the default static flag to --disable-static
    1823 AC_DEFUN([AC_DISABLE_STATIC],
    1824 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
    1825 AC_ENABLE_STATIC(no)
    1826 ])# AC_DISABLE_STATIC
    1827 
    1828 
    1829 # AC_ENABLE_FAST_INSTALL([DEFAULT])
    1830 # ---------------------------------
    1831 # implement the --enable-fast-install flag
    1832 # DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
    1833 AC_DEFUN([AC_ENABLE_FAST_INSTALL],
    1834 [define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
    1835 AC_ARG_ENABLE([fast-install],
    1836     [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
    1837     [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
    1838     [p=${PACKAGE-default}
    1839     case $enableval in
    1840     yes) enable_fast_install=yes ;;
    1841     no) enable_fast_install=no ;;
    1842     *)
    1843       enable_fast_install=no
    1844       # Look at the argument we got.  We use all the common list separators.
    1845       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
    1846       for pkg in $enableval; do
    1847         IFS="$lt_save_ifs"
    1848         if test "X$pkg" = "X$p"; then
    1849           enable_fast_install=yes
    1850         fi
    1851       done
    1852       IFS="$lt_save_ifs"
    1853       ;;
    1854     esac],
    1855     [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
    1856 ])# AC_ENABLE_FAST_INSTALL
    1857 
    1858 
    1859 # AC_DISABLE_FAST_INSTALL
    1860 # -----------------------
    1861 # set the default to --disable-fast-install
    1862 AC_DEFUN([AC_DISABLE_FAST_INSTALL],
    1863 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
    1864 AC_ENABLE_FAST_INSTALL(no)
    1865 ])# AC_DISABLE_FAST_INSTALL
    1866 
    1867 
    1868 # AC_LIBTOOL_PICMODE([MODE])
    1869 # --------------------------
    1870 # implement the --with-pic flag
    1871 # MODE is either `yes' or `no'.  If omitted, it defaults to `both'.
    1872 AC_DEFUN([AC_LIBTOOL_PICMODE],
    1873 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
    1874 pic_mode=ifelse($#,1,$1,default)
    1875 ])# AC_LIBTOOL_PICMODE
    1876 
    1877 
    1878 # AC_PROG_EGREP
    1879 # -------------
    1880 # This is predefined starting with Autoconf 2.54, so this conditional
    1881 # definition can be removed once we require Autoconf 2.54 or later.
    1882 m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
    1883 [AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
    1884    [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
    1885     then ac_cv_prog_egrep='grep -E'
    1886     else ac_cv_prog_egrep='egrep'
    1887     fi])
    1888  EGREP=$ac_cv_prog_egrep
    1889  AC_SUBST([EGREP])
    1890 ])])
    1891 
    1892 
    1893 # AC_PATH_TOOL_PREFIX
    1894 # -------------------
    1895 # find a file program which can recognise shared library
    1896 AC_DEFUN([AC_PATH_TOOL_PREFIX],
    1897 [AC_REQUIRE([AC_PROG_EGREP])dnl
    1898 AC_MSG_CHECKING([for $1])
    1899 AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
    1900 [case $MAGIC_CMD in
    1901 [[\\/*] |  ?:[\\/]*])
    1902   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
    1903   ;;
    1904 *)
    1905   lt_save_MAGIC_CMD="$MAGIC_CMD"
    1906   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
    1907 dnl $ac_dummy forces splitting on constant user-supplied paths.
    1908 dnl POSIX.2 word splitting is done only on the output of word expansions,
    1909 dnl not every word.  This closes a longstanding sh security hole.
    1910   ac_dummy="ifelse([$2], , $PATH, [$2])"
    1911   for ac_dir in $ac_dummy; do
    1912     IFS="$lt_save_ifs"
    1913     test -z "$ac_dir" && ac_dir=.
    1914     if test -f $ac_dir/$1; then
    1915       lt_cv_path_MAGIC_CMD="$ac_dir/$1"
    1916       if test -n "$file_magic_test_file"; then
    1917         case $deplibs_check_method in
    1918         "file_magic "*)
    1919           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
    1920           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
    1921           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
    1922             $EGREP "$file_magic_regex" > /dev/null; then
    1923             :
    1924           else
    1925             cat <<EOF 1>&2
    1926 
    1927 *** Warning: the command libtool uses to detect shared libraries,
    1928 *** $file_magic_cmd, produces output that libtool cannot recognize.
    1929 *** The result is that libtool may fail to recognize shared libraries
    1930 *** as such.  This will affect the creation of libtool libraries that
    1931 *** depend on shared libraries, but programs linked with such libtool
    1932 *** libraries will work regardless of this problem.  Nevertheless, you
    1933 *** may want to report the problem to your system manager and/or to
    1934 *** bug-libtool@gnu.org
    1935 
    1936 EOF
    1937           fi ;;
    1938         esac
    1939       fi
    1940       break
    1941     fi
    1942   done
    1943   IFS="$lt_save_ifs"
    1944   MAGIC_CMD="$lt_save_MAGIC_CMD"
    1945   ;;
    1946 esac])
    1947 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
    1948 if test -n "$MAGIC_CMD"; then
    1949   AC_MSG_RESULT($MAGIC_CMD)
    1950 else
    1951   AC_MSG_RESULT(no)
    1952 fi
    1953 ])# AC_PATH_TOOL_PREFIX
    1954 
    1955 
    1956 # AC_PATH_MAGIC
    1957 # -------------
    1958 # find a file program which can recognise a shared library
    1959 AC_DEFUN([AC_PATH_MAGIC],
    1960 [AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
    1961 if test -z "$lt_cv_path_MAGIC_CMD"; then
    1962   if test -n "$ac_tool_prefix"; then
    1963     AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
    1964   else
    1965     MAGIC_CMD=:
    1966   fi
    1967 fi
    1968 ])# AC_PATH_MAGIC
    1969 
    1970 
    1971 # AC_PROG_LD
    1972 # ----------
    1973 # find the pathname to the GNU or non-GNU linker
    1974 AC_DEFUN([AC_PROG_LD],
    1975 [AC_ARG_WITH([gnu-ld],
    1976     [AC_HELP_STRING([--with-gnu-ld],
    1977         [assume the C compiler uses GNU ld @<:@default=no@:>@])],
    1978     [test "$withval" = no || with_gnu_ld=yes],
    1979     [with_gnu_ld=no])
    1980 AC_REQUIRE([LT_AC_PROG_SED])dnl
    1981 AC_REQUIRE([AC_PROG_CC])dnl
    1982 AC_REQUIRE([AC_CANONICAL_HOST])dnl
    1983 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
    1984 ac_prog=ld
    1985 if test "$GCC" = yes; then
    1986   # Check if gcc -print-prog-name=ld gives a path.
    1987   AC_MSG_CHECKING([for ld used by $CC])
    1988   case $host in
    1989   *-*-mingw*)
    1990     # gcc leaves a trailing carriage return which upsets mingw
    1991     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
    1992   *)
    1993     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
    1994   esac
    1995   case $ac_prog in
    1996     # Accept absolute paths.
    1997     [[\\/]]* | ?:[[\\/]]*)
    1998       re_direlt='/[[^/]][[^/]]*/\.\./'
    1999       # Canonicalize the pathname of ld
    2000       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
    2001       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
    2002         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
    2003       done
    2004       test -z "$LD" && LD="$ac_prog"
    2005       ;;
    2006   "")
    2007     # If it fails, then pretend we aren't using GCC.
    2008     ac_prog=ld
    2009     ;;
    2010   *)
    2011     # If it is relative, then search for the first ld in PATH.
    2012     with_gnu_ld=unknown
    2013     ;;
    2014   esac
    2015 elif test "$with_gnu_ld" = yes; then
    2016   AC_MSG_CHECKING([for GNU ld])
    2017 else
    2018   AC_MSG_CHECKING([for non-GNU ld])
    2019 fi
    2020 AC_CACHE_VAL(lt_cv_path_LD,
    2021 [if test -z "$LD"; then
    2022   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
    2023   for ac_dir in $PATH; do
    2024     IFS="$lt_save_ifs"
    2025     test -z "$ac_dir" && ac_dir=.
    2026     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
    2027       lt_cv_path_LD="$ac_dir/$ac_prog"
    2028       # Check to see if the program is GNU ld.  I'd rather use --version,
    2029       # but apparently some GNU ld's only accept -v.
    2030       # Break only if it was the GNU/non-GNU ld that we prefer.
    2031       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
    2032       *GNU* | *'with BFD'*)
    2033         test "$with_gnu_ld" != no && break
    2034         ;;
    2035       *)
    2036         test "$with_gnu_ld" != yes && break
    2037         ;;
    2038       esac
    2039     fi
    2040   done
    2041   IFS="$lt_save_ifs"
    2042 else
    2043   lt_cv_path_LD="$LD" # Let the user override the test with a path.
    2044 fi])
    2045 LD="$lt_cv_path_LD"
    2046 if test -n "$LD"; then
    2047   AC_MSG_RESULT($LD)
    2048 else
    2049   AC_MSG_RESULT(no)
    2050 fi
    2051 test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
    2052 AC_PROG_LD_GNU
    2053 ])# AC_PROG_LD
    2054 
    2055 
    2056 # AC_PROG_LD_GNU
    2057 # --------------
    2058 AC_DEFUN([AC_PROG_LD_GNU],
    2059 [AC_REQUIRE([AC_PROG_EGREP])dnl
    2060 AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
    2061 [# I'd rather use --version here, but apparently some GNU ld's only accept -v.
    2062 case `$LD -v 2>&1 </dev/null` in
    2063 *GNU* | *'with BFD'*)
    2064   lt_cv_prog_gnu_ld=yes
    2065   ;;
    2066 *)
    2067   lt_cv_prog_gnu_ld=no
    2068   ;;
    2069 esac])
    2070 with_gnu_ld=$lt_cv_prog_gnu_ld
    2071 ])# AC_PROG_LD_GNU
    2072 
    2073 
    2074 # AC_PROG_LD_RELOAD_FLAG
    2075 # ----------------------
    2076 # find reload flag for linker
    2077 #   -- PORTME Some linkers may need a different reload flag.
    2078 AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
    2079 [AC_CACHE_CHECK([for $LD option to reload object files],
    2080   lt_cv_ld_reload_flag,
    2081   [lt_cv_ld_reload_flag='-r'])
    2082 reload_flag=$lt_cv_ld_reload_flag
    2083 case $reload_flag in
    2084 "" | " "*) ;;
    2085 *) reload_flag=" $reload_flag" ;;
    2086 esac
    2087 reload_cmds='$LD$reload_flag -o $output$reload_objs'
    2088 ])# AC_PROG_LD_RELOAD_FLAG
    2089 
    2090 
    2091 # AC_DEPLIBS_CHECK_METHOD
    2092 # -----------------------
    2093 # how to check for library dependencies
    2094 #  -- PORTME fill in with the dynamic library characteristics
    2095 AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
    2096 [AC_CACHE_CHECK([how to recognise dependent libraries],
    2097 lt_cv_deplibs_check_method,
    2098 [lt_cv_file_magic_cmd='$MAGIC_CMD'
    2099 lt_cv_file_magic_test_file=
    2100 lt_cv_deplibs_check_method='unknown'
    2101 # Need to set the preceding variable on all platforms that support
    2102 # interlibrary dependencies.
    2103 # 'none' -- dependencies not supported.
    2104 # `unknown' -- same as none, but documents that we really don't know.
    2105 # 'pass_all' -- all dependencies passed with no checks.
    2106 # 'test_compile' -- check by making test program.
    2107 # 'file_magic [[regex]]' -- check by looking for files in library path
    2108 # which responds to the $file_magic_cmd with a given extended regex.
    2109 # If you have `file' or equivalent on your system and you're not sure
    2110 # whether `pass_all' will *always* work, you probably want this one.
    2111 
    2112 case $host_os in
    2113 aix4* | aix5*)
    2114   lt_cv_deplibs_check_method=pass_all
    2115   ;;
    2116 
    2117 beos*)
    2118   lt_cv_deplibs_check_method=pass_all
    2119   ;;
    2120 
    2121 bsdi4*)
    2122   lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
    2123   lt_cv_file_magic_cmd='/usr/bin/file -L'
    2124   lt_cv_file_magic_test_file=/shlib/libc.so
    2125   ;;
    2126 
    2127 cygwin*)
    2128   # func_win32_libid is a shell function defined in ltmain.sh
    2129   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
    2130   lt_cv_file_magic_cmd='func_win32_libid'
    2131   ;;
    2132 
    2133 mingw* | pw32*)
    2134   # Base MSYS/MinGW do not provide the 'file' command needed by
    2135   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
    2136   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
    2137   lt_cv_file_magic_cmd='$OBJDUMP -f'
    2138   ;;
    2139 
    2140 darwin* | rhapsody*)
    2141   lt_cv_deplibs_check_method=pass_all
    2142   ;;
    2143 
    2144 freebsd* | kfreebsd*-gnu)
    2145   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
    2146     case $host_cpu in
    2147     i*86 )
    2148       # Not sure whether the presence of OpenBSD here was a mistake.
    2149       # Let's accept both of them until this is cleared up.
    2150       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[[3-9]]86 (compact )?demand paged shared library'
    2151       lt_cv_file_magic_cmd=/usr/bin/file
    2152       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
    2153       ;;
    2154     esac
    2155   else
    2156     lt_cv_deplibs_check_method=pass_all
    2157   fi
    2158   ;;
    2159 
    2160 gnu*)
    2161   lt_cv_deplibs_check_method=pass_all
    2162   ;;
    2163 
    2164 hpux10.20* | hpux11*)
    2165   lt_cv_file_magic_cmd=/usr/bin/file
    2166   case "$host_cpu" in
    2167   ia64*)
    2168     lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
    2169     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
    2170     ;;
    2171   hppa*64*)
    2172     [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]']
    2173     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
    2174     ;;
    2175   *)
    2176     lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
    2177     lt_cv_file_magic_test_file=/usr/lib/libc.sl
    2178     ;;
    2179   esac
    2180   ;;
    2181 
    2182 irix5* | irix6* | nonstopux*)
    2183   case $LD in
    2184   *-32|*"-32 ") libmagic=32-bit;;
    2185   *-n32|*"-n32 ") libmagic=N32;;
    2186   *-64|*"-64 ") libmagic=64-bit;;
    2187   *) libmagic=never-match;;
    2188   esac
    2189   lt_cv_deplibs_check_method=pass_all
    2190   ;;
    2191 
    2192 # This must be Linux ELF.
    2193 linux*)
    2194   case $host_cpu in
    2195   alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*|x86_64*)
    2196     lt_cv_deplibs_check_method=pass_all ;;
    2197   *)
    2198     # glibc up to 2.1.1 does not perform some relocations on ARM
    2199     # this will be overridden with pass_all, but let us keep it just in case
    2200     lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' ;;
    2201   esac
    2202   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
    2203   lt_cv_deplibs_check_method=pass_all
    2204   ;;
    2205 
    2206 netbsd*)
    2207   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
    2208     lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
    2209   else
    2210     lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
    2211   fi
    2212   ;;
    2213 
    2214 newos6*)
    2215   lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
    2216   lt_cv_file_magic_cmd=/usr/bin/file
    2217   lt_cv_file_magic_test_file=/usr/lib/libnls.so
    2218   ;;
    2219 
    2220 nto-qnx*)
    2221   lt_cv_deplibs_check_method=unknown
    2222   ;;
    2223 
    2224 openbsd*)
    2225   lt_cv_file_magic_cmd=/usr/bin/file
    2226   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
    2227   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
    2228     lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB shared object'
    2229   else
    2230     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
    2231   fi
    2232   ;;
    2233 
    2234 osf3* | osf4* | osf5*)
    2235   lt_cv_deplibs_check_method=pass_all
    2236   ;;
    2237 
    2238 sco3.2v5*)
    2239   lt_cv_deplibs_check_method=pass_all
    2240   ;;
    2241 
    2242 solaris*)
    2243   lt_cv_deplibs_check_method=pass_all
    2244   ;;
    2245 
    2246 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
    2247   case $host_vendor in
    2248   motorola)
    2249     lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]'
    2250     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
    2251     ;;
    2252   ncr)
    2253     lt_cv_deplibs_check_method=pass_all
    2254     ;;
    2255   sequent)
    2256     lt_cv_file_magic_cmd='/bin/file'
    2257     lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
    2258     ;;
    2259   sni)
    2260     lt_cv_file_magic_cmd='/bin/file'
    2261     lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
    2262     lt_cv_file_magic_test_file=/lib/libc.so
    2263     ;;
    2264   siemens)
    2265     lt_cv_deplibs_check_method=pass_all
    2266     ;;
    2267   esac
    2268   ;;
    2269 
    2270 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7* | sysv4*uw2*)
    2271   lt_cv_deplibs_check_method=pass_all
    2272   ;;
    2273 esac
    2274 ])
    2275 file_magic_cmd=$lt_cv_file_magic_cmd
    2276 deplibs_check_method=$lt_cv_deplibs_check_method
    2277 test -z "$deplibs_check_method" && deplibs_check_method=unknown
    2278 ])# AC_DEPLIBS_CHECK_METHOD
    2279 
    2280 
    2281 # AC_PROG_NM
    2282 # ----------
    2283 # find the pathname to a BSD-compatible name lister
    2284 AC_DEFUN([AC_PROG_NM],
    2285 [AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
    2286 [if test -n "$NM"; then
    2287   # Let the user override the test.
    2288   lt_cv_path_NM="$NM"
    2289 else
    2290   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
    2291   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
    2292     IFS="$lt_save_ifs"
    2293     test -z "$ac_dir" && ac_dir=.
    2294     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
    2295     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
    2296       # Check to see if the nm accepts a BSD-compat flag.
    2297       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
    2298       #   nm: unknown option "B" ignored
    2299       # Tru64's nm complains that /dev/null is an invalid object file
    2300       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
    2301       */dev/null* | *'Invalid file or object type'*)
    2302         lt_cv_path_NM="$tmp_nm -B"
    2303         break
    2304         ;;
    2305       *)
    2306         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
    2307         */dev/null*)
    2308           lt_cv_path_NM="$tmp_nm -p"
    2309           break
    2310           ;;
    2311         *)
    2312           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
    2313           continue # so that we can try to find one that supports BSD flags
    2314           ;;
    2315         esac
    2316       esac
    2317     fi
    2318   done
    2319   IFS="$lt_save_ifs"
    2320   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
    2321 fi])
    2322 NM="$lt_cv_path_NM"
    2323 ])# AC_PROG_NM
    2324 
    2325 
    2326 # AC_CHECK_LIBM
    2327 # -------------
    2328 # check for math library
    2329 AC_DEFUN([AC_CHECK_LIBM],
    2330 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
    2331 LIBM=
    2332 case $host in
    2333 *-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
    2334   # These system don't have libm, or don't need it
    2335   ;;
    2336 *-ncr-sysv4.3*)
    2337   AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
    2338   AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
    2339   ;;
    2340 *)
    2341   AC_CHECK_LIB(m, cos, LIBM="-lm")
    2342   ;;
    2343 esac
    2344 ])# AC_CHECK_LIBM
    2345 
    2346 
    2347 # AC_LIBLTDL_CONVENIENCE([DIRECTORY])
    2348 # -----------------------------------
    2349 # sets LIBLTDL to the link flags for the libltdl convenience library and
    2350 # LTDLINCL to the include flags for the libltdl header and adds
    2351 # --enable-ltdl-convenience to the configure arguments.  Note that LIBLTDL
    2352 # and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called.  If
    2353 # DIRECTORY is not provided, it is assumed to be `libltdl'.  LIBLTDL will
    2354 # be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed with
    2355 # '${top_srcdir}/' (note the single quotes!).  If your package is not
    2356 # flat and you're not using automake, define top_builddir and
    2357 # top_srcdir appropriately in the Makefiles.
    2358 AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
    2359 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
    2360   case $enable_ltdl_convenience in
    2361   no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
    2362   "") enable_ltdl_convenience=yes
    2363       ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
    2364   esac
    2365   LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
    2366   LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
    2367   # For backwards non-gettext consistent compatibility...
    2368   INCLTDL="$LTDLINCL"
    2369 ])# AC_LIBLTDL_CONVENIENCE
    2370 
    2371 
    2372 # AC_LIBLTDL_INSTALLABLE([DIRECTORY])
    2373 # -----------------------------------
    2374 # sets LIBLTDL to the link flags for the libltdl installable library and
    2375 # LTDLINCL to the include flags for the libltdl header and adds
    2376 # --enable-ltdl-install to the configure arguments.  Note that LIBLTDL
    2377 # and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called.  If
    2378 # DIRECTORY is not provided and an installed libltdl is not found, it is
    2379 # assumed to be `libltdl'.  LIBLTDL will be prefixed with '${top_builddir}/'
    2380 # and LTDLINCL will be prefixed with '${top_srcdir}/' (note the single
    2381 # quotes!).  If your package is not flat and you're not using automake,
    2382 # define top_builddir and top_srcdir appropriately in the Makefiles.
    2383 # In the future, this macro may have to be called after AC_PROG_LIBTOOL.
    2384 AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
    2385 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
    2386   AC_CHECK_LIB(ltdl, lt_dlinit,
    2387   [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
    2388   [if test x"$enable_ltdl_install" = xno; then
    2389      AC_MSG_WARN([libltdl not installed, but installation disabled])
    2390    else
    2391      enable_ltdl_install=yes
    2392    fi
    2393   ])
    2394   if test x"$enable_ltdl_install" = x"yes"; then
    2395     ac_configure_args="$ac_configure_args --enable-ltdl-install"
    2396     LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
    2397     LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
    2398   else
    2399     ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
    2400     LIBLTDL="-lltdl"
    2401     LTDLINCL=
    2402   fi
    2403   # For backwards non-gettext consistent compatibility...
    2404   INCLTDL="$LTDLINCL"
    2405 ])# AC_LIBLTDL_INSTALLABLE
    2406 
    2407 
    2408 # AC_LIBTOOL_CXX
    2409 # --------------
    2410 # enable support for C++ libraries
    2411 AC_DEFUN([AC_LIBTOOL_CXX],
    2412 [AC_REQUIRE([_LT_AC_LANG_CXX])
    2413 ])# AC_LIBTOOL_CXX
    2414 
    2415 
    2416 # _LT_AC_LANG_CXX
    2417 # ---------------
    2418 AC_DEFUN([_LT_AC_LANG_CXX],
    2419 [AC_REQUIRE([AC_PROG_CXX])
    2420 AC_REQUIRE([AC_PROG_CXXCPP])
    2421 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
    2422 ])# _LT_AC_LANG_CXX
    2423 
    2424 
    2425 # AC_LIBTOOL_F77
    2426 # --------------
    2427 # enable support for Fortran 77 libraries
    2428 AC_DEFUN([AC_LIBTOOL_F77],
    2429 [AC_REQUIRE([_LT_AC_LANG_F77])
    2430 ])# AC_LIBTOOL_F77
    2431 
    2432 
    2433 # _LT_AC_LANG_F77
    2434 # ---------------
    2435 AC_DEFUN([_LT_AC_LANG_F77],
    2436 [AC_REQUIRE([AC_PROG_F77])
    2437 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
    2438 ])# _LT_AC_LANG_F77
    2439 
    2440 
    2441 # AC_LIBTOOL_GCJ
    2442 # --------------
    2443 # enable support for GCJ libraries
    2444 AC_DEFUN([AC_LIBTOOL_GCJ],
    2445 [AC_REQUIRE([_LT_AC_LANG_GCJ])
    2446 ])# AC_LIBTOOL_GCJ
    2447 
    2448 
    2449 # _LT_AC_LANG_GCJ
    2450 # ---------------
    2451 AC_DEFUN([_LT_AC_LANG_GCJ],
    2452 [AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
    2453   [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
    2454     [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
    2455       [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
    2456          [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
    2457            [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
    2458 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
    2459 ])# _LT_AC_LANG_GCJ
    2460 
    2461 
    2462 # AC_LIBTOOL_RC
    2463 # --------------
    2464 # enable support for Windows resource files
    2465 AC_DEFUN([AC_LIBTOOL_RC],
    2466 [AC_REQUIRE([LT_AC_PROG_RC])
    2467 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
    2468 ])# AC_LIBTOOL_RC
    2469 
    2470 
    2471 # AC_LIBTOOL_LANG_C_CONFIG
    2472 # ------------------------
    2473 # Ensure that the configuration vars for the C compiler are
    2474 # suitably defined.  Those variables are subsequently used by
    2475 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
    2476 AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
    2477 AC_DEFUN([_LT_AC_LANG_C_CONFIG],
    2478 [lt_save_CC="$CC"
    2479 AC_LANG_PUSH(C)
    2480 
    2481 # Source file extension for C test sources.
    2482 ac_ext=c
    2483 
    2484 # Object file extension for compiled C test sources.
    2485 objext=o
    2486 _LT_AC_TAGVAR(objext, $1)=$objext
    2487 
    2488 # Code to be used in simple compile tests
    2489 lt_simple_compile_test_code="int some_variable = 0;\n"
    2490 
    2491 # Code to be used in simple link tests
    2492 lt_simple_link_test_code='int main(){return(0);}\n'
    2493 
    2494 _LT_AC_SYS_COMPILER
    2495 
    2496 #
    2497 # Check for any special shared library compilation flags.
    2498 #
    2499 _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)=
    2500 if test "$GCC" = no; then
    2501   case $host_os in
    2502   sco3.2v5*)
    2503     _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf'
    2504     ;;
    2505   esac
    2506 fi
    2507 if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then
    2508   AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries])
    2509   if echo "$old_CC $old_CFLAGS " | grep "[[     ]]$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[        ]]" >/dev/null; then :
    2510   else
    2511     AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure])
    2512     _LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no
    2513   fi
    2514 fi
    2515 
    2516 
    2517 #
    2518 # Check to make sure the static flag actually works.
    2519 #
    2520 AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works],
    2521   _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
    2522   $_LT_AC_TAGVAR(lt_prog_compiler_static, $1),
    2523   [],
    2524   [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
    2525 
    2526 
    2527 AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
    2528 AC_LIBTOOL_PROG_COMPILER_PIC($1)
    2529 AC_LIBTOOL_PROG_CC_C_O($1)
    2530 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
    2531 AC_LIBTOOL_PROG_LD_SHLIBS($1)
    2532 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
    2533 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
    2534 AC_LIBTOOL_SYS_LIB_STRIP
    2535 AC_LIBTOOL_DLOPEN_SELF($1)
    2536 
    2537 # Report which librarie types wil actually be built
     3143
     3144# Report the final consequences.
    25383145AC_MSG_CHECKING([if libtool supports shared libraries])
    25393146AC_MSG_RESULT([$can_build_shared])
     
    25533160  ;;
    25543161
    2555 aix4* | aix5*)
     3162aix4*)
    25563163  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
    25573164    test "$enable_shared" = yes && enable_static=no
    25583165  fi
    25593166  ;;
    2560   darwin* | rhapsody*)
    2561   if test "$GCC" = yes; then
    2562     _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
    2563     case "$host_os" in
    2564     rhapsody* | darwin1.[[012]])
    2565       _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
    2566       ;;
    2567     *) # Darwin 1.3 on
    2568       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
    2569         _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
    2570       else
    2571         case ${MACOSX_DEPLOYMENT_TARGET} in
    2572           10.[[012]])
    2573             _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
    2574             ;;
    2575           10.*)
    2576             _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
    2577             ;;
    2578         esac
    2579       fi
    2580       ;;
    2581     esac
    2582     output_verbose_link_cmd='echo'
    2583     _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
    2584     _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
    2585     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
    2586     _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}'
    2587     _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}'
    2588     _LT_AC_TAGVAR(hardcode_direct, $1)=no
    2589     _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
    2590     _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
    2591     _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
    2592     _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
    2593   else
    2594     _LT_AC_TAGVAR(ld_shlibs, $1)=no
    2595   fi
    2596     ;;
    25973167esac
    25983168AC_MSG_RESULT([$enable_shared])
     
    26033173AC_MSG_RESULT([$enable_static])
    26043174
    2605 AC_LIBTOOL_CONFIG($1)
    2606 
    2607 AC_LANG_POP
    2608 CC="$lt_save_CC"
    2609 ])# AC_LIBTOOL_LANG_C_CONFIG
    2610 
    2611 
    2612 # AC_LIBTOOL_LANG_CXX_CONFIG
    2613 # --------------------------
    2614 # Ensure that the configuration vars for the C compiler are
    2615 # suitably defined.  Those variables are subsequently used by
    2616 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
    2617 AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
    2618 AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
    2619 [AC_LANG_PUSH(C++)
    2620 AC_REQUIRE([AC_PROG_CXX])
    2621 AC_REQUIRE([AC_PROG_CXXCPP])
    2622 
    2623 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
    2624 _LT_AC_TAGVAR(allow_undefined_flag, $1)=
    2625 _LT_AC_TAGVAR(always_export_symbols, $1)=no
    2626 _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
    2627 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
    2628 _LT_AC_TAGVAR(hardcode_direct, $1)=no
    2629 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
    2630 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
    2631 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
    2632 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
    2633 _LT_AC_TAGVAR(hardcode_automatic, $1)=no
    2634 _LT_AC_TAGVAR(module_cmds, $1)=
    2635 _LT_AC_TAGVAR(module_expsym_cmds, $1)=
    2636 _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
    2637 _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
    2638 _LT_AC_TAGVAR(no_undefined_flag, $1)=
    2639 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
    2640 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
    2641 
    2642 # Dependencies to place before and after the object being linked:
    2643 _LT_AC_TAGVAR(predep_objects, $1)=
    2644 _LT_AC_TAGVAR(postdep_objects, $1)=
    2645 _LT_AC_TAGVAR(predeps, $1)=
    2646 _LT_AC_TAGVAR(postdeps, $1)=
    2647 _LT_AC_TAGVAR(compiler_lib_search_path, $1)=
    2648 
    2649 # Source file extension for C++ test sources.
    2650 ac_ext=cc
    2651 
    2652 # Object file extension for compiled C++ test sources.
    2653 objext=o
    2654 _LT_AC_TAGVAR(objext, $1)=$objext
    2655 
    2656 # Code to be used in simple compile tests
    2657 lt_simple_compile_test_code="int some_variable = 0;\n"
    2658 
    2659 # Code to be used in simple link tests
    2660 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
    2661 
    2662 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
    2663 _LT_AC_SYS_COMPILER
    2664 
    2665 # Allow CC to be a program name with arguments.
    2666 lt_save_CC=$CC
    2667 lt_save_LD=$LD
    2668 lt_save_GCC=$GCC
    2669 GCC=$GXX
    2670 lt_save_with_gnu_ld=$with_gnu_ld
    2671 lt_save_path_LD=$lt_cv_path_LD
    2672 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
    2673   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
    2674 else
    2675   unset lt_cv_prog_gnu_ld
    2676 fi
    2677 if test -n "${lt_cv_path_LDCXX+set}"; then
    2678   lt_cv_path_LD=$lt_cv_path_LDCXX
    2679 else
    2680   unset lt_cv_path_LD
    2681 fi
    2682 test -z "${LDCXX+set}" || LD=$LDCXX
    2683 CC=${CXX-"c++"}
    2684 compiler=$CC
    2685 _LT_AC_TAGVAR(compiler, $1)=$CC
    2686 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
    2687 
    2688 # We don't want -fno-exception wen compiling C++ code, so set the
    2689 # no_builtin_flag separately
    2690 if test "$GXX" = yes; then
    2691   _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
    2692 else
    2693   _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
    2694 fi
    2695 
    2696 if test "$GXX" = yes; then
    2697   # Set up default GNU C++ configuration
    2698 
    2699   AC_PROG_LD
    2700 
    2701   # Check if GNU C++ uses GNU ld as the underlying linker, since the
    2702   # archiving commands below assume that GNU ld is being used.
    2703   if test "$with_gnu_ld" = yes; then
    2704     _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
    2705     _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
    2706 
    2707     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
    2708     _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
    2709 
    2710     # If archive_cmds runs LD, not CC, wlarc should be empty
    2711     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
    2712     #     investigate it a little bit more. (MM)
    2713     wlarc='${wl}'
    2714 
    2715     # ancient GNU ld didn't support --whole-archive et. al.
    2716     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
    2717         grep 'no-whole-archive' > /dev/null; then
    2718       _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
     3175if test "$hardcode_action" = relink; then
     3176  # Fast installation is not supported
     3177  enable_fast_install=no
     3178elif test "$shlibpath_overrides_runpath" = yes ||
     3179     test "$enable_shared" = no; then
     3180  # Fast installation is not necessary
     3181  enable_fast_install=needless
     3182fi
     3183
     3184variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
     3185if test "$GCC" = yes; then
     3186  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
     3187fi
     3188
     3189AC_LIBTOOL_DLOPEN_SELF
     3190
     3191if test "$enable_shared" = yes && test "$GCC" = yes; then
     3192  case $archive_cmds in
     3193  *'~'*)
     3194    # FIXME: we may have to deal with multi-command sequences.
     3195    ;;
     3196  '$CC '*)
     3197    # Test whether the compiler implicitly links with -lc since on some
     3198    # systems, -lgcc has to come before -lc. If gcc already passes -lc
     3199    # to ld, don't add -lc before -lgcc.
     3200    AC_MSG_CHECKING([whether -lc should be explicitly linked in])
     3201    AC_CACHE_VAL([lt_cv_archive_cmds_need_lc],
     3202    [$rm conftest*
     3203    echo 'static int dummy;' > conftest.$ac_ext
     3204
     3205    if AC_TRY_EVAL(ac_compile); then
     3206      soname=conftest
     3207      lib=conftest
     3208      libobjs=conftest.$ac_objext
     3209      deplibs=
     3210      wl=$lt_cv_prog_cc_wl
     3211      compiler_flags=-v
     3212      linker_flags=-v
     3213      verstring=
     3214      output_objdir=.
     3215      libname=conftest
     3216      save_allow_undefined_flag=$allow_undefined_flag
     3217      allow_undefined_flag=
     3218      if AC_TRY_EVAL(archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
     3219      then
     3220        lt_cv_archive_cmds_need_lc=no
     3221      else
     3222        lt_cv_archive_cmds_need_lc=yes
     3223      fi
     3224      allow_undefined_flag=$save_allow_undefined_flag
    27193225    else
    2720       _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
    2721     fi
    2722   else
    2723     with_gnu_ld=no
    2724     wlarc=
    2725 
    2726     # A generic and very simple default shared library creation
    2727     # command for GNU C++ for the case where it uses the native
    2728     # linker, instead of GNU ld.  If possible, this setting should
    2729     # overridden to take advantage of the native linker features on
    2730     # the platform it is being used on.
    2731     _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
    2732   fi
    2733 
    2734   # Commands to make compiler produce verbose output that lists
    2735   # what "hidden" libraries, object files and flags are used when
    2736   # linking a shared library.
    2737   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
    2738 
    2739 else
    2740   GXX=no
    2741   with_gnu_ld=no
    2742   wlarc=
    2743 fi
    2744 
    2745 # PORTME: fill in a description of your system's C++ link characteristics
    2746 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
    2747 _LT_AC_TAGVAR(ld_shlibs, $1)=yes
    2748 case $host_os in
    2749   aix3*)
    2750     # FIXME: insert proper C++ library support
    2751     _LT_AC_TAGVAR(ld_shlibs, $1)=no
    2752     ;;
    2753   aix4* | aix5*)
    2754     if test "$host_cpu" = ia64; then
    2755       # On IA64, the linker does run time linking by default, so we don't
    2756       # have to do anything special.
    2757       aix_use_runtimelinking=no
    2758       exp_sym_flag='-Bexport'
    2759       no_entry_flag=""
    2760     else
    2761       aix_use_runtimelinking=no
    2762 
    2763       # Test if we are trying to use run time linking or normal
    2764       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
    2765       # need to do runtime linking.
    2766       case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
    2767         for ld_flag in $LDFLAGS; do
    2768           case $ld_flag in
    2769           *-brtl*)
    2770             aix_use_runtimelinking=yes
    2771             break
    2772             ;;
    2773           esac
    2774         done
    2775       esac
    2776 
    2777       exp_sym_flag='-bexport'
    2778       no_entry_flag='-bnoentry'
    2779     fi
    2780 
    2781     # When large executables or shared objects are built, AIX ld can
    2782     # have problems creating the table of contents.  If linking a library
    2783     # or program results in "error TOC overflow" add -mminimal-toc to
    2784     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
    2785     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
    2786 
    2787     _LT_AC_TAGVAR(archive_cmds, $1)=''
    2788     _LT_AC_TAGVAR(hardcode_direct, $1)=yes
    2789     _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
    2790     _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
    2791 
    2792     if test "$GXX" = yes; then
    2793       case $host_os in aix4.[012]|aix4.[012].*)
    2794       # We only want to do this on AIX 4.2 and lower, the check
    2795       # below for broken collect2 doesn't work under 4.3+
    2796         collect2name=`${CC} -print-prog-name=collect2`
    2797         if test -f "$collect2name" && \
    2798            strings "$collect2name" | grep resolve_lib_name >/dev/null
    2799         then
    2800           # We have reworked collect2
    2801           _LT_AC_TAGVAR(hardcode_direct, $1)=yes
    2802         else
    2803           # We have old collect2
    2804           _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
    2805           # It fails to find uninstalled libraries when the uninstalled
    2806           # path is not listed in the libpath.  Setting hardcode_minus_L
    2807           # to unsupported forces relinking
    2808           _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
    2809           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
    2810           _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
    2811         fi
    2812       esac
    2813       shared_flag='-shared'
    2814     else
    2815       # not using gcc
    2816       if test "$host_cpu" = ia64; then
    2817         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
    2818         # chokes on -Wl,-G. The following line is correct:
    2819         shared_flag='-G'
    2820       else
    2821         if test "$aix_use_runtimelinking" = yes; then
    2822           shared_flag='${wl}-G'
    2823         else
    2824           shared_flag='${wl}-bM:SRE'
    2825         fi
    2826       fi
    2827     fi
    2828 
    2829     # It seems that -bexpall does not export symbols beginning with
    2830     # underscore (_), so it is better to generate a list of symbols to export.
    2831     _LT_AC_TAGVAR(always_export_symbols, $1)=yes
    2832     if test "$aix_use_runtimelinking" = yes; then
    2833       # Warning - without using the other runtime loading flags (-brtl),
    2834       # -berok will link without error, but may produce a broken library.
    2835       _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
    2836       # Determine the default libpath from the value encoded in an empty executable.
    2837       _LT_AC_SYS_LIBPATH_AIX
    2838       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
    2839 
    2840       _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"
    2841      else
    2842       if test "$host_cpu" = ia64; then
    2843         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
    2844         _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
    2845         _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"
    2846       else
    2847         # Determine the default libpath from the value encoded in an empty executable.
    2848         _LT_AC_SYS_LIBPATH_AIX
    2849         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
    2850         # Warning - without using the other run time loading flags,
    2851         # -berok will link without error, but may produce a broken library.
    2852         _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
    2853         _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
    2854         # -bexpall does not export symbols beginning with underscore (_)
    2855         _LT_AC_TAGVAR(always_export_symbols, $1)=yes
    2856         # Exported symbols can be pulled into shared objects from archives
    2857         _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
    2858         _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
    2859         # This is similar to how AIX traditionally builds it's shared libraries.
    2860         _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'
    2861       fi
    2862     fi
    2863     ;;
    2864   chorus*)
    2865     case $cc_basename in
    2866       *)
    2867         # FIXME: insert proper C++ library support
    2868         _LT_AC_TAGVAR(ld_shlibs, $1)=no
    2869         ;;
    2870     esac
    2871     ;;
    2872 
    2873   cygwin* | mingw* | pw32*)
    2874     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
    2875     # as there is no search path for DLLs.
    2876     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
    2877     _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
    2878     _LT_AC_TAGVAR(always_export_symbols, $1)=no
    2879     _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
    2880 
    2881     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
    2882       _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'
    2883       # If the export-symbols file already is a .def file (1st line
    2884       # is EXPORTS), use it as is; otherwise, prepend...
    2885       _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
    2886         cp $export_symbols $output_objdir/$soname.def;
    2887       else
    2888         echo EXPORTS > $output_objdir/$soname.def;
    2889         cat $export_symbols >> $output_objdir/$soname.def;
    2890       fi~
    2891       $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'
    2892     else
    2893       _LT_AC_TAGVAR(ld_shlibs, $1)=no
    2894     fi
    2895   ;;
    2896 
    2897   darwin* | rhapsody*)
    2898   if test "$GXX" = yes; then
    2899     _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
    2900     case "$host_os" in
    2901     rhapsody* | darwin1.[[012]])
    2902       _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
    2903       ;;
    2904     *) # Darwin 1.3 on
    2905       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
    2906         _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
    2907       else
    2908         case ${MACOSX_DEPLOYMENT_TARGET} in
    2909           10.[[012]])
    2910             _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
    2911             ;;
    2912           10.*)
    2913             _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
    2914             ;;
    2915         esac
    2916       fi
    2917       ;;
    2918     esac
    2919     lt_int_apple_cc_single_mod=no
    2920     output_verbose_link_cmd='echo'
    2921     if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
    2922       lt_int_apple_cc_single_mod=yes
    2923     fi
    2924     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
    2925       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
    2926     else
    2927       _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'
    2928     fi
    2929     _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
    2930 
    2931     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
    2932     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
    2933       _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}'
    2934     else
    2935       _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}'
    2936     fi
    2937     _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}'
    2938     _LT_AC_TAGVAR(hardcode_direct, $1)=no
    2939     _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
    2940     _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
    2941     _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
    2942     _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
    2943   else
    2944     _LT_AC_TAGVAR(ld_shlibs, $1)=no
    2945   fi
    2946     ;;
    2947 
    2948   dgux*)
    2949     case $cc_basename in
    2950       ec++)
    2951         # FIXME: insert proper C++ library support
    2952         _LT_AC_TAGVAR(ld_shlibs, $1)=no
    2953         ;;
    2954       ghcx)
    2955         # Green Hills C++ Compiler
    2956         # FIXME: insert proper C++ library support
    2957         _LT_AC_TAGVAR(ld_shlibs, $1)=no
    2958         ;;
    2959       *)
    2960         # FIXME: insert proper C++ library support
    2961         _LT_AC_TAGVAR(ld_shlibs, $1)=no
    2962         ;;
    2963     esac
    2964     ;;
    2965   freebsd[12]*)
    2966     # C++ shared libraries reported to be fairly broken before switch to ELF
    2967     _LT_AC_TAGVAR(ld_shlibs, $1)=no
    2968     ;;
    2969   freebsd-elf*)
    2970     _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
    2971     ;;
    2972   freebsd* | kfreebsd*-gnu)
    2973     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
    2974     # conventions
    2975     _LT_AC_TAGVAR(ld_shlibs, $1)=yes
    2976     ;;
    2977   gnu*)
    2978     ;;
    2979   hpux9*)
    2980     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
    2981     _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
    2982     _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
    2983     _LT_AC_TAGVAR(hardcode_direct, $1)=yes
    2984     _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
    2985                                 # but as the default
    2986                                 # location of the library.
    2987 
    2988     case $cc_basename in
    2989     CC)
    2990       # FIXME: insert proper C++ library support
    2991       _LT_AC_TAGVAR(ld_shlibs, $1)=no
    2992       ;;
    2993     aCC)
    2994       _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'
    2995       # Commands to make compiler produce verbose output that lists
    2996       # what "hidden" libraries, object files and flags are used when
    2997       # linking a shared library.
    2998       #
    2999       # There doesn't appear to be a way to prevent this compiler from
    3000       # explicitly linking system object files so we need to strip them
    3001       # from the output so that they don't get included in the library
    3002       # dependencies.
    3003       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'
    3004       ;;
    3005     *)
    3006       if test "$GXX" = yes; then
    3007         _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
    3008       else
    3009         # FIXME: insert proper C++ library support
    3010         _LT_AC_TAGVAR(ld_shlibs, $1)=no
    3011       fi
    3012       ;;
    3013     esac
    3014     ;;
    3015   hpux10*|hpux11*)
    3016     if test $with_gnu_ld = no; then
    3017       case "$host_cpu" in
    3018       hppa*64*)
    3019         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
    3020         _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
    3021         _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
    3022         ;;
    3023       ia64*)
    3024         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
    3025         ;;
    3026       *)
    3027         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
    3028         _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
    3029         _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
    3030         ;;
    3031       esac
    3032     fi
    3033     case "$host_cpu" in
    3034     hppa*64*)
    3035       _LT_AC_TAGVAR(hardcode_direct, $1)=no
    3036       _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
    3037       ;;
    3038     ia64*)
    3039       _LT_AC_TAGVAR(hardcode_direct, $1)=no
    3040       _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
    3041       _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
    3042                                               # but as the default
    3043                                               # location of the library.
    3044       ;;
    3045     *)
    3046       _LT_AC_TAGVAR(hardcode_direct, $1)=yes
    3047       _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
    3048                                               # but as the default
    3049                                               # location of the library.
    3050       ;;
    3051     esac
    3052 
    3053     case $cc_basename in
    3054       CC)
    3055         # FIXME: insert proper C++ library support
    3056         _LT_AC_TAGVAR(ld_shlibs, $1)=no
    3057         ;;
    3058       aCC)
    3059         case "$host_cpu" in
    3060         hppa*64*|ia64*)
    3061           _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
    3062           ;;
    3063         *)
    3064           _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
    3065           ;;
    3066         esac
    3067         # Commands to make compiler produce verbose output that lists
    3068         # what "hidden" libraries, object files and flags are used when
    3069         # linking a shared library.
    3070         #
    3071         # There doesn't appear to be a way to prevent this compiler from
    3072         # explicitly linking system object files so we need to strip them
    3073         # from the output so that they don't get included in the library
    3074         # dependencies.
    3075         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'
    3076         ;;
    3077       *)
    3078         if test "$GXX" = yes; then
    3079           if test $with_gnu_ld = no; then
    3080             case "$host_cpu" in
    3081             ia64*|hppa*64*)
    3082               _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
    3083               ;;
    3084             *)
    3085               _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
    3086               ;;
    3087             esac
    3088           fi
    3089         else
    3090           # FIXME: insert proper C++ library support
    3091           _LT_AC_TAGVAR(ld_shlibs, $1)=no
    3092         fi
    3093         ;;
    3094     esac
    3095     ;;
    3096   irix5* | irix6*)
    3097     case $cc_basename in
    3098       CC)
    3099         # SGI C++
    3100         _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'
    3101 
    3102         # Archives containing C++ object files must be created using
    3103         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
    3104         # necessary to make sure instantiated templates are included
    3105         # in the archive.
    3106         _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
    3107         ;;
    3108       *)
    3109         if test "$GXX" = yes; then
    3110           if test "$with_gnu_ld" = no; then
    3111             _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'
    3112           else
    3113             _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'
    3114           fi
    3115         fi
    3116         _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
    3117         ;;
    3118     esac
    3119     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
    3120     _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
    3121     ;;
    3122   linux*)
    3123     case $cc_basename in
    3124       KCC)
    3125         # Kuck and Associates, Inc. (KAI) C++ Compiler
    3126 
    3127         # KCC will only create a shared library if the output file
    3128         # ends with ".so" (or ".sl" for HP-UX), so rename the library
    3129         # to its proper name (with version) after linking.
    3130         _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
    3131         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
    3132         # Commands to make compiler produce verbose output that lists
    3133         # what "hidden" libraries, object files and flags are used when
    3134         # linking a shared library.
    3135         #
    3136         # There doesn't appear to be a way to prevent this compiler from
    3137         # explicitly linking system object files so we need to strip them
    3138         # from the output so that they don't get included in the library
    3139         # dependencies.
    3140         output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
    3141 
    3142         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
    3143         _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
    3144 
    3145         # Archives containing C++ object files must be created using
    3146         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
    3147         _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
    3148         ;;
    3149       icpc)
    3150         # Intel C++
    3151         with_gnu_ld=yes
    3152         _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
    3153         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
    3154         _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'
    3155         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
    3156         _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
    3157         _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
    3158         ;;
    3159       cxx)
    3160         # Compaq C++
    3161         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
    3162         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
    3163 
    3164         runpath_var=LD_RUN_PATH
    3165         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
    3166         _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
    3167 
    3168         # Commands to make compiler produce verbose output that lists
    3169         # what "hidden" libraries, object files and flags are used when
    3170         # linking a shared library.
    3171         #
    3172         # There doesn't appear to be a way to prevent this compiler from
    3173         # explicitly linking system object files so we need to strip them
    3174         # from the output so that they don't get included in the library
    3175         # dependencies.
    3176         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'
    3177         ;;
    3178     esac
    3179     ;;
    3180   lynxos*)
    3181     # FIXME: insert proper C++ library support
    3182     _LT_AC_TAGVAR(ld_shlibs, $1)=no
    3183     ;;
    3184   m88k*)
    3185     # FIXME: insert proper C++ library support
    3186     _LT_AC_TAGVAR(ld_shlibs, $1)=no
    3187     ;;
    3188   mvs*)
    3189     case $cc_basename in
    3190       cxx)
    3191         # FIXME: insert proper C++ library support
    3192         _LT_AC_TAGVAR(ld_shlibs, $1)=no
    3193         ;;
    3194       *)
    3195         # FIXME: insert proper C++ library support
    3196         _LT_AC_TAGVAR(ld_shlibs, $1)=no
    3197         ;;
    3198     esac
    3199     ;;
    3200   netbsd*)
    3201     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
    3202       _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
    3203       wlarc=
    3204       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
    3205       _LT_AC_TAGVAR(hardcode_direct, $1)=yes
    3206       _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
    3207     fi
    3208     # Workaround some broken pre-1.5 toolchains
    3209     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
    3210     ;;
    3211   osf3*)
    3212     case $cc_basename in
    3213       KCC)
    3214         # Kuck and Associates, Inc. (KAI) C++ Compiler
    3215 
    3216         # KCC will only create a shared library if the output file
    3217         # ends with ".so" (or ".sl" for HP-UX), so rename the library
    3218         # to its proper name (with version) after linking.
    3219         _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
    3220 
    3221         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
    3222         _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
    3223 
    3224         # Archives containing C++ object files must be created using
    3225         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
    3226         _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
    3227 
    3228         ;;
    3229       RCC)
    3230         # Rational C++ 2.4.1
    3231         # FIXME: insert proper C++ library support
    3232         _LT_AC_TAGVAR(ld_shlibs, $1)=no
    3233         ;;
    3234       cxx)
    3235         _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
    3236         _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'
    3237 
    3238         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
    3239         _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
    3240 
    3241         # Commands to make compiler produce verbose output that lists
    3242         # what "hidden" libraries, object files and flags are used when
    3243         # linking a shared library.
    3244         #
    3245         # There doesn't appear to be a way to prevent this compiler from
    3246         # explicitly linking system object files so we need to strip them
    3247         # from the output so that they don't get included in the library
    3248         # dependencies.
    3249         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
    3250         ;;
    3251       *)
    3252         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
    3253           _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
    3254           _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'
    3255 
    3256           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
    3257           _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
    3258 
    3259           # Commands to make compiler produce verbose output that lists
    3260           # what "hidden" libraries, object files and flags are used when
    3261           # linking a shared library.
    3262           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
    3263 
    3264         else
    3265           # FIXME: insert proper C++ library support
    3266           _LT_AC_TAGVAR(ld_shlibs, $1)=no
    3267         fi
    3268         ;;
    3269     esac
    3270     ;;
    3271   osf4* | osf5*)
    3272     case $cc_basename in
    3273       KCC)
    3274         # Kuck and Associates, Inc. (KAI) C++ Compiler
    3275 
    3276         # KCC will only create a shared library if the output file
    3277         # ends with ".so" (or ".sl" for HP-UX), so rename the library
    3278         # to its proper name (with version) after linking.
    3279         _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
    3280 
    3281         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
    3282         _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
    3283 
    3284         # Archives containing C++ object files must be created using
    3285         # the KAI C++ compiler.
    3286         _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
    3287         ;;
    3288       RCC)
    3289         # Rational C++ 2.4.1
    3290         # FIXME: insert proper C++ library support
    3291         _LT_AC_TAGVAR(ld_shlibs, $1)=no
    3292         ;;
    3293       cxx)
    3294         _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
    3295         _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'
    3296         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
    3297           echo "-hidden">> $lib.exp~
    3298           $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~
    3299           $rm $lib.exp'
    3300 
    3301         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
    3302         _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
    3303 
    3304         # Commands to make compiler produce verbose output that lists
    3305         # what "hidden" libraries, object files and flags are used when
    3306         # linking a shared library.
    3307         #
    3308         # There doesn't appear to be a way to prevent this compiler from
    3309         # explicitly linking system object files so we need to strip them
    3310         # from the output so that they don't get included in the library
    3311         # dependencies.
    3312         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
    3313         ;;
    3314       *)
    3315         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
    3316           _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
    3317          _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'
    3318 
    3319           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
    3320           _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
    3321 
    3322           # Commands to make compiler produce verbose output that lists
    3323           # what "hidden" libraries, object files and flags are used when
    3324           # linking a shared library.
    3325           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
    3326 
    3327         else
    3328           # FIXME: insert proper C++ library support
    3329           _LT_AC_TAGVAR(ld_shlibs, $1)=no
    3330         fi
    3331         ;;
    3332     esac
    3333     ;;
    3334   psos*)
    3335     # FIXME: insert proper C++ library support
    3336     _LT_AC_TAGVAR(ld_shlibs, $1)=no
    3337     ;;
    3338   sco*)
    3339     _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
    3340     case $cc_basename in
    3341       CC)
    3342         # FIXME: insert proper C++ library support
    3343         _LT_AC_TAGVAR(ld_shlibs, $1)=no
    3344         ;;
    3345       *)
    3346         # FIXME: insert proper C++ library support
    3347         _LT_AC_TAGVAR(ld_shlibs, $1)=no
    3348         ;;
    3349     esac
    3350     ;;
    3351   sunos4*)
    3352     case $cc_basename in
    3353       CC)
    3354         # Sun C++ 4.x
    3355         # FIXME: insert proper C++ library support
    3356         _LT_AC_TAGVAR(ld_shlibs, $1)=no
    3357         ;;
    3358       lcc)
    3359         # Lucid
    3360         # FIXME: insert proper C++ library support
    3361         _LT_AC_TAGVAR(ld_shlibs, $1)=no
    3362         ;;
    3363       *)
    3364         # FIXME: insert proper C++ library support
    3365         _LT_AC_TAGVAR(ld_shlibs, $1)=no
    3366         ;;
    3367     esac
    3368     ;;
    3369   solaris*)
    3370     case $cc_basename in
    3371       CC)
    3372         # Sun C++ 4.2, 5.x and Centerline C++
    3373         _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
    3374         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
    3375         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
    3376         $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'
    3377 
    3378         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
    3379         _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
    3380         case $host_os in
    3381           solaris2.[0-5] | solaris2.[0-5].*) ;;
    3382           *)
    3383             # The C++ compiler is used as linker so we must use $wl
    3384             # flag to pass the commands to the underlying system
    3385             # linker.
    3386             # Supported since Solaris 2.6 (maybe 2.5.1?)
    3387             _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
    3388             ;;
    3389         esac
    3390         _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
    3391 
    3392         # Commands to make compiler produce verbose output that lists
    3393         # what "hidden" libraries, object files and flags are used when
    3394         # linking a shared library.
    3395         #
    3396         # There doesn't appear to be a way to prevent this compiler from
    3397         # explicitly linking system object files so we need to strip them
    3398         # from the output so that they don't get included in the library
    3399         # dependencies.
    3400         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'
    3401 
    3402         # Archives containing C++ object files must be created using
    3403         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
    3404         # necessary to make sure instantiated templates are included
    3405         # in the archive.
    3406         _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
    3407         ;;
    3408       gcx)
    3409         # Green Hills C++ Compiler
    3410         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
    3411 
    3412         # The C++ compiler must be used to create the archive.
    3413         _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
    3414         ;;
    3415       *)
    3416         # GNU C++ compiler with Solaris linker
    3417         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
    3418           _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
    3419           if $CC --version | grep -v '^2\.7' > /dev/null; then
    3420             _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
    3421             _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
    3422                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
    3423 
    3424             # Commands to make compiler produce verbose output that lists
    3425             # what "hidden" libraries, object files and flags are used when
    3426             # linking a shared library.
    3427             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
    3428           else
    3429             # g++ 2.7 appears to require `-G' NOT `-shared' on this
    3430             # platform.
    3431             _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
    3432             _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
    3433                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
    3434 
    3435             # Commands to make compiler produce verbose output that lists
    3436             # what "hidden" libraries, object files and flags are used when
    3437             # linking a shared library.
    3438             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
    3439           fi
    3440 
    3441           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
    3442         fi
    3443         ;;
    3444     esac
    3445     ;;
    3446   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
    3447     _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
    3448     ;;
    3449   tandem*)
    3450     case $cc_basename in
    3451       NCC)
    3452         # NonStop-UX NCC 3.20
    3453         # FIXME: insert proper C++ library support
    3454         _LT_AC_TAGVAR(ld_shlibs, $1)=no
    3455         ;;
    3456       *)
    3457         # FIXME: insert proper C++ library support
    3458         _LT_AC_TAGVAR(ld_shlibs, $1)=no
    3459         ;;
    3460     esac
    3461     ;;
    3462   vxworks*)
    3463     # FIXME: insert proper C++ library support
    3464     _LT_AC_TAGVAR(ld_shlibs, $1)=no
    3465     ;;
    3466   *)
    3467     # FIXME: insert proper C++ library support
    3468     _LT_AC_TAGVAR(ld_shlibs, $1)=no
    3469     ;;
    3470 esac
    3471 AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
    3472 test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
    3473 
    3474 _LT_AC_TAGVAR(GCC, $1)="$GXX"
    3475 _LT_AC_TAGVAR(LD, $1)="$LD"
    3476 
    3477 AC_LIBTOOL_POSTDEP_PREDEP($1)
    3478 AC_LIBTOOL_PROG_COMPILER_PIC($1)
    3479 AC_LIBTOOL_PROG_CC_C_O($1)
    3480 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
    3481 AC_LIBTOOL_PROG_LD_SHLIBS($1)
    3482 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
    3483 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
    3484 AC_LIBTOOL_SYS_LIB_STRIP
    3485 AC_LIBTOOL_DLOPEN_SELF($1)
    3486 
    3487 AC_LIBTOOL_CONFIG($1)
    3488 
    3489 AC_LANG_POP
    3490 CC=$lt_save_CC
    3491 LDCXX=$LD
    3492 LD=$lt_save_LD
    3493 GCC=$lt_save_GCC
    3494 with_gnu_ldcxx=$with_gnu_ld
    3495 with_gnu_ld=$lt_save_with_gnu_ld
    3496 lt_cv_path_LDCXX=$lt_cv_path_LD
    3497 lt_cv_path_LD=$lt_save_path_LD
    3498 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
    3499 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
    3500 ])# AC_LIBTOOL_LANG_CXX_CONFIG
    3501 
    3502 # AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
    3503 # ------------------------
    3504 # Figure out "hidden" library dependencies from verbose
    3505 # compiler output when linking a shared library.
    3506 # Parse the compiler output and extract the necessary
    3507 # objects, libraries and library flags.
    3508 AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
    3509 dnl we can't use the lt_simple_compile_test_code here,
    3510 dnl because it contains code intended for an executable,
    3511 dnl not a library.  It's possible we should let each
    3512 dnl tag define a new lt_????_link_test_code variable,
    3513 dnl but it's only used here...
    3514 ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
    3515 int a;
    3516 void foo (void) { a = 0; }
    3517 EOF
    3518 ],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
    3519 class Foo
    3520 {
    3521 public:
    3522   Foo (void) { a = 0; }
    3523 private:
    3524   int a;
    3525 };
    3526 EOF
    3527 ],[$1],[F77],[cat > conftest.$ac_ext <<EOF
    3528       subroutine foo
    3529       implicit none
    3530       integer*4 a
    3531       a=0
    3532       return
    3533       end
    3534 EOF
    3535 ],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
    3536 public class foo {
    3537   private int a;
    3538   public void bar (void) {
    3539     a = 0;
    3540   }
    3541 };
    3542 EOF
    3543 ])
    3544 dnl Parse the compiler output and extract the necessary
    3545 dnl objects, libraries and library flags.
    3546 if AC_TRY_EVAL(ac_compile); then
    3547   # Parse the compiler output and extract the necessary
    3548   # objects, libraries and library flags.
    3549 
    3550   # Sentinel used to keep track of whether or not we are before
    3551   # the conftest object file.
    3552   pre_test_object_deps_done=no
    3553 
    3554   # The `*' in the case matches for architectures that use `case' in
    3555   # $output_verbose_cmd can trigger glob expansion during the loop
    3556   # eval without this substitution.
    3557   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
    3558 
    3559   for p in `eval $output_verbose_link_cmd`; do
    3560     case $p in
    3561 
    3562     -L* | -R* | -l*)
    3563        # Some compilers place space between "-{L,R}" and the path.
    3564        # Remove the space.
    3565        if test $p = "-L" \
    3566           || test $p = "-R"; then
    3567          prev=$p
    3568          continue
    3569        else
    3570          prev=
    3571        fi
    3572 
    3573        if test "$pre_test_object_deps_done" = no; then
    3574          case $p in
    3575          -L* | -R*)
    3576            # Internal compiler library paths should come after those
    3577            # provided the user.  The postdeps already come after the
    3578            # user supplied libs so there is no need to process them.
    3579            if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
    3580              _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
    3581            else
    3582              _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
    3583            fi
    3584            ;;
    3585          # The "-l" case would never come before the object being
    3586          # linked, so don't bother handling this case.
    3587          esac
    3588        else
    3589          if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
    3590            _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
    3591          else
    3592            _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
    3593          fi
    3594        fi
    3595        ;;
    3596 
    3597     *.$objext)
    3598        # This assumes that the test object file only shows up
    3599        # once in the compiler output.
    3600        if test "$p" = "conftest.$objext"; then
    3601          pre_test_object_deps_done=yes
    3602          continue
    3603        fi
    3604 
    3605        if test "$pre_test_object_deps_done" = no; then
    3606          if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
    3607            _LT_AC_TAGVAR(predep_objects, $1)="$p"
    3608          else
    3609            _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
    3610          fi
    3611        else
    3612          if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
    3613            _LT_AC_TAGVAR(postdep_objects, $1)="$p"
    3614          else
    3615            _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
    3616          fi
    3617        fi
    3618        ;;
    3619 
    3620     *) ;; # Ignore the rest.
    3621 
    3622     esac
    3623   done
    3624 
    3625   # Clean up.
    3626   rm -f a.out a.exe
    3627 else
    3628   echo "libtool.m4: error: problem compiling $1 test program"
    3629 fi
    3630 
    3631 $rm -f confest.$objext
    3632 
    3633 case " $_LT_AC_TAGVAR(postdeps, $1) " in
    3634 *" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
    3635 esac
    3636 ])# AC_LIBTOOL_POSTDEP_PREDEP
    3637 
    3638 # AC_LIBTOOL_LANG_F77_CONFIG
    3639 # ------------------------
    3640 # Ensure that the configuration vars for the C compiler are
    3641 # suitably defined.  Those variables are subsequently used by
    3642 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
    3643 AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
    3644 AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
    3645 [AC_REQUIRE([AC_PROG_F77])
    3646 AC_LANG_PUSH(Fortran 77)
    3647 
    3648 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
    3649 _LT_AC_TAGVAR(allow_undefined_flag, $1)=
    3650 _LT_AC_TAGVAR(always_export_symbols, $1)=no
    3651 _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
    3652 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
    3653 _LT_AC_TAGVAR(hardcode_direct, $1)=no
    3654 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
    3655 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
    3656 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
    3657 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
    3658 _LT_AC_TAGVAR(hardcode_automatic, $1)=no
    3659 _LT_AC_TAGVAR(module_cmds, $1)=
    3660 _LT_AC_TAGVAR(module_expsym_cmds, $1)=
    3661 _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
    3662 _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
    3663 _LT_AC_TAGVAR(no_undefined_flag, $1)=
    3664 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
    3665 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
    3666 
    3667 # Source file extension for f77 test sources.
    3668 ac_ext=f
    3669 
    3670 # Object file extension for compiled f77 test sources.
    3671 objext=o
    3672 _LT_AC_TAGVAR(objext, $1)=$objext
    3673 
    3674 # Code to be used in simple compile tests
    3675 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
    3676 
    3677 # Code to be used in simple link tests
    3678 lt_simple_link_test_code="      program t\n      end\n"
    3679 
    3680 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
    3681 _LT_AC_SYS_COMPILER
    3682 
    3683 # Allow CC to be a program name with arguments.
    3684 lt_save_CC="$CC"
    3685 CC=${F77-"f77"}
    3686 compiler=$CC
    3687 _LT_AC_TAGVAR(compiler, $1)=$CC
    3688 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
    3689 
    3690 AC_MSG_CHECKING([if libtool supports shared libraries])
    3691 AC_MSG_RESULT([$can_build_shared])
    3692 
    3693 AC_MSG_CHECKING([whether to build shared libraries])
    3694 test "$can_build_shared" = "no" && enable_shared=no
    3695 
    3696 # On AIX, shared libraries and static libraries use the same namespace, and
    3697 # are all built from PIC.
    3698 case "$host_os" in
    3699 aix3*)
    3700   test "$enable_shared" = yes && enable_static=no
    3701   if test -n "$RANLIB"; then
    3702     archive_cmds="$archive_cmds~\$RANLIB \$lib"
    3703     postinstall_cmds='$RANLIB $lib'
    3704   fi
    3705   ;;
    3706 aix4* | aix5*)
    3707   test "$enable_shared" = yes && enable_static=no
    3708   ;;
    3709 esac
    3710 AC_MSG_RESULT([$enable_shared])
    3711 
    3712 AC_MSG_CHECKING([whether to build static libraries])
    3713 # Make sure either enable_shared or enable_static is yes.
    3714 test "$enable_shared" = yes || enable_static=yes
    3715 AC_MSG_RESULT([$enable_static])
    3716 
    3717 test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
    3718 
    3719 _LT_AC_TAGVAR(GCC, $1)="$G77"
    3720 _LT_AC_TAGVAR(LD, $1)="$LD"
    3721 
    3722 AC_LIBTOOL_PROG_COMPILER_PIC($1)
    3723 AC_LIBTOOL_PROG_CC_C_O($1)
    3724 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
    3725 AC_LIBTOOL_PROG_LD_SHLIBS($1)
    3726 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
    3727 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
    3728 AC_LIBTOOL_SYS_LIB_STRIP
    3729 
    3730 
    3731 AC_LIBTOOL_CONFIG($1)
    3732 
    3733 AC_LANG_POP
    3734 CC="$lt_save_CC"
    3735 ])# AC_LIBTOOL_LANG_F77_CONFIG
    3736 
    3737 
    3738 # AC_LIBTOOL_LANG_GCJ_CONFIG
    3739 # --------------------------
    3740 # Ensure that the configuration vars for the C compiler are
    3741 # suitably defined.  Those variables are subsequently used by
    3742 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
    3743 AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
    3744 AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
    3745 [AC_LANG_SAVE
    3746 
    3747 # Source file extension for Java test sources.
    3748 ac_ext=java
    3749 
    3750 # Object file extension for compiled Java test sources.
    3751 objext=o
    3752 _LT_AC_TAGVAR(objext, $1)=$objext
    3753 
    3754 # Code to be used in simple compile tests
    3755 lt_simple_compile_test_code="class foo {}\n"
    3756 
    3757 # Code to be used in simple link tests
    3758 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
    3759 
    3760 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
    3761 _LT_AC_SYS_COMPILER
    3762 
    3763 # Allow CC to be a program name with arguments.
    3764 lt_save_CC="$CC"
    3765 CC=${GCJ-"gcj"}
    3766 compiler=$CC
    3767 _LT_AC_TAGVAR(compiler, $1)=$CC
    3768 
    3769 # GCJ did not exist at the time GCC didn't implicitly link libc in.
    3770 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
    3771 
    3772 AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
    3773 AC_LIBTOOL_PROG_COMPILER_PIC($1)
    3774 AC_LIBTOOL_PROG_CC_C_O($1)
    3775 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
    3776 AC_LIBTOOL_PROG_LD_SHLIBS($1)
    3777 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
    3778 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
    3779 AC_LIBTOOL_SYS_LIB_STRIP
    3780 AC_LIBTOOL_DLOPEN_SELF($1)
    3781 
    3782 AC_LIBTOOL_CONFIG($1)
    3783 
    3784 AC_LANG_RESTORE
    3785 CC="$lt_save_CC"
    3786 ])# AC_LIBTOOL_LANG_GCJ_CONFIG
    3787 
    3788 
    3789 # AC_LIBTOOL_LANG_RC_CONFIG
    3790 # --------------------------
    3791 # Ensure that the configuration vars for the Windows resource compiler are
    3792 # suitably defined.  Those variables are subsequently used by
    3793 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
    3794 AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
    3795 AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
    3796 [AC_LANG_SAVE
    3797 
    3798 # Source file extension for RC test sources.
    3799 ac_ext=rc
    3800 
    3801 # Object file extension for compiled RC test sources.
    3802 objext=o
    3803 _LT_AC_TAGVAR(objext, $1)=$objext
    3804 
    3805 # Code to be used in simple compile tests
    3806 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
    3807 
    3808 # Code to be used in simple link tests
    3809 lt_simple_link_test_code="$lt_simple_compile_test_code"
    3810 
    3811 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
    3812 _LT_AC_SYS_COMPILER
    3813 
    3814 # Allow CC to be a program name with arguments.
    3815 lt_save_CC="$CC"
    3816 CC=${RC-"windres"}
    3817 compiler=$CC
    3818 _LT_AC_TAGVAR(compiler, $1)=$CC
    3819 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
    3820 
    3821 AC_LIBTOOL_CONFIG($1)
    3822 
    3823 AC_LANG_RESTORE
    3824 CC="$lt_save_CC"
    3825 ])# AC_LIBTOOL_LANG_RC_CONFIG
    3826 
    3827 
    3828 # AC_LIBTOOL_CONFIG([TAGNAME])
    3829 # ----------------------------
    3830 # If TAGNAME is not passed, then create an initial libtool script
    3831 # with a default configuration from the untagged config vars.  Otherwise
    3832 # add code to config.status for appending the configuration named by
    3833 # TAGNAME from the matching tagged config vars.
    3834 AC_DEFUN([AC_LIBTOOL_CONFIG],
    3835 [# The else clause should only fire when bootstrapping the
     3226      cat conftest.err 1>&5
     3227    fi])
     3228    AC_MSG_RESULT([$lt_cv_archive_cmds_need_lc])
     3229    ;;
     3230  esac
     3231fi
     3232need_lc=${lt_cv_archive_cmds_need_lc-yes}
     3233
     3234# The second clause should only fire when bootstrapping the
    38363235# libtool distribution, otherwise you forgot to ship ltmain.sh
    38373236# with your package, and you will get complaints that there are
    38383237# no rules to generate ltmain.sh.
    38393238if test -f "$ltmain"; then
    3840   # See if we are running on zsh, and set the options which allow our commands through
    3841   # without removal of \ escapes.
    3842   if test -n "${ZSH_VERSION+set}" ; then
    3843     setopt NO_GLOB_SUBST
    3844   fi
     3239  :
     3240else
     3241  # If there is no Makefile yet, we rely on a make rule to execute
     3242  # `config.status --recheck' to rerun these tests and create the
     3243  # libtool script then.
     3244  test -f Makefile && make "$ltmain"
     3245fi
     3246
     3247if test -f "$ltmain"; then
     3248  trap "$rm \"${ofile}T\"; exit 1" 1 2 15
     3249  $rm -f "${ofile}T"
     3250
     3251  echo creating $ofile
     3252
    38453253  # Now quote all the things that may contain metacharacters while being
    38463254  # careful not to overquote the AC_SUBSTed values.  We take copies of the
    38473255  # variables and quote the copies for generation of the libtool script.
    3848   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
    3849     SED SHELL STRIP \
    3850     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
    3851     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
    3852     deplibs_check_method reload_flag reload_cmds need_locks \
    3853     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
    3854     lt_cv_sys_global_symbol_to_c_name_address \
     3256  for var in echo old_CC old_CFLAGS SED \
     3257    AR AR_FLAGS CC LD LN_S NM SHELL \
     3258    reload_flag reload_cmds wl \
     3259    pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
     3260    thread_safe_flag_spec whole_archive_flag_spec libname_spec \
     3261    library_names_spec soname_spec \
     3262    RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
     3263    old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
     3264    postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
     3265    old_striplib striplib file_magic_cmd export_symbols_cmds \
     3266    deplibs_check_method allow_undefined_flag no_undefined_flag \
     3267    finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
     3268    global_symbol_to_c_name_address \
     3269    hardcode_libdir_flag_spec hardcode_libdir_separator  \
    38553270    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
    3856     old_postinstall_cmds old_postuninstall_cmds \
    3857     _LT_AC_TAGVAR(compiler, $1) \
    3858     _LT_AC_TAGVAR(CC, $1) \
    3859     _LT_AC_TAGVAR(LD, $1) \
    3860     _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
    3861     _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
    3862     _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
    3863     _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
    3864     _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
    3865     _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
    3866     _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
    3867     _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
    3868     _LT_AC_TAGVAR(old_archive_cmds, $1) \
    3869     _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
    3870     _LT_AC_TAGVAR(predep_objects, $1) \
    3871     _LT_AC_TAGVAR(postdep_objects, $1) \
    3872     _LT_AC_TAGVAR(predeps, $1) \
    3873     _LT_AC_TAGVAR(postdeps, $1) \
    3874     _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
    3875     _LT_AC_TAGVAR(archive_cmds, $1) \
    3876     _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
    3877     _LT_AC_TAGVAR(postinstall_cmds, $1) \
    3878     _LT_AC_TAGVAR(postuninstall_cmds, $1) \
    3879     _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
    3880     _LT_AC_TAGVAR(allow_undefined_flag, $1) \
    3881     _LT_AC_TAGVAR(no_undefined_flag, $1) \
    3882     _LT_AC_TAGVAR(export_symbols_cmds, $1) \
    3883     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
    3884     _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
    3885     _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
    3886     _LT_AC_TAGVAR(hardcode_automatic, $1) \
    3887     _LT_AC_TAGVAR(module_cmds, $1) \
    3888     _LT_AC_TAGVAR(module_expsym_cmds, $1) \
    3889     _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
    3890     _LT_AC_TAGVAR(exclude_expsyms, $1) \
    3891     _LT_AC_TAGVAR(include_expsyms, $1); do
     3271    compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
    38923272
    38933273    case $var in
    3894     _LT_AC_TAGVAR(old_archive_cmds, $1) | \
    3895     _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
    3896     _LT_AC_TAGVAR(archive_cmds, $1) | \
    3897     _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
    3898     _LT_AC_TAGVAR(module_cmds, $1) | \
    3899     _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
    3900     _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
    3901     _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
    3902     extract_expsyms_cmds | reload_cmds | finish_cmds | \
     3274    reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
     3275    old_postinstall_cmds | old_postuninstall_cmds | \
     3276    export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
     3277    extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
    39033278    postinstall_cmds | postuninstall_cmds | \
    3904     old_postinstall_cmds | old_postuninstall_cmds | \
    3905     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
     3279    finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
    39063280      # Double-quote double-evaled strings.
    39073281      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
     
    39133287  done
    39143288
    3915   case $lt_echo in
    3916   *'\[$]0 --fallback-echo"')
    3917     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
    3918     ;;
    3919   esac
    3920 
    3921 ifelse([$1], [],
    3922   [cfgfile="${ofile}T"
    3923   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
    3924   $rm -f "$cfgfile"
    3925   AC_MSG_NOTICE([creating $ofile])],
    3926   [cfgfile="$ofile"])
    3927 
    3928   cat <<__EOF__ >> "$cfgfile"
    3929 ifelse([$1], [],
    3930 [#! $SHELL
    3931 
    3932 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
     3289  cat <<__EOF__ > "${ofile}T"
     3290#! $SHELL
     3291
     3292# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
    39333293# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
    39343294# NOTE: Changes made to this file will be lost: look at ltmain.sh.
    39353295#
    3936 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
    3937 # Free Software Foundation, Inc.
    3938 #
    3939 # This file is part of GNU Libtool:
     3296# Copyright (C) 1996-2000 Free Software Foundation, Inc.
    39403297# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
    39413298#
     
    39593316# the same distribution terms that you use for the rest of that program.
    39603317
    3961 # A sed program that does not truncate output.
     3318# A sed that does not truncate output.
    39623319SED=$lt_SED
    39633320
    39643321# Sed that helps us avoid accidentally triggering echo(1) options like -n.
    3965 Xsed="$SED -e s/^X//"
     3322Xsed="${SED} -e s/^X//"
    39663323
    39673324# The HP-UX ksh and POSIX shell print the target directory to stdout
     
    39693326if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
    39703327
    3971 # The names of the tagged configurations supported by this script.
    3972 available_tags=
    3973 
    3974 # ### BEGIN LIBTOOL CONFIG],
    3975 [# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
     3328# ### BEGIN LIBTOOL CONFIG
    39763329
    39773330# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
     
    39873340
    39883341# Whether or not to add -lc for building shared libraries.
    3989 build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
    3990 
    3991 # Whether or not to disallow shared libs when runtime libs are static
    3992 allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
     3342build_libtool_need_lc=$need_lc
    39933343
    39943344# Whether or not to optimize for fast installation.
     
    40063356AR_FLAGS=$lt_AR_FLAGS
    40073357
    4008 # A C compiler.
    4009 LTCC=$lt_LTCC
    4010 
    4011 # A language-specific compiler.
    4012 CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
     3358# The default C compiler.
     3359CC=$lt_CC
    40133360
    40143361# Is the compiler the GNU C compiler?
    4015 with_gcc=$_LT_AC_TAGVAR(GCC, $1)
    4016 
    4017 # An ERE matcher.
    4018 EGREP=$lt_EGREP
     3362with_gcc=$GCC
    40193363
    40203364# The linker used to build libraries.
    4021 LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
     3365LD=$lt_LD
    40223366
    40233367# Whether we need hard or soft links.
     
    40283372
    40293373# A symbol stripping program
    4030 STRIP=$lt_STRIP
     3374STRIP=$STRIP
    40313375
    40323376# Used to examine libraries when file_magic_cmd begins "file"
     
    40503394
    40513395# How to pass a linker flag through the compiler.
    4052 wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
     3396wl=$lt_wl
    40533397
    40543398# Object file suffix (normally "o").
     
    40583402libext="$libext"
    40593403
    4060 # Shared library suffix (normally ".so").
    4061 shrext_cmds='$shrext_cmds'
    4062 
    40633404# Executable file suffix (normally "").
    40643405exeext="$exeext"
    40653406
    40663407# Additional compiler flags for building library objects.
    4067 pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
     3408pic_flag=$lt_pic_flag
    40683409pic_mode=$pic_mode
    40693410
    4070 # What is the maximum length of a command?
    4071 max_cmd_len=$lt_cv_sys_max_cmd_len
    4072 
    40733411# Does compiler simultaneously support -c and -o options?
    4074 compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
     3412compiler_c_o=$lt_compiler_c_o
     3413
     3414# Can we write directly to a .lo ?
     3415compiler_o_lo=$lt_compiler_o_lo
    40753416
    40763417# Must we lock files when doing compilation ?
     
    40933434
    40943435# Compiler flag to prevent dynamic linking.
    4095 link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
     3436link_static_flag=$lt_link_static_flag
    40963437
    40973438# Compiler flag to turn off builtin functions.
    4098 no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
     3439no_builtin_flag=$lt_no_builtin_flag
    40993440
    41003441# Compiler flag to allow reflexive dlopens.
    4101 export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
     3442export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
    41023443
    41033444# Compiler flag to generate shared objects directly from archives.
    4104 whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
     3445whole_archive_flag_spec=$lt_whole_archive_flag_spec
    41053446
    41063447# Compiler flag to generate thread-safe objects.
    4107 thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
     3448thread_safe_flag_spec=$lt_thread_safe_flag_spec
    41083449
    41093450# Library versioning type.
     
    41223463# Commands used to build and install an old-style archive.
    41233464RANLIB=$lt_RANLIB
    4124 old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
     3465old_archive_cmds=$lt_old_archive_cmds
    41253466old_postinstall_cmds=$lt_old_postinstall_cmds
    41263467old_postuninstall_cmds=$lt_old_postuninstall_cmds
    41273468
    41283469# Create an old-style archive from a shared archive.
    4129 old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
     3470old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
    41303471
    41313472# Create a temporary old-style archive to link instead of a shared archive.
    4132 old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
     3473old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
    41333474
    41343475# Commands used to build and install a shared archive.
    4135 archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
    4136 archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
     3476archive_cmds=$lt_archive_cmds
     3477archive_expsym_cmds=$lt_archive_expsym_cmds
    41373478postinstall_cmds=$lt_postinstall_cmds
    41383479postuninstall_cmds=$lt_postuninstall_cmds
    4139 
    4140 # Commands used to build a loadable module (assumed same as above if empty)
    4141 module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
    4142 module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
    41433480
    41443481# Commands to strip libraries.
     
    41463483striplib=$lt_striplib
    41473484
    4148 # Dependencies to place before the objects being linked to create a
    4149 # shared library.
    4150 predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
    4151 
    4152 # Dependencies to place after the objects being linked to create a
    4153 # shared library.
    4154 postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
    4155 
    4156 # Dependencies to place before the objects being linked to create a
    4157 # shared library.
    4158 predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
    4159 
    4160 # Dependencies to place after the objects being linked to create a
    4161 # shared library.
    4162 postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
    4163 
    4164 # The library search path used internally by the compiler when linking
    4165 # a shared library.
    4166 compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
    4167 
    41683485# Method to check whether dependent libraries are shared objects.
    41693486deplibs_check_method=$lt_deplibs_check_method
     
    41733490
    41743491# Flag that allows shared libraries with undefined symbols to be built.
    4175 allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
     3492allow_undefined_flag=$lt_allow_undefined_flag
    41763493
    41773494# Flag that forces no undefined symbols.
    4178 no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
     3495no_undefined_flag=$lt_no_undefined_flag
    41793496
    41803497# Commands used to finish a libtool library installation in a directory.
     
    41853502
    41863503# Take the output of nm and produce a listing of raw symbols and C names.
    4187 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
     3504global_symbol_pipe=$lt_global_symbol_pipe
    41883505
    41893506# Transform the output of nm in a proper C declaration
    4190 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
     3507global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
    41913508
    41923509# Transform the output of nm in a C name address pair
    4193 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
     3510global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
    41943511
    41953512# This is the shared library runtime path variable.
     
    42033520
    42043521# How to hardcode a shared library path into an executable.
    4205 hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
     3522hardcode_action=$hardcode_action
    42063523
    42073524# Whether we should hardcode library paths into libraries.
     
    42103527# Flag to hardcode \$libdir into a binary during linking.
    42113528# This must work even if \$libdir does not exist.
    4212 hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
    4213 
    4214 # If ld is used when linking, flag to hardcode \$libdir into
    4215 # a binary during linking. This must work even if \$libdir does
    4216 # not exist.
    4217 hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
     3529hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
    42183530
    42193531# Whether we need a single -rpath flag with a separated argument.
    4220 hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
    4221 
    4222 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
     3532hardcode_libdir_separator=$lt_hardcode_libdir_separator
     3533
     3534# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
    42233535# resulting binary.
    4224 hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
     3536hardcode_direct=$hardcode_direct
    42253537
    42263538# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
    42273539# resulting binary.
    4228 hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
     3540hardcode_minus_L=$hardcode_minus_L
    42293541
    42303542# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
    42313543# the resulting binary.
    4232 hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
    4233 
    4234 # Set to yes if building a shared library automatically hardcodes DIR into the library
    4235 # and all subsequent libraries and executables linked against it.
    4236 hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
     3544hardcode_shlibpath_var=$hardcode_shlibpath_var
    42373545
    42383546# Variables whose values should be saved in libtool wrapper scripts and
     
    42413549
    42423550# Whether libtool must link a program against all its dependency libraries.
    4243 link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
     3551link_all_deplibs=$link_all_deplibs
    42443552
    42453553# Compile-time system search path for libraries
     
    42503558
    42513559# Fix the shell variable \$srcfile for the compiler.
    4252 fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
     3560fix_srcfile_path="$fix_srcfile_path"
    42533561
    42543562# Set to yes if exported symbols are required.
    4255 always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
     3563always_export_symbols=$always_export_symbols
    42563564
    42573565# The commands to list exported symbols.
    4258 export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
     3566export_symbols_cmds=$lt_export_symbols_cmds
    42593567
    42603568# The commands to extract the exported symbol list from a shared archive.
     
    42623570
    42633571# Symbols that should not be listed in the preloaded symbols.
    4264 exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
     3572exclude_expsyms=$lt_exclude_expsyms
    42653573
    42663574# Symbols that must always be exported.
    4267 include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
    4268 
    4269 ifelse([$1],[],
    4270 [# ### END LIBTOOL CONFIG],
    4271 [# ### END LIBTOOL TAG CONFIG: $tagname])
     3575include_expsyms=$lt_include_expsyms
     3576
     3577# ### END LIBTOOL CONFIG
    42723578
    42733579__EOF__
    42743580
    4275 ifelse([$1],[], [
    42763581  case $host_os in
    42773582  aix3*)
    4278     cat <<\EOF >> "$cfgfile"
     3583    cat <<\EOF >> "${ofile}T"
    42793584
    42803585# AIX sometimes has problems with the GCC collect2 program.  For some
     
    42893594  esac
    42903595
    4291   # We use sed instead of cat because bash on DJGPP gets confused if
    4292   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
    4293   # text mode, it properly converts lines to CR/LF.  This bash problem
    4294   # is reportedly fixed, but why not run on old versions too?
    4295   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
    4296 
    4297   mv -f "$cfgfile" "$ofile" || \
    4298     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
    4299   chmod +x "$ofile"
    4300 ])
    4301 else
    4302   # If there is no Makefile yet, we rely on a make rule to execute
    4303   # `config.status --recheck' to rerun these tests and create the
    4304   # libtool script then.
    4305   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
    4306   if test -f "$ltmain_in"; then
    4307     test -f Makefile && make "$ltmain"
    4308   fi
    4309 fi
    4310 ])# AC_LIBTOOL_CONFIG
    4311 
    4312 
    4313 # AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
    4314 # -------------------------------------------
    4315 AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
    4316 [AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
    4317 
    4318 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
    4319 
    4320 if test "$GCC" = yes; then
    4321   _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
    4322 
    4323   AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
    4324     lt_cv_prog_compiler_rtti_exceptions,
    4325     [-fno-rtti -fno-exceptions], [],
    4326     [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
    4327 fi
    4328 ])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
    4329 
    4330 
    4331 # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
    4332 # ---------------------------------
    4333 AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
    4334 [AC_REQUIRE([AC_CANONICAL_HOST])
    4335 AC_REQUIRE([AC_PROG_NM])
    4336 AC_REQUIRE([AC_OBJEXT])
    4337 # Check for command to grab the raw symbol name followed by C symbol from nm.
    4338 AC_MSG_CHECKING([command to parse $NM output from $compiler object])
    4339 AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
    4340 [
    4341 # These are sane defaults that work on at least a few old systems.
    4342 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
    4343 
    4344 # Character class describing NM global symbol codes.
    4345 symcode='[[BCDEGRST]]'
    4346 
    4347 # Regexp to match symbols that can be accessed directly from C.
    4348 sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
    4349 
    4350 # Transform the above into a raw symbol and a C symbol.
    4351 symxfrm='\1 \2\3 \3'
    4352 
    4353 # Transform an extracted symbol line into a proper C declaration
    4354 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
    4355 
    4356 # Transform an extracted symbol line into symbol name and symbol address
    4357 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'"
    4358 
    4359 # Define system-specific variables.
    4360 case $host_os in
    4361 aix*)
    4362   symcode='[[BCDT]]'
    4363   ;;
    4364 cygwin* | mingw* | pw32*)
    4365   symcode='[[ABCDGISTW]]'
    4366   ;;
    4367 hpux*) # Its linker distinguishes data from code symbols
    4368   if test "$host_cpu" = ia64; then
    4369     symcode='[[ABCDEGRST]]'
    4370   fi
    4371   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
    4372   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'"
    4373   ;;
    4374 irix* | nonstopux*)
    4375   symcode='[[BCDEGRST]]'
    4376   ;;
    4377 osf*)
    4378   symcode='[[BCDEGQRST]]'
    4379   ;;
    4380 solaris* | sysv5*)
    4381   symcode='[[BDRT]]'
    4382   ;;
    4383 sysv4)
    4384   symcode='[[DFNSTU]]'
    4385   ;;
    4386 esac
    4387 
    4388 # Handle CRLF in mingw tool chain
    4389 opt_cr=
    4390 case $build_os in
    4391 mingw*)
    4392   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
    4393   ;;
    4394 esac
    4395 
    4396 # If we're using GNU nm, then use its standard symbol codes.
    4397 case `$NM -V 2>&1` in
    4398 *GNU* | *'with BFD'*)
    4399   symcode='[[ABCDGIRSTW]]' ;;
    4400 esac
    4401 
    4402 # Try without a prefix undercore, then with it.
    4403 for ac_symprfx in "" "_"; do
    4404 
    4405   # Write the raw and C identifiers.
    4406   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[      ]]\($symcode$symcode*\)[[       ]][[    ]]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
    4407 
    4408   # Check to see that the pipe works correctly.
    4409   pipe_works=no
    4410 
    4411   rm -f conftest*
    4412   cat > conftest.$ac_ext <<EOF
    4413 #ifdef __cplusplus
    4414 extern "C" {
    4415 #endif
    4416 char nm_test_var;
    4417 void nm_test_func(){}
    4418 #ifdef __cplusplus
    4419 }
    4420 #endif
    4421 int main(){nm_test_var='a';nm_test_func();return(0);}
    4422 EOF
    4423 
    4424   if AC_TRY_EVAL(ac_compile); then
    4425     # Now try to grab the symbols.
    4426     nlist=conftest.nm
    4427     if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
    4428       # Try sorting and uniquifying the output.
    4429       if sort "$nlist" | uniq > "$nlist"T; then
    4430         mv -f "$nlist"T "$nlist"
    4431       else
    4432         rm -f "$nlist"T
    4433       fi
    4434 
    4435       # Make sure that we snagged all the symbols we need.
    4436       if grep ' nm_test_var$' "$nlist" >/dev/null; then
    4437         if grep ' nm_test_func$' "$nlist" >/dev/null; then
    4438           cat <<EOF > conftest.$ac_ext
    4439 #ifdef __cplusplus
    4440 extern "C" {
    4441 #endif
    4442 
    4443 EOF
    4444           # Now generate the symbol file.
    4445           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
    4446 
    4447           cat <<EOF >> conftest.$ac_ext
    4448 #if defined (__STDC__) && __STDC__
    4449 # define lt_ptr_t void *
    4450 #else
    4451 # define lt_ptr_t char *
    4452 # define const
    4453 #endif
    4454 
    4455 /* The mapping between symbol names and symbols. */
    4456 const struct {
    4457   const char *name;
    4458   lt_ptr_t address;
    4459 }
    4460 lt_preloaded_symbols[[]] =
    4461 {
    4462 EOF
    4463           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
    4464           cat <<\EOF >> conftest.$ac_ext
    4465   {0, (lt_ptr_t) 0}
    4466 };
    4467 
    4468 #ifdef __cplusplus
    4469 }
    4470 #endif
    4471 EOF
    4472           # Now try linking the two files.
    4473           mv conftest.$ac_objext conftstm.$ac_objext
    4474           lt_save_LIBS="$LIBS"
    4475           lt_save_CFLAGS="$CFLAGS"
    4476           LIBS="conftstm.$ac_objext"
    4477           CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
    4478           if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
    4479             pipe_works=yes
    4480           fi
    4481           LIBS="$lt_save_LIBS"
    4482           CFLAGS="$lt_save_CFLAGS"
    4483         else
    4484           echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
    4485         fi
    4486       else
    4487         echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
    4488       fi
    4489     else
    4490       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
    4491     fi
    4492   else
    4493     echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
    4494     cat conftest.$ac_ext >&5
    4495   fi
    4496   rm -f conftest* conftst*
    4497 
    4498   # Do not use the global_symbol_pipe unless it works.
    4499   if test "$pipe_works" = yes; then
    4500     break
    4501   else
    4502     lt_cv_sys_global_symbol_pipe=
    4503   fi
    4504 done
    4505 ])
    4506 if test -z "$lt_cv_sys_global_symbol_pipe"; then
    4507   lt_cv_sys_global_symbol_to_cdecl=
    4508 fi
    4509 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
    4510   AC_MSG_RESULT(failed)
    4511 else
    4512   AC_MSG_RESULT(ok)
    4513 fi
    4514 ]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
    4515 
    4516 
    4517 # AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
    4518 # ---------------------------------------
    4519 AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
    4520 [_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
    4521 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
    4522 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
    4523 
    4524 AC_MSG_CHECKING([for $compiler option to produce PIC])
    4525  ifelse([$1],[CXX],[
    4526   # C++ specific cases for pic, static, wl, etc.
    4527   if test "$GXX" = yes; then
    4528     _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
    4529     _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
    4530 
    4531     case $host_os in
    4532     aix*)
    4533       # All AIX code is PIC.
    4534       if test "$host_cpu" = ia64; then
    4535         # AIX 5 now supports IA64 processor
    4536         _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
    4537       fi
    4538       ;;
    4539     amigaos*)
    4540       # FIXME: we need at least 68020 code to build shared libraries, but
    4541       # adding the `-m68020' flag to GCC prevents building anything better,
    4542       # like `-m68040'.
    4543       _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
    4544       ;;
    4545     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
    4546       # PIC is the default for these OSes.
    4547       ;;
    4548     mingw* | os2* | pw32*)
    4549       # This hack is so that the source file can tell whether it is being
    4550       # built for inclusion in a dll (and should export symbols for example).
    4551       _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
    4552       ;;
    4553     darwin* | rhapsody*)
    4554       # PIC is the default on this platform
    4555       # Common symbols not allowed in MH_DYLIB files
    4556       _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
    4557       ;;
    4558     *djgpp*)
    4559       # DJGPP does not support shared libraries at all
    4560       _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
    4561       ;;
    4562     sysv4*MP*)
    4563       if test -d /usr/nec; then
    4564         _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
    4565       fi
    4566       ;;
    4567     hpux*)
    4568       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
    4569       # not for PA HP-UX.
    4570       case "$host_cpu" in
    4571       hppa*64*|ia64*)
    4572         ;;
    4573       *)
    4574         _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
    4575         ;;
    4576       esac
    4577       ;;
    4578     *)
    4579       _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
    4580       ;;
    4581     esac
    4582   else
    4583     case $host_os in
    4584       aix4* | aix5*)
    4585         # All AIX code is PIC.
    4586         if test "$host_cpu" = ia64; then
    4587           # AIX 5 now supports IA64 processor
    4588           _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
    4589         else
    4590           _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
    4591         fi
    4592         ;;
    4593       chorus*)
    4594         case $cc_basename in
    4595         cxch68)
    4596           # Green Hills C++ Compiler
    4597           # _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"
    4598           ;;
    4599         esac
    4600         ;;
    4601       dgux*)
    4602         case $cc_basename in
    4603           ec++)
    4604             _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
    4605             ;;
    4606           ghcx)
    4607             # Green Hills C++ Compiler
    4608             _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
    4609             ;;
    4610           *)
    4611             ;;
    4612         esac
    4613         ;;
    4614       freebsd* | kfreebsd*-gnu)
    4615         # FreeBSD uses GNU C++
    4616         ;;
    4617       hpux9* | hpux10* | hpux11*)
    4618         case $cc_basename in
    4619           CC)
    4620             _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
    4621             _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
    4622             if test "$host_cpu" != ia64; then
    4623               _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
    4624             fi
    4625             ;;
    4626           aCC)
    4627             _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
    4628             _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
    4629             case "$host_cpu" in
    4630             hppa*64*|ia64*)
    4631               # +Z the default
    4632               ;;
    4633             *)
    4634               _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
    4635               ;;
    4636             esac
    4637             ;;
    4638           *)
    4639             ;;
    4640         esac
    4641         ;;
    4642       irix5* | irix6* | nonstopux*)
    4643         case $cc_basename in
    4644           CC)
    4645             _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
    4646             _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
    4647             # CC pic flag -KPIC is the default.
    4648             ;;
    4649           *)
    4650             ;;
    4651         esac
    4652         ;;
    4653       linux*)
    4654         case $cc_basename in
    4655           KCC)
    4656             # KAI C++ Compiler
    4657             _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
    4658             _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
    4659             ;;
    4660           icpc)
    4661             # Intel C++
    4662             _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
    4663             _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
    4664             _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
    4665             ;;
    4666           cxx)
    4667             # Compaq C++
    4668             # Make sure the PIC flag is empty.  It appears that all Alpha
    4669             # Linux and Compaq Tru64 Unix objects are PIC.
    4670             _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
    4671             _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
    4672             ;;
    4673           *)
    4674             ;;
    4675         esac
    4676         ;;
    4677       lynxos*)
    4678         ;;
    4679       m88k*)
    4680         ;;
    4681       mvs*)
    4682         case $cc_basename in
    4683           cxx)
    4684             _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
    4685             ;;
    4686           *)
    4687             ;;
    4688         esac
    4689         ;;
    4690       netbsd*)
    4691         ;;
    4692       osf3* | osf4* | osf5*)
    4693         case $cc_basename in
    4694           KCC)
    4695             _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
    4696             ;;
    4697           RCC)
    4698             # Rational C++ 2.4.1
    4699             _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
    4700             ;;
    4701           cxx)
    4702             # Digital/Compaq C++
    4703             _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
    4704             # Make sure the PIC flag is empty.  It appears that all Alpha
    4705             # Linux and Compaq Tru64 Unix objects are PIC.
    4706             _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
    4707             _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
    4708             ;;
    4709           *)
    4710             ;;
    4711         esac
    4712         ;;
    4713       psos*)
    4714         ;;
    4715       sco*)
    4716         case $cc_basename in
    4717           CC)
    4718             _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
    4719             ;;
    4720           *)
    4721             ;;
    4722         esac
    4723         ;;
    4724       solaris*)
    4725         case $cc_basename in
    4726           CC)
    4727             # Sun C++ 4.2, 5.x and Centerline C++
    4728             _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
    4729             _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
    4730             _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
    4731             ;;
    4732           gcx)
    4733             # Green Hills C++ Compiler
    4734             _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
    4735             ;;
    4736           *)
    4737             ;;
    4738         esac
    4739         ;;
    4740       sunos4*)
    4741         case $cc_basename in
    4742           CC)
    4743             # Sun C++ 4.x
    4744             _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
    4745             _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
    4746             ;;
    4747           lcc)
    4748             # Lucid
    4749             _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
    4750             ;;
    4751           *)
    4752             ;;
    4753         esac
    4754         ;;
    4755       tandem*)
    4756         case $cc_basename in
    4757           NCC)
    4758             # NonStop-UX NCC 3.20
    4759             _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
    4760             ;;
    4761           *)
    4762             ;;
    4763         esac
    4764         ;;
    4765       unixware*)
    4766         ;;
    4767       vxworks*)
    4768         ;;
    4769       *)
    4770         _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
    4771         ;;
    4772     esac
    4773   fi
    4774 ],
    4775 [
    4776   if test "$GCC" = yes; then
    4777     _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
    4778     _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
    4779 
    4780     case $host_os in
    4781       aix*)
    4782       # All AIX code is PIC.
    4783       if test "$host_cpu" = ia64; then
    4784         # AIX 5 now supports IA64 processor
    4785         _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
    4786       fi
    4787       ;;
    4788 
    4789     amigaos*)
    4790       # FIXME: we need at least 68020 code to build shared libraries, but
    4791       # adding the `-m68020' flag to GCC prevents building anything better,
    4792       # like `-m68040'.
    4793       _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
    4794       ;;
    4795 
    4796     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
    4797       # PIC is the default for these OSes.
    4798       ;;
    4799 
    4800     mingw* | pw32* | os2*)
    4801       # This hack is so that the source file can tell whether it is being
    4802       # built for inclusion in a dll (and should export symbols for example).
    4803       _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
    4804       ;;
    4805 
    4806     darwin* | rhapsody*)
    4807       # PIC is the default on this platform
    4808       # Common symbols not allowed in MH_DYLIB files
    4809       _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
    4810       ;;
    4811 
    4812     msdosdjgpp*)
    4813       # Just because we use GCC doesn't mean we suddenly get shared libraries
    4814       # on systems that don't support them.
    4815       _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
    4816       enable_shared=no
    4817       ;;
    4818 
    4819     sysv4*MP*)
    4820       if test -d /usr/nec; then
    4821         _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
    4822       fi
    4823       ;;
    4824 
    4825     hpux*)
    4826       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
    4827       # not for PA HP-UX.
    4828       case "$host_cpu" in
    4829       hppa*64*|ia64*)
    4830         # +Z the default
    4831         ;;
    4832       *)
    4833         _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
    4834         ;;
    4835       esac
    4836       ;;
    4837 
    4838     *)
    4839       _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
    4840       ;;
    4841     esac
    4842   else
    4843     # PORTME Check for flag to pass linker flags through the system compiler.
    4844     case $host_os in
    4845     aix*)
    4846       _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
    4847       if test "$host_cpu" = ia64; then
    4848         # AIX 5 now supports IA64 processor
    4849         _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
    4850       else
    4851         _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
    4852       fi
    4853       ;;
    4854 
    4855     mingw* | pw32* | os2*)
    4856       # This hack is so that the source file can tell whether it is being
    4857       # built for inclusion in a dll (and should export symbols for example).
    4858       _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
    4859       ;;
    4860 
    4861     hpux9* | hpux10* | hpux11*)
    4862       _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
    4863       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
    4864       # not for PA HP-UX.
    4865       case "$host_cpu" in
    4866       hppa*64*|ia64*)
    4867         # +Z the default
    4868         ;;
    4869       *)
    4870         _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
    4871         ;;
    4872       esac
    4873       # Is there a better lt_prog_compiler_static that works with the bundled CC?
    4874       _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
    4875       ;;
    4876 
    4877     irix5* | irix6* | nonstopux*)
    4878       _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
    4879       # PIC (with -KPIC) is the default.
    4880       _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
    4881       ;;
    4882 
    4883     newsos6)
    4884       _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
    4885       _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
    4886       ;;
    4887 
    4888     linux*)
    4889       case $CC in
    4890       icc* | ecc*)
    4891         _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
    4892         _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
    4893         _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
    4894         ;;
    4895       ccc*)
    4896         _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
    4897         # All Alpha code is PIC.
    4898         _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
    4899         ;;
    4900       esac
    4901       ;;
    4902 
    4903     osf3* | osf4* | osf5*)
    4904       _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
    4905       # All OSF/1 code is PIC.
    4906       _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
    4907       ;;
    4908 
    4909     sco3.2v5*)
    4910       _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kpic'
    4911       _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-dn'
    4912       ;;
    4913 
    4914     solaris*)
    4915       _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
    4916       _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
    4917       _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
    4918       ;;
    4919 
    4920     sunos4*)
    4921       _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
    4922       _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
    4923       _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
    4924       ;;
    4925 
    4926     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
    4927       _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
    4928       _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
    4929       _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
    4930       ;;
    4931 
    4932     sysv4*MP*)
    4933       if test -d /usr/nec ;then
    4934         _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
    4935         _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
    4936       fi
    4937       ;;
    4938 
    4939     uts4*)
    4940       _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
    4941       _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
    4942       ;;
    4943 
    4944     *)
    4945       _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
    4946       ;;
    4947     esac
    4948   fi
    4949 ])
    4950 AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
    4951 
    4952 #
    4953 # Check to make sure the PIC flag actually works.
    4954 #
    4955 if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
    4956   AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
    4957     _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
    4958     [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
    4959     [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
    4960      "" | " "*) ;;
    4961      *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
    4962      esac],
    4963     [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
    4964      _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
    4965 fi
    4966 case "$host_os" in
    4967   # For platforms which do not support PIC, -DPIC is meaningless:
    4968   *djgpp*)
    4969     _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
    4970     ;;
    4971   *)
    4972     _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
    4973     ;;
    4974 esac
    4975 ])
    4976 
    4977 
    4978 # AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
    4979 # ------------------------------------
    4980 # See if the linker supports building shared libraries.
    4981 AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
    4982 [AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
    4983 ifelse([$1],[CXX],[
    4984   _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
    49853596  case $host_os in
    4986   aix4* | aix5*)
    4987     # If we're using GNU nm, then we don't want the "-C" option.
    4988     # -C means demangle to AIX nm, but means don't demangle with GNU nm
    4989     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
    4990       _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
    4991     else
    4992       _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
    4993     fi
    4994     ;;
    4995   pw32*)
    4996     _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
    4997   ;;
    4998   cygwin* | mingw*)
    4999     _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'
    5000   ;;
    5001   *)
    5002     _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
    5003   ;;
    5004   esac
    5005 ],[
    5006   runpath_var=
    5007   _LT_AC_TAGVAR(allow_undefined_flag, $1)=
    5008   _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
    5009   _LT_AC_TAGVAR(archive_cmds, $1)=
    5010   _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
    5011   _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
    5012   _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
    5013   _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
    5014   _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
    5015   _LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
    5016   _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
    5017   _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
    5018   _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
    5019   _LT_AC_TAGVAR(hardcode_direct, $1)=no
    5020   _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
    5021   _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
    5022   _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
    5023   _LT_AC_TAGVAR(hardcode_automatic, $1)=no
    5024   _LT_AC_TAGVAR(module_cmds, $1)=
    5025   _LT_AC_TAGVAR(module_expsym_cmds, $1)=
    5026   _LT_AC_TAGVAR(always_export_symbols, $1)=no
    5027   _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
    5028   # include_expsyms should be a list of space-separated symbols to be *always*
    5029   # included in the symbol list
    5030   _LT_AC_TAGVAR(include_expsyms, $1)=
    5031   # exclude_expsyms can be an extended regexp of symbols to exclude
    5032   # it will be wrapped by ` (' and `)$', so one must not match beginning or
    5033   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
    5034   # as well as any symbol that contains `d'.
    5035   _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
    5036   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
    5037   # platforms (ab)use it in PIC code, but their linkers get confused if
    5038   # the symbol is explicitly referenced.  Since portable code cannot
    5039   # rely on this symbol name, it's probably fine to never include it in
    5040   # preloaded symbol tables.
    5041   extract_expsyms_cmds=
    5042 
    5043   case $host_os in
    5044   cygwin* | mingw* | pw32*)
    5045     # FIXME: the MSVC++ port hasn't been tested in a loooong time
    5046     # When not using gcc, we currently assume that we are using
    5047     # Microsoft Visual C++.
    5048     if test "$GCC" != yes; then
    5049       with_gnu_ld=no
    5050     fi
    5051     ;;
    5052   openbsd*)
    5053     with_gnu_ld=no
    5054     ;;
    5055   esac
    5056 
    5057   _LT_AC_TAGVAR(ld_shlibs, $1)=yes
    5058   if test "$with_gnu_ld" = yes; then
    5059     # If archive_cmds runs LD, not CC, wlarc should be empty
    5060     wlarc='${wl}'
    5061 
    5062     # See if GNU ld supports shared libraries.
    5063     case $host_os in
    5064     aix3* | aix4* | aix5*)
    5065       # On AIX/PPC, the GNU linker is very broken
    5066       if test "$host_cpu" != ia64; then
    5067         _LT_AC_TAGVAR(ld_shlibs, $1)=no
    5068         cat <<EOF 1>&2
    5069 
    5070 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
    5071 *** to be unable to reliably create shared libraries on AIX.
    5072 *** Therefore, libtool is disabling shared libraries support.  If you
    5073 *** really care for shared libraries, you may want to modify your PATH
    5074 *** so that a non-GNU linker is found, and then restart.
    5075 
    5076 EOF
    5077       fi
    5078       ;;
    5079 
    5080     amigaos*)
    5081       _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
    5082       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
    5083       _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
    5084 
    5085       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
    5086       # that the semantics of dynamic libraries on AmigaOS, at least up
    5087       # to version 4, is to share data among multiple programs linked
    5088       # with the same dynamic library.  Since this doesn't match the
    5089       # behavior of shared libraries on other platforms, we can't use
    5090       # them.
    5091       _LT_AC_TAGVAR(ld_shlibs, $1)=no
    5092       ;;
    5093 
    5094     beos*)
    5095       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
    5096         _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
    5097         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
    5098         # support --undefined.  This deserves some investigation.  FIXME
    5099         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
    5100       else
    5101         _LT_AC_TAGVAR(ld_shlibs, $1)=no
    5102       fi
    5103       ;;
    5104 
    5105     cygwin* | mingw* | pw32*)
    5106       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
    5107       # as there is no search path for DLLs.
    5108       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
    5109       _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
    5110       _LT_AC_TAGVAR(always_export_symbols, $1)=no
    5111       _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
    5112       _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'
    5113 
    5114       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
    5115         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
    5116         # If the export-symbols file already is a .def file (1st line
    5117         # is EXPORTS), use it as is; otherwise, prepend...
    5118         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
    5119           cp $export_symbols $output_objdir/$soname.def;
    5120         else
    5121           echo EXPORTS > $output_objdir/$soname.def;
    5122           cat $export_symbols >> $output_objdir/$soname.def;
    5123         fi~
    5124         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
    5125       else
    5126         ld_shlibs=no
    5127       fi
    5128       ;;
    5129 
    5130     netbsd*)
    5131       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
    5132         _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
    5133         wlarc=
    5134       else
    5135         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
    5136         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
    5137       fi
    5138       ;;
    5139 
    5140     solaris* | sysv5*)
    5141       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
    5142         _LT_AC_TAGVAR(ld_shlibs, $1)=no
    5143         cat <<EOF 1>&2
    5144 
    5145 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
    5146 *** create shared libraries on Solaris systems.  Therefore, libtool
    5147 *** is disabling shared libraries support.  We urge you to upgrade GNU
    5148 *** binutils to release 2.9.1 or newer.  Another option is to modify
    5149 *** your PATH or compiler configuration so that the native linker is
    5150 *** used, and then restart.
    5151 
    5152 EOF
    5153       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
    5154         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
    5155         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
    5156       else
    5157         _LT_AC_TAGVAR(ld_shlibs, $1)=no
    5158       fi
    5159       ;;
    5160 
    5161     sunos4*)
    5162       _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
    5163       wlarc=
    5164       _LT_AC_TAGVAR(hardcode_direct, $1)=yes
    5165       _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
    5166       ;;
    5167 
    5168   linux*)
    5169     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
    5170         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
    5171         _LT_AC_TAGVAR(archive_cmds, $1)="$tmp_archive_cmds"
    5172       supports_anon_versioning=no
    5173       case `$LD -v 2>/dev/null` in
    5174         *\ [01].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
    5175         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
    5176         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
    5177         *\ 2.11.*) ;; # other 2.11 versions
    5178         *) supports_anon_versioning=yes ;;
    5179       esac
    5180       if test $supports_anon_versioning = yes; then
    5181         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
    5182 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
    5183 $echo "local: *; };" >> $output_objdir/$libname.ver~
    5184         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
    5185       else
    5186         _LT_AC_TAGVAR(archive_expsym_cmds, $1)="$tmp_archive_cmds"
    5187       fi
    5188     else
    5189       _LT_AC_TAGVAR(ld_shlibs, $1)=no
    5190     fi
    5191     ;;
    5192 
    5193     *)
    5194       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
    5195         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
    5196         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
    5197       else
    5198         _LT_AC_TAGVAR(ld_shlibs, $1)=no
    5199       fi
    5200       ;;
    5201     esac
    5202 
    5203     if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = yes; then
    5204       runpath_var=LD_RUN_PATH
    5205       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
    5206       _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
    5207       # ancient GNU ld didn't support --whole-archive et. al.
    5208       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
    5209         _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
    5210       else
    5211         _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
    5212       fi
    5213     fi
    5214   else
    5215     # PORTME fill in a description of your system's linker (not GNU ld)
    5216     case $host_os in
    5217     aix3*)
    5218       _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
    5219       _LT_AC_TAGVAR(always_export_symbols, $1)=yes
    5220       _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
    5221       # Note: this linker hardcodes the directories in LIBPATH if there
    5222       # are no directories specified by -L.
    5223       _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
    5224       if test "$GCC" = yes && test -z "$link_static_flag"; then
    5225         # Neither direct hardcoding nor static linking is supported with a
    5226         # broken collect2.
    5227         _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
    5228       fi
    5229       ;;
    5230 
    5231     aix4* | aix5*)
    5232       if test "$host_cpu" = ia64; then
    5233         # On IA64, the linker does run time linking by default, so we don't
    5234         # have to do anything special.
    5235         aix_use_runtimelinking=no
    5236         exp_sym_flag='-Bexport'
    5237         no_entry_flag=""
    5238       else
    5239         # If we're using GNU nm, then we don't want the "-C" option.
    5240         # -C means demangle to AIX nm, but means don't demangle with GNU nm
    5241         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
    5242           _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
    5243         else
    5244           _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
    5245         fi
    5246         aix_use_runtimelinking=no
    5247 
    5248         # Test if we are trying to use run time linking or normal
    5249         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
    5250         # need to do runtime linking.
    5251         case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
    5252           for ld_flag in $LDFLAGS; do
    5253           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
    5254             aix_use_runtimelinking=yes
    5255             break
    5256           fi
    5257           done
    5258         esac
    5259 
    5260         exp_sym_flag='-bexport'
    5261         no_entry_flag='-bnoentry'
    5262       fi
    5263 
    5264       # When large executables or shared objects are built, AIX ld can
    5265       # have problems creating the table of contents.  If linking a library
    5266       # or program results in "error TOC overflow" add -mminimal-toc to
    5267       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
    5268       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
    5269 
    5270       _LT_AC_TAGVAR(archive_cmds, $1)=''
    5271       _LT_AC_TAGVAR(hardcode_direct, $1)=yes
    5272       _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
    5273       _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
    5274 
    5275       if test "$GCC" = yes; then
    5276         case $host_os in aix4.[012]|aix4.[012].*)
    5277         # We only want to do this on AIX 4.2 and lower, the check
    5278         # below for broken collect2 doesn't work under 4.3+
    5279           collect2name=`${CC} -print-prog-name=collect2`
    5280           if test -f "$collect2name" && \
    5281            strings "$collect2name" | grep resolve_lib_name >/dev/null
    5282           then
    5283           # We have reworked collect2
    5284           _LT_AC_TAGVAR(hardcode_direct, $1)=yes
    5285           else
    5286           # We have old collect2
    5287           _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
    5288           # It fails to find uninstalled libraries when the uninstalled
    5289           # path is not listed in the libpath.  Setting hardcode_minus_L
    5290           # to unsupported forces relinking
    5291           _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
    5292           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
    5293           _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
    5294           fi
    5295         esac
    5296         shared_flag='-shared'
    5297       else
    5298         # not using gcc
    5299         if test "$host_cpu" = ia64; then
    5300         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
    5301         # chokes on -Wl,-G. The following line is correct:
    5302           shared_flag='-G'
    5303         else
    5304         if test "$aix_use_runtimelinking" = yes; then
    5305             shared_flag='${wl}-G'
    5306           else
    5307             shared_flag='${wl}-bM:SRE'
    5308         fi
    5309         fi
    5310       fi
    5311 
    5312       # It seems that -bexpall does not export symbols beginning with
    5313       # underscore (_), so it is better to generate a list of symbols to export.
    5314       _LT_AC_TAGVAR(always_export_symbols, $1)=yes
    5315       if test "$aix_use_runtimelinking" = yes; then
    5316         # Warning - without using the other runtime loading flags (-brtl),
    5317         # -berok will link without error, but may produce a broken library.
    5318         _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
    5319        # Determine the default libpath from the value encoded in an empty executable.
    5320        _LT_AC_SYS_LIBPATH_AIX
    5321        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
    5322         _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"
    5323        else
    5324         if test "$host_cpu" = ia64; then
    5325           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
    5326           _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
    5327           _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"
    5328         else
    5329          # Determine the default libpath from the value encoded in an empty executable.
    5330          _LT_AC_SYS_LIBPATH_AIX
    5331          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
    5332           # Warning - without using the other run time loading flags,
    5333           # -berok will link without error, but may produce a broken library.
    5334           _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
    5335           _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
    5336           # -bexpall does not export symbols beginning with underscore (_)
    5337           _LT_AC_TAGVAR(always_export_symbols, $1)=yes
    5338           # Exported symbols can be pulled into shared objects from archives
    5339           _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
    5340           _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
    5341           # This is similar to how AIX traditionally builds it's shared libraries.
    5342           _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'
    5343         fi
    5344       fi
    5345       ;;
    5346 
    5347     amigaos*)
    5348       _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
    5349       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
    5350       _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
    5351       # see comment about different semantics on the GNU ld section
    5352       _LT_AC_TAGVAR(ld_shlibs, $1)=no
    5353       ;;
    5354 
    5355     bsdi4*)
    5356       _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
    5357       ;;
    5358 
    5359     cygwin* | mingw* | pw32*)
    5360       # When not using gcc, we currently assume that we are using
    5361       # Microsoft Visual C++.
    5362       # hardcode_libdir_flag_spec is actually meaningless, as there is
    5363       # no search path for DLLs.
    5364       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
    5365       _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
    5366       # Tell ltmain to make .lib files, not .a files.
    5367       libext=lib
    5368       # Tell ltmain to make .dll files, not .so files.
    5369       shrext_cmds=".dll"
    5370       # FIXME: Setting linknames here is a bad hack.
    5371       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
    5372       # The linker will automatically build a .lib file if we build a DLL.
    5373       _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
    5374       # FIXME: Should let the user specify the lib program.
    5375       _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
    5376       fix_srcfile_path='`cygpath -w "$srcfile"`'
    5377       _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
    5378       ;;
    5379 
    5380     darwin* | rhapsody*)
    5381     if test "$GXX" = yes ; then
    5382       _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
    5383       case "$host_os" in
    5384       rhapsody* | darwin1.[[012]])
    5385         _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
    5386         ;;
    5387       *) # Darwin 1.3 on
    5388       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
    5389         _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
    5390       else
    5391         case ${MACOSX_DEPLOYMENT_TARGET} in
    5392           10.[[012]])
    5393             _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
    5394             ;;
    5395           10.*)
    5396             _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
    5397             ;;
    5398         esac
    5399       fi
    5400         ;;
    5401       esac
    5402         lt_int_apple_cc_single_mod=no
    5403         output_verbose_link_cmd='echo'
    5404         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
    5405           lt_int_apple_cc_single_mod=yes
    5406         fi
    5407         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
    5408           _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
    5409         else
    5410         _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'
    5411       fi
    5412       _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
    5413       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
    5414         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
    5415           _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}'
    5416         else
    5417           _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}'
    5418         fi
    5419           _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}'
    5420       _LT_AC_TAGVAR(hardcode_direct, $1)=no
    5421       _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
    5422       _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
    5423       _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
    5424       _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
    5425     else
    5426       _LT_AC_TAGVAR(ld_shlibs, $1)=no
    5427     fi
    5428       ;;
    5429 
    5430     dgux*)
    5431       _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
    5432       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
    5433       _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
    5434       ;;
    5435 
    5436     freebsd1*)
    5437       _LT_AC_TAGVAR(ld_shlibs, $1)=no
    5438       ;;
    5439 
    5440     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
    5441     # support.  Future versions do this automatically, but an explicit c++rt0.o
    5442     # does not break anything, and helps significantly (at the cost of a little
    5443     # extra space).
    5444     freebsd2.2*)
    5445       _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
    5446       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
    5447       _LT_AC_TAGVAR(hardcode_direct, $1)=yes
    5448       _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
    5449       ;;
    5450 
    5451     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
    5452     freebsd2*)
    5453       _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
    5454       _LT_AC_TAGVAR(hardcode_direct, $1)=yes
    5455       _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
    5456       _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
    5457       ;;
    5458 
    5459     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
    5460     freebsd* | kfreebsd*-gnu)
    5461       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
    5462       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
    5463       _LT_AC_TAGVAR(hardcode_direct, $1)=yes
    5464       _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
    5465       ;;
    5466 
    5467     hpux9*)
    5468       if test "$GCC" = yes; then
    5469         _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
    5470       else
    5471         _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
    5472       fi
    5473       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
    5474       _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
    5475       _LT_AC_TAGVAR(hardcode_direct, $1)=yes
    5476 
    5477       # hardcode_minus_L: Not really in the search PATH,
    5478       # but as the default location of the library.
    5479       _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
    5480       _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
    5481       ;;
    5482 
    5483     hpux10* | hpux11*)
    5484       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
    5485         case "$host_cpu" in
    5486         hppa*64*|ia64*)
    5487           _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
    5488           ;;
    5489         *)
    5490           _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
    5491           ;;
    5492         esac
    5493       else
    5494         case "$host_cpu" in
    5495         hppa*64*|ia64*)
    5496           _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
    5497           ;;
    5498         *)
    5499           _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
    5500           ;;
    5501         esac
    5502       fi
    5503       if test "$with_gnu_ld" = no; then
    5504         case "$host_cpu" in
    5505         hppa*64*)
    5506           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
    5507           _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
    5508           _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
    5509           _LT_AC_TAGVAR(hardcode_direct, $1)=no
    5510           _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
    5511           ;;
    5512         ia64*)
    5513           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
    5514           _LT_AC_TAGVAR(hardcode_direct, $1)=no
    5515           _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
    5516 
    5517           # hardcode_minus_L: Not really in the search PATH,
    5518           # but as the default location of the library.
    5519           _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
    5520           ;;
    5521         *)
    5522           _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
    5523           _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
    5524           _LT_AC_TAGVAR(hardcode_direct, $1)=yes
    5525           _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
    5526 
    5527           # hardcode_minus_L: Not really in the search PATH,
    5528           # but as the default location of the library.
    5529           _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
    5530           ;;
    5531         esac
    5532       fi
    5533       ;;
    5534 
    5535     irix5* | irix6* | nonstopux*)
    5536       if test "$GCC" = yes; then
    5537         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
    5538       else
    5539         _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
    5540         _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
    5541       fi
    5542       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
    5543       _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
    5544       _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
    5545       ;;
    5546 
    5547     netbsd*)
    5548       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
    5549         _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
    5550       else
    5551         _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
    5552       fi
    5553       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
    5554       _LT_AC_TAGVAR(hardcode_direct, $1)=yes
    5555       _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
    5556       ;;
    5557 
    5558     newsos6)
    5559       _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
    5560       _LT_AC_TAGVAR(hardcode_direct, $1)=yes
    5561       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
    5562       _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
    5563       _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
    5564       ;;
    5565 
    5566     openbsd*)
    5567       _LT_AC_TAGVAR(hardcode_direct, $1)=yes
    5568       _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
    5569       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
    5570         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
    5571         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
    5572         _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
    5573       else
    5574        case $host_os in
    5575          openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
    5576            _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
    5577            _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
    5578            ;;
    5579          *)
    5580            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
    5581            _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
    5582            ;;
    5583        esac
    5584       fi
    5585       ;;
    5586 
    5587     os2*)
    5588       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
    5589       _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
    5590       _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
    5591       _LT_AC_TAGVAR(archive_cmds, $1)='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
    5592       _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
    5593       ;;
    5594 
    5595     osf3*)
    5596       if test "$GCC" = yes; then
    5597         _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
    5598         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
    5599       else
    5600         _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
    5601         _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
    5602       fi
    5603       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
    5604       _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
    5605       ;;
    5606 
    5607     osf4* | osf5*)      # as osf3* with the addition of -msym flag
    5608       if test "$GCC" = yes; then
    5609         _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
    5610         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
    5611         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
    5612       else
    5613         _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
    5614         _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'
    5615         _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~
    5616         $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'
    5617 
    5618         # Both c and cxx compiler support -rpath directly
    5619         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
    5620       fi
    5621       _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
    5622       ;;
    5623 
    5624     sco3.2v5*)
    5625       _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
    5626       _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
    5627       _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
    5628       runpath_var=LD_RUN_PATH
    5629       hardcode_runpath_var=yes
    5630       ;;
    5631 
    5632     solaris*)
    5633       _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
    5634       if test "$GCC" = yes; then
    5635         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
    5636         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
    5637           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
    5638       else
    5639         _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
    5640         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
    5641         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
    5642       fi
    5643       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
    5644       _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
    5645       case $host_os in
    5646       solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
    5647       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
    5648         _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
    5649       esac
    5650       _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
    5651       ;;
    5652 
    5653     sunos4*)
    5654       if test "x$host_vendor" = xsequent; then
    5655         # Use $CC to link under sequent, because it throws in some extra .o
    5656         # files that make .init and .fini sections work.
    5657         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
    5658       else
    5659         _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
    5660       fi
    5661       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
    5662       _LT_AC_TAGVAR(hardcode_direct, $1)=yes
    5663       _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
    5664       _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
    5665       ;;
    5666 
    5667     sysv4)
    5668       case $host_vendor in
    5669         sni)
    5670           _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
    5671           _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
    5672         ;;
    5673         siemens)
    5674           ## LD is ld it makes a PLAMLIB
    5675           ## CC just makes a GrossModule.
    5676           _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
    5677           _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
    5678           _LT_AC_TAGVAR(hardcode_direct, $1)=no
    5679         ;;
    5680         motorola)
    5681           _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
    5682           _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
    5683         ;;
    5684       esac
    5685       runpath_var='LD_RUN_PATH'
    5686       _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
    5687       ;;
    5688 
    5689     sysv4.3*)
    5690       _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
    5691       _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
    5692       _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
    5693       ;;
    5694 
    5695     sysv4*MP*)
    5696       if test -d /usr/nec; then
    5697         _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
    5698         _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
    5699         runpath_var=LD_RUN_PATH
    5700         hardcode_runpath_var=yes
    5701         _LT_AC_TAGVAR(ld_shlibs, $1)=yes
    5702       fi
    5703       ;;
    5704 
    5705     sysv4.2uw2*)
    5706       _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
    5707       _LT_AC_TAGVAR(hardcode_direct, $1)=yes
    5708       _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
    5709       _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
    5710       hardcode_runpath_var=yes
    5711       runpath_var=LD_RUN_PATH
    5712       ;;
    5713 
    5714    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[[78]]* | unixware7*)
    5715       _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text'
    5716       if test "$GCC" = yes; then
    5717         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
    5718       else
    5719         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
    5720       fi
    5721       runpath_var='LD_RUN_PATH'
    5722       _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
    5723       ;;
    5724 
    5725     sysv5*)
    5726       _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
    5727       # $CC -shared without GNU ld will not create a library from C++
    5728       # object files and a static libstdc++, better avoid it by now
    5729       _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
    5730       _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
    5731                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
    5732       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
    5733       _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
    5734       runpath_var='LD_RUN_PATH'
    5735       ;;
    5736 
    5737     uts4*)
    5738       _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
    5739       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
    5740       _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
    5741       ;;
    5742 
    5743     *)
    5744       _LT_AC_TAGVAR(ld_shlibs, $1)=no
    5745       ;;
    5746     esac
    5747   fi
    5748 ])
    5749 AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
    5750 test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
    5751 
    5752 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
    5753 if test "$GCC" = yes; then
    5754   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
    5755 fi
    5756 
    5757 #
    5758 # Do we need to explicitly link libc?
    5759 #
    5760 case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
    5761 x|xyes)
    5762   # Assume -lc should be added
    5763   _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
    5764 
    5765   if test "$enable_shared" = yes && test "$GCC" = yes; then
    5766     case $_LT_AC_TAGVAR(archive_cmds, $1) in
    5767     *'~'*)
    5768       # FIXME: we may have to deal with multi-command sequences.
    5769       ;;
    5770     '$CC '*)
    5771       # Test whether the compiler implicitly links with -lc since on some
    5772       # systems, -lgcc has to come before -lc. If gcc already passes -lc
    5773       # to ld, don't add -lc before -lgcc.
    5774       AC_MSG_CHECKING([whether -lc should be explicitly linked in])
    5775       $rm conftest*
    5776       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
    5777 
    5778       if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
    5779         soname=conftest
    5780         lib=conftest
    5781         libobjs=conftest.$ac_objext
    5782         deplibs=
    5783         wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
    5784         compiler_flags=-v
    5785         linker_flags=-v
    5786         verstring=
    5787         output_objdir=.
    5788         libname=conftest
    5789         lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
    5790         _LT_AC_TAGVAR(allow_undefined_flag, $1)=
    5791         if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
    5792         then
    5793           _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
    5794         else
    5795           _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
    5796         fi
    5797         _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
    5798       else
    5799         cat conftest.err 1>&5
    5800       fi
    5801       $rm conftest*
    5802       AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
    5803       ;;
    5804     esac
    5805   fi
    5806   ;;
    5807 esac
    5808 ])# AC_LIBTOOL_PROG_LD_SHLIBS
    5809 
    5810 
    5811 # _LT_AC_FILE_LTDLL_C
    5812 # -------------------
    5813 # Be careful that the start marker always follows a newline.
    5814 AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
     3597  cygwin* | mingw* | pw32* | os2*)
     3598    cat <<'EOF' >> "${ofile}T"
     3599      # This is a source program that is used to create dlls on Windows
     3600      # Don't remove nor modify the starting and closing comments
    58153601# /* ltdll.c starts here */
    58163602# #define WIN32_LEAN_AND_MEAN
     
    58463632# }
    58473633# /* ltdll.c ends here */
    5848 ])# _LT_AC_FILE_LTDLL_C
    5849 
    5850 
    5851 # _LT_AC_TAGVAR(VARNAME, [TAGNAME])
    5852 # ---------------------------------
    5853 AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
    5854 
     3634        # This is a source program that is used to create import libraries
     3635        # on Windows for dlls which lack them. Don't remove nor modify the
     3636        # starting and closing comments
     3637# /* impgen.c starts here */
     3638# /*   Copyright (C) 1999-2000 Free Software Foundation, Inc.
     3639#
     3640#  This file is part of GNU libtool.
     3641#
     3642#  This program is free software; you can redistribute it and/or modify
     3643#  it under the terms of the GNU General Public License as published by
     3644#  the Free Software Foundation; either version 2 of the License, or
     3645#  (at your option) any later version.
     3646#
     3647#  This program is distributed in the hope that it will be useful,
     3648#  but WITHOUT ANY WARRANTY; without even the implied warranty of
     3649#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     3650#  GNU General Public License for more details.
     3651#
     3652#  You should have received a copy of the GNU General Public License
     3653#  along with this program; if not, write to the Free Software
     3654#  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
     3655#  */
     3656#
     3657# #include <stdio.h>            /* for printf() */
     3658# #include <unistd.h>           /* for open(), lseek(), read() */
     3659# #include <fcntl.h>            /* for O_RDONLY, O_BINARY */
     3660# #include <string.h>           /* for strdup() */
     3661#
     3662# /* O_BINARY isn't required (or even defined sometimes) under Unix */
     3663# #ifndef O_BINARY
     3664# #define O_BINARY 0
     3665# #endif
     3666#
     3667# static unsigned int
     3668# pe_get16 (fd, offset)
     3669#      int fd;
     3670#      int offset;
     3671# {
     3672#   unsigned char b[2];
     3673#   lseek (fd, offset, SEEK_SET);
     3674#   read (fd, b, 2);
     3675#   return b[0] + (b[1]<<8);
     3676# }
     3677#
     3678# static unsigned int
     3679# pe_get32 (fd, offset)
     3680#     int fd;
     3681#     int offset;
     3682# {
     3683#   unsigned char b[4];
     3684#   lseek (fd, offset, SEEK_SET);
     3685#   read (fd, b, 4);
     3686#   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
     3687# }
     3688#
     3689# static unsigned int
     3690# pe_as32 (ptr)
     3691#      void *ptr;
     3692# {
     3693#   unsigned char *b = ptr;
     3694#   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
     3695# }
     3696#
     3697# int
     3698# main (argc, argv)
     3699#     int argc;
     3700#     char *argv[];
     3701# {
     3702#     int dll;
     3703#     unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
     3704#     unsigned long export_rva, export_size, nsections, secptr, expptr;
     3705#     unsigned long name_rvas, nexp;
     3706#     unsigned char *expdata, *erva;
     3707#     char *filename, *dll_name;
     3708#
     3709#     filename = argv[1];
     3710#
     3711#     dll = open(filename, O_RDONLY|O_BINARY);
     3712#     if (dll < 1)
     3713#       return 1;
     3714#
     3715#     dll_name = filename;
     3716#
     3717#     for (i=0; filename[i]; i++)
     3718#       if (filename[i] == '/' || filename[i] == '\\'  || filename[i] == ':')
     3719#           dll_name = filename + i +1;
     3720#
     3721#     pe_header_offset = pe_get32 (dll, 0x3c);
     3722#     opthdr_ofs = pe_header_offset + 4 + 20;
     3723#     num_entries = pe_get32 (dll, opthdr_ofs + 92);
     3724#
     3725#     if (num_entries < 1) /* no exports */
     3726#       return 1;
     3727#
     3728#     export_rva = pe_get32 (dll, opthdr_ofs + 96);
     3729#     export_size = pe_get32 (dll, opthdr_ofs + 100);
     3730#     nsections = pe_get16 (dll, pe_header_offset + 4 +2);
     3731#     secptr = (pe_header_offset + 4 + 20 +
     3732#             pe_get16 (dll, pe_header_offset + 4 + 16));
     3733#
     3734#     expptr = 0;
     3735#     for (i = 0; i < nsections; i++)
     3736#     {
     3737#       char sname[8];
     3738#       unsigned long secptr1 = secptr + 40 * i;
     3739#       unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
     3740#       unsigned long vsize = pe_get32 (dll, secptr1 + 16);
     3741#       unsigned long fptr = pe_get32 (dll, secptr1 + 20);
     3742#       lseek(dll, secptr1, SEEK_SET);
     3743#       read(dll, sname, 8);
     3744#       if (vaddr <= export_rva && vaddr+vsize > export_rva)
     3745#       {
     3746#           expptr = fptr + (export_rva - vaddr);
     3747#           if (export_rva + export_size > vaddr + vsize)
     3748#               export_size = vsize - (export_rva - vaddr);
     3749#           break;
     3750#       }
     3751#     }
     3752#
     3753#     expdata = (unsigned char*)malloc(export_size);
     3754#     lseek (dll, expptr, SEEK_SET);
     3755#     read (dll, expdata, export_size);
     3756#     erva = expdata - export_rva;
     3757#
     3758#     nexp = pe_as32 (expdata+24);
     3759#     name_rvas = pe_as32 (expdata+32);
     3760#
     3761#     printf ("EXPORTS\n");
     3762#     for (i = 0; i<nexp; i++)
     3763#     {
     3764#       unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
     3765#       printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
     3766#     }
     3767#
     3768#     return 0;
     3769# }
     3770# /* impgen.c ends here */
     3771
     3772EOF
     3773    ;;
     3774  esac
     3775
     3776  # We use sed instead of cat because bash on DJGPP gets confused if
     3777  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
     3778  # text mode, it properly converts lines to CR/LF.  This bash problem
     3779  # is reportedly fixed, but why not run on old versions too?
     3780  sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
     3781
     3782  mv -f "${ofile}T" "$ofile" || \
     3783    (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
     3784  chmod +x "$ofile"
     3785fi
     3786
     3787])# _LT_AC_LTCONFIG_HACK
     3788
     3789# AC_LIBTOOL_DLOPEN - enable checks for dlopen support
     3790AC_DEFUN([AC_LIBTOOL_DLOPEN], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])])
     3791
     3792# AC_LIBTOOL_WIN32_DLL - declare package support for building win32 dll's
     3793AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])])
     3794
     3795# AC_ENABLE_SHARED - implement the --enable-shared flag
     3796# Usage: AC_ENABLE_SHARED[(DEFAULT)]
     3797#   Where DEFAULT is either `yes' or `no'.  If omitted, it defaults to
     3798#   `yes'.
     3799AC_DEFUN([AC_ENABLE_SHARED],
     3800[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
     3801AC_ARG_ENABLE(shared,
     3802changequote(<<, >>)dnl
     3803<<  --enable-shared[=PKGS]  build shared libraries [default=>>AC_ENABLE_SHARED_DEFAULT],
     3804changequote([, ])dnl
     3805[p=${PACKAGE-default}
     3806case $enableval in
     3807yes) enable_shared=yes ;;
     3808no) enable_shared=no ;;
     3809*)
     3810  enable_shared=no
     3811  # Look at the argument we got.  We use all the common list separators.
     3812  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
     3813  for pkg in $enableval; do
     3814    if test "X$pkg" = "X$p"; then
     3815      enable_shared=yes
     3816    fi
     3817  done
     3818  IFS="$ac_save_ifs"
     3819  ;;
     3820esac],
     3821enable_shared=AC_ENABLE_SHARED_DEFAULT)dnl
     3822])
     3823
     3824# AC_DISABLE_SHARED - set the default shared flag to --disable-shared
     3825AC_DEFUN([AC_DISABLE_SHARED],
     3826[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
     3827AC_ENABLE_SHARED(no)])
     3828
     3829# AC_ENABLE_STATIC - implement the --enable-static flag
     3830# Usage: AC_ENABLE_STATIC[(DEFAULT)]
     3831#   Where DEFAULT is either `yes' or `no'.  If omitted, it defaults to
     3832#   `yes'.
     3833AC_DEFUN([AC_ENABLE_STATIC],
     3834[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
     3835AC_ARG_ENABLE(static,
     3836changequote(<<, >>)dnl
     3837<<  --enable-static[=PKGS]  build static libraries [default=>>AC_ENABLE_STATIC_DEFAULT],
     3838changequote([, ])dnl
     3839[p=${PACKAGE-default}
     3840case $enableval in
     3841yes) enable_static=yes ;;
     3842no) enable_static=no ;;
     3843*)
     3844  enable_static=no
     3845  # Look at the argument we got.  We use all the common list separators.
     3846  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
     3847  for pkg in $enableval; do
     3848    if test "X$pkg" = "X$p"; then
     3849      enable_static=yes
     3850    fi
     3851  done
     3852  IFS="$ac_save_ifs"
     3853  ;;
     3854esac],
     3855enable_static=AC_ENABLE_STATIC_DEFAULT)dnl
     3856])
     3857
     3858# AC_DISABLE_STATIC - set the default static flag to --disable-static
     3859AC_DEFUN([AC_DISABLE_STATIC],
     3860[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
     3861AC_ENABLE_STATIC(no)])
     3862
     3863
     3864# AC_ENABLE_FAST_INSTALL - implement the --enable-fast-install flag
     3865# Usage: AC_ENABLE_FAST_INSTALL[(DEFAULT)]
     3866#   Where DEFAULT is either `yes' or `no'.  If omitted, it defaults to
     3867#   `yes'.
     3868AC_DEFUN([AC_ENABLE_FAST_INSTALL],
     3869[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
     3870AC_ARG_ENABLE(fast-install,
     3871changequote(<<, >>)dnl
     3872<<  --enable-fast-install[=PKGS]  optimize for fast installation [default=>>AC_ENABLE_FAST_INSTALL_DEFAULT],
     3873changequote([, ])dnl
     3874[p=${PACKAGE-default}
     3875case $enableval in
     3876yes) enable_fast_install=yes ;;
     3877no) enable_fast_install=no ;;
     3878*)
     3879  enable_fast_install=no
     3880  # Look at the argument we got.  We use all the common list separators.
     3881  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
     3882  for pkg in $enableval; do
     3883    if test "X$pkg" = "X$p"; then
     3884      enable_fast_install=yes
     3885    fi
     3886  done
     3887  IFS="$ac_save_ifs"
     3888  ;;
     3889esac],
     3890enable_fast_install=AC_ENABLE_FAST_INSTALL_DEFAULT)dnl
     3891])
     3892
     3893# AC_DISABLE_FAST_INSTALL - set the default to --disable-fast-install
     3894AC_DEFUN([AC_DISABLE_FAST_INSTALL],
     3895[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
     3896AC_ENABLE_FAST_INSTALL(no)])
     3897
     3898# AC_LIBTOOL_PICMODE - implement the --with-pic flag
     3899# Usage: AC_LIBTOOL_PICMODE[(MODE)]
     3900#   Where MODE is either `yes' or `no'.  If omitted, it defaults to
     3901#   `both'.
     3902AC_DEFUN([AC_LIBTOOL_PICMODE],
     3903[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
     3904pic_mode=ifelse($#,1,$1,default)])
     3905
     3906
     3907# AC_PATH_TOOL_PREFIX - find a file program which can recognise shared library
     3908AC_DEFUN([AC_PATH_TOOL_PREFIX],
     3909[AC_MSG_CHECKING([for $1])
     3910AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
     3911[case $MAGIC_CMD in
     3912  /*)
     3913  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
     3914  ;;
     3915  ?:/*)
     3916  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
     3917  ;;
     3918  *)
     3919  ac_save_MAGIC_CMD="$MAGIC_CMD"
     3920  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
     3921dnl $ac_dummy forces splitting on constant user-supplied paths.
     3922dnl POSIX.2 word splitting is done only on the output of word expansions,
     3923dnl not every word.  This closes a longstanding sh security hole.
     3924  ac_dummy="ifelse([$2], , $PATH, [$2])"
     3925  for ac_dir in $ac_dummy; do
     3926    test -z "$ac_dir" && ac_dir=.
     3927    if test -f $ac_dir/$1; then
     3928      lt_cv_path_MAGIC_CMD="$ac_dir/$1"
     3929      if test -n "$file_magic_test_file"; then
     3930        case $deplibs_check_method in
     3931        "file_magic "*)
     3932          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
     3933          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
     3934          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
     3935            egrep "$file_magic_regex" > /dev/null; then
     3936            :
     3937          else
     3938            cat <<EOF 1>&2
     3939
     3940*** Warning: the command libtool uses to detect shared libraries,
     3941*** $file_magic_cmd, produces output that libtool cannot recognize.
     3942*** The result is that libtool may fail to recognize shared libraries
     3943*** as such.  This will affect the creation of libtool libraries that
     3944*** depend on shared libraries, but programs linked with such libtool
     3945*** libraries will work regardless of this problem.  Nevertheless, you
     3946*** may want to report the problem to your system manager and/or to
     3947*** bug-libtool@gnu.org
     3948
     3949EOF
     3950          fi ;;
     3951        esac
     3952      fi
     3953      break
     3954    fi
     3955  done
     3956  IFS="$ac_save_ifs"
     3957  MAGIC_CMD="$ac_save_MAGIC_CMD"
     3958  ;;
     3959esac])
     3960MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
     3961if test -n "$MAGIC_CMD"; then
     3962  AC_MSG_RESULT($MAGIC_CMD)
     3963else
     3964  AC_MSG_RESULT(no)
     3965fi
     3966])
     3967
     3968
     3969# AC_PATH_MAGIC - find a file program which can recognise a shared library
     3970AC_DEFUN([AC_PATH_MAGIC],
     3971[AC_REQUIRE([AC_CHECK_TOOL_PREFIX])dnl
     3972AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin:$PATH)
     3973if test -z "$lt_cv_path_MAGIC_CMD"; then
     3974  if test -n "$ac_tool_prefix"; then
     3975    AC_PATH_TOOL_PREFIX(file, /usr/bin:$PATH)
     3976  else
     3977    MAGIC_CMD=:
     3978  fi
     3979fi
     3980])
     3981
     3982
     3983# AC_PROG_LD - find the path to the GNU or non-GNU linker
     3984AC_DEFUN([AC_PROG_LD],
     3985[AC_ARG_WITH(gnu-ld,
     3986[  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]],
     3987test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no)
     3988AC_REQUIRE([AC_PROG_CC])dnl
     3989AC_REQUIRE([AC_CANONICAL_HOST])dnl
     3990AC_REQUIRE([AC_CANONICAL_BUILD])dnl
     3991AC_REQUIRE([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR])dnl
     3992ac_prog=ld
     3993if test "$GCC" = yes; then
     3994  # Check if gcc -print-prog-name=ld gives a path.
     3995  AC_MSG_CHECKING([for ld used by GCC])
     3996  case $host in
     3997  *-*-mingw*)
     3998    # gcc leaves a trailing carriage return which upsets mingw
     3999    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
     4000  *)
     4001    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
     4002  esac
     4003  case $ac_prog in
     4004    # Accept absolute paths.
     4005    [[\\/]]* | [[A-Za-z]]:[[\\/]]*)
     4006      re_direlt='/[[^/]][[^/]]*/\.\./'
     4007      # Canonicalize the path of ld
     4008      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
     4009      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
     4010        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
     4011      done
     4012      test -z "$LD" && LD="$ac_prog"
     4013      ;;
     4014  "")
     4015    # If it fails, then pretend we aren't using GCC.
     4016    ac_prog=ld
     4017    ;;
     4018  *)
     4019    # If it is relative, then search for the first ld in PATH.
     4020    with_gnu_ld=unknown
     4021    ;;
     4022  esac
     4023elif test "$with_gnu_ld" = yes; then
     4024  AC_MSG_CHECKING([for GNU ld])
     4025else
     4026  AC_MSG_CHECKING([for non-GNU ld])
     4027fi
     4028AC_CACHE_VAL(lt_cv_path_LD,
     4029[if test -z "$LD"; then
     4030  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
     4031  for ac_dir in $PATH; do
     4032    test -z "$ac_dir" && ac_dir=.
     4033    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
     4034      lt_cv_path_LD="$ac_dir/$ac_prog"
     4035      # Check to see if the program is GNU ld.  I'd rather use --version,
     4036      # but apparently some GNU ld's only accept -v.
     4037      # Break only if it was the GNU/non-GNU ld that we prefer.
     4038      if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
     4039        test "$with_gnu_ld" != no && break
     4040      else
     4041        test "$with_gnu_ld" != yes && break
     4042      fi
     4043    fi
     4044  done
     4045  IFS="$ac_save_ifs"
     4046else
     4047  lt_cv_path_LD="$LD" # Let the user override the test with a path.
     4048fi])
     4049LD="$lt_cv_path_LD"
     4050if test -n "$LD"; then
     4051  AC_MSG_RESULT($LD)
     4052else
     4053  AC_MSG_RESULT(no)
     4054fi
     4055test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
     4056AC_PROG_LD_GNU
     4057])
     4058
     4059# AC_PROG_LD_GNU -
     4060AC_DEFUN([AC_PROG_LD_GNU],
     4061[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
     4062[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
     4063if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
     4064  lt_cv_prog_gnu_ld=yes
     4065else
     4066  lt_cv_prog_gnu_ld=no
     4067fi])
     4068with_gnu_ld=$lt_cv_prog_gnu_ld
     4069])
     4070
     4071# AC_PROG_LD_RELOAD_FLAG - find reload flag for linker
     4072#   -- PORTME Some linkers may need a different reload flag.
     4073AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
     4074[AC_CACHE_CHECK([for $LD option to reload object files], lt_cv_ld_reload_flag,
     4075[lt_cv_ld_reload_flag='-r'])
     4076reload_flag=$lt_cv_ld_reload_flag
     4077test -n "$reload_flag" && reload_flag=" $reload_flag"
     4078])
     4079
     4080# AC_DEPLIBS_CHECK_METHOD - how to check for library dependencies
     4081#  -- PORTME fill in with the dynamic library characteristics
     4082AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
     4083[AC_CACHE_CHECK([how to recognise dependent libraries],
     4084lt_cv_deplibs_check_method,
     4085[lt_cv_file_magic_cmd='$MAGIC_CMD'
     4086lt_cv_file_magic_test_file=
     4087lt_cv_deplibs_check_method='unknown'
     4088# Need to set the preceding variable on all platforms that support
     4089# interlibrary dependencies.
     4090# 'none' -- dependencies not supported.
     4091# `unknown' -- same as none, but documents that we really don't know.
     4092# 'pass_all' -- all dependencies passed with no checks.
     4093# 'test_compile' -- check by making test program.
     4094# 'file_magic [[regex]]' -- check by looking for files in library path
     4095# which responds to the $file_magic_cmd with a given egrep regex.
     4096# If you have `file' or equivalent on your system and you're not sure
     4097# whether `pass_all' will *always* work, you probably want this one.
     4098
     4099case $host_os in
     4100aix4* | aix5*)
     4101  lt_cv_deplibs_check_method=pass_all
     4102  ;;
     4103
     4104beos*)
     4105  lt_cv_deplibs_check_method=pass_all
     4106  ;;
     4107
     4108bsdi4*)
     4109  lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
     4110  lt_cv_file_magic_cmd='/usr/bin/file -L'
     4111  lt_cv_file_magic_test_file=/shlib/libc.so
     4112  ;;
     4113
     4114cygwin* | mingw* | pw32*)
     4115  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
     4116  lt_cv_file_magic_cmd='$OBJDUMP -f'
     4117  ;;
     4118
     4119darwin* | rhapsody*)
     4120  lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
     4121  lt_cv_file_magic_cmd='/usr/bin/file -L'
     4122  case "$host_os" in
     4123  rhapsody* | darwin1.[[012]])
     4124    lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
     4125    ;;
     4126  *) # Darwin 1.3 on
     4127    lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
     4128    ;;
     4129  esac
     4130  ;;
     4131
     4132freebsd*)
     4133  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
     4134    case $host_cpu in
     4135    i*86 )
     4136      # Not sure whether the presence of OpenBSD here was a mistake.
     4137      # Let's accept both of them until this is cleared up.
     4138      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[[3-9]]86 (compact )?demand paged shared library'
     4139      lt_cv_file_magic_cmd=/usr/bin/file
     4140      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
     4141      ;;
     4142    esac
     4143  else
     4144    lt_cv_deplibs_check_method=pass_all
     4145  fi
     4146  ;;
     4147
     4148gnu*)
     4149  lt_cv_deplibs_check_method=pass_all
     4150  ;;
     4151
     4152hpux10.20*|hpux11*)
     4153  lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
     4154  lt_cv_file_magic_cmd=/usr/bin/file
     4155  lt_cv_file_magic_test_file=/usr/lib/libc.sl
     4156  ;;
     4157
     4158irix5* | irix6* | nonstopux*)
     4159  case $host_os in
     4160  irix5* | nonstopux*)
     4161    # this will be overridden with pass_all, but let us keep it just in case
     4162    lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
     4163    ;;
     4164  *)
     4165    case $LD in
     4166    *-32|*"-32 ") libmagic=32-bit;;
     4167    *-n32|*"-n32 ") libmagic=N32;;
     4168    *-64|*"-64 ") libmagic=64-bit;;
     4169    *) libmagic=never-match;;
     4170    esac
     4171    # this will be overridden with pass_all, but let us keep it just in case
     4172    lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[[1234]] dynamic lib MIPS - version 1"
     4173    ;;
     4174  esac
     4175  lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
     4176  lt_cv_deplibs_check_method=pass_all
     4177  ;;
     4178
     4179# This must be Linux ELF.
     4180linux-gnu*)
     4181  case $host_cpu in
     4182  alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64* | s390* | x86_64*)
     4183    lt_cv_deplibs_check_method=pass_all ;;
     4184  *)
     4185    # glibc up to 2.1.1 does not perform some relocations on ARM
     4186    lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' ;;
     4187  esac
     4188  lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
     4189  ;;
     4190
     4191netbsd*)
     4192  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
     4193    lt_cv_deplibs_check_method='match_pattern /lib[[^/\.]]+\.so\.[[0-9]]+\.[[0-9]]+$'
     4194  else
     4195    lt_cv_deplibs_check_method='match_pattern /lib[[^/\.]]+\.so$'
     4196  fi
     4197  ;;
     4198
     4199newos6*)
     4200  lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
     4201  lt_cv_file_magic_cmd=/usr/bin/file
     4202  lt_cv_file_magic_test_file=/usr/lib/libnls.so
     4203  ;;
     4204
     4205openbsd*)
     4206  lt_cv_file_magic_cmd=/usr/bin/file
     4207  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
     4208  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
     4209    lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB shared object'
     4210  else
     4211    lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
     4212  fi
     4213  ;;
     4214
     4215osf3* | osf4* | osf5*)
     4216  # this will be overridden with pass_all, but let us keep it just in case
     4217  lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
     4218  lt_cv_file_magic_test_file=/shlib/libc.so
     4219  lt_cv_deplibs_check_method=pass_all
     4220  ;;
     4221
     4222sco3.2v5*)
     4223  lt_cv_deplibs_check_method=pass_all
     4224  ;;
     4225
     4226solaris*)
     4227  lt_cv_deplibs_check_method=pass_all
     4228  lt_cv_file_magic_test_file=/lib/libc.so
     4229  ;;
     4230
     4231sysv5uw[[78]]* | sysv4*uw2*)
     4232  lt_cv_deplibs_check_method=pass_all
     4233  ;;
     4234
     4235sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
     4236  case $host_vendor in
     4237  motorola)
     4238    lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]'
     4239    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
     4240    ;;
     4241  ncr)
     4242    lt_cv_deplibs_check_method=pass_all
     4243    ;;
     4244  sequent)
     4245    lt_cv_file_magic_cmd='/bin/file'
     4246    lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
     4247    ;;
     4248  sni)
     4249    lt_cv_file_magic_cmd='/bin/file'
     4250    lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
     4251    lt_cv_file_magic_test_file=/lib/libc.so
     4252    ;;
     4253  siemens)
     4254    lt_cv_deplibs_check_method=pass_all
     4255    ;;
     4256  esac
     4257  ;;
     4258esac
     4259])
     4260file_magic_cmd=$lt_cv_file_magic_cmd
     4261deplibs_check_method=$lt_cv_deplibs_check_method
     4262])
     4263
     4264
     4265# AC_PROG_NM - find the path to a BSD-compatible name lister
     4266AC_DEFUN([AC_PROG_NM],
     4267[AC_REQUIRE([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR])dnl
     4268AC_MSG_CHECKING([for BSD-compatible nm])
     4269AC_CACHE_VAL(lt_cv_path_NM,
     4270[if test -n "$NM"; then
     4271  # Let the user override the test.
     4272  lt_cv_path_NM="$NM"
     4273else
     4274  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
     4275  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
     4276    test -z "$ac_dir" && ac_dir=.
     4277    tmp_nm=$ac_dir/${ac_tool_prefix}nm
     4278    if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
     4279      # Check to see if the nm accepts a BSD-compat flag.
     4280      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
     4281      #   nm: unknown option "B" ignored
     4282      # Tru64's nm complains that /dev/null is an invalid object file
     4283      if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
     4284        lt_cv_path_NM="$tmp_nm -B"
     4285        break
     4286      elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
     4287        lt_cv_path_NM="$tmp_nm -p"
     4288        break
     4289      else
     4290        lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
     4291        continue # so that we can try to find one that supports BSD flags
     4292      fi
     4293    fi
     4294  done
     4295  IFS="$ac_save_ifs"
     4296  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
     4297fi])
     4298NM="$lt_cv_path_NM"
     4299AC_MSG_RESULT([$NM])
     4300])
     4301
     4302# AC_CHECK_LIBM - check for math library
     4303AC_DEFUN([AC_CHECK_LIBM],
     4304[AC_REQUIRE([AC_CANONICAL_HOST])dnl
     4305LIBM=
     4306case $host in
     4307*-*-beos* | *-*-cygwin* | *-*-pw32*)
     4308  # These system don't have libm
     4309  ;;
     4310*-ncr-sysv4.3*)
     4311  AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
     4312  AC_CHECK_LIB(m, main, LIBM="$LIBM -lm")
     4313  ;;
     4314*)
     4315  AC_CHECK_LIB(m, main, LIBM="-lm")
     4316  ;;
     4317esac
     4318])
     4319
     4320# AC_LIBLTDL_CONVENIENCE[(dir)] - sets LIBLTDL to the link flags for
     4321# the libltdl convenience library and LTDLINCL to the include flags for
     4322# the libltdl header and adds --enable-ltdl-convenience to the
     4323# configure arguments.  Note that LIBLTDL and LTDLINCL are not
     4324# AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called.  If DIR is not
     4325# provided, it is assumed to be `libltdl'.  LIBLTDL will be prefixed
     4326# with '${top_builddir}/' and LTDLINCL will be prefixed with
     4327# '${top_srcdir}/' (note the single quotes!).  If your package is not
     4328# flat and you're not using automake, define top_builddir and
     4329# top_srcdir appropriately in the Makefiles.
     4330AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
     4331[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
     4332  case $enable_ltdl_convenience in
     4333  no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
     4334  "") enable_ltdl_convenience=yes
     4335      ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
     4336  esac
     4337  LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
     4338  LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
     4339  # For backwards non-gettext consistent compatibility...
     4340  INCLTDL="$LTDLINCL"
     4341])
     4342
     4343# AC_LIBLTDL_INSTALLABLE[(dir)] - sets LIBLTDL to the link flags for
     4344# the libltdl installable library and LTDLINCL to the include flags for
     4345# the libltdl header and adds --enable-ltdl-install to the configure
     4346# arguments.  Note that LIBLTDL and LTDLINCL are not AC_SUBSTed, nor is
     4347# AC_CONFIG_SUBDIRS called.  If DIR is not provided and an installed
     4348# libltdl is not found, it is assumed to be `libltdl'.  LIBLTDL will
     4349# be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed
     4350# with '${top_srcdir}/' (note the single quotes!).  If your package is
     4351# not flat and you're not using automake, define top_builddir and
     4352# top_srcdir appropriately in the Makefiles.
     4353# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
     4354AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
     4355[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
     4356  AC_CHECK_LIB(ltdl, main,
     4357  [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
     4358  [if test x"$enable_ltdl_install" = xno; then
     4359     AC_MSG_WARN([libltdl not installed, but installation disabled])
     4360   else
     4361     enable_ltdl_install=yes
     4362   fi
     4363  ])
     4364  if test x"$enable_ltdl_install" = x"yes"; then
     4365    ac_configure_args="$ac_configure_args --enable-ltdl-install"
     4366    LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
     4367    LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
     4368  else
     4369    ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
     4370    LIBLTDL="-lltdl"
     4371    LTDLINCL=
     4372  fi
     4373  # For backwards non-gettext consistent compatibility...
     4374  INCLTDL="$LTDLINCL"
     4375])
    58554376
    58564377# old names
     
    58654386# This is just to silence aclocal about the macro not being used
    58664387ifelse([AC_DISABLE_FAST_INSTALL])
    5867 
    5868 AC_DEFUN([LT_AC_PROG_GCJ],
    5869 [AC_CHECK_TOOL(GCJ, gcj, no)
    5870   test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
    5871   AC_SUBST(GCJFLAGS)
    5872 ])
    5873 
    5874 AC_DEFUN([LT_AC_PROG_RC],
    5875 [AC_CHECK_TOOL(RC, windres, no)
    5876 ])
    58774388
    58784389# NOTE: This macro has been submitted for inclusion into   #
     
    58894400[# Loop through the user's path and test for sed and gsed.
    58904401# Then use that list of sed's as ones to test for truncation.
     4402as_executable_p="test -f"
    58914403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    58924404for as_dir in $PATH
     
    58944406  IFS=$as_save_IFS
    58954407  test -z "$as_dir" && as_dir=.
    5896   for lt_ac_prog in sed gsed; do
     4408  for ac_prog in sed gsed; do
    58974409    for ac_exec_ext in '' $ac_executable_extensions; do
    5898       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
    5899         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
     4410      if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
     4411        _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
    59004412      fi
    59014413    done
    59024414  done
    59034415done
    5904 lt_ac_max=0
    5905 lt_ac_count=0
    5906 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
    5907 # along with /bin/sed that truncates output.
    5908 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
    5909   test ! -f $lt_ac_sed && break
    5910   cat /dev/null > conftest.in
    5911   lt_ac_count=0
    5912   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
    5913   # Check for GNU sed and select it if it is found.
    5914   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
    5915     lt_cv_path_SED=$lt_ac_sed
    5916     break
    5917   fi
    5918   while true; do
    5919     cat conftest.in conftest.in >conftest.tmp
    5920     mv conftest.tmp conftest.in
    5921     cp conftest.in conftest.nl
    5922     echo >>conftest.nl
    5923     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
    5924     cmp -s conftest.out conftest.nl || break
    5925     # 10000 chars as input seems more than enough
    5926     test $lt_ac_count -gt 10 && break
    5927     lt_ac_count=`expr $lt_ac_count + 1`
    5928     if test $lt_ac_count -gt $lt_ac_max; then
    5929       lt_ac_max=$lt_ac_count
    5930       lt_cv_path_SED=$lt_ac_sed
     4416
     4417  # Create a temporary directory, and hook for its removal unless debugging.
     4418$debug ||
     4419{
     4420  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
     4421  trap '{ (exit 1); exit 1; }' 1 2 13 15
     4422}
     4423
     4424# Create a (secure) tmp directory for tmp files.
     4425: ${TMPDIR=/tmp}
     4426{
     4427  tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
     4428  test -n "$tmp" && test -d "$tmp"
     4429}  ||
     4430{
     4431  tmp=$TMPDIR/sed$$-$RANDOM
     4432  (umask 077 && mkdir $tmp)
     4433} ||
     4434{
     4435   echo "$me: cannot create a temporary directory in $TMPDIR" >&2
     4436   { (exit 1); exit 1; }
     4437}
     4438  _max=0
     4439  _count=0
     4440  # Add /usr/xpg4/bin/sed as it is typically found on Solaris
     4441  # along with /bin/sed that truncates output.
     4442  for _sed in $_sed_list /usr/xpg4/bin/sed; do
     4443    test ! -f ${_sed} && break
     4444    cat /dev/null > "$tmp/sed.in"
     4445    _count=0
     4446    echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
     4447    # Check for GNU sed and select it if it is found.
     4448    if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
     4449      lt_cv_path_SED=${_sed}
     4450      break
    59314451    fi
     4452    while true; do
     4453      cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
     4454      mv "$tmp/sed.tmp" "$tmp/sed.in"
     4455      cp "$tmp/sed.in" "$tmp/sed.nl"
     4456      echo >>"$tmp/sed.nl"
     4457      ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
     4458      cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
     4459      # 40000 chars as input seems more than enough
     4460      test $_count -gt 10 && break
     4461      _count=`expr $_count + 1`
     4462      if test $_count -gt $_max; then
     4463        _max=$_count
     4464        lt_cv_path_SED=$_sed
     4465      fi
     4466    done
    59324467  done
    5933 done
    5934 SED=$lt_cv_path_SED
     4468  rm -rf "$tmp"
    59354469])
     4470if test "X$SED" != "X"; then
     4471  lt_cv_path_SED=$SED
     4472else
     4473  SED=$lt_cv_path_SED
     4474fi
    59364475AC_MSG_RESULT([$SED])
    59374476])
    59384477
    5939 #                                                        -*- Autoconf -*-
    5940 # Copyright (C) 2002, 2003  Free Software Foundation, Inc.
    5941 # Generated from amversion.in; do not edit by hand.
    5942 
    5943 # This program is free software; you can redistribute it and/or modify
    5944 # it under the terms of the GNU General Public License as published by
    5945 # the Free Software Foundation; either version 2, or (at your option)
    5946 # any later version.
    5947 
    5948 # This program is distributed in the hope that it will be useful,
    5949 # but WITHOUT ANY WARRANTY; without even the implied warranty of
    5950 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    5951 # GNU General Public License for more details.
    5952 
    5953 # You should have received a copy of the GNU General Public License
    5954 # along with this program; if not, write to the Free Software
    5955 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
    5956 
    5957 # AM_AUTOMAKE_VERSION(VERSION)
    5958 # ----------------------------
    5959 # Automake X.Y traces this macro to ensure aclocal.m4 has been
    5960 # generated from the m4 files accompanying Automake X.Y.
    5961 AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.8"])
    5962 
    5963 # AM_SET_CURRENT_AUTOMAKE_VERSION
    5964 # -------------------------------
    5965 # Call AM_AUTOMAKE_VERSION so it can be traced.
    5966 # This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
    5967 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
    5968          [AM_AUTOMAKE_VERSION([1.8.3])])
    5969 
    5970 # AM_AUX_DIR_EXPAND
    5971 
    5972 # Copyright (C) 2001, 2003 Free Software Foundation, Inc.
    5973 
    5974 # This program is free software; you can redistribute it and/or modify
    5975 # it under the terms of the GNU General Public License as published by
    5976 # the Free Software Foundation; either version 2, or (at your option)
    5977 # any later version.
    5978 
    5979 # This program is distributed in the hope that it will be useful,
    5980 # but WITHOUT ANY WARRANTY; without even the implied warranty of
    5981 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    5982 # GNU General Public License for more details.
    5983 
    5984 # You should have received a copy of the GNU General Public License
    5985 # along with this program; if not, write to the Free Software
    5986 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
    5987 # 02111-1307, USA.
    5988 
    5989 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
    5990 # $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to
    5991 # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
    5992 #
    5993 # Of course, Automake must honor this variable whenever it calls a
    5994 # tool from the auxiliary directory.  The problem is that $srcdir (and
    5995 # therefore $ac_aux_dir as well) can be either absolute or relative,
    5996 # depending on how configure is run.  This is pretty annoying, since
    5997 # it makes $ac_aux_dir quite unusable in subdirectories: in the top
    5998 # source directory, any form will work fine, but in subdirectories a
    5999 # relative path needs to be adjusted first.
    6000 #
    6001 # $ac_aux_dir/missing
    6002 #    fails when called from a subdirectory if $ac_aux_dir is relative
    6003 # $top_srcdir/$ac_aux_dir/missing
    6004 #    fails if $ac_aux_dir is absolute,
    6005 #    fails when called from a subdirectory in a VPATH build with
    6006 #          a relative $ac_aux_dir
    6007 #
    6008 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
    6009 # are both prefixed by $srcdir.  In an in-source build this is usually
    6010 # harmless because $srcdir is `.', but things will broke when you
    6011 # start a VPATH build or use an absolute $srcdir.
    6012 #
    6013 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
    6014 # iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
    6015 #   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
    6016 # and then we would define $MISSING as
    6017 #   MISSING="\${SHELL} $am_aux_dir/missing"
    6018 # This will work as long as MISSING is not called from configure, because
    6019 # unfortunately $(top_srcdir) has no meaning in configure.
    6020 # However there are other variables, like CC, which are often used in
    6021 # configure, and could therefore not use this "fixed" $ac_aux_dir.
    6022 #
    6023 # Another solution, used here, is to always expand $ac_aux_dir to an
    6024 # absolute PATH.  The drawback is that using absolute paths prevent a
    6025 # configured tree to be moved without reconfiguration.
    6026 
    6027 AC_DEFUN([AM_AUX_DIR_EXPAND],
    6028 [dnl Rely on autoconf to set up CDPATH properly.
    6029 AC_PREREQ([2.50])dnl
    6030 # expand $ac_aux_dir to an absolute path
    6031 am_aux_dir=`cd $ac_aux_dir && pwd`
    6032 ])
    6033 
    6034 # AM_CONDITIONAL                                              -*- Autoconf -*-
    6035 
    6036 # Copyright (C) 1997, 2000, 2001, 2003 Free Software Foundation, Inc.
    6037 
    6038 # This program is free software; you can redistribute it and/or modify
    6039 # it under the terms of the GNU General Public License as published by
    6040 # the Free Software Foundation; either version 2, or (at your option)
    6041 # any later version.
    6042 
    6043 # This program is distributed in the hope that it will be useful,
    6044 # but WITHOUT ANY WARRANTY; without even the implied warranty of
    6045 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    6046 # GNU General Public License for more details.
    6047 
    6048 # You should have received a copy of the GNU General Public License
    6049 # along with this program; if not, write to the Free Software
    6050 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
    6051 # 02111-1307, USA.
    6052 
    6053 # serial 6
    6054 
    6055 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
    6056 # -------------------------------------
    6057 # Define a conditional.
    6058 AC_DEFUN([AM_CONDITIONAL],
    6059 [AC_PREREQ(2.52)dnl
    6060  ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
    6061         [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
    6062 AC_SUBST([$1_TRUE])
    6063 AC_SUBST([$1_FALSE])
    6064 if $2; then
    6065   $1_TRUE=
    6066   $1_FALSE='#'
    6067 else
    6068   $1_TRUE='#'
    6069   $1_FALSE=
    6070 fi
    6071 AC_CONFIG_COMMANDS_PRE(
    6072 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
    6073   AC_MSG_ERROR([conditional "$1" was never defined.
    6074 Usually this means the macro was only invoked conditionally.])
    6075 fi])])
    6076 
    6077 # serial 7                                              -*- Autoconf -*-
    6078 
    6079 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004
    6080 # Free Software Foundation, Inc.
    6081 
    6082 # This program is free software; you can redistribute it and/or modify
    6083 # it under the terms of the GNU General Public License as published by
    6084 # the Free Software Foundation; either version 2, or (at your option)
    6085 # any later version.
    6086 
    6087 # This program is distributed in the hope that it will be useful,
    6088 # but WITHOUT ANY WARRANTY; without even the implied warranty of
    6089 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    6090 # GNU General Public License for more details.
    6091 
    6092 # You should have received a copy of the GNU General Public License
    6093 # along with this program; if not, write to the Free Software
    6094 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
    6095 # 02111-1307, USA.
    6096 
    6097 
    6098 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
    6099 # written in clear, in which case automake, when reading aclocal.m4,
    6100 # will think it sees a *use*, and therefore will trigger all it's
    6101 # C support machinery.  Also note that it means that autoscan, seeing
    6102 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
    6103 
    6104 
    6105 
    6106 # _AM_DEPENDENCIES(NAME)
    6107 # ----------------------
    6108 # See how the compiler implements dependency checking.
    6109 # NAME is "CC", "CXX", "GCJ", or "OBJC".
    6110 # We try a few techniques and use that to set a single cache variable.
    6111 #
    6112 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
    6113 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
    6114 # dependency, and given that the user is not expected to run this macro,
    6115 # just rely on AC_PROG_CC.
    6116 AC_DEFUN([_AM_DEPENDENCIES],
    6117 [AC_REQUIRE([AM_SET_DEPDIR])dnl
    6118 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
    6119 AC_REQUIRE([AM_MAKE_INCLUDE])dnl
    6120 AC_REQUIRE([AM_DEP_TRACK])dnl
    6121 
    6122 ifelse([$1], CC,   [depcc="$CC"   am_compiler_list=],
    6123        [$1], CXX,  [depcc="$CXX"  am_compiler_list=],
    6124        [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
    6125        [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
    6126                    [depcc="$$1"   am_compiler_list=])
    6127 
    6128 AC_CACHE_CHECK([dependency style of $depcc],
    6129                [am_cv_$1_dependencies_compiler_type],
    6130 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
    6131   # We make a subdir and do the tests there.  Otherwise we can end up
    6132   # making bogus files that we don't know about and never remove.  For
    6133   # instance it was reported that on HP-UX the gcc test will end up
    6134   # making a dummy file named `D' -- because `-MD' means `put the output
    6135   # in D'.
    6136   mkdir conftest.dir
    6137   # Copy depcomp to subdir because otherwise we won't find it if we're
    6138   # using a relative directory.
    6139   cp "$am_depcomp" conftest.dir
    6140   cd conftest.dir
    6141   # We will build objects and dependencies in a subdirectory because
    6142   # it helps to detect inapplicable dependency modes.  For instance
    6143   # both Tru64's cc and ICC support -MD to output dependencies as a
    6144   # side effect of compilation, but ICC will put the dependencies in
    6145   # the current directory while Tru64 will put them in the object
    6146   # directory.
    6147   mkdir sub
    6148 
    6149   am_cv_$1_dependencies_compiler_type=none
    6150   if test "$am_compiler_list" = ""; then
    6151      am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
    6152   fi
    6153   for depmode in $am_compiler_list; do
    6154     # Setup a source with many dependencies, because some compilers
    6155     # like to wrap large dependency lists on column 80 (with \), and
    6156     # we should not choose a depcomp mode which is confused by this.
    6157     #
    6158     # We need to recreate these files for each test, as the compiler may
    6159     # overwrite some of them when testing with obscure command lines.
    6160     # This happens at least with the AIX C compiler.
    6161     : > sub/conftest.c
    6162     for i in 1 2 3 4 5 6; do
    6163       echo '#include "conftst'$i'.h"' >> sub/conftest.c
    6164       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
    6165       # Solaris 8's {/usr,}/bin/sh.
    6166       touch sub/conftst$i.h
    6167     done
    6168     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
    6169 
    6170     case $depmode in
    6171     nosideeffect)
    6172       # after this tag, mechanisms are not by side-effect, so they'll
    6173       # only be used when explicitly requested
    6174       if test "x$enable_dependency_tracking" = xyes; then
    6175         continue
    6176       else
    6177         break
    6178       fi
    6179       ;;
    6180     none) break ;;
    6181     esac
    6182     # We check with `-c' and `-o' for the sake of the "dashmstdout"
    6183     # mode.  It turns out that the SunPro C++ compiler does not properly
    6184     # handle `-M -o', and we need to detect this.
    6185     if depmode=$depmode \
    6186        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
    6187        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
    6188        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
    6189          >/dev/null 2>conftest.err &&
    6190        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
    6191        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
    6192        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
    6193       # icc doesn't choke on unknown options, it will just issue warnings
    6194       # (even with -Werror).  So we grep stderr for any message
    6195       # that says an option was ignored.
    6196       if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
    6197         am_cv_$1_dependencies_compiler_type=$depmode
    6198         break
    6199       fi
    6200     fi
    6201   done
    6202 
    6203   cd ..
    6204   rm -rf conftest.dir
    6205 else
    6206   am_cv_$1_dependencies_compiler_type=none
    6207 fi
    6208 ])
    6209 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
    6210 AM_CONDITIONAL([am__fastdep$1], [
    6211   test "x$enable_dependency_tracking" != xno \
    6212   && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
    6213 ])
    6214 
    6215 
    6216 # AM_SET_DEPDIR
    6217 # -------------
    6218 # Choose a directory name for dependency files.
    6219 # This macro is AC_REQUIREd in _AM_DEPENDENCIES
    6220 AC_DEFUN([AM_SET_DEPDIR],
    6221 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
    6222 AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
    6223 ])
    6224 
    6225 
    6226 # AM_DEP_TRACK
    6227 # ------------
    6228 AC_DEFUN([AM_DEP_TRACK],
    6229 [AC_ARG_ENABLE(dependency-tracking,
    6230 [  --disable-dependency-tracking  speeds up one-time build
    6231   --enable-dependency-tracking   do not reject slow dependency extractors])
    6232 if test "x$enable_dependency_tracking" != xno; then
    6233   am_depcomp="$ac_aux_dir/depcomp"
    6234   AMDEPBACKSLASH='\'
    6235 fi
    6236 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
    6237 AC_SUBST([AMDEPBACKSLASH])
    6238 ])
    6239 
    6240 # Generate code to set up dependency tracking.   -*- Autoconf -*-
    6241 
    6242 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
    6243 
    6244 # This program is free software; you can redistribute it and/or modify
    6245 # it under the terms of the GNU General Public License as published by
    6246 # the Free Software Foundation; either version 2, or (at your option)
    6247 # any later version.
    6248 
    6249 # This program is distributed in the hope that it will be useful,
    6250 # but WITHOUT ANY WARRANTY; without even the implied warranty of
    6251 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    6252 # GNU General Public License for more details.
    6253 
    6254 # You should have received a copy of the GNU General Public License
    6255 # along with this program; if not, write to the Free Software
    6256 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
    6257 # 02111-1307, USA.
    6258 
    6259 #serial 2
    6260 
    6261 # _AM_OUTPUT_DEPENDENCY_COMMANDS
    6262 # ------------------------------
    6263 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
    6264 [for mf in $CONFIG_FILES; do
    6265   # Strip MF so we end up with the name of the file.
    6266   mf=`echo "$mf" | sed -e 's/:.*$//'`
    6267   # Check whether this is an Automake generated Makefile or not.
    6268   # We used to match only the files named `Makefile.in', but
    6269   # some people rename them; so instead we look at the file content.
    6270   # Grep'ing the first line is not enough: some people post-process
    6271   # each Makefile.in and add a new line on top of each file to say so.
    6272   # So let's grep whole file.
    6273   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
    6274     dirpart=`AS_DIRNAME("$mf")`
    6275   else
    6276     continue
    6277   fi
    6278   grep '^DEP_FILES *= *[[^ @%:@]]' < "$mf" > /dev/null || continue
    6279   # Extract the definition of DEP_FILES from the Makefile without
    6280   # running `make'.
    6281   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
    6282   test -z "$DEPDIR" && continue
    6283   # When using ansi2knr, U may be empty or an underscore; expand it
    6284   U=`sed -n 's/^U = //p' < "$mf"`
    6285   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
    6286   # We invoke sed twice because it is the simplest approach to
    6287   # changing $(DEPDIR) to its actual value in the expansion.
    6288   for file in `sed -n '
    6289     /^DEP_FILES = .*\\\\$/ {
    6290       s/^DEP_FILES = //
    6291       :loop
    6292         s/\\\\$//
    6293         p
    6294         n
    6295         /\\\\$/ b loop
    6296       p
    6297     }
    6298     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
    6299        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
    6300     # Make sure the directory exists.
    6301     test -f "$dirpart/$file" && continue
    6302     fdir=`AS_DIRNAME(["$file"])`
    6303     AS_MKDIR_P([$dirpart/$fdir])
    6304     # echo "creating $dirpart/$file"
    6305     echo '# dummy' > "$dirpart/$file"
    6306   done
    6307 done
    6308 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
    6309 
    6310 
    6311 # AM_OUTPUT_DEPENDENCY_COMMANDS
    6312 # -----------------------------
    6313 # This macro should only be invoked once -- use via AC_REQUIRE.
    6314 #
    6315 # This code is only required when automatic dependency tracking
    6316 # is enabled.  FIXME.  This creates each `.P' file that we will
    6317 # need in order to bootstrap the dependency handling code.
    6318 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
    6319 [AC_CONFIG_COMMANDS([depfiles],
    6320      [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
    6321      [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
    6322 ])
    6323 
    6324 # Like AC_CONFIG_HEADER, but automatically create stamp file. -*- Autoconf -*-
    6325 
    6326 # Copyright (C) 1996, 1997, 2000, 2001, 2003 Free Software Foundation, Inc.
    6327 
    6328 # This program is free software; you can redistribute it and/or modify
    6329 # it under the terms of the GNU General Public License as published by
    6330 # the Free Software Foundation; either version 2, or (at your option)
    6331 # any later version.
    6332 
    6333 # This program is distributed in the hope that it will be useful,
    6334 # but WITHOUT ANY WARRANTY; without even the implied warranty of
    6335 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    6336 # GNU General Public License for more details.
    6337 
    6338 # You should have received a copy of the GNU General Public License
    6339 # along with this program; if not, write to the Free Software
    6340 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
    6341 # 02111-1307, USA.
    6342 
    6343 # serial 7
    6344 
    6345 # AM_CONFIG_HEADER is obsolete.  It has been replaced by AC_CONFIG_HEADERS.
    6346 AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
    6347 
    6348 # Do all the work for Automake.                            -*- Autoconf -*-
    6349 
    6350 # This macro actually does too much some checks are only needed if
    6351 # your package does certain things.  But this isn't really a big deal.
    6352 
    6353 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
    6354 # Free Software Foundation, Inc.
    6355 
    6356 # This program is free software; you can redistribute it and/or modify
    6357 # it under the terms of the GNU General Public License as published by
    6358 # the Free Software Foundation; either version 2, or (at your option)
    6359 # any later version.
    6360 
    6361 # This program is distributed in the hope that it will be useful,
    6362 # but WITHOUT ANY WARRANTY; without even the implied warranty of
    6363 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    6364 # GNU General Public License for more details.
    6365 
    6366 # You should have received a copy of the GNU General Public License
    6367 # along with this program; if not, write to the Free Software
    6368 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
    6369 # 02111-1307, USA.
    6370 
    6371 # serial 11
    6372 
    6373 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
    6374 # AM_INIT_AUTOMAKE([OPTIONS])
    6375 # -----------------------------------------------
    6376 # The call with PACKAGE and VERSION arguments is the old style
    6377 # call (pre autoconf-2.50), which is being phased out.  PACKAGE
    6378 # and VERSION should now be passed to AC_INIT and removed from
    6379 # the call to AM_INIT_AUTOMAKE.
    6380 # We support both call styles for the transition.  After
    6381 # the next Automake release, Autoconf can make the AC_INIT
    6382 # arguments mandatory, and then we can depend on a new Autoconf
    6383 # release and drop the old call support.
    6384 AC_DEFUN([AM_INIT_AUTOMAKE],
    6385 [AC_PREREQ([2.58])dnl
    6386 dnl Autoconf wants to disallow AM_ names.  We explicitly allow
    6387 dnl the ones we care about.
    6388 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
    6389 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
    6390 AC_REQUIRE([AC_PROG_INSTALL])dnl
    6391 # test to see if srcdir already configured
    6392 if test "`cd $srcdir && pwd`" != "`pwd`" &&
    6393    test -f $srcdir/config.status; then
    6394   AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
    6395 fi
    6396 
    6397 # test whether we have cygpath
    6398 if test -z "$CYGPATH_W"; then
    6399   if (cygpath --version) >/dev/null 2>/dev/null; then
    6400     CYGPATH_W='cygpath -w'
    6401   else
    6402     CYGPATH_W=echo
    6403   fi
    6404 fi
    6405 AC_SUBST([CYGPATH_W])
    6406 
    6407 # Define the identity of the package.
    6408 dnl Distinguish between old-style and new-style calls.
    6409 m4_ifval([$2],
    6410 [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
    6411  AC_SUBST([PACKAGE], [$1])dnl
    6412  AC_SUBST([VERSION], [$2])],
    6413 [_AM_SET_OPTIONS([$1])dnl
    6414  AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
    6415  AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
    6416 
    6417 _AM_IF_OPTION([no-define],,
    6418 [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
    6419  AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
    6420 
    6421 # Some tools Automake needs.
    6422 AC_REQUIRE([AM_SANITY_CHECK])dnl
    6423 AC_REQUIRE([AC_ARG_PROGRAM])dnl
    6424 AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
    6425 AM_MISSING_PROG(AUTOCONF, autoconf)
    6426 AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
    6427 AM_MISSING_PROG(AUTOHEADER, autoheader)
    6428 AM_MISSING_PROG(MAKEINFO, makeinfo)
    6429 AM_MISSING_PROG(AMTAR, tar)
    6430 AM_PROG_INSTALL_SH
    6431 AM_PROG_INSTALL_STRIP
    6432 AC_REQUIRE([AM_PROG_MKDIR_P])dnl
    6433 # We need awk for the "check" target.  The system "awk" is bad on
    6434 # some platforms.
    6435 AC_REQUIRE([AC_PROG_AWK])dnl
    6436 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
    6437 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
    6438 
    6439 _AM_IF_OPTION([no-dependencies],,
    6440 [AC_PROVIDE_IFELSE([AC_PROG_CC],
    6441                   [_AM_DEPENDENCIES(CC)],
    6442                   [define([AC_PROG_CC],
    6443                           defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
    6444 AC_PROVIDE_IFELSE([AC_PROG_CXX],
    6445                   [_AM_DEPENDENCIES(CXX)],
    6446                   [define([AC_PROG_CXX],
    6447                           defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
    6448 ])
    6449 ])
    6450 
    6451 
    6452 # When config.status generates a header, we must update the stamp-h file.
    6453 # This file resides in the same directory as the config header
    6454 # that is generated.  The stamp files are numbered to have different names.
    6455 
    6456 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
    6457 # loop where config.status creates the headers, so we can generate
    6458 # our stamp files there.
    6459 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
    6460 [# Compute $1's index in $config_headers.
    6461 _am_stamp_count=1
    6462 for _am_header in $config_headers :; do
    6463   case $_am_header in
    6464     $1 | $1:* )
    6465       break ;;
    6466     * )
    6467       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
    6468   esac
    6469 done
    6470 echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
    6471 
    6472 # AM_PROG_INSTALL_SH
    6473 # ------------------
    6474 # Define $install_sh.
    6475 
    6476 # Copyright (C) 2001, 2003 Free Software Foundation, Inc.
    6477 
    6478 # This program is free software; you can redistribute it and/or modify
    6479 # it under the terms of the GNU General Public License as published by
    6480 # the Free Software Foundation; either version 2, or (at your option)
    6481 # any later version.
    6482 
    6483 # This program is distributed in the hope that it will be useful,
    6484 # but WITHOUT ANY WARRANTY; without even the implied warranty of
    6485 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    6486 # GNU General Public License for more details.
    6487 
    6488 # You should have received a copy of the GNU General Public License
    6489 # along with this program; if not, write to the Free Software
    6490 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
    6491 # 02111-1307, USA.
    6492 
    6493 AC_DEFUN([AM_PROG_INSTALL_SH],
    6494 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
    6495 install_sh=${install_sh-"$am_aux_dir/install-sh"}
    6496 AC_SUBST(install_sh)])
    6497 
    6498 #                                                          -*- Autoconf -*-
    6499 # Copyright (C) 2003  Free Software Foundation, Inc.
    6500 
    6501 # This program is free software; you can redistribute it and/or modify
    6502 # it under the terms of the GNU General Public License as published by
    6503 # the Free Software Foundation; either version 2, or (at your option)
    6504 # any later version.
    6505 
    6506 # This program is distributed in the hope that it will be useful,
    6507 # but WITHOUT ANY WARRANTY; without even the implied warranty of
    6508 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    6509 # GNU General Public License for more details.
    6510 
    6511 # You should have received a copy of the GNU General Public License
    6512 # along with this program; if not, write to the Free Software
    6513 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
    6514 # 02111-1307, USA.
    6515 
    6516 # serial 1
    6517 
    6518 # Check whether the underlying file-system supports filenames
    6519 # with a leading dot.  For instance MS-DOS doesn't.
    6520 AC_DEFUN([AM_SET_LEADING_DOT],
    6521 [rm -rf .tst 2>/dev/null
    6522 mkdir .tst 2>/dev/null
    6523 if test -d .tst; then
    6524   am__leading_dot=.
    6525 else
    6526   am__leading_dot=_
    6527 fi
    6528 rmdir .tst 2>/dev/null
    6529 AC_SUBST([am__leading_dot])])
    6530 
    6531 # Check to see how 'make' treats includes.      -*- Autoconf -*-
    6532 
    6533 # Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
    6534 
    6535 # This program is free software; you can redistribute it and/or modify
    6536 # it under the terms of the GNU General Public License as published by
    6537 # the Free Software Foundation; either version 2, or (at your option)
    6538 # any later version.
    6539 
    6540 # This program is distributed in the hope that it will be useful,
    6541 # but WITHOUT ANY WARRANTY; without even the implied warranty of
    6542 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    6543 # GNU General Public License for more details.
    6544 
    6545 # You should have received a copy of the GNU General Public License
    6546 # along with this program; if not, write to the Free Software
    6547 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
    6548 # 02111-1307, USA.
    6549 
    6550 # serial 2
    6551 
    6552 # AM_MAKE_INCLUDE()
    6553 # -----------------
    6554 # Check to see how make treats includes.
    6555 AC_DEFUN([AM_MAKE_INCLUDE],
    6556 [am_make=${MAKE-make}
    6557 cat > confinc << 'END'
    6558 am__doit:
    6559         @echo done
    6560 .PHONY: am__doit
    6561 END
    6562 # If we don't find an include directive, just comment out the code.
    6563 AC_MSG_CHECKING([for style of include used by $am_make])
    6564 am__include="#"
    6565 am__quote=
    6566 _am_result=none
    6567 # First try GNU make style include.
    6568 echo "include confinc" > confmf
    6569 # We grep out `Entering directory' and `Leaving directory'
    6570 # messages which can occur if `w' ends up in MAKEFLAGS.
    6571 # In particular we don't look at `^make:' because GNU make might
    6572 # be invoked under some other name (usually "gmake"), in which
    6573 # case it prints its new name instead of `make'.
    6574 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
    6575    am__include=include
    6576    am__quote=
    6577    _am_result=GNU
    6578 fi
    6579 # Now try BSD make style include.
    6580 if test "$am__include" = "#"; then
    6581    echo '.include "confinc"' > confmf
    6582    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
    6583       am__include=.include
    6584       am__quote="\""
    6585       _am_result=BSD
    6586    fi
    6587 fi
    6588 AC_SUBST([am__include])
    6589 AC_SUBST([am__quote])
    6590 AC_MSG_RESULT([$_am_result])
    6591 rm -f confinc confmf
    6592 ])
    6593 
    6594 #  -*- Autoconf -*-
    6595 
    6596 
    6597 # Copyright (C) 1997, 1999, 2000, 2001, 2003 Free Software Foundation, Inc.
    6598 
    6599 # This program is free software; you can redistribute it and/or modify
    6600 # it under the terms of the GNU General Public License as published by
    6601 # the Free Software Foundation; either version 2, or (at your option)
    6602 # any later version.
    6603 
    6604 # This program is distributed in the hope that it will be useful,
    6605 # but WITHOUT ANY WARRANTY; without even the implied warranty of
    6606 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    6607 # GNU General Public License for more details.
    6608 
    6609 # You should have received a copy of the GNU General Public License
    6610 # along with this program; if not, write to the Free Software
    6611 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
    6612 # 02111-1307, USA.
    6613 
    6614 # serial 3
    6615 
    6616 # AM_MISSING_PROG(NAME, PROGRAM)
    6617 # ------------------------------
    6618 AC_DEFUN([AM_MISSING_PROG],
    6619 [AC_REQUIRE([AM_MISSING_HAS_RUN])
    6620 $1=${$1-"${am_missing_run}$2"}
    6621 AC_SUBST($1)])
    6622 
    6623 
    6624 # AM_MISSING_HAS_RUN
    6625 # ------------------
    6626 # Define MISSING if not defined so far and test if it supports --run.
    6627 # If it does, set am_missing_run to use it, otherwise, to nothing.
    6628 AC_DEFUN([AM_MISSING_HAS_RUN],
    6629 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
    6630 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
    6631 # Use eval to expand $SHELL
    6632 if eval "$MISSING --run true"; then
    6633   am_missing_run="$MISSING --run "
    6634 else
    6635   am_missing_run=
    6636   AC_MSG_WARN([`missing' script is too old or missing])
    6637 fi
    6638 ])
    6639 
    6640 # AM_PROG_MKDIR_P
    6641 # ---------------
    6642 # Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
    6643 
    6644 # Copyright (C) 2003, 2004 Free Software Foundation, Inc.
    6645 
    6646 # This program is free software; you can redistribute it and/or modify
    6647 # it under the terms of the GNU General Public License as published by
    6648 # the Free Software Foundation; either version 2, or (at your option)
    6649 # any later version.
    6650 
    6651 # This program is distributed in the hope that it will be useful,
    6652 # but WITHOUT ANY WARRANTY; without even the implied warranty of
    6653 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    6654 # GNU General Public License for more details.
    6655 
    6656 # You should have received a copy of the GNU General Public License
    6657 # along with this program; if not, write to the Free Software
    6658 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
    6659 # 02111-1307, USA.
    6660 
    6661 # Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
    6662 # created by `make install' are always world readable, even if the
    6663 # installer happens to have an overly restrictive umask (e.g. 077).
    6664 # This was a mistake.  There are at least two reasons why we must not
    6665 # use `-m 0755':
    6666 #   - it causes special bits like SGID to be ignored,
    6667 #   - it may be too restrictive (some setups expect 775 directories).
    6668 #
    6669 # Do not use -m 0755 and let people choose whatever they expect by
    6670 # setting umask.
    6671 #
    6672 # We cannot accept any implementation of `mkdir' that recognizes `-p'.
    6673 # Some implementations (such as Solaris 8's) are not thread-safe: if a
    6674 # parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
    6675 # concurrently, both version can detect that a/ is missing, but only
    6676 # one can create it and the other will error out.  Consequently we
    6677 # restrict ourselves to GNU make (using the --version option ensures
    6678 # this.)
    6679 AC_DEFUN([AM_PROG_MKDIR_P],
    6680 [if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
    6681   # Keeping the `.' argument allows $(mkdir_p) to be used without
    6682   # argument.  Indeed, we sometimes output rules like
    6683   #   $(mkdir_p) $(somedir)
    6684   # where $(somedir) is conditionally defined.
    6685   # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
    6686   # expensive solution, as it forces Make to start a sub-shell.)
    6687   mkdir_p='mkdir -p -- .'
    6688 else
    6689   # On NextStep and OpenStep, the `mkdir' command does not
    6690   # recognize any option.  It will interpret all options as
    6691   # directories to create, and then abort because `.' already
    6692   # exists.
    6693   for d in ./-p ./--version;
    6694   do
    6695     test -d $d && rmdir $d
    6696   done
    6697   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
    6698   if test -f "$ac_aux_dir/mkinstalldirs"; then
    6699     mkdir_p='$(mkinstalldirs)'
    6700   else
    6701     mkdir_p='$(install_sh) -d'
    6702   fi
    6703 fi
    6704 AC_SUBST([mkdir_p])])
    6705 
    6706 # Helper functions for option handling.                    -*- Autoconf -*-
    6707 
    6708 # Copyright (C) 2001, 2002, 2003  Free Software Foundation, Inc.
    6709 
    6710 # This program is free software; you can redistribute it and/or modify
    6711 # it under the terms of the GNU General Public License as published by
    6712 # the Free Software Foundation; either version 2, or (at your option)
    6713 # any later version.
    6714 
    6715 # This program is distributed in the hope that it will be useful,
    6716 # but WITHOUT ANY WARRANTY; without even the implied warranty of
    6717 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    6718 # GNU General Public License for more details.
    6719 
    6720 # You should have received a copy of the GNU General Public License
    6721 # along with this program; if not, write to the Free Software
    6722 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
    6723 # 02111-1307, USA.
    6724 
    6725 # serial 2
    6726 
    6727 # _AM_MANGLE_OPTION(NAME)
    6728 # -----------------------
    6729 AC_DEFUN([_AM_MANGLE_OPTION],
    6730 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
    6731 
    6732 # _AM_SET_OPTION(NAME)
    6733 # ------------------------------
    6734 # Set option NAME.  Presently that only means defining a flag for this option.
    6735 AC_DEFUN([_AM_SET_OPTION],
    6736 [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
    6737 
    6738 # _AM_SET_OPTIONS(OPTIONS)
    6739 # ----------------------------------
    6740 # OPTIONS is a space-separated list of Automake options.
    6741 AC_DEFUN([_AM_SET_OPTIONS],
    6742 [AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
    6743 
    6744 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
    6745 # -------------------------------------------
    6746 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
    6747 AC_DEFUN([_AM_IF_OPTION],
    6748 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
    6749 
    6750 #
    6751 # Check to make sure that the build environment is sane.
    6752 #
    6753 
    6754 # Copyright (C) 1996, 1997, 2000, 2001, 2003 Free Software Foundation, Inc.
    6755 
    6756 # This program is free software; you can redistribute it and/or modify
    6757 # it under the terms of the GNU General Public License as published by
    6758 # the Free Software Foundation; either version 2, or (at your option)
    6759 # any later version.
    6760 
    6761 # This program is distributed in the hope that it will be useful,
    6762 # but WITHOUT ANY WARRANTY; without even the implied warranty of
    6763 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    6764 # GNU General Public License for more details.
    6765 
    6766 # You should have received a copy of the GNU General Public License
    6767 # along with this program; if not, write to the Free Software
    6768 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
    6769 # 02111-1307, USA.
    6770 
    6771 # serial 3
    6772 
    6773 # AM_SANITY_CHECK
    6774 # ---------------
    6775 AC_DEFUN([AM_SANITY_CHECK],
    6776 [AC_MSG_CHECKING([whether build environment is sane])
    6777 # Just in case
    6778 sleep 1
    6779 echo timestamp > conftest.file
    6780 # Do `set' in a subshell so we don't clobber the current shell's
    6781 # arguments.  Must try -L first in case configure is actually a
    6782 # symlink; some systems play weird games with the mod time of symlinks
    6783 # (eg FreeBSD returns the mod time of the symlink's containing
    6784 # directory).
    6785 if (
    6786    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
    6787    if test "$[*]" = "X"; then
    6788       # -L didn't work.
    6789       set X `ls -t $srcdir/configure conftest.file`
    6790    fi
    6791    rm -f conftest.file
    6792    if test "$[*]" != "X $srcdir/configure conftest.file" \
    6793       && test "$[*]" != "X conftest.file $srcdir/configure"; then
    6794 
    6795       # If neither matched, then we have a broken ls.  This can happen
    6796       # if, for instance, CONFIG_SHELL is bash and it inherits a
    6797       # broken ls alias from the environment.  This has actually
    6798       # happened.  Such a system could not be considered "sane".
    6799       AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
    6800 alias in your environment])
    6801    fi
    6802 
    6803    test "$[2]" = conftest.file
    6804    )
    6805 then
    6806    # Ok.
    6807    :
    6808 else
    6809    AC_MSG_ERROR([newly created file is older than distributed files!
    6810 Check your system clock])
    6811 fi
    6812 AC_MSG_RESULT(yes)])
    6813 
    6814 # AM_PROG_INSTALL_STRIP
    6815 
    6816 # Copyright (C) 2001, 2003 Free Software Foundation, Inc.
    6817 
    6818 # This program is free software; you can redistribute it and/or modify
    6819 # it under the terms of the GNU General Public License as published by
    6820 # the Free Software Foundation; either version 2, or (at your option)
    6821 # any later version.
    6822 
    6823 # This program is distributed in the hope that it will be useful,
    6824 # but WITHOUT ANY WARRANTY; without even the implied warranty of
    6825 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    6826 # GNU General Public License for more details.
    6827 
    6828 # You should have received a copy of the GNU General Public License
    6829 # along with this program; if not, write to the Free Software
    6830 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
    6831 # 02111-1307, USA.
    6832 
    6833 # One issue with vendor `install' (even GNU) is that you can't
    6834 # specify the program used to strip binaries.  This is especially
    6835 # annoying in cross-compiling environments, where the build's strip
    6836 # is unlikely to handle the host's binaries.
    6837 # Fortunately install-sh will honor a STRIPPROG variable, so we
    6838 # always use install-sh in `make install-strip', and initialize
    6839 # STRIPPROG with the value of the STRIP variable (set by the user).
    6840 AC_DEFUN([AM_PROG_INSTALL_STRIP],
    6841 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
    6842 # Installed binaries are usually stripped using `strip' when the user
    6843 # run `make install-strip'.  However `strip' might not be the right
    6844 # tool to use in cross-compilation environments, therefore Automake
    6845 # will honor the `STRIP' environment variable to overrule this program.
    6846 dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
    6847 if test "$cross_compiling" != no; then
    6848   AC_CHECK_TOOL([STRIP], [strip], :)
    6849 fi
    6850 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
    6851 AC_SUBST([INSTALL_STRIP_PROGRAM])])
    6852 
  • trunk/psModules/configure

    r2125 r2132  
    11#! /bin/sh
    22# Guess values for system-dependent variables and create Makefiles.
    3 # Generated by GNU Autoconf 2.59.
     3# Generated by GNU Autoconf 2.57.
    44#
    5 # Copyright (C) 2003 Free Software Foundation, Inc.
     5# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
     6# Free Software Foundation, Inc.
    67# This configure script is free software; the Free Software Foundation
    78# gives unlimited permission to copy, distribute and modify it.
     
    2021  set -o posix
    2122fi
    22 DUALCASE=1; export DUALCASE # for MKS sh
    2323
    2424# Support unset when possible.
    25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
     25if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
    2626  as_unset=unset
    2727else
     
    4242  LC_TELEPHONE LC_TIME
    4343do
    44   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
     44  if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
    4545    eval $as_var=C; export $as_var
    4646  else
     
    219219  as_mkdir_p=:
    220220else
    221   test -d ./-p && rmdir ./-p
    222221  as_mkdir_p=false
    223222fi
     
    226225
    227226# Sed expression to map a string onto a valid CPP name.
    228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
     227as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
    229228
    230229# Sed expression to map a string onto a valid variable name.
    231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
     230as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
    232231
    233232
     
    241240$as_unset CDPATH
    242241
     242
     243# Find the correct PATH separator.  Usually this is `:', but
     244# DJGPP uses `;' like DOS.
     245if test "X${PATH_SEPARATOR+set}" != Xset; then
     246  UNAME=${UNAME-`uname 2>/dev/null`}
     247  case X$UNAME in
     248    *-DOS) lt_cv_sys_path_separator=';' ;;
     249    *)     lt_cv_sys_path_separator=':' ;;
     250  esac
     251  PATH_SEPARATOR=$lt_cv_sys_path_separator
     252fi
    243253
    244254
     
    260270  # Avoid inline document here, it may be left over
    261271  :
    262 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
     272elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
    263273  # Yippee, $echo works!
    264274  :
     
    272282  shift
    273283  cat <<EOF
    274 $*
     284
    275285EOF
    276286  exit 0
     
    306316  # So, first we look for a working echo in the user's PATH.
    307317
    308   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
     318  IFS="${IFS=   }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
    309319  for dir in $PATH /usr/ucb; do
    310     IFS="$lt_save_ifs"
    311320    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
    312321       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
     
    317326    fi
    318327  done
    319   IFS="$lt_save_ifs"
     328  IFS="$save_ifs"
    320329
    321330  if test "X$echo" = Xecho; then
     
    391400
    392401
    393 
    394 tagnames=${tagnames+${tagnames},}CXX
    395 
    396 tagnames=${tagnames+${tagnames},}F77
    397 
    398402# Name of the host.
    399403# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
     
    464468#endif"
    465469
    466 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL GSL_CONFIG LIBOBJS LTLIBOBJS'
     470ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE build build_cpu build_vendor build_os host host_cpu host_vendor host_os LN_S ECHO RANLIB ac_ct_RANLIB CPP EGREP LIBTOOL GSL_CONFIG LIBOBJS LTLIBOBJS'
    467471ac_subst_files=''
    468472
     
    823827# Be sure to have absolute paths.
    824828for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
    825               localstatedir libdir includedir oldincludedir infodir mandir
     829              localstatedir libdir includedir oldincludedir infodir mandir
    826830do
    827831  eval ac_val=$`echo $ac_var`
     
    863867  ac_confdir=`(dirname "$0") 2>/dev/null ||
    864868$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    865         X"$0" : 'X\(//\)[^/]' \| \
    866         X"$0" : 'X\(//\)$' \| \
    867         X"$0" : 'X\(/\)' \| \
    868         .     : '\(.\)' 2>/dev/null ||
     869        X"$0" : 'X\(//\)[^/]' \| \
     870        X"$0" : 'X\(//\)$' \| \
     871        X"$0" : 'X\(/\)' \| \
     872        .     : '\(.\)' 2>/dev/null ||
    869873echo X"$0" |
    870874    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
     
    925929ac_cv_env_CPP_set=${CPP+set}
    926930ac_cv_env_CPP_value=$CPP
    927 ac_env_CXX_set=${CXX+set}
    928 ac_env_CXX_value=$CXX
    929 ac_cv_env_CXX_set=${CXX+set}
    930 ac_cv_env_CXX_value=$CXX
    931 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
    932 ac_env_CXXFLAGS_value=$CXXFLAGS
    933 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
    934 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
    935 ac_env_CXXCPP_set=${CXXCPP+set}
    936 ac_env_CXXCPP_value=$CXXCPP
    937 ac_cv_env_CXXCPP_set=${CXXCPP+set}
    938 ac_cv_env_CXXCPP_value=$CXXCPP
    939 ac_env_F77_set=${F77+set}
    940 ac_env_F77_value=$F77
    941 ac_cv_env_F77_set=${F77+set}
    942 ac_cv_env_F77_value=$F77
    943 ac_env_FFLAGS_set=${FFLAGS+set}
    944 ac_env_FFLAGS_value=$FFLAGS
    945 ac_cv_env_FFLAGS_set=${FFLAGS+set}
    946 ac_cv_env_FFLAGS_value=$FFLAGS
    947931
    948932#
     
    978962Installation directories:
    979963  --prefix=PREFIX         install architecture-independent files in PREFIX
    980                           [$ac_default_prefix]
     964                          [$ac_default_prefix]
    981965  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
    982                           [PREFIX]
     966                          [PREFIX]
    983967
    984968By default, \`make install' will install all the files in
     
    10241008  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
    10251009  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
    1026   --disable-dependency-tracking  speeds up one-time build
    1027   --enable-dependency-tracking   do not reject slow dependency extractors
    1028   --enable-shared[=PKGS]
    1029                           build shared libraries [default=yes]
    1030   --enable-static[=PKGS]
    1031                           build static libraries [default=yes]
    1032   --enable-fast-install[=PKGS]
    1033                           optimize for fast installation [default=yes]
     1010  --disable-dependency-tracking Speeds up one-time builds
     1011  --enable-dependency-tracking  Do not reject slow dependency extractors
     1012  --enable-shared=PKGS  build shared libraries default=yes
     1013  --enable-static=PKGS  build static libraries default=yes
     1014  --enable-fast-install=PKGS  optimize for fast installation default=yes
    10341015  --disable-libtool-lock  avoid locking (might break parallel builds)
    10351016
     
    10371018  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
    10381019  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
    1039   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
    1040   --with-pic              try to use only PIC/non-PIC objects [default=use
    1041                           both]
    1042   --with-tags[=TAGS]
    1043                           include additional configurations [automatic]
     1020  --with-gnu-ld           assume the C compiler uses GNU ld default=no
     1021  --with-pic              try to use only PIC/non-PIC objects default=use both
    10441022  --with-psLib=DIR        Specify location of psLib files
    10451023  --with-sla=DIR          Specify location of SLA.
     
    10561034              headers in a nonstandard directory <include dir>
    10571035  CPP         C preprocessor
    1058   CXX         C++ compiler command
    1059   CXXFLAGS    C++ compiler flags
    1060   CXXCPP      C++ preprocessor
    1061   F77         Fortran 77 compiler command
    1062   FFLAGS      Fortran 77 compiler flags
    10631036
    10641037Use these variables to override the choices made by `configure' or to help
     
    10981071    ac_top_srcdir=$ac_top_builddir$srcdir ;;
    10991072esac
    1100 
    1101 # Do not use `cd foo && pwd` to compute absolute paths, because
    1102 # the directories may not exist.
    1103 case `pwd` in
    1104 .) ac_abs_builddir="$ac_dir";;
    1105 *)
    1106   case "$ac_dir" in
    1107   .) ac_abs_builddir=`pwd`;;
    1108   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
    1109   *) ac_abs_builddir=`pwd`/"$ac_dir";;
    1110   esac;;
    1111 esac
    1112 case $ac_abs_builddir in
    1113 .) ac_abs_top_builddir=${ac_top_builddir}.;;
    1114 *)
    1115   case ${ac_top_builddir}. in
    1116   .) ac_abs_top_builddir=$ac_abs_builddir;;
    1117   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
    1118   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
    1119   esac;;
    1120 esac
    1121 case $ac_abs_builddir in
    1122 .) ac_abs_srcdir=$ac_srcdir;;
    1123 *)
    1124   case $ac_srcdir in
    1125   .) ac_abs_srcdir=$ac_abs_builddir;;
    1126   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
    1127   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
    1128   esac;;
    1129 esac
    1130 case $ac_abs_builddir in
    1131 .) ac_abs_top_srcdir=$ac_top_srcdir;;
    1132 *)
    1133   case $ac_top_srcdir in
    1134   .) ac_abs_top_srcdir=$ac_abs_builddir;;
    1135   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
    1136   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
    1137   esac;;
    1138 esac
     1073# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
     1074# absolute.
     1075ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
     1076ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
     1077ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
     1078ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
    11391079
    11401080    cd $ac_dir
     
    11471087      $SHELL $ac_srcdir/configure  --help=recursive
    11481088    elif test -f $ac_srcdir/configure.ac ||
    1149            test -f $ac_srcdir/configure.in; then
     1089           test -f $ac_srcdir/configure.in; then
    11501090      echo
    11511091      $ac_configure --help
     
    11611101  cat <<\_ACEOF
    11621102
    1163 Copyright (C) 2003 Free Software Foundation, Inc.
     1103Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
     1104Free Software Foundation, Inc.
    11641105This configure script is free software; the Free Software Foundation
    11651106gives unlimited permission to copy, distribute and modify it.
     
    11731114
    11741115It was created by $as_me, which was
    1175 generated by GNU Autoconf 2.59.  Invocation command line was
     1116generated by GNU Autoconf 2.57.  Invocation command line was
    11761117
    11771118  $ $0 $@
     
    12501191      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
    12511192      if test $ac_must_keep_next = true; then
    1252         ac_must_keep_next=false # Got value, back to normal.
     1193        ac_must_keep_next=false # Got value, back to normal.
    12531194      else
    1254         case $ac_arg in
    1255           *=* | --config-cache | -C | -disable-* | --disable-* \
    1256           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
    1257           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
    1258           | -with-* | --with-* | -without-* | --without-* | --x)
    1259             case "$ac_configure_args0 " in
    1260               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
    1261             esac
    1262             ;;
    1263           -* ) ac_must_keep_next=true ;;
    1264         esac
     1195        case $ac_arg in
     1196          *=* | --config-cache | -C | -disable-* | --disable-* \
     1197          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
     1198          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
     1199          | -with-* | --with-* | -without-* | --without-* | --x)
     1200            case "$ac_configure_args0 " in
     1201              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
     1202            esac
     1203            ;;
     1204          -* ) ac_must_keep_next=true ;;
     1205        esac
    12651206      fi
    12661207      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
     
    12961237    *ac_space=\ *)
    12971238      sed -n \
    1298         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
    1299           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
     1239        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
     1240          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
    13001241      ;;
    13011242    *)
    13021243      sed -n \
    1303         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
     1244        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
    13041245      ;;
    13051246    esac;
     
    13301271      do
    13311272        eval ac_val=$`echo $ac_var`
    1332         echo "$ac_var='"'"'$ac_val'"'"'"
     1273        echo "$ac_var='"'"'$ac_val'"'"'"
    13331274      done | sort
    13341275      echo
     
    13491290    echo "$as_me: exit $exit_status"
    13501291  } >&5
    1351   rm -f core *.core &&
     1292  rm -f core core.* *.core &&
    13521293  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
    13531294    exit $exit_status
     
    14291370ac_cache_corrupted=false
    14301371for ac_var in `(set) 2>&1 |
    1431                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
     1372               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
    14321373  eval ac_old_set=\$ac_cv_env_${ac_var}_set
    14331374  eval ac_new_set=\$ac_env_${ac_var}_set
     
    14461387    *)
    14471388      if test "x$ac_old_val" != "x$ac_new_val"; then
    1448         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
     1389        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
    14491390echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
    1450         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
     1391        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
    14511392echo "$as_me:   former value:  $ac_old_val" >&2;}
    1452         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
     1393        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
    14531394echo "$as_me:   current value: $ac_new_val" >&2;}
    1454         ac_cache_corrupted=:
     1395        ac_cache_corrupted=:
    14551396      fi;;
    14561397  esac
     
    15011442
    15021443
     1444# Add the stamp file to the list of files AC keeps track of,
     1445# along with our hook.
    15031446          ac_config_headers="$ac_config_headers src/config.h"
    15041447
    1505 am__api_version="1.8"
     1448
     1449
     1450am__api_version="1.6"
    15061451ac_aux_dir=
    15071452for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
     
    15401485# AFS /usr/afsws/bin/install, which mishandles nonexistent args
    15411486# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
    1542 # OS/2's system install, which has a completely different semantic
    15431487# ./install, which can be erroneously created by make from ./install.sh.
    15441488echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
     
    15571501  ./ | .// | /cC/* | \
    15581502  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
    1559   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
    15601503  /usr/ucb/* ) ;;
    15611504  *)
     
    15651508    for ac_prog in ginstall scoinst install; do
    15661509      for ac_exec_ext in '' $ac_executable_extensions; do
    1567         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
    1568           if test $ac_prog = install &&
    1569             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
    1570             # AIX install.  It has an incompatible calling convention.
    1571             :
    1572           elif test $ac_prog = install &&
    1573             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
    1574             # program-specific install script used by HP pwplus--don't use.
    1575             :
    1576           else
    1577             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
    1578             break 3
    1579           fi
    1580         fi
     1510        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
     1511          if test $ac_prog = install &&
     1512            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
     1513            # AIX install.  It has an incompatible calling convention.
     1514            :
     1515          elif test $ac_prog = install &&
     1516            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
     1517            # program-specific install script used by HP pwplus--don't use.
     1518            :
     1519          else
     1520            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
     1521            break 3
     1522          fi
     1523        fi
    15811524      done
    15821525    done
     
    16661609rm conftest.sed
    16671610
     1611
    16681612# expand $ac_aux_dir to an absolute path
    16691613am_aux_dir=`cd $ac_aux_dir && pwd`
     
    16771621  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
    16781622echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
    1679 fi
    1680 
    1681 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
    1682   # Keeping the `.' argument allows $(mkdir_p) to be used without
    1683   # argument.  Indeed, we sometimes output rules like
    1684   #   $(mkdir_p) $(somedir)
    1685   # where $(somedir) is conditionally defined.
    1686   # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
    1687   # expensive solution, as it forces Make to start a sub-shell.)
    1688   mkdir_p='mkdir -p -- .'
    1689 else
    1690   # On NextStep and OpenStep, the `mkdir' command does not
    1691   # recognize any option.  It will interpret all options as
    1692   # directories to create, and then abort because `.' already
    1693   # exists.
    1694   for d in ./-p ./--version;
    1695   do
    1696     test -d $d && rmdir $d
    1697   done
    1698   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
    1699   if test -f "$ac_aux_dir/mkinstalldirs"; then
    1700     mkdir_p='$(mkinstalldirs)'
    1701   else
    1702     mkdir_p='$(install_sh) -d'
    1703   fi
    17041623fi
    17051624
     
    17461665echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
    17471666echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
    1748 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
     1667set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
    17491668if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
    17501669  echo $ECHO_N "(cached) $ECHO_C" >&6
     
    17731692fi
    17741693
    1775 rm -rf .tst 2>/dev/null
    1776 mkdir .tst 2>/dev/null
    1777 if test -d .tst; then
    1778   am__leading_dot=.
    1779 else
    1780   am__leading_dot=_
    1781 fi
    1782 rmdir .tst 2>/dev/null
    1783 
    1784 # test to see if srcdir already configured
     1694 # test to see if srcdir already configured
    17851695if test "`cd $srcdir && pwd`" != "`pwd`" &&
    17861696   test -f $srcdir/config.status; then
     
    17891699   { (exit 1); exit 1; }; }
    17901700fi
    1791 
    1792 # test whether we have cygpath
    1793 if test -z "$CYGPATH_W"; then
    1794   if (cygpath --version) >/dev/null 2>/dev/null; then
    1795     CYGPATH_W='cygpath -w'
    1796   else
    1797     CYGPATH_W=echo
    1798   fi
    1799 fi
    1800 
    18011701
    18021702# Define the identity of the package.
     
    22712171
    22722172cat >conftest.$ac_ext <<_ACEOF
     2173#line $LINENO "configure"
    22732174/* confdefs.h.  */
    22742175_ACEOF
     
    22902191# It will help us diagnose broken compilers, and finding out an intuition
    22912192# of exeext.
    2292 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
    2293 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
     2193echo "$as_me:$LINENO: checking for C compiler default output" >&5
     2194echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
    22942195ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
    22952196if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
     
    23112212  case $ac_file in
    23122213    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
    2313         ;;
     2214        ;;
    23142215    conftest.$ac_ext )
    2315         # This is the source file.
    2316         ;;
     2216        # This is the source file.
     2217        ;;
    23172218    [ab].out )
    2318         # We found the default executable, but exeext='' is most
    2319         # certainly right.
    2320         break;;
     2219        # We found the default executable, but exeext='' is most
     2220        # certainly right.
     2221        break;;
    23212222    *.* )
    2322         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
    2323         # FIXME: I believe we export ac_cv_exeext for Libtool,
    2324         # but it would be cool to find out if it's true.  Does anybody
    2325         # maintain Libtool? --akim.
    2326         export ac_cv_exeext
    2327         break;;
     2223        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
     2224        # FIXME: I believe we export ac_cv_exeext for Libtool,
     2225        # but it would be cool to find out if it's true.  Does anybody
     2226        # maintain Libtool? --akim.
     2227        export ac_cv_exeext
     2228        break;;
    23282229    * )
    2329         break;;
     2230        break;;
    23302231  esac
    23312232done
     
    24012302    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
    24022303    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
    2403           export ac_cv_exeext
    2404           break;;
     2304          export ac_cv_exeext
     2305          break;;
    24052306    * ) break;;
    24062307  esac
     
    24272328else
    24282329  cat >conftest.$ac_ext <<_ACEOF
     2330#line $LINENO "configure"
    24292331/* confdefs.h.  */
    24302332_ACEOF
     
    24772379else
    24782380  cat >conftest.$ac_ext <<_ACEOF
     2381#line $LINENO "configure"
    24792382/* confdefs.h.  */
    24802383_ACEOF
     
    24962399rm -f conftest.$ac_objext
    24972400if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    2498   (eval $ac_compile) 2>conftest.er1
     2401  (eval $ac_compile) 2>&5
    24992402  ac_status=$?
    2500   grep -v '^ *+' conftest.er1 >conftest.err
    2501   rm -f conftest.er1
    2502   cat conftest.err >&5
    25032403  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    25042404  (exit $ac_status); } &&
    2505          { ac_try='test -z "$ac_c_werror_flag"
    2506                          || test ! -s conftest.err'
    2507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2508   (eval $ac_try) 2>&5
    2509   ac_status=$?
    2510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2511   (exit $ac_status); }; } &&
    2512          { ac_try='test -s conftest.$ac_objext'
     2405         { ac_try='test -s conftest.$ac_objext'
    25132406  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    25142407  (eval $ac_try) 2>&5
     
    25232416ac_compiler_gnu=no
    25242417fi
    2525 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     2418rm -f conftest.$ac_objext conftest.$ac_ext
    25262419ac_cv_c_compiler_gnu=$ac_compiler_gnu
    25272420
     
    25392432else
    25402433  cat >conftest.$ac_ext <<_ACEOF
     2434#line $LINENO "configure"
    25412435/* confdefs.h.  */
    25422436_ACEOF
     
    25552449rm -f conftest.$ac_objext
    25562450if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    2557   (eval $ac_compile) 2>conftest.er1
     2451  (eval $ac_compile) 2>&5
    25582452  ac_status=$?
    2559   grep -v '^ *+' conftest.er1 >conftest.err
    2560   rm -f conftest.er1
    2561   cat conftest.err >&5
    25622453  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    25632454  (exit $ac_status); } &&
    2564          { ac_try='test -z "$ac_c_werror_flag"
    2565                          || test ! -s conftest.err'
    2566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2567   (eval $ac_try) 2>&5
    2568   ac_status=$?
    2569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2570   (exit $ac_status); }; } &&
    2571          { ac_try='test -s conftest.$ac_objext'
     2455         { ac_try='test -s conftest.$ac_objext'
    25722456  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    25732457  (eval $ac_try) 2>&5
     
    25822466ac_cv_prog_cc_g=no
    25832467fi
    2584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     2468rm -f conftest.$ac_objext conftest.$ac_ext
    25852469fi
    25862470echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
     
    26092493ac_save_CC=$CC
    26102494cat >conftest.$ac_ext <<_ACEOF
     2495#line $LINENO "configure"
    26112496/* confdefs.h.  */
    26122497_ACEOF
     
    26362521  return s;
    26372522}
    2638 
    2639 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
    2640    function prototypes and stuff, but not '\xHH' hex character constants.
    2641    These don't provoke an error unfortunately, instead are silently treated
    2642    as 'x'.  The following induces an error, until -std1 is added to get
    2643    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
    2644    array size at least.  It's necessary to write '\x00'==0 to get something
    2645    that's true only with -std1.  */
    2646 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
    2647 
    26482523int test (int i, double x);
    26492524struct s1 {int (*f) (int a);};
     
    26722547  rm -f conftest.$ac_objext
    26732548if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    2674   (eval $ac_compile) 2>conftest.er1
     2549  (eval $ac_compile) 2>&5
    26752550  ac_status=$?
    2676   grep -v '^ *+' conftest.er1 >conftest.err
    2677   rm -f conftest.er1
    2678   cat conftest.err >&5
    26792551  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    26802552  (exit $ac_status); } &&
    2681          { ac_try='test -z "$ac_c_werror_flag"
    2682                          || test ! -s conftest.err'
    2683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2684   (eval $ac_try) 2>&5
    2685   ac_status=$?
    2686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2687   (exit $ac_status); }; } &&
    2688          { ac_try='test -s conftest.$ac_objext'
     2553         { ac_try='test -s conftest.$ac_objext'
    26892554  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    26902555  (eval $ac_try) 2>&5
     
    26992564
    27002565fi
    2701 rm -f conftest.err conftest.$ac_objext
     2566rm -f conftest.$ac_objext
    27022567done
    27032568rm -f conftest.$ac_ext conftest.$ac_objext
     
    27272592rm -f conftest.$ac_objext
    27282593if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    2729   (eval $ac_compile) 2>conftest.er1
     2594  (eval $ac_compile) 2>&5
    27302595  ac_status=$?
    2731   grep -v '^ *+' conftest.er1 >conftest.err
    2732   rm -f conftest.er1
    2733   cat conftest.err >&5
    27342596  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    27352597  (exit $ac_status); } &&
    2736          { ac_try='test -z "$ac_c_werror_flag"
    2737                          || test ! -s conftest.err'
    2738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2739   (eval $ac_try) 2>&5
    2740   ac_status=$?
    2741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2742   (exit $ac_status); }; } &&
    2743          { ac_try='test -s conftest.$ac_objext'
     2598         { ac_try='test -s conftest.$ac_objext'
    27442599  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    27452600  (eval $ac_try) 2>&5
     
    27482603  (exit $ac_status); }; }; then
    27492604  for ac_declaration in \
    2750    '' \
     2605   ''\
     2606   '#include <stdlib.h>' \
    27512607   'extern "C" void std::exit (int) throw (); using std::exit;' \
    27522608   'extern "C" void std::exit (int); using std::exit;' \
     
    27562612do
    27572613  cat >conftest.$ac_ext <<_ACEOF
     2614#line $LINENO "configure"
    27582615/* confdefs.h.  */
    27592616_ACEOF
     
    27612618cat >>conftest.$ac_ext <<_ACEOF
    27622619/* end confdefs.h.  */
     2620#include <stdlib.h>
    27632621$ac_declaration
    2764 #include <stdlib.h>
    27652622int
    27662623main ()
     
    27732630rm -f conftest.$ac_objext
    27742631if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    2775   (eval $ac_compile) 2>conftest.er1
     2632  (eval $ac_compile) 2>&5
    27762633  ac_status=$?
    2777   grep -v '^ *+' conftest.er1 >conftest.err
    2778   rm -f conftest.er1
    2779   cat conftest.err >&5
    27802634  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    27812635  (exit $ac_status); } &&
    2782          { ac_try='test -z "$ac_c_werror_flag"
    2783                          || test ! -s conftest.err'
    2784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2785   (eval $ac_try) 2>&5
    2786   ac_status=$?
    2787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2788   (exit $ac_status); }; } &&
    2789          { ac_try='test -s conftest.$ac_objext'
     2636         { ac_try='test -s conftest.$ac_objext'
    27902637  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    27912638  (eval $ac_try) 2>&5
     
    28002647continue
    28012648fi
    2802 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     2649rm -f conftest.$ac_objext conftest.$ac_ext
    28032650  cat >conftest.$ac_ext <<_ACEOF
     2651#line $LINENO "configure"
    28042652/* confdefs.h.  */
    28052653_ACEOF
     
    28182666rm -f conftest.$ac_objext
    28192667if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    2820   (eval $ac_compile) 2>conftest.er1
     2668  (eval $ac_compile) 2>&5
    28212669  ac_status=$?
    2822   grep -v '^ *+' conftest.er1 >conftest.err
    2823   rm -f conftest.er1
    2824   cat conftest.err >&5
    28252670  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    28262671  (exit $ac_status); } &&
    2827          { ac_try='test -z "$ac_c_werror_flag"
    2828                          || test ! -s conftest.err'
    2829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2830   (eval $ac_try) 2>&5
    2831   ac_status=$?
    2832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2833   (exit $ac_status); }; } &&
    2834          { ac_try='test -s conftest.$ac_objext'
     2672         { ac_try='test -s conftest.$ac_objext'
    28352673  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    28362674  (eval $ac_try) 2>&5
     
    28442682
    28452683fi
    2846 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     2684rm -f conftest.$ac_objext conftest.$ac_ext
    28472685done
    28482686rm -f conftest*
     
    28582696
    28592697fi
    2860 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     2698rm -f conftest.$ac_objext conftest.$ac_ext
    28612699ac_ext=c
    28622700ac_cpp='$CPP $CPPFLAGS'
     
    28642702ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    28652703ac_compiler_gnu=$ac_cv_c_compiler_gnu
    2866 DEPDIR="${am__leading_dot}deps"
     2704rm -f .deps 2>/dev/null
     2705mkdir .deps 2>/dev/null
     2706if test -d .deps; then
     2707  DEPDIR=.deps
     2708else
     2709  # MS-DOS does not allow filenames that begin with a dot.
     2710  DEPDIR=_deps
     2711fi
     2712rmdir .deps 2>/dev/null
     2713
    28672714
    28682715          ac_config_commands="$ac_config_commands depfiles"
     
    28712718am_make=${MAKE-make}
    28722719cat > confinc << 'END'
    2873 am__doit:
     2720doit:
    28742721        @echo done
    2875 .PHONY: am__doit
    28762722END
    28772723# If we don't find an include directive, just comment out the code.
     
    28882734# be invoked under some other name (usually "gmake"), in which
    28892735# case it prints its new name instead of `make'.
    2890 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
     2736if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
    28912737   am__include=include
    28922738   am__quote=
     
    29482794  cp "$am_depcomp" conftest.dir
    29492795  cd conftest.dir
    2950   # We will build objects and dependencies in a subdirectory because
    2951   # it helps to detect inapplicable dependency modes.  For instance
    2952   # both Tru64's cc and ICC support -MD to output dependencies as a
    2953   # side effect of compilation, but ICC will put the dependencies in
    2954   # the current directory while Tru64 will put them in the object
    2955   # directory.
    2956   mkdir sub
    29572796
    29582797  am_cv_CC_dependencies_compiler_type=none
     
    29612800  fi
    29622801  for depmode in $am_compiler_list; do
    2963     # Setup a source with many dependencies, because some compilers
    2964     # like to wrap large dependency lists on column 80 (with \), and
    2965     # we should not choose a depcomp mode which is confused by this.
    2966     #
    29672802    # We need to recreate these files for each test, as the compiler may
    29682803    # overwrite some of them when testing with obscure command lines.
    29692804    # This happens at least with the AIX C compiler.
    2970     : > sub/conftest.c
    2971     for i in 1 2 3 4 5 6; do
    2972       echo '#include "conftst'$i'.h"' >> sub/conftest.c
    2973       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
    2974       # Solaris 8's {/usr,}/bin/sh.
    2975       touch sub/conftst$i.h
    2976     done
    2977     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
     2805    echo '#include "conftest.h"' > conftest.c
     2806    echo 'int i;' > conftest.h
     2807    echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
    29782808
    29792809    case $depmode in
     
    29932823    # handle `-M -o', and we need to detect this.
    29942824    if depmode=$depmode \
    2995        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
    2996        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
    2997        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
    2998          >/dev/null 2>conftest.err &&
    2999        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
    3000        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
     2825       source=conftest.c object=conftest.o \
     2826       depfile=conftest.Po tmpdepfile=conftest.TPo \
     2827       $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
     2828       grep conftest.h conftest.Po > /dev/null 2>&1 &&
    30012829       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
    3002       # icc doesn't choke on unknown options, it will just issue warnings
    3003       # (even with -Werror).  So we grep stderr for any message
    3004       # that says an option was ignored.
    3005       if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
    3006         am_cv_CC_dependencies_compiler_type=$depmode
    3007         break
    3008       fi
     2830      am_cv_CC_dependencies_compiler_type=$depmode
     2831      break
    30092832    fi
    30102833  done
     
    30202843echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
    30212844CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
    3022 
    3023 
    3024 
    3025 if
    3026   test "x$enable_dependency_tracking" != xno \
    3027   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
    3028   am__fastdepCC_TRUE=
    3029   am__fastdepCC_FALSE='#'
    3030 else
    3031   am__fastdepCC_TRUE='#'
    3032   am__fastdepCC_FALSE=
    3033 fi
    30342845
    30352846
     
    30502861# AFS /usr/afsws/bin/install, which mishandles nonexistent args
    30512862# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
    3052 # OS/2's system install, which has a completely different semantic
    30532863# ./install, which can be erroneously created by make from ./install.sh.
    30542864echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
     
    30672877  ./ | .// | /cC/* | \
    30682878  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
    3069   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
    30702879  /usr/ucb/* ) ;;
    30712880  *)
     
    30752884    for ac_prog in ginstall scoinst install; do
    30762885      for ac_exec_ext in '' $ac_executable_extensions; do
    3077         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
    3078           if test $ac_prog = install &&
    3079             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
    3080             # AIX install.  It has an incompatible calling convention.
    3081             :
    3082           elif test $ac_prog = install &&
    3083             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
    3084             # program-specific install script used by HP pwplus--don't use.
    3085             :
    3086           else
    3087             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
    3088             break 3
    3089           fi
    3090         fi
     2886        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
     2887          if test $ac_prog = install &&
     2888            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
     2889            # AIX install.  It has an incompatible calling convention.
     2890            :
     2891          elif test $ac_prog = install &&
     2892            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
     2893            # program-specific install script used by HP pwplus--don't use.
     2894            :
     2895          else
     2896            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
     2897            break 3
     2898          fi
     2899        fi
    30912900      done
    30922901    done
     
    31222931  enableval="$enable_shared"
    31232932  p=${PACKAGE-default}
    3124     case $enableval in
    3125     yes) enable_shared=yes ;;
    3126     no) enable_shared=no ;;
    3127     *)
    3128       enable_shared=no
    3129       # Look at the argument we got.  We use all the common list separators.
    3130       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
    3131       for pkg in $enableval; do
    3132         IFS="$lt_save_ifs"
    3133         if test "X$pkg" = "X$p"; then
    3134           enable_shared=yes
    3135         fi
    3136       done
    3137       IFS="$lt_save_ifs"
    3138       ;;
    3139     esac
     2933case $enableval in
     2934yes) enable_shared=yes ;;
     2935no) enable_shared=no ;;
     2936*)
     2937  enable_shared=no
     2938  # Look at the argument we got.  We use all the common list separators.
     2939  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
     2940  for pkg in $enableval; do
     2941    if test "X$pkg" = "X$p"; then
     2942      enable_shared=yes
     2943    fi
     2944  done
     2945  IFS="$ac_save_ifs"
     2946  ;;
     2947esac
    31402948else
    31412949  enable_shared=yes
    31422950fi;
    3143 
    31442951# Check whether --enable-static or --disable-static was given.
    31452952if test "${enable_static+set}" = set; then
    31462953  enableval="$enable_static"
    31472954  p=${PACKAGE-default}
    3148     case $enableval in
    3149     yes) enable_static=yes ;;
    3150     no) enable_static=no ;;
    3151     *)
    3152      enable_static=no
    3153       # Look at the argument we got.  We use all the common list separators.
    3154       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
    3155       for pkg in $enableval; do
    3156         IFS="$lt_save_ifs"
    3157         if test "X$pkg" = "X$p"; then
    3158           enable_static=yes
    3159         fi
    3160       done
    3161       IFS="$lt_save_ifs"
    3162       ;;
    3163     esac
     2955case $enableval in
     2956yes) enable_static=yes ;;
     2957no) enable_static=no ;;
     2958*)
     2959  enable_static=no
     2960  # Look at the argument we got.  We use all the common list separators.
     2961  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
     2962  for pkg in $enableval; do
     2963    if test "X$pkg" = "X$p"; then
     2964      enable_static=yes
     2965    fi
     2966  done
     2967  IFS="$ac_save_ifs"
     2968  ;;
     2969esac
    31642970else
    31652971  enable_static=yes
    31662972fi;
    3167 
    31682973# Check whether --enable-fast-install or --disable-fast-install was given.
    31692974if test "${enable_fast_install+set}" = set; then
    31702975  enableval="$enable_fast_install"
    31712976  p=${PACKAGE-default}
    3172     case $enableval in
    3173     yes) enable_fast_install=yes ;;
    3174     no) enable_fast_install=no ;;
    3175     *)
    3176       enable_fast_install=no
    3177       # Look at the argument we got.  We use all the common list separators.
    3178       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
    3179       for pkg in $enableval; do
    3180         IFS="$lt_save_ifs"
    3181         if test "X$pkg" = "X$p"; then
    3182           enable_fast_install=yes
    3183         fi
    3184       done
    3185       IFS="$lt_save_ifs"
    3186       ;;
    3187     esac
     2977case $enableval in
     2978yes) enable_fast_install=yes ;;
     2979no) enable_fast_install=no ;;
     2980*)
     2981  enable_fast_install=no
     2982  # Look at the argument we got.  We use all the common list separators.
     2983  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
     2984  for pkg in $enableval; do
     2985    if test "X$pkg" = "X$p"; then
     2986      enable_fast_install=yes
     2987    fi
     2988  done
     2989  IFS="$ac_save_ifs"
     2990  ;;
     2991esac
    31882992else
    31892993  enable_fast_install=yes
    31902994fi;
    3191 
    31922995# Make sure we can run config.sub.
    31932996$ac_config_sub sun4 >/dev/null 2>&1 ||
     
    32443047
    32453048
    3246 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
    3247 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
    3248 if test "${lt_cv_path_SED+set}" = set; then
    3249   echo $ECHO_N "(cached) $ECHO_C" >&6
    3250 else
    3251   # Loop through the user's path and test for sed and gsed.
    3252 # Then use that list of sed's as ones to test for truncation.
    3253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    3254 for as_dir in $PATH
    3255 do
    3256   IFS=$as_save_IFS
    3257   test -z "$as_dir" && as_dir=.
    3258   for lt_ac_prog in sed gsed; do
    3259     for ac_exec_ext in '' $ac_executable_extensions; do
    3260       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
    3261         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
    3262       fi
    3263     done
    3264   done
    3265 done
    3266 lt_ac_max=0
    3267 lt_ac_count=0
    3268 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
    3269 # along with /bin/sed that truncates output.
    3270 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
    3271   test ! -f $lt_ac_sed && break
    3272   cat /dev/null > conftest.in
    3273   lt_ac_count=0
    3274   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
    3275   # Check for GNU sed and select it if it is found.
    3276   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
    3277     lt_cv_path_SED=$lt_ac_sed
    3278     break
    3279   fi
    3280   while true; do
    3281     cat conftest.in conftest.in >conftest.tmp
    3282     mv conftest.tmp conftest.in
    3283     cp conftest.in conftest.nl
    3284     echo >>conftest.nl
    3285     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
    3286     cmp -s conftest.out conftest.nl || break
    3287     # 10000 chars as input seems more than enough
    3288     test $lt_ac_count -gt 10 && break
    3289     lt_ac_count=`expr $lt_ac_count + 1`
    3290     if test $lt_ac_count -gt $lt_ac_max; then
    3291       lt_ac_max=$lt_ac_count
    3292       lt_cv_path_SED=$lt_ac_sed
    3293     fi
    3294   done
    3295 done
    3296 SED=$lt_cv_path_SED
    3297 
    3298 fi
    3299 
    3300 echo "$as_me:$LINENO: result: $SED" >&5
    3301 echo "${ECHO_T}$SED" >&6
    3302 
    3303 echo "$as_me:$LINENO: checking for egrep" >&5
    3304 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
    3305 if test "${ac_cv_prog_egrep+set}" = set; then
    3306   echo $ECHO_N "(cached) $ECHO_C" >&6
    3307 else
    3308   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
    3309     then ac_cv_prog_egrep='grep -E'
    3310     else ac_cv_prog_egrep='egrep'
    3311     fi
    3312 fi
    3313 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
    3314 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
    3315  EGREP=$ac_cv_prog_egrep
    3316 
     3049# Find the correct PATH separator.  Usually this is `:', but
     3050# DJGPP uses `;' like DOS.
     3051if test "X${PATH_SEPARATOR+set}" != Xset; then
     3052  UNAME=${UNAME-`uname 2>/dev/null`}
     3053  case X$UNAME in
     3054    *-DOS) lt_cv_sys_path_separator=';' ;;
     3055    *)     lt_cv_sys_path_separator=':' ;;
     3056  esac
     3057  PATH_SEPARATOR=$lt_cv_sys_path_separator
     3058fi
    33173059
    33183060
     
    33273069if test "$GCC" = yes; then
    33283070  # Check if gcc -print-prog-name=ld gives a path.
    3329   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
    3330 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
     3071  echo "$as_me:$LINENO: checking for ld used by GCC" >&5
     3072echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
    33313073  case $host in
    33323074  *-*-mingw*)
     
    33383080  case $ac_prog in
    33393081    # Accept absolute paths.
    3340     [\\/]* | ?:[\\/]*)
     3082    [\\/]* | [A-Za-z]:[\\/]*)
    33413083      re_direlt='/[^/][^/]*/\.\./'
    3342       # Canonicalize the pathname of ld
    3343       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
     3084      # Canonicalize the path of ld
     3085      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
    33443086      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
    3345         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
     3087        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
    33463088      done
    33473089      test -z "$LD" && LD="$ac_prog"
     
    33673109else
    33683110  if test -z "$LD"; then
    3369   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
     3111  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
    33703112  for ac_dir in $PATH; do
    3371     IFS="$lt_save_ifs"
    33723113    test -z "$ac_dir" && ac_dir=.
    33733114    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
     
    33763117      # but apparently some GNU ld's only accept -v.
    33773118      # Break only if it was the GNU/non-GNU ld that we prefer.
    3378       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
    3379       *GNU* | *'with BFD'*)
     3119      if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
    33803120        test "$with_gnu_ld" != no && break
    3381         ;;
    3382       *)
     3121      else
    33833122        test "$with_gnu_ld" != yes && break
    3384         ;;
    3385       esac
     3123      fi
    33863124    fi
    33873125  done
    3388   IFS="$lt_save_ifs"
     3126  IFS="$ac_save_ifs"
    33893127else
    33903128  lt_cv_path_LD="$LD" # Let the user override the test with a path.
     
    34093147else
    34103148  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
    3411 case `$LD -v 2>&1 </dev/null` in
    3412 *GNU* | *'with BFD'*)
     3149if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
    34133150  lt_cv_prog_gnu_ld=yes
    3414   ;;
    3415 *)
     3151else
    34163152  lt_cv_prog_gnu_ld=no
    3417   ;;
    3418 esac
     3153fi
    34193154fi
    34203155echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
     
    34333168echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
    34343169reload_flag=$lt_cv_ld_reload_flag
    3435 case $reload_flag in
    3436 "" | " "*) ;;
    3437 *) reload_flag=" $reload_flag" ;;
    3438 esac
    3439 reload_cmds='$LD$reload_flag -o $output$reload_objs'
     3170test -n "$reload_flag" && reload_flag=" $reload_flag"
    34403171
    34413172echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
     
    34483179  lt_cv_path_NM="$NM"
    34493180else
    3450   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
     3181  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
    34513182  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
    3452     IFS="$lt_save_ifs"
    34533183    test -z "$ac_dir" && ac_dir=.
    3454     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
    3455     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
     3184    tmp_nm=$ac_dir/${ac_tool_prefix}nm
     3185    if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
    34563186      # Check to see if the nm accepts a BSD-compat flag.
    34573187      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
    34583188      #   nm: unknown option "B" ignored
    34593189      # Tru64's nm complains that /dev/null is an invalid object file
    3460       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
    3461       */dev/null* | *'Invalid file or object type'*)
     3190      if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
    34623191        lt_cv_path_NM="$tmp_nm -B"
    34633192        break
    3464         ;;
    3465       *)
    3466         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
    3467         */dev/null*)
    3468           lt_cv_path_NM="$tmp_nm -p"
    3469           break
    3470           ;;
    3471         *)
    3472           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
    3473           continue # so that we can try to find one that supports BSD flags
    3474           ;;
    3475         esac
    3476       esac
     3193      elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
     3194        lt_cv_path_NM="$tmp_nm -p"
     3195        break
     3196      else
     3197        lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
     3198        continue # so that we can try to find one that supports BSD flags
     3199      fi
    34773200    fi
    34783201  done
    3479   IFS="$lt_save_ifs"
     3202  IFS="$ac_save_ifs"
    34803203  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
    34813204fi
    34823205fi
    3483 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
    3484 echo "${ECHO_T}$lt_cv_path_NM" >&6
     3206
    34853207NM="$lt_cv_path_NM"
     3208echo "$as_me:$LINENO: result: $NM" >&5
     3209echo "${ECHO_T}$NM" >&6
     3210
     3211echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
     3212echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
     3213if test "${lt_cv_path_SED+set}" = set; then
     3214  echo $ECHO_N "(cached) $ECHO_C" >&6
     3215else
     3216  # Loop through the user's path and test for sed and gsed.
     3217# Then use that list of sed's as ones to test for truncation.
     3218as_executable_p="test -f"
     3219as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     3220for as_dir in $PATH
     3221do
     3222  IFS=$as_save_IFS
     3223  test -z "$as_dir" && as_dir=.
     3224  for ac_prog in sed gsed; do
     3225    for ac_exec_ext in '' $ac_executable_extensions; do
     3226      if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
     3227        _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
     3228      fi
     3229    done
     3230  done
     3231done
     3232
     3233  # Create a temporary directory, and hook for its removal unless debugging.
     3234$debug ||
     3235{
     3236  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
     3237  trap '{ (exit 1); exit 1; }' 1 2 13 15
     3238}
     3239
     3240# Create a (secure) tmp directory for tmp files.
     3241: ${TMPDIR=/tmp}
     3242{
     3243  tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
     3244  test -n "$tmp" && test -d "$tmp"
     3245}  ||
     3246{
     3247  tmp=$TMPDIR/sed$$-$RANDOM
     3248  (umask 077 && mkdir $tmp)
     3249} ||
     3250{
     3251   echo "$me: cannot create a temporary directory in $TMPDIR" >&2
     3252   { (exit 1); exit 1; }
     3253}
     3254  _max=0
     3255  _count=0
     3256  # Add /usr/xpg4/bin/sed as it is typically found on Solaris
     3257  # along with /bin/sed that truncates output.
     3258  for _sed in $_sed_list /usr/xpg4/bin/sed; do
     3259    test ! -f ${_sed} && break
     3260    cat /dev/null > "$tmp/sed.in"
     3261    _count=0
     3262    echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
     3263    # Check for GNU sed and select it if it is found.
     3264    if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
     3265      lt_cv_path_SED=${_sed}
     3266      break
     3267    fi
     3268    while true; do
     3269      cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
     3270      mv "$tmp/sed.tmp" "$tmp/sed.in"
     3271      cp "$tmp/sed.in" "$tmp/sed.nl"
     3272      echo >>"$tmp/sed.nl"
     3273      ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
     3274      cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
     3275      # 40000 chars as input seems more than enough
     3276      test $_count -gt 10 && break
     3277      _count=`expr $_count + 1`
     3278      if test $_count -gt $_max; then
     3279        _max=$_count
     3280        lt_cv_path_SED=$_sed
     3281      fi
     3282    done
     3283  done
     3284  rm -rf "$tmp"
     3285
     3286fi
     3287
     3288if test "X$SED" != "X"; then
     3289  lt_cv_path_SED=$SED
     3290else
     3291  SED=$lt_cv_path_SED
     3292fi
     3293echo "$as_me:$LINENO: result: $SED" >&5
     3294echo "${ECHO_T}$SED" >&6
    34863295
    34873296echo "$as_me:$LINENO: checking whether ln -s works" >&5
     
    35113320# 'test_compile' -- check by making test program.
    35123321# 'file_magic [[regex]]' -- check by looking for files in library path
    3513 # which responds to the $file_magic_cmd with a given extended regex.
     3322# which responds to the $file_magic_cmd with a given egrep regex.
    35143323# If you have `file' or equivalent on your system and you're not sure
    35153324# whether `pass_all' will *always* work, you probably want this one.
     
    35303339  ;;
    35313340
    3532 cygwin*)
    3533   # func_win32_libid is a shell function defined in ltmain.sh
    3534   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
    3535   lt_cv_file_magic_cmd='func_win32_libid'
    3536   ;;
    3537 
    3538 mingw* | pw32*)
    3539   # Base MSYS/MinGW do not provide the 'file' command needed by
    3540   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
     3341cygwin* | mingw* | pw32*)
    35413342  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
    35423343  lt_cv_file_magic_cmd='$OBJDUMP -f'
     
    35443345
    35453346darwin* | rhapsody*)
    3546   lt_cv_deplibs_check_method=pass_all
     3347  lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
     3348  lt_cv_file_magic_cmd='/usr/bin/file -L'
     3349  case "$host_os" in
     3350  rhapsody* | darwin1.[012])
     3351    lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
     3352    ;;
     3353  *) # Darwin 1.3 on
     3354    lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
     3355    ;;
     3356  esac
    35473357  ;;
    35483358
    3549 freebsd* | kfreebsd*-gnu)
     3359freebsd*)
    35503360  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
    35513361    case $host_cpu in
     
    35673377  ;;
    35683378
    3569 hpux10.20* | hpux11*)
     3379hpux10.20*|hpux11*)
     3380  lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
    35703381  lt_cv_file_magic_cmd=/usr/bin/file
    3571   case "$host_cpu" in
    3572   ia64*)
    3573     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
    3574     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
    3575     ;;
    3576   hppa*64*)
    3577     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
    3578     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
     3382  lt_cv_file_magic_test_file=/usr/lib/libc.sl
     3383  ;;
     3384
     3385irix5* | irix6* | nonstopux*)
     3386  case $host_os in
     3387  irix5* | nonstopux*)
     3388    # this will be overridden with pass_all, but let us keep it just in case
     3389    lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
    35793390    ;;
    35803391  *)
    3581     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
    3582     lt_cv_file_magic_test_file=/usr/lib/libc.sl
     3392    case $LD in
     3393    *-32|*"-32 ") libmagic=32-bit;;
     3394    *-n32|*"-n32 ") libmagic=N32;;
     3395    *-64|*"-64 ") libmagic=64-bit;;
     3396    *) libmagic=never-match;;
     3397    esac
     3398    # this will be overridden with pass_all, but let us keep it just in case
     3399    lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
    35833400    ;;
    35843401  esac
    3585   ;;
    3586 
    3587 irix5* | irix6* | nonstopux*)
    3588   case $LD in
    3589   *-32|*"-32 ") libmagic=32-bit;;
    3590   *-n32|*"-n32 ") libmagic=N32;;
    3591   *-64|*"-64 ") libmagic=64-bit;;
    3592   *) libmagic=never-match;;
    3593   esac
     3402  lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
    35943403  lt_cv_deplibs_check_method=pass_all
    35953404  ;;
    35963405
    35973406# This must be Linux ELF.
    3598 linux*)
     3407linux-gnu*)
    35993408  case $host_cpu in
    3600   alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*|x86_64*)
     3409  alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64* | s390* | x86_64*)
    36013410    lt_cv_deplibs_check_method=pass_all ;;
    36023411  *)
    36033412    # glibc up to 2.1.1 does not perform some relocations on ARM
    3604     # this will be overridden with pass_all, but let us keep it just in case
    36053413    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
    36063414  esac
    36073415  lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
    3608   lt_cv_deplibs_check_method=pass_all
    36093416  ;;
    36103417
    36113418netbsd*)
    36123419  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
    3613     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
     3420    lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
    36143421  else
    3615     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
     3422    lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
    36163423  fi
    36173424  ;;
     
    36213428  lt_cv_file_magic_cmd=/usr/bin/file
    36223429  lt_cv_file_magic_test_file=/usr/lib/libnls.so
    3623   ;;
    3624 
    3625 nto-qnx*)
    3626   lt_cv_deplibs_check_method=unknown
    36273430  ;;
    36283431
     
    36383441
    36393442osf3* | osf4* | osf5*)
     3443  # this will be overridden with pass_all, but let us keep it just in case
     3444  lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
     3445  lt_cv_file_magic_test_file=/shlib/libc.so
    36403446  lt_cv_deplibs_check_method=pass_all
    36413447  ;;
     
    36463452
    36473453solaris*)
     3454  lt_cv_deplibs_check_method=pass_all
     3455  lt_cv_file_magic_test_file=/lib/libc.so
     3456  ;;
     3457
     3458sysv5uw[78]* | sysv4*uw2*)
    36483459  lt_cv_deplibs_check_method=pass_all
    36493460  ;;
     
    36723483  esac
    36733484  ;;
    3674 
    3675 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
    3676   lt_cv_deplibs_check_method=pass_all
    3677   ;;
    36783485esac
    36793486
     
    36833490file_magic_cmd=$lt_cv_file_magic_cmd
    36843491deplibs_check_method=$lt_cv_deplibs_check_method
    3685 test -z "$deplibs_check_method" && deplibs_check_method=unknown
    3686 
    3687 
    3688 
    3689 
    3690 # If no C compiler was specified, use CC.
    3691 LTCC=${LTCC-"$CC"}
    3692 
    3693 # Allow CC to be a program name with arguments.
    3694 compiler=$CC
    3695 
    3696 
    3697 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
    3698 if test "${enable_libtool_lock+set}" = set; then
    3699   enableval="$enable_libtool_lock"
    3700 
    3701 fi;
    3702 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
    3703 
    3704 # Some flags need to be propagated to the compiler or linker for good
    3705 # libtool support.
    3706 case $host in
    3707 ia64-*-hpux*)
    3708   # Find out which ABI we are using.
    3709   echo 'int i;' > conftest.$ac_ext
    3710   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    3711   (eval $ac_compile) 2>&5
    3712   ac_status=$?
    3713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3714   (exit $ac_status); }; then
    3715     case `/usr/bin/file conftest.$ac_objext` in
    3716     *ELF-32*)
    3717       HPUX_IA64_MODE="32"
    3718       ;;
    3719     *ELF-64*)
    3720       HPUX_IA64_MODE="64"
    3721       ;;
    3722     esac
    3723   fi
    3724   rm -rf conftest*
    3725   ;;
    3726 *-*-irix6*)
    3727   # Find out which ABI we are using.
    3728   echo '#line 3728 "configure"' > conftest.$ac_ext
    3729   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    3730   (eval $ac_compile) 2>&5
    3731   ac_status=$?
    3732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3733   (exit $ac_status); }; then
    3734    if test "$lt_cv_prog_gnu_ld" = yes; then
    3735     case `/usr/bin/file conftest.$ac_objext` in
    3736     *32-bit*)
    3737       LD="${LD-ld} -melf32bsmip"
    3738       ;;
    3739     *N32*)
    3740       LD="${LD-ld} -melf32bmipn32"
    3741       ;;
    3742     *64-bit*)
    3743       LD="${LD-ld} -melf64bmip"
    3744       ;;
    3745     esac
    3746    else
    3747     case `/usr/bin/file conftest.$ac_objext` in
    3748     *32-bit*)
    3749       LD="${LD-ld} -32"
    3750       ;;
    3751     *N32*)
    3752       LD="${LD-ld} -n32"
    3753       ;;
    3754     *64-bit*)
    3755       LD="${LD-ld} -64"
    3756       ;;
    3757     esac
    3758    fi
    3759   fi
    3760   rm -rf conftest*
    3761   ;;
    3762 
    3763 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
    3764   # Find out which ABI we are using.
    3765   echo 'int i;' > conftest.$ac_ext
    3766   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    3767   (eval $ac_compile) 2>&5
    3768   ac_status=$?
    3769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3770   (exit $ac_status); }; then
    3771     case "`/usr/bin/file conftest.o`" in
    3772     *32-bit*)
    3773       case $host in
    3774         x86_64-*linux*)
    3775           LD="${LD-ld} -m elf_i386"
    3776           ;;
    3777         ppc64-*linux*|powerpc64-*linux*)
    3778           LD="${LD-ld} -m elf32ppclinux"
    3779           ;;
    3780         s390x-*linux*)
    3781           LD="${LD-ld} -m elf_s390"
    3782           ;;
    3783         sparc64-*linux*)
    3784           LD="${LD-ld} -m elf32_sparc"
    3785           ;;
    3786       esac
    3787       ;;
    3788     *64-bit*)
    3789       case $host in
    3790         x86_64-*linux*)
    3791           LD="${LD-ld} -m elf_x86_64"
    3792           ;;
    3793         ppc*-*linux*|powerpc*-*linux*)
    3794           LD="${LD-ld} -m elf64ppc"
    3795           ;;
    3796         s390*-*linux*)
    3797           LD="${LD-ld} -m elf64_s390"
    3798           ;;
    3799         sparc*-*linux*)
    3800           LD="${LD-ld} -m elf64_sparc"
    3801           ;;
    3802       esac
    3803       ;;
    3804     esac
    3805   fi
    3806   rm -rf conftest*
    3807   ;;
    3808 
    3809 *-*-sco3.2v5*)
    3810   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
    3811   SAVE_CFLAGS="$CFLAGS"
    3812   CFLAGS="$CFLAGS -belf"
    3813   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
    3814 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
    3815 if test "${lt_cv_cc_needs_belf+set}" = set; then
    3816   echo $ECHO_N "(cached) $ECHO_C" >&6
    3817 else
    3818   ac_ext=c
    3819 ac_cpp='$CPP $CPPFLAGS'
    3820 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    3821 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    3822 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    3823 
    3824      cat >conftest.$ac_ext <<_ACEOF
    3825 /* confdefs.h.  */
    3826 _ACEOF
    3827 cat confdefs.h >>conftest.$ac_ext
    3828 cat >>conftest.$ac_ext <<_ACEOF
    3829 /* end confdefs.h.  */
    3830 
    3831 int
    3832 main ()
    3833 {
    3834 
    3835   ;
    3836   return 0;
    3837 }
    3838 _ACEOF
    3839 rm -f conftest.$ac_objext conftest$ac_exeext
    3840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    3841   (eval $ac_link) 2>conftest.er1
    3842   ac_status=$?
    3843   grep -v '^ *+' conftest.er1 >conftest.err
    3844   rm -f conftest.er1
    3845   cat conftest.err >&5
    3846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3847   (exit $ac_status); } &&
    3848          { ac_try='test -z "$ac_c_werror_flag"
    3849                          || test ! -s conftest.err'
    3850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3851   (eval $ac_try) 2>&5
    3852   ac_status=$?
    3853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3854   (exit $ac_status); }; } &&
    3855          { ac_try='test -s conftest$ac_exeext'
    3856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    3857   (eval $ac_try) 2>&5
    3858   ac_status=$?
    3859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3860   (exit $ac_status); }; }; then
    3861   lt_cv_cc_needs_belf=yes
    3862 else
    3863   echo "$as_me: failed program was:" >&5
    3864 sed 's/^/| /' conftest.$ac_ext >&5
    3865 
    3866 lt_cv_cc_needs_belf=no
    3867 fi
    3868 rm -f conftest.err conftest.$ac_objext \
    3869       conftest$ac_exeext conftest.$ac_ext
    3870      ac_ext=c
    3871 ac_cpp='$CPP $CPPFLAGS'
    3872 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    3873 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    3874 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    3875 
    3876 fi
    3877 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
    3878 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
    3879   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
    3880     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
    3881     CFLAGS="$SAVE_CFLAGS"
    3882   fi
    3883   ;;
    3884 
    3885 esac
    3886 
    3887 need_locks="$enable_libtool_lock"
    3888 
    3889 
    3890 ac_ext=c
    3891 ac_cpp='$CPP $CPPFLAGS'
    3892 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    3893 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    3894 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    3895 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
    3896 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
    3897 # On Suns, sometimes $CPP names a directory.
    3898 if test -n "$CPP" && test -d "$CPP"; then
    3899   CPP=
    3900 fi
    3901 if test -z "$CPP"; then
    3902   if test "${ac_cv_prog_CPP+set}" = set; then
    3903   echo $ECHO_N "(cached) $ECHO_C" >&6
    3904 else
    3905       # Double quotes because CPP needs to be expanded
    3906     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
    3907     do
    3908       ac_preproc_ok=false
    3909 for ac_c_preproc_warn_flag in '' yes
    3910 do
    3911   # Use a header file that comes with gcc, so configuring glibc
    3912   # with a fresh cross-compiler works.
    3913   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    3914   # <limits.h> exists even on freestanding compilers.
    3915   # On the NeXT, cc -E runs the code through the compiler's parser,
    3916   # not just through cpp. "Syntax error" is here to catch this case.
    3917   cat >conftest.$ac_ext <<_ACEOF
    3918 /* confdefs.h.  */
    3919 _ACEOF
    3920 cat confdefs.h >>conftest.$ac_ext
    3921 cat >>conftest.$ac_ext <<_ACEOF
    3922 /* end confdefs.h.  */
    3923 #ifdef __STDC__
    3924 # include <limits.h>
    3925 #else
    3926 # include <assert.h>
    3927 #endif
    3928                      Syntax error
    3929 _ACEOF
    3930 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
    3931   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    3932   ac_status=$?
    3933   grep -v '^ *+' conftest.er1 >conftest.err
    3934   rm -f conftest.er1
    3935   cat conftest.err >&5
    3936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3937   (exit $ac_status); } >/dev/null; then
    3938   if test -s conftest.err; then
    3939     ac_cpp_err=$ac_c_preproc_warn_flag
    3940     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
    3941   else
    3942     ac_cpp_err=
    3943   fi
    3944 else
    3945   ac_cpp_err=yes
    3946 fi
    3947 if test -z "$ac_cpp_err"; then
    3948   :
    3949 else
    3950   echo "$as_me: failed program was:" >&5
    3951 sed 's/^/| /' conftest.$ac_ext >&5
    3952 
    3953   # Broken: fails on valid input.
    3954 continue
    3955 fi
    3956 rm -f conftest.err conftest.$ac_ext
    3957 
    3958   # OK, works on sane cases.  Now check whether non-existent headers
    3959   # can be detected and how.
    3960   cat >conftest.$ac_ext <<_ACEOF
    3961 /* confdefs.h.  */
    3962 _ACEOF
    3963 cat confdefs.h >>conftest.$ac_ext
    3964 cat >>conftest.$ac_ext <<_ACEOF
    3965 /* end confdefs.h.  */
    3966 #include <ac_nonexistent.h>
    3967 _ACEOF
    3968 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
    3969   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    3970   ac_status=$?
    3971   grep -v '^ *+' conftest.er1 >conftest.err
    3972   rm -f conftest.er1
    3973   cat conftest.err >&5
    3974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3975   (exit $ac_status); } >/dev/null; then
    3976   if test -s conftest.err; then
    3977     ac_cpp_err=$ac_c_preproc_warn_flag
    3978     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
    3979   else
    3980     ac_cpp_err=
    3981   fi
    3982 else
    3983   ac_cpp_err=yes
    3984 fi
    3985 if test -z "$ac_cpp_err"; then
    3986   # Broken: success on invalid input.
    3987 continue
    3988 else
    3989   echo "$as_me: failed program was:" >&5
    3990 sed 's/^/| /' conftest.$ac_ext >&5
    3991 
    3992   # Passes both tests.
    3993 ac_preproc_ok=:
    3994 break
    3995 fi
    3996 rm -f conftest.err conftest.$ac_ext
    3997 
    3998 done
    3999 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
    4000 rm -f conftest.err conftest.$ac_ext
    4001 if $ac_preproc_ok; then
    4002   break
    4003 fi
    4004 
    4005     done
    4006     ac_cv_prog_CPP=$CPP
    4007 
    4008 fi
    4009   CPP=$ac_cv_prog_CPP
    4010 else
    4011   ac_cv_prog_CPP=$CPP
    4012 fi
    4013 echo "$as_me:$LINENO: result: $CPP" >&5
    4014 echo "${ECHO_T}$CPP" >&6
    4015 ac_preproc_ok=false
    4016 for ac_c_preproc_warn_flag in '' yes
    4017 do
    4018   # Use a header file that comes with gcc, so configuring glibc
    4019   # with a fresh cross-compiler works.
    4020   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    4021   # <limits.h> exists even on freestanding compilers.
    4022   # On the NeXT, cc -E runs the code through the compiler's parser,
    4023   # not just through cpp. "Syntax error" is here to catch this case.
    4024   cat >conftest.$ac_ext <<_ACEOF
    4025 /* confdefs.h.  */
    4026 _ACEOF
    4027 cat confdefs.h >>conftest.$ac_ext
    4028 cat >>conftest.$ac_ext <<_ACEOF
    4029 /* end confdefs.h.  */
    4030 #ifdef __STDC__
    4031 # include <limits.h>
    4032 #else
    4033 # include <assert.h>
    4034 #endif
    4035                      Syntax error
    4036 _ACEOF
    4037 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
    4038   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    4039   ac_status=$?
    4040   grep -v '^ *+' conftest.er1 >conftest.err
    4041   rm -f conftest.er1
    4042   cat conftest.err >&5
    4043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4044   (exit $ac_status); } >/dev/null; then
    4045   if test -s conftest.err; then
    4046     ac_cpp_err=$ac_c_preproc_warn_flag
    4047     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
    4048   else
    4049     ac_cpp_err=
    4050   fi
    4051 else
    4052   ac_cpp_err=yes
    4053 fi
    4054 if test -z "$ac_cpp_err"; then
    4055   :
    4056 else
    4057   echo "$as_me: failed program was:" >&5
    4058 sed 's/^/| /' conftest.$ac_ext >&5
    4059 
    4060   # Broken: fails on valid input.
    4061 continue
    4062 fi
    4063 rm -f conftest.err conftest.$ac_ext
    4064 
    4065   # OK, works on sane cases.  Now check whether non-existent headers
    4066   # can be detected and how.
    4067   cat >conftest.$ac_ext <<_ACEOF
    4068 /* confdefs.h.  */
    4069 _ACEOF
    4070 cat confdefs.h >>conftest.$ac_ext
    4071 cat >>conftest.$ac_ext <<_ACEOF
    4072 /* end confdefs.h.  */
    4073 #include <ac_nonexistent.h>
    4074 _ACEOF
    4075 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
    4076   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    4077   ac_status=$?
    4078   grep -v '^ *+' conftest.er1 >conftest.err
    4079   rm -f conftest.er1
    4080   cat conftest.err >&5
    4081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4082   (exit $ac_status); } >/dev/null; then
    4083   if test -s conftest.err; then
    4084     ac_cpp_err=$ac_c_preproc_warn_flag
    4085     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
    4086   else
    4087     ac_cpp_err=
    4088   fi
    4089 else
    4090   ac_cpp_err=yes
    4091 fi
    4092 if test -z "$ac_cpp_err"; then
    4093   # Broken: success on invalid input.
    4094 continue
    4095 else
    4096   echo "$as_me: failed program was:" >&5
    4097 sed 's/^/| /' conftest.$ac_ext >&5
    4098 
    4099   # Passes both tests.
    4100 ac_preproc_ok=:
    4101 break
    4102 fi
    4103 rm -f conftest.err conftest.$ac_ext
    4104 
    4105 done
    4106 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
    4107 rm -f conftest.err conftest.$ac_ext
    4108 if $ac_preproc_ok; then
    4109   :
    4110 else
    4111   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
    4112 See \`config.log' for more details." >&5
    4113 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
    4114 See \`config.log' for more details." >&2;}
    4115    { (exit 1); exit 1; }; }
    4116 fi
    4117 
    4118 ac_ext=c
    4119 ac_cpp='$CPP $CPPFLAGS'
    4120 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    4121 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    4122 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    4123 
    4124 
    4125 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
    4126 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
    4127 if test "${ac_cv_header_stdc+set}" = set; then
    4128   echo $ECHO_N "(cached) $ECHO_C" >&6
    4129 else
    4130   cat >conftest.$ac_ext <<_ACEOF
    4131 /* confdefs.h.  */
    4132 _ACEOF
    4133 cat confdefs.h >>conftest.$ac_ext
    4134 cat >>conftest.$ac_ext <<_ACEOF
    4135 /* end confdefs.h.  */
    4136 #include <stdlib.h>
    4137 #include <stdarg.h>
    4138 #include <string.h>
    4139 #include <float.h>
    4140 
    4141 int
    4142 main ()
    4143 {
    4144 
    4145   ;
    4146   return 0;
    4147 }
    4148 _ACEOF
    4149 rm -f conftest.$ac_objext
    4150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    4151   (eval $ac_compile) 2>conftest.er1
    4152   ac_status=$?
    4153   grep -v '^ *+' conftest.er1 >conftest.err
    4154   rm -f conftest.er1
    4155   cat conftest.err >&5
    4156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4157   (exit $ac_status); } &&
    4158          { ac_try='test -z "$ac_c_werror_flag"
    4159                          || test ! -s conftest.err'
    4160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4161   (eval $ac_try) 2>&5
    4162   ac_status=$?
    4163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4164   (exit $ac_status); }; } &&
    4165          { ac_try='test -s conftest.$ac_objext'
    4166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4167   (eval $ac_try) 2>&5
    4168   ac_status=$?
    4169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4170   (exit $ac_status); }; }; then
    4171   ac_cv_header_stdc=yes
    4172 else
    4173   echo "$as_me: failed program was:" >&5
    4174 sed 's/^/| /' conftest.$ac_ext >&5
    4175 
    4176 ac_cv_header_stdc=no
    4177 fi
    4178 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    4179 
    4180 if test $ac_cv_header_stdc = yes; then
    4181   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
    4182   cat >conftest.$ac_ext <<_ACEOF
    4183 /* confdefs.h.  */
    4184 _ACEOF
    4185 cat confdefs.h >>conftest.$ac_ext
    4186 cat >>conftest.$ac_ext <<_ACEOF
    4187 /* end confdefs.h.  */
    4188 #include <string.h>
    4189 
    4190 _ACEOF
    4191 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    4192   $EGREP "memchr" >/dev/null 2>&1; then
    4193   :
    4194 else
    4195   ac_cv_header_stdc=no
    4196 fi
    4197 rm -f conftest*
    4198 
    4199 fi
    4200 
    4201 if test $ac_cv_header_stdc = yes; then
    4202   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
    4203   cat >conftest.$ac_ext <<_ACEOF
    4204 /* confdefs.h.  */
    4205 _ACEOF
    4206 cat confdefs.h >>conftest.$ac_ext
    4207 cat >>conftest.$ac_ext <<_ACEOF
    4208 /* end confdefs.h.  */
    4209 #include <stdlib.h>
    4210 
    4211 _ACEOF
    4212 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    4213   $EGREP "free" >/dev/null 2>&1; then
    4214   :
    4215 else
    4216   ac_cv_header_stdc=no
    4217 fi
    4218 rm -f conftest*
    4219 
    4220 fi
    4221 
    4222 if test $ac_cv_header_stdc = yes; then
    4223   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
    4224   if test "$cross_compiling" = yes; then
    4225   :
    4226 else
    4227   cat >conftest.$ac_ext <<_ACEOF
    4228 /* confdefs.h.  */
    4229 _ACEOF
    4230 cat confdefs.h >>conftest.$ac_ext
    4231 cat >>conftest.$ac_ext <<_ACEOF
    4232 /* end confdefs.h.  */
    4233 #include <ctype.h>
    4234 #if ((' ' & 0x0FF) == 0x020)
    4235 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
    4236 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
    4237 #else
    4238 # define ISLOWER(c) \
    4239                    (('a' <= (c) && (c) <= 'i') \
    4240                      || ('j' <= (c) && (c) <= 'r') \
    4241                      || ('s' <= (c) && (c) <= 'z'))
    4242 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
    4243 #endif
    4244 
    4245 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
    4246 int
    4247 main ()
    4248 {
    4249   int i;
    4250   for (i = 0; i < 256; i++)
    4251     if (XOR (islower (i), ISLOWER (i))
    4252         || toupper (i) != TOUPPER (i))
    4253       exit(2);
    4254   exit (0);
    4255 }
    4256 _ACEOF
    4257 rm -f conftest$ac_exeext
    4258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    4259   (eval $ac_link) 2>&5
    4260   ac_status=$?
    4261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4262   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
    4263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4264   (eval $ac_try) 2>&5
    4265   ac_status=$?
    4266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4267   (exit $ac_status); }; }; then
    4268   :
    4269 else
    4270   echo "$as_me: program exited with status $ac_status" >&5
    4271 echo "$as_me: failed program was:" >&5
    4272 sed 's/^/| /' conftest.$ac_ext >&5
    4273 
    4274 ( exit $ac_status )
    4275 ac_cv_header_stdc=no
    4276 fi
    4277 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
    4278 fi
    4279 fi
    4280 fi
    4281 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
    4282 echo "${ECHO_T}$ac_cv_header_stdc" >&6
    4283 if test $ac_cv_header_stdc = yes; then
    4284 
    4285 cat >>confdefs.h <<\_ACEOF
    4286 #define STDC_HEADERS 1
    4287 _ACEOF
    4288 
    4289 fi
    4290 
    4291 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
    4292 
    4293 
    4294 
    4295 
    4296 
    4297 
    4298 
    4299 
    4300 
    4301 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
    4302                   inttypes.h stdint.h unistd.h
    4303 do
    4304 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
    4305 echo "$as_me:$LINENO: checking for $ac_header" >&5
    4306 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
    4307 if eval "test \"\${$as_ac_Header+set}\" = set"; then
    4308   echo $ECHO_N "(cached) $ECHO_C" >&6
    4309 else
    4310   cat >conftest.$ac_ext <<_ACEOF
    4311 /* confdefs.h.  */
    4312 _ACEOF
    4313 cat confdefs.h >>conftest.$ac_ext
    4314 cat >>conftest.$ac_ext <<_ACEOF
    4315 /* end confdefs.h.  */
    4316 $ac_includes_default
    4317 
    4318 #include <$ac_header>
    4319 _ACEOF
    4320 rm -f conftest.$ac_objext
    4321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    4322   (eval $ac_compile) 2>conftest.er1
    4323   ac_status=$?
    4324   grep -v '^ *+' conftest.er1 >conftest.err
    4325   rm -f conftest.er1
    4326   cat conftest.err >&5
    4327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4328   (exit $ac_status); } &&
    4329          { ac_try='test -z "$ac_c_werror_flag"
    4330                          || test ! -s conftest.err'
    4331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4332   (eval $ac_try) 2>&5
    4333   ac_status=$?
    4334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4335   (exit $ac_status); }; } &&
    4336          { ac_try='test -s conftest.$ac_objext'
    4337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4338   (eval $ac_try) 2>&5
    4339   ac_status=$?
    4340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4341   (exit $ac_status); }; }; then
    4342   eval "$as_ac_Header=yes"
    4343 else
    4344   echo "$as_me: failed program was:" >&5
    4345 sed 's/^/| /' conftest.$ac_ext >&5
    4346 
    4347 eval "$as_ac_Header=no"
    4348 fi
    4349 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    4350 fi
    4351 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
    4352 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
    4353 if test `eval echo '${'$as_ac_Header'}'` = yes; then
    4354   cat >>confdefs.h <<_ACEOF
    4355 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
    4356 _ACEOF
    4357 
    4358 fi
    4359 
    4360 done
    4361 
    4362 
    4363 
    4364 for ac_header in dlfcn.h
    4365 do
    4366 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
    4367 if eval "test \"\${$as_ac_Header+set}\" = set"; then
    4368   echo "$as_me:$LINENO: checking for $ac_header" >&5
    4369 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
    4370 if eval "test \"\${$as_ac_Header+set}\" = set"; then
    4371   echo $ECHO_N "(cached) $ECHO_C" >&6
    4372 fi
    4373 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
    4374 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
    4375 else
    4376   # Is the header compilable?
    4377 echo "$as_me:$LINENO: checking $ac_header usability" >&5
    4378 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
    4379 cat >conftest.$ac_ext <<_ACEOF
    4380 /* confdefs.h.  */
    4381 _ACEOF
    4382 cat confdefs.h >>conftest.$ac_ext
    4383 cat >>conftest.$ac_ext <<_ACEOF
    4384 /* end confdefs.h.  */
    4385 $ac_includes_default
    4386 #include <$ac_header>
    4387 _ACEOF
    4388 rm -f conftest.$ac_objext
    4389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    4390   (eval $ac_compile) 2>conftest.er1
    4391   ac_status=$?
    4392   grep -v '^ *+' conftest.er1 >conftest.err
    4393   rm -f conftest.er1
    4394   cat conftest.err >&5
    4395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4396   (exit $ac_status); } &&
    4397          { ac_try='test -z "$ac_c_werror_flag"
    4398                          || test ! -s conftest.err'
    4399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4400   (eval $ac_try) 2>&5
    4401   ac_status=$?
    4402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4403   (exit $ac_status); }; } &&
    4404          { ac_try='test -s conftest.$ac_objext'
    4405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4406   (eval $ac_try) 2>&5
    4407   ac_status=$?
    4408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4409   (exit $ac_status); }; }; then
    4410   ac_header_compiler=yes
    4411 else
    4412   echo "$as_me: failed program was:" >&5
    4413 sed 's/^/| /' conftest.$ac_ext >&5
    4414 
    4415 ac_header_compiler=no
    4416 fi
    4417 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    4418 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
    4419 echo "${ECHO_T}$ac_header_compiler" >&6
    4420 
    4421 # Is the header present?
    4422 echo "$as_me:$LINENO: checking $ac_header presence" >&5
    4423 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
    4424 cat >conftest.$ac_ext <<_ACEOF
    4425 /* confdefs.h.  */
    4426 _ACEOF
    4427 cat confdefs.h >>conftest.$ac_ext
    4428 cat >>conftest.$ac_ext <<_ACEOF
    4429 /* end confdefs.h.  */
    4430 #include <$ac_header>
    4431 _ACEOF
    4432 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
    4433   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    4434   ac_status=$?
    4435   grep -v '^ *+' conftest.er1 >conftest.err
    4436   rm -f conftest.er1
    4437   cat conftest.err >&5
    4438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4439   (exit $ac_status); } >/dev/null; then
    4440   if test -s conftest.err; then
    4441     ac_cpp_err=$ac_c_preproc_warn_flag
    4442     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
    4443   else
    4444     ac_cpp_err=
    4445   fi
    4446 else
    4447   ac_cpp_err=yes
    4448 fi
    4449 if test -z "$ac_cpp_err"; then
    4450   ac_header_preproc=yes
    4451 else
    4452   echo "$as_me: failed program was:" >&5
    4453 sed 's/^/| /' conftest.$ac_ext >&5
    4454 
    4455   ac_header_preproc=no
    4456 fi
    4457 rm -f conftest.err conftest.$ac_ext
    4458 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
    4459 echo "${ECHO_T}$ac_header_preproc" >&6
    4460 
    4461 # So?  What about this header?
    4462 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
    4463   yes:no: )
    4464     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
    4465 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    4466     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
    4467 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
    4468     ac_header_preproc=yes
    4469     ;;
    4470   no:yes:* )
    4471     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
    4472 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    4473     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
    4474 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    4475     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
    4476 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    4477     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
    4478 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
    4479     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
    4480 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    4481     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
    4482 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
    4483     (
    4484       cat <<\_ASBOX
    4485 ## ------------------------------------------ ##
    4486 ## Report this to the AC_PACKAGE_NAME lists.  ##
    4487 ## ------------------------------------------ ##
    4488 _ASBOX
    4489     ) |
    4490       sed "s/^/$as_me: WARNING:     /" >&2
    4491     ;;
    4492 esac
    4493 echo "$as_me:$LINENO: checking for $ac_header" >&5
    4494 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
    4495 if eval "test \"\${$as_ac_Header+set}\" = set"; then
    4496   echo $ECHO_N "(cached) $ECHO_C" >&6
    4497 else
    4498   eval "$as_ac_Header=\$ac_header_preproc"
    4499 fi
    4500 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
    4501 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
    4502 
    4503 fi
    4504 if test `eval echo '${'$as_ac_Header'}'` = yes; then
    4505   cat >>confdefs.h <<_ACEOF
    4506 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
    4507 _ACEOF
    4508 
    4509 fi
    4510 
    4511 done
    4512 
    4513 ac_ext=cc
    4514 ac_cpp='$CXXCPP $CPPFLAGS'
    4515 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    4516 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    4517 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
    4518 if test -n "$ac_tool_prefix"; then
    4519   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
    4520   do
    4521     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
    4522 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
    4523 echo "$as_me:$LINENO: checking for $ac_word" >&5
    4524 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    4525 if test "${ac_cv_prog_CXX+set}" = set; then
    4526   echo $ECHO_N "(cached) $ECHO_C" >&6
    4527 else
    4528   if test -n "$CXX"; then
    4529   ac_cv_prog_CXX="$CXX" # Let the user override the test.
    4530 else
    4531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    4532 for as_dir in $PATH
    4533 do
    4534   IFS=$as_save_IFS
    4535   test -z "$as_dir" && as_dir=.
    4536   for ac_exec_ext in '' $ac_executable_extensions; do
    4537   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    4538     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
    4539     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    4540     break 2
    4541   fi
    4542 done
    4543 done
    4544 
    4545 fi
    4546 fi
    4547 CXX=$ac_cv_prog_CXX
    4548 if test -n "$CXX"; then
    4549   echo "$as_me:$LINENO: result: $CXX" >&5
    4550 echo "${ECHO_T}$CXX" >&6
    4551 else
    4552   echo "$as_me:$LINENO: result: no" >&5
    4553 echo "${ECHO_T}no" >&6
    4554 fi
    4555 
    4556     test -n "$CXX" && break
    4557   done
    4558 fi
    4559 if test -z "$CXX"; then
    4560   ac_ct_CXX=$CXX
    4561   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
    4562 do
    4563   # Extract the first word of "$ac_prog", so it can be a program name with args.
    4564 set dummy $ac_prog; ac_word=$2
    4565 echo "$as_me:$LINENO: checking for $ac_word" >&5
    4566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    4567 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
    4568   echo $ECHO_N "(cached) $ECHO_C" >&6
    4569 else
    4570   if test -n "$ac_ct_CXX"; then
    4571   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
    4572 else
    4573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    4574 for as_dir in $PATH
    4575 do
    4576   IFS=$as_save_IFS
    4577   test -z "$as_dir" && as_dir=.
    4578   for ac_exec_ext in '' $ac_executable_extensions; do
    4579   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    4580     ac_cv_prog_ac_ct_CXX="$ac_prog"
    4581     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    4582     break 2
    4583   fi
    4584 done
    4585 done
    4586 
    4587 fi
    4588 fi
    4589 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
    4590 if test -n "$ac_ct_CXX"; then
    4591   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
    4592 echo "${ECHO_T}$ac_ct_CXX" >&6
    4593 else
    4594   echo "$as_me:$LINENO: result: no" >&5
    4595 echo "${ECHO_T}no" >&6
    4596 fi
    4597 
    4598   test -n "$ac_ct_CXX" && break
    4599 done
    4600 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
    4601 
    4602   CXX=$ac_ct_CXX
    4603 fi
    4604 
    4605 
    4606 # Provide some information about the compiler.
    4607 echo "$as_me:$LINENO:" \
    4608      "checking for C++ compiler version" >&5
    4609 ac_compiler=`set X $ac_compile; echo $2`
    4610 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
    4611   (eval $ac_compiler --version </dev/null >&5) 2>&5
    4612   ac_status=$?
    4613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4614   (exit $ac_status); }
    4615 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
    4616   (eval $ac_compiler -v </dev/null >&5) 2>&5
    4617   ac_status=$?
    4618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4619   (exit $ac_status); }
    4620 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
    4621   (eval $ac_compiler -V </dev/null >&5) 2>&5
    4622   ac_status=$?
    4623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4624   (exit $ac_status); }
    4625 
    4626 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
    4627 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
    4628 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
    4629   echo $ECHO_N "(cached) $ECHO_C" >&6
    4630 else
    4631   cat >conftest.$ac_ext <<_ACEOF
    4632 /* confdefs.h.  */
    4633 _ACEOF
    4634 cat confdefs.h >>conftest.$ac_ext
    4635 cat >>conftest.$ac_ext <<_ACEOF
    4636 /* end confdefs.h.  */
    4637 
    4638 int
    4639 main ()
    4640 {
    4641 #ifndef __GNUC__
    4642        choke me
    4643 #endif
    4644 
    4645   ;
    4646   return 0;
    4647 }
    4648 _ACEOF
    4649 rm -f conftest.$ac_objext
    4650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    4651   (eval $ac_compile) 2>conftest.er1
    4652   ac_status=$?
    4653   grep -v '^ *+' conftest.er1 >conftest.err
    4654   rm -f conftest.er1
    4655   cat conftest.err >&5
    4656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4657   (exit $ac_status); } &&
    4658          { ac_try='test -z "$ac_cxx_werror_flag"
    4659                          || test ! -s conftest.err'
    4660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4661   (eval $ac_try) 2>&5
    4662   ac_status=$?
    4663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4664   (exit $ac_status); }; } &&
    4665          { ac_try='test -s conftest.$ac_objext'
    4666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4667   (eval $ac_try) 2>&5
    4668   ac_status=$?
    4669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4670   (exit $ac_status); }; }; then
    4671   ac_compiler_gnu=yes
    4672 else
    4673   echo "$as_me: failed program was:" >&5
    4674 sed 's/^/| /' conftest.$ac_ext >&5
    4675 
    4676 ac_compiler_gnu=no
    4677 fi
    4678 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    4679 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
    4680 
    4681 fi
    4682 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
    4683 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
    4684 GXX=`test $ac_compiler_gnu = yes && echo yes`
    4685 ac_test_CXXFLAGS=${CXXFLAGS+set}
    4686 ac_save_CXXFLAGS=$CXXFLAGS
    4687 CXXFLAGS="-g"
    4688 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
    4689 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
    4690 if test "${ac_cv_prog_cxx_g+set}" = set; then
    4691   echo $ECHO_N "(cached) $ECHO_C" >&6
    4692 else
    4693   cat >conftest.$ac_ext <<_ACEOF
    4694 /* confdefs.h.  */
    4695 _ACEOF
    4696 cat confdefs.h >>conftest.$ac_ext
    4697 cat >>conftest.$ac_ext <<_ACEOF
    4698 /* end confdefs.h.  */
    4699 
    4700 int
    4701 main ()
    4702 {
    4703 
    4704   ;
    4705   return 0;
    4706 }
    4707 _ACEOF
    4708 rm -f conftest.$ac_objext
    4709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    4710   (eval $ac_compile) 2>conftest.er1
    4711   ac_status=$?
    4712   grep -v '^ *+' conftest.er1 >conftest.err
    4713   rm -f conftest.er1
    4714   cat conftest.err >&5
    4715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4716   (exit $ac_status); } &&
    4717          { ac_try='test -z "$ac_cxx_werror_flag"
    4718                          || test ! -s conftest.err'
    4719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4720   (eval $ac_try) 2>&5
    4721   ac_status=$?
    4722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4723   (exit $ac_status); }; } &&
    4724          { ac_try='test -s conftest.$ac_objext'
    4725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4726   (eval $ac_try) 2>&5
    4727   ac_status=$?
    4728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4729   (exit $ac_status); }; }; then
    4730   ac_cv_prog_cxx_g=yes
    4731 else
    4732   echo "$as_me: failed program was:" >&5
    4733 sed 's/^/| /' conftest.$ac_ext >&5
    4734 
    4735 ac_cv_prog_cxx_g=no
    4736 fi
    4737 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    4738 fi
    4739 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
    4740 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
    4741 if test "$ac_test_CXXFLAGS" = set; then
    4742   CXXFLAGS=$ac_save_CXXFLAGS
    4743 elif test $ac_cv_prog_cxx_g = yes; then
    4744   if test "$GXX" = yes; then
    4745     CXXFLAGS="-g -O2"
    4746   else
    4747     CXXFLAGS="-g"
    4748   fi
    4749 else
    4750   if test "$GXX" = yes; then
    4751     CXXFLAGS="-O2"
    4752   else
    4753     CXXFLAGS=
    4754   fi
    4755 fi
    4756 for ac_declaration in \
    4757    '' \
    4758    'extern "C" void std::exit (int) throw (); using std::exit;' \
    4759    'extern "C" void std::exit (int); using std::exit;' \
    4760    'extern "C" void exit (int) throw ();' \
    4761    'extern "C" void exit (int);' \
    4762    'void exit (int);'
    4763 do
    4764   cat >conftest.$ac_ext <<_ACEOF
    4765 /* confdefs.h.  */
    4766 _ACEOF
    4767 cat confdefs.h >>conftest.$ac_ext
    4768 cat >>conftest.$ac_ext <<_ACEOF
    4769 /* end confdefs.h.  */
    4770 $ac_declaration
    4771 #include <stdlib.h>
    4772 int
    4773 main ()
    4774 {
    4775 exit (42);
    4776   ;
    4777   return 0;
    4778 }
    4779 _ACEOF
    4780 rm -f conftest.$ac_objext
    4781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    4782   (eval $ac_compile) 2>conftest.er1
    4783   ac_status=$?
    4784   grep -v '^ *+' conftest.er1 >conftest.err
    4785   rm -f conftest.er1
    4786   cat conftest.err >&5
    4787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4788   (exit $ac_status); } &&
    4789          { ac_try='test -z "$ac_cxx_werror_flag"
    4790                          || test ! -s conftest.err'
    4791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4792   (eval $ac_try) 2>&5
    4793   ac_status=$?
    4794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4795   (exit $ac_status); }; } &&
    4796          { ac_try='test -s conftest.$ac_objext'
    4797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4798   (eval $ac_try) 2>&5
    4799   ac_status=$?
    4800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4801   (exit $ac_status); }; }; then
    4802   :
    4803 else
    4804   echo "$as_me: failed program was:" >&5
    4805 sed 's/^/| /' conftest.$ac_ext >&5
    4806 
    4807 continue
    4808 fi
    4809 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    4810   cat >conftest.$ac_ext <<_ACEOF
    4811 /* confdefs.h.  */
    4812 _ACEOF
    4813 cat confdefs.h >>conftest.$ac_ext
    4814 cat >>conftest.$ac_ext <<_ACEOF
    4815 /* end confdefs.h.  */
    4816 $ac_declaration
    4817 int
    4818 main ()
    4819 {
    4820 exit (42);
    4821   ;
    4822   return 0;
    4823 }
    4824 _ACEOF
    4825 rm -f conftest.$ac_objext
    4826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    4827   (eval $ac_compile) 2>conftest.er1
    4828   ac_status=$?
    4829   grep -v '^ *+' conftest.er1 >conftest.err
    4830   rm -f conftest.er1
    4831   cat conftest.err >&5
    4832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4833   (exit $ac_status); } &&
    4834          { ac_try='test -z "$ac_cxx_werror_flag"
    4835                          || test ! -s conftest.err'
    4836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4837   (eval $ac_try) 2>&5
    4838   ac_status=$?
    4839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4840   (exit $ac_status); }; } &&
    4841          { ac_try='test -s conftest.$ac_objext'
    4842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4843   (eval $ac_try) 2>&5
    4844   ac_status=$?
    4845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4846   (exit $ac_status); }; }; then
    4847   break
    4848 else
    4849   echo "$as_me: failed program was:" >&5
    4850 sed 's/^/| /' conftest.$ac_ext >&5
    4851 
    4852 fi
    4853 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    4854 done
    4855 rm -f conftest*
    4856 if test -n "$ac_declaration"; then
    4857   echo '#ifdef __cplusplus' >>confdefs.h
    4858   echo $ac_declaration      >>confdefs.h
    4859   echo '#endif'             >>confdefs.h
    4860 fi
    4861 
    4862 ac_ext=cc
    4863 ac_cpp='$CXXCPP $CPPFLAGS'
    4864 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    4865 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    4866 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
    4867 
    4868 depcc="$CXX"  am_compiler_list=
    4869 
    4870 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
    4871 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
    4872 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
    4873   echo $ECHO_N "(cached) $ECHO_C" >&6
    4874 else
    4875   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
    4876   # We make a subdir and do the tests there.  Otherwise we can end up
    4877   # making bogus files that we don't know about and never remove.  For
    4878   # instance it was reported that on HP-UX the gcc test will end up
    4879   # making a dummy file named `D' -- because `-MD' means `put the output
    4880   # in D'.
    4881   mkdir conftest.dir
    4882   # Copy depcomp to subdir because otherwise we won't find it if we're
    4883   # using a relative directory.
    4884   cp "$am_depcomp" conftest.dir
    4885   cd conftest.dir
    4886   # We will build objects and dependencies in a subdirectory because
    4887   # it helps to detect inapplicable dependency modes.  For instance
    4888   # both Tru64's cc and ICC support -MD to output dependencies as a
    4889   # side effect of compilation, but ICC will put the dependencies in
    4890   # the current directory while Tru64 will put them in the object
    4891   # directory.
    4892   mkdir sub
    4893 
    4894   am_cv_CXX_dependencies_compiler_type=none
    4895   if test "$am_compiler_list" = ""; then
    4896      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
    4897   fi
    4898   for depmode in $am_compiler_list; do
    4899     # Setup a source with many dependencies, because some compilers
    4900     # like to wrap large dependency lists on column 80 (with \), and
    4901     # we should not choose a depcomp mode which is confused by this.
    4902     #
    4903     # We need to recreate these files for each test, as the compiler may
    4904     # overwrite some of them when testing with obscure command lines.
    4905     # This happens at least with the AIX C compiler.
    4906     : > sub/conftest.c
    4907     for i in 1 2 3 4 5 6; do
    4908       echo '#include "conftst'$i'.h"' >> sub/conftest.c
    4909       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
    4910       # Solaris 8's {/usr,}/bin/sh.
    4911       touch sub/conftst$i.h
    4912     done
    4913     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
    4914 
    4915     case $depmode in
    4916     nosideeffect)
    4917       # after this tag, mechanisms are not by side-effect, so they'll
    4918       # only be used when explicitly requested
    4919       if test "x$enable_dependency_tracking" = xyes; then
    4920         continue
    4921       else
    4922         break
    4923       fi
    4924       ;;
    4925     none) break ;;
    4926     esac
    4927     # We check with `-c' and `-o' for the sake of the "dashmstdout"
    4928     # mode.  It turns out that the SunPro C++ compiler does not properly
    4929     # handle `-M -o', and we need to detect this.
    4930     if depmode=$depmode \
    4931        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
    4932        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
    4933        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
    4934          >/dev/null 2>conftest.err &&
    4935        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
    4936        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
    4937        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
    4938       # icc doesn't choke on unknown options, it will just issue warnings
    4939       # (even with -Werror).  So we grep stderr for any message
    4940       # that says an option was ignored.
    4941       if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
    4942         am_cv_CXX_dependencies_compiler_type=$depmode
    4943         break
    4944       fi
    4945     fi
    4946   done
    4947 
    4948   cd ..
    4949   rm -rf conftest.dir
    4950 else
    4951   am_cv_CXX_dependencies_compiler_type=none
    4952 fi
    4953 
    4954 fi
    4955 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
    4956 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
    4957 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
    4958 
    4959 
    4960 
    4961 if
    4962   test "x$enable_dependency_tracking" != xno \
    4963   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
    4964   am__fastdepCXX_TRUE=
    4965   am__fastdepCXX_FALSE='#'
    4966 else
    4967   am__fastdepCXX_TRUE='#'
    4968   am__fastdepCXX_FALSE=
    4969 fi
    4970 
    4971 
    4972 ac_ext=cc
    4973 ac_cpp='$CXXCPP $CPPFLAGS'
    4974 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    4975 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    4976 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
    4977 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
    4978 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
    4979 if test -z "$CXXCPP"; then
    4980   if test "${ac_cv_prog_CXXCPP+set}" = set; then
    4981   echo $ECHO_N "(cached) $ECHO_C" >&6
    4982 else
    4983       # Double quotes because CXXCPP needs to be expanded
    4984     for CXXCPP in "$CXX -E" "/lib/cpp"
    4985     do
    4986       ac_preproc_ok=false
    4987 for ac_cxx_preproc_warn_flag in '' yes
    4988 do
    4989   # Use a header file that comes with gcc, so configuring glibc
    4990   # with a fresh cross-compiler works.
    4991   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    4992   # <limits.h> exists even on freestanding compilers.
    4993   # On the NeXT, cc -E runs the code through the compiler's parser,
    4994   # not just through cpp. "Syntax error" is here to catch this case.
    4995   cat >conftest.$ac_ext <<_ACEOF
    4996 /* confdefs.h.  */
    4997 _ACEOF
    4998 cat confdefs.h >>conftest.$ac_ext
    4999 cat >>conftest.$ac_ext <<_ACEOF
    5000 /* end confdefs.h.  */
    5001 #ifdef __STDC__
    5002 # include <limits.h>
    5003 #else
    5004 # include <assert.h>
    5005 #endif
    5006                      Syntax error
    5007 _ACEOF
    5008 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
    5009   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    5010   ac_status=$?
    5011   grep -v '^ *+' conftest.er1 >conftest.err
    5012   rm -f conftest.er1
    5013   cat conftest.err >&5
    5014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5015   (exit $ac_status); } >/dev/null; then
    5016   if test -s conftest.err; then
    5017     ac_cpp_err=$ac_cxx_preproc_warn_flag
    5018     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
    5019   else
    5020     ac_cpp_err=
    5021   fi
    5022 else
    5023   ac_cpp_err=yes
    5024 fi
    5025 if test -z "$ac_cpp_err"; then
    5026   :
    5027 else
    5028   echo "$as_me: failed program was:" >&5
    5029 sed 's/^/| /' conftest.$ac_ext >&5
    5030 
    5031   # Broken: fails on valid input.
    5032 continue
    5033 fi
    5034 rm -f conftest.err conftest.$ac_ext
    5035 
    5036   # OK, works on sane cases.  Now check whether non-existent headers
    5037   # can be detected and how.
    5038   cat >conftest.$ac_ext <<_ACEOF
    5039 /* confdefs.h.  */
    5040 _ACEOF
    5041 cat confdefs.h >>conftest.$ac_ext
    5042 cat >>conftest.$ac_ext <<_ACEOF
    5043 /* end confdefs.h.  */
    5044 #include <ac_nonexistent.h>
    5045 _ACEOF
    5046 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
    5047   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    5048   ac_status=$?
    5049   grep -v '^ *+' conftest.er1 >conftest.err
    5050   rm -f conftest.er1
    5051   cat conftest.err >&5
    5052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5053   (exit $ac_status); } >/dev/null; then
    5054   if test -s conftest.err; then
    5055     ac_cpp_err=$ac_cxx_preproc_warn_flag
    5056     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
    5057   else
    5058     ac_cpp_err=
    5059   fi
    5060 else
    5061   ac_cpp_err=yes
    5062 fi
    5063 if test -z "$ac_cpp_err"; then
    5064   # Broken: success on invalid input.
    5065 continue
    5066 else
    5067   echo "$as_me: failed program was:" >&5
    5068 sed 's/^/| /' conftest.$ac_ext >&5
    5069 
    5070   # Passes both tests.
    5071 ac_preproc_ok=:
    5072 break
    5073 fi
    5074 rm -f conftest.err conftest.$ac_ext
    5075 
    5076 done
    5077 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
    5078 rm -f conftest.err conftest.$ac_ext
    5079 if $ac_preproc_ok; then
    5080   break
    5081 fi
    5082 
    5083     done
    5084     ac_cv_prog_CXXCPP=$CXXCPP
    5085 
    5086 fi
    5087   CXXCPP=$ac_cv_prog_CXXCPP
    5088 else
    5089   ac_cv_prog_CXXCPP=$CXXCPP
    5090 fi
    5091 echo "$as_me:$LINENO: result: $CXXCPP" >&5
    5092 echo "${ECHO_T}$CXXCPP" >&6
    5093 ac_preproc_ok=false
    5094 for ac_cxx_preproc_warn_flag in '' yes
    5095 do
    5096   # Use a header file that comes with gcc, so configuring glibc
    5097   # with a fresh cross-compiler works.
    5098   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    5099   # <limits.h> exists even on freestanding compilers.
    5100   # On the NeXT, cc -E runs the code through the compiler's parser,
    5101   # not just through cpp. "Syntax error" is here to catch this case.
    5102   cat >conftest.$ac_ext <<_ACEOF
    5103 /* confdefs.h.  */
    5104 _ACEOF
    5105 cat confdefs.h >>conftest.$ac_ext
    5106 cat >>conftest.$ac_ext <<_ACEOF
    5107 /* end confdefs.h.  */
    5108 #ifdef __STDC__
    5109 # include <limits.h>
    5110 #else
    5111 # include <assert.h>
    5112 #endif
    5113                      Syntax error
    5114 _ACEOF
    5115 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
    5116   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    5117   ac_status=$?
    5118   grep -v '^ *+' conftest.er1 >conftest.err
    5119   rm -f conftest.er1
    5120   cat conftest.err >&5
    5121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5122   (exit $ac_status); } >/dev/null; then
    5123   if test -s conftest.err; then
    5124     ac_cpp_err=$ac_cxx_preproc_warn_flag
    5125     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
    5126   else
    5127     ac_cpp_err=
    5128   fi
    5129 else
    5130   ac_cpp_err=yes
    5131 fi
    5132 if test -z "$ac_cpp_err"; then
    5133   :
    5134 else
    5135   echo "$as_me: failed program was:" >&5
    5136 sed 's/^/| /' conftest.$ac_ext >&5
    5137 
    5138   # Broken: fails on valid input.
    5139 continue
    5140 fi
    5141 rm -f conftest.err conftest.$ac_ext
    5142 
    5143   # OK, works on sane cases.  Now check whether non-existent headers
    5144   # can be detected and how.
    5145   cat >conftest.$ac_ext <<_ACEOF
    5146 /* confdefs.h.  */
    5147 _ACEOF
    5148 cat confdefs.h >>conftest.$ac_ext
    5149 cat >>conftest.$ac_ext <<_ACEOF
    5150 /* end confdefs.h.  */
    5151 #include <ac_nonexistent.h>
    5152 _ACEOF
    5153 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
    5154   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    5155   ac_status=$?
    5156   grep -v '^ *+' conftest.er1 >conftest.err
    5157   rm -f conftest.er1
    5158   cat conftest.err >&5
    5159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5160   (exit $ac_status); } >/dev/null; then
    5161   if test -s conftest.err; then
    5162     ac_cpp_err=$ac_cxx_preproc_warn_flag
    5163     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
    5164   else
    5165     ac_cpp_err=
    5166   fi
    5167 else
    5168   ac_cpp_err=yes
    5169 fi
    5170 if test -z "$ac_cpp_err"; then
    5171   # Broken: success on invalid input.
    5172 continue
    5173 else
    5174   echo "$as_me: failed program was:" >&5
    5175 sed 's/^/| /' conftest.$ac_ext >&5
    5176 
    5177   # Passes both tests.
    5178 ac_preproc_ok=:
    5179 break
    5180 fi
    5181 rm -f conftest.err conftest.$ac_ext
    5182 
    5183 done
    5184 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
    5185 rm -f conftest.err conftest.$ac_ext
    5186 if $ac_preproc_ok; then
    5187   :
    5188 else
    5189   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
    5190 See \`config.log' for more details." >&5
    5191 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
    5192 See \`config.log' for more details." >&2;}
    5193    { (exit 1); exit 1; }; }
    5194 fi
    5195 
    5196 ac_ext=cc
    5197 ac_cpp='$CXXCPP $CPPFLAGS'
    5198 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    5199 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    5200 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
    5201 
    5202 
    5203 ac_ext=f
    5204 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
    5205 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    5206 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
    5207 if test -n "$ac_tool_prefix"; then
    5208   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
    5209   do
    5210     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
    5211 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
    5212 echo "$as_me:$LINENO: checking for $ac_word" >&5
    5213 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    5214 if test "${ac_cv_prog_F77+set}" = set; then
    5215   echo $ECHO_N "(cached) $ECHO_C" >&6
    5216 else
    5217   if test -n "$F77"; then
    5218   ac_cv_prog_F77="$F77" # Let the user override the test.
    5219 else
    5220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    5221 for as_dir in $PATH
    5222 do
    5223   IFS=$as_save_IFS
    5224   test -z "$as_dir" && as_dir=.
    5225   for ac_exec_ext in '' $ac_executable_extensions; do
    5226   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    5227     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
    5228     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    5229     break 2
    5230   fi
    5231 done
    5232 done
    5233 
    5234 fi
    5235 fi
    5236 F77=$ac_cv_prog_F77
    5237 if test -n "$F77"; then
    5238   echo "$as_me:$LINENO: result: $F77" >&5
    5239 echo "${ECHO_T}$F77" >&6
    5240 else
    5241   echo "$as_me:$LINENO: result: no" >&5
    5242 echo "${ECHO_T}no" >&6
    5243 fi
    5244 
    5245     test -n "$F77" && break
    5246   done
    5247 fi
    5248 if test -z "$F77"; then
    5249   ac_ct_F77=$F77
    5250   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
    5251 do
    5252   # Extract the first word of "$ac_prog", so it can be a program name with args.
    5253 set dummy $ac_prog; ac_word=$2
    5254 echo "$as_me:$LINENO: checking for $ac_word" >&5
    5255 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    5256 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
    5257   echo $ECHO_N "(cached) $ECHO_C" >&6
    5258 else
    5259   if test -n "$ac_ct_F77"; then
    5260   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
    5261 else
    5262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    5263 for as_dir in $PATH
    5264 do
    5265   IFS=$as_save_IFS
    5266   test -z "$as_dir" && as_dir=.
    5267   for ac_exec_ext in '' $ac_executable_extensions; do
    5268   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    5269     ac_cv_prog_ac_ct_F77="$ac_prog"
    5270     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    5271     break 2
    5272   fi
    5273 done
    5274 done
    5275 
    5276 fi
    5277 fi
    5278 ac_ct_F77=$ac_cv_prog_ac_ct_F77
    5279 if test -n "$ac_ct_F77"; then
    5280   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
    5281 echo "${ECHO_T}$ac_ct_F77" >&6
    5282 else
    5283   echo "$as_me:$LINENO: result: no" >&5
    5284 echo "${ECHO_T}no" >&6
    5285 fi
    5286 
    5287   test -n "$ac_ct_F77" && break
    5288 done
    5289 
    5290   F77=$ac_ct_F77
    5291 fi
    5292 
    5293 
    5294 # Provide some information about the compiler.
    5295 echo "$as_me:5295:" \
    5296      "checking for Fortran 77 compiler version" >&5
    5297 ac_compiler=`set X $ac_compile; echo $2`
    5298 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
    5299   (eval $ac_compiler --version </dev/null >&5) 2>&5
    5300   ac_status=$?
    5301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5302   (exit $ac_status); }
    5303 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
    5304   (eval $ac_compiler -v </dev/null >&5) 2>&5
    5305   ac_status=$?
    5306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5307   (exit $ac_status); }
    5308 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
    5309   (eval $ac_compiler -V </dev/null >&5) 2>&5
    5310   ac_status=$?
    5311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5312   (exit $ac_status); }
    5313 rm -f a.out
    5314 
    5315 # If we don't use `.F' as extension, the preprocessor is not run on the
    5316 # input file.  (Note that this only needs to work for GNU compilers.)
    5317 ac_save_ext=$ac_ext
    5318 ac_ext=F
    5319 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
    5320 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
    5321 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
    5322   echo $ECHO_N "(cached) $ECHO_C" >&6
    5323 else
    5324   cat >conftest.$ac_ext <<_ACEOF
    5325       program main
    5326 #ifndef __GNUC__
    5327        choke me
    5328 #endif
    5329 
    5330       end
    5331 _ACEOF
    5332 rm -f conftest.$ac_objext
    5333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    5334   (eval $ac_compile) 2>conftest.er1
    5335   ac_status=$?
    5336   grep -v '^ *+' conftest.er1 >conftest.err
    5337   rm -f conftest.er1
    5338   cat conftest.err >&5
    5339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5340   (exit $ac_status); } &&
    5341          { ac_try='test -z "$ac_f77_werror_flag"
    5342                          || test ! -s conftest.err'
    5343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5344   (eval $ac_try) 2>&5
    5345   ac_status=$?
    5346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5347   (exit $ac_status); }; } &&
    5348          { ac_try='test -s conftest.$ac_objext'
    5349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5350   (eval $ac_try) 2>&5
    5351   ac_status=$?
    5352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5353   (exit $ac_status); }; }; then
    5354   ac_compiler_gnu=yes
    5355 else
    5356   echo "$as_me: failed program was:" >&5
    5357 sed 's/^/| /' conftest.$ac_ext >&5
    5358 
    5359 ac_compiler_gnu=no
    5360 fi
    5361 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    5362 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
    5363 
    5364 fi
    5365 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
    5366 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
    5367 ac_ext=$ac_save_ext
    5368 ac_test_FFLAGS=${FFLAGS+set}
    5369 ac_save_FFLAGS=$FFLAGS
    5370 FFLAGS=
    5371 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
    5372 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
    5373 if test "${ac_cv_prog_f77_g+set}" = set; then
    5374   echo $ECHO_N "(cached) $ECHO_C" >&6
    5375 else
    5376   FFLAGS=-g
    5377 cat >conftest.$ac_ext <<_ACEOF
    5378       program main
    5379 
    5380       end
    5381 _ACEOF
    5382 rm -f conftest.$ac_objext
    5383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    5384   (eval $ac_compile) 2>conftest.er1
    5385   ac_status=$?
    5386   grep -v '^ *+' conftest.er1 >conftest.err
    5387   rm -f conftest.er1
    5388   cat conftest.err >&5
    5389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5390   (exit $ac_status); } &&
    5391          { ac_try='test -z "$ac_f77_werror_flag"
    5392                          || test ! -s conftest.err'
    5393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5394   (eval $ac_try) 2>&5
    5395   ac_status=$?
    5396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5397   (exit $ac_status); }; } &&
    5398          { ac_try='test -s conftest.$ac_objext'
    5399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    5400   (eval $ac_try) 2>&5
    5401   ac_status=$?
    5402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5403   (exit $ac_status); }; }; then
    5404   ac_cv_prog_f77_g=yes
    5405 else
    5406   echo "$as_me: failed program was:" >&5
    5407 sed 's/^/| /' conftest.$ac_ext >&5
    5408 
    5409 ac_cv_prog_f77_g=no
    5410 fi
    5411 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    5412 
    5413 fi
    5414 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
    5415 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
    5416 if test "$ac_test_FFLAGS" = set; then
    5417   FFLAGS=$ac_save_FFLAGS
    5418 elif test $ac_cv_prog_f77_g = yes; then
    5419   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
    5420     FFLAGS="-g -O2"
    5421   else
    5422     FFLAGS="-g"
    5423   fi
    5424 else
    5425   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
    5426     FFLAGS="-O2"
    5427   else
    5428     FFLAGS=
    5429   fi
    5430 fi
    5431 
    5432 G77=`test $ac_compiler_gnu = yes && echo yes`
    5433 ac_ext=c
    5434 ac_cpp='$CPP $CPPFLAGS'
    5435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    5436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    5437 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    5438 
    5439 
    5440 
    5441 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
    5442 
    5443 # find the maximum length of command line arguments
    5444 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
    5445 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
    5446 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
    5447   echo $ECHO_N "(cached) $ECHO_C" >&6
    5448 else
    5449     i=0
    5450   teststring="ABCD"
    5451 
    5452   case $build_os in
    5453   msdosdjgpp*)
    5454     # On DJGPP, this test can blow up pretty badly due to problems in libc
    5455     # (any single argument exceeding 2000 bytes causes a buffer overrun
    5456     # during glob expansion).  Even if it were fixed, the result of this
    5457     # check would be larger than it should be.
    5458     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
    5459     ;;
    5460 
    5461   gnu*)
    5462     # Under GNU Hurd, this test is not required because there is
    5463     # no limit to the length of command line arguments.
    5464     # Libtool will interpret -1 as no limit whatsoever
    5465     lt_cv_sys_max_cmd_len=-1;
    5466     ;;
    5467 
    5468   cygwin* | mingw*)
    5469     # On Win9x/ME, this test blows up -- it succeeds, but takes
    5470     # about 5 minutes as the teststring grows exponentially.
    5471     # Worse, since 9x/ME are not pre-emptively multitasking,
    5472     # you end up with a "frozen" computer, even though with patience
    5473     # the test eventually succeeds (with a max line length of 256k).
    5474     # Instead, let's just punt: use the minimum linelength reported by
    5475     # all of the supported platforms: 8192 (on NT/2K/XP).
    5476     lt_cv_sys_max_cmd_len=8192;
    5477     ;;
    5478 
    5479   amigaos*)
    5480     # On AmigaOS with pdksh, this test takes hours, literally.
    5481     # So we just punt and use a minimum line length of 8192.
    5482     lt_cv_sys_max_cmd_len=8192;
    5483     ;;
    5484 
    5485  *)
    5486     # If test is not a shell built-in, we'll probably end up computing a
    5487     # maximum length that is only half of the actual maximum length, but
    5488     # we can't tell.
    5489     while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
    5490                = "XX$teststring") >/dev/null 2>&1 &&
    5491             new_result=`expr "X$teststring" : ".*" 2>&1` &&
    5492             lt_cv_sys_max_cmd_len=$new_result &&
    5493             test $i != 17 # 1/2 MB should be enough
    5494     do
    5495       i=`expr $i + 1`
    5496       teststring=$teststring$teststring
    5497     done
    5498     teststring=
    5499     # Add a significant safety factor because C++ compilers can tack on massive
    5500     # amounts of additional arguments before passing them to the linker.
    5501     # It appears as though 1/2 is a usable value.
    5502     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
    5503     ;;
    5504   esac
    5505 
    5506 fi
    5507 
    5508 if test -n $lt_cv_sys_max_cmd_len ; then
    5509   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
    5510 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
    5511 else
    5512   echo "$as_me:$LINENO: result: none" >&5
    5513 echo "${ECHO_T}none" >&6
    5514 fi
     3492
     3493
     3494
     3495
    55153496
    55163497
     
    55183499
    55193500# Check for command to grab the raw symbol name followed by C symbol from nm.
    5520 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
    5521 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
     3501echo "$as_me:$LINENO: checking command to parse $NM output" >&5
     3502echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
    55223503if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
    55233504  echo $ECHO_N "(cached) $ECHO_C" >&6
     
    55373518
    55383519# Transform an extracted symbol line into a proper C declaration
    5539 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
     3520lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
    55403521
    55413522# Transform an extracted symbol line into symbol name and symbol address
    5542 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'"
     3523lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
    55433524
    55443525# Define system-specific variables.
     
    55513532  ;;
    55523533hpux*) # Its linker distinguishes data from code symbols
    5553   if test "$host_cpu" = ia64; then
    5554     symcode='[ABCDEGRST]'
    5555   fi
    5556   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
    5557   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'"
     3534  lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
     3535  lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
    55583536  ;;
    55593537irix* | nonstopux*)
     
    55643542  ;;
    55653543solaris* | sysv5*)
    5566   symcode='[BDRT]'
     3544  symcode='[BDT]'
    55673545  ;;
    55683546sysv4)
     
    55733551# Handle CRLF in mingw tool chain
    55743552opt_cr=
    5575 case $build_os in
     3553case $host_os in
    55763554mingw*)
    55773555  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
     
    55803558
    55813559# If we're using GNU nm, then use its standard symbol codes.
    5582 case `$NM -V 2>&1` in
    5583 *GNU* | *'with BFD'*)
    5584   symcode='[ABCDGIRSTW]' ;;
    5585 esac
     3560if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
     3561  symcode='[ABCDGISTW]'
     3562fi
    55863563
    55873564# Try without a prefix undercore, then with it.
     
    55893566
    55903567  # Write the raw and C identifiers.
    5591   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
     3568lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[         ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
    55923569
    55933570  # Check to see that the pipe works correctly.
    55943571  pipe_works=no
    5595 
    55963572  rm -f conftest*
    55973573  cat > conftest.$ac_ext <<EOF
     
    56273603
    56283604      # Make sure that we snagged all the symbols we need.
    5629       if grep ' nm_test_var$' "$nlist" >/dev/null; then
    5630         if grep ' nm_test_func$' "$nlist" >/dev/null; then
     3605      if egrep ' nm_test_var$' "$nlist" >/dev/null; then
     3606        if egrep ' nm_test_func$' "$nlist" >/dev/null; then
    56313607          cat <<EOF > conftest.$ac_ext
    56323608#ifdef __cplusplus
     
    56363612EOF
    56373613          # Now generate the symbol file.
    5638           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
     3614          eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
    56393615
    56403616          cat <<EOF >> conftest.$ac_ext
    56413617#if defined (__STDC__) && __STDC__
    5642 # define lt_ptr_t void *
     3618# define lt_ptr void *
    56433619#else
    5644 # define lt_ptr_t char *
     3620# define lt_ptr char *
    56453621# define const
    56463622#endif
     
    56493625const struct {
    56503626  const char *name;
    5651   lt_ptr_t address;
     3627  lt_ptr address;
    56523628}
    56533629lt_preloaded_symbols[] =
    56543630{
    56553631EOF
    5656           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
     3632          sed "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
    56573633          cat <<\EOF >> conftest.$ac_ext
    5658   {0, (lt_ptr_t) 0}
     3634  {0, (lt_ptr) 0}
    56593635};
    56603636
     
    56653641          # Now try linking the two files.
    56663642          mv conftest.$ac_objext conftstm.$ac_objext
    5667           lt_save_LIBS="$LIBS"
    5668           lt_save_CFLAGS="$CFLAGS"
     3643          save_LIBS="$LIBS"
     3644          save_CFLAGS="$CFLAGS"
    56693645          LIBS="conftstm.$ac_objext"
    5670           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
     3646          CFLAGS="$CFLAGS$no_builtin_flag"
    56713647          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    56723648  (eval $ac_link) 2>&5
    56733649  ac_status=$?
    56743650  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    5675   (exit $ac_status); } && test -s conftest${ac_exeext}; then
     3651  (exit $ac_status); } && test -s conftest$ac_exeext; then
    56763652            pipe_works=yes
    56773653          fi
    5678           LIBS="$lt_save_LIBS"
    5679           CFLAGS="$lt_save_CFLAGS"
     3654          LIBS="$save_LIBS"
     3655          CFLAGS="$save_CFLAGS"
    56803656        else
    56813657          echo "cannot find nm_test_func in $nlist" >&5
     
    57033679fi
    57043680
     3681global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
    57053682if test -z "$lt_cv_sys_global_symbol_pipe"; then
    5706   lt_cv_sys_global_symbol_to_cdecl=
    5707 fi
    5708 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
     3683  global_symbol_to_cdecl=
     3684  global_symbol_to_c_name_address=
     3685else
     3686  global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
     3687  global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
     3688fi
     3689if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
     3690then
    57093691  echo "$as_me:$LINENO: result: failed" >&5
    57103692echo "${ECHO_T}failed" >&6
     
    57143696fi
    57153697
    5716 echo "$as_me:$LINENO: checking for objdir" >&5
    5717 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
    5718 if test "${lt_cv_objdir+set}" = set; then
     3698ac_ext=c
     3699ac_cpp='$CPP $CPPFLAGS'
     3700ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     3701ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     3702ac_compiler_gnu=$ac_cv_c_compiler_gnu
     3703echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
     3704echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
     3705# On Suns, sometimes $CPP names a directory.
     3706if test -n "$CPP" && test -d "$CPP"; then
     3707  CPP=
     3708fi
     3709if test -z "$CPP"; then
     3710  if test "${ac_cv_prog_CPP+set}" = set; then
    57193711  echo $ECHO_N "(cached) $ECHO_C" >&6
    57203712else
    5721   rm -f .libs 2>/dev/null
    5722 mkdir .libs 2>/dev/null
    5723 if test -d .libs; then
    5724   lt_cv_objdir=.libs
    5725 else
    5726   # MS-DOS does not allow filenames that begin with a dot.
    5727   lt_cv_objdir=_libs
    5728 fi
    5729 rmdir .libs 2>/dev/null
    5730 fi
    5731 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
    5732 echo "${ECHO_T}$lt_cv_objdir" >&6
    5733 objdir=$lt_cv_objdir
    5734 
    5735 
    5736 
    5737 
    5738 
    5739 case $host_os in
    5740 aix3*)
    5741   # AIX sometimes has problems with the GCC collect2 program.  For some
    5742   # reason, if we set the COLLECT_NAMES environment variable, the problems
    5743   # vanish in a puff of smoke.
    5744   if test "X${COLLECT_NAMES+set}" != Xset; then
    5745     COLLECT_NAMES=
    5746     export COLLECT_NAMES
     3713      # Double quotes because CPP needs to be expanded
     3714    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
     3715    do
     3716      ac_preproc_ok=false
     3717for ac_c_preproc_warn_flag in '' yes
     3718do
     3719  # Use a header file that comes with gcc, so configuring glibc
     3720  # with a fresh cross-compiler works.
     3721  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     3722  # <limits.h> exists even on freestanding compilers.
     3723  # On the NeXT, cc -E runs the code through the compiler's parser,
     3724  # not just through cpp. "Syntax error" is here to catch this case.
     3725  cat >conftest.$ac_ext <<_ACEOF
     3726#line $LINENO "configure"
     3727/* confdefs.h.  */
     3728_ACEOF
     3729cat confdefs.h >>conftest.$ac_ext
     3730cat >>conftest.$ac_ext <<_ACEOF
     3731/* end confdefs.h.  */
     3732#ifdef __STDC__
     3733# include <limits.h>
     3734#else
     3735# include <assert.h>
     3736#endif
     3737                     Syntax error
     3738_ACEOF
     3739if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     3740  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     3741  ac_status=$?
     3742  grep -v '^ *+' conftest.er1 >conftest.err
     3743  rm -f conftest.er1
     3744  cat conftest.err >&5
     3745  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3746  (exit $ac_status); } >/dev/null; then
     3747  if test -s conftest.err; then
     3748    ac_cpp_err=$ac_c_preproc_warn_flag
     3749  else
     3750    ac_cpp_err=
     3751  fi
     3752else
     3753  ac_cpp_err=yes
     3754fi
     3755if test -z "$ac_cpp_err"; then
     3756  :
     3757else
     3758  echo "$as_me: failed program was:" >&5
     3759sed 's/^/| /' conftest.$ac_ext >&5
     3760
     3761  # Broken: fails on valid input.
     3762continue
     3763fi
     3764rm -f conftest.err conftest.$ac_ext
     3765
     3766  # OK, works on sane cases.  Now check whether non-existent headers
     3767  # can be detected and how.
     3768  cat >conftest.$ac_ext <<_ACEOF
     3769#line $LINENO "configure"
     3770/* confdefs.h.  */
     3771_ACEOF
     3772cat confdefs.h >>conftest.$ac_ext
     3773cat >>conftest.$ac_ext <<_ACEOF
     3774/* end confdefs.h.  */
     3775#include <ac_nonexistent.h>
     3776_ACEOF
     3777if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     3778  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     3779  ac_status=$?
     3780  grep -v '^ *+' conftest.er1 >conftest.err
     3781  rm -f conftest.er1
     3782  cat conftest.err >&5
     3783  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3784  (exit $ac_status); } >/dev/null; then
     3785  if test -s conftest.err; then
     3786    ac_cpp_err=$ac_c_preproc_warn_flag
     3787  else
     3788    ac_cpp_err=
     3789  fi
     3790else
     3791  ac_cpp_err=yes
     3792fi
     3793if test -z "$ac_cpp_err"; then
     3794  # Broken: success on invalid input.
     3795continue
     3796else
     3797  echo "$as_me: failed program was:" >&5
     3798sed 's/^/| /' conftest.$ac_ext >&5
     3799
     3800  # Passes both tests.
     3801ac_preproc_ok=:
     3802break
     3803fi
     3804rm -f conftest.err conftest.$ac_ext
     3805
     3806done
     3807# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
     3808rm -f conftest.err conftest.$ac_ext
     3809if $ac_preproc_ok; then
     3810  break
     3811fi
     3812
     3813    done
     3814    ac_cv_prog_CPP=$CPP
     3815
     3816fi
     3817  CPP=$ac_cv_prog_CPP
     3818else
     3819  ac_cv_prog_CPP=$CPP
     3820fi
     3821echo "$as_me:$LINENO: result: $CPP" >&5
     3822echo "${ECHO_T}$CPP" >&6
     3823ac_preproc_ok=false
     3824for ac_c_preproc_warn_flag in '' yes
     3825do
     3826  # Use a header file that comes with gcc, so configuring glibc
     3827  # with a fresh cross-compiler works.
     3828  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     3829  # <limits.h> exists even on freestanding compilers.
     3830  # On the NeXT, cc -E runs the code through the compiler's parser,
     3831  # not just through cpp. "Syntax error" is here to catch this case.
     3832  cat >conftest.$ac_ext <<_ACEOF
     3833#line $LINENO "configure"
     3834/* confdefs.h.  */
     3835_ACEOF
     3836cat confdefs.h >>conftest.$ac_ext
     3837cat >>conftest.$ac_ext <<_ACEOF
     3838/* end confdefs.h.  */
     3839#ifdef __STDC__
     3840# include <limits.h>
     3841#else
     3842# include <assert.h>
     3843#endif
     3844                     Syntax error
     3845_ACEOF
     3846if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     3847  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     3848  ac_status=$?
     3849  grep -v '^ *+' conftest.er1 >conftest.err
     3850  rm -f conftest.er1
     3851  cat conftest.err >&5
     3852  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3853  (exit $ac_status); } >/dev/null; then
     3854  if test -s conftest.err; then
     3855    ac_cpp_err=$ac_c_preproc_warn_flag
     3856  else
     3857    ac_cpp_err=
     3858  fi
     3859else
     3860  ac_cpp_err=yes
     3861fi
     3862if test -z "$ac_cpp_err"; then
     3863  :
     3864else
     3865  echo "$as_me: failed program was:" >&5
     3866sed 's/^/| /' conftest.$ac_ext >&5
     3867
     3868  # Broken: fails on valid input.
     3869continue
     3870fi
     3871rm -f conftest.err conftest.$ac_ext
     3872
     3873  # OK, works on sane cases.  Now check whether non-existent headers
     3874  # can be detected and how.
     3875  cat >conftest.$ac_ext <<_ACEOF
     3876#line $LINENO "configure"
     3877/* confdefs.h.  */
     3878_ACEOF
     3879cat confdefs.h >>conftest.$ac_ext
     3880cat >>conftest.$ac_ext <<_ACEOF
     3881/* end confdefs.h.  */
     3882#include <ac_nonexistent.h>
     3883_ACEOF
     3884if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     3885  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     3886  ac_status=$?
     3887  grep -v '^ *+' conftest.er1 >conftest.err
     3888  rm -f conftest.er1
     3889  cat conftest.err >&5
     3890  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3891  (exit $ac_status); } >/dev/null; then
     3892  if test -s conftest.err; then
     3893    ac_cpp_err=$ac_c_preproc_warn_flag
     3894  else
     3895    ac_cpp_err=
     3896  fi
     3897else
     3898  ac_cpp_err=yes
     3899fi
     3900if test -z "$ac_cpp_err"; then
     3901  # Broken: success on invalid input.
     3902continue
     3903else
     3904  echo "$as_me: failed program was:" >&5
     3905sed 's/^/| /' conftest.$ac_ext >&5
     3906
     3907  # Passes both tests.
     3908ac_preproc_ok=:
     3909break
     3910fi
     3911rm -f conftest.err conftest.$ac_ext
     3912
     3913done
     3914# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
     3915rm -f conftest.err conftest.$ac_ext
     3916if $ac_preproc_ok; then
     3917  :
     3918else
     3919  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
     3920See \`config.log' for more details." >&5
     3921echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
     3922See \`config.log' for more details." >&2;}
     3923   { (exit 1); exit 1; }; }
     3924fi
     3925
     3926ac_ext=c
     3927ac_cpp='$CPP $CPPFLAGS'
     3928ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     3929ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     3930ac_compiler_gnu=$ac_cv_c_compiler_gnu
     3931
     3932
     3933echo "$as_me:$LINENO: checking for egrep" >&5
     3934echo $ECHO_N "checking for egrep... $ECHO_C" >&6
     3935if test "${ac_cv_prog_egrep+set}" = set; then
     3936  echo $ECHO_N "(cached) $ECHO_C" >&6
     3937else
     3938  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
     3939    then ac_cv_prog_egrep='grep -E'
     3940    else ac_cv_prog_egrep='egrep'
     3941    fi
     3942fi
     3943echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
     3944echo "${ECHO_T}$ac_cv_prog_egrep" >&6
     3945 EGREP=$ac_cv_prog_egrep
     3946
     3947
     3948echo "$as_me:$LINENO: checking for ANSI C header files" >&5
     3949echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
     3950if test "${ac_cv_header_stdc+set}" = set; then
     3951  echo $ECHO_N "(cached) $ECHO_C" >&6
     3952else
     3953  cat >conftest.$ac_ext <<_ACEOF
     3954#line $LINENO "configure"
     3955/* confdefs.h.  */
     3956_ACEOF
     3957cat confdefs.h >>conftest.$ac_ext
     3958cat >>conftest.$ac_ext <<_ACEOF
     3959/* end confdefs.h.  */
     3960#include <stdlib.h>
     3961#include <stdarg.h>
     3962#include <string.h>
     3963#include <float.h>
     3964
     3965int
     3966main ()
     3967{
     3968
     3969  ;
     3970  return 0;
     3971}
     3972_ACEOF
     3973rm -f conftest.$ac_objext
     3974if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     3975  (eval $ac_compile) 2>&5
     3976  ac_status=$?
     3977  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3978  (exit $ac_status); } &&
     3979         { ac_try='test -s conftest.$ac_objext'
     3980  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3981  (eval $ac_try) 2>&5
     3982  ac_status=$?
     3983  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3984  (exit $ac_status); }; }; then
     3985  ac_cv_header_stdc=yes
     3986else
     3987  echo "$as_me: failed program was:" >&5
     3988sed 's/^/| /' conftest.$ac_ext >&5
     3989
     3990ac_cv_header_stdc=no
     3991fi
     3992rm -f conftest.$ac_objext conftest.$ac_ext
     3993
     3994if test $ac_cv_header_stdc = yes; then
     3995  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
     3996  cat >conftest.$ac_ext <<_ACEOF
     3997#line $LINENO "configure"
     3998/* confdefs.h.  */
     3999_ACEOF
     4000cat confdefs.h >>conftest.$ac_ext
     4001cat >>conftest.$ac_ext <<_ACEOF
     4002/* end confdefs.h.  */
     4003#include <string.h>
     4004
     4005_ACEOF
     4006if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
     4007  $EGREP "memchr" >/dev/null 2>&1; then
     4008  :
     4009else
     4010  ac_cv_header_stdc=no
     4011fi
     4012rm -f conftest*
     4013
     4014fi
     4015
     4016if test $ac_cv_header_stdc = yes; then
     4017  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
     4018  cat >conftest.$ac_ext <<_ACEOF
     4019#line $LINENO "configure"
     4020/* confdefs.h.  */
     4021_ACEOF
     4022cat confdefs.h >>conftest.$ac_ext
     4023cat >>conftest.$ac_ext <<_ACEOF
     4024/* end confdefs.h.  */
     4025#include <stdlib.h>
     4026
     4027_ACEOF
     4028if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
     4029  $EGREP "free" >/dev/null 2>&1; then
     4030  :
     4031else
     4032  ac_cv_header_stdc=no
     4033fi
     4034rm -f conftest*
     4035
     4036fi
     4037
     4038if test $ac_cv_header_stdc = yes; then
     4039  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
     4040  if test "$cross_compiling" = yes; then
     4041  :
     4042else
     4043  cat >conftest.$ac_ext <<_ACEOF
     4044#line $LINENO "configure"
     4045/* confdefs.h.  */
     4046_ACEOF
     4047cat confdefs.h >>conftest.$ac_ext
     4048cat >>conftest.$ac_ext <<_ACEOF
     4049/* end confdefs.h.  */
     4050#include <ctype.h>
     4051#if ((' ' & 0x0FF) == 0x020)
     4052# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
     4053# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
     4054#else
     4055# define ISLOWER(c) \
     4056                   (('a' <= (c) && (c) <= 'i') \
     4057                     || ('j' <= (c) && (c) <= 'r') \
     4058                     || ('s' <= (c) && (c) <= 'z'))
     4059# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
     4060#endif
     4061
     4062#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
     4063int
     4064main ()
     4065{
     4066  int i;
     4067  for (i = 0; i < 256; i++)
     4068    if (XOR (islower (i), ISLOWER (i))
     4069        || toupper (i) != TOUPPER (i))
     4070      exit(2);
     4071  exit (0);
     4072}
     4073_ACEOF
     4074rm -f conftest$ac_exeext
     4075if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     4076  (eval $ac_link) 2>&5
     4077  ac_status=$?
     4078  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4079  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
     4080  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4081  (eval $ac_try) 2>&5
     4082  ac_status=$?
     4083  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4084  (exit $ac_status); }; }; then
     4085  :
     4086else
     4087  echo "$as_me: program exited with status $ac_status" >&5
     4088echo "$as_me: failed program was:" >&5
     4089sed 's/^/| /' conftest.$ac_ext >&5
     4090
     4091( exit $ac_status )
     4092ac_cv_header_stdc=no
     4093fi
     4094rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
     4095fi
     4096fi
     4097fi
     4098echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
     4099echo "${ECHO_T}$ac_cv_header_stdc" >&6
     4100if test $ac_cv_header_stdc = yes; then
     4101
     4102cat >>confdefs.h <<\_ACEOF
     4103#define STDC_HEADERS 1
     4104_ACEOF
     4105
     4106fi
     4107
     4108# On IRIX 5.3, sys/types and inttypes.h are conflicting.
     4109
     4110
     4111
     4112
     4113
     4114
     4115
     4116
     4117
     4118for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
     4119                  inttypes.h stdint.h unistd.h
     4120do
     4121as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     4122echo "$as_me:$LINENO: checking for $ac_header" >&5
     4123echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     4124if eval "test \"\${$as_ac_Header+set}\" = set"; then
     4125  echo $ECHO_N "(cached) $ECHO_C" >&6
     4126else
     4127  cat >conftest.$ac_ext <<_ACEOF
     4128#line $LINENO "configure"
     4129/* confdefs.h.  */
     4130_ACEOF
     4131cat confdefs.h >>conftest.$ac_ext
     4132cat >>conftest.$ac_ext <<_ACEOF
     4133/* end confdefs.h.  */
     4134$ac_includes_default
     4135
     4136#include <$ac_header>
     4137_ACEOF
     4138rm -f conftest.$ac_objext
     4139if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     4140  (eval $ac_compile) 2>&5
     4141  ac_status=$?
     4142  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4143  (exit $ac_status); } &&
     4144         { ac_try='test -s conftest.$ac_objext'
     4145  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4146  (eval $ac_try) 2>&5
     4147  ac_status=$?
     4148  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4149  (exit $ac_status); }; }; then
     4150  eval "$as_ac_Header=yes"
     4151else
     4152  echo "$as_me: failed program was:" >&5
     4153sed 's/^/| /' conftest.$ac_ext >&5
     4154
     4155eval "$as_ac_Header=no"
     4156fi
     4157rm -f conftest.$ac_objext conftest.$ac_ext
     4158fi
     4159echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     4160echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     4161if test `eval echo '${'$as_ac_Header'}'` = yes; then
     4162  cat >>confdefs.h <<_ACEOF
     4163#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
     4164_ACEOF
     4165
     4166fi
     4167
     4168done
     4169
     4170
     4171
     4172for ac_header in dlfcn.h
     4173do
     4174as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     4175if eval "test \"\${$as_ac_Header+set}\" = set"; then
     4176  echo "$as_me:$LINENO: checking for $ac_header" >&5
     4177echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     4178if eval "test \"\${$as_ac_Header+set}\" = set"; then
     4179  echo $ECHO_N "(cached) $ECHO_C" >&6
     4180fi
     4181echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     4182echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     4183else
     4184  # Is the header compilable?
     4185echo "$as_me:$LINENO: checking $ac_header usability" >&5
     4186echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
     4187cat >conftest.$ac_ext <<_ACEOF
     4188#line $LINENO "configure"
     4189/* confdefs.h.  */
     4190_ACEOF
     4191cat confdefs.h >>conftest.$ac_ext
     4192cat >>conftest.$ac_ext <<_ACEOF
     4193/* end confdefs.h.  */
     4194$ac_includes_default
     4195#include <$ac_header>
     4196_ACEOF
     4197rm -f conftest.$ac_objext
     4198if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     4199  (eval $ac_compile) 2>&5
     4200  ac_status=$?
     4201  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4202  (exit $ac_status); } &&
     4203         { ac_try='test -s conftest.$ac_objext'
     4204  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4205  (eval $ac_try) 2>&5
     4206  ac_status=$?
     4207  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4208  (exit $ac_status); }; }; then
     4209  ac_header_compiler=yes
     4210else
     4211  echo "$as_me: failed program was:" >&5
     4212sed 's/^/| /' conftest.$ac_ext >&5
     4213
     4214ac_header_compiler=no
     4215fi
     4216rm -f conftest.$ac_objext conftest.$ac_ext
     4217echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
     4218echo "${ECHO_T}$ac_header_compiler" >&6
     4219
     4220# Is the header present?
     4221echo "$as_me:$LINENO: checking $ac_header presence" >&5
     4222echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
     4223cat >conftest.$ac_ext <<_ACEOF
     4224#line $LINENO "configure"
     4225/* confdefs.h.  */
     4226_ACEOF
     4227cat confdefs.h >>conftest.$ac_ext
     4228cat >>conftest.$ac_ext <<_ACEOF
     4229/* end confdefs.h.  */
     4230#include <$ac_header>
     4231_ACEOF
     4232if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     4233  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     4234  ac_status=$?
     4235  grep -v '^ *+' conftest.er1 >conftest.err
     4236  rm -f conftest.er1
     4237  cat conftest.err >&5
     4238  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4239  (exit $ac_status); } >/dev/null; then
     4240  if test -s conftest.err; then
     4241    ac_cpp_err=$ac_c_preproc_warn_flag
     4242  else
     4243    ac_cpp_err=
     4244  fi
     4245else
     4246  ac_cpp_err=yes
     4247fi
     4248if test -z "$ac_cpp_err"; then
     4249  ac_header_preproc=yes
     4250else
     4251  echo "$as_me: failed program was:" >&5
     4252sed 's/^/| /' conftest.$ac_ext >&5
     4253
     4254  ac_header_preproc=no
     4255fi
     4256rm -f conftest.err conftest.$ac_ext
     4257echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
     4258echo "${ECHO_T}$ac_header_preproc" >&6
     4259
     4260# So?  What about this header?
     4261case $ac_header_compiler:$ac_header_preproc in
     4262  yes:no )
     4263    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
     4264echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
     4265    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
     4266echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
     4267    (
     4268      cat <<\_ASBOX
     4269## ------------------------------------ ##
     4270## Report this to bug-autoconf@gnu.org. ##
     4271## ------------------------------------ ##
     4272_ASBOX
     4273    ) |
     4274      sed "s/^/$as_me: WARNING:     /" >&2
     4275    ;;
     4276  no:yes )
     4277    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
     4278echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
     4279    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
     4280echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
     4281    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
     4282echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
     4283    (
     4284      cat <<\_ASBOX
     4285## ------------------------------------ ##
     4286## Report this to bug-autoconf@gnu.org. ##
     4287## ------------------------------------ ##
     4288_ASBOX
     4289    ) |
     4290      sed "s/^/$as_me: WARNING:     /" >&2
     4291    ;;
     4292esac
     4293echo "$as_me:$LINENO: checking for $ac_header" >&5
     4294echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     4295if eval "test \"\${$as_ac_Header+set}\" = set"; then
     4296  echo $ECHO_N "(cached) $ECHO_C" >&6
     4297else
     4298  eval "$as_ac_Header=$ac_header_preproc"
     4299fi
     4300echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     4301echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     4302
     4303fi
     4304if test `eval echo '${'$as_ac_Header'}'` = yes; then
     4305  cat >>confdefs.h <<_ACEOF
     4306#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
     4307_ACEOF
     4308
     4309fi
     4310
     4311done
     4312
     4313
     4314
     4315
     4316
     4317
     4318# Only perform the check for file, if the check method requires it
     4319case $deplibs_check_method in
     4320file_magic*)
     4321  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
     4322    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
     4323echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
     4324if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
     4325  echo $ECHO_N "(cached) $ECHO_C" >&6
     4326else
     4327  case $MAGIC_CMD in
     4328  /*)
     4329  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
     4330  ;;
     4331  ?:/*)
     4332  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
     4333  ;;
     4334  *)
     4335  ac_save_MAGIC_CMD="$MAGIC_CMD"
     4336  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
     4337  ac_dummy="/usr/bin:$PATH"
     4338  for ac_dir in $ac_dummy; do
     4339    test -z "$ac_dir" && ac_dir=.
     4340    if test -f $ac_dir/${ac_tool_prefix}file; then
     4341      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
     4342      if test -n "$file_magic_test_file"; then
     4343        case $deplibs_check_method in
     4344        "file_magic "*)
     4345          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
     4346          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
     4347          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
     4348            egrep "$file_magic_regex" > /dev/null; then
     4349            :
     4350          else
     4351            cat <<EOF 1>&2
     4352
     4353*** Warning: the command libtool uses to detect shared libraries,
     4354*** $file_magic_cmd, produces output that libtool cannot recognize.
     4355*** The result is that libtool may fail to recognize shared libraries
     4356*** as such.  This will affect the creation of libtool libraries that
     4357*** depend on shared libraries, but programs linked with such libtool
     4358*** libraries will work regardless of this problem.  Nevertheless, you
     4359*** may want to report the problem to your system manager and/or to
     4360*** bug-libtool@gnu.org
     4361
     4362EOF
     4363          fi ;;
     4364        esac
     4365      fi
     4366      break
     4367    fi
     4368  done
     4369  IFS="$ac_save_ifs"
     4370  MAGIC_CMD="$ac_save_MAGIC_CMD"
     4371  ;;
     4372esac
     4373fi
     4374
     4375MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
     4376if test -n "$MAGIC_CMD"; then
     4377  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
     4378echo "${ECHO_T}$MAGIC_CMD" >&6
     4379else
     4380  echo "$as_me:$LINENO: result: no" >&5
     4381echo "${ECHO_T}no" >&6
     4382fi
     4383
     4384if test -z "$lt_cv_path_MAGIC_CMD"; then
     4385  if test -n "$ac_tool_prefix"; then
     4386    echo "$as_me:$LINENO: checking for file" >&5
     4387echo $ECHO_N "checking for file... $ECHO_C" >&6
     4388if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
     4389  echo $ECHO_N "(cached) $ECHO_C" >&6
     4390else
     4391  case $MAGIC_CMD in
     4392  /*)
     4393  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
     4394  ;;
     4395  ?:/*)
     4396  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
     4397  ;;
     4398  *)
     4399  ac_save_MAGIC_CMD="$MAGIC_CMD"
     4400  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
     4401  ac_dummy="/usr/bin:$PATH"
     4402  for ac_dir in $ac_dummy; do
     4403    test -z "$ac_dir" && ac_dir=.
     4404    if test -f $ac_dir/file; then
     4405      lt_cv_path_MAGIC_CMD="$ac_dir/file"
     4406      if test -n "$file_magic_test_file"; then
     4407        case $deplibs_check_method in
     4408        "file_magic "*)
     4409          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
     4410          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
     4411          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
     4412            egrep "$file_magic_regex" > /dev/null; then
     4413            :
     4414          else
     4415            cat <<EOF 1>&2
     4416
     4417*** Warning: the command libtool uses to detect shared libraries,
     4418*** $file_magic_cmd, produces output that libtool cannot recognize.
     4419*** The result is that libtool may fail to recognize shared libraries
     4420*** as such.  This will affect the creation of libtool libraries that
     4421*** depend on shared libraries, but programs linked with such libtool
     4422*** libraries will work regardless of this problem.  Nevertheless, you
     4423*** may want to report the problem to your system manager and/or to
     4424*** bug-libtool@gnu.org
     4425
     4426EOF
     4427          fi ;;
     4428        esac
     4429      fi
     4430      break
     4431    fi
     4432  done
     4433  IFS="$ac_save_ifs"
     4434  MAGIC_CMD="$ac_save_MAGIC_CMD"
     4435  ;;
     4436esac
     4437fi
     4438
     4439MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
     4440if test -n "$MAGIC_CMD"; then
     4441  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
     4442echo "${ECHO_T}$MAGIC_CMD" >&6
     4443else
     4444  echo "$as_me:$LINENO: result: no" >&5
     4445echo "${ECHO_T}no" >&6
     4446fi
     4447
     4448  else
     4449    MAGIC_CMD=:
     4450  fi
     4451fi
     4452
    57474453  fi
    57484454  ;;
    57494455esac
    5750 
    5751 # Sed substitution that helps us do robust quoting.  It backslashifies
    5752 # metacharacters that are still active within double-quoted strings.
    5753 Xsed='sed -e s/^X//'
    5754 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
    5755 
    5756 # Same as above, but do not quote variable references.
    5757 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
    5758 
    5759 # Sed substitution to delay expansion of an escaped shell variable in a
    5760 # double_quote_subst'ed string.
    5761 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
    5762 
    5763 # Sed substitution to avoid accidental globbing in evaled expressions
    5764 no_glob_subst='s/\*/\\\*/g'
    5765 
    5766 # Constants:
    5767 rm="rm -f"
    5768 
    5769 # Global variables:
    5770 default_ofile=libtool
    5771 can_build_shared=yes
    5772 
    5773 # All known linkers require a `.a' archive for static linking (except M$VC,
    5774 # which needs '.lib').
    5775 libext=a
    5776 ltmain="$ac_aux_dir/ltmain.sh"
    5777 ofile="$default_ofile"
    5778 with_gnu_ld="$lt_cv_prog_gnu_ld"
    5779 
    5780 if test -n "$ac_tool_prefix"; then
    5781   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
    5782 set dummy ${ac_tool_prefix}ar; ac_word=$2
    5783 echo "$as_me:$LINENO: checking for $ac_word" >&5
    5784 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    5785 if test "${ac_cv_prog_AR+set}" = set; then
    5786   echo $ECHO_N "(cached) $ECHO_C" >&6
    5787 else
    5788   if test -n "$AR"; then
    5789   ac_cv_prog_AR="$AR" # Let the user override the test.
    5790 else
    5791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    5792 for as_dir in $PATH
    5793 do
    5794   IFS=$as_save_IFS
    5795   test -z "$as_dir" && as_dir=.
    5796   for ac_exec_ext in '' $ac_executable_extensions; do
    5797   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    5798     ac_cv_prog_AR="${ac_tool_prefix}ar"
    5799     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    5800     break 2
    5801   fi
    5802 done
    5803 done
    5804 
    5805 fi
    5806 fi
    5807 AR=$ac_cv_prog_AR
    5808 if test -n "$AR"; then
    5809   echo "$as_me:$LINENO: result: $AR" >&5
    5810 echo "${ECHO_T}$AR" >&6
    5811 else
    5812   echo "$as_me:$LINENO: result: no" >&5
    5813 echo "${ECHO_T}no" >&6
    5814 fi
    5815 
    5816 fi
    5817 if test -z "$ac_cv_prog_AR"; then
    5818   ac_ct_AR=$AR
    5819   # Extract the first word of "ar", so it can be a program name with args.
    5820 set dummy ar; ac_word=$2
    5821 echo "$as_me:$LINENO: checking for $ac_word" >&5
    5822 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    5823 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
    5824   echo $ECHO_N "(cached) $ECHO_C" >&6
    5825 else
    5826   if test -n "$ac_ct_AR"; then
    5827   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
    5828 else
    5829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    5830 for as_dir in $PATH
    5831 do
    5832   IFS=$as_save_IFS
    5833   test -z "$as_dir" && as_dir=.
    5834   for ac_exec_ext in '' $ac_executable_extensions; do
    5835   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    5836     ac_cv_prog_ac_ct_AR="ar"
    5837     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    5838     break 2
    5839   fi
    5840 done
    5841 done
    5842 
    5843   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
    5844 fi
    5845 fi
    5846 ac_ct_AR=$ac_cv_prog_ac_ct_AR
    5847 if test -n "$ac_ct_AR"; then
    5848   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
    5849 echo "${ECHO_T}$ac_ct_AR" >&6
    5850 else
    5851   echo "$as_me:$LINENO: result: no" >&5
    5852 echo "${ECHO_T}no" >&6
    5853 fi
    5854 
    5855   AR=$ac_ct_AR
    5856 else
    5857   AR="$ac_cv_prog_AR"
    5858 fi
    58594456
    58604457if test -n "$ac_tool_prefix"; then
     
    60194616
    60204617
     4618enable_dlopen=no
     4619enable_win32_dll=no
     4620
     4621# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
     4622if test "${enable_libtool_lock+set}" = set; then
     4623  enableval="$enable_libtool_lock"
     4624
     4625fi;
     4626test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
     4627
     4628# Some flags need to be propagated to the compiler or linker for good
     4629# libtool support.
     4630case $host in
     4631*-*-irix6*)
     4632  # Find out which ABI we are using.
     4633  echo '#line 4633 "configure"' > conftest.$ac_ext
     4634  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     4635  (eval $ac_compile) 2>&5
     4636  ac_status=$?
     4637  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4638  (exit $ac_status); }; then
     4639    case `/usr/bin/file conftest.$ac_objext` in
     4640    *32-bit*)
     4641      LD="${LD-ld} -32"
     4642      ;;
     4643    *N32*)
     4644      LD="${LD-ld} -n32"
     4645      ;;
     4646    *64-bit*)
     4647      LD="${LD-ld} -64"
     4648      ;;
     4649    esac
     4650  fi
     4651  rm -rf conftest*
     4652  ;;
     4653
     4654*-*-sco3.2v5*)
     4655  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
     4656  SAVE_CFLAGS="$CFLAGS"
     4657  CFLAGS="$CFLAGS -belf"
     4658  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
     4659echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
     4660if test "${lt_cv_cc_needs_belf+set}" = set; then
     4661  echo $ECHO_N "(cached) $ECHO_C" >&6
     4662else
     4663
     4664
     4665     ac_ext=c
     4666ac_cpp='$CPP $CPPFLAGS'
     4667ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     4668ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     4669ac_compiler_gnu=$ac_cv_c_compiler_gnu
     4670
     4671     cat >conftest.$ac_ext <<_ACEOF
     4672#line $LINENO "configure"
     4673/* confdefs.h.  */
     4674_ACEOF
     4675cat confdefs.h >>conftest.$ac_ext
     4676cat >>conftest.$ac_ext <<_ACEOF
     4677/* end confdefs.h.  */
     4678
     4679int
     4680main ()
     4681{
     4682
     4683  ;
     4684  return 0;
     4685}
     4686_ACEOF
     4687rm -f conftest.$ac_objext conftest$ac_exeext
     4688if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     4689  (eval $ac_link) 2>&5
     4690  ac_status=$?
     4691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4692  (exit $ac_status); } &&
     4693         { ac_try='test -s conftest$ac_exeext'
     4694  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4695  (eval $ac_try) 2>&5
     4696  ac_status=$?
     4697  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4698  (exit $ac_status); }; }; then
     4699  lt_cv_cc_needs_belf=yes
     4700else
     4701  echo "$as_me: failed program was:" >&5
     4702sed 's/^/| /' conftest.$ac_ext >&5
     4703
     4704lt_cv_cc_needs_belf=no
     4705fi
     4706rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
     4707     ac_ext=c
     4708ac_cpp='$CPP $CPPFLAGS'
     4709ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     4710ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     4711ac_compiler_gnu=$ac_cv_c_compiler_gnu
     4712
     4713fi
     4714echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
     4715echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
     4716  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
     4717    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
     4718    CFLAGS="$SAVE_CFLAGS"
     4719  fi
     4720  ;;
     4721
     4722
     4723esac
     4724
     4725# Sed substitution that helps us do robust quoting.  It backslashifies
     4726# metacharacters that are still active within double-quoted strings.
     4727Xsed='sed -e s/^X//'
     4728sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
     4729
     4730# Same as above, but do not quote variable references.
     4731double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
     4732
     4733# Sed substitution to delay expansion of an escaped shell variable in a
     4734# double_quote_subst'ed string.
     4735delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
     4736
     4737# Constants:
     4738rm="rm -f"
     4739
     4740# Global variables:
     4741default_ofile=libtool
     4742can_build_shared=yes
     4743
     4744# All known linkers require a `.a' archive for static linking (except M$VC,
     4745# which needs '.lib').
     4746libext=a
     4747ltmain="$ac_aux_dir/ltmain.sh"
     4748ofile="$default_ofile"
     4749with_gnu_ld="$lt_cv_prog_gnu_ld"
     4750need_locks="$enable_libtool_lock"
     4751
    60214752old_CC="$CC"
    60224753old_CFLAGS="$CFLAGS"
     
    60274758test -z "$AS" && AS=as
    60284759test -z "$CC" && CC=cc
    6029 test -z "$LTCC" && LTCC=$CC
    60304760test -z "$DLLTOOL" && DLLTOOL=dlltool
    60314761test -z "$LD" && LD=ld
     
    60334763test -z "$MAGIC_CMD" && MAGIC_CMD=file
    60344764test -z "$NM" && NM=nm
    6035 test -z "$SED" && SED=sed
    60364765test -z "$OBJDUMP" && OBJDUMP=objdump
    60374766test -z "$RANLIB" && RANLIB=:
    60384767test -z "$STRIP" && STRIP=:
    60394768test -z "$ac_objext" && ac_objext=o
     4769
     4770if test x"$host" != x"$build"; then
     4771  ac_tool_prefix=${host_alias}-
     4772else
     4773  ac_tool_prefix=
     4774fi
     4775
     4776# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
     4777case $host_os in
     4778linux-gnu*) ;;
     4779linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
     4780esac
     4781
     4782case $host_os in
     4783aix3*)
     4784  # AIX sometimes has problems with the GCC collect2 program.  For some
     4785  # reason, if we set the COLLECT_NAMES environment variable, the problems
     4786  # vanish in a puff of smoke.
     4787  if test "X${COLLECT_NAMES+set}" != Xset; then
     4788    COLLECT_NAMES=
     4789    export COLLECT_NAMES
     4790  fi
     4791  ;;
     4792esac
    60404793
    60414794# Determine commands to create old-style static archives.
     
    60564809fi
    60574810
    6058 # Only perform the check for file, if the check method requires it
    6059 case $deplibs_check_method in
    6060 file_magic*)
    6061   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
    6062     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
    6063 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
    6064 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
    6065   echo $ECHO_N "(cached) $ECHO_C" >&6
    6066 else
    6067   case $MAGIC_CMD in
    6068 [\\/*] |  ?:[\\/]*)
    6069   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
    6070   ;;
    6071 *)
    6072   lt_save_MAGIC_CMD="$MAGIC_CMD"
    6073   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
    6074   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
    6075   for ac_dir in $ac_dummy; do
    6076     IFS="$lt_save_ifs"
    6077     test -z "$ac_dir" && ac_dir=.
    6078     if test -f $ac_dir/${ac_tool_prefix}file; then
    6079       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
    6080       if test -n "$file_magic_test_file"; then
    6081         case $deplibs_check_method in
    6082         "file_magic "*)
    6083           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
    6084           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
    6085           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
    6086             $EGREP "$file_magic_regex" > /dev/null; then
    6087             :
    6088           else
    6089             cat <<EOF 1>&2
    6090 
    6091 *** Warning: the command libtool uses to detect shared libraries,
    6092 *** $file_magic_cmd, produces output that libtool cannot recognize.
    6093 *** The result is that libtool may fail to recognize shared libraries
    6094 *** as such.  This will affect the creation of libtool libraries that
    6095 *** depend on shared libraries, but programs linked with such libtool
    6096 *** libraries will work regardless of this problem.  Nevertheless, you
    6097 *** may want to report the problem to your system manager and/or to
    6098 *** bug-libtool@gnu.org
    6099 
    6100 EOF
    6101           fi ;;
    6102         esac
    6103       fi
    6104       break
    6105     fi
    6106   done
    6107   IFS="$lt_save_ifs"
    6108   MAGIC_CMD="$lt_save_MAGIC_CMD"
    6109   ;;
    6110 esac
    6111 fi
    6112 
    6113 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
    6114 if test -n "$MAGIC_CMD"; then
    6115   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
    6116 echo "${ECHO_T}$MAGIC_CMD" >&6
    6117 else
    6118   echo "$as_me:$LINENO: result: no" >&5
    6119 echo "${ECHO_T}no" >&6
    6120 fi
    6121 
    6122 if test -z "$lt_cv_path_MAGIC_CMD"; then
    6123   if test -n "$ac_tool_prefix"; then
    6124     echo "$as_me:$LINENO: checking for file" >&5
    6125 echo $ECHO_N "checking for file... $ECHO_C" >&6
    6126 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
    6127   echo $ECHO_N "(cached) $ECHO_C" >&6
    6128 else
    6129   case $MAGIC_CMD in
    6130 [\\/*] |  ?:[\\/]*)
    6131   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
    6132   ;;
    6133 *)
    6134   lt_save_MAGIC_CMD="$MAGIC_CMD"
    6135   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
    6136   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
    6137   for ac_dir in $ac_dummy; do
    6138     IFS="$lt_save_ifs"
    6139     test -z "$ac_dir" && ac_dir=.
    6140     if test -f $ac_dir/file; then
    6141       lt_cv_path_MAGIC_CMD="$ac_dir/file"
    6142       if test -n "$file_magic_test_file"; then
    6143         case $deplibs_check_method in
    6144         "file_magic "*)
    6145           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
    6146           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
    6147           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
    6148             $EGREP "$file_magic_regex" > /dev/null; then
    6149             :
    6150           else
    6151             cat <<EOF 1>&2
    6152 
    6153 *** Warning: the command libtool uses to detect shared libraries,
    6154 *** $file_magic_cmd, produces output that libtool cannot recognize.
    6155 *** The result is that libtool may fail to recognize shared libraries
    6156 *** as such.  This will affect the creation of libtool libraries that
    6157 *** depend on shared libraries, but programs linked with such libtool
    6158 *** libraries will work regardless of this problem.  Nevertheless, you
    6159 *** may want to report the problem to your system manager and/or to
    6160 *** bug-libtool@gnu.org
    6161 
    6162 EOF
    6163           fi ;;
    6164         esac
    6165       fi
    6166       break
    6167     fi
    6168   done
    6169   IFS="$lt_save_ifs"
    6170   MAGIC_CMD="$lt_save_MAGIC_CMD"
    6171   ;;
    6172 esac
    6173 fi
    6174 
    6175 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
    6176 if test -n "$MAGIC_CMD"; then
    6177   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
    6178 echo "${ECHO_T}$MAGIC_CMD" >&6
    6179 else
    6180   echo "$as_me:$LINENO: result: no" >&5
    6181 echo "${ECHO_T}no" >&6
    6182 fi
    6183 
    6184   else
    6185     MAGIC_CMD=:
    6186   fi
    6187 fi
    6188 
    6189   fi
    6190   ;;
    6191 esac
    6192 
    6193 enable_dlopen=no
    6194 enable_win32_dll=no
    6195 
    6196 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
    6197 if test "${enable_libtool_lock+set}" = set; then
    6198   enableval="$enable_libtool_lock"
    6199 
    6200 fi;
    6201 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
     4811# Allow CC to be a program name with arguments.
     4812set dummy $CC
     4813compiler="$2"
     4814
     4815echo "$as_me:$LINENO: checking for objdir" >&5
     4816echo $ECHO_N "checking for objdir... $ECHO_C" >&6
     4817rm -f .libs 2>/dev/null
     4818mkdir .libs 2>/dev/null
     4819if test -d .libs; then
     4820  objdir=.libs
     4821else
     4822  # MS-DOS does not allow filenames that begin with a dot.
     4823  objdir=_libs
     4824fi
     4825rmdir .libs 2>/dev/null
     4826echo "$as_me:$LINENO: result: $objdir" >&5
     4827echo "${ECHO_T}$objdir" >&6
     4828
    62024829
    62034830
     
    62114838test -z "$pic_mode" && pic_mode=default
    62124839
    6213 # Use C for the default configuration in the libtool script
    6214 tagname=
    6215 lt_save_CC="$CC"
    6216 ac_ext=c
    6217 ac_cpp='$CPP $CPPFLAGS'
    6218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    6219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    6220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    6221 
    6222 
    6223 # Source file extension for C test sources.
    6224 ac_ext=c
    6225 
    6226 # Object file extension for compiled C test sources.
    6227 objext=o
    6228 objext=$objext
    6229 
    6230 # Code to be used in simple compile tests
    6231 lt_simple_compile_test_code="int some_variable = 0;\n"
    6232 
    6233 # Code to be used in simple link tests
    6234 lt_simple_link_test_code='int main(){return(0);}\n'
    6235 
    6236 
    6237 # If no C compiler was specified, use CC.
    6238 LTCC=${LTCC-"$CC"}
    6239 
    6240 # Allow CC to be a program name with arguments.
    6241 compiler=$CC
    6242 
    6243 
    6244 #
    6245 # Check for any special shared library compilation flags.
    6246 #
    6247 lt_prog_cc_shlib=
    6248 if test "$GCC" = no; then
    6249   case $host_os in
    6250   sco3.2v5*)
    6251     lt_prog_cc_shlib='-belf'
    6252     ;;
    6253   esac
    6254 fi
    6255 if test -n "$lt_prog_cc_shlib"; then
    6256   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
    6257 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
    6258   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
    6259   else
    6260     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
    6261 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
    6262     lt_cv_prog_cc_can_build_shared=no
    6263   fi
    6264 fi
    6265 
    6266 
    6267 #
    6268 # Check to make sure the static flag actually works.
    6269 #
    6270 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
    6271 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
    6272 if test "${lt_prog_compiler_static_works+set}" = set; then
    6273   echo $ECHO_N "(cached) $ECHO_C" >&6
    6274 else
    6275   lt_prog_compiler_static_works=no
    6276    save_LDFLAGS="$LDFLAGS"
    6277    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
    6278    printf "$lt_simple_link_test_code" > conftest.$ac_ext
    6279    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
    6280      # The compiler can only warn and ignore the option if not recognized
    6281      # So say no if there are warnings
    6282      if test -s conftest.err; then
    6283        # Append any errors to the config.log.
    6284        cat conftest.err 1>&5
    6285      else
    6286        lt_prog_compiler_static_works=yes
    6287      fi
    6288    fi
    6289    $rm conftest*
    6290    LDFLAGS="$save_LDFLAGS"
    6291 
    6292 fi
    6293 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
    6294 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
    6295 
    6296 if test x"$lt_prog_compiler_static_works" = xyes; then
    6297     :
    6298 else
    6299     lt_prog_compiler_static=
    6300 fi
    6301 
    6302 
    6303 
    6304 
    6305 lt_prog_compiler_no_builtin_flag=
    6306 
    6307 if test "$GCC" = yes; then
    6308   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
    6309 
    6310 
    6311 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
    6312 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
    6313 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
    6314   echo $ECHO_N "(cached) $ECHO_C" >&6
    6315 else
    6316   lt_cv_prog_compiler_rtti_exceptions=no
    6317   ac_outfile=conftest.$ac_objext
    6318    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
    6319    lt_compiler_flag="-fno-rtti -fno-exceptions"
    6320    # Insert the option either (1) after the last *FLAGS variable, or
    6321    # (2) before a word containing "conftest.", or (3) at the end.
    6322    # Note that $ac_compile itself does not contain backslashes and begins
    6323    # with a dollar sign (not a hyphen), so the echo should work correctly.
    6324    # The option is referenced via a variable to avoid confusing sed.
    6325    lt_compile=`echo "$ac_compile" | $SED \
    6326    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
    6327    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    6328    -e 's:$: $lt_compiler_flag:'`
    6329    (eval echo "\"\$as_me:6329: $lt_compile\"" >&5)
    6330    (eval "$lt_compile" 2>conftest.err)
    6331    ac_status=$?
    6332    cat conftest.err >&5
    6333    echo "$as_me:6333: \$? = $ac_status" >&5
    6334    if (exit $ac_status) && test -s "$ac_outfile"; then
    6335      # The compiler can only warn and ignore the option if not recognized
    6336      # So say no if there are warnings
    6337      if test ! -s conftest.err; then
    6338        lt_cv_prog_compiler_rtti_exceptions=yes
    6339      fi
    6340    fi
    6341    $rm conftest*
    6342 
    6343 fi
    6344 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
    6345 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
    6346 
    6347 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
    6348     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
    6349 else
    6350     :
    6351 fi
    6352 
    6353 fi
    6354 
    6355 lt_prog_compiler_wl=
    6356 lt_prog_compiler_pic=
    6357 lt_prog_compiler_static=
    6358 
     4840# We assume here that the value for lt_cv_prog_cc_pic will not be cached
     4841# in isolation, and that seeing it set (from the cache) indicates that
     4842# the associated values are set (in the cache) correctly too.
    63594843echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
    63604844echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
     4845if test "${lt_cv_prog_cc_pic+set}" = set; then
     4846  echo $ECHO_N "(cached) $ECHO_C" >&6
     4847else
     4848   lt_cv_prog_cc_pic=
     4849  lt_cv_prog_cc_shlib=
     4850  lt_cv_prog_cc_wl=
     4851  lt_cv_prog_cc_static=
     4852  lt_cv_prog_cc_no_builtin=
     4853  lt_cv_prog_cc_can_build_shared=$can_build_shared
    63614854
    63624855  if test "$GCC" = yes; then
    6363     lt_prog_compiler_wl='-Wl,'
    6364     lt_prog_compiler_static='-static'
     4856    lt_cv_prog_cc_wl='-Wl,'
     4857    lt_cv_prog_cc_static='-static'
    63654858
    63664859    case $host_os in
    6367       aix*)
    6368       # All AIX code is PIC.
    6369       if test "$host_cpu" = ia64; then
    6370         # AIX 5 now supports IA64 processor
    6371         lt_prog_compiler_static='-Bstatic'
    6372       fi
     4860    aix*)
     4861      # Below there is a dirty hack to force normal static linking with -ldl
     4862      # The problem is because libdl dynamically linked with both libc and
     4863      # libC (AIX C++ library), which obviously doesn't included in libraries
     4864      # list by gcc. This cause undefined symbols with -static flags.
     4865      # This hack allows C programs to be linked with "-static -ldl", but
     4866      # not sure about C++ programs.
     4867      lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
    63734868      ;;
    6374 
    63754869    amigaos*)
    63764870      # FIXME: we need at least 68020 code to build shared libraries, but
    63774871      # adding the `-m68020' flag to GCC prevents building anything better,
    63784872      # like `-m68040'.
    6379       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
     4873      lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
    63804874      ;;
    6381 
    6382     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
     4875    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
    63834876      # PIC is the default for these OSes.
    63844877      ;;
    6385 
    6386     mingw* | pw32* | os2*)
    6387       # This hack is so that the source file can tell whether it is being
    6388       # built for inclusion in a dll (and should export symbols for example).
    6389       lt_prog_compiler_pic='-DDLL_EXPORT'
    6390       ;;
    6391 
    63924878    darwin* | rhapsody*)
    63934879      # PIC is the default on this platform
    63944880      # Common symbols not allowed in MH_DYLIB files
    6395       lt_prog_compiler_pic='-fno-common'
     4881      lt_cv_prog_cc_pic='-fno-common'
    63964882      ;;
    6397 
    6398     msdosdjgpp*)
    6399       # Just because we use GCC doesn't mean we suddenly get shared libraries
    6400       # on systems that don't support them.
    6401       lt_prog_compiler_can_build_shared=no
    6402       enable_shared=no
     4883    cygwin* | mingw* | pw32* | os2*)
     4884      # This hack is so that the source file can tell whether it is being
     4885      # built for inclusion in a dll (and should export symbols for example).
     4886      lt_cv_prog_cc_pic='-DDLL_EXPORT'
    64034887      ;;
    6404 
    64054888    sysv4*MP*)
    64064889      if test -d /usr/nec; then
    6407         lt_prog_compiler_pic=-Kconform_pic
     4890         lt_cv_prog_cc_pic=-Kconform_pic
    64084891      fi
    64094892      ;;
    6410 
    6411     hpux*)
    6412       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
    6413       # not for PA HP-UX.
    6414       case "$host_cpu" in
    6415       hppa*64*|ia64*)
    6416         # +Z the default
    6417         ;;
    6418       *)
    6419         lt_prog_compiler_pic='-fPIC'
    6420         ;;
    6421       esac
    6422       ;;
    6423 
    64244893    *)
    6425       lt_prog_compiler_pic='-fPIC'
     4894      lt_cv_prog_cc_pic='-fPIC'
    64264895      ;;
    64274896    esac
    64284897  else
    6429     # PORTME Check for flag to pass linker flags through the system compiler.
     4898    # PORTME Check for PIC flags for the system compiler.
    64304899    case $host_os in
    6431     aix*)
    6432       lt_prog_compiler_wl='-Wl,'
     4900    aix3* | aix4* | aix5*)
     4901      lt_cv_prog_cc_wl='-Wl,'
     4902      # All AIX code is PIC.
    64334903      if test "$host_cpu" = ia64; then
    64344904        # AIX 5 now supports IA64 processor
    6435         lt_prog_compiler_static='-Bstatic'
     4905        lt_cv_prog_cc_static='-Bstatic'
    64364906      else
    6437         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
     4907        lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
    64384908      fi
    64394909      ;;
    64404910
    6441     mingw* | pw32* | os2*)
     4911    hpux9* | hpux10* | hpux11*)
     4912      # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
     4913      lt_cv_prog_cc_wl='-Wl,'
     4914      lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
     4915      lt_cv_prog_cc_pic='+Z'
     4916      ;;
     4917
     4918    irix5* | irix6* | nonstopux*)
     4919      lt_cv_prog_cc_wl='-Wl,'
     4920      lt_cv_prog_cc_static='-non_shared'
     4921      # PIC (with -KPIC) is the default.
     4922      ;;
     4923
     4924    cygwin* | mingw* | pw32* | os2*)
    64424925      # This hack is so that the source file can tell whether it is being
    64434926      # built for inclusion in a dll (and should export symbols for example).
    6444       lt_prog_compiler_pic='-DDLL_EXPORT'
     4927      lt_cv_prog_cc_pic='-DDLL_EXPORT'
    64454928      ;;
    64464929
    6447     hpux9* | hpux10* | hpux11*)
    6448       lt_prog_compiler_wl='-Wl,'
    6449       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
    6450       # not for PA HP-UX.
    6451       case "$host_cpu" in
    6452       hppa*64*|ia64*)
    6453         # +Z the default
    6454         ;;
    6455       *)
    6456         lt_prog_compiler_pic='+Z'
    6457         ;;
    6458       esac
    6459       # Is there a better lt_prog_compiler_static that works with the bundled CC?
    6460       lt_prog_compiler_static='${wl}-a ${wl}archive'
     4930    newsos6)
     4931      lt_cv_prog_cc_pic='-KPIC'
     4932      lt_cv_prog_cc_static='-Bstatic'
    64614933      ;;
    64624934
    6463     irix5* | irix6* | nonstopux*)
    6464       lt_prog_compiler_wl='-Wl,'
    6465       # PIC (with -KPIC) is the default.
    6466       lt_prog_compiler_static='-non_shared'
     4935    osf3* | osf4* | osf5*)
     4936      # All OSF/1 code is PIC.
     4937      lt_cv_prog_cc_wl='-Wl,'
     4938      lt_cv_prog_cc_static='-non_shared'
    64674939      ;;
    64684940
    6469     newsos6)
    6470       lt_prog_compiler_pic='-KPIC'
    6471       lt_prog_compiler_static='-Bstatic'
     4941    sco3.2v5*)
     4942      lt_cv_prog_cc_pic='-Kpic'
     4943      lt_cv_prog_cc_static='-dn'
     4944      lt_cv_prog_cc_shlib='-belf'
    64724945      ;;
    64734946
    6474     linux*)
    6475       case $CC in
    6476       icc* | ecc*)
    6477         lt_prog_compiler_wl='-Wl,'
    6478         lt_prog_compiler_pic='-KPIC'
    6479         lt_prog_compiler_static='-static'
    6480         ;;
    6481       ccc*)
    6482         lt_prog_compiler_wl='-Wl,'
    6483         # All Alpha code is PIC.
    6484         lt_prog_compiler_static='-non_shared'
    6485         ;;
    6486       esac
     4947    solaris*)
     4948      lt_cv_prog_cc_pic='-KPIC'
     4949      lt_cv_prog_cc_static='-Bstatic'
     4950      lt_cv_prog_cc_wl='-Wl,'
    64874951      ;;
    64884952
    6489     osf3* | osf4* | osf5*)
    6490       lt_prog_compiler_wl='-Wl,'
    6491       # All OSF/1 code is PIC.
    6492       lt_prog_compiler_static='-non_shared'
     4953    sunos4*)
     4954      lt_cv_prog_cc_pic='-PIC'
     4955      lt_cv_prog_cc_static='-Bstatic'
     4956      lt_cv_prog_cc_wl='-Qoption ld '
    64934957      ;;
    64944958
    6495     sco3.2v5*)
    6496       lt_prog_compiler_pic='-Kpic'
    6497       lt_prog_compiler_static='-dn'
     4959    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
     4960      lt_cv_prog_cc_pic='-KPIC'
     4961      lt_cv_prog_cc_static='-Bstatic'
     4962      lt_cv_prog_cc_wl='-Wl,'
    64984963      ;;
    64994964
    6500     solaris*)
    6501       lt_prog_compiler_wl='-Wl,'
    6502       lt_prog_compiler_pic='-KPIC'
    6503       lt_prog_compiler_static='-Bstatic'
    6504       ;;
    6505 
    6506     sunos4*)
    6507       lt_prog_compiler_wl='-Qoption ld '
    6508       lt_prog_compiler_pic='-PIC'
    6509       lt_prog_compiler_static='-Bstatic'
    6510       ;;
    6511 
    6512     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
    6513       lt_prog_compiler_wl='-Wl,'
    6514       lt_prog_compiler_pic='-KPIC'
    6515       lt_prog_compiler_static='-Bstatic'
     4965    uts4*)
     4966      lt_cv_prog_cc_pic='-pic'
     4967      lt_cv_prog_cc_static='-Bstatic'
    65164968      ;;
    65174969
    65184970    sysv4*MP*)
    65194971      if test -d /usr/nec ;then
    6520         lt_prog_compiler_pic='-Kconform_pic'
    6521         lt_prog_compiler_static='-Bstatic'
     4972        lt_cv_prog_cc_pic='-Kconform_pic'
     4973        lt_cv_prog_cc_static='-Bstatic'
    65224974      fi
    65234975      ;;
    65244976
    6525     uts4*)
    6526       lt_prog_compiler_pic='-pic'
    6527       lt_prog_compiler_static='-Bstatic'
    6528       ;;
    6529 
    65304977    *)
    6531       lt_prog_compiler_can_build_shared=no
     4978      lt_cv_prog_cc_can_build_shared=no
    65324979      ;;
    65334980    esac
    65344981  fi
    65354982
    6536 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
    6537 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
    6538 
    6539 #
    6540 # Check to make sure the PIC flag actually works.
    6541 #
    6542 if test -n "$lt_prog_compiler_pic"; then
    6543 
    6544 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
    6545 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
    6546 if test "${lt_prog_compiler_pic_works+set}" = set; then
     4983fi
     4984
     4985if test -z "$lt_cv_prog_cc_pic"; then
     4986  echo "$as_me:$LINENO: result: none" >&5
     4987echo "${ECHO_T}none" >&6
     4988else
     4989  echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
     4990echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
     4991
     4992  # Check to make sure the pic_flag actually works.
     4993  echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
     4994echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
     4995  if test "${lt_cv_prog_cc_pic_works+set}" = set; then
    65474996  echo $ECHO_N "(cached) $ECHO_C" >&6
    65484997else
    6549   lt_prog_compiler_pic_works=no
    6550   ac_outfile=conftest.$ac_objext
    6551    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
    6552    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
    6553    # Insert the option either (1) after the last *FLAGS variable, or
    6554    # (2) before a word containing "conftest.", or (3) at the end.
    6555    # Note that $ac_compile itself does not contain backslashes and begins
    6556    # with a dollar sign (not a hyphen), so the echo should work correctly.
    6557    # The option is referenced via a variable to avoid confusing sed.
    6558    lt_compile=`echo "$ac_compile" | $SED \
    6559    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
    6560    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    6561    -e 's:$: $lt_compiler_flag:'`
    6562    (eval echo "\"\$as_me:6562: $lt_compile\"" >&5)
    6563    (eval "$lt_compile" 2>conftest.err)
    6564    ac_status=$?
    6565    cat conftest.err >&5
    6566    echo "$as_me:6566: \$? = $ac_status" >&5
    6567    if (exit $ac_status) && test -s "$ac_outfile"; then
    6568      # The compiler can only warn and ignore the option if not recognized
    6569      # So say no if there are warnings
    6570      if test ! -s conftest.err; then
    6571        lt_prog_compiler_pic_works=yes
    6572      fi
    6573    fi
    6574    $rm conftest*
    6575 
    6576 fi
    6577 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
    6578 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
    6579 
    6580 if test x"$lt_prog_compiler_pic_works" = xyes; then
    6581     case $lt_prog_compiler_pic in
    6582      "" | " "*) ;;
    6583      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
    6584      esac
    6585 else
    6586     lt_prog_compiler_pic=
    6587      lt_prog_compiler_can_build_shared=no
    6588 fi
    6589 
    6590 fi
    6591 case "$host_os" in
    6592   # For platforms which do not support PIC, -DPIC is meaningless:
    6593   *djgpp*)
    6594     lt_prog_compiler_pic=
    6595     ;;
    6596   *)
    6597     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
    6598     ;;
    6599 esac
    6600 
     4998      save_CFLAGS="$CFLAGS"
     4999    CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
     5000    cat >conftest.$ac_ext <<_ACEOF
     5001#line $LINENO "configure"
     5002/* confdefs.h.  */
     5003_ACEOF
     5004cat confdefs.h >>conftest.$ac_ext
     5005cat >>conftest.$ac_ext <<_ACEOF
     5006/* end confdefs.h.  */
     5007
     5008int
     5009main ()
     5010{
     5011
     5012  ;
     5013  return 0;
     5014}
     5015_ACEOF
     5016rm -f conftest.$ac_objext
     5017if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     5018  (eval $ac_compile) 2>&5
     5019  ac_status=$?
     5020  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5021  (exit $ac_status); } &&
     5022         { ac_try='test -s conftest.$ac_objext'
     5023  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5024  (eval $ac_try) 2>&5
     5025  ac_status=$?
     5026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5027  (exit $ac_status); }; }; then
     5028        case $host_os in
     5029      hpux9* | hpux10* | hpux11*)
     5030        # On HP-UX, both CC and GCC only warn that PIC is supported... then
     5031        # they create non-PIC objects.  So, if there were any warnings, we
     5032        # assume that PIC is not supported.
     5033        if test -s conftest.err; then
     5034          lt_cv_prog_cc_pic_works=no
     5035        else
     5036          lt_cv_prog_cc_pic_works=yes
     5037        fi
     5038        ;;
     5039      *)
     5040        lt_cv_prog_cc_pic_works=yes
     5041        ;;
     5042      esac
     5043
     5044else
     5045  echo "$as_me: failed program was:" >&5
     5046sed 's/^/| /' conftest.$ac_ext >&5
     5047
     5048      lt_cv_prog_cc_pic_works=no
     5049
     5050fi
     5051rm -f conftest.$ac_objext conftest.$ac_ext
     5052    CFLAGS="$save_CFLAGS"
     5053
     5054fi
     5055
     5056
     5057  if test "X$lt_cv_prog_cc_pic_works" = Xno; then
     5058    lt_cv_prog_cc_pic=
     5059    lt_cv_prog_cc_can_build_shared=no
     5060  else
     5061    lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
     5062  fi
     5063
     5064  echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
     5065echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
     5066fi
     5067
     5068# Check for any special shared library compilation flags.
     5069if test -n "$lt_cv_prog_cc_shlib"; then
     5070  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
     5071echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
     5072  if echo "$old_CC $old_CFLAGS " | egrep -e "[  ]$lt_cv_prog_cc_shlib[  ]" >/dev/null; then :
     5073  else
     5074   { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
     5075echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
     5076    lt_cv_prog_cc_can_build_shared=no
     5077  fi
     5078fi
     5079
     5080echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
     5081echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
     5082if test "${lt_cv_prog_cc_static_works+set}" = set; then
     5083  echo $ECHO_N "(cached) $ECHO_C" >&6
     5084else
     5085    lt_cv_prog_cc_static_works=no
     5086  save_LDFLAGS="$LDFLAGS"
     5087  LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
     5088  cat >conftest.$ac_ext <<_ACEOF
     5089#line $LINENO "configure"
     5090/* confdefs.h.  */
     5091_ACEOF
     5092cat confdefs.h >>conftest.$ac_ext
     5093cat >>conftest.$ac_ext <<_ACEOF
     5094/* end confdefs.h.  */
     5095
     5096int
     5097main ()
     5098{
     5099
     5100  ;
     5101  return 0;
     5102}
     5103_ACEOF
     5104rm -f conftest.$ac_objext conftest$ac_exeext
     5105if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     5106  (eval $ac_link) 2>&5
     5107  ac_status=$?
     5108  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5109  (exit $ac_status); } &&
     5110         { ac_try='test -s conftest$ac_exeext'
     5111  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5112  (eval $ac_try) 2>&5
     5113  ac_status=$?
     5114  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5115  (exit $ac_status); }; }; then
     5116  lt_cv_prog_cc_static_works=yes
     5117else
     5118  echo "$as_me: failed program was:" >&5
     5119sed 's/^/| /' conftest.$ac_ext >&5
     5120
     5121fi
     5122rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
     5123  LDFLAGS="$save_LDFLAGS"
     5124
     5125fi
     5126
     5127
     5128# Belt *and* braces to stop my trousers falling down:
     5129test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
     5130echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
     5131echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
     5132
     5133pic_flag="$lt_cv_prog_cc_pic"
     5134special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
     5135wl="$lt_cv_prog_cc_wl"
     5136link_static_flag="$lt_cv_prog_cc_static"
     5137no_builtin_flag="$lt_cv_prog_cc_no_builtin"
     5138can_build_shared="$lt_cv_prog_cc_can_build_shared"
     5139
     5140
     5141# Check to see if options -o and -c are simultaneously supported by compiler
    66015142echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
    66025143echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
    6603 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
     5144if test "${lt_cv_compiler_c_o+set}" = set; then
    66045145  echo $ECHO_N "(cached) $ECHO_C" >&6
    66055146else
    6606   lt_cv_prog_compiler_c_o=no
    6607    $rm -r conftest 2>/dev/null
    6608    mkdir conftest
    6609    cd conftest
    6610    mkdir out
    6611    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
    6612 
    6613    lt_compiler_flag="-o out/conftest2.$ac_objext"
    6614    # Insert the option either (1) after the last *FLAGS variable, or
    6615    # (2) before a word containing "conftest.", or (3) at the end.
    6616    # Note that $ac_compile itself does not contain backslashes and begins
    6617    # with a dollar sign (not a hyphen), so the echo should work correctly.
    6618    lt_compile=`echo "$ac_compile" | $SED \
    6619    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
    6620    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    6621    -e 's:$: $lt_compiler_flag:'`
    6622    (eval echo "\"\$as_me:6622: $lt_compile\"" >&5)
    6623    (eval "$lt_compile" 2>out/conftest.err)
    6624    ac_status=$?
    6625    cat out/conftest.err >&5
    6626    echo "$as_me:6626: \$? = $ac_status" >&5
    6627    if (exit $ac_status) && test -s out/conftest2.$ac_objext
    6628    then
    6629      # The compiler can only warn and ignore the option if not recognized
    6630      # So say no if there are warnings
    6631      if test ! -s out/conftest.err; then
    6632        lt_cv_prog_compiler_c_o=yes
    6633      fi
    6634    fi
    6635    chmod u+w .
    6636    $rm conftest*
    6637    # SGI C++ compiler will create directory out/ii_files/ for
    6638    # template instantiation
    6639    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
    6640    $rm out/* && rmdir out
    6641    cd ..
    6642    rmdir conftest
    6643    $rm conftest*
    6644 
    6645 fi
    6646 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
    6647 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
    6648 
    6649 
     5147
     5148$rm -r conftest 2>/dev/null
     5149mkdir conftest
     5150cd conftest
     5151echo "int some_variable = 0;" > conftest.$ac_ext
     5152mkdir out
     5153# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
     5154# that will create temporary files in the current directory regardless of
     5155# the output directory.  Thus, making CWD read-only will cause this test
     5156# to fail, enabling locking or at least warning the user not to do parallel
     5157# builds.
     5158chmod -w .
     5159save_CFLAGS="$CFLAGS"
     5160CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
     5161compiler_c_o=no
     5162if { (eval echo configure:5162: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
     5163  # The compiler can only warn and ignore the option if not recognized
     5164  # So say no if there are warnings
     5165  if test -s out/conftest.err; then
     5166    lt_cv_compiler_c_o=no
     5167  else
     5168    lt_cv_compiler_c_o=yes
     5169  fi
     5170else
     5171  # Append any errors to the config.log.
     5172  cat out/conftest.err 1>&5
     5173  lt_cv_compiler_c_o=no
     5174fi
     5175CFLAGS="$save_CFLAGS"
     5176chmod u+w .
     5177$rm conftest* out/*
     5178rmdir out
     5179cd ..
     5180rmdir conftest
     5181$rm -r conftest 2>/dev/null
     5182
     5183fi
     5184
     5185compiler_c_o=$lt_cv_compiler_c_o
     5186echo "$as_me:$LINENO: result: $compiler_c_o" >&5
     5187echo "${ECHO_T}$compiler_c_o" >&6
     5188
     5189if test x"$compiler_c_o" = x"yes"; then
     5190  # Check to see if we can write to a .lo
     5191  echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
     5192echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
     5193  if test "${lt_cv_compiler_o_lo+set}" = set; then
     5194  echo $ECHO_N "(cached) $ECHO_C" >&6
     5195else
     5196
     5197  lt_cv_compiler_o_lo=no
     5198  save_CFLAGS="$CFLAGS"
     5199  CFLAGS="$CFLAGS -c -o conftest.lo"
     5200  save_objext="$ac_objext"
     5201  ac_objext=lo
     5202  cat >conftest.$ac_ext <<_ACEOF
     5203#line $LINENO "configure"
     5204/* confdefs.h.  */
     5205_ACEOF
     5206cat confdefs.h >>conftest.$ac_ext
     5207cat >>conftest.$ac_ext <<_ACEOF
     5208/* end confdefs.h.  */
     5209
     5210int
     5211main ()
     5212{
     5213int some_variable = 0;
     5214  ;
     5215  return 0;
     5216}
     5217_ACEOF
     5218rm -f conftest.$ac_objext
     5219if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     5220  (eval $ac_compile) 2>&5
     5221  ac_status=$?
     5222  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5223  (exit $ac_status); } &&
     5224         { ac_try='test -s conftest.$ac_objext'
     5225  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5226  (eval $ac_try) 2>&5
     5227  ac_status=$?
     5228  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5229  (exit $ac_status); }; }; then
     5230      # The compiler can only warn and ignore the option if not recognized
     5231    # So say no if there are warnings
     5232    if test -s conftest.err; then
     5233      lt_cv_compiler_o_lo=no
     5234    else
     5235      lt_cv_compiler_o_lo=yes
     5236    fi
     5237
     5238else
     5239  echo "$as_me: failed program was:" >&5
     5240sed 's/^/| /' conftest.$ac_ext >&5
     5241
     5242fi
     5243rm -f conftest.$ac_objext conftest.$ac_ext
     5244  ac_objext="$save_objext"
     5245  CFLAGS="$save_CFLAGS"
     5246
     5247fi
     5248
     5249  compiler_o_lo=$lt_cv_compiler_o_lo
     5250  echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
     5251echo "${ECHO_T}$compiler_o_lo" >&6
     5252else
     5253  compiler_o_lo=no
     5254fi
     5255
     5256# Check to see if we can do hard links to lock some files if needed
    66505257hard_links="nottested"
    6651 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
     5258if test "$compiler_c_o" = no && test "$need_locks" != no; then
    66525259  # do not overwrite the value of need_locks provided by the user
    66535260  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
     
    66705277fi
    66715278
    6672 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
    6673 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
    6674 
    6675   runpath_var=
    6676   allow_undefined_flag=
    6677   enable_shared_with_static_runtimes=no
    6678   archive_cmds=
    6679   archive_expsym_cmds=
    6680   old_archive_From_new_cmds=
    6681   old_archive_from_expsyms_cmds=
    6682   export_dynamic_flag_spec=
    6683   whole_archive_flag_spec=
    6684   thread_safe_flag_spec=
    6685   hardcode_libdir_flag_spec=
    6686   hardcode_libdir_flag_spec_ld=
    6687   hardcode_libdir_separator=
    6688   hardcode_direct=no
    6689   hardcode_minus_L=no
    6690   hardcode_shlibpath_var=unsupported
    6691   link_all_deplibs=unknown
    6692   hardcode_automatic=no
    6693   module_cmds=
    6694   module_expsym_cmds=
    6695   always_export_symbols=no
    6696   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
    6697   # include_expsyms should be a list of space-separated symbols to be *always*
    6698   # included in the symbol list
    6699   include_expsyms=
    6700   # exclude_expsyms can be an extended regexp of symbols to exclude
    6701   # it will be wrapped by ` (' and `)$', so one must not match beginning or
    6702   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
    6703   # as well as any symbol that contains `d'.
    6704   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
    6705   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
    6706   # platforms (ab)use it in PIC code, but their linkers get confused if
    6707   # the symbol is explicitly referenced.  Since portable code cannot
    6708   # rely on this symbol name, it's probably fine to never include it in
    6709   # preloaded symbol tables.
    6710   extract_expsyms_cmds=
    6711 
     5279if test "$GCC" = yes; then
     5280  # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
     5281  echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
     5282echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
     5283  echo "int some_variable = 0;" > conftest.$ac_ext
     5284  save_CFLAGS="$CFLAGS"
     5285  CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
     5286  compiler_rtti_exceptions=no
     5287  cat >conftest.$ac_ext <<_ACEOF
     5288#line $LINENO "configure"
     5289/* confdefs.h.  */
     5290_ACEOF
     5291cat confdefs.h >>conftest.$ac_ext
     5292cat >>conftest.$ac_ext <<_ACEOF
     5293/* end confdefs.h.  */
     5294
     5295int
     5296main ()
     5297{
     5298int some_variable = 0;
     5299  ;
     5300  return 0;
     5301}
     5302_ACEOF
     5303rm -f conftest.$ac_objext
     5304if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     5305  (eval $ac_compile) 2>&5
     5306  ac_status=$?
     5307  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5308  (exit $ac_status); } &&
     5309         { ac_try='test -s conftest.$ac_objext'
     5310  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5311  (eval $ac_try) 2>&5
     5312  ac_status=$?
     5313  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5314  (exit $ac_status); }; }; then
     5315      # The compiler can only warn and ignore the option if not recognized
     5316    # So say no if there are warnings
     5317    if test -s conftest.err; then
     5318      compiler_rtti_exceptions=no
     5319    else
     5320      compiler_rtti_exceptions=yes
     5321    fi
     5322
     5323else
     5324  echo "$as_me: failed program was:" >&5
     5325sed 's/^/| /' conftest.$ac_ext >&5
     5326
     5327fi
     5328rm -f conftest.$ac_objext conftest.$ac_ext
     5329  CFLAGS="$save_CFLAGS"
     5330  echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
     5331echo "${ECHO_T}$compiler_rtti_exceptions" >&6
     5332
     5333  if test "$compiler_rtti_exceptions" = "yes"; then
     5334    no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
     5335  else
     5336    no_builtin_flag=' -fno-builtin'
     5337  fi
     5338fi
     5339
     5340# See if the linker supports building shared libraries.
     5341echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
     5342echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
     5343
     5344allow_undefined_flag=
     5345no_undefined_flag=
     5346need_lib_prefix=unknown
     5347need_version=unknown
     5348# when you set need_version to no, make sure it does not cause -set_version
     5349# flags to be left without arguments
     5350archive_cmds=
     5351archive_expsym_cmds=
     5352old_archive_from_new_cmds=
     5353old_archive_from_expsyms_cmds=
     5354export_dynamic_flag_spec=
     5355whole_archive_flag_spec=
     5356thread_safe_flag_spec=
     5357hardcode_into_libs=no
     5358hardcode_libdir_flag_spec=
     5359hardcode_libdir_separator=
     5360hardcode_direct=no
     5361hardcode_minus_L=no
     5362hardcode_shlibpath_var=unsupported
     5363runpath_var=
     5364link_all_deplibs=unknown
     5365always_export_symbols=no
     5366export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
     5367# include_expsyms should be a list of space-separated symbols to be *always*
     5368# included in the symbol list
     5369include_expsyms=
     5370# exclude_expsyms can be an egrep regular expression of symbols to exclude
     5371# it will be wrapped by ` (' and `)$', so one must not match beginning or
     5372# end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
     5373# as well as any symbol that contains `d'.
     5374exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
     5375# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
     5376# platforms (ab)use it in PIC code, but their linkers get confused if
     5377# the symbol is explicitly referenced.  Since portable code cannot
     5378# rely on this symbol name, it's probably fine to never include it in
     5379# preloaded symbol tables.
     5380extract_expsyms_cmds=
     5381
     5382case $host_os in
     5383cygwin* | mingw* | pw32*)
     5384  # FIXME: the MSVC++ port hasn't been tested in a loooong time
     5385  # When not using gcc, we currently assume that we are using
     5386  # Microsoft Visual C++.
     5387  if test "$GCC" != yes; then
     5388    with_gnu_ld=no
     5389  fi
     5390  ;;
     5391openbsd*)
     5392  with_gnu_ld=no
     5393  ;;
     5394esac
     5395
     5396ld_shlibs=yes
     5397if test "$with_gnu_ld" = yes; then
     5398  # If archive_cmds runs LD, not CC, wlarc should be empty
     5399  wlarc='${wl}'
     5400
     5401  # See if GNU ld supports shared libraries.
    67125402  case $host_os in
    6713   cygwin* | mingw* | pw32*)
    6714     # FIXME: the MSVC++ port hasn't been tested in a loooong time
    6715     # When not using gcc, we currently assume that we are using
    6716     # Microsoft Visual C++.
    6717     if test "$GCC" != yes; then
    6718       with_gnu_ld=no
    6719     fi
    6720     ;;
    6721   openbsd*)
    6722     with_gnu_ld=no
    6723     ;;
    6724   esac
    6725 
    6726   ld_shlibs=yes
    6727   if test "$with_gnu_ld" = yes; then
    6728     # If archive_cmds runs LD, not CC, wlarc should be empty
    6729     wlarc='${wl}'
    6730 
    6731     # See if GNU ld supports shared libraries.
    6732     case $host_os in
    6733     aix3* | aix4* | aix5*)
    6734       # On AIX/PPC, the GNU linker is very broken
    6735       if test "$host_cpu" != ia64; then
    6736         ld_shlibs=no
    6737         cat <<EOF 1>&2
     5403  aix3* | aix4* | aix5*)
     5404    # On AIX, the GNU linker is very broken
     5405    # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
     5406    ld_shlibs=no
     5407    cat <<EOF 1>&2
    67385408
    67395409*** Warning: the GNU linker, at least up to release 2.9.1, is reported
     
    67445414
    67455415EOF
    6746       fi
     5416    ;;
     5417
     5418  amigaos*)
     5419    archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
     5420    hardcode_libdir_flag_spec='-L$libdir'
     5421    hardcode_minus_L=yes
     5422
     5423    # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
     5424    # that the semantics of dynamic libraries on AmigaOS, at least up
     5425    # to version 4, is to share data among multiple programs linked
     5426    # with the same dynamic library.  Since this doesn't match the
     5427    # behavior of shared libraries on other platforms, we can use
     5428    # them.
     5429    ld_shlibs=no
     5430    ;;
     5431
     5432  beos*)
     5433    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
     5434      allow_undefined_flag=unsupported
     5435      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
     5436      # support --undefined.  This deserves some investigation.  FIXME
     5437      archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
     5438    else
     5439      ld_shlibs=no
     5440    fi
     5441    ;;
     5442
     5443  cygwin* | mingw* | pw32*)
     5444    # hardcode_libdir_flag_spec is actually meaningless, as there is
     5445    # no search path for DLLs.
     5446    hardcode_libdir_flag_spec='-L$libdir'
     5447    allow_undefined_flag=unsupported
     5448    always_export_symbols=yes
     5449
     5450    extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
     5451      sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
     5452      test -f $output_objdir/impgen.exe || (cd $output_objdir && \
     5453      if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
     5454      else $CC -o impgen impgen.c ; fi)~
     5455      $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
     5456
     5457    old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
     5458
     5459    # cygwin and mingw dlls have different entry points and sets of symbols
     5460    # to exclude.
     5461    # FIXME: what about values for MSVC?
     5462    dll_entry=__cygwin_dll_entry@12
     5463    dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
     5464    case $host_os in
     5465    mingw*)
     5466      # mingw values
     5467      dll_entry=_DllMainCRTStartup@12
     5468      dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
    67475469      ;;
    6748 
    6749     amigaos*)
    6750       archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
    6751       hardcode_libdir_flag_spec='-L$libdir'
    6752       hardcode_minus_L=yes
    6753 
    6754       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
    6755       # that the semantics of dynamic libraries on AmigaOS, at least up
    6756       # to version 4, is to share data among multiple programs linked
    6757       # with the same dynamic library.  Since this doesn't match the
    6758       # behavior of shared libraries on other platforms, we can't use
    6759       # them.
     5470    esac
     5471
     5472    # mingw and cygwin differ, and it's simplest to just exclude the union
     5473    # of the two symbol sets.
     5474    dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
     5475
     5476    # recent cygwin and mingw systems supply a stub DllMain which the user
     5477    # can override, but on older systems we have to supply one (in ltdll.c)
     5478    if test "x$lt_cv_need_dllmain" = "xyes"; then
     5479      ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
     5480      ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
     5481        test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
     5482    else
     5483      ltdll_obj=
     5484      ltdll_cmds=
     5485    fi
     5486
     5487    # Extract the symbol export list from an `--export-all' def file,
     5488    # then regenerate the def file from the symbol export list, so that
     5489    # the compiled dll only exports the symbol export list.
     5490    # Be careful not to strip the DATA tag left be newer dlltools.
     5491    export_symbols_cmds="$ltdll_cmds"'
     5492      $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
     5493      sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
     5494
     5495    # If the export-symbols file already is a .def file (1st line
     5496    # is EXPORTS), use it as is.
     5497    # If DATA tags from a recent dlltool are present, honour them!
     5498    archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
     5499        cp $export_symbols $output_objdir/$soname-def;
     5500      else
     5501        echo EXPORTS > $output_objdir/$soname-def;
     5502        _lt_hint=1;
     5503        cat $export_symbols | while read symbol; do
     5504         set dummy \$symbol;
     5505         case \$# in
     5506           2) echo "   \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
     5507           4) echo "   \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
     5508           *) echo "     \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
     5509         esac;
     5510         _lt_hint=`expr 1 + \$_lt_hint`;
     5511        done;
     5512      fi~
     5513      '"$ltdll_cmds"'
     5514      $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
     5515      $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
     5516      $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
     5517      $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
     5518      $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
     5519    ;;
     5520
     5521  netbsd*)
     5522    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
     5523      archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
     5524      wlarc=
     5525    else
     5526      archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
     5527      archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
     5528    fi
     5529    ;;
     5530
     5531  solaris* | sysv5*)
     5532    if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
    67605533      ld_shlibs=no
    6761       ;;
    6762 
    6763     beos*)
    6764       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
    6765         allow_undefined_flag=unsupported
    6766         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
    6767         # support --undefined.  This deserves some investigation.  FIXME
    6768         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
    6769       else
    6770         ld_shlibs=no
    6771       fi
    6772       ;;
    6773 
    6774     cygwin* | mingw* | pw32*)
    6775       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
    6776       # as there is no search path for DLLs.
    6777       hardcode_libdir_flag_spec='-L$libdir'
    6778       allow_undefined_flag=unsupported
    6779       always_export_symbols=no
    6780       enable_shared_with_static_runtimes=yes
    6781       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
    6782 
    6783       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
    6784         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
    6785         # If the export-symbols file already is a .def file (1st line
    6786         # is EXPORTS), use it as is; otherwise, prepend...
    6787         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
    6788           cp $export_symbols $output_objdir/$soname.def;
    6789         else
    6790           echo EXPORTS > $output_objdir/$soname.def;
    6791           cat $export_symbols >> $output_objdir/$soname.def;
    6792         fi~
    6793         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
    6794       else
    6795         ld_shlibs=no
    6796       fi
    6797       ;;
    6798 
    6799     netbsd*)
    6800       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
    6801         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
    6802         wlarc=
    6803       else
    6804         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
    6805         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
    6806       fi
    6807       ;;
    6808 
    6809     solaris* | sysv5*)
    6810       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
    6811         ld_shlibs=no
    6812         cat <<EOF 1>&2
     5534      cat <<EOF 1>&2
    68135535
    68145536*** Warning: The releases 2.8.* of the GNU linker cannot reliably
     
    68205542
    68215543EOF
    6822       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
    6823         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
    6824         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
    6825       else
    6826         ld_shlibs=no
    6827       fi
    6828       ;;
    6829 
    6830     sunos4*)
    6831       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
    6832       wlarc=
    6833       hardcode_direct=yes
    6834       hardcode_shlibpath_var=no
    6835       ;;
    6836 
    6837   linux*)
    6838     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
    6839         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
    6840         archive_cmds="$tmp_archive_cmds"
    6841       supports_anon_versioning=no
    6842       case `$LD -v 2>/dev/null` in
    6843         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
    6844         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
    6845         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
    6846         *\ 2.11.*) ;; # other 2.11 versions
    6847         *) supports_anon_versioning=yes ;;
    6848       esac
    6849       if test $supports_anon_versioning = yes; then
    6850         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
    6851 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
    6852 $echo "local: *; };" >> $output_objdir/$libname.ver~
    6853         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
    6854       else
    6855         archive_expsym_cmds="$tmp_archive_cmds"
    6856       fi
     5544    elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
     5545      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
     5546      archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
    68575547    else
    68585548      ld_shlibs=no
     
    68605550    ;;
    68615551
     5552  sunos4*)
     5553    archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
     5554    wlarc=
     5555    hardcode_direct=yes
     5556    hardcode_shlibpath_var=no
     5557    ;;
     5558
     5559  *)
     5560    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
     5561      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
     5562      archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
     5563    else
     5564      ld_shlibs=no
     5565    fi
     5566    ;;
     5567  esac
     5568
     5569  if test "$ld_shlibs" = yes; then
     5570    runpath_var=LD_RUN_PATH
     5571    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
     5572    export_dynamic_flag_spec='${wl}--export-dynamic'
     5573    case $host_os in
     5574    cygwin* | mingw* | pw32*)
     5575      # dlltool doesn't understand --whole-archive et. al.
     5576      whole_archive_flag_spec=
     5577      ;;
    68625578    *)
    6863       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
    6864         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
    6865         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
     5579      # ancient GNU ld didn't support --whole-archive et. al.
     5580      if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
     5581        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
    68665582      else
    6867         ld_shlibs=no
     5583        whole_archive_flag_spec=
    68685584      fi
    68695585      ;;
    68705586    esac
    6871 
    6872     if test "$ld_shlibs" = yes; then
    6873       runpath_var=LD_RUN_PATH
    6874       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
    6875       export_dynamic_flag_spec='${wl}--export-dynamic'
    6876       # ancient GNU ld didn't support --whole-archive et. al.
    6877       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
    6878         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
     5587  fi
     5588else
     5589  # PORTME fill in a description of your system's linker (not GNU ld)
     5590  case $host_os in
     5591  aix3*)
     5592    allow_undefined_flag=unsupported
     5593    always_export_symbols=yes
     5594    archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
     5595    # Note: this linker hardcodes the directories in LIBPATH if there
     5596    # are no directories specified by -L.
     5597    hardcode_minus_L=yes
     5598    if test "$GCC" = yes && test -z "$link_static_flag"; then
     5599      # Neither direct hardcoding nor static linking is supported with a
     5600      # broken collect2.
     5601      hardcode_direct=unsupported
     5602    fi
     5603    ;;
     5604
     5605  aix4* | aix5*)
     5606    if test "$host_cpu" = ia64; then
     5607      # On IA64, the linker does run time linking by default, so we don't
     5608      # have to do anything special.
     5609      aix_use_runtimelinking=no
     5610      exp_sym_flag='-Bexport'
     5611      no_entry_flag=""
     5612    else
     5613      aix_use_runtimelinking=no
     5614
     5615      # Test if we are trying to use run time linking or normal
     5616      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
     5617      # need to do runtime linking.
     5618      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
     5619        for ld_flag in $LDFLAGS; do
     5620          case $ld_flag in
     5621          *-brtl*)
     5622            aix_use_runtimelinking=yes
     5623            break
     5624          ;;
     5625          esac
     5626        done
     5627      esac
     5628
     5629      exp_sym_flag='-bexport'
     5630      no_entry_flag='-bnoentry'
     5631    fi
     5632
     5633    # When large executables or shared objects are built, AIX ld can
     5634    # have problems creating the table of contents.  If linking a library
     5635    # or program results in "error TOC overflow" add -mminimal-toc to
     5636    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
     5637    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
     5638
     5639    hardcode_direct=yes
     5640    archive_cmds=''
     5641    hardcode_libdir_separator=':'
     5642    if test "$GCC" = yes; then
     5643      case $host_os in aix4.[012]|aix4.[012].*)
     5644        collect2name=`${CC} -print-prog-name=collect2`
     5645        if test -f "$collect2name" && \
     5646          strings "$collect2name" | grep resolve_lib_name >/dev/null
     5647        then
     5648          # We have reworked collect2
     5649          hardcode_direct=yes
     5650        else
     5651          # We have old collect2
     5652          hardcode_direct=unsupported
     5653          # It fails to find uninstalled libraries when the uninstalled
     5654          # path is not listed in the libpath.  Setting hardcode_minus_L
     5655          # to unsupported forces relinking
     5656          hardcode_minus_L=yes
     5657          hardcode_libdir_flag_spec='-L$libdir'
     5658          hardcode_libdir_separator=
     5659        fi
     5660      esac
     5661
     5662      shared_flag='-shared'
     5663    else
     5664      # not using gcc
     5665      if test "$host_cpu" = ia64; then
     5666        shared_flag='${wl}-G'
    68795667      else
    6880         whole_archive_flag_spec=
     5668        if test "$aix_use_runtimelinking" = yes; then
     5669          shared_flag='${wl}-G'
     5670        else
     5671          shared_flag='${wl}-bM:SRE'
     5672        fi
    68815673      fi
    68825674    fi
    6883   else
    6884     # PORTME fill in a description of your system's linker (not GNU ld)
     5675
     5676    # It seems that -bexpall can do strange things, so it is better to
     5677    # generate a list of symbols to export.
     5678    always_export_symbols=yes
     5679    if test "$aix_use_runtimelinking" = yes; then
     5680      # Warning - without using the other runtime loading flags (-brtl),
     5681      # -berok will link without error, but may produce a broken library.
     5682      allow_undefined_flag='-berok'
     5683      hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
     5684      archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
     5685    else
     5686      if test "$host_cpu" = ia64; then
     5687        hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
     5688        allow_undefined_flag="-z nodefs"
     5689        archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
     5690      else
     5691        hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
     5692        # Warning - without using the other run time loading flags,
     5693        # -berok will link without error, but may produce a broken library.
     5694        allow_undefined_flag='${wl}-berok'
     5695        # This is a bit strange, but is similar to how AIX traditionally builds
     5696        # it's shared libraries.
     5697        archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
     5698      fi
     5699    fi
     5700    ;;
     5701
     5702  amigaos*)
     5703    archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
     5704    hardcode_libdir_flag_spec='-L$libdir'
     5705    hardcode_minus_L=yes
     5706    # see comment about different semantics on the GNU ld section
     5707    ld_shlibs=no
     5708    ;;
     5709
     5710  cygwin* | mingw* | pw32*)
     5711    # When not using gcc, we currently assume that we are using
     5712    # Microsoft Visual C++.
     5713    # hardcode_libdir_flag_spec is actually meaningless, as there is
     5714    # no search path for DLLs.
     5715    hardcode_libdir_flag_spec=' '
     5716    allow_undefined_flag=unsupported
     5717    # Tell ltmain to make .lib files, not .a files.
     5718    libext=lib
     5719    # FIXME: Setting linknames here is a bad hack.
     5720    archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
     5721    # The linker will automatically build a .lib file if we build a DLL.
     5722    old_archive_from_new_cmds='true'
     5723    # FIXME: Should let the user specify the lib program.
     5724    old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
     5725    fix_srcfile_path='`cygpath -w "$srcfile"`'
     5726    ;;
     5727
     5728  darwin* | rhapsody*)
     5729    case "$host_os" in
     5730    rhapsody* | darwin1.[012])
     5731      allow_undefined_flag='-undefined suppress'
     5732      ;;
     5733    *) # Darwin 1.3 on
     5734      allow_undefined_flag='-flat_namespace -undefined suppress'
     5735      ;;
     5736    esac
     5737    # FIXME: Relying on posixy $() will cause problems for
     5738    #        cross-compilation, but unfortunately the echo tests do not
     5739    #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
     5740    #        `"' quotes if we put them in here... so don't!
     5741    archive_cmds='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs && $CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib ${lib}-master.o $deplibs$linker_flags $(test .$module != .yes && echo -install_name $rpath/$soname $verstring)'
     5742    # We need to add '_' to the symbols in $export_symbols first
     5743    #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
     5744    hardcode_direct=yes
     5745    hardcode_shlibpath_var=no
     5746    whole_archive_flag_spec='-all_load $convenience'
     5747    ;;
     5748
     5749  freebsd1*)
     5750    ld_shlibs=no
     5751    ;;
     5752
     5753  # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
     5754  # support.  Future versions do this automatically, but an explicit c++rt0.o
     5755  # does not break anything, and helps significantly (at the cost of a little
     5756  # extra space).
     5757  freebsd2.2*)
     5758    archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
     5759    hardcode_libdir_flag_spec='-R$libdir'
     5760    hardcode_direct=yes
     5761    hardcode_shlibpath_var=no
     5762    ;;
     5763
     5764  # Unfortunately, older versions of FreeBSD 2 do not have this feature.
     5765  freebsd2*)
     5766    archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
     5767    hardcode_direct=yes
     5768    hardcode_minus_L=yes
     5769    hardcode_shlibpath_var=no
     5770    ;;
     5771
     5772  # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
     5773  freebsd*)
     5774    archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
     5775    hardcode_libdir_flag_spec='-R$libdir'
     5776    hardcode_direct=yes
     5777    hardcode_shlibpath_var=no
     5778    ;;
     5779
     5780  hpux9* | hpux10* | hpux11*)
    68855781    case $host_os in
    6886     aix3*)
    6887       allow_undefined_flag=unsupported
    6888       always_export_symbols=yes
    6889       archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
    6890       # Note: this linker hardcodes the directories in LIBPATH if there
    6891       # are no directories specified by -L.
    6892       hardcode_minus_L=yes
    6893       if test "$GCC" = yes && test -z "$link_static_flag"; then
    6894         # Neither direct hardcoding nor static linking is supported with a
    6895         # broken collect2.
    6896         hardcode_direct=unsupported
    6897       fi
    6898       ;;
    6899 
    6900     aix4* | aix5*)
    6901       if test "$host_cpu" = ia64; then
    6902         # On IA64, the linker does run time linking by default, so we don't
    6903         # have to do anything special.
    6904         aix_use_runtimelinking=no
    6905         exp_sym_flag='-Bexport'
    6906         no_entry_flag=""
    6907       else
    6908         # If we're using GNU nm, then we don't want the "-C" option.
    6909         # -C means demangle to AIX nm, but means don't demangle with GNU nm
    6910         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
    6911           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
    6912         else
    6913           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
    6914         fi
    6915         aix_use_runtimelinking=no
    6916 
    6917         # Test if we are trying to use run time linking or normal
    6918         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
    6919         # need to do runtime linking.
    6920         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
    6921           for ld_flag in $LDFLAGS; do
    6922           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
    6923             aix_use_runtimelinking=yes
    6924             break
    6925           fi
    6926           done
    6927         esac
    6928 
    6929         exp_sym_flag='-bexport'
    6930         no_entry_flag='-bnoentry'
    6931       fi
    6932 
    6933       # When large executables or shared objects are built, AIX ld can
    6934       # have problems creating the table of contents.  If linking a library
    6935       # or program results in "error TOC overflow" add -mminimal-toc to
    6936       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
    6937       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
    6938 
    6939       archive_cmds=''
    6940       hardcode_direct=yes
    6941       hardcode_libdir_separator=':'
    6942       link_all_deplibs=yes
    6943 
    6944       if test "$GCC" = yes; then
    6945         case $host_os in aix4.012|aix4.012.*)
    6946         # We only want to do this on AIX 4.2 and lower, the check
    6947         # below for broken collect2 doesn't work under 4.3+
    6948           collect2name=`${CC} -print-prog-name=collect2`
    6949           if test -f "$collect2name" && \
    6950            strings "$collect2name" | grep resolve_lib_name >/dev/null
    6951           then
    6952           # We have reworked collect2
    6953           hardcode_direct=yes
    6954           else
    6955           # We have old collect2
    6956           hardcode_direct=unsupported
    6957           # It fails to find uninstalled libraries when the uninstalled
    6958           # path is not listed in the libpath.  Setting hardcode_minus_L
    6959           # to unsupported forces relinking
    6960           hardcode_minus_L=yes
    6961           hardcode_libdir_flag_spec='-L$libdir'
    6962           hardcode_libdir_separator=
    6963           fi
    6964         esac
    6965         shared_flag='-shared'
    6966       else
    6967         # not using gcc
    6968         if test "$host_cpu" = ia64; then
    6969         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
    6970         # chokes on -Wl,-G. The following line is correct:
    6971           shared_flag='-G'
    6972         else
    6973         if test "$aix_use_runtimelinking" = yes; then
    6974             shared_flag='${wl}-G'
    6975           else
    6976             shared_flag='${wl}-bM:SRE'
    6977         fi
    6978         fi
    6979       fi
    6980 
    6981       # It seems that -bexpall does not export symbols beginning with
    6982       # underscore (_), so it is better to generate a list of symbols to export.
    6983       always_export_symbols=yes
    6984       if test "$aix_use_runtimelinking" = yes; then
    6985         # Warning - without using the other runtime loading flags (-brtl),
    6986         # -berok will link without error, but may produce a broken library.
    6987         allow_undefined_flag='-berok'
    6988        # Determine the default libpath from the value encoded in an empty executable.
    6989        cat >conftest.$ac_ext <<_ACEOF
    6990 /* confdefs.h.  */
    6991 _ACEOF
    6992 cat confdefs.h >>conftest.$ac_ext
    6993 cat >>conftest.$ac_ext <<_ACEOF
    6994 /* end confdefs.h.  */
    6995 
    6996 int
    6997 main ()
    6998 {
    6999 
    7000   ;
    7001   return 0;
    7002 }
    7003 _ACEOF
    7004 rm -f conftest.$ac_objext conftest$ac_exeext
    7005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    7006   (eval $ac_link) 2>conftest.er1
    7007   ac_status=$?
    7008   grep -v '^ *+' conftest.er1 >conftest.err
    7009   rm -f conftest.er1
    7010   cat conftest.err >&5
    7011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7012   (exit $ac_status); } &&
    7013          { ac_try='test -z "$ac_c_werror_flag"
    7014                          || test ! -s conftest.err'
    7015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    7016   (eval $ac_try) 2>&5
    7017   ac_status=$?
    7018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7019   (exit $ac_status); }; } &&
    7020          { ac_try='test -s conftest$ac_exeext'
    7021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    7022   (eval $ac_try) 2>&5
    7023   ac_status=$?
    7024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7025   (exit $ac_status); }; }; then
    7026 
    7027 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
    7028 }'`
    7029 # Check for a 64-bit object if we didn't find anything.
    7030 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; }
    7031 }'`; fi
    7032 else
    7033   echo "$as_me: failed program was:" >&5
    7034 sed 's/^/| /' conftest.$ac_ext >&5
    7035 
    7036 fi
    7037 rm -f conftest.err conftest.$ac_objext \
    7038       conftest$ac_exeext conftest.$ac_ext
    7039 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
    7040 
    7041        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
    7042         archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
    7043        else
    7044         if test "$host_cpu" = ia64; then
    7045           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
    7046           allow_undefined_flag="-z nodefs"
    7047           archive_expsym_cmds="\$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"
    7048         else
    7049          # Determine the default libpath from the value encoded in an empty executable.
    7050          cat >conftest.$ac_ext <<_ACEOF
    7051 /* confdefs.h.  */
    7052 _ACEOF
    7053 cat confdefs.h >>conftest.$ac_ext
    7054 cat >>conftest.$ac_ext <<_ACEOF
    7055 /* end confdefs.h.  */
    7056 
    7057 int
    7058 main ()
    7059 {
    7060 
    7061   ;
    7062   return 0;
    7063 }
    7064 _ACEOF
    7065 rm -f conftest.$ac_objext conftest$ac_exeext
    7066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    7067   (eval $ac_link) 2>conftest.er1
    7068   ac_status=$?
    7069   grep -v '^ *+' conftest.er1 >conftest.err
    7070   rm -f conftest.er1
    7071   cat conftest.err >&5
    7072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7073   (exit $ac_status); } &&
    7074          { ac_try='test -z "$ac_c_werror_flag"
    7075                          || test ! -s conftest.err'
    7076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    7077   (eval $ac_try) 2>&5
    7078   ac_status=$?
    7079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7080   (exit $ac_status); }; } &&
    7081          { ac_try='test -s conftest$ac_exeext'
    7082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    7083   (eval $ac_try) 2>&5
    7084   ac_status=$?
    7085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7086   (exit $ac_status); }; }; then
    7087 
    7088 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
    7089 }'`
    7090 # Check for a 64-bit object if we didn't find anything.
    7091 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; }
    7092 }'`; fi
    7093 else
    7094   echo "$as_me: failed program was:" >&5
    7095 sed 's/^/| /' conftest.$ac_ext >&5
    7096 
    7097 fi
    7098 rm -f conftest.err conftest.$ac_objext \
    7099       conftest$ac_exeext conftest.$ac_ext
    7100 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
    7101 
    7102          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
    7103           # Warning - without using the other run time loading flags,
    7104           # -berok will link without error, but may produce a broken library.
    7105           no_undefined_flag=' ${wl}-bernotok'
    7106           allow_undefined_flag=' ${wl}-berok'
    7107           # -bexpall does not export symbols beginning with underscore (_)
    7108           always_export_symbols=yes
    7109           # Exported symbols can be pulled into shared objects from archives
    7110           whole_archive_flag_spec=' '
    7111           archive_cmds_need_lc=yes
    7112           # This is similar to how AIX traditionally builds it's shared libraries.
    7113           archive_expsym_cmds="\$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'
    7114         fi
    7115       fi
    7116       ;;
    7117 
    7118     amigaos*)
    7119       archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
    7120       hardcode_libdir_flag_spec='-L$libdir'
    7121       hardcode_minus_L=yes
    7122       # see comment about different semantics on the GNU ld section
    7123       ld_shlibs=no
    7124       ;;
    7125 
    7126     bsdi4*)
    7127       export_dynamic_flag_spec=-rdynamic
    7128       ;;
    7129 
    7130     cygwin* | mingw* | pw32*)
    7131       # When not using gcc, we currently assume that we are using
    7132       # Microsoft Visual C++.
    7133       # hardcode_libdir_flag_spec is actually meaningless, as there is
    7134       # no search path for DLLs.
    7135       hardcode_libdir_flag_spec=' '
    7136       allow_undefined_flag=unsupported
    7137       # Tell ltmain to make .lib files, not .a files.
    7138       libext=lib
    7139       # Tell ltmain to make .dll files, not .so files.
    7140       shrext_cmds=".dll"
    7141       # FIXME: Setting linknames here is a bad hack.
    7142       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
    7143       # The linker will automatically build a .lib file if we build a DLL.
    7144       old_archive_From_new_cmds='true'
    7145       # FIXME: Should let the user specify the lib program.
    7146       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
    7147       fix_srcfile_path='`cygpath -w "$srcfile"`'
    7148       enable_shared_with_static_runtimes=yes
    7149       ;;
    7150 
    7151     darwin* | rhapsody*)
    7152     if test "$GXX" = yes ; then
    7153       archive_cmds_need_lc=no
     5782    hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;;
     5783    *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
     5784    esac
     5785    hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
     5786    hardcode_libdir_separator=:
     5787    hardcode_direct=yes
     5788    hardcode_minus_L=yes # Not in the search PATH, but as the default
     5789                         # location of the library.
     5790    export_dynamic_flag_spec='${wl}-E'
     5791    ;;
     5792
     5793  irix5* | irix6* | nonstopux*)
     5794    if test "$GCC" = yes; then
     5795      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
     5796      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
     5797    else
     5798      archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
     5799      hardcode_libdir_flag_spec='-rpath $libdir'
     5800    fi
     5801    hardcode_libdir_separator=:
     5802    link_all_deplibs=yes
     5803    ;;
     5804
     5805  netbsd*)
     5806    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
     5807      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
     5808    else
     5809      archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
     5810    fi
     5811    hardcode_libdir_flag_spec='-R$libdir'
     5812    hardcode_direct=yes
     5813    hardcode_shlibpath_var=no
     5814    ;;
     5815
     5816  newsos6)
     5817    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
     5818    hardcode_direct=yes
     5819    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
     5820    hardcode_libdir_separator=:
     5821    hardcode_shlibpath_var=no
     5822    ;;
     5823
     5824  openbsd*)
     5825    hardcode_direct=yes
     5826    hardcode_shlibpath_var=no
     5827    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
     5828      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
     5829      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
     5830      export_dynamic_flag_spec='${wl}-E'
     5831    else
    71545832      case "$host_os" in
    7155       rhapsody* | darwin1.[012])
    7156         allow_undefined_flag='-undefined suppress'
    7157         ;;
    7158       *) # Darwin 1.3 on
    7159       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
    7160         allow_undefined_flag='-flat_namespace -undefined suppress'
    7161       else
    7162         case ${MACOSX_DEPLOYMENT_TARGET} in
    7163           10.[012])
    7164             allow_undefined_flag='-flat_namespace -undefined suppress'
    7165             ;;
    7166           10.*)
    7167             allow_undefined_flag='-undefined dynamic_lookup'
    7168             ;;
    7169         esac
    7170       fi
     5833      openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
     5834        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
     5835        hardcode_libdir_flag_spec='-R$libdir'
     5836        ;;
     5837      *)
     5838        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
     5839        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
     5840        ;;
     5841      esac
     5842    fi
     5843    ;;
     5844
     5845  os2*)
     5846    hardcode_libdir_flag_spec='-L$libdir'
     5847    hardcode_minus_L=yes
     5848    allow_undefined_flag=unsupported
     5849    archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
     5850    old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
     5851    ;;
     5852
     5853  osf3*)
     5854    if test "$GCC" = yes; then
     5855      allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
     5856      archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
     5857    else
     5858      allow_undefined_flag=' -expect_unresolved \*'
     5859      archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
     5860    fi
     5861    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
     5862    hardcode_libdir_separator=:
     5863    ;;
     5864
     5865  osf4* | osf5*)        # as osf3* with the addition of -msym flag
     5866    if test "$GCC" = yes; then
     5867      allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
     5868      archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
     5869      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
     5870    else
     5871      allow_undefined_flag=' -expect_unresolved \*'
     5872      archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
     5873      archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
     5874      $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'
     5875
     5876      #Both c and cxx compiler support -rpath directly
     5877      hardcode_libdir_flag_spec='-rpath $libdir'
     5878    fi
     5879    hardcode_libdir_separator=:
     5880    ;;
     5881
     5882  sco3.2v5*)
     5883    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
     5884    hardcode_shlibpath_var=no
     5885    runpath_var=LD_RUN_PATH
     5886    hardcode_runpath_var=yes
     5887    export_dynamic_flag_spec='${wl}-Bexport'
     5888    ;;
     5889
     5890  solaris*)
     5891    # gcc --version < 3.0 without binutils cannot create self contained
     5892    # shared libraries reliably, requiring libgcc.a to resolve some of
     5893    # the object symbols generated in some cases.  Libraries that use
     5894    # assert need libgcc.a to resolve __eprintf, for example.  Linking
     5895    # a copy of libgcc.a into every shared library to guarantee resolving
     5896    # such symbols causes other problems:  According to Tim Van Holder
     5897    # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
     5898    # (to the application) exception stack for one thing.
     5899    no_undefined_flag=' -z defs'
     5900    if test "$GCC" = yes; then
     5901      case `$CC --version 2>/dev/null` in
     5902      [12].*)
     5903        cat <<EOF 1>&2
     5904
     5905*** Warning: Releases of GCC earlier than version 3.0 cannot reliably
     5906*** create self contained shared libraries on Solaris systems, without
     5907*** introducing a dependency on libgcc.a.  Therefore, libtool is disabling
     5908*** -no-undefined support, which will at least allow you to build shared
     5909*** libraries.  However, you may find that when you link such libraries
     5910*** into an application without using GCC, you have to manually add
     5911*** \`gcc --print-libgcc-file-name\` to the link command.  We urge you to
     5912*** upgrade to a newer version of GCC.  Another option is to rebuild your
     5913*** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
     5914
     5915EOF
     5916        no_undefined_flag=
    71715917        ;;
    71725918      esac
    7173         lt_int_apple_cc_single_mod=no
    7174         output_verbose_link_cmd='echo'
    7175         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
    7176           lt_int_apple_cc_single_mod=yes
    7177         fi
    7178         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
    7179           archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
    7180         else
    7181         archive_cmds='$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'
    7182       fi
    7183       module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
    7184       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
    7185         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
    7186           archive_expsym_cmds='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}'
    7187         else
    7188           archive_expsym_cmds='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}'
    7189         fi
    7190           module_expsym_cmds='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}'
    7191       hardcode_direct=no
    7192       hardcode_automatic=yes
    7193       hardcode_shlibpath_var=unsupported
    7194       whole_archive_flag_spec='-all_load $convenience'
    7195       link_all_deplibs=yes
     5919    fi
     5920    # $CC -shared without GNU ld will not create a library from C++
     5921    # object files and a static libstdc++, better avoid it by now
     5922    archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
     5923    archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
     5924                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
     5925    hardcode_libdir_flag_spec='-R$libdir'
     5926    hardcode_shlibpath_var=no
     5927    case $host_os in
     5928    solaris2.[0-5] | solaris2.[0-5].*) ;;
     5929    *) # Supported since Solaris 2.6 (maybe 2.5.1?)
     5930      whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
     5931    esac
     5932    link_all_deplibs=yes
     5933    ;;
     5934
     5935  sunos4*)
     5936    if test "x$host_vendor" = xsequent; then
     5937      # Use $CC to link under sequent, because it throws in some extra .o
     5938      # files that make .init and .fini sections work.
     5939      archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
    71965940    else
    7197       ld_shlibs=no
     5941      archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
    71985942    fi
    7199       ;;
    7200 
    7201     dgux*)
    7202       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
    7203       hardcode_libdir_flag_spec='-L$libdir'
    7204       hardcode_shlibpath_var=no
    7205       ;;
    7206 
    7207     freebsd1*)
    7208       ld_shlibs=no
    7209       ;;
    7210 
    7211     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
    7212     # support.  Future versions do this automatically, but an explicit c++rt0.o
    7213     # does not break anything, and helps significantly (at the cost of a little
    7214     # extra space).
    7215     freebsd2.2*)
    7216       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
    7217       hardcode_libdir_flag_spec='-R$libdir'
    7218       hardcode_direct=yes
    7219       hardcode_shlibpath_var=no
    7220       ;;
    7221 
    7222     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
    7223     freebsd2*)
    7224       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
    7225       hardcode_direct=yes
    7226       hardcode_minus_L=yes
    7227       hardcode_shlibpath_var=no
    7228       ;;
    7229 
    7230     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
    7231     freebsd* | kfreebsd*-gnu)
    7232       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
    7233       hardcode_libdir_flag_spec='-R$libdir'
    7234       hardcode_direct=yes
    7235       hardcode_shlibpath_var=no
    7236       ;;
    7237 
    7238     hpux9*)
    7239       if test "$GCC" = yes; then
    7240         archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
    7241       else
    7242         archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
    7243       fi
    7244       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
    7245       hardcode_libdir_separator=:
    7246       hardcode_direct=yes
    7247 
    7248       # hardcode_minus_L: Not really in the search PATH,
    7249       # but as the default location of the library.
    7250       hardcode_minus_L=yes
    7251       export_dynamic_flag_spec='${wl}-E'
    7252       ;;
    7253 
    7254     hpux10* | hpux11*)
    7255       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
    7256         case "$host_cpu" in
    7257         hppa*64*|ia64*)
    7258           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
    7259           ;;
    7260         *)
    7261           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
    7262           ;;
    7263         esac
    7264       else
    7265         case "$host_cpu" in
    7266         hppa*64*|ia64*)
    7267           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
    7268           ;;
    7269         *)
    7270           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
    7271           ;;
    7272         esac
    7273       fi
    7274       if test "$with_gnu_ld" = no; then
    7275         case "$host_cpu" in
    7276         hppa*64*)
    7277           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
    7278           hardcode_libdir_flag_spec_ld='+b $libdir'
    7279           hardcode_libdir_separator=:
    7280           hardcode_direct=no
    7281           hardcode_shlibpath_var=no
    7282           ;;
    7283         ia64*)
    7284           hardcode_libdir_flag_spec='-L$libdir'
    7285           hardcode_direct=no
    7286           hardcode_shlibpath_var=no
    7287 
    7288           # hardcode_minus_L: Not really in the search PATH,
    7289           # but as the default location of the library.
    7290           hardcode_minus_L=yes
    7291           ;;
    7292         *)
    7293           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
    7294           hardcode_libdir_separator=:
    7295           hardcode_direct=yes
    7296           export_dynamic_flag_spec='${wl}-E'
    7297 
    7298           # hardcode_minus_L: Not really in the search PATH,
    7299           # but as the default location of the library.
    7300           hardcode_minus_L=yes
    7301           ;;
    7302         esac
    7303       fi
    7304       ;;
    7305 
    7306     irix5* | irix6* | nonstopux*)
    7307       if test "$GCC" = yes; then
    7308         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
    7309       else
    7310         archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
    7311         hardcode_libdir_flag_spec_ld='-rpath $libdir'
    7312       fi
    7313       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
    7314       hardcode_libdir_separator=:
    7315       link_all_deplibs=yes
    7316       ;;
    7317 
    7318     netbsd*)
    7319       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
    7320         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
    7321       else
    7322         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
    7323       fi
    7324       hardcode_libdir_flag_spec='-R$libdir'
    7325       hardcode_direct=yes
    7326       hardcode_shlibpath_var=no
    7327       ;;
    7328 
    7329     newsos6)
    7330       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
    7331       hardcode_direct=yes
    7332       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
    7333       hardcode_libdir_separator=:
    7334       hardcode_shlibpath_var=no
    7335       ;;
    7336 
    7337     openbsd*)
    7338       hardcode_direct=yes
    7339       hardcode_shlibpath_var=no
    7340       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
    7341         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
    7342         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
    7343         export_dynamic_flag_spec='${wl}-E'
    7344       else
    7345        case $host_os in
    7346          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
    7347            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
    7348            hardcode_libdir_flag_spec='-R$libdir'
    7349            ;;
    7350          *)
    7351            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
    7352            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
    7353            ;;
    7354        esac
    7355       fi
    7356       ;;
    7357 
    7358     os2*)
    7359       hardcode_libdir_flag_spec='-L$libdir'
    7360       hardcode_minus_L=yes
    7361       allow_undefined_flag=unsupported
    7362       archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
    7363       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
    7364       ;;
    7365 
    7366     osf3*)
    7367       if test "$GCC" = yes; then
    7368         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
    7369         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
    7370       else
    7371         allow_undefined_flag=' -expect_unresolved \*'
    7372         archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
    7373       fi
    7374       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
    7375       hardcode_libdir_separator=:
    7376       ;;
    7377 
    7378     osf4* | osf5*)      # as osf3* with the addition of -msym flag
    7379       if test "$GCC" = yes; then
    7380         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
    7381         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
    7382         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
    7383       else
    7384         allow_undefined_flag=' -expect_unresolved \*'
    7385         archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
    7386         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
    7387         $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'
    7388 
    7389         # Both c and cxx compiler support -rpath directly
    7390         hardcode_libdir_flag_spec='-rpath $libdir'
    7391       fi
    7392       hardcode_libdir_separator=:
    7393       ;;
    7394 
    7395     sco3.2v5*)
     5943    hardcode_libdir_flag_spec='-L$libdir'
     5944    hardcode_direct=yes
     5945    hardcode_minus_L=yes
     5946    hardcode_shlibpath_var=no
     5947    ;;
     5948
     5949  sysv4)
     5950    case $host_vendor in
     5951      sni)
     5952        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
     5953        hardcode_direct=yes # is this really true???
     5954        ;;
     5955      siemens)
     5956        ## LD is ld it makes a PLAMLIB
     5957        ## CC just makes a GrossModule.
     5958        archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
     5959        reload_cmds='$CC -r -o $output$reload_objs'
     5960        hardcode_direct=no
     5961        ;;
     5962      motorola)
     5963        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
     5964        hardcode_direct=no #Motorola manual says yes, but my tests say they lie
     5965        ;;
     5966    esac
     5967    runpath_var='LD_RUN_PATH'
     5968    hardcode_shlibpath_var=no
     5969    ;;
     5970
     5971  sysv4.3*)
     5972    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
     5973    hardcode_shlibpath_var=no
     5974    export_dynamic_flag_spec='-Bexport'
     5975    ;;
     5976
     5977  sysv5*)
     5978    no_undefined_flag=' -z text'
     5979    # $CC -shared without GNU ld will not create a library from C++
     5980    # object files and a static libstdc++, better avoid it by now
     5981    archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
     5982    archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
     5983                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
     5984    hardcode_libdir_flag_spec=
     5985    hardcode_shlibpath_var=no
     5986    runpath_var='LD_RUN_PATH'
     5987    ;;
     5988
     5989  uts4*)
     5990    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
     5991    hardcode_libdir_flag_spec='-L$libdir'
     5992    hardcode_shlibpath_var=no
     5993    ;;
     5994
     5995  dgux*)
     5996    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
     5997    hardcode_libdir_flag_spec='-L$libdir'
     5998    hardcode_shlibpath_var=no
     5999    ;;
     6000
     6001  sysv4*MP*)
     6002    if test -d /usr/nec; then
    73966003      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
    73976004      hardcode_shlibpath_var=no
    7398       export_dynamic_flag_spec='${wl}-Bexport'
    73996005      runpath_var=LD_RUN_PATH
    74006006      hardcode_runpath_var=yes
    7401       ;;
    7402 
    7403     solaris*)
    7404       no_undefined_flag=' -z text'
    7405       if test "$GCC" = yes; then
    7406         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
    7407         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
    7408           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
    7409       else
    7410         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
    7411         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
    7412         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
    7413       fi
    7414       hardcode_libdir_flag_spec='-R$libdir'
    7415       hardcode_shlibpath_var=no
    7416       case $host_os in
    7417       solaris2.[0-5] | solaris2.[0-5].*) ;;
    7418       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
    7419         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
    7420       esac
    7421       link_all_deplibs=yes
    7422       ;;
    7423 
    7424     sunos4*)
    7425       if test "x$host_vendor" = xsequent; then
    7426         # Use $CC to link under sequent, because it throws in some extra .o
    7427         # files that make .init and .fini sections work.
    7428         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
    7429       else
    7430         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
    7431       fi
    7432       hardcode_libdir_flag_spec='-L$libdir'
    7433       hardcode_direct=yes
    7434       hardcode_minus_L=yes
    7435       hardcode_shlibpath_var=no
    7436       ;;
    7437 
    7438     sysv4)
    7439       case $host_vendor in
    7440         sni)
    7441           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
    7442           hardcode_direct=yes # is this really true???
    7443         ;;
    7444         siemens)
    7445           ## LD is ld it makes a PLAMLIB
    7446           ## CC just makes a GrossModule.
    7447           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
    7448           reload_cmds='$CC -r -o $output$reload_objs'
    7449           hardcode_direct=no
    7450         ;;
    7451         motorola)
    7452           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
    7453           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
    7454         ;;
    7455       esac
    7456       runpath_var='LD_RUN_PATH'
    7457       hardcode_shlibpath_var=no
    7458       ;;
    7459 
    7460     sysv4.3*)
    7461       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
    7462       hardcode_shlibpath_var=no
    7463       export_dynamic_flag_spec='-Bexport'
    7464       ;;
    7465 
    7466     sysv4*MP*)
    7467       if test -d /usr/nec; then
    7468         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
    7469         hardcode_shlibpath_var=no
    7470         runpath_var=LD_RUN_PATH
    7471         hardcode_runpath_var=yes
    7472         ld_shlibs=yes
    7473       fi
    7474       ;;
    7475 
    7476     sysv4.2uw2*)
    7477       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
    7478       hardcode_direct=yes
    7479       hardcode_minus_L=no
    7480       hardcode_shlibpath_var=no
    7481       hardcode_runpath_var=yes
    7482       runpath_var=LD_RUN_PATH
    7483       ;;
    7484 
    7485    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
    7486       no_undefined_flag='${wl}-z ${wl}text'
    7487       if test "$GCC" = yes; then
    7488         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
    7489       else
    7490         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
    7491       fi
    7492       runpath_var='LD_RUN_PATH'
    7493       hardcode_shlibpath_var=no
    7494       ;;
    7495 
    7496     sysv5*)
    7497       no_undefined_flag=' -z text'
    7498       # $CC -shared without GNU ld will not create a library from C++
    7499       # object files and a static libstdc++, better avoid it by now
    7500       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
    7501       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
    7502                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
    7503       hardcode_libdir_flag_spec=
    7504       hardcode_shlibpath_var=no
    7505       runpath_var='LD_RUN_PATH'
    7506       ;;
    7507 
    7508     uts4*)
    7509       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
    7510       hardcode_libdir_flag_spec='-L$libdir'
    7511       hardcode_shlibpath_var=no
    7512       ;;
    7513 
    7514     *)
    7515       ld_shlibs=no
    7516       ;;
    7517     esac
    7518   fi
    7519 
     6007      ld_shlibs=yes
     6008    fi
     6009    ;;
     6010
     6011  sysv4.2uw2*)
     6012    archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
     6013    hardcode_direct=yes
     6014    hardcode_minus_L=no
     6015    hardcode_shlibpath_var=no
     6016    hardcode_runpath_var=yes
     6017    runpath_var=LD_RUN_PATH
     6018    ;;
     6019
     6020  sysv5uw7* | unixware7*)
     6021    no_undefined_flag='${wl}-z ${wl}text'
     6022    if test "$GCC" = yes; then
     6023      archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
     6024    else
     6025      archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
     6026    fi
     6027    runpath_var='LD_RUN_PATH'
     6028    hardcode_shlibpath_var=no
     6029    ;;
     6030
     6031  *)
     6032    ld_shlibs=no
     6033    ;;
     6034  esac
     6035fi
    75206036echo "$as_me:$LINENO: result: $ld_shlibs" >&5
    75216037echo "${ECHO_T}$ld_shlibs" >&6
    75226038test "$ld_shlibs" = no && can_build_shared=no
    75236039
    7524 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
    7525 if test "$GCC" = yes; then
    7526   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
    7527 fi
    7528 
    7529 #
    7530 # Do we need to explicitly link libc?
    7531 #
    7532 case "x$archive_cmds_need_lc" in
    7533 x|xyes)
    7534   # Assume -lc should be added
    7535   archive_cmds_need_lc=yes
    7536 
    7537   if test "$enable_shared" = yes && test "$GCC" = yes; then
    7538     case $archive_cmds in
    7539     *'~'*)
    7540       # FIXME: we may have to deal with multi-command sequences.
    7541       ;;
    7542     '$CC '*)
    7543       # Test whether the compiler implicitly links with -lc since on some
    7544       # systems, -lgcc has to come before -lc. If gcc already passes -lc
    7545       # to ld, don't add -lc before -lgcc.
    7546       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
    7547 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
    7548       $rm conftest*
    7549       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
    7550 
    7551       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    7552   (eval $ac_compile) 2>&5
    7553   ac_status=$?
    7554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7555   (exit $ac_status); } 2>conftest.err; then
    7556         soname=conftest
    7557         lib=conftest
    7558         libobjs=conftest.$ac_objext
    7559         deplibs=
    7560         wl=$lt_prog_compiler_wl
    7561         compiler_flags=-v
    7562         linker_flags=-v
    7563         verstring=
    7564         output_objdir=.
    7565         libname=conftest
    7566         lt_save_allow_undefined_flag=$allow_undefined_flag
    7567         allow_undefined_flag=
    7568         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
    7569   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
    7570   ac_status=$?
    7571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7572   (exit $ac_status); }
    7573         then
    7574           archive_cmds_need_lc=no
    7575         else
    7576           archive_cmds_need_lc=yes
    7577         fi
    7578         allow_undefined_flag=$lt_save_allow_undefined_flag
    7579       else
    7580         cat conftest.err 1>&5
    7581       fi
    7582       $rm conftest*
    7583       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
    7584 echo "${ECHO_T}$archive_cmds_need_lc" >&6
    7585       ;;
    7586     esac
     6040# Check hardcoding attributes.
     6041echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
     6042echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
     6043hardcode_action=
     6044if test -n "$hardcode_libdir_flag_spec" || \
     6045   test -n "$runpath_var"; then
     6046
     6047  # We can hardcode non-existant directories.
     6048  if test "$hardcode_direct" != no &&
     6049     # If the only mechanism to avoid hardcoding is shlibpath_var, we
     6050     # have to relink, otherwise we might link with an installed library
     6051     # when we should be linking with a yet-to-be-installed one
     6052     ## test "$hardcode_shlibpath_var" != no &&
     6053     test "$hardcode_minus_L" != no; then
     6054    # Linking always hardcodes the temporary library directory.
     6055    hardcode_action=relink
     6056  else
     6057    # We can link without hardcoding, and we can hardcode nonexisting dirs.
     6058    hardcode_action=immediate
    75876059  fi
    7588   ;;
    7589 esac
    7590 
     6060else
     6061  # We cannot hardcode anything, or else we can only hardcode existing
     6062  # directories.
     6063  hardcode_action=unsupported
     6064fi
     6065echo "$as_me:$LINENO: result: $hardcode_action" >&5
     6066echo "${ECHO_T}$hardcode_action" >&6
     6067
     6068striplib=
     6069old_striplib=
     6070echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
     6071echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
     6072if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
     6073  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
     6074  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
     6075  echo "$as_me:$LINENO: result: yes" >&5
     6076echo "${ECHO_T}yes" >&6
     6077else
     6078  echo "$as_me:$LINENO: result: no" >&5
     6079echo "${ECHO_T}no" >&6
     6080fi
     6081
     6082reload_cmds='$LD$reload_flag -o $output$reload_objs'
     6083test -z "$deplibs_check_method" && deplibs_check_method=unknown
     6084
     6085# PORTME Fill in your ld.so characteristics
    75916086echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
    75926087echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
     
    75946089libname_spec='lib$name'
    75956090soname_spec=
    7596 shrext_cmds=".so"
    75976091postinstall_cmds=
    75986092postuninstall_cmds=
     
    76046098dynamic_linker="$host_os ld.so"
    76056099sys_lib_dlsearch_path_spec="/lib /usr/lib"
    7606 if test "$GCC" = yes; then
    7607   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
    7608   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
    7609     # if the path contains ";" then we assume it to be the separator
    7610     # otherwise default to the standard path separator (i.e. ":") - it is
    7611     # assumed that no part of a normal pathname contains ";" but that should
    7612     # okay in the real world where ";" in dirpaths is itself problematic.
    7613     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
    7614   else
    7615     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
    7616   fi
    7617 else
    7618   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
    7619 fi
    7620 need_lib_prefix=unknown
    7621 hardcode_into_libs=no
    7622 
    7623 # when you set need_version to no, make sure it does not cause -set_version
    7624 # flags to be left without arguments
    7625 need_version=unknown
     6100sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
    76266101
    76276102case $host_os in
    76286103aix3*)
    76296104  version_type=linux
    7630   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
     6105  library_names_spec='${libname}${release}.so$versuffix $libname.a'
    76316106  shlibpath_var=LIBPATH
    76326107
    7633   # AIX 3 has no versioning support, so we append a major version to the name.
    7634   soname_spec='${libname}${release}${shared_ext}$major'
     6108  # AIX has no versioning support, so we append a major version to the name.
     6109  soname_spec='${libname}${release}.so$major'
    76356110  ;;
    76366111
     
    76426117  if test "$host_cpu" = ia64; then
    76436118    # AIX 5 supports IA64
    7644     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
     6119    library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
    76456120    shlibpath_var=LD_LIBRARY_PATH
    76466121  else
     
    76526127    case $host_os in
    76536128      aix4 | aix4.[01] | aix4.[01].*)
    7654       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
    7655            echo ' yes '
    7656            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
    7657         :
    7658       else
    7659         can_build_shared=no
    7660       fi
    7661       ;;
     6129        if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
     6130             echo ' yes '
     6131             echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
     6132          :
     6133        else
     6134          can_build_shared=no
     6135        fi
     6136        ;;
    76626137    esac
    7663     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
    7664     # soname into executable. Probably we can add versioning support to
    7665     # collect2, so additional links can be useful in future.
     6138    # AIX (on Power*) has no versioning support, so currently we can
     6139    # not hardcode correct soname into executable. Probably we can
     6140    # add versioning support to collect2, so additional links can
     6141    # be useful in future.
    76666142    if test "$aix_use_runtimelinking" = yes; then
    76676143      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
    76686144      # instead of lib<name>.a to let people know that these are not
    76696145      # typical AIX shared libraries.
    7670       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
     6146      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
    76716147    else
    76726148      # We preserve .a as extension for shared libraries through AIX4.2
    76736149      # and later when we are not doing run time linking.
    76746150      library_names_spec='${libname}${release}.a $libname.a'
    7675       soname_spec='${libname}${release}${shared_ext}$major'
     6151      soname_spec='${libname}${release}.so$major'
    76766152    fi
    76776153    shlibpath_var=LIBPATH
    76786154  fi
     6155  hardcode_into_libs=yes
    76796156  ;;
    76806157
     
    76826159  library_names_spec='$libname.ixlibrary $libname.a'
    76836160  # Create ${libname}_ixlibrary.a entries in /sys/libs.
    7684   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
     6161  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
    76856162  ;;
    76866163
    76876164beos*)
    7688   library_names_spec='${libname}${shared_ext}'
     6165  library_names_spec='${libname}.so'
    76896166  dynamic_linker="$host_os ld.so"
    76906167  shlibpath_var=LIBRARY_PATH
     
    76946171  version_type=linux
    76956172  need_version=no
    7696   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    7697   soname_spec='${libname}${release}${shared_ext}$major'
     6173  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
     6174  soname_spec='${libname}${release}.so$major'
    76986175  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
    76996176  shlibpath_var=LD_LIBRARY_PATH
    77006177  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
    77016178  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
     6179  export_dynamic_flag_spec=-rdynamic
    77026180  # the default ld.so.conf also contains /usr/contrib/lib and
    77036181  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
     
    77076185cygwin* | mingw* | pw32*)
    77086186  version_type=windows
    7709   shrext_cmds=".dll"
    77106187  need_version=no
    77116188  need_lib_prefix=no
    7712 
    77136189  case $GCC,$host_os in
    7714   yes,cygwin* | yes,mingw* | yes,pw32*)
     6190  yes,cygwin*)
    77156191    library_names_spec='$libname.dll.a'
    7716     # DLL is installed to $(libdir)/../bin by postinstall_cmds
    7717     postinstall_cmds='base_file=`basename \${file}`~
    7718       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
     6192    soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
     6193    postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
    77196194      dldir=$destdir/`dirname \$dlpath`~
    77206195      test -d \$dldir || mkdir -p \$dldir~
    7721       $install_prog $dir/$dlname \$dldir/$dlname'
    7722     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
     6196      $install_prog .libs/$dlname \$dldir/$dlname'
     6197    postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
    77236198      dlpath=$dir/\$dldll~
    77246199       $rm \$dlpath'
    7725     shlibpath_overrides_runpath=yes
    7726 
    7727     case $host_os in
    7728     cygwin*)
    7729       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
    7730       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
    7731       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
    7732       ;;
    7733     mingw*)
    7734       # MinGW DLLs use traditional 'lib' prefix
    7735       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
    7736       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
    7737       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
    7738         # It is most probably a Windows format PATH printed by
    7739         # mingw gcc, but we are running on Cygwin. Gcc prints its search
    7740         # path with ; separators, and with drive letters. We can handle the
    7741         # drive letters (cygwin fileutils understands them), so leave them,
    7742         # especially as we might pass files found there to a mingw objdump,
    7743         # which wouldn't understand a cygwinified path. Ahh.
    7744         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
    7745       else
    7746         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
    7747       fi
    7748       ;;
    7749     pw32*)
    7750       # pw32 DLLs use 'pw' prefix rather than 'lib'
    7751       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
    7752       ;;
    7753     esac
    77546200    ;;
    7755 
     6201  yes,mingw*)
     6202    library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
     6203    sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
     6204    ;;
     6205  yes,pw32*)
     6206    library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
     6207    ;;
    77566208  *)
    7757     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
     6209    library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
    77586210    ;;
    77596211  esac
     
    77686220  need_lib_prefix=no
    77696221  need_version=no
    7770   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
    7771   soname_spec='${libname}${release}${major}$shared_ext'
     6222  # FIXME: Relying on posixy $() will cause problems for
     6223  #        cross-compilation, but unfortunately the echo tests do not
     6224  #        yet detect zsh echo's removal of \ escapes.
     6225  library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
     6226  soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
    77726227  shlibpath_overrides_runpath=yes
    77736228  shlibpath_var=DYLD_LIBRARY_PATH
    7774   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
    7775   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
    7776   if test "$GCC" = yes; then
    7777     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"`
    7778   else
    7779     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
    7780   fi
    7781   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
    7782   ;;
    7783 
    7784 dgux*)
    7785   version_type=linux
    7786   need_lib_prefix=no
    7787   need_version=no
    7788   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
    7789   soname_spec='${libname}${release}${shared_ext}$major'
    7790   shlibpath_var=LD_LIBRARY_PATH
    77916229  ;;
    77926230
    77936231freebsd1*)
    77946232  dynamic_linker=no
    7795   ;;
    7796 
    7797 kfreebsd*-gnu)
    7798   version_type=linux
    7799   need_lib_prefix=no
    7800   need_version=no
    7801   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
    7802   soname_spec='${libname}${release}${shared_ext}$major'
    7803   shlibpath_var=LD_LIBRARY_PATH
    7804   shlibpath_overrides_runpath=no
    7805   hardcode_into_libs=yes
    7806   dynamic_linker='GNU ld.so'
    78076233  ;;
    78086234
     
    78126238  case $version_type in
    78136239    freebsd-elf*)
    7814       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
     6240      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
    78156241      need_version=no
    78166242      need_lib_prefix=no
    78176243      ;;
    78186244    freebsd-*)
    7819       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
     6245      library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
    78206246      need_version=yes
    78216247      ;;
     
    78266252    shlibpath_overrides_runpath=yes
    78276253    ;;
    7828   freebsd3.01* | freebsdelf3.01*)
    7829     shlibpath_overrides_runpath=yes
    7830     hardcode_into_libs=yes
    7831     ;;
    7832   *) # from 3.2 on
     6254  *)
    78336255    shlibpath_overrides_runpath=no
    78346256    hardcode_into_libs=yes
     
    78416263  need_lib_prefix=no
    78426264  need_version=no
    7843   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
    7844   soname_spec='${libname}${release}${shared_ext}$major'
     6265  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
     6266  soname_spec='${libname}${release}.so$major'
    78456267  shlibpath_var=LD_LIBRARY_PATH
    78466268  hardcode_into_libs=yes
     
    78506272  # Give a soname corresponding to the major version so that dld.sl refuses to
    78516273  # link against other versions.
     6274  dynamic_linker="$host_os dld.sl"
    78526275  version_type=sunos
    78536276  need_lib_prefix=no
    78546277  need_version=no
    7855   case "$host_cpu" in
    7856   ia64*)
    7857     shrext_cmds='.so'
    7858     hardcode_into_libs=yes
    7859     dynamic_linker="$host_os dld.so"
    7860     shlibpath_var=LD_LIBRARY_PATH
    7861     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
    7862     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    7863     soname_spec='${libname}${release}${shared_ext}$major'
    7864     if test "X$HPUX_IA64_MODE" = X32; then
    7865       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
    7866     else
    7867       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
    7868     fi
    7869     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
    7870     ;;
    7871    hppa*64*)
    7872      shrext_cmds='.sl'
    7873      hardcode_into_libs=yes
    7874      dynamic_linker="$host_os dld.sl"
    7875      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
    7876      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
    7877      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    7878      soname_spec='${libname}${release}${shared_ext}$major'
    7879      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
    7880      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
    7881      ;;
    7882    *)
    7883     shrext_cmds='.sl'
    7884     dynamic_linker="$host_os dld.sl"
    7885     shlibpath_var=SHLIB_PATH
    7886     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
    7887     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    7888     soname_spec='${libname}${release}${shared_ext}$major'
    7889     ;;
    7890   esac
     6278  shlibpath_var=SHLIB_PATH
     6279  shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
     6280  library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
     6281  soname_spec='${libname}${release}.sl$major'
    78916282  # HP-UX runs *really* slowly unless shared libraries are mode 555.
    78926283  postinstall_cmds='chmod 555 $lib'
     
    78966287  case $host_os in
    78976288    nonstopux*) version_type=nonstopux ;;
    7898     *)
    7899         if test "$lt_cv_prog_gnu_ld" = yes; then
    7900                 version_type=linux
    7901         else
    7902                 version_type=irix
    7903         fi ;;
     6289    *)          version_type=irix ;;
    79046290  esac
    79056291  need_lib_prefix=no
    79066292  need_version=no
    7907   soname_spec='${libname}${release}${shared_ext}$major'
    7908   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
     6293  soname_spec='${libname}${release}.so$major'
     6294  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
    79096295  case $host_os in
    79106296  irix5* | nonstopux*)
     
    79136299  *)
    79146300    case $LD in # libtool.m4 will add one of these switches to LD
    7915     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
    7916       libsuff= shlibsuff= libmagic=32-bit;;
    7917     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
    7918       libsuff=32 shlibsuff=N32 libmagic=N32;;
    7919     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
    7920       libsuff=64 shlibsuff=64 libmagic=64-bit;;
     6301    *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
     6302    *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
     6303    *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
    79216304    *) libsuff= shlibsuff= libmagic=never-match;;
    79226305    esac
     
    79276310  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
    79286311  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
    7929   hardcode_into_libs=yes
    79306312  ;;
    79316313
    79326314# No shared lib support for Linux oldld, aout, or coff.
    7933 linux*oldld* | linux*aout* | linux*coff*)
     6315linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
    79346316  dynamic_linker=no
    79356317  ;;
    79366318
    79376319# This must be Linux ELF.
    7938 linux*)
     6320linux-gnu*)
    79396321  version_type=linux
    79406322  need_lib_prefix=no
    79416323  need_version=no
    7942   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    7943   soname_spec='${libname}${release}${shared_ext}$major'
     6324  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
     6325  soname_spec='${libname}${release}.so$major'
    79446326  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
    79456327  shlibpath_var=LD_LIBRARY_PATH
     
    79506332  hardcode_into_libs=yes
    79516333
    7952   # find out which ABI we are using
     6334  # We used to test for /lib/ld.so.1 and disable shared libraries on
     6335  # powerpc, because MkLinux only supported shared libraries with the
     6336  # GNU dynamic linker.  Since this was broken with cross compilers,
     6337  # most powerpc-linux boxes support dynamic linking these days and
     6338  # people can always --disable-shared, the test was removed, and we
     6339  # assume the GNU/Linux dynamic linker is in use.
     6340  dynamic_linker='GNU/Linux ld.so'
     6341
     6342  # Find out which ABI we are using (multilib Linux x86_64 hack).
    79536343  libsuff=
    79546344  case "$host_cpu" in
    7955   x86_64*|s390x*|powerpc64*)
    7956     echo '#line 7956 "configure"' > conftest.$ac_ext
     6345  x86_64*|s390x*)
     6346    echo '#line 6346 "configure"' > conftest.$ac_ext
    79576347    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    79586348  (eval $ac_compile) 2>&5
     
    79636353      *64-bit*)
    79646354        libsuff=64
    7965         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
    79666355        ;;
    79676356      esac
     
    79696358    rm -rf conftest*
    79706359    ;;
     6360  *)
     6361    ;;
    79716362  esac
    7972 
    7973   # Append ld.so.conf contents to the search path
    7974   if test -f /etc/ld.so.conf; then
    7975     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
    7976     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
    7977   fi
    7978 
    7979   # We used to test for /lib/ld.so.1 and disable shared libraries on
    7980   # powerpc, because MkLinux only supported shared libraries with the
    7981   # GNU dynamic linker.  Since this was broken with cross compilers,
    7982   # most powerpc-linux boxes support dynamic linking these days and
    7983   # people can always --disable-shared, the test was removed, and we
    7984   # assume the GNU/Linux dynamic linker is in use.
    7985   dynamic_linker='GNU/Linux ld.so'
    7986   ;;
    7987 
    7988 knetbsd*-gnu)
    7989   version_type=linux
    7990   need_lib_prefix=no
    7991   need_version=no
    7992   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
    7993   soname_spec='${libname}${release}${shared_ext}$major'
    7994   shlibpath_var=LD_LIBRARY_PATH
    7995   shlibpath_overrides_runpath=no
    7996   hardcode_into_libs=yes
    7997   dynamic_linker='GNU ld.so'
     6363  sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
     6364  sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
    79986365  ;;
    79996366
     
    80036370  need_version=no
    80046371  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
    8005     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
     6372    library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
    80066373    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
    80076374    dynamic_linker='NetBSD (a.out) ld.so'
    80086375  else
    8009     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
    8010     soname_spec='${libname}${release}${shared_ext}$major'
     6376    library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
     6377    soname_spec='${libname}${release}.so$major'
    80116378    dynamic_linker='NetBSD ld.elf_so'
    80126379  fi
     
    80186385newsos6)
    80196386  version_type=linux
    8020   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
     6387  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
    80216388  shlibpath_var=LD_LIBRARY_PATH
    80226389  shlibpath_overrides_runpath=yes
    80236390  ;;
    80246391
    8025 nto-qnx*)
    8026   version_type=linux
    8027   need_lib_prefix=no
    8028   need_version=no
    8029   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    8030   soname_spec='${libname}${release}${shared_ext}$major'
    8031   shlibpath_var=LD_LIBRARY_PATH
    8032   shlibpath_overrides_runpath=yes
    8033   ;;
    8034 
    80356392openbsd*)
    80366393  version_type=sunos
    80376394  need_lib_prefix=no
    8038   need_version=yes
    8039   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
    8040   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
    8041   shlibpath_var=LD_LIBRARY_PATH
     6395  need_version=no
    80426396  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
    8043     case $host_os in
    8044       openbsd2.[89] | openbsd2.[89].*)
    8045         shlibpath_overrides_runpath=no
    8046         ;;
    8047       *)
    8048         shlibpath_overrides_runpath=yes
    8049         ;;
    8050       esac
     6397    case "$host_os" in
     6398    openbsd2.[89] | openbsd2.[89].*)
     6399      shlibpath_overrides_runpath=no
     6400      ;;
     6401    *)
     6402      shlibpath_overrides_runpath=yes
     6403      ;;
     6404    esac
    80516405  else
    80526406    shlibpath_overrides_runpath=yes
    80536407  fi
     6408  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
     6409  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
     6410  shlibpath_var=LD_LIBRARY_PATH
    80546411  ;;
    80556412
    80566413os2*)
    80576414  libname_spec='$name'
    8058   shrext_cmds=".dll"
    80596415  need_lib_prefix=no
    8060   library_names_spec='$libname${shared_ext} $libname.a'
     6416  library_names_spec='$libname.dll $libname.a'
    80616417  dynamic_linker='OS/2 ld.exe'
    80626418  shlibpath_var=LIBPATH
     
    80656421osf3* | osf4* | osf5*)
    80666422  version_type=osf
    8067   need_lib_prefix=no
    80686423  need_version=no
    8069   soname_spec='${libname}${release}${shared_ext}$major'
    8070   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
     6424  soname_spec='${libname}${release}.so$major'
     6425  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
    80716426  shlibpath_var=LD_LIBRARY_PATH
    80726427  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
    80736428  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
     6429  hardcode_into_libs=yes
    80746430  ;;
    80756431
    80766432sco3.2v5*)
    80776433  version_type=osf
    8078   soname_spec='${libname}${release}${shared_ext}$major'
    8079   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
     6434  soname_spec='${libname}${release}.so$major'
     6435  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
    80806436  shlibpath_var=LD_LIBRARY_PATH
    80816437  ;;
     
    80856441  need_lib_prefix=no
    80866442  need_version=no
    8087   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    8088   soname_spec='${libname}${release}${shared_ext}$major'
     6443  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
     6444  soname_spec='${libname}${release}.so$major'
    80896445  shlibpath_var=LD_LIBRARY_PATH
    80906446  shlibpath_overrides_runpath=yes
     
    80966452sunos4*)
    80976453  version_type=sunos
    8098   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
     6454  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
    80996455  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
    81006456  shlibpath_var=LD_LIBRARY_PATH
     
    81086464sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
    81096465  version_type=linux
    8110   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    8111   soname_spec='${libname}${release}${shared_ext}$major'
     6466  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
     6467  soname_spec='${libname}${release}.so$major'
    81126468  shlibpath_var=LD_LIBRARY_PATH
    81136469  case $host_vendor in
     
    81306486  ;;
    81316487
     6488uts4*)
     6489  version_type=linux
     6490  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
     6491  soname_spec='${libname}${release}.so$major'
     6492  shlibpath_var=LD_LIBRARY_PATH
     6493  ;;
     6494
     6495dgux*)
     6496  version_type=linux
     6497  need_lib_prefix=no
     6498  need_version=no
     6499  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
     6500  soname_spec='${libname}${release}.so$major'
     6501  shlibpath_var=LD_LIBRARY_PATH
     6502  ;;
     6503
    81326504sysv4*MP*)
    81336505  if test -d /usr/nec ;then
    81346506    version_type=linux
    8135     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
    8136     soname_spec='$libname${shared_ext}.$major'
     6507    library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
     6508    soname_spec='$libname.so.$major'
    81376509    shlibpath_var=LD_LIBRARY_PATH
    81386510  fi
    8139   ;;
    8140 
    8141 uts4*)
    8142   version_type=linux
    8143   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    8144   soname_spec='${libname}${release}${shared_ext}$major'
    8145   shlibpath_var=LD_LIBRARY_PATH
    81466511  ;;
    81476512
     
    81546519test "$dynamic_linker" = no && can_build_shared=no
    81556520
    8156 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
    8157 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
    8158 hardcode_action=
    8159 if test -n "$hardcode_libdir_flag_spec" || \
    8160    test -n "$runpath_var " || \
    8161    test "X$hardcode_automatic"="Xyes" ; then
    8162 
    8163   # We can hardcode non-existant directories.
    8164   if test "$hardcode_direct" != no &&
    8165      # If the only mechanism to avoid hardcoding is shlibpath_var, we
    8166      # have to relink, otherwise we might link with an installed library
    8167      # when we should be linking with a yet-to-be-installed one
    8168      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
    8169      test "$hardcode_minus_L" != no; then
    8170     # Linking always hardcodes the temporary library directory.
    8171     hardcode_action=relink
    8172   else
    8173     # We can link without hardcoding, and we can hardcode nonexisting dirs.
    8174     hardcode_action=immediate
     6521# Report the final consequences.
     6522echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
     6523echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
     6524echo "$as_me:$LINENO: result: $can_build_shared" >&5
     6525echo "${ECHO_T}$can_build_shared" >&6
     6526
     6527echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
     6528echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
     6529test "$can_build_shared" = "no" && enable_shared=no
     6530
     6531# On AIX, shared libraries and static libraries use the same namespace, and
     6532# are all built from PIC.
     6533case "$host_os" in
     6534aix3*)
     6535  test "$enable_shared" = yes && enable_static=no
     6536  if test -n "$RANLIB"; then
     6537    archive_cmds="$archive_cmds~\$RANLIB \$lib"
     6538    postinstall_cmds='$RANLIB $lib'
    81756539  fi
    8176 else
    8177   # We cannot hardcode anything, or else we can only hardcode existing
    8178   # directories.
    8179   hardcode_action=unsupported
    8180 fi
    8181 echo "$as_me:$LINENO: result: $hardcode_action" >&5
    8182 echo "${ECHO_T}$hardcode_action" >&6
     6540  ;;
     6541
     6542aix4*)
     6543  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
     6544    test "$enable_shared" = yes && enable_static=no
     6545  fi
     6546  ;;
     6547esac
     6548echo "$as_me:$LINENO: result: $enable_shared" >&5
     6549echo "${ECHO_T}$enable_shared" >&6
     6550
     6551echo "$as_me:$LINENO: checking whether to build static libraries" >&5
     6552echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
     6553# Make sure either enable_shared or enable_static is yes.
     6554test "$enable_shared" = yes || enable_static=yes
     6555echo "$as_me:$LINENO: result: $enable_static" >&5
     6556echo "${ECHO_T}$enable_static" >&6
    81836557
    81846558if test "$hardcode_action" = relink; then
     
    81916565fi
    81926566
    8193 striplib=
    8194 old_striplib=
    8195 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
    8196 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
    8197 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
    8198   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
    8199   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
    8200   echo "$as_me:$LINENO: result: yes" >&5
    8201 echo "${ECHO_T}yes" >&6
    8202 else
    8203 # FIXME - insert some real tests, host_os isn't really good enough
    8204   case $host_os in
    8205    darwin*)
    8206        if test -n "$STRIP" ; then
    8207          striplib="$STRIP -x"
    8208          echo "$as_me:$LINENO: result: yes" >&5
    8209 echo "${ECHO_T}yes" >&6
    8210        else
    8211   echo "$as_me:$LINENO: result: no" >&5
    8212 echo "${ECHO_T}no" >&6
    8213 fi
    8214        ;;
    8215    *)
    8216   echo "$as_me:$LINENO: result: no" >&5
    8217 echo "${ECHO_T}no" >&6
    8218     ;;
    8219   esac
     6567variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
     6568if test "$GCC" = yes; then
     6569  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
    82206570fi
    82216571
     
    82356585    ;;
    82366586
    8237   mingw* | pw32*)
     6587  cygwin* | mingw* | pw32*)
    82386588    lt_cv_dlopen="LoadLibrary"
    82396589    lt_cv_dlopen_libs=
    8240    ;;
    8241 
    8242   cygwin*)
    8243     lt_cv_dlopen="dlopen"
    8244     lt_cv_dlopen_libs=
    8245    ;;
    8246 
    8247   darwin*)
    8248   # if libdl is installed we need to link against it
    8249     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
    8250 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
    8251 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
    8252   echo $ECHO_N "(cached) $ECHO_C" >&6
    8253 else
    8254   ac_check_lib_save_LIBS=$LIBS
    8255 LIBS="-ldl  $LIBS"
    8256 cat >conftest.$ac_ext <<_ACEOF
    8257 /* confdefs.h.  */
    8258 _ACEOF
    8259 cat confdefs.h >>conftest.$ac_ext
    8260 cat >>conftest.$ac_ext <<_ACEOF
    8261 /* end confdefs.h.  */
    8262 
    8263 /* Override any gcc2 internal prototype to avoid an error.  */
    8264 #ifdef __cplusplus
    8265 extern "C"
    8266 #endif
    8267 /* We use char because int might match the return type of a gcc2
    8268    builtin and then its argument prototype would still apply.  */
    8269 char dlopen ();
    8270 int
    8271 main ()
    8272 {
    8273 dlopen ();
    8274   ;
    8275   return 0;
    8276 }
    8277 _ACEOF
    8278 rm -f conftest.$ac_objext conftest$ac_exeext
    8279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    8280   (eval $ac_link) 2>conftest.er1
    8281   ac_status=$?
    8282   grep -v '^ *+' conftest.er1 >conftest.err
    8283   rm -f conftest.er1
    8284   cat conftest.err >&5
    8285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    8286   (exit $ac_status); } &&
    8287          { ac_try='test -z "$ac_c_werror_flag"
    8288                          || test ! -s conftest.err'
    8289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    8290   (eval $ac_try) 2>&5
    8291   ac_status=$?
    8292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    8293   (exit $ac_status); }; } &&
    8294          { ac_try='test -s conftest$ac_exeext'
    8295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    8296   (eval $ac_try) 2>&5
    8297   ac_status=$?
    8298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    8299   (exit $ac_status); }; }; then
    8300   ac_cv_lib_dl_dlopen=yes
    8301 else
    8302   echo "$as_me: failed program was:" >&5
    8303 sed 's/^/| /' conftest.$ac_ext >&5
    8304 
    8305 ac_cv_lib_dl_dlopen=no
    8306 fi
    8307 rm -f conftest.err conftest.$ac_objext \
    8308       conftest$ac_exeext conftest.$ac_ext
    8309 LIBS=$ac_check_lib_save_LIBS
    8310 fi
    8311 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
    8312 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
    8313 if test $ac_cv_lib_dl_dlopen = yes; then
    8314   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
    8315 else
    8316 
    8317     lt_cv_dlopen="dyld"
    8318     lt_cv_dlopen_libs=
    8319     lt_cv_dlopen_self=yes
    8320 
    8321 fi
    8322 
    83236590   ;;
    83246591
     
    83306597else
    83316598  cat >conftest.$ac_ext <<_ACEOF
     6599#line $LINENO "configure"
    83326600/* confdefs.h.  */
    83336601_ACEOF
     
    83356603cat >>conftest.$ac_ext <<_ACEOF
    83366604/* end confdefs.h.  */
    8337 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
    8338    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    8339 #define shl_load innocuous_shl_load
    8340 
    83416605/* System header to define __stub macros and hopefully few prototypes,
    83426606    which can conflict with char shl_load (); below.
    83436607    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    83446608    <limits.h> exists even on freestanding compilers.  */
    8345 
    83466609#ifdef __STDC__
    83476610# include <limits.h>
     
    83496612# include <assert.h>
    83506613#endif
    8351 
    8352 #undef shl_load
    8353 
    83546614/* Override any gcc2 internal prototype to avoid an error.  */
    83556615#ifdef __cplusplus
     
    83826642rm -f conftest.$ac_objext conftest$ac_exeext
    83836643if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    8384   (eval $ac_link) 2>conftest.er1
     6644  (eval $ac_link) 2>&5
    83856645  ac_status=$?
    8386   grep -v '^ *+' conftest.er1 >conftest.err
    8387   rm -f conftest.er1
    8388   cat conftest.err >&5
    83896646  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    83906647  (exit $ac_status); } &&
    8391          { ac_try='test -z "$ac_c_werror_flag"
    8392                          || test ! -s conftest.err'
    8393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    8394   (eval $ac_try) 2>&5
    8395   ac_status=$?
    8396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    8397   (exit $ac_status); }; } &&
    8398          { ac_try='test -s conftest$ac_exeext'
     6648         { ac_try='test -s conftest$ac_exeext'
    83996649  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    84006650  (eval $ac_try) 2>&5
     
    84096659ac_cv_func_shl_load=no
    84106660fi
    8411 rm -f conftest.err conftest.$ac_objext \
    8412       conftest$ac_exeext conftest.$ac_ext
     6661rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    84136662fi
    84146663echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
     
    84256674LIBS="-ldld  $LIBS"
    84266675cat >conftest.$ac_ext <<_ACEOF
     6676#line $LINENO "configure"
    84276677/* confdefs.h.  */
    84286678_ACEOF
     
    84486698rm -f conftest.$ac_objext conftest$ac_exeext
    84496699if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    8450   (eval $ac_link) 2>conftest.er1
     6700  (eval $ac_link) 2>&5
    84516701  ac_status=$?
    8452   grep -v '^ *+' conftest.er1 >conftest.err
    8453   rm -f conftest.er1
    8454   cat conftest.err >&5
    84556702  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    84566703  (exit $ac_status); } &&
    8457          { ac_try='test -z "$ac_c_werror_flag"
    8458                          || test ! -s conftest.err'
    8459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    8460   (eval $ac_try) 2>&5
    8461   ac_status=$?
    8462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    8463   (exit $ac_status); }; } &&
    8464          { ac_try='test -s conftest$ac_exeext'
     6704         { ac_try='test -s conftest$ac_exeext'
    84656705  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    84666706  (eval $ac_try) 2>&5
     
    84756715ac_cv_lib_dld_shl_load=no
    84766716fi
    8477 rm -f conftest.err conftest.$ac_objext \
    8478       conftest$ac_exeext conftest.$ac_ext
     6717rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    84796718LIBS=$ac_check_lib_save_LIBS
    84806719fi
     
    84906729else
    84916730  cat >conftest.$ac_ext <<_ACEOF
     6731#line $LINENO "configure"
    84926732/* confdefs.h.  */
    84936733_ACEOF
     
    84956735cat >>conftest.$ac_ext <<_ACEOF
    84966736/* end confdefs.h.  */
    8497 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
    8498    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    8499 #define dlopen innocuous_dlopen
    8500 
    85016737/* System header to define __stub macros and hopefully few prototypes,
    85026738    which can conflict with char dlopen (); below.
    85036739    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    85046740    <limits.h> exists even on freestanding compilers.  */
    8505 
    85066741#ifdef __STDC__
    85076742# include <limits.h>
     
    85096744# include <assert.h>
    85106745#endif
    8511 
    8512 #undef dlopen
    8513 
    85146746/* Override any gcc2 internal prototype to avoid an error.  */
    85156747#ifdef __cplusplus
     
    85426774rm -f conftest.$ac_objext conftest$ac_exeext
    85436775if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    8544   (eval $ac_link) 2>conftest.er1
     6776  (eval $ac_link) 2>&5
    85456777  ac_status=$?
    8546   grep -v '^ *+' conftest.er1 >conftest.err
    8547   rm -f conftest.er1
    8548   cat conftest.err >&5
    85496778  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    85506779  (exit $ac_status); } &&
    8551          { ac_try='test -z "$ac_c_werror_flag"
    8552                          || test ! -s conftest.err'
    8553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    8554   (eval $ac_try) 2>&5
    8555   ac_status=$?
    8556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    8557   (exit $ac_status); }; } &&
    8558          { ac_try='test -s conftest$ac_exeext'
     6780         { ac_try='test -s conftest$ac_exeext'
    85596781  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    85606782  (eval $ac_try) 2>&5
     
    85696791ac_cv_func_dlopen=no
    85706792fi
    8571 rm -f conftest.err conftest.$ac_objext \
    8572       conftest$ac_exeext conftest.$ac_ext
     6793rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    85736794fi
    85746795echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
     
    85856806LIBS="-ldl  $LIBS"
    85866807cat >conftest.$ac_ext <<_ACEOF
     6808#line $LINENO "configure"
    85876809/* confdefs.h.  */
    85886810_ACEOF
     
    86086830rm -f conftest.$ac_objext conftest$ac_exeext
    86096831if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    8610   (eval $ac_link) 2>conftest.er1
     6832  (eval $ac_link) 2>&5
    86116833  ac_status=$?
    8612   grep -v '^ *+' conftest.er1 >conftest.err
    8613   rm -f conftest.er1
    8614   cat conftest.err >&5
    86156834  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    86166835  (exit $ac_status); } &&
    8617          { ac_try='test -z "$ac_c_werror_flag"
    8618                          || test ! -s conftest.err'
    8619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    8620   (eval $ac_try) 2>&5
    8621   ac_status=$?
    8622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    8623   (exit $ac_status); }; } &&
    8624          { ac_try='test -s conftest$ac_exeext'
     6836         { ac_try='test -s conftest$ac_exeext'
    86256837  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    86266838  (eval $ac_try) 2>&5
     
    86356847ac_cv_lib_dl_dlopen=no
    86366848fi
    8637 rm -f conftest.err conftest.$ac_objext \
    8638       conftest$ac_exeext conftest.$ac_ext
     6849rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    86396850LIBS=$ac_check_lib_save_LIBS
    86406851fi
     
    86526863LIBS="-lsvld  $LIBS"
    86536864cat >conftest.$ac_ext <<_ACEOF
     6865#line $LINENO "configure"
    86546866/* confdefs.h.  */
    86556867_ACEOF
     
    86756887rm -f conftest.$ac_objext conftest$ac_exeext
    86766888if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    8677   (eval $ac_link) 2>conftest.er1
     6889  (eval $ac_link) 2>&5
    86786890  ac_status=$?
    8679   grep -v '^ *+' conftest.er1 >conftest.err
    8680   rm -f conftest.er1
    8681   cat conftest.err >&5
    86826891  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    86836892  (exit $ac_status); } &&
    8684          { ac_try='test -z "$ac_c_werror_flag"
    8685                          || test ! -s conftest.err'
    8686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    8687   (eval $ac_try) 2>&5
    8688   ac_status=$?
    8689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    8690   (exit $ac_status); }; } &&
    8691          { ac_try='test -s conftest$ac_exeext'
     6893         { ac_try='test -s conftest$ac_exeext'
    86926894  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    86936895  (eval $ac_try) 2>&5
     
    87026904ac_cv_lib_svld_dlopen=no
    87036905fi
    8704 rm -f conftest.err conftest.$ac_objext \
    8705       conftest$ac_exeext conftest.$ac_ext
     6906rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    87066907LIBS=$ac_check_lib_save_LIBS
    87076908fi
     
    87196920LIBS="-ldld  $LIBS"
    87206921cat >conftest.$ac_ext <<_ACEOF
     6922#line $LINENO "configure"
    87216923/* confdefs.h.  */
    87226924_ACEOF
     
    87426944rm -f conftest.$ac_objext conftest$ac_exeext
    87436945if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    8744   (eval $ac_link) 2>conftest.er1
     6946  (eval $ac_link) 2>&5
    87456947  ac_status=$?
    8746   grep -v '^ *+' conftest.er1 >conftest.err
    8747   rm -f conftest.er1
    8748   cat conftest.err >&5
    87496948  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    87506949  (exit $ac_status); } &&
    8751          { ac_try='test -z "$ac_c_werror_flag"
    8752                          || test ! -s conftest.err'
    8753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    8754   (eval $ac_try) 2>&5
    8755   ac_status=$?
    8756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    8757   (exit $ac_status); }; } &&
    8758          { ac_try='test -s conftest$ac_exeext'
     6950         { ac_try='test -s conftest$ac_exeext'
    87596951  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    87606952  (eval $ac_try) 2>&5
     
    87696961ac_cv_lib_dld_dld_link=no
    87706962fi
    8771 rm -f conftest.err conftest.$ac_objext \
    8772       conftest$ac_exeext conftest.$ac_ext
     6963rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    87736964LIBS=$ac_check_lib_save_LIBS
    87746965fi
     
    88066997  dlopen)
    88076998    save_CPPFLAGS="$CPPFLAGS"
    8808     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
     6999        test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
    88097000
    88107001    save_LDFLAGS="$LDFLAGS"
     
    88227013  lt_cv_dlopen_self=cross
    88237014else
    8824   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
     7015    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
    88257016  lt_status=$lt_dlunknown
    88267017  cat > conftest.$ac_ext <<EOF
    8827 #line 8827 "configure"
     7018#line 7018 "configure"
    88287019#include "confdefs.h"
    88297020
     
    89207111  lt_cv_dlopen_self_static=cross
    89217112else
    8922   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
     7113    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
    89237114  lt_status=$lt_dlunknown
    89247115  cat > conftest.$ac_ext <<EOF
    8925 #line 8925 "configure"
     7116#line 7116 "configure"
    89267117#include "confdefs.h"
    89277118
     
    90277218
    90287219
    9029 # Report which librarie types wil actually be built
    9030 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
    9031 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
    9032 echo "$as_me:$LINENO: result: $can_build_shared" >&5
    9033 echo "${ECHO_T}$can_build_shared" >&6
    9034 
    9035 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
    9036 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
    9037 test "$can_build_shared" = "no" && enable_shared=no
    9038 
    9039 # On AIX, shared libraries and static libraries use the same namespace, and
    9040 # are all built from PIC.
    9041 case "$host_os" in
    9042 aix3*)
    9043   test "$enable_shared" = yes && enable_static=no
    9044   if test -n "$RANLIB"; then
    9045     archive_cmds="$archive_cmds~\$RANLIB \$lib"
    9046     postinstall_cmds='$RANLIB $lib'
    9047   fi
    9048   ;;
    9049 
    9050 aix4* | aix5*)
    9051   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
    9052     test "$enable_shared" = yes && enable_static=no
    9053   fi
    9054   ;;
    9055   darwin* | rhapsody*)
    9056   if test "$GCC" = yes; then
    9057     archive_cmds_need_lc=no
    9058     case "$host_os" in
    9059     rhapsody* | darwin1.[012])
    9060       allow_undefined_flag='-undefined suppress'
    9061       ;;
    9062     *) # Darwin 1.3 on
    9063       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
    9064         allow_undefined_flag='-flat_namespace -undefined suppress'
     7220if test "$enable_shared" = yes && test "$GCC" = yes; then
     7221  case $archive_cmds in
     7222  *'~'*)
     7223    # FIXME: we may have to deal with multi-command sequences.
     7224    ;;
     7225  '$CC '*)
     7226    # Test whether the compiler implicitly links with -lc since on some
     7227    # systems, -lgcc has to come before -lc. If gcc already passes -lc
     7228    # to ld, don't add -lc before -lgcc.
     7229    echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
     7230echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
     7231    if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
     7232  echo $ECHO_N "(cached) $ECHO_C" >&6
     7233else
     7234  $rm conftest*
     7235    echo 'static int dummy;' > conftest.$ac_ext
     7236
     7237    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     7238  (eval $ac_compile) 2>&5
     7239  ac_status=$?
     7240  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7241  (exit $ac_status); }; then
     7242      soname=conftest
     7243      lib=conftest
     7244      libobjs=conftest.$ac_objext
     7245      deplibs=
     7246      wl=$lt_cv_prog_cc_wl
     7247      compiler_flags=-v
     7248      linker_flags=-v
     7249      verstring=
     7250      output_objdir=.
     7251      libname=conftest
     7252      save_allow_undefined_flag=$allow_undefined_flag
     7253      allow_undefined_flag=
     7254      if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
     7255  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
     7256  ac_status=$?
     7257  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7258  (exit $ac_status); }
     7259      then
     7260        lt_cv_archive_cmds_need_lc=no
    90657261      else
    9066         case ${MACOSX_DEPLOYMENT_TARGET} in
    9067           10.[012])
    9068             allow_undefined_flag='-flat_namespace -undefined suppress'
    9069             ;;
    9070           10.*)
    9071             allow_undefined_flag='-undefined dynamic_lookup'
    9072             ;;
    9073         esac
     7262        lt_cv_archive_cmds_need_lc=yes
    90747263      fi
    9075       ;;
    9076     esac
    9077     output_verbose_link_cmd='echo'
    9078     archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
    9079     module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
    9080     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
    9081     archive_expsym_cmds='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}'
    9082     module_expsym_cmds='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}'
    9083     hardcode_direct=no
    9084     hardcode_automatic=yes
    9085     hardcode_shlibpath_var=unsupported
    9086     whole_archive_flag_spec='-all_load $convenience'
    9087     link_all_deplibs=yes
    9088   else
    9089     ld_shlibs=no
    9090   fi
     7264      allow_undefined_flag=$save_allow_undefined_flag
     7265    else
     7266      cat conftest.err 1>&5
     7267    fi
     7268fi
     7269
     7270    echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
     7271echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
    90917272    ;;
    9092 esac
    9093 echo "$as_me:$LINENO: result: $enable_shared" >&5
    9094 echo "${ECHO_T}$enable_shared" >&6
    9095 
    9096 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
    9097 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
    9098 # Make sure either enable_shared or enable_static is yes.
    9099 test "$enable_shared" = yes || enable_static=yes
    9100 echo "$as_me:$LINENO: result: $enable_static" >&5
    9101 echo "${ECHO_T}$enable_static" >&6
    9102 
    9103 # The else clause should only fire when bootstrapping the
     7273  esac
     7274fi
     7275need_lc=${lt_cv_archive_cmds_need_lc-yes}
     7276
     7277# The second clause should only fire when bootstrapping the
    91047278# libtool distribution, otherwise you forgot to ship ltmain.sh
    91057279# with your package, and you will get complaints that there are
    91067280# no rules to generate ltmain.sh.
    91077281if test -f "$ltmain"; then
    9108   # See if we are running on zsh, and set the options which allow our commands through
    9109   # without removal of \ escapes.
    9110   if test -n "${ZSH_VERSION+set}" ; then
    9111     setopt NO_GLOB_SUBST
    9112   fi
     7282  :
     7283else
     7284  # If there is no Makefile yet, we rely on a make rule to execute
     7285  # `config.status --recheck' to rerun these tests and create the
     7286  # libtool script then.
     7287  test -f Makefile && make "$ltmain"
     7288fi
     7289
     7290if test -f "$ltmain"; then
     7291  trap "$rm \"${ofile}T\"; exit 1" 1 2 15
     7292  $rm -f "${ofile}T"
     7293
     7294  echo creating $ofile
     7295
    91137296  # Now quote all the things that may contain metacharacters while being
    91147297  # careful not to overquote the AC_SUBSTed values.  We take copies of the
    91157298  # variables and quote the copies for generation of the libtool script.
    9116   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
    9117     SED SHELL STRIP \
    9118     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
    9119     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
    9120     deplibs_check_method reload_flag reload_cmds need_locks \
    9121     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
    9122     lt_cv_sys_global_symbol_to_c_name_address \
     7299  for var in echo old_CC old_CFLAGS SED \
     7300    AR AR_FLAGS CC LD LN_S NM SHELL \
     7301    reload_flag reload_cmds wl \
     7302    pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
     7303    thread_safe_flag_spec whole_archive_flag_spec libname_spec \
     7304    library_names_spec soname_spec \
     7305    RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
     7306    old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
     7307    postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
     7308    old_striplib striplib file_magic_cmd export_symbols_cmds \
     7309    deplibs_check_method allow_undefined_flag no_undefined_flag \
     7310    finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
     7311    global_symbol_to_c_name_address \
     7312    hardcode_libdir_flag_spec hardcode_libdir_separator  \
    91237313    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
    9124     old_postinstall_cmds old_postuninstall_cmds \
    9125     compiler \
    9126     CC \
    9127     LD \
    9128     lt_prog_compiler_wl \
    9129     lt_prog_compiler_pic \
    9130     lt_prog_compiler_static \
    9131     lt_prog_compiler_no_builtin_flag \
    9132     export_dynamic_flag_spec \
    9133     thread_safe_flag_spec \
    9134     whole_archive_flag_spec \
    9135     enable_shared_with_static_runtimes \
    9136     old_archive_cmds \
    9137     old_archive_from_new_cmds \
    9138     predep_objects \
    9139     postdep_objects \
    9140     predeps \
    9141     postdeps \
    9142     compiler_lib_search_path \
    9143     archive_cmds \
    9144     archive_expsym_cmds \
    9145     postinstall_cmds \
    9146     postuninstall_cmds \
    9147     old_archive_from_expsyms_cmds \
    9148     allow_undefined_flag \
    9149     no_undefined_flag \
    9150     export_symbols_cmds \
    9151     hardcode_libdir_flag_spec \
    9152     hardcode_libdir_flag_spec_ld \
    9153     hardcode_libdir_separator \
    9154     hardcode_automatic \
    9155     module_cmds \
    9156     module_expsym_cmds \
    9157     lt_cv_prog_compiler_c_o \
    9158     exclude_expsyms \
    9159     include_expsyms; do
     7314    compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
    91607315
    91617316    case $var in
    9162     old_archive_cmds | \
    9163     old_archive_from_new_cmds | \
    9164     archive_cmds | \
    9165     archive_expsym_cmds | \
    9166     module_cmds | \
    9167     module_expsym_cmds | \
    9168     old_archive_from_expsyms_cmds | \
    9169     export_symbols_cmds | \
    9170     extract_expsyms_cmds | reload_cmds | finish_cmds | \
     7317    reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
     7318    old_postinstall_cmds | old_postuninstall_cmds | \
     7319    export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
     7320    extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
    91717321    postinstall_cmds | postuninstall_cmds | \
    9172     old_postinstall_cmds | old_postuninstall_cmds | \
    9173     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
     7322    finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
    91747323      # Double-quote double-evaled strings.
    91757324      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
     
    91817330  done
    91827331
    9183   case $lt_echo in
    9184   *'\$0 --fallback-echo"')
    9185     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
    9186     ;;
    9187   esac
    9188 
    9189 cfgfile="${ofile}T"
    9190   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
    9191   $rm -f "$cfgfile"
    9192   { echo "$as_me:$LINENO: creating $ofile" >&5
    9193 echo "$as_me: creating $ofile" >&6;}
    9194 
    9195   cat <<__EOF__ >> "$cfgfile"
     7332  cat <<__EOF__ > "${ofile}T"
    91967333#! $SHELL
    91977334
    9198 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
     7335# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
    91997336# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
    92007337# NOTE: Changes made to this file will be lost: look at ltmain.sh.
    92017338#
    9202 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
    9203 # Free Software Foundation, Inc.
    9204 #
    9205 # This file is part of GNU Libtool:
     7339# Copyright (C) 1996-2000 Free Software Foundation, Inc.
    92067340# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
    92077341#
     
    92257359# the same distribution terms that you use for the rest of that program.
    92267360
    9227 # A sed program that does not truncate output.
     7361# A sed that does not truncate output.
    92287362SED=$lt_SED
    92297363
    92307364# Sed that helps us avoid accidentally triggering echo(1) options like -n.
    9231 Xsed="$SED -e s/^X//"
     7365Xsed="${SED} -e s/^X//"
    92327366
    92337367# The HP-UX ksh and POSIX shell print the target directory to stdout
     
    92357369if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
    92367370
    9237 # The names of the tagged configurations supported by this script.
    9238 available_tags=
    9239 
    92407371# ### BEGIN LIBTOOL CONFIG
    92417372
     
    92527383
    92537384# Whether or not to add -lc for building shared libraries.
    9254 build_libtool_need_lc=$archive_cmds_need_lc
    9255 
    9256 # Whether or not to disallow shared libs when runtime libs are static
    9257 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
     7385build_libtool_need_lc=$need_lc
    92587386
    92597387# Whether or not to optimize for fast installation.
     
    92717399AR_FLAGS=$lt_AR_FLAGS
    92727400
    9273 # A C compiler.
    9274 LTCC=$lt_LTCC
    9275 
    9276 # A language-specific compiler.
    9277 CC=$lt_compiler
     7401# The default C compiler.
     7402CC=$lt_CC
    92787403
    92797404# Is the compiler the GNU C compiler?
    92807405with_gcc=$GCC
    92817406
    9282 # An ERE matcher.
    9283 EGREP=$lt_EGREP
    9284 
    92857407# The linker used to build libraries.
    92867408LD=$lt_LD
     
    92937415
    92947416# A symbol stripping program
    9295 STRIP=$lt_STRIP
     7417STRIP=$STRIP
    92967418
    92977419# Used to examine libraries when file_magic_cmd begins "file"
     
    93157437
    93167438# How to pass a linker flag through the compiler.
    9317 wl=$lt_lt_prog_compiler_wl
     7439wl=$lt_wl
    93187440
    93197441# Object file suffix (normally "o").
     
    93237445libext="$libext"
    93247446
    9325 # Shared library suffix (normally ".so").
    9326 shrext_cmds='$shrext_cmds'
    9327 
    93287447# Executable file suffix (normally "").
    93297448exeext="$exeext"
    93307449
    93317450# Additional compiler flags for building library objects.
    9332 pic_flag=$lt_lt_prog_compiler_pic
     7451pic_flag=$lt_pic_flag
    93337452pic_mode=$pic_mode
    93347453
    9335 # What is the maximum length of a command?
    9336 max_cmd_len=$lt_cv_sys_max_cmd_len
    9337 
    93387454# Does compiler simultaneously support -c and -o options?
    9339 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
     7455compiler_c_o=$lt_compiler_c_o
     7456
     7457# Can we write directly to a .lo ?
     7458compiler_o_lo=$lt_compiler_o_lo
    93407459
    93417460# Must we lock files when doing compilation ?
     
    93587477
    93597478# Compiler flag to prevent dynamic linking.
    9360 link_static_flag=$lt_lt_prog_compiler_static
     7479link_static_flag=$lt_link_static_flag
    93617480
    93627481# Compiler flag to turn off builtin functions.
    9363 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
     7482no_builtin_flag=$lt_no_builtin_flag
    93647483
    93657484# Compiler flag to allow reflexive dlopens.
     
    94037522postuninstall_cmds=$lt_postuninstall_cmds
    94047523
    9405 # Commands used to build a loadable module (assumed same as above if empty)
    9406 module_cmds=$lt_module_cmds
    9407 module_expsym_cmds=$lt_module_expsym_cmds
    9408 
    94097524# Commands to strip libraries.
    94107525old_striplib=$lt_old_striplib
    94117526striplib=$lt_striplib
    94127527
    9413 # Dependencies to place before the objects being linked to create a
    9414 # shared library.
    9415 predep_objects=$lt_predep_objects
    9416 
    9417 # Dependencies to place after the objects being linked to create a
    9418 # shared library.
    9419 postdep_objects=$lt_postdep_objects
    9420 
    9421 # Dependencies to place before the objects being linked to create a
    9422 # shared library.
    9423 predeps=$lt_predeps
    9424 
    9425 # Dependencies to place after the objects being linked to create a
    9426 # shared library.
    9427 postdeps=$lt_postdeps
    9428 
    9429 # The library search path used internally by the compiler when linking
    9430 # a shared library.
    9431 compiler_lib_search_path=$lt_compiler_lib_search_path
    9432 
    94337528# Method to check whether dependent libraries are shared objects.
    94347529deplibs_check_method=$lt_deplibs_check_method
     
    94507545
    94517546# Take the output of nm and produce a listing of raw symbols and C names.
    9452 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
     7547global_symbol_pipe=$lt_global_symbol_pipe
    94537548
    94547549# Transform the output of nm in a proper C declaration
    9455 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
     7550global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
    94567551
    94577552# Transform the output of nm in a C name address pair
    9458 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
     7553global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
    94597554
    94607555# This is the shared library runtime path variable.
     
    94777572hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
    94787573
    9479 # If ld is used when linking, flag to hardcode \$libdir into
    9480 # a binary during linking. This must work even if \$libdir does
    9481 # not exist.
    9482 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
    9483 
    94847574# Whether we need a single -rpath flag with a separated argument.
    94857575hardcode_libdir_separator=$lt_hardcode_libdir_separator
    94867576
    9487 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
     7577# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
    94887578# resulting binary.
    94897579hardcode_direct=$hardcode_direct
     
    94977587hardcode_shlibpath_var=$hardcode_shlibpath_var
    94987588
    9499 # Set to yes if building a shared library automatically hardcodes DIR into the library
    9500 # and all subsequent libraries and executables linked against it.
    9501 hardcode_automatic=$hardcode_automatic
    9502 
    95037589# Variables whose values should be saved in libtool wrapper scripts and
    95047590# restored at relink time.
     
    95367622__EOF__
    95377623
    9538 
    95397624  case $host_os in
    95407625  aix3*)
    9541     cat <<\EOF >> "$cfgfile"
     7626    cat <<\EOF >> "${ofile}T"
    95427627
    95437628# AIX sometimes has problems with the GCC collect2 program.  For some
     
    95527637  esac
    95537638
     7639  case $host_os in
     7640  cygwin* | mingw* | pw32* | os2*)
     7641    cat <<'EOF' >> "${ofile}T"
     7642      # This is a source program that is used to create dlls on Windows
     7643      # Don't remove nor modify the starting and closing comments
     7644# /* ltdll.c starts here */
     7645# #define WIN32_LEAN_AND_MEAN
     7646# #include <windows.h>
     7647# #undef WIN32_LEAN_AND_MEAN
     7648# #include <stdio.h>
     7649#
     7650# #ifndef __CYGWIN__
     7651# #  ifdef __CYGWIN32__
     7652# #    define __CYGWIN__ __CYGWIN32__
     7653# #  endif
     7654# #endif
     7655#
     7656# #ifdef __cplusplus
     7657# extern "C" {
     7658# #endif
     7659# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
     7660# #ifdef __cplusplus
     7661# }
     7662# #endif
     7663#
     7664# #ifdef __CYGWIN__
     7665# #include <cygwin/cygwin_dll.h>
     7666# DECLARE_CYGWIN_DLL( DllMain );
     7667# #endif
     7668# HINSTANCE __hDllInstance_base;
     7669#
     7670# BOOL APIENTRY
     7671# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
     7672# {
     7673#   __hDllInstance_base = hInst;
     7674#   return TRUE;
     7675# }
     7676# /* ltdll.c ends here */
     7677        # This is a source program that is used to create import libraries
     7678        # on Windows for dlls which lack them. Don't remove nor modify the
     7679        # starting and closing comments
     7680# /* impgen.c starts here */
     7681# /*   Copyright (C) 1999-2000 Free Software Foundation, Inc.
     7682#
     7683#  This file is part of GNU libtool.
     7684#
     7685#  This program is free software; you can redistribute it and/or modify
     7686#  it under the terms of the GNU General Public License as published by
     7687#  the Free Software Foundation; either version 2 of the License, or
     7688#  (at your option) any later version.
     7689#
     7690#  This program is distributed in the hope that it will be useful,
     7691#  but WITHOUT ANY WARRANTY; without even the implied warranty of
     7692#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     7693#  GNU General Public License for more details.
     7694#
     7695#  You should have received a copy of the GNU General Public License
     7696#  along with this program; if not, write to the Free Software
     7697#  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
     7698#  */
     7699#
     7700# #include <stdio.h>            /* for printf() */
     7701# #include <unistd.h>           /* for open(), lseek(), read() */
     7702# #include <fcntl.h>            /* for O_RDONLY, O_BINARY */
     7703# #include <string.h>           /* for strdup() */
     7704#
     7705# /* O_BINARY isn't required (or even defined sometimes) under Unix */
     7706# #ifndef O_BINARY
     7707# #define O_BINARY 0
     7708# #endif
     7709#
     7710# static unsigned int
     7711# pe_get16 (fd, offset)
     7712#      int fd;
     7713#      int offset;
     7714# {
     7715#   unsigned char b[2];
     7716#   lseek (fd, offset, SEEK_SET);
     7717#   read (fd, b, 2);
     7718#   return b[0] + (b[1]<<8);
     7719# }
     7720#
     7721# static unsigned int
     7722# pe_get32 (fd, offset)
     7723#     int fd;
     7724#     int offset;
     7725# {
     7726#   unsigned char b[4];
     7727#   lseek (fd, offset, SEEK_SET);
     7728#   read (fd, b, 4);
     7729#   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
     7730# }
     7731#
     7732# static unsigned int
     7733# pe_as32 (ptr)
     7734#      void *ptr;
     7735# {
     7736#   unsigned char *b = ptr;
     7737#   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
     7738# }
     7739#
     7740# int
     7741# main (argc, argv)
     7742#     int argc;
     7743#     char *argv[];
     7744# {
     7745#     int dll;
     7746#     unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
     7747#     unsigned long export_rva, export_size, nsections, secptr, expptr;
     7748#     unsigned long name_rvas, nexp;
     7749#     unsigned char *expdata, *erva;
     7750#     char *filename, *dll_name;
     7751#
     7752#     filename = argv[1];
     7753#
     7754#     dll = open(filename, O_RDONLY|O_BINARY);
     7755#     if (dll < 1)
     7756#       return 1;
     7757#
     7758#     dll_name = filename;
     7759#
     7760#     for (i=0; filename[i]; i++)
     7761#       if (filename[i] == '/' || filename[i] == '\\'  || filename[i] == ':')
     7762#           dll_name = filename + i +1;
     7763#
     7764#     pe_header_offset = pe_get32 (dll, 0x3c);
     7765#     opthdr_ofs = pe_header_offset + 4 + 20;
     7766#     num_entries = pe_get32 (dll, opthdr_ofs + 92);
     7767#
     7768#     if (num_entries < 1) /* no exports */
     7769#       return 1;
     7770#
     7771#     export_rva = pe_get32 (dll, opthdr_ofs + 96);
     7772#     export_size = pe_get32 (dll, opthdr_ofs + 100);
     7773#     nsections = pe_get16 (dll, pe_header_offset + 4 +2);
     7774#     secptr = (pe_header_offset + 4 + 20 +
     7775#             pe_get16 (dll, pe_header_offset + 4 + 16));
     7776#
     7777#     expptr = 0;
     7778#     for (i = 0; i < nsections; i++)
     7779#     {
     7780#       char sname[8];
     7781#       unsigned long secptr1 = secptr + 40 * i;
     7782#       unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
     7783#       unsigned long vsize = pe_get32 (dll, secptr1 + 16);
     7784#       unsigned long fptr = pe_get32 (dll, secptr1 + 20);
     7785#       lseek(dll, secptr1, SEEK_SET);
     7786#       read(dll, sname, 8);
     7787#       if (vaddr <= export_rva && vaddr+vsize > export_rva)
     7788#       {
     7789#           expptr = fptr + (export_rva - vaddr);
     7790#           if (export_rva + export_size > vaddr + vsize)
     7791#               export_size = vsize - (export_rva - vaddr);
     7792#           break;
     7793#       }
     7794#     }
     7795#
     7796#     expdata = (unsigned char*)malloc(export_size);
     7797#     lseek (dll, expptr, SEEK_SET);
     7798#     read (dll, expdata, export_size);
     7799#     erva = expdata - export_rva;
     7800#
     7801#     nexp = pe_as32 (expdata+24);
     7802#     name_rvas = pe_as32 (expdata+32);
     7803#
     7804#     printf ("EXPORTS\n");
     7805#     for (i = 0; i<nexp; i++)
     7806#     {
     7807#       unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
     7808#       printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
     7809#     }
     7810#
     7811#     return 0;
     7812# }
     7813# /* impgen.c ends here */
     7814
     7815EOF
     7816    ;;
     7817  esac
     7818
    95547819  # We use sed instead of cat because bash on DJGPP gets confused if
    95557820  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
    95567821  # text mode, it properly converts lines to CR/LF.  This bash problem
    95577822  # is reportedly fixed, but why not run on old versions too?
    9558   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
    9559 
    9560   mv -f "$cfgfile" "$ofile" || \
    9561     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
     7823  sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
     7824
     7825  mv -f "${ofile}T" "$ofile" || \
     7826    (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
    95627827  chmod +x "$ofile"
    9563 
    9564 else
    9565   # If there is no Makefile yet, we rely on a make rule to execute
    9566   # `config.status --recheck' to rerun these tests and create the
    9567   # libtool script then.
    9568   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
    9569   if test -f "$ltmain_in"; then
    9570     test -f Makefile && make "$ltmain"
    9571   fi
    9572 fi
    9573 
    9574 
    9575 ac_ext=c
    9576 ac_cpp='$CPP $CPPFLAGS'
    9577 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    9578 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    9579 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    9580 
    9581 CC="$lt_save_CC"
    9582 
    9583 
    9584 # Check whether --with-tags or --without-tags was given.
    9585 if test "${with_tags+set}" = set; then
    9586   withval="$with_tags"
    9587   tagnames="$withval"
    9588 fi;
    9589 
    9590 if test -f "$ltmain" && test -n "$tagnames"; then
    9591   if test ! -f "${ofile}"; then
    9592     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
    9593 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
    9594   fi
    9595 
    9596   if test -z "$LTCC"; then
    9597     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
    9598     if test -z "$LTCC"; then
    9599       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
    9600 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
    9601     else
    9602       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
    9603 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
    9604     fi
    9605   fi
    9606 
    9607   # Extract list of available tagged configurations in $ofile.
    9608   # Note that this assumes the entire list is on one line.
    9609   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
    9610 
    9611   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
    9612   for tagname in $tagnames; do
    9613     IFS="$lt_save_ifs"
    9614     # Check whether tagname contains only valid characters
    9615     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
    9616     "") ;;
    9617     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
    9618 echo "$as_me: error: invalid tag name: $tagname" >&2;}
    9619    { (exit 1); exit 1; }; }
    9620         ;;
    9621     esac
    9622 
    9623     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
    9624     then
    9625       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
    9626 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
    9627    { (exit 1); exit 1; }; }
    9628     fi
    9629 
    9630     # Update the list of available tags.
    9631     if test -n "$tagname"; then
    9632       echo appending configuration tag \"$tagname\" to $ofile
    9633 
    9634       case $tagname in
    9635       CXX)
    9636         if test -n "$CXX" && test "X$CXX" != "Xno"; then
    9637           ac_ext=cc
    9638 ac_cpp='$CXXCPP $CPPFLAGS'
    9639 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    9640 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    9641 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
    9642 
    9643 
    9644 
    9645 
    9646 archive_cmds_need_lc_CXX=no
    9647 allow_undefined_flag_CXX=
    9648 always_export_symbols_CXX=no
    9649 archive_expsym_cmds_CXX=
    9650 export_dynamic_flag_spec_CXX=
    9651 hardcode_direct_CXX=no
    9652 hardcode_libdir_flag_spec_CXX=
    9653 hardcode_libdir_flag_spec_ld_CXX=
    9654 hardcode_libdir_separator_CXX=
    9655 hardcode_minus_L_CXX=no
    9656 hardcode_automatic_CXX=no
    9657 module_cmds_CXX=
    9658 module_expsym_cmds_CXX=
    9659 link_all_deplibs_CXX=unknown
    9660 old_archive_cmds_CXX=$old_archive_cmds
    9661 no_undefined_flag_CXX=
    9662 whole_archive_flag_spec_CXX=
    9663 enable_shared_with_static_runtimes_CXX=no
    9664 
    9665 # Dependencies to place before and after the object being linked:
    9666 predep_objects_CXX=
    9667 postdep_objects_CXX=
    9668 predeps_CXX=
    9669 postdeps_CXX=
    9670 compiler_lib_search_path_CXX=
    9671 
    9672 # Source file extension for C++ test sources.
    9673 ac_ext=cc
    9674 
    9675 # Object file extension for compiled C++ test sources.
    9676 objext=o
    9677 objext_CXX=$objext
    9678 
    9679 # Code to be used in simple compile tests
    9680 lt_simple_compile_test_code="int some_variable = 0;\n"
    9681 
    9682 # Code to be used in simple link tests
    9683 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
    9684 
    9685 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
    9686 
    9687 # If no C compiler was specified, use CC.
    9688 LTCC=${LTCC-"$CC"}
    9689 
    9690 # Allow CC to be a program name with arguments.
    9691 compiler=$CC
    9692 
    9693 
    9694 # Allow CC to be a program name with arguments.
    9695 lt_save_CC=$CC
    9696 lt_save_LD=$LD
    9697 lt_save_GCC=$GCC
    9698 GCC=$GXX
    9699 lt_save_with_gnu_ld=$with_gnu_ld
    9700 lt_save_path_LD=$lt_cv_path_LD
    9701 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
    9702   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
    9703 else
    9704   unset lt_cv_prog_gnu_ld
    9705 fi
    9706 if test -n "${lt_cv_path_LDCXX+set}"; then
    9707   lt_cv_path_LD=$lt_cv_path_LDCXX
    9708 else
    9709   unset lt_cv_path_LD
    9710 fi
    9711 test -z "${LDCXX+set}" || LD=$LDCXX
    9712 CC=${CXX-"c++"}
    9713 compiler=$CC
    9714 compiler_CXX=$CC
    9715 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
    9716 
    9717 # We don't want -fno-exception wen compiling C++ code, so set the
    9718 # no_builtin_flag separately
    9719 if test "$GXX" = yes; then
    9720   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
    9721 else
    9722   lt_prog_compiler_no_builtin_flag_CXX=
    9723 fi
    9724 
    9725 if test "$GXX" = yes; then
    9726   # Set up default GNU C++ configuration
    9727 
    9728 
    9729 # Check whether --with-gnu-ld or --without-gnu-ld was given.
    9730 if test "${with_gnu_ld+set}" = set; then
    9731   withval="$with_gnu_ld"
    9732   test "$withval" = no || with_gnu_ld=yes
    9733 else
    9734   with_gnu_ld=no
    9735 fi;
    9736 ac_prog=ld
    9737 if test "$GCC" = yes; then
    9738   # Check if gcc -print-prog-name=ld gives a path.
    9739   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
    9740 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
    9741   case $host in
    9742   *-*-mingw*)
    9743     # gcc leaves a trailing carriage return which upsets mingw
    9744     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
    9745   *)
    9746     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
    9747   esac
    9748   case $ac_prog in
    9749     # Accept absolute paths.
    9750     [\\/]* | ?:[\\/]*)
    9751       re_direlt='/[^/][^/]*/\.\./'
    9752       # Canonicalize the pathname of ld
    9753       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
    9754       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
    9755         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
    9756       done
    9757       test -z "$LD" && LD="$ac_prog"
    9758       ;;
    9759   "")
    9760     # If it fails, then pretend we aren't using GCC.
    9761     ac_prog=ld
    9762     ;;
    9763   *)
    9764     # If it is relative, then search for the first ld in PATH.
    9765     with_gnu_ld=unknown
    9766     ;;
    9767   esac
    9768 elif test "$with_gnu_ld" = yes; then
    9769   echo "$as_me:$LINENO: checking for GNU ld" >&5
    9770 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
    9771 else
    9772   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
    9773 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
    9774 fi
    9775 if test "${lt_cv_path_LD+set}" = set; then
    9776   echo $ECHO_N "(cached) $ECHO_C" >&6
    9777 else
    9778   if test -z "$LD"; then
    9779   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
    9780   for ac_dir in $PATH; do
    9781     IFS="$lt_save_ifs"
    9782     test -z "$ac_dir" && ac_dir=.
    9783     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
    9784       lt_cv_path_LD="$ac_dir/$ac_prog"
    9785       # Check to see if the program is GNU ld.  I'd rather use --version,
    9786       # but apparently some GNU ld's only accept -v.
    9787       # Break only if it was the GNU/non-GNU ld that we prefer.
    9788       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
    9789       *GNU* | *'with BFD'*)
    9790         test "$with_gnu_ld" != no && break
    9791         ;;
    9792       *)
    9793         test "$with_gnu_ld" != yes && break
    9794         ;;
    9795       esac
    9796     fi
    9797   done
    9798   IFS="$lt_save_ifs"
    9799 else
    9800   lt_cv_path_LD="$LD" # Let the user override the test with a path.
    9801 fi
    9802 fi
    9803 
    9804 LD="$lt_cv_path_LD"
    9805 if test -n "$LD"; then
    9806   echo "$as_me:$LINENO: result: $LD" >&5
    9807 echo "${ECHO_T}$LD" >&6
    9808 else
    9809   echo "$as_me:$LINENO: result: no" >&5
    9810 echo "${ECHO_T}no" >&6
    9811 fi
    9812 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
    9813 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
    9814    { (exit 1); exit 1; }; }
    9815 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
    9816 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
    9817 if test "${lt_cv_prog_gnu_ld+set}" = set; then
    9818   echo $ECHO_N "(cached) $ECHO_C" >&6
    9819 else
    9820   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
    9821 case `$LD -v 2>&1 </dev/null` in
    9822 *GNU* | *'with BFD'*)
    9823   lt_cv_prog_gnu_ld=yes
    9824   ;;
    9825 *)
    9826   lt_cv_prog_gnu_ld=no
    9827   ;;
    9828 esac
    9829 fi
    9830 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
    9831 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
    9832 with_gnu_ld=$lt_cv_prog_gnu_ld
    9833 
    9834 
    9835 
    9836   # Check if GNU C++ uses GNU ld as the underlying linker, since the
    9837   # archiving commands below assume that GNU ld is being used.
    9838   if test "$with_gnu_ld" = yes; then
    9839     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
    9840     archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
    9841 
    9842     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
    9843     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
    9844 
    9845     # If archive_cmds runs LD, not CC, wlarc should be empty
    9846     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
    9847     #     investigate it a little bit more. (MM)
    9848     wlarc='${wl}'
    9849 
    9850     # ancient GNU ld didn't support --whole-archive et. al.
    9851     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
    9852         grep 'no-whole-archive' > /dev/null; then
    9853       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
    9854     else
    9855       whole_archive_flag_spec_CXX=
    9856     fi
    9857   else
    9858     with_gnu_ld=no
    9859     wlarc=
    9860 
    9861     # A generic and very simple default shared library creation
    9862     # command for GNU C++ for the case where it uses the native
    9863     # linker, instead of GNU ld.  If possible, this setting should
    9864     # overridden to take advantage of the native linker features on
    9865     # the platform it is being used on.
    9866     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
    9867   fi
    9868 
    9869   # Commands to make compiler produce verbose output that lists
    9870   # what "hidden" libraries, object files and flags are used when
    9871   # linking a shared library.
    9872   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
    9873 
    9874 else
    9875   GXX=no
    9876   with_gnu_ld=no
    9877   wlarc=
    9878 fi
    9879 
    9880 # PORTME: fill in a description of your system's C++ link characteristics
    9881 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
    9882 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
    9883 ld_shlibs_CXX=yes
    9884 case $host_os in
    9885   aix3*)
    9886     # FIXME: insert proper C++ library support
    9887     ld_shlibs_CXX=no
    9888     ;;
    9889   aix4* | aix5*)
    9890     if test "$host_cpu" = ia64; then
    9891       # On IA64, the linker does run time linking by default, so we don't
    9892       # have to do anything special.
    9893       aix_use_runtimelinking=no
    9894       exp_sym_flag='-Bexport'
    9895       no_entry_flag=""
    9896     else
    9897       aix_use_runtimelinking=no
    9898 
    9899       # Test if we are trying to use run time linking or normal
    9900       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
    9901       # need to do runtime linking.
    9902       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
    9903         for ld_flag in $LDFLAGS; do
    9904           case $ld_flag in
    9905           *-brtl*)
    9906             aix_use_runtimelinking=yes
    9907             break
    9908             ;;
    9909           esac
    9910         done
    9911       esac
    9912 
    9913       exp_sym_flag='-bexport'
    9914       no_entry_flag='-bnoentry'
    9915     fi
    9916 
    9917     # When large executables or shared objects are built, AIX ld can
    9918     # have problems creating the table of contents.  If linking a library
    9919     # or program results in "error TOC overflow" add -mminimal-toc to
    9920     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
    9921     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
    9922 
    9923     archive_cmds_CXX=''
    9924     hardcode_direct_CXX=yes
    9925     hardcode_libdir_separator_CXX=':'
    9926     link_all_deplibs_CXX=yes
    9927 
    9928     if test "$GXX" = yes; then
    9929       case $host_os in aix4.012|aix4.012.*)
    9930       # We only want to do this on AIX 4.2 and lower, the check
    9931       # below for broken collect2 doesn't work under 4.3+
    9932         collect2name=`${CC} -print-prog-name=collect2`
    9933         if test -f "$collect2name" && \
    9934            strings "$collect2name" | grep resolve_lib_name >/dev/null
    9935         then
    9936           # We have reworked collect2
    9937           hardcode_direct_CXX=yes
    9938         else
    9939           # We have old collect2
    9940           hardcode_direct_CXX=unsupported
    9941           # It fails to find uninstalled libraries when the uninstalled
    9942           # path is not listed in the libpath.  Setting hardcode_minus_L
    9943           # to unsupported forces relinking
    9944           hardcode_minus_L_CXX=yes
    9945           hardcode_libdir_flag_spec_CXX='-L$libdir'
    9946           hardcode_libdir_separator_CXX=
    9947         fi
    9948       esac
    9949       shared_flag='-shared'
    9950     else
    9951       # not using gcc
    9952       if test "$host_cpu" = ia64; then
    9953         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
    9954         # chokes on -Wl,-G. The following line is correct:
    9955         shared_flag='-G'
    9956       else
    9957         if test "$aix_use_runtimelinking" = yes; then
    9958           shared_flag='${wl}-G'
    9959         else
    9960           shared_flag='${wl}-bM:SRE'
    9961         fi
    9962       fi
    9963     fi
    9964 
    9965     # It seems that -bexpall does not export symbols beginning with
    9966     # underscore (_), so it is better to generate a list of symbols to export.
    9967     always_export_symbols_CXX=yes
    9968     if test "$aix_use_runtimelinking" = yes; then
    9969       # Warning - without using the other runtime loading flags (-brtl),
    9970       # -berok will link without error, but may produce a broken library.
    9971       allow_undefined_flag_CXX='-berok'
    9972       # Determine the default libpath from the value encoded in an empty executable.
    9973       cat >conftest.$ac_ext <<_ACEOF
    9974 /* confdefs.h.  */
    9975 _ACEOF
    9976 cat confdefs.h >>conftest.$ac_ext
    9977 cat >>conftest.$ac_ext <<_ACEOF
    9978 /* end confdefs.h.  */
    9979 
    9980 int
    9981 main ()
    9982 {
    9983 
    9984   ;
    9985   return 0;
    9986 }
    9987 _ACEOF
    9988 rm -f conftest.$ac_objext conftest$ac_exeext
    9989 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    9990   (eval $ac_link) 2>conftest.er1
    9991   ac_status=$?
    9992   grep -v '^ *+' conftest.er1 >conftest.err
    9993   rm -f conftest.er1
    9994   cat conftest.err >&5
    9995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    9996   (exit $ac_status); } &&
    9997          { ac_try='test -z "$ac_cxx_werror_flag"
    9998                          || test ! -s conftest.err'
    9999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    10000   (eval $ac_try) 2>&5
    10001   ac_status=$?
    10002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    10003   (exit $ac_status); }; } &&
    10004          { ac_try='test -s conftest$ac_exeext'
    10005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    10006   (eval $ac_try) 2>&5
    10007   ac_status=$?
    10008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    10009   (exit $ac_status); }; }; then
    10010 
    10011 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
    10012 }'`
    10013 # Check for a 64-bit object if we didn't find anything.
    10014 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; }
    10015 }'`; fi
    10016 else
    10017   echo "$as_me: failed program was:" >&5
    10018 sed 's/^/| /' conftest.$ac_ext >&5
    10019 
    10020 fi
    10021 rm -f conftest.err conftest.$ac_objext \
    10022       conftest$ac_exeext conftest.$ac_ext
    10023 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
    10024 
    10025       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
    10026 
    10027       archive_expsym_cmds_CXX="\$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"
    10028      else
    10029       if test "$host_cpu" = ia64; then
    10030         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
    10031         allow_undefined_flag_CXX="-z nodefs"
    10032         archive_expsym_cmds_CXX="\$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"
    10033       else
    10034         # Determine the default libpath from the value encoded in an empty executable.
    10035         cat >conftest.$ac_ext <<_ACEOF
    10036 /* confdefs.h.  */
    10037 _ACEOF
    10038 cat confdefs.h >>conftest.$ac_ext
    10039 cat >>conftest.$ac_ext <<_ACEOF
    10040 /* end confdefs.h.  */
    10041 
    10042 int
    10043 main ()
    10044 {
    10045 
    10046   ;
    10047   return 0;
    10048 }
    10049 _ACEOF
    10050 rm -f conftest.$ac_objext conftest$ac_exeext
    10051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    10052   (eval $ac_link) 2>conftest.er1
    10053   ac_status=$?
    10054   grep -v '^ *+' conftest.er1 >conftest.err
    10055   rm -f conftest.er1
    10056   cat conftest.err >&5
    10057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    10058   (exit $ac_status); } &&
    10059          { ac_try='test -z "$ac_cxx_werror_flag"
    10060                          || test ! -s conftest.err'
    10061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    10062   (eval $ac_try) 2>&5
    10063   ac_status=$?
    10064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    10065   (exit $ac_status); }; } &&
    10066          { ac_try='test -s conftest$ac_exeext'
    10067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    10068   (eval $ac_try) 2>&5
    10069   ac_status=$?
    10070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    10071   (exit $ac_status); }; }; then
    10072 
    10073 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
    10074 }'`
    10075 # Check for a 64-bit object if we didn't find anything.
    10076 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; }
    10077 }'`; fi
    10078 else
    10079   echo "$as_me: failed program was:" >&5
    10080 sed 's/^/| /' conftest.$ac_ext >&5
    10081 
    10082 fi
    10083 rm -f conftest.err conftest.$ac_objext \
    10084       conftest$ac_exeext conftest.$ac_ext
    10085 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
    10086 
    10087         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
    10088         # Warning - without using the other run time loading flags,
    10089         # -berok will link without error, but may produce a broken library.
    10090         no_undefined_flag_CXX=' ${wl}-bernotok'
    10091         allow_undefined_flag_CXX=' ${wl}-berok'
    10092         # -bexpall does not export symbols beginning with underscore (_)
    10093         always_export_symbols_CXX=yes
    10094         # Exported symbols can be pulled into shared objects from archives
    10095         whole_archive_flag_spec_CXX=' '
    10096         archive_cmds_need_lc_CXX=yes
    10097         # This is similar to how AIX traditionally builds it's shared libraries.
    10098         archive_expsym_cmds_CXX="\$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'
    10099       fi
    10100     fi
    10101     ;;
    10102   chorus*)
    10103     case $cc_basename in
    10104       *)
    10105         # FIXME: insert proper C++ library support
    10106         ld_shlibs_CXX=no
    10107         ;;
    10108     esac
    10109     ;;
    10110 
    10111   cygwin* | mingw* | pw32*)
    10112     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
    10113     # as there is no search path for DLLs.
    10114     hardcode_libdir_flag_spec_CXX='-L$libdir'
    10115     allow_undefined_flag_CXX=unsupported
    10116     always_export_symbols_CXX=no
    10117     enable_shared_with_static_runtimes_CXX=yes
    10118 
    10119     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
    10120       archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
    10121       # If the export-symbols file already is a .def file (1st line
    10122       # is EXPORTS), use it as is; otherwise, prepend...
    10123       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
    10124         cp $export_symbols $output_objdir/$soname.def;
    10125       else
    10126         echo EXPORTS > $output_objdir/$soname.def;
    10127         cat $export_symbols >> $output_objdir/$soname.def;
    10128       fi~
    10129       $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'
    10130     else
    10131       ld_shlibs_CXX=no
    10132     fi
    10133   ;;
    10134 
    10135   darwin* | rhapsody*)
    10136   if test "$GXX" = yes; then
    10137     archive_cmds_need_lc_CXX=no
    10138     case "$host_os" in
    10139     rhapsody* | darwin1.[012])
    10140       allow_undefined_flag_CXX='-undefined suppress'
    10141       ;;
    10142     *) # Darwin 1.3 on
    10143       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
    10144         allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
    10145       else
    10146         case ${MACOSX_DEPLOYMENT_TARGET} in
    10147           10.[012])
    10148             allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
    10149             ;;
    10150           10.*)
    10151             allow_undefined_flag_CXX='-undefined dynamic_lookup'
    10152             ;;
    10153         esac
    10154       fi
    10155       ;;
    10156     esac
    10157     lt_int_apple_cc_single_mod=no
    10158     output_verbose_link_cmd='echo'
    10159     if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
    10160       lt_int_apple_cc_single_mod=yes
    10161     fi
    10162     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
    10163       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
    10164     else
    10165       archive_cmds_CXX='$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'
    10166     fi
    10167     module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
    10168 
    10169     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
    10170     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
    10171       archive_expsym_cmds_CXX='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}'
    10172     else
    10173       archive_expsym_cmds_CXX='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}'
    10174     fi
    10175     module_expsym_cmds_CXX='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}'
    10176     hardcode_direct_CXX=no
    10177     hardcode_automatic_CXX=yes
    10178     hardcode_shlibpath_var_CXX=unsupported
    10179     whole_archive_flag_spec_CXX='-all_load $convenience'
    10180     link_all_deplibs_CXX=yes
    10181   else
    10182     ld_shlibs_CXX=no
    10183   fi
    10184     ;;
    10185 
    10186   dgux*)
    10187     case $cc_basename in
    10188       ec++)
    10189         # FIXME: insert proper C++ library support
    10190         ld_shlibs_CXX=no
    10191         ;;
    10192       ghcx)
    10193         # Green Hills C++ Compiler
    10194         # FIXME: insert proper C++ library support
    10195         ld_shlibs_CXX=no
    10196         ;;
    10197       *)
    10198         # FIXME: insert proper C++ library support
    10199         ld_shlibs_CXX=no
    10200         ;;
    10201     esac
    10202     ;;
    10203   freebsd12*)
    10204     # C++ shared libraries reported to be fairly broken before switch to ELF
    10205     ld_shlibs_CXX=no
    10206     ;;
    10207   freebsd-elf*)
    10208     archive_cmds_need_lc_CXX=no
    10209     ;;
    10210   freebsd* | kfreebsd*-gnu)
    10211     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
    10212     # conventions
    10213     ld_shlibs_CXX=yes
    10214     ;;
    10215   gnu*)
    10216     ;;
    10217   hpux9*)
    10218     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
    10219     hardcode_libdir_separator_CXX=:
    10220     export_dynamic_flag_spec_CXX='${wl}-E'
    10221     hardcode_direct_CXX=yes
    10222     hardcode_minus_L_CXX=yes # Not in the search PATH,
    10223                                 # but as the default
    10224                                 # location of the library.
    10225 
    10226     case $cc_basename in
    10227     CC)
    10228       # FIXME: insert proper C++ library support
    10229       ld_shlibs_CXX=no
    10230       ;;
    10231     aCC)
    10232       archive_cmds_CXX='$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'
    10233       # Commands to make compiler produce verbose output that lists
    10234       # what "hidden" libraries, object files and flags are used when
    10235       # linking a shared library.
    10236       #
    10237       # There doesn't appear to be a way to prevent this compiler from
    10238       # explicitly linking system object files so we need to strip them
    10239       # from the output so that they don't get included in the library
    10240       # dependencies.
    10241       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'
    10242       ;;
    10243     *)
    10244       if test "$GXX" = yes; then
    10245         archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
    10246       else
    10247         # FIXME: insert proper C++ library support
    10248         ld_shlibs_CXX=no
    10249       fi
    10250       ;;
    10251     esac
    10252     ;;
    10253   hpux10*|hpux11*)
    10254     if test $with_gnu_ld = no; then
    10255       case "$host_cpu" in
    10256       hppa*64*)
    10257         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
    10258         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
    10259         hardcode_libdir_separator_CXX=:
    10260         ;;
    10261       ia64*)
    10262         hardcode_libdir_flag_spec_CXX='-L$libdir'
    10263         ;;
    10264       *)
    10265         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
    10266         hardcode_libdir_separator_CXX=:
    10267         export_dynamic_flag_spec_CXX='${wl}-E'
    10268         ;;
    10269       esac
    10270     fi
    10271     case "$host_cpu" in
    10272     hppa*64*)
    10273       hardcode_direct_CXX=no
    10274       hardcode_shlibpath_var_CXX=no
    10275       ;;
    10276     ia64*)
    10277       hardcode_direct_CXX=no
    10278       hardcode_shlibpath_var_CXX=no
    10279       hardcode_minus_L_CXX=yes # Not in the search PATH,
    10280                                               # but as the default
    10281                                               # location of the library.
    10282       ;;
    10283     *)
    10284       hardcode_direct_CXX=yes
    10285       hardcode_minus_L_CXX=yes # Not in the search PATH,
    10286                                               # but as the default
    10287                                               # location of the library.
    10288       ;;
    10289     esac
    10290 
    10291     case $cc_basename in
    10292       CC)
    10293         # FIXME: insert proper C++ library support
    10294         ld_shlibs_CXX=no
    10295         ;;
    10296       aCC)
    10297         case "$host_cpu" in
    10298         hppa*64*|ia64*)
    10299           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
    10300           ;;
    10301         *)
    10302           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
    10303           ;;
    10304         esac
    10305         # Commands to make compiler produce verbose output that lists
    10306         # what "hidden" libraries, object files and flags are used when
    10307         # linking a shared library.
    10308         #
    10309         # There doesn't appear to be a way to prevent this compiler from
    10310         # explicitly linking system object files so we need to strip them
    10311         # from the output so that they don't get included in the library
    10312         # dependencies.
    10313         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'
    10314         ;;
    10315       *)
    10316         if test "$GXX" = yes; then
    10317           if test $with_gnu_ld = no; then
    10318             case "$host_cpu" in
    10319             ia64*|hppa*64*)
    10320               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
    10321               ;;
    10322             *)
    10323               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
    10324               ;;
    10325             esac
    10326           fi
    10327         else
    10328           # FIXME: insert proper C++ library support
    10329           ld_shlibs_CXX=no
    10330         fi
    10331         ;;
    10332     esac
    10333     ;;
    10334   irix5* | irix6*)
    10335     case $cc_basename in
    10336       CC)
    10337         # SGI C++
    10338         archive_cmds_CXX='$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'
    10339 
    10340         # Archives containing C++ object files must be created using
    10341         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
    10342         # necessary to make sure instantiated templates are included
    10343         # in the archive.
    10344         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
    10345         ;;
    10346       *)
    10347         if test "$GXX" = yes; then
    10348           if test "$with_gnu_ld" = no; then
    10349             archive_cmds_CXX='$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'
    10350           else
    10351             archive_cmds_CXX='$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'
    10352           fi
    10353         fi
    10354         link_all_deplibs_CXX=yes
    10355         ;;
    10356     esac
    10357     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
    10358     hardcode_libdir_separator_CXX=:
    10359     ;;
    10360   linux*)
    10361     case $cc_basename in
    10362       KCC)
    10363         # Kuck and Associates, Inc. (KAI) C++ Compiler
    10364 
    10365         # KCC will only create a shared library if the output file
    10366         # ends with ".so" (or ".sl" for HP-UX), so rename the library
    10367         # to its proper name (with version) after linking.
    10368         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
    10369         archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
    10370         # Commands to make compiler produce verbose output that lists
    10371         # what "hidden" libraries, object files and flags are used when
    10372         # linking a shared library.
    10373         #
    10374         # There doesn't appear to be a way to prevent this compiler from
    10375         # explicitly linking system object files so we need to strip them
    10376         # from the output so that they don't get included in the library
    10377         # dependencies.
    10378         output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
    10379 
    10380         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
    10381         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
    10382 
    10383         # Archives containing C++ object files must be created using
    10384         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
    10385         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
    10386         ;;
    10387       icpc)
    10388         # Intel C++
    10389         with_gnu_ld=yes
    10390         archive_cmds_need_lc_CXX=no
    10391         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
    10392         archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
    10393         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
    10394         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
    10395         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
    10396         ;;
    10397       cxx)
    10398         # Compaq C++
    10399         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
    10400         archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
    10401 
    10402         runpath_var=LD_RUN_PATH
    10403         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
    10404         hardcode_libdir_separator_CXX=:
    10405 
    10406         # Commands to make compiler produce verbose output that lists
    10407         # what "hidden" libraries, object files and flags are used when
    10408         # linking a shared library.
    10409         #
    10410         # There doesn't appear to be a way to prevent this compiler from
    10411         # explicitly linking system object files so we need to strip them
    10412         # from the output so that they don't get included in the library
    10413         # dependencies.
    10414         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'
    10415         ;;
    10416     esac
    10417     ;;
    10418   lynxos*)
    10419     # FIXME: insert proper C++ library support
    10420     ld_shlibs_CXX=no
    10421     ;;
    10422   m88k*)
    10423     # FIXME: insert proper C++ library support
    10424     ld_shlibs_CXX=no
    10425     ;;
    10426   mvs*)
    10427     case $cc_basename in
    10428       cxx)
    10429         # FIXME: insert proper C++ library support
    10430         ld_shlibs_CXX=no
    10431         ;;
    10432       *)
    10433         # FIXME: insert proper C++ library support
    10434         ld_shlibs_CXX=no
    10435         ;;
    10436     esac
    10437     ;;
    10438   netbsd*)
    10439     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
    10440       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
    10441       wlarc=
    10442       hardcode_libdir_flag_spec_CXX='-R$libdir'
    10443       hardcode_direct_CXX=yes
    10444       hardcode_shlibpath_var_CXX=no
    10445     fi
    10446     # Workaround some broken pre-1.5 toolchains
    10447     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
    10448     ;;
    10449   osf3*)
    10450     case $cc_basename in
    10451       KCC)
    10452         # Kuck and Associates, Inc. (KAI) C++ Compiler
    10453 
    10454         # KCC will only create a shared library if the output file
    10455         # ends with ".so" (or ".sl" for HP-UX), so rename the library
    10456         # to its proper name (with version) after linking.
    10457         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
    10458 
    10459         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
    10460         hardcode_libdir_separator_CXX=:
    10461 
    10462         # Archives containing C++ object files must be created using
    10463         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
    10464         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
    10465 
    10466         ;;
    10467       RCC)
    10468         # Rational C++ 2.4.1
    10469         # FIXME: insert proper C++ library support
    10470         ld_shlibs_CXX=no
    10471         ;;
    10472       cxx)
    10473         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
    10474         archive_cmds_CXX='$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'
    10475 
    10476         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
    10477         hardcode_libdir_separator_CXX=:
    10478 
    10479         # Commands to make compiler produce verbose output that lists
    10480         # what "hidden" libraries, object files and flags are used when
    10481         # linking a shared library.
    10482         #
    10483         # There doesn't appear to be a way to prevent this compiler from
    10484         # explicitly linking system object files so we need to strip them
    10485         # from the output so that they don't get included in the library
    10486         # dependencies.
    10487         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
    10488         ;;
    10489       *)
    10490         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
    10491           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
    10492           archive_cmds_CXX='$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'
    10493 
    10494           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
    10495           hardcode_libdir_separator_CXX=:
    10496 
    10497           # Commands to make compiler produce verbose output that lists
    10498           # what "hidden" libraries, object files and flags are used when
    10499           # linking a shared library.
    10500           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
    10501 
    10502         else
    10503           # FIXME: insert proper C++ library support
    10504           ld_shlibs_CXX=no
    10505         fi
    10506         ;;
    10507     esac
    10508     ;;
    10509   osf4* | osf5*)
    10510     case $cc_basename in
    10511       KCC)
    10512         # Kuck and Associates, Inc. (KAI) C++ Compiler
    10513 
    10514         # KCC will only create a shared library if the output file
    10515         # ends with ".so" (or ".sl" for HP-UX), so rename the library
    10516         # to its proper name (with version) after linking.
    10517         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
    10518 
    10519         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
    10520         hardcode_libdir_separator_CXX=:
    10521 
    10522         # Archives containing C++ object files must be created using
    10523         # the KAI C++ compiler.
    10524         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
    10525         ;;
    10526       RCC)
    10527         # Rational C++ 2.4.1
    10528         # FIXME: insert proper C++ library support
    10529         ld_shlibs_CXX=no
    10530         ;;
    10531       cxx)
    10532         allow_undefined_flag_CXX=' -expect_unresolved \*'
    10533         archive_cmds_CXX='$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'
    10534         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
    10535           echo "-hidden">> $lib.exp~
    10536           $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~
    10537           $rm $lib.exp'
    10538 
    10539         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
    10540         hardcode_libdir_separator_CXX=:
    10541 
    10542         # Commands to make compiler produce verbose output that lists
    10543         # what "hidden" libraries, object files and flags are used when
    10544         # linking a shared library.
    10545         #
    10546         # There doesn't appear to be a way to prevent this compiler from
    10547         # explicitly linking system object files so we need to strip them
    10548         # from the output so that they don't get included in the library
    10549         # dependencies.
    10550         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
    10551         ;;
    10552       *)
    10553         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
    10554           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
    10555          archive_cmds_CXX='$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'
    10556 
    10557           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
    10558           hardcode_libdir_separator_CXX=:
    10559 
    10560           # Commands to make compiler produce verbose output that lists
    10561           # what "hidden" libraries, object files and flags are used when
    10562           # linking a shared library.
    10563           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
    10564 
    10565         else
    10566           # FIXME: insert proper C++ library support
    10567           ld_shlibs_CXX=no
    10568         fi
    10569         ;;
    10570     esac
    10571     ;;
    10572   psos*)
    10573     # FIXME: insert proper C++ library support
    10574     ld_shlibs_CXX=no
    10575     ;;
    10576   sco*)
    10577     archive_cmds_need_lc_CXX=no
    10578     case $cc_basename in
    10579       CC)
    10580         # FIXME: insert proper C++ library support
    10581         ld_shlibs_CXX=no
    10582         ;;
    10583       *)
    10584         # FIXME: insert proper C++ library support
    10585         ld_shlibs_CXX=no
    10586         ;;
    10587     esac
    10588     ;;
    10589   sunos4*)
    10590     case $cc_basename in
    10591       CC)
    10592         # Sun C++ 4.x
    10593         # FIXME: insert proper C++ library support
    10594         ld_shlibs_CXX=no
    10595         ;;
    10596       lcc)
    10597         # Lucid
    10598         # FIXME: insert proper C++ library support
    10599         ld_shlibs_CXX=no
    10600         ;;
    10601       *)
    10602         # FIXME: insert proper C++ library support
    10603         ld_shlibs_CXX=no
    10604         ;;
    10605     esac
    10606     ;;
    10607   solaris*)
    10608     case $cc_basename in
    10609       CC)
    10610         # Sun C++ 4.2, 5.x and Centerline C++
    10611         no_undefined_flag_CXX=' -zdefs'
    10612         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
    10613         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
    10614         $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'
    10615 
    10616         hardcode_libdir_flag_spec_CXX='-R$libdir'
    10617         hardcode_shlibpath_var_CXX=no
    10618         case $host_os in
    10619           solaris2.0-5 | solaris2.0-5.*) ;;
    10620           *)
    10621             # The C++ compiler is used as linker so we must use $wl
    10622             # flag to pass the commands to the underlying system
    10623             # linker.
    10624             # Supported since Solaris 2.6 (maybe 2.5.1?)
    10625             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
    10626             ;;
    10627         esac
    10628         link_all_deplibs_CXX=yes
    10629 
    10630         # Commands to make compiler produce verbose output that lists
    10631         # what "hidden" libraries, object files and flags are used when
    10632         # linking a shared library.
    10633         #
    10634         # There doesn't appear to be a way to prevent this compiler from
    10635         # explicitly linking system object files so we need to strip them
    10636         # from the output so that they don't get included in the library
    10637         # dependencies.
    10638         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'
    10639 
    10640         # Archives containing C++ object files must be created using
    10641         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
    10642         # necessary to make sure instantiated templates are included
    10643         # in the archive.
    10644         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
    10645         ;;
    10646       gcx)
    10647         # Green Hills C++ Compiler
    10648         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
    10649 
    10650         # The C++ compiler must be used to create the archive.
    10651         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
    10652         ;;
    10653       *)
    10654         # GNU C++ compiler with Solaris linker
    10655         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
    10656           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
    10657           if $CC --version | grep -v '^2\.7' > /dev/null; then
    10658             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
    10659             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
    10660                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
    10661 
    10662             # Commands to make compiler produce verbose output that lists
    10663             # what "hidden" libraries, object files and flags are used when
    10664             # linking a shared library.
    10665             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
    10666           else
    10667             # g++ 2.7 appears to require `-G' NOT `-shared' on this
    10668             # platform.
    10669             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
    10670             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
    10671                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
    10672 
    10673             # Commands to make compiler produce verbose output that lists
    10674             # what "hidden" libraries, object files and flags are used when
    10675             # linking a shared library.
    10676             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
    10677           fi
    10678 
    10679           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
    10680         fi
    10681         ;;
    10682     esac
    10683     ;;
    10684   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
    10685     archive_cmds_need_lc_CXX=no
    10686     ;;
    10687   tandem*)
    10688     case $cc_basename in
    10689       NCC)
    10690         # NonStop-UX NCC 3.20
    10691         # FIXME: insert proper C++ library support
    10692         ld_shlibs_CXX=no
    10693         ;;
    10694       *)
    10695         # FIXME: insert proper C++ library support
    10696         ld_shlibs_CXX=no
    10697         ;;
    10698     esac
    10699     ;;
    10700   vxworks*)
    10701     # FIXME: insert proper C++ library support
    10702     ld_shlibs_CXX=no
    10703     ;;
    10704   *)
    10705     # FIXME: insert proper C++ library support
    10706     ld_shlibs_CXX=no
    10707     ;;
    10708 esac
    10709 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
    10710 echo "${ECHO_T}$ld_shlibs_CXX" >&6
    10711 test "$ld_shlibs_CXX" = no && can_build_shared=no
    10712 
    10713 GCC_CXX="$GXX"
    10714 LD_CXX="$LD"
    10715 
    10716 
    10717 cat > conftest.$ac_ext <<EOF
    10718 class Foo
    10719 {
    10720 public:
    10721   Foo (void) { a = 0; }
    10722 private:
    10723   int a;
    10724 };
    10725 EOF
    10726 
    10727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    10728   (eval $ac_compile) 2>&5
    10729   ac_status=$?
    10730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    10731   (exit $ac_status); }; then
    10732   # Parse the compiler output and extract the necessary
    10733   # objects, libraries and library flags.
    10734 
    10735   # Sentinel used to keep track of whether or not we are before
    10736   # the conftest object file.
    10737   pre_test_object_deps_done=no
    10738 
    10739   # The `*' in the case matches for architectures that use `case' in
    10740   # $output_verbose_cmd can trigger glob expansion during the loop
    10741   # eval without this substitution.
    10742   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
    10743 
    10744   for p in `eval $output_verbose_link_cmd`; do
    10745     case $p in
    10746 
    10747     -L* | -R* | -l*)
    10748        # Some compilers place space between "-{L,R}" and the path.
    10749        # Remove the space.
    10750        if test $p = "-L" \
    10751           || test $p = "-R"; then
    10752          prev=$p
    10753          continue
    10754        else
    10755          prev=
    10756        fi
    10757 
    10758        if test "$pre_test_object_deps_done" = no; then
    10759          case $p in
    10760          -L* | -R*)
    10761            # Internal compiler library paths should come after those
    10762            # provided the user.  The postdeps already come after the
    10763            # user supplied libs so there is no need to process them.
    10764            if test -z "$compiler_lib_search_path_CXX"; then
    10765              compiler_lib_search_path_CXX="${prev}${p}"
    10766            else
    10767              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
    10768            fi
    10769            ;;
    10770          # The "-l" case would never come before the object being
    10771          # linked, so don't bother handling this case.
    10772          esac
    10773        else
    10774          if test -z "$postdeps_CXX"; then
    10775            postdeps_CXX="${prev}${p}"
    10776          else
    10777            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
    10778          fi
    10779        fi
    10780        ;;
    10781 
    10782     *.$objext)
    10783        # This assumes that the test object file only shows up
    10784        # once in the compiler output.
    10785        if test "$p" = "conftest.$objext"; then
    10786          pre_test_object_deps_done=yes
    10787          continue
    10788        fi
    10789 
    10790        if test "$pre_test_object_deps_done" = no; then
    10791          if test -z "$predep_objects_CXX"; then
    10792            predep_objects_CXX="$p"
    10793          else
    10794            predep_objects_CXX="$predep_objects_CXX $p"
    10795          fi
    10796        else
    10797          if test -z "$postdep_objects_CXX"; then
    10798            postdep_objects_CXX="$p"
    10799          else
    10800            postdep_objects_CXX="$postdep_objects_CXX $p"
    10801          fi
    10802        fi
    10803        ;;
    10804 
    10805     *) ;; # Ignore the rest.
    10806 
    10807     esac
    10808   done
    10809 
    10810   # Clean up.
    10811   rm -f a.out a.exe
    10812 else
    10813   echo "libtool.m4: error: problem compiling CXX test program"
    10814 fi
    10815 
    10816 $rm -f confest.$objext
    10817 
    10818 case " $postdeps_CXX " in
    10819 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
    10820 esac
    10821 
    10822 lt_prog_compiler_wl_CXX=
    10823 lt_prog_compiler_pic_CXX=
    10824 lt_prog_compiler_static_CXX=
    10825 
    10826 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
    10827 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
    10828 
    10829   # C++ specific cases for pic, static, wl, etc.
    10830   if test "$GXX" = yes; then
    10831     lt_prog_compiler_wl_CXX='-Wl,'
    10832     lt_prog_compiler_static_CXX='-static'
    10833 
    10834     case $host_os in
    10835     aix*)
    10836       # All AIX code is PIC.
    10837       if test "$host_cpu" = ia64; then
    10838         # AIX 5 now supports IA64 processor
    10839         lt_prog_compiler_static_CXX='-Bstatic'
    10840       fi
    10841       ;;
    10842     amigaos*)
    10843       # FIXME: we need at least 68020 code to build shared libraries, but
    10844       # adding the `-m68020' flag to GCC prevents building anything better,
    10845       # like `-m68040'.
    10846       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
    10847       ;;
    10848     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
    10849       # PIC is the default for these OSes.
    10850       ;;
    10851     mingw* | os2* | pw32*)
    10852       # This hack is so that the source file can tell whether it is being
    10853       # built for inclusion in a dll (and should export symbols for example).
    10854       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
    10855       ;;
    10856     darwin* | rhapsody*)
    10857       # PIC is the default on this platform
    10858       # Common symbols not allowed in MH_DYLIB files
    10859       lt_prog_compiler_pic_CXX='-fno-common'
    10860       ;;
    10861     *djgpp*)
    10862       # DJGPP does not support shared libraries at all
    10863       lt_prog_compiler_pic_CXX=
    10864       ;;
    10865     sysv4*MP*)
    10866       if test -d /usr/nec; then
    10867         lt_prog_compiler_pic_CXX=-Kconform_pic
    10868       fi
    10869       ;;
    10870     hpux*)
    10871       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
    10872       # not for PA HP-UX.
    10873       case "$host_cpu" in
    10874       hppa*64*|ia64*)
    10875         ;;
    10876       *)
    10877         lt_prog_compiler_pic_CXX='-fPIC'
    10878         ;;
    10879       esac
    10880       ;;
    10881     *)
    10882       lt_prog_compiler_pic_CXX='-fPIC'
    10883       ;;
    10884     esac
    10885   else
    10886     case $host_os in
    10887       aix4* | aix5*)
    10888         # All AIX code is PIC.
    10889         if test "$host_cpu" = ia64; then
    10890           # AIX 5 now supports IA64 processor
    10891           lt_prog_compiler_static_CXX='-Bstatic'
    10892         else
    10893           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
    10894         fi
    10895         ;;
    10896       chorus*)
    10897         case $cc_basename in
    10898         cxch68)
    10899           # Green Hills C++ Compiler
    10900           # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--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"
    10901           ;;
    10902         esac
    10903         ;;
    10904       dgux*)
    10905         case $cc_basename in
    10906           ec++)
    10907             lt_prog_compiler_pic_CXX='-KPIC'
    10908             ;;
    10909           ghcx)
    10910             # Green Hills C++ Compiler
    10911             lt_prog_compiler_pic_CXX='-pic'
    10912             ;;
    10913           *)
    10914             ;;
    10915         esac
    10916         ;;
    10917       freebsd* | kfreebsd*-gnu)
    10918         # FreeBSD uses GNU C++
    10919         ;;
    10920       hpux9* | hpux10* | hpux11*)
    10921         case $cc_basename in
    10922           CC)
    10923             lt_prog_compiler_wl_CXX='-Wl,'
    10924             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
    10925             if test "$host_cpu" != ia64; then
    10926               lt_prog_compiler_pic_CXX='+Z'
    10927             fi
    10928             ;;
    10929           aCC)
    10930             lt_prog_compiler_wl_CXX='-Wl,'
    10931             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
    10932             case "$host_cpu" in
    10933             hppa*64*|ia64*)
    10934               # +Z the default
    10935               ;;
    10936             *)
    10937               lt_prog_compiler_pic_CXX='+Z'
    10938               ;;
    10939             esac
    10940             ;;
    10941           *)
    10942             ;;
    10943         esac
    10944         ;;
    10945       irix5* | irix6* | nonstopux*)
    10946         case $cc_basename in
    10947           CC)
    10948             lt_prog_compiler_wl_CXX='-Wl,'
    10949             lt_prog_compiler_static_CXX='-non_shared'
    10950             # CC pic flag -KPIC is the default.
    10951             ;;
    10952           *)
    10953             ;;
    10954         esac
    10955         ;;
    10956       linux*)
    10957         case $cc_basename in
    10958           KCC)
    10959             # KAI C++ Compiler
    10960             lt_prog_compiler_wl_CXX='--backend -Wl,'
    10961             lt_prog_compiler_pic_CXX='-fPIC'
    10962             ;;
    10963           icpc)
    10964             # Intel C++
    10965             lt_prog_compiler_wl_CXX='-Wl,'
    10966             lt_prog_compiler_pic_CXX='-KPIC'
    10967             lt_prog_compiler_static_CXX='-static'
    10968             ;;
    10969           cxx)
    10970             # Compaq C++
    10971             # Make sure the PIC flag is empty.  It appears that all Alpha
    10972             # Linux and Compaq Tru64 Unix objects are PIC.
    10973             lt_prog_compiler_pic_CXX=
    10974             lt_prog_compiler_static_CXX='-non_shared'
    10975             ;;
    10976           *)
    10977             ;;
    10978         esac
    10979         ;;
    10980       lynxos*)
    10981         ;;
    10982       m88k*)
    10983         ;;
    10984       mvs*)
    10985         case $cc_basename in
    10986           cxx)
    10987             lt_prog_compiler_pic_CXX='-W c,exportall'
    10988             ;;
    10989           *)
    10990             ;;
    10991         esac
    10992         ;;
    10993       netbsd*)
    10994         ;;
    10995       osf3* | osf4* | osf5*)
    10996         case $cc_basename in
    10997           KCC)
    10998             lt_prog_compiler_wl_CXX='--backend -Wl,'
    10999             ;;
    11000           RCC)
    11001             # Rational C++ 2.4.1
    11002             lt_prog_compiler_pic_CXX='-pic'
    11003             ;;
    11004           cxx)
    11005             # Digital/Compaq C++
    11006             lt_prog_compiler_wl_CXX='-Wl,'
    11007             # Make sure the PIC flag is empty.  It appears that all Alpha
    11008             # Linux and Compaq Tru64 Unix objects are PIC.
    11009             lt_prog_compiler_pic_CXX=
    11010             lt_prog_compiler_static_CXX='-non_shared'
    11011             ;;
    11012           *)
    11013             ;;
    11014         esac
    11015         ;;
    11016       psos*)
    11017         ;;
    11018       sco*)
    11019         case $cc_basename in
    11020           CC)
    11021             lt_prog_compiler_pic_CXX='-fPIC'
    11022             ;;
    11023           *)
    11024             ;;
    11025         esac
    11026         ;;
    11027       solaris*)
    11028         case $cc_basename in
    11029           CC)
    11030             # Sun C++ 4.2, 5.x and Centerline C++
    11031             lt_prog_compiler_pic_CXX='-KPIC'
    11032             lt_prog_compiler_static_CXX='-Bstatic'
    11033             lt_prog_compiler_wl_CXX='-Qoption ld '
    11034             ;;
    11035           gcx)
    11036             # Green Hills C++ Compiler
    11037             lt_prog_compiler_pic_CXX='-PIC'
    11038             ;;
    11039           *)
    11040             ;;
    11041         esac
    11042         ;;
    11043       sunos4*)
    11044         case $cc_basename in
    11045           CC)
    11046             # Sun C++ 4.x
    11047             lt_prog_compiler_pic_CXX='-pic'
    11048             lt_prog_compiler_static_CXX='-Bstatic'
    11049             ;;
    11050           lcc)
    11051             # Lucid
    11052             lt_prog_compiler_pic_CXX='-pic'
    11053             ;;
    11054           *)
    11055             ;;
    11056         esac
    11057         ;;
    11058       tandem*)
    11059         case $cc_basename in
    11060           NCC)
    11061             # NonStop-UX NCC 3.20
    11062             lt_prog_compiler_pic_CXX='-KPIC'
    11063             ;;
    11064           *)
    11065             ;;
    11066         esac
    11067         ;;
    11068       unixware*)
    11069         ;;
    11070       vxworks*)
    11071         ;;
    11072       *)
    11073         lt_prog_compiler_can_build_shared_CXX=no
    11074         ;;
    11075     esac
    11076   fi
    11077 
    11078 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
    11079 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
    11080 
    11081 #
    11082 # Check to make sure the PIC flag actually works.
    11083 #
    11084 if test -n "$lt_prog_compiler_pic_CXX"; then
    11085 
    11086 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
    11087 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
    11088 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
    11089   echo $ECHO_N "(cached) $ECHO_C" >&6
    11090 else
    11091   lt_prog_compiler_pic_works_CXX=no
    11092   ac_outfile=conftest.$ac_objext
    11093    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
    11094    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
    11095    # Insert the option either (1) after the last *FLAGS variable, or
    11096    # (2) before a word containing "conftest.", or (3) at the end.
    11097    # Note that $ac_compile itself does not contain backslashes and begins
    11098    # with a dollar sign (not a hyphen), so the echo should work correctly.
    11099    # The option is referenced via a variable to avoid confusing sed.
    11100    lt_compile=`echo "$ac_compile" | $SED \
    11101    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
    11102    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    11103    -e 's:$: $lt_compiler_flag:'`
    11104    (eval echo "\"\$as_me:11104: $lt_compile\"" >&5)
    11105    (eval "$lt_compile" 2>conftest.err)
    11106    ac_status=$?
    11107    cat conftest.err >&5
    11108    echo "$as_me:11108: \$? = $ac_status" >&5
    11109    if (exit $ac_status) && test -s "$ac_outfile"; then
    11110      # The compiler can only warn and ignore the option if not recognized
    11111      # So say no if there are warnings
    11112      if test ! -s conftest.err; then
    11113        lt_prog_compiler_pic_works_CXX=yes
    11114      fi
    11115    fi
    11116    $rm conftest*
    11117 
    11118 fi
    11119 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
    11120 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
    11121 
    11122 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
    11123     case $lt_prog_compiler_pic_CXX in
    11124      "" | " "*) ;;
    11125      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
    11126      esac
    11127 else
    11128     lt_prog_compiler_pic_CXX=
    11129      lt_prog_compiler_can_build_shared_CXX=no
    11130 fi
    11131 
    11132 fi
    11133 case "$host_os" in
    11134   # For platforms which do not support PIC, -DPIC is meaningless:
    11135   *djgpp*)
    11136     lt_prog_compiler_pic_CXX=
    11137     ;;
    11138   *)
    11139     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
    11140     ;;
    11141 esac
    11142 
    11143 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
    11144 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
    11145 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
    11146   echo $ECHO_N "(cached) $ECHO_C" >&6
    11147 else
    11148   lt_cv_prog_compiler_c_o_CXX=no
    11149    $rm -r conftest 2>/dev/null
    11150    mkdir conftest
    11151    cd conftest
    11152    mkdir out
    11153    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
    11154 
    11155    lt_compiler_flag="-o out/conftest2.$ac_objext"
    11156    # Insert the option either (1) after the last *FLAGS variable, or
    11157    # (2) before a word containing "conftest.", or (3) at the end.
    11158    # Note that $ac_compile itself does not contain backslashes and begins
    11159    # with a dollar sign (not a hyphen), so the echo should work correctly.
    11160    lt_compile=`echo "$ac_compile" | $SED \
    11161    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
    11162    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    11163    -e 's:$: $lt_compiler_flag:'`
    11164    (eval echo "\"\$as_me:11164: $lt_compile\"" >&5)
    11165    (eval "$lt_compile" 2>out/conftest.err)
    11166    ac_status=$?
    11167    cat out/conftest.err >&5
    11168    echo "$as_me:11168: \$? = $ac_status" >&5
    11169    if (exit $ac_status) && test -s out/conftest2.$ac_objext
    11170    then
    11171      # The compiler can only warn and ignore the option if not recognized
    11172      # So say no if there are warnings
    11173      if test ! -s out/conftest.err; then
    11174        lt_cv_prog_compiler_c_o_CXX=yes
    11175      fi
    11176    fi
    11177    chmod u+w .
    11178    $rm conftest*
    11179    # SGI C++ compiler will create directory out/ii_files/ for
    11180    # template instantiation
    11181    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
    11182    $rm out/* && rmdir out
    11183    cd ..
    11184    rmdir conftest
    11185    $rm conftest*
    11186 
    11187 fi
    11188 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
    11189 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
    11190 
    11191 
    11192 hard_links="nottested"
    11193 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
    11194   # do not overwrite the value of need_locks provided by the user
    11195   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
    11196 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
    11197   hard_links=yes
    11198   $rm conftest*
    11199   ln conftest.a conftest.b 2>/dev/null && hard_links=no
    11200   touch conftest.a
    11201   ln conftest.a conftest.b 2>&5 || hard_links=no
    11202   ln conftest.a conftest.b 2>/dev/null && hard_links=no
    11203   echo "$as_me:$LINENO: result: $hard_links" >&5
    11204 echo "${ECHO_T}$hard_links" >&6
    11205   if test "$hard_links" = no; then
    11206     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
    11207 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
    11208     need_locks=warn
    11209   fi
    11210 else
    11211   need_locks=no
    11212 fi
    11213 
    11214 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
    11215 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
    11216 
    11217   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
    11218   case $host_os in
    11219   aix4* | aix5*)
    11220     # If we're using GNU nm, then we don't want the "-C" option.
    11221     # -C means demangle to AIX nm, but means don't demangle with GNU nm
    11222     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
    11223       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
    11224     else
    11225       export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
    11226     fi
    11227     ;;
    11228   pw32*)
    11229     export_symbols_cmds_CXX="$ltdll_cmds"
    11230   ;;
    11231   cygwin* | mingw*)
    11232     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
    11233   ;;
    11234   *)
    11235     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
    11236   ;;
    11237   esac
    11238 
    11239 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
    11240 echo "${ECHO_T}$ld_shlibs_CXX" >&6
    11241 test "$ld_shlibs_CXX" = no && can_build_shared=no
    11242 
    11243 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
    11244 if test "$GCC" = yes; then
    11245   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
    11246 fi
    11247 
    11248 #
    11249 # Do we need to explicitly link libc?
    11250 #
    11251 case "x$archive_cmds_need_lc_CXX" in
    11252 x|xyes)
    11253   # Assume -lc should be added
    11254   archive_cmds_need_lc_CXX=yes
    11255 
    11256   if test "$enable_shared" = yes && test "$GCC" = yes; then
    11257     case $archive_cmds_CXX in
    11258     *'~'*)
    11259       # FIXME: we may have to deal with multi-command sequences.
    11260       ;;
    11261     '$CC '*)
    11262       # Test whether the compiler implicitly links with -lc since on some
    11263       # systems, -lgcc has to come before -lc. If gcc already passes -lc
    11264       # to ld, don't add -lc before -lgcc.
    11265       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
    11266 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
    11267       $rm conftest*
    11268       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
    11269 
    11270       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    11271   (eval $ac_compile) 2>&5
    11272   ac_status=$?
    11273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    11274   (exit $ac_status); } 2>conftest.err; then
    11275         soname=conftest
    11276         lib=conftest
    11277         libobjs=conftest.$ac_objext
    11278         deplibs=
    11279         wl=$lt_prog_compiler_wl_CXX
    11280         compiler_flags=-v
    11281         linker_flags=-v
    11282         verstring=
    11283         output_objdir=.
    11284         libname=conftest
    11285         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
    11286         allow_undefined_flag_CXX=
    11287         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
    11288   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
    11289   ac_status=$?
    11290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    11291   (exit $ac_status); }
    11292         then
    11293           archive_cmds_need_lc_CXX=no
    11294         else
    11295           archive_cmds_need_lc_CXX=yes
    11296         fi
    11297         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
    11298       else
    11299         cat conftest.err 1>&5
    11300       fi
    11301       $rm conftest*
    11302       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
    11303 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
    11304       ;;
    11305     esac
    11306   fi
    11307   ;;
    11308 esac
    11309 
    11310 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
    11311 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
    11312 library_names_spec=
    11313 libname_spec='lib$name'
    11314 soname_spec=
    11315 shrext_cmds=".so"
    11316 postinstall_cmds=
    11317 postuninstall_cmds=
    11318 finish_cmds=
    11319 finish_eval=
    11320 shlibpath_var=
    11321 shlibpath_overrides_runpath=unknown
    11322 version_type=none
    11323 dynamic_linker="$host_os ld.so"
    11324 sys_lib_dlsearch_path_spec="/lib /usr/lib"
    11325 if test "$GCC" = yes; then
    11326   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
    11327   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
    11328     # if the path contains ";" then we assume it to be the separator
    11329     # otherwise default to the standard path separator (i.e. ":") - it is
    11330     # assumed that no part of a normal pathname contains ";" but that should
    11331     # okay in the real world where ";" in dirpaths is itself problematic.
    11332     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
    11333   else
    11334     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
    11335   fi
    11336 else
    11337   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
    11338 fi
    11339 need_lib_prefix=unknown
    11340 hardcode_into_libs=no
    11341 
    11342 # when you set need_version to no, make sure it does not cause -set_version
    11343 # flags to be left without arguments
    11344 need_version=unknown
    11345 
    11346 case $host_os in
    11347 aix3*)
    11348   version_type=linux
    11349   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
    11350   shlibpath_var=LIBPATH
    11351 
    11352   # AIX 3 has no versioning support, so we append a major version to the name.
    11353   soname_spec='${libname}${release}${shared_ext}$major'
    11354   ;;
    11355 
    11356 aix4* | aix5*)
    11357   version_type=linux
    11358   need_lib_prefix=no
    11359   need_version=no
    11360   hardcode_into_libs=yes
    11361   if test "$host_cpu" = ia64; then
    11362     # AIX 5 supports IA64
    11363     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
    11364     shlibpath_var=LD_LIBRARY_PATH
    11365   else
    11366     # With GCC up to 2.95.x, collect2 would create an import file
    11367     # for dependence libraries.  The import file would start with
    11368     # the line `#! .'.  This would cause the generated library to
    11369     # depend on `.', always an invalid library.  This was fixed in
    11370     # development snapshots of GCC prior to 3.0.
    11371     case $host_os in
    11372       aix4 | aix4.[01] | aix4.[01].*)
    11373       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
    11374            echo ' yes '
    11375            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
    11376         :
    11377       else
    11378         can_build_shared=no
    11379       fi
    11380       ;;
    11381     esac
    11382     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
    11383     # soname into executable. Probably we can add versioning support to
    11384     # collect2, so additional links can be useful in future.
    11385     if test "$aix_use_runtimelinking" = yes; then
    11386       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
    11387       # instead of lib<name>.a to let people know that these are not
    11388       # typical AIX shared libraries.
    11389       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    11390     else
    11391       # We preserve .a as extension for shared libraries through AIX4.2
    11392       # and later when we are not doing run time linking.
    11393       library_names_spec='${libname}${release}.a $libname.a'
    11394       soname_spec='${libname}${release}${shared_ext}$major'
    11395     fi
    11396     shlibpath_var=LIBPATH
    11397   fi
    11398   ;;
    11399 
    11400 amigaos*)
    11401   library_names_spec='$libname.ixlibrary $libname.a'
    11402   # Create ${libname}_ixlibrary.a entries in /sys/libs.
    11403   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
    11404   ;;
    11405 
    11406 beos*)
    11407   library_names_spec='${libname}${shared_ext}'
    11408   dynamic_linker="$host_os ld.so"
    11409   shlibpath_var=LIBRARY_PATH
    11410   ;;
    11411 
    11412 bsdi4*)
    11413   version_type=linux
    11414   need_version=no
    11415   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    11416   soname_spec='${libname}${release}${shared_ext}$major'
    11417   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
    11418   shlibpath_var=LD_LIBRARY_PATH
    11419   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
    11420   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
    11421   # the default ld.so.conf also contains /usr/contrib/lib and
    11422   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
    11423   # libtool to hard-code these into programs
    11424   ;;
    11425 
    11426 cygwin* | mingw* | pw32*)
    11427   version_type=windows
    11428   shrext_cmds=".dll"
    11429   need_version=no
    11430   need_lib_prefix=no
    11431 
    11432   case $GCC,$host_os in
    11433   yes,cygwin* | yes,mingw* | yes,pw32*)
    11434     library_names_spec='$libname.dll.a'
    11435     # DLL is installed to $(libdir)/../bin by postinstall_cmds
    11436     postinstall_cmds='base_file=`basename \${file}`~
    11437       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
    11438       dldir=$destdir/`dirname \$dlpath`~
    11439       test -d \$dldir || mkdir -p \$dldir~
    11440       $install_prog $dir/$dlname \$dldir/$dlname'
    11441     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
    11442       dlpath=$dir/\$dldll~
    11443        $rm \$dlpath'
    11444     shlibpath_overrides_runpath=yes
    11445 
    11446     case $host_os in
    11447     cygwin*)
    11448       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
    11449       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
    11450       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
    11451       ;;
    11452     mingw*)
    11453       # MinGW DLLs use traditional 'lib' prefix
    11454       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
    11455       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
    11456       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
    11457         # It is most probably a Windows format PATH printed by
    11458         # mingw gcc, but we are running on Cygwin. Gcc prints its search
    11459         # path with ; separators, and with drive letters. We can handle the
    11460         # drive letters (cygwin fileutils understands them), so leave them,
    11461         # especially as we might pass files found there to a mingw objdump,
    11462         # which wouldn't understand a cygwinified path. Ahh.
    11463         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
    11464       else
    11465         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
    11466       fi
    11467       ;;
    11468     pw32*)
    11469       # pw32 DLLs use 'pw' prefix rather than 'lib'
    11470       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
    11471       ;;
    11472     esac
    11473     ;;
    11474 
    11475   *)
    11476     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
    11477     ;;
    11478   esac
    11479   dynamic_linker='Win32 ld.exe'
    11480   # FIXME: first we should search . and the directory the executable is in
    11481   shlibpath_var=PATH
    11482   ;;
    11483 
    11484 darwin* | rhapsody*)
    11485   dynamic_linker="$host_os dyld"
    11486   version_type=darwin
    11487   need_lib_prefix=no
    11488   need_version=no
    11489   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
    11490   soname_spec='${libname}${release}${major}$shared_ext'
    11491   shlibpath_overrides_runpath=yes
    11492   shlibpath_var=DYLD_LIBRARY_PATH
    11493   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
    11494   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
    11495   if test "$GCC" = yes; then
    11496     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"`
    11497   else
    11498     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
    11499   fi
    11500   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
    11501   ;;
    11502 
    11503 dgux*)
    11504   version_type=linux
    11505   need_lib_prefix=no
    11506   need_version=no
    11507   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
    11508   soname_spec='${libname}${release}${shared_ext}$major'
    11509   shlibpath_var=LD_LIBRARY_PATH
    11510   ;;
    11511 
    11512 freebsd1*)
    11513   dynamic_linker=no
    11514   ;;
    11515 
    11516 kfreebsd*-gnu)
    11517   version_type=linux
    11518   need_lib_prefix=no
    11519   need_version=no
    11520   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
    11521   soname_spec='${libname}${release}${shared_ext}$major'
    11522   shlibpath_var=LD_LIBRARY_PATH
    11523   shlibpath_overrides_runpath=no
    11524   hardcode_into_libs=yes
    11525   dynamic_linker='GNU ld.so'
    11526   ;;
    11527 
    11528 freebsd*)
    11529   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
    11530   version_type=freebsd-$objformat
    11531   case $version_type in
    11532     freebsd-elf*)
    11533       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
    11534       need_version=no
    11535       need_lib_prefix=no
    11536       ;;
    11537     freebsd-*)
    11538       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
    11539       need_version=yes
    11540       ;;
    11541   esac
    11542   shlibpath_var=LD_LIBRARY_PATH
    11543   case $host_os in
    11544   freebsd2*)
    11545     shlibpath_overrides_runpath=yes
    11546     ;;
    11547   freebsd3.01* | freebsdelf3.01*)
    11548     shlibpath_overrides_runpath=yes
    11549     hardcode_into_libs=yes
    11550     ;;
    11551   *) # from 3.2 on
    11552     shlibpath_overrides_runpath=no
    11553     hardcode_into_libs=yes
    11554     ;;
    11555   esac
    11556   ;;
    11557 
    11558 gnu*)
    11559   version_type=linux
    11560   need_lib_prefix=no
    11561   need_version=no
    11562   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
    11563   soname_spec='${libname}${release}${shared_ext}$major'
    11564   shlibpath_var=LD_LIBRARY_PATH
    11565   hardcode_into_libs=yes
    11566   ;;
    11567 
    11568 hpux9* | hpux10* | hpux11*)
    11569   # Give a soname corresponding to the major version so that dld.sl refuses to
    11570   # link against other versions.
    11571   version_type=sunos
    11572   need_lib_prefix=no
    11573   need_version=no
    11574   case "$host_cpu" in
    11575   ia64*)
    11576     shrext_cmds='.so'
    11577     hardcode_into_libs=yes
    11578     dynamic_linker="$host_os dld.so"
    11579     shlibpath_var=LD_LIBRARY_PATH
    11580     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
    11581     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    11582     soname_spec='${libname}${release}${shared_ext}$major'
    11583     if test "X$HPUX_IA64_MODE" = X32; then
    11584       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
    11585     else
    11586       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
    11587     fi
    11588     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
    11589     ;;
    11590    hppa*64*)
    11591      shrext_cmds='.sl'
    11592      hardcode_into_libs=yes
    11593      dynamic_linker="$host_os dld.sl"
    11594      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
    11595      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
    11596      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    11597      soname_spec='${libname}${release}${shared_ext}$major'
    11598      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
    11599      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
    11600      ;;
    11601    *)
    11602     shrext_cmds='.sl'
    11603     dynamic_linker="$host_os dld.sl"
    11604     shlibpath_var=SHLIB_PATH
    11605     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
    11606     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    11607     soname_spec='${libname}${release}${shared_ext}$major'
    11608     ;;
    11609   esac
    11610   # HP-UX runs *really* slowly unless shared libraries are mode 555.
    11611   postinstall_cmds='chmod 555 $lib'
    11612   ;;
    11613 
    11614 irix5* | irix6* | nonstopux*)
    11615   case $host_os in
    11616     nonstopux*) version_type=nonstopux ;;
    11617     *)
    11618         if test "$lt_cv_prog_gnu_ld" = yes; then
    11619                 version_type=linux
    11620         else
    11621                 version_type=irix
    11622         fi ;;
    11623   esac
    11624   need_lib_prefix=no
    11625   need_version=no
    11626   soname_spec='${libname}${release}${shared_ext}$major'
    11627   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
    11628   case $host_os in
    11629   irix5* | nonstopux*)
    11630     libsuff= shlibsuff=
    11631     ;;
    11632   *)
    11633     case $LD in # libtool.m4 will add one of these switches to LD
    11634     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
    11635       libsuff= shlibsuff= libmagic=32-bit;;
    11636     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
    11637       libsuff=32 shlibsuff=N32 libmagic=N32;;
    11638     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
    11639       libsuff=64 shlibsuff=64 libmagic=64-bit;;
    11640     *) libsuff= shlibsuff= libmagic=never-match;;
    11641     esac
    11642     ;;
    11643   esac
    11644   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
    11645   shlibpath_overrides_runpath=no
    11646   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
    11647   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
    11648   hardcode_into_libs=yes
    11649   ;;
    11650 
    11651 # No shared lib support for Linux oldld, aout, or coff.
    11652 linux*oldld* | linux*aout* | linux*coff*)
    11653   dynamic_linker=no
    11654   ;;
    11655 
    11656 # This must be Linux ELF.
    11657 linux*)
    11658   version_type=linux
    11659   need_lib_prefix=no
    11660   need_version=no
    11661   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    11662   soname_spec='${libname}${release}${shared_ext}$major'
    11663   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
    11664   shlibpath_var=LD_LIBRARY_PATH
    11665   shlibpath_overrides_runpath=no
    11666   # This implies no fast_install, which is unacceptable.
    11667   # Some rework will be needed to allow for fast_install
    11668   # before this can be enabled.
    11669   hardcode_into_libs=yes
    11670 
    11671   # find out which ABI we are using
    11672   libsuff=
    11673   case "$host_cpu" in
    11674   x86_64*|s390x*|powerpc64*)
    11675     echo '#line 11675 "configure"' > conftest.$ac_ext
    11676     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    11677   (eval $ac_compile) 2>&5
    11678   ac_status=$?
    11679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    11680   (exit $ac_status); }; then
    11681       case `/usr/bin/file conftest.$ac_objext` in
    11682       *64-bit*)
    11683         libsuff=64
    11684         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
    11685         ;;
    11686       esac
    11687     fi
    11688     rm -rf conftest*
    11689     ;;
    11690   esac
    11691 
    11692   # Append ld.so.conf contents to the search path
    11693   if test -f /etc/ld.so.conf; then
    11694     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
    11695     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
    11696   fi
    11697 
    11698   # We used to test for /lib/ld.so.1 and disable shared libraries on
    11699   # powerpc, because MkLinux only supported shared libraries with the
    11700   # GNU dynamic linker.  Since this was broken with cross compilers,
    11701   # most powerpc-linux boxes support dynamic linking these days and
    11702   # people can always --disable-shared, the test was removed, and we
    11703   # assume the GNU/Linux dynamic linker is in use.
    11704   dynamic_linker='GNU/Linux ld.so'
    11705   ;;
    11706 
    11707 knetbsd*-gnu)
    11708   version_type=linux
    11709   need_lib_prefix=no
    11710   need_version=no
    11711   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
    11712   soname_spec='${libname}${release}${shared_ext}$major'
    11713   shlibpath_var=LD_LIBRARY_PATH
    11714   shlibpath_overrides_runpath=no
    11715   hardcode_into_libs=yes
    11716   dynamic_linker='GNU ld.so'
    11717   ;;
    11718 
    11719 netbsd*)
    11720   version_type=sunos
    11721   need_lib_prefix=no
    11722   need_version=no
    11723   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
    11724     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
    11725     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
    11726     dynamic_linker='NetBSD (a.out) ld.so'
    11727   else
    11728     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
    11729     soname_spec='${libname}${release}${shared_ext}$major'
    11730     dynamic_linker='NetBSD ld.elf_so'
    11731   fi
    11732   shlibpath_var=LD_LIBRARY_PATH
    11733   shlibpath_overrides_runpath=yes
    11734   hardcode_into_libs=yes
    11735   ;;
    11736 
    11737 newsos6)
    11738   version_type=linux
    11739   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    11740   shlibpath_var=LD_LIBRARY_PATH
    11741   shlibpath_overrides_runpath=yes
    11742   ;;
    11743 
    11744 nto-qnx*)
    11745   version_type=linux
    11746   need_lib_prefix=no
    11747   need_version=no
    11748   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    11749   soname_spec='${libname}${release}${shared_ext}$major'
    11750   shlibpath_var=LD_LIBRARY_PATH
    11751   shlibpath_overrides_runpath=yes
    11752   ;;
    11753 
    11754 openbsd*)
    11755   version_type=sunos
    11756   need_lib_prefix=no
    11757   need_version=yes
    11758   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
    11759   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
    11760   shlibpath_var=LD_LIBRARY_PATH
    11761   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
    11762     case $host_os in
    11763       openbsd2.[89] | openbsd2.[89].*)
    11764         shlibpath_overrides_runpath=no
    11765         ;;
    11766       *)
    11767         shlibpath_overrides_runpath=yes
    11768         ;;
    11769       esac
    11770   else
    11771     shlibpath_overrides_runpath=yes
    11772   fi
    11773   ;;
    11774 
    11775 os2*)
    11776   libname_spec='$name'
    11777   shrext_cmds=".dll"
    11778   need_lib_prefix=no
    11779   library_names_spec='$libname${shared_ext} $libname.a'
    11780   dynamic_linker='OS/2 ld.exe'
    11781   shlibpath_var=LIBPATH
    11782   ;;
    11783 
    11784 osf3* | osf4* | osf5*)
    11785   version_type=osf
    11786   need_lib_prefix=no
    11787   need_version=no
    11788   soname_spec='${libname}${release}${shared_ext}$major'
    11789   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    11790   shlibpath_var=LD_LIBRARY_PATH
    11791   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
    11792   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
    11793   ;;
    11794 
    11795 sco3.2v5*)
    11796   version_type=osf
    11797   soname_spec='${libname}${release}${shared_ext}$major'
    11798   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    11799   shlibpath_var=LD_LIBRARY_PATH
    11800   ;;
    11801 
    11802 solaris*)
    11803   version_type=linux
    11804   need_lib_prefix=no
    11805   need_version=no
    11806   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    11807   soname_spec='${libname}${release}${shared_ext}$major'
    11808   shlibpath_var=LD_LIBRARY_PATH
    11809   shlibpath_overrides_runpath=yes
    11810   hardcode_into_libs=yes
    11811   # ldd complains unless libraries are executable
    11812   postinstall_cmds='chmod +x $lib'
    11813   ;;
    11814 
    11815 sunos4*)
    11816   version_type=sunos
    11817   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
    11818   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
    11819   shlibpath_var=LD_LIBRARY_PATH
    11820   shlibpath_overrides_runpath=yes
    11821   if test "$with_gnu_ld" = yes; then
    11822     need_lib_prefix=no
    11823   fi
    11824   need_version=yes
    11825   ;;
    11826 
    11827 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
    11828   version_type=linux
    11829   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    11830   soname_spec='${libname}${release}${shared_ext}$major'
    11831   shlibpath_var=LD_LIBRARY_PATH
    11832   case $host_vendor in
    11833     sni)
    11834       shlibpath_overrides_runpath=no
    11835       need_lib_prefix=no
    11836       export_dynamic_flag_spec='${wl}-Blargedynsym'
    11837       runpath_var=LD_RUN_PATH
    11838       ;;
    11839     siemens)
    11840       need_lib_prefix=no
    11841       ;;
    11842     motorola)
    11843       need_lib_prefix=no
    11844       need_version=no
    11845       shlibpath_overrides_runpath=no
    11846       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
    11847       ;;
    11848   esac
    11849   ;;
    11850 
    11851 sysv4*MP*)
    11852   if test -d /usr/nec ;then
    11853     version_type=linux
    11854     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
    11855     soname_spec='$libname${shared_ext}.$major'
    11856     shlibpath_var=LD_LIBRARY_PATH
    11857   fi
    11858   ;;
    11859 
    11860 uts4*)
    11861   version_type=linux
    11862   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    11863   soname_spec='${libname}${release}${shared_ext}$major'
    11864   shlibpath_var=LD_LIBRARY_PATH
    11865   ;;
    11866 
    11867 *)
    11868   dynamic_linker=no
    11869   ;;
    11870 esac
    11871 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
    11872 echo "${ECHO_T}$dynamic_linker" >&6
    11873 test "$dynamic_linker" = no && can_build_shared=no
    11874 
    11875 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
    11876 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
    11877 hardcode_action_CXX=
    11878 if test -n "$hardcode_libdir_flag_spec_CXX" || \
    11879    test -n "$runpath_var CXX" || \
    11880    test "X$hardcode_automatic_CXX"="Xyes" ; then
    11881 
    11882   # We can hardcode non-existant directories.
    11883   if test "$hardcode_direct_CXX" != no &&
    11884      # If the only mechanism to avoid hardcoding is shlibpath_var, we
    11885      # have to relink, otherwise we might link with an installed library
    11886      # when we should be linking with a yet-to-be-installed one
    11887      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
    11888      test "$hardcode_minus_L_CXX" != no; then
    11889     # Linking always hardcodes the temporary library directory.
    11890     hardcode_action_CXX=relink
    11891   else
    11892     # We can link without hardcoding, and we can hardcode nonexisting dirs.
    11893     hardcode_action_CXX=immediate
    11894   fi
    11895 else
    11896   # We cannot hardcode anything, or else we can only hardcode existing
    11897   # directories.
    11898   hardcode_action_CXX=unsupported
    11899 fi
    11900 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
    11901 echo "${ECHO_T}$hardcode_action_CXX" >&6
    11902 
    11903 if test "$hardcode_action_CXX" = relink; then
    11904   # Fast installation is not supported
    11905   enable_fast_install=no
    11906 elif test "$shlibpath_overrides_runpath" = yes ||
    11907      test "$enable_shared" = no; then
    11908   # Fast installation is not necessary
    11909   enable_fast_install=needless
    11910 fi
    11911 
    11912 striplib=
    11913 old_striplib=
    11914 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
    11915 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
    11916 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
    11917   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
    11918   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
    11919   echo "$as_me:$LINENO: result: yes" >&5
    11920 echo "${ECHO_T}yes" >&6
    11921 else
    11922 # FIXME - insert some real tests, host_os isn't really good enough
    11923   case $host_os in
    11924    darwin*)
    11925        if test -n "$STRIP" ; then
    11926          striplib="$STRIP -x"
    11927          echo "$as_me:$LINENO: result: yes" >&5
    11928 echo "${ECHO_T}yes" >&6
    11929        else
    11930   echo "$as_me:$LINENO: result: no" >&5
    11931 echo "${ECHO_T}no" >&6
    11932 fi
    11933        ;;
    11934    *)
    11935   echo "$as_me:$LINENO: result: no" >&5
    11936 echo "${ECHO_T}no" >&6
    11937     ;;
    11938   esac
    11939 fi
    11940 
    11941 if test "x$enable_dlopen" != xyes; then
    11942   enable_dlopen=unknown
    11943   enable_dlopen_self=unknown
    11944   enable_dlopen_self_static=unknown
    11945 else
    11946   lt_cv_dlopen=no
    11947   lt_cv_dlopen_libs=
    11948 
    11949   case $host_os in
    11950   beos*)
    11951     lt_cv_dlopen="load_add_on"
    11952     lt_cv_dlopen_libs=
    11953     lt_cv_dlopen_self=yes
    11954     ;;
    11955 
    11956   mingw* | pw32*)
    11957     lt_cv_dlopen="LoadLibrary"
    11958     lt_cv_dlopen_libs=
    11959    ;;
    11960 
    11961   cygwin*)
    11962     lt_cv_dlopen="dlopen"
    11963     lt_cv_dlopen_libs=
    11964    ;;
    11965 
    11966   darwin*)
    11967   # if libdl is installed we need to link against it
    11968     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
    11969 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
    11970 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
    11971   echo $ECHO_N "(cached) $ECHO_C" >&6
    11972 else
    11973   ac_check_lib_save_LIBS=$LIBS
    11974 LIBS="-ldl  $LIBS"
    11975 cat >conftest.$ac_ext <<_ACEOF
    11976 /* confdefs.h.  */
    11977 _ACEOF
    11978 cat confdefs.h >>conftest.$ac_ext
    11979 cat >>conftest.$ac_ext <<_ACEOF
    11980 /* end confdefs.h.  */
    11981 
    11982 /* Override any gcc2 internal prototype to avoid an error.  */
    11983 #ifdef __cplusplus
    11984 extern "C"
    11985 #endif
    11986 /* We use char because int might match the return type of a gcc2
    11987    builtin and then its argument prototype would still apply.  */
    11988 char dlopen ();
    11989 int
    11990 main ()
    11991 {
    11992 dlopen ();
    11993   ;
    11994   return 0;
    11995 }
    11996 _ACEOF
    11997 rm -f conftest.$ac_objext conftest$ac_exeext
    11998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    11999   (eval $ac_link) 2>conftest.er1
    12000   ac_status=$?
    12001   grep -v '^ *+' conftest.er1 >conftest.err
    12002   rm -f conftest.er1
    12003   cat conftest.err >&5
    12004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    12005   (exit $ac_status); } &&
    12006          { ac_try='test -z "$ac_cxx_werror_flag"
    12007                          || test ! -s conftest.err'
    12008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    12009   (eval $ac_try) 2>&5
    12010   ac_status=$?
    12011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    12012   (exit $ac_status); }; } &&
    12013          { ac_try='test -s conftest$ac_exeext'
    12014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    12015   (eval $ac_try) 2>&5
    12016   ac_status=$?
    12017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    12018   (exit $ac_status); }; }; then
    12019   ac_cv_lib_dl_dlopen=yes
    12020 else
    12021   echo "$as_me: failed program was:" >&5
    12022 sed 's/^/| /' conftest.$ac_ext >&5
    12023 
    12024 ac_cv_lib_dl_dlopen=no
    12025 fi
    12026 rm -f conftest.err conftest.$ac_objext \
    12027       conftest$ac_exeext conftest.$ac_ext
    12028 LIBS=$ac_check_lib_save_LIBS
    12029 fi
    12030 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
    12031 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
    12032 if test $ac_cv_lib_dl_dlopen = yes; then
    12033   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
    12034 else
    12035 
    12036     lt_cv_dlopen="dyld"
    12037     lt_cv_dlopen_libs=
    12038     lt_cv_dlopen_self=yes
    12039 
    12040 fi
    12041 
    12042    ;;
    12043 
    12044   *)
    12045     echo "$as_me:$LINENO: checking for shl_load" >&5
    12046 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
    12047 if test "${ac_cv_func_shl_load+set}" = set; then
    12048   echo $ECHO_N "(cached) $ECHO_C" >&6
    12049 else
    12050   cat >conftest.$ac_ext <<_ACEOF
    12051 /* confdefs.h.  */
    12052 _ACEOF
    12053 cat confdefs.h >>conftest.$ac_ext
    12054 cat >>conftest.$ac_ext <<_ACEOF
    12055 /* end confdefs.h.  */
    12056 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
    12057    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    12058 #define shl_load innocuous_shl_load
    12059 
    12060 /* System header to define __stub macros and hopefully few prototypes,
    12061     which can conflict with char shl_load (); below.
    12062     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    12063     <limits.h> exists even on freestanding compilers.  */
    12064 
    12065 #ifdef __STDC__
    12066 # include <limits.h>
    12067 #else
    12068 # include <assert.h>
    12069 #endif
    12070 
    12071 #undef shl_load
    12072 
    12073 /* Override any gcc2 internal prototype to avoid an error.  */
    12074 #ifdef __cplusplus
    12075 extern "C"
    12076 {
    12077 #endif
    12078 /* We use char because int might match the return type of a gcc2
    12079    builtin and then its argument prototype would still apply.  */
    12080 char shl_load ();
    12081 /* The GNU C library defines this for functions which it implements
    12082     to always fail with ENOSYS.  Some functions are actually named
    12083     something starting with __ and the normal name is an alias.  */
    12084 #if defined (__stub_shl_load) || defined (__stub___shl_load)
    12085 choke me
    12086 #else
    12087 char (*f) () = shl_load;
    12088 #endif
    12089 #ifdef __cplusplus
    12090 }
    12091 #endif
    12092 
    12093 int
    12094 main ()
    12095 {
    12096 return f != shl_load;
    12097   ;
    12098   return 0;
    12099 }
    12100 _ACEOF
    12101 rm -f conftest.$ac_objext conftest$ac_exeext
    12102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    12103   (eval $ac_link) 2>conftest.er1
    12104   ac_status=$?
    12105   grep -v '^ *+' conftest.er1 >conftest.err
    12106   rm -f conftest.er1
    12107   cat conftest.err >&5
    12108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    12109   (exit $ac_status); } &&
    12110          { ac_try='test -z "$ac_cxx_werror_flag"
    12111                          || test ! -s conftest.err'
    12112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    12113   (eval $ac_try) 2>&5
    12114   ac_status=$?
    12115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    12116   (exit $ac_status); }; } &&
    12117          { ac_try='test -s conftest$ac_exeext'
    12118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    12119   (eval $ac_try) 2>&5
    12120   ac_status=$?
    12121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    12122   (exit $ac_status); }; }; then
    12123   ac_cv_func_shl_load=yes
    12124 else
    12125   echo "$as_me: failed program was:" >&5
    12126 sed 's/^/| /' conftest.$ac_ext >&5
    12127 
    12128 ac_cv_func_shl_load=no
    12129 fi
    12130 rm -f conftest.err conftest.$ac_objext \
    12131       conftest$ac_exeext conftest.$ac_ext
    12132 fi
    12133 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
    12134 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
    12135 if test $ac_cv_func_shl_load = yes; then
    12136   lt_cv_dlopen="shl_load"
    12137 else
    12138   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
    12139 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
    12140 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
    12141   echo $ECHO_N "(cached) $ECHO_C" >&6
    12142 else
    12143   ac_check_lib_save_LIBS=$LIBS
    12144 LIBS="-ldld  $LIBS"
    12145 cat >conftest.$ac_ext <<_ACEOF
    12146 /* confdefs.h.  */
    12147 _ACEOF
    12148 cat confdefs.h >>conftest.$ac_ext
    12149 cat >>conftest.$ac_ext <<_ACEOF
    12150 /* end confdefs.h.  */
    12151 
    12152 /* Override any gcc2 internal prototype to avoid an error.  */
    12153 #ifdef __cplusplus
    12154 extern "C"
    12155 #endif
    12156 /* We use char because int might match the return type of a gcc2
    12157    builtin and then its argument prototype would still apply.  */
    12158 char shl_load ();
    12159 int
    12160 main ()
    12161 {
    12162 shl_load ();
    12163   ;
    12164   return 0;
    12165 }
    12166 _ACEOF
    12167 rm -f conftest.$ac_objext conftest$ac_exeext
    12168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    12169   (eval $ac_link) 2>conftest.er1
    12170   ac_status=$?
    12171   grep -v '^ *+' conftest.er1 >conftest.err
    12172   rm -f conftest.er1
    12173   cat conftest.err >&5
    12174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    12175   (exit $ac_status); } &&
    12176          { ac_try='test -z "$ac_cxx_werror_flag"
    12177                          || test ! -s conftest.err'
    12178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    12179   (eval $ac_try) 2>&5
    12180   ac_status=$?
    12181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    12182   (exit $ac_status); }; } &&
    12183          { ac_try='test -s conftest$ac_exeext'
    12184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    12185   (eval $ac_try) 2>&5
    12186   ac_status=$?
    12187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    12188   (exit $ac_status); }; }; then
    12189   ac_cv_lib_dld_shl_load=yes
    12190 else
    12191   echo "$as_me: failed program was:" >&5
    12192 sed 's/^/| /' conftest.$ac_ext >&5
    12193 
    12194 ac_cv_lib_dld_shl_load=no
    12195 fi
    12196 rm -f conftest.err conftest.$ac_objext \
    12197       conftest$ac_exeext conftest.$ac_ext
    12198 LIBS=$ac_check_lib_save_LIBS
    12199 fi
    12200 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
    12201 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
    12202 if test $ac_cv_lib_dld_shl_load = yes; then
    12203   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
    12204 else
    12205   echo "$as_me:$LINENO: checking for dlopen" >&5
    12206 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
    12207 if test "${ac_cv_func_dlopen+set}" = set; then
    12208   echo $ECHO_N "(cached) $ECHO_C" >&6
    12209 else
    12210   cat >conftest.$ac_ext <<_ACEOF
    12211 /* confdefs.h.  */
    12212 _ACEOF
    12213 cat confdefs.h >>conftest.$ac_ext
    12214 cat >>conftest.$ac_ext <<_ACEOF
    12215 /* end confdefs.h.  */
    12216 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
    12217    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    12218 #define dlopen innocuous_dlopen
    12219 
    12220 /* System header to define __stub macros and hopefully few prototypes,
    12221     which can conflict with char dlopen (); below.
    12222     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    12223     <limits.h> exists even on freestanding compilers.  */
    12224 
    12225 #ifdef __STDC__
    12226 # include <limits.h>
    12227 #else
    12228 # include <assert.h>
    12229 #endif
    12230 
    12231 #undef dlopen
    12232 
    12233 /* Override any gcc2 internal prototype to avoid an error.  */
    12234 #ifdef __cplusplus
    12235 extern "C"
    12236 {
    12237 #endif
    12238 /* We use char because int might match the return type of a gcc2
    12239    builtin and then its argument prototype would still apply.  */
    12240 char dlopen ();
    12241 /* The GNU C library defines this for functions which it implements
    12242     to always fail with ENOSYS.  Some functions are actually named
    12243     something starting with __ and the normal name is an alias.  */
    12244 #if defined (__stub_dlopen) || defined (__stub___dlopen)
    12245 choke me
    12246 #else
    12247 char (*f) () = dlopen;
    12248 #endif
    12249 #ifdef __cplusplus
    12250 }
    12251 #endif
    12252 
    12253 int
    12254 main ()
    12255 {
    12256 return f != dlopen;
    12257   ;
    12258   return 0;
    12259 }
    12260 _ACEOF
    12261 rm -f conftest.$ac_objext conftest$ac_exeext
    12262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    12263   (eval $ac_link) 2>conftest.er1
    12264   ac_status=$?
    12265   grep -v '^ *+' conftest.er1 >conftest.err
    12266   rm -f conftest.er1
    12267   cat conftest.err >&5
    12268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    12269   (exit $ac_status); } &&
    12270          { ac_try='test -z "$ac_cxx_werror_flag"
    12271                          || test ! -s conftest.err'
    12272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    12273   (eval $ac_try) 2>&5
    12274   ac_status=$?
    12275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    12276   (exit $ac_status); }; } &&
    12277          { ac_try='test -s conftest$ac_exeext'
    12278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    12279   (eval $ac_try) 2>&5
    12280   ac_status=$?
    12281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    12282   (exit $ac_status); }; }; then
    12283   ac_cv_func_dlopen=yes
    12284 else
    12285   echo "$as_me: failed program was:" >&5
    12286 sed 's/^/| /' conftest.$ac_ext >&5
    12287 
    12288 ac_cv_func_dlopen=no
    12289 fi
    12290 rm -f conftest.err conftest.$ac_objext \
    12291       conftest$ac_exeext conftest.$ac_ext
    12292 fi
    12293 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
    12294 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
    12295 if test $ac_cv_func_dlopen = yes; then
    12296   lt_cv_dlopen="dlopen"
    12297 else
    12298   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
    12299 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
    12300 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
    12301   echo $ECHO_N "(cached) $ECHO_C" >&6
    12302 else
    12303   ac_check_lib_save_LIBS=$LIBS
    12304 LIBS="-ldl  $LIBS"
    12305 cat >conftest.$ac_ext <<_ACEOF
    12306 /* confdefs.h.  */
    12307 _ACEOF
    12308 cat confdefs.h >>conftest.$ac_ext
    12309 cat >>conftest.$ac_ext <<_ACEOF
    12310 /* end confdefs.h.  */
    12311 
    12312 /* Override any gcc2 internal prototype to avoid an error.  */
    12313 #ifdef __cplusplus
    12314 extern "C"
    12315 #endif
    12316 /* We use char because int might match the return type of a gcc2
    12317    builtin and then its argument prototype would still apply.  */
    12318 char dlopen ();
    12319 int
    12320 main ()
    12321 {
    12322 dlopen ();
    12323   ;
    12324   return 0;
    12325 }
    12326 _ACEOF
    12327 rm -f conftest.$ac_objext conftest$ac_exeext
    12328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    12329   (eval $ac_link) 2>conftest.er1
    12330   ac_status=$?
    12331   grep -v '^ *+' conftest.er1 >conftest.err
    12332   rm -f conftest.er1
    12333   cat conftest.err >&5
    12334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    12335   (exit $ac_status); } &&
    12336          { ac_try='test -z "$ac_cxx_werror_flag"
    12337                          || test ! -s conftest.err'
    12338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    12339   (eval $ac_try) 2>&5
    12340   ac_status=$?
    12341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    12342   (exit $ac_status); }; } &&
    12343          { ac_try='test -s conftest$ac_exeext'
    12344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    12345   (eval $ac_try) 2>&5
    12346   ac_status=$?
    12347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    12348   (exit $ac_status); }; }; then
    12349   ac_cv_lib_dl_dlopen=yes
    12350 else
    12351   echo "$as_me: failed program was:" >&5
    12352 sed 's/^/| /' conftest.$ac_ext >&5
    12353 
    12354 ac_cv_lib_dl_dlopen=no
    12355 fi
    12356 rm -f conftest.err conftest.$ac_objext \
    12357       conftest$ac_exeext conftest.$ac_ext
    12358 LIBS=$ac_check_lib_save_LIBS
    12359 fi
    12360 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
    12361 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
    12362 if test $ac_cv_lib_dl_dlopen = yes; then
    12363   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
    12364 else
    12365   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
    12366 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
    12367 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
    12368   echo $ECHO_N "(cached) $ECHO_C" >&6
    12369 else
    12370   ac_check_lib_save_LIBS=$LIBS
    12371 LIBS="-lsvld  $LIBS"
    12372 cat >conftest.$ac_ext <<_ACEOF
    12373 /* confdefs.h.  */
    12374 _ACEOF
    12375 cat confdefs.h >>conftest.$ac_ext
    12376 cat >>conftest.$ac_ext <<_ACEOF
    12377 /* end confdefs.h.  */
    12378 
    12379 /* Override any gcc2 internal prototype to avoid an error.  */
    12380 #ifdef __cplusplus
    12381 extern "C"
    12382 #endif
    12383 /* We use char because int might match the return type of a gcc2
    12384    builtin and then its argument prototype would still apply.  */
    12385 char dlopen ();
    12386 int
    12387 main ()
    12388 {
    12389 dlopen ();
    12390   ;
    12391   return 0;
    12392 }
    12393 _ACEOF
    12394 rm -f conftest.$ac_objext conftest$ac_exeext
    12395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    12396   (eval $ac_link) 2>conftest.er1
    12397   ac_status=$?
    12398   grep -v '^ *+' conftest.er1 >conftest.err
    12399   rm -f conftest.er1
    12400   cat conftest.err >&5
    12401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    12402   (exit $ac_status); } &&
    12403          { ac_try='test -z "$ac_cxx_werror_flag"
    12404                          || test ! -s conftest.err'
    12405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    12406   (eval $ac_try) 2>&5
    12407   ac_status=$?
    12408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    12409   (exit $ac_status); }; } &&
    12410          { ac_try='test -s conftest$ac_exeext'
    12411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    12412   (eval $ac_try) 2>&5
    12413   ac_status=$?
    12414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    12415   (exit $ac_status); }; }; then
    12416   ac_cv_lib_svld_dlopen=yes
    12417 else
    12418   echo "$as_me: failed program was:" >&5
    12419 sed 's/^/| /' conftest.$ac_ext >&5
    12420 
    12421 ac_cv_lib_svld_dlopen=no
    12422 fi
    12423 rm -f conftest.err conftest.$ac_objext \
    12424       conftest$ac_exeext conftest.$ac_ext
    12425 LIBS=$ac_check_lib_save_LIBS
    12426 fi
    12427 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
    12428 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
    12429 if test $ac_cv_lib_svld_dlopen = yes; then
    12430   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
    12431 else
    12432   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
    12433 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
    12434 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
    12435   echo $ECHO_N "(cached) $ECHO_C" >&6
    12436 else
    12437   ac_check_lib_save_LIBS=$LIBS
    12438 LIBS="-ldld  $LIBS"
    12439 cat >conftest.$ac_ext <<_ACEOF
    12440 /* confdefs.h.  */
    12441 _ACEOF
    12442 cat confdefs.h >>conftest.$ac_ext
    12443 cat >>conftest.$ac_ext <<_ACEOF
    12444 /* end confdefs.h.  */
    12445 
    12446 /* Override any gcc2 internal prototype to avoid an error.  */
    12447 #ifdef __cplusplus
    12448 extern "C"
    12449 #endif
    12450 /* We use char because int might match the return type of a gcc2
    12451    builtin and then its argument prototype would still apply.  */
    12452 char dld_link ();
    12453 int
    12454 main ()
    12455 {
    12456 dld_link ();
    12457   ;
    12458   return 0;
    12459 }
    12460 _ACEOF
    12461 rm -f conftest.$ac_objext conftest$ac_exeext
    12462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    12463   (eval $ac_link) 2>conftest.er1
    12464   ac_status=$?
    12465   grep -v '^ *+' conftest.er1 >conftest.err
    12466   rm -f conftest.er1
    12467   cat conftest.err >&5
    12468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    12469   (exit $ac_status); } &&
    12470          { ac_try='test -z "$ac_cxx_werror_flag"
    12471                          || test ! -s conftest.err'
    12472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    12473   (eval $ac_try) 2>&5
    12474   ac_status=$?
    12475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    12476   (exit $ac_status); }; } &&
    12477          { ac_try='test -s conftest$ac_exeext'
    12478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    12479   (eval $ac_try) 2>&5
    12480   ac_status=$?
    12481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    12482   (exit $ac_status); }; }; then
    12483   ac_cv_lib_dld_dld_link=yes
    12484 else
    12485   echo "$as_me: failed program was:" >&5
    12486 sed 's/^/| /' conftest.$ac_ext >&5
    12487 
    12488 ac_cv_lib_dld_dld_link=no
    12489 fi
    12490 rm -f conftest.err conftest.$ac_objext \
    12491       conftest$ac_exeext conftest.$ac_ext
    12492 LIBS=$ac_check_lib_save_LIBS
    12493 fi
    12494 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
    12495 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
    12496 if test $ac_cv_lib_dld_dld_link = yes; then
    12497   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
    12498 fi
    12499 
    12500 
    12501 fi
    12502 
    12503 
    12504 fi
    12505 
    12506 
    12507 fi
    12508 
    12509 
    12510 fi
    12511 
    12512 
    12513 fi
    12514 
    12515     ;;
    12516   esac
    12517 
    12518   if test "x$lt_cv_dlopen" != xno; then
    12519     enable_dlopen=yes
    12520   else
    12521     enable_dlopen=no
    12522   fi
    12523 
    12524   case $lt_cv_dlopen in
    12525   dlopen)
    12526     save_CPPFLAGS="$CPPFLAGS"
    12527     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
    12528 
    12529     save_LDFLAGS="$LDFLAGS"
    12530     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
    12531 
    12532     save_LIBS="$LIBS"
    12533     LIBS="$lt_cv_dlopen_libs $LIBS"
    12534 
    12535     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
    12536 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
    12537 if test "${lt_cv_dlopen_self+set}" = set; then
    12538   echo $ECHO_N "(cached) $ECHO_C" >&6
    12539 else
    12540           if test "$cross_compiling" = yes; then :
    12541   lt_cv_dlopen_self=cross
    12542 else
    12543   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
    12544   lt_status=$lt_dlunknown
    12545   cat > conftest.$ac_ext <<EOF
    12546 #line 12546 "configure"
    12547 #include "confdefs.h"
    12548 
    12549 #if HAVE_DLFCN_H
    12550 #include <dlfcn.h>
    12551 #endif
    12552 
    12553 #include <stdio.h>
    12554 
    12555 #ifdef RTLD_GLOBAL
    12556 #  define LT_DLGLOBAL           RTLD_GLOBAL
    12557 #else
    12558 #  ifdef DL_GLOBAL
    12559 #    define LT_DLGLOBAL         DL_GLOBAL
    12560 #  else
    12561 #    define LT_DLGLOBAL         0
    12562 #  endif
    12563 #endif
    12564 
    12565 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
    12566    find out it does not work in some platform. */
    12567 #ifndef LT_DLLAZY_OR_NOW
    12568 #  ifdef RTLD_LAZY
    12569 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
    12570 #  else
    12571 #    ifdef DL_LAZY
    12572 #      define LT_DLLAZY_OR_NOW          DL_LAZY
    12573 #    else
    12574 #      ifdef RTLD_NOW
    12575 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
    12576 #      else
    12577 #        ifdef DL_NOW
    12578 #          define LT_DLLAZY_OR_NOW      DL_NOW
    12579 #        else
    12580 #          define LT_DLLAZY_OR_NOW      0
    12581 #        endif
    12582 #      endif
    12583 #    endif
    12584 #  endif
    12585 #endif
    12586 
    12587 #ifdef __cplusplus
    12588 extern "C" void exit (int);
    12589 #endif
    12590 
    12591 void fnord() { int i=42;}
    12592 int main ()
    12593 {
    12594   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
    12595   int status = $lt_dlunknown;
    12596 
    12597   if (self)
    12598     {
    12599       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
    12600       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
    12601       /* dlclose (self); */
    12602     }
    12603 
    12604     exit (status);
    12605 }
    12606 EOF
    12607   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    12608   (eval $ac_link) 2>&5
    12609   ac_status=$?
    12610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    12611   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
    12612     (./conftest; exit; ) 2>/dev/null
    12613     lt_status=$?
    12614     case x$lt_status in
    12615       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
    12616       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
    12617       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
    12618     esac
    12619   else :
    12620     # compilation failed
    12621     lt_cv_dlopen_self=no
    12622   fi
    12623 fi
    12624 rm -fr conftest*
    12625 
    12626 
    12627 fi
    12628 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
    12629 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
    12630 
    12631     if test "x$lt_cv_dlopen_self" = xyes; then
    12632       LDFLAGS="$LDFLAGS $link_static_flag"
    12633       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
    12634 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
    12635 if test "${lt_cv_dlopen_self_static+set}" = set; then
    12636   echo $ECHO_N "(cached) $ECHO_C" >&6
    12637 else
    12638           if test "$cross_compiling" = yes; then :
    12639   lt_cv_dlopen_self_static=cross
    12640 else
    12641   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
    12642   lt_status=$lt_dlunknown
    12643   cat > conftest.$ac_ext <<EOF
    12644 #line 12644 "configure"
    12645 #include "confdefs.h"
    12646 
    12647 #if HAVE_DLFCN_H
    12648 #include <dlfcn.h>
    12649 #endif
    12650 
    12651 #include <stdio.h>
    12652 
    12653 #ifdef RTLD_GLOBAL
    12654 #  define LT_DLGLOBAL           RTLD_GLOBAL
    12655 #else
    12656 #  ifdef DL_GLOBAL
    12657 #    define LT_DLGLOBAL         DL_GLOBAL
    12658 #  else
    12659 #    define LT_DLGLOBAL         0
    12660 #  endif
    12661 #endif
    12662 
    12663 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
    12664    find out it does not work in some platform. */
    12665 #ifndef LT_DLLAZY_OR_NOW
    12666 #  ifdef RTLD_LAZY
    12667 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
    12668 #  else
    12669 #    ifdef DL_LAZY
    12670 #      define LT_DLLAZY_OR_NOW          DL_LAZY
    12671 #    else
    12672 #      ifdef RTLD_NOW
    12673 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
    12674 #      else
    12675 #        ifdef DL_NOW
    12676 #          define LT_DLLAZY_OR_NOW      DL_NOW
    12677 #        else
    12678 #          define LT_DLLAZY_OR_NOW      0
    12679 #        endif
    12680 #      endif
    12681 #    endif
    12682 #  endif
    12683 #endif
    12684 
    12685 #ifdef __cplusplus
    12686 extern "C" void exit (int);
    12687 #endif
    12688 
    12689 void fnord() { int i=42;}
    12690 int main ()
    12691 {
    12692   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
    12693   int status = $lt_dlunknown;
    12694 
    12695   if (self)
    12696     {
    12697       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
    12698       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
    12699       /* dlclose (self); */
    12700     }
    12701 
    12702     exit (status);
    12703 }
    12704 EOF
    12705   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    12706   (eval $ac_link) 2>&5
    12707   ac_status=$?
    12708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    12709   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
    12710     (./conftest; exit; ) 2>/dev/null
    12711     lt_status=$?
    12712     case x$lt_status in
    12713       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
    12714       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
    12715       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
    12716     esac
    12717   else :
    12718     # compilation failed
    12719     lt_cv_dlopen_self_static=no
    12720   fi
    12721 fi
    12722 rm -fr conftest*
    12723 
    12724 
    12725 fi
    12726 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
    12727 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
    12728     fi
    12729 
    12730     CPPFLAGS="$save_CPPFLAGS"
    12731     LDFLAGS="$save_LDFLAGS"
    12732     LIBS="$save_LIBS"
    12733     ;;
    12734   esac
    12735 
    12736   case $lt_cv_dlopen_self in
    12737   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
    12738   *) enable_dlopen_self=unknown ;;
    12739   esac
    12740 
    12741   case $lt_cv_dlopen_self_static in
    12742   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
    12743   *) enable_dlopen_self_static=unknown ;;
    12744   esac
    12745 fi
    12746 
    12747 
    12748 # The else clause should only fire when bootstrapping the
    12749 # libtool distribution, otherwise you forgot to ship ltmain.sh
    12750 # with your package, and you will get complaints that there are
    12751 # no rules to generate ltmain.sh.
    12752 if test -f "$ltmain"; then
    12753   # See if we are running on zsh, and set the options which allow our commands through
    12754   # without removal of \ escapes.
    12755   if test -n "${ZSH_VERSION+set}" ; then
    12756     setopt NO_GLOB_SUBST
    12757   fi
    12758   # Now quote all the things that may contain metacharacters while being
    12759   # careful not to overquote the AC_SUBSTed values.  We take copies of the
    12760   # variables and quote the copies for generation of the libtool script.
    12761   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
    12762     SED SHELL STRIP \
    12763     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
    12764     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
    12765     deplibs_check_method reload_flag reload_cmds need_locks \
    12766     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
    12767     lt_cv_sys_global_symbol_to_c_name_address \
    12768     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
    12769     old_postinstall_cmds old_postuninstall_cmds \
    12770     compiler_CXX \
    12771     CC_CXX \
    12772     LD_CXX \
    12773     lt_prog_compiler_wl_CXX \
    12774     lt_prog_compiler_pic_CXX \
    12775     lt_prog_compiler_static_CXX \
    12776     lt_prog_compiler_no_builtin_flag_CXX \
    12777     export_dynamic_flag_spec_CXX \
    12778     thread_safe_flag_spec_CXX \
    12779     whole_archive_flag_spec_CXX \
    12780     enable_shared_with_static_runtimes_CXX \
    12781     old_archive_cmds_CXX \
    12782     old_archive_from_new_cmds_CXX \
    12783     predep_objects_CXX \
    12784     postdep_objects_CXX \
    12785     predeps_CXX \
    12786     postdeps_CXX \
    12787     compiler_lib_search_path_CXX \
    12788     archive_cmds_CXX \
    12789     archive_expsym_cmds_CXX \
    12790     postinstall_cmds_CXX \
    12791     postuninstall_cmds_CXX \
    12792     old_archive_from_expsyms_cmds_CXX \
    12793     allow_undefined_flag_CXX \
    12794     no_undefined_flag_CXX \
    12795     export_symbols_cmds_CXX \
    12796     hardcode_libdir_flag_spec_CXX \
    12797     hardcode_libdir_flag_spec_ld_CXX \
    12798     hardcode_libdir_separator_CXX \
    12799     hardcode_automatic_CXX \
    12800     module_cmds_CXX \
    12801     module_expsym_cmds_CXX \
    12802     lt_cv_prog_compiler_c_o_CXX \
    12803     exclude_expsyms_CXX \
    12804     include_expsyms_CXX; do
    12805 
    12806     case $var in
    12807     old_archive_cmds_CXX | \
    12808     old_archive_from_new_cmds_CXX | \
    12809     archive_cmds_CXX | \
    12810     archive_expsym_cmds_CXX | \
    12811     module_cmds_CXX | \
    12812     module_expsym_cmds_CXX | \
    12813     old_archive_from_expsyms_cmds_CXX | \
    12814     export_symbols_cmds_CXX | \
    12815     extract_expsyms_cmds | reload_cmds | finish_cmds | \
    12816     postinstall_cmds | postuninstall_cmds | \
    12817     old_postinstall_cmds | old_postuninstall_cmds | \
    12818     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
    12819       # Double-quote double-evaled strings.
    12820       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
    12821       ;;
    12822     *)
    12823       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
    12824       ;;
    12825     esac
    12826   done
    12827 
    12828   case $lt_echo in
    12829   *'\$0 --fallback-echo"')
    12830     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
    12831     ;;
    12832   esac
    12833 
    12834 cfgfile="$ofile"
    12835 
    12836   cat <<__EOF__ >> "$cfgfile"
    12837 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
    12838 
    12839 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
    12840 
    12841 # Shell to use when invoking shell scripts.
    12842 SHELL=$lt_SHELL
    12843 
    12844 # Whether or not to build shared libraries.
    12845 build_libtool_libs=$enable_shared
    12846 
    12847 # Whether or not to build static libraries.
    12848 build_old_libs=$enable_static
    12849 
    12850 # Whether or not to add -lc for building shared libraries.
    12851 build_libtool_need_lc=$archive_cmds_need_lc_CXX
    12852 
    12853 # Whether or not to disallow shared libs when runtime libs are static
    12854 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
    12855 
    12856 # Whether or not to optimize for fast installation.
    12857 fast_install=$enable_fast_install
    12858 
    12859 # The host system.
    12860 host_alias=$host_alias
    12861 host=$host
    12862 
    12863 # An echo program that does not interpret backslashes.
    12864 echo=$lt_echo
    12865 
    12866 # The archiver.
    12867 AR=$lt_AR
    12868 AR_FLAGS=$lt_AR_FLAGS
    12869 
    12870 # A C compiler.
    12871 LTCC=$lt_LTCC
    12872 
    12873 # A language-specific compiler.
    12874 CC=$lt_compiler_CXX
    12875 
    12876 # Is the compiler the GNU C compiler?
    12877 with_gcc=$GCC_CXX
    12878 
    12879 # An ERE matcher.
    12880 EGREP=$lt_EGREP
    12881 
    12882 # The linker used to build libraries.
    12883 LD=$lt_LD_CXX
    12884 
    12885 # Whether we need hard or soft links.
    12886 LN_S=$lt_LN_S
    12887 
    12888 # A BSD-compatible nm program.
    12889 NM=$lt_NM
    12890 
    12891 # A symbol stripping program
    12892 STRIP=$lt_STRIP
    12893 
    12894 # Used to examine libraries when file_magic_cmd begins "file"
    12895 MAGIC_CMD=$MAGIC_CMD
    12896 
    12897 # Used on cygwin: DLL creation program.
    12898 DLLTOOL="$DLLTOOL"
    12899 
    12900 # Used on cygwin: object dumper.
    12901 OBJDUMP="$OBJDUMP"
    12902 
    12903 # Used on cygwin: assembler.
    12904 AS="$AS"
    12905 
    12906 # The name of the directory that contains temporary libtool files.
    12907 objdir=$objdir
    12908 
    12909 # How to create reloadable object files.
    12910 reload_flag=$lt_reload_flag
    12911 reload_cmds=$lt_reload_cmds
    12912 
    12913 # How to pass a linker flag through the compiler.
    12914 wl=$lt_lt_prog_compiler_wl_CXX
    12915 
    12916 # Object file suffix (normally "o").
    12917 objext="$ac_objext"
    12918 
    12919 # Old archive suffix (normally "a").
    12920 libext="$libext"
    12921 
    12922 # Shared library suffix (normally ".so").
    12923 shrext_cmds='$shrext_cmds'
    12924 
    12925 # Executable file suffix (normally "").
    12926 exeext="$exeext"
    12927 
    12928 # Additional compiler flags for building library objects.
    12929 pic_flag=$lt_lt_prog_compiler_pic_CXX
    12930 pic_mode=$pic_mode
    12931 
    12932 # What is the maximum length of a command?
    12933 max_cmd_len=$lt_cv_sys_max_cmd_len
    12934 
    12935 # Does compiler simultaneously support -c and -o options?
    12936 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
    12937 
    12938 # Must we lock files when doing compilation ?
    12939 need_locks=$lt_need_locks
    12940 
    12941 # Do we need the lib prefix for modules?
    12942 need_lib_prefix=$need_lib_prefix
    12943 
    12944 # Do we need a version for libraries?
    12945 need_version=$need_version
    12946 
    12947 # Whether dlopen is supported.
    12948 dlopen_support=$enable_dlopen
    12949 
    12950 # Whether dlopen of programs is supported.
    12951 dlopen_self=$enable_dlopen_self
    12952 
    12953 # Whether dlopen of statically linked programs is supported.
    12954 dlopen_self_static=$enable_dlopen_self_static
    12955 
    12956 # Compiler flag to prevent dynamic linking.
    12957 link_static_flag=$lt_lt_prog_compiler_static_CXX
    12958 
    12959 # Compiler flag to turn off builtin functions.
    12960 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
    12961 
    12962 # Compiler flag to allow reflexive dlopens.
    12963 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
    12964 
    12965 # Compiler flag to generate shared objects directly from archives.
    12966 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
    12967 
    12968 # Compiler flag to generate thread-safe objects.
    12969 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
    12970 
    12971 # Library versioning type.
    12972 version_type=$version_type
    12973 
    12974 # Format of library name prefix.
    12975 libname_spec=$lt_libname_spec
    12976 
    12977 # List of archive names.  First name is the real one, the rest are links.
    12978 # The last name is the one that the linker finds with -lNAME.
    12979 library_names_spec=$lt_library_names_spec
    12980 
    12981 # The coded name of the library, if different from the real name.
    12982 soname_spec=$lt_soname_spec
    12983 
    12984 # Commands used to build and install an old-style archive.
    12985 RANLIB=$lt_RANLIB
    12986 old_archive_cmds=$lt_old_archive_cmds_CXX
    12987 old_postinstall_cmds=$lt_old_postinstall_cmds
    12988 old_postuninstall_cmds=$lt_old_postuninstall_cmds
    12989 
    12990 # Create an old-style archive from a shared archive.
    12991 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
    12992 
    12993 # Create a temporary old-style archive to link instead of a shared archive.
    12994 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
    12995 
    12996 # Commands used to build and install a shared archive.
    12997 archive_cmds=$lt_archive_cmds_CXX
    12998 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
    12999 postinstall_cmds=$lt_postinstall_cmds
    13000 postuninstall_cmds=$lt_postuninstall_cmds
    13001 
    13002 # Commands used to build a loadable module (assumed same as above if empty)
    13003 module_cmds=$lt_module_cmds_CXX
    13004 module_expsym_cmds=$lt_module_expsym_cmds_CXX
    13005 
    13006 # Commands to strip libraries.
    13007 old_striplib=$lt_old_striplib
    13008 striplib=$lt_striplib
    13009 
    13010 # Dependencies to place before the objects being linked to create a
    13011 # shared library.
    13012 predep_objects=$lt_predep_objects_CXX
    13013 
    13014 # Dependencies to place after the objects being linked to create a
    13015 # shared library.
    13016 postdep_objects=$lt_postdep_objects_CXX
    13017 
    13018 # Dependencies to place before the objects being linked to create a
    13019 # shared library.
    13020 predeps=$lt_predeps_CXX
    13021 
    13022 # Dependencies to place after the objects being linked to create a
    13023 # shared library.
    13024 postdeps=$lt_postdeps_CXX
    13025 
    13026 # The library search path used internally by the compiler when linking
    13027 # a shared library.
    13028 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
    13029 
    13030 # Method to check whether dependent libraries are shared objects.
    13031 deplibs_check_method=$lt_deplibs_check_method
    13032 
    13033 # Command to use when deplibs_check_method == file_magic.
    13034 file_magic_cmd=$lt_file_magic_cmd
    13035 
    13036 # Flag that allows shared libraries with undefined symbols to be built.
    13037 allow_undefined_flag=$lt_allow_undefined_flag_CXX
    13038 
    13039 # Flag that forces no undefined symbols.
    13040 no_undefined_flag=$lt_no_undefined_flag_CXX
    13041 
    13042 # Commands used to finish a libtool library installation in a directory.
    13043 finish_cmds=$lt_finish_cmds
    13044 
    13045 # Same as above, but a single script fragment to be evaled but not shown.
    13046 finish_eval=$lt_finish_eval
    13047 
    13048 # Take the output of nm and produce a listing of raw symbols and C names.
    13049 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
    13050 
    13051 # Transform the output of nm in a proper C declaration
    13052 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
    13053 
    13054 # Transform the output of nm in a C name address pair
    13055 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
    13056 
    13057 # This is the shared library runtime path variable.
    13058 runpath_var=$runpath_var
    13059 
    13060 # This is the shared library path variable.
    13061 shlibpath_var=$shlibpath_var
    13062 
    13063 # Is shlibpath searched before the hard-coded library search path?
    13064 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
    13065 
    13066 # How to hardcode a shared library path into an executable.
    13067 hardcode_action=$hardcode_action_CXX
    13068 
    13069 # Whether we should hardcode library paths into libraries.
    13070 hardcode_into_libs=$hardcode_into_libs
    13071 
    13072 # Flag to hardcode \$libdir into a binary during linking.
    13073 # This must work even if \$libdir does not exist.
    13074 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
    13075 
    13076 # If ld is used when linking, flag to hardcode \$libdir into
    13077 # a binary during linking. This must work even if \$libdir does
    13078 # not exist.
    13079 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
    13080 
    13081 # Whether we need a single -rpath flag with a separated argument.
    13082 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
    13083 
    13084 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
    13085 # resulting binary.
    13086 hardcode_direct=$hardcode_direct_CXX
    13087 
    13088 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
    13089 # resulting binary.
    13090 hardcode_minus_L=$hardcode_minus_L_CXX
    13091 
    13092 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
    13093 # the resulting binary.
    13094 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
    13095 
    13096 # Set to yes if building a shared library automatically hardcodes DIR into the library
    13097 # and all subsequent libraries and executables linked against it.
    13098 hardcode_automatic=$hardcode_automatic_CXX
    13099 
    13100 # Variables whose values should be saved in libtool wrapper scripts and
    13101 # restored at relink time.
    13102 variables_saved_for_relink="$variables_saved_for_relink"
    13103 
    13104 # Whether libtool must link a program against all its dependency libraries.
    13105 link_all_deplibs=$link_all_deplibs_CXX
    13106 
    13107 # Compile-time system search path for libraries
    13108 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
    13109 
    13110 # Run-time system search path for libraries
    13111 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
    13112 
    13113 # Fix the shell variable \$srcfile for the compiler.
    13114 fix_srcfile_path="$fix_srcfile_path_CXX"
    13115 
    13116 # Set to yes if exported symbols are required.
    13117 always_export_symbols=$always_export_symbols_CXX
    13118 
    13119 # The commands to list exported symbols.
    13120 export_symbols_cmds=$lt_export_symbols_cmds_CXX
    13121 
    13122 # The commands to extract the exported symbol list from a shared archive.
    13123 extract_expsyms_cmds=$lt_extract_expsyms_cmds
    13124 
    13125 # Symbols that should not be listed in the preloaded symbols.
    13126 exclude_expsyms=$lt_exclude_expsyms_CXX
    13127 
    13128 # Symbols that must always be exported.
    13129 include_expsyms=$lt_include_expsyms_CXX
    13130 
    13131 # ### END LIBTOOL TAG CONFIG: $tagname
    13132 
    13133 __EOF__
    13134 
    13135 
    13136 else
    13137   # If there is no Makefile yet, we rely on a make rule to execute
    13138   # `config.status --recheck' to rerun these tests and create the
    13139   # libtool script then.
    13140   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
    13141   if test -f "$ltmain_in"; then
    13142     test -f Makefile && make "$ltmain"
    13143   fi
    13144 fi
    13145 
    13146 
    13147 ac_ext=c
    13148 ac_cpp='$CPP $CPPFLAGS'
    13149 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    13150 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    13151 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    13152 
    13153 CC=$lt_save_CC
    13154 LDCXX=$LD
    13155 LD=$lt_save_LD
    13156 GCC=$lt_save_GCC
    13157 with_gnu_ldcxx=$with_gnu_ld
    13158 with_gnu_ld=$lt_save_with_gnu_ld
    13159 lt_cv_path_LDCXX=$lt_cv_path_LD
    13160 lt_cv_path_LD=$lt_save_path_LD
    13161 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
    13162 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
    13163 
    13164         else
    13165           tagname=""
    13166         fi
    13167         ;;
    13168 
    13169       F77)
    13170         if test -n "$F77" && test "X$F77" != "Xno"; then
    13171 
    13172 ac_ext=f
    13173 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
    13174 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    13175 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
    13176 
    13177 
    13178 archive_cmds_need_lc_F77=no
    13179 allow_undefined_flag_F77=
    13180 always_export_symbols_F77=no
    13181 archive_expsym_cmds_F77=
    13182 export_dynamic_flag_spec_F77=
    13183 hardcode_direct_F77=no
    13184 hardcode_libdir_flag_spec_F77=
    13185 hardcode_libdir_flag_spec_ld_F77=
    13186 hardcode_libdir_separator_F77=
    13187 hardcode_minus_L_F77=no
    13188 hardcode_automatic_F77=no
    13189 module_cmds_F77=
    13190 module_expsym_cmds_F77=
    13191 link_all_deplibs_F77=unknown
    13192 old_archive_cmds_F77=$old_archive_cmds
    13193 no_undefined_flag_F77=
    13194 whole_archive_flag_spec_F77=
    13195 enable_shared_with_static_runtimes_F77=no
    13196 
    13197 # Source file extension for f77 test sources.
    13198 ac_ext=f
    13199 
    13200 # Object file extension for compiled f77 test sources.
    13201 objext=o
    13202 objext_F77=$objext
    13203 
    13204 # Code to be used in simple compile tests
    13205 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
    13206 
    13207 # Code to be used in simple link tests
    13208 lt_simple_link_test_code="      program t\n      end\n"
    13209 
    13210 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
    13211 
    13212 # If no C compiler was specified, use CC.
    13213 LTCC=${LTCC-"$CC"}
    13214 
    13215 # Allow CC to be a program name with arguments.
    13216 compiler=$CC
    13217 
    13218 
    13219 # Allow CC to be a program name with arguments.
    13220 lt_save_CC="$CC"
    13221 CC=${F77-"f77"}
    13222 compiler=$CC
    13223 compiler_F77=$CC
    13224 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
    13225 
    13226 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
    13227 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
    13228 echo "$as_me:$LINENO: result: $can_build_shared" >&5
    13229 echo "${ECHO_T}$can_build_shared" >&6
    13230 
    13231 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
    13232 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
    13233 test "$can_build_shared" = "no" && enable_shared=no
    13234 
    13235 # On AIX, shared libraries and static libraries use the same namespace, and
    13236 # are all built from PIC.
    13237 case "$host_os" in
    13238 aix3*)
    13239   test "$enable_shared" = yes && enable_static=no
    13240   if test -n "$RANLIB"; then
    13241     archive_cmds="$archive_cmds~\$RANLIB \$lib"
    13242     postinstall_cmds='$RANLIB $lib'
    13243   fi
    13244   ;;
    13245 aix4* | aix5*)
    13246   test "$enable_shared" = yes && enable_static=no
    13247   ;;
    13248 esac
    13249 echo "$as_me:$LINENO: result: $enable_shared" >&5
    13250 echo "${ECHO_T}$enable_shared" >&6
    13251 
    13252 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
    13253 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
    13254 # Make sure either enable_shared or enable_static is yes.
    13255 test "$enable_shared" = yes || enable_static=yes
    13256 echo "$as_me:$LINENO: result: $enable_static" >&5
    13257 echo "${ECHO_T}$enable_static" >&6
    13258 
    13259 test "$ld_shlibs_F77" = no && can_build_shared=no
    13260 
    13261 GCC_F77="$G77"
    13262 LD_F77="$LD"
    13263 
    13264 lt_prog_compiler_wl_F77=
    13265 lt_prog_compiler_pic_F77=
    13266 lt_prog_compiler_static_F77=
    13267 
    13268 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
    13269 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
    13270 
    13271   if test "$GCC" = yes; then
    13272     lt_prog_compiler_wl_F77='-Wl,'
    13273     lt_prog_compiler_static_F77='-static'
    13274 
    13275     case $host_os in
    13276       aix*)
    13277       # All AIX code is PIC.
    13278       if test "$host_cpu" = ia64; then
    13279         # AIX 5 now supports IA64 processor
    13280         lt_prog_compiler_static_F77='-Bstatic'
    13281       fi
    13282       ;;
    13283 
    13284     amigaos*)
    13285       # FIXME: we need at least 68020 code to build shared libraries, but
    13286       # adding the `-m68020' flag to GCC prevents building anything better,
    13287       # like `-m68040'.
    13288       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
    13289       ;;
    13290 
    13291     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
    13292       # PIC is the default for these OSes.
    13293       ;;
    13294 
    13295     mingw* | pw32* | os2*)
    13296       # This hack is so that the source file can tell whether it is being
    13297       # built for inclusion in a dll (and should export symbols for example).
    13298       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
    13299       ;;
    13300 
    13301     darwin* | rhapsody*)
    13302       # PIC is the default on this platform
    13303       # Common symbols not allowed in MH_DYLIB files
    13304       lt_prog_compiler_pic_F77='-fno-common'
    13305       ;;
    13306 
    13307     msdosdjgpp*)
    13308       # Just because we use GCC doesn't mean we suddenly get shared libraries
    13309       # on systems that don't support them.
    13310       lt_prog_compiler_can_build_shared_F77=no
    13311       enable_shared=no
    13312       ;;
    13313 
    13314     sysv4*MP*)
    13315       if test -d /usr/nec; then
    13316         lt_prog_compiler_pic_F77=-Kconform_pic
    13317       fi
    13318       ;;
    13319 
    13320     hpux*)
    13321       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
    13322       # not for PA HP-UX.
    13323       case "$host_cpu" in
    13324       hppa*64*|ia64*)
    13325         # +Z the default
    13326         ;;
    13327       *)
    13328         lt_prog_compiler_pic_F77='-fPIC'
    13329         ;;
    13330       esac
    13331       ;;
    13332 
    13333     *)
    13334       lt_prog_compiler_pic_F77='-fPIC'
    13335       ;;
    13336     esac
    13337   else
    13338     # PORTME Check for flag to pass linker flags through the system compiler.
    13339     case $host_os in
    13340     aix*)
    13341       lt_prog_compiler_wl_F77='-Wl,'
    13342       if test "$host_cpu" = ia64; then
    13343         # AIX 5 now supports IA64 processor
    13344         lt_prog_compiler_static_F77='-Bstatic'
    13345       else
    13346         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
    13347       fi
    13348       ;;
    13349 
    13350     mingw* | pw32* | os2*)
    13351       # This hack is so that the source file can tell whether it is being
    13352       # built for inclusion in a dll (and should export symbols for example).
    13353       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
    13354       ;;
    13355 
    13356     hpux9* | hpux10* | hpux11*)
    13357       lt_prog_compiler_wl_F77='-Wl,'
    13358       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
    13359       # not for PA HP-UX.
    13360       case "$host_cpu" in
    13361       hppa*64*|ia64*)
    13362         # +Z the default
    13363         ;;
    13364       *)
    13365         lt_prog_compiler_pic_F77='+Z'
    13366         ;;
    13367       esac
    13368       # Is there a better lt_prog_compiler_static that works with the bundled CC?
    13369       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
    13370       ;;
    13371 
    13372     irix5* | irix6* | nonstopux*)
    13373       lt_prog_compiler_wl_F77='-Wl,'
    13374       # PIC (with -KPIC) is the default.
    13375       lt_prog_compiler_static_F77='-non_shared'
    13376       ;;
    13377 
    13378     newsos6)
    13379       lt_prog_compiler_pic_F77='-KPIC'
    13380       lt_prog_compiler_static_F77='-Bstatic'
    13381       ;;
    13382 
    13383     linux*)
    13384       case $CC in
    13385       icc* | ecc*)
    13386         lt_prog_compiler_wl_F77='-Wl,'
    13387         lt_prog_compiler_pic_F77='-KPIC'
    13388         lt_prog_compiler_static_F77='-static'
    13389         ;;
    13390       ccc*)
    13391         lt_prog_compiler_wl_F77='-Wl,'
    13392         # All Alpha code is PIC.
    13393         lt_prog_compiler_static_F77='-non_shared'
    13394         ;;
    13395       esac
    13396       ;;
    13397 
    13398     osf3* | osf4* | osf5*)
    13399       lt_prog_compiler_wl_F77='-Wl,'
    13400       # All OSF/1 code is PIC.
    13401       lt_prog_compiler_static_F77='-non_shared'
    13402       ;;
    13403 
    13404     sco3.2v5*)
    13405       lt_prog_compiler_pic_F77='-Kpic'
    13406       lt_prog_compiler_static_F77='-dn'
    13407       ;;
    13408 
    13409     solaris*)
    13410       lt_prog_compiler_wl_F77='-Wl,'
    13411       lt_prog_compiler_pic_F77='-KPIC'
    13412       lt_prog_compiler_static_F77='-Bstatic'
    13413       ;;
    13414 
    13415     sunos4*)
    13416       lt_prog_compiler_wl_F77='-Qoption ld '
    13417       lt_prog_compiler_pic_F77='-PIC'
    13418       lt_prog_compiler_static_F77='-Bstatic'
    13419       ;;
    13420 
    13421     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
    13422       lt_prog_compiler_wl_F77='-Wl,'
    13423       lt_prog_compiler_pic_F77='-KPIC'
    13424       lt_prog_compiler_static_F77='-Bstatic'
    13425       ;;
    13426 
    13427     sysv4*MP*)
    13428       if test -d /usr/nec ;then
    13429         lt_prog_compiler_pic_F77='-Kconform_pic'
    13430         lt_prog_compiler_static_F77='-Bstatic'
    13431       fi
    13432       ;;
    13433 
    13434     uts4*)
    13435       lt_prog_compiler_pic_F77='-pic'
    13436       lt_prog_compiler_static_F77='-Bstatic'
    13437       ;;
    13438 
    13439     *)
    13440       lt_prog_compiler_can_build_shared_F77=no
    13441       ;;
    13442     esac
    13443   fi
    13444 
    13445 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
    13446 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
    13447 
    13448 #
    13449 # Check to make sure the PIC flag actually works.
    13450 #
    13451 if test -n "$lt_prog_compiler_pic_F77"; then
    13452 
    13453 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
    13454 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
    13455 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
    13456   echo $ECHO_N "(cached) $ECHO_C" >&6
    13457 else
    13458   lt_prog_compiler_pic_works_F77=no
    13459   ac_outfile=conftest.$ac_objext
    13460    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
    13461    lt_compiler_flag="$lt_prog_compiler_pic_F77"
    13462    # Insert the option either (1) after the last *FLAGS variable, or
    13463    # (2) before a word containing "conftest.", or (3) at the end.
    13464    # Note that $ac_compile itself does not contain backslashes and begins
    13465    # with a dollar sign (not a hyphen), so the echo should work correctly.
    13466    # The option is referenced via a variable to avoid confusing sed.
    13467    lt_compile=`echo "$ac_compile" | $SED \
    13468    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
    13469    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    13470    -e 's:$: $lt_compiler_flag:'`
    13471    (eval echo "\"\$as_me:13471: $lt_compile\"" >&5)
    13472    (eval "$lt_compile" 2>conftest.err)
    13473    ac_status=$?
    13474    cat conftest.err >&5
    13475    echo "$as_me:13475: \$? = $ac_status" >&5
    13476    if (exit $ac_status) && test -s "$ac_outfile"; then
    13477      # The compiler can only warn and ignore the option if not recognized
    13478      # So say no if there are warnings
    13479      if test ! -s conftest.err; then
    13480        lt_prog_compiler_pic_works_F77=yes
    13481      fi
    13482    fi
    13483    $rm conftest*
    13484 
    13485 fi
    13486 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
    13487 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
    13488 
    13489 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
    13490     case $lt_prog_compiler_pic_F77 in
    13491      "" | " "*) ;;
    13492      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
    13493      esac
    13494 else
    13495     lt_prog_compiler_pic_F77=
    13496      lt_prog_compiler_can_build_shared_F77=no
    13497 fi
    13498 
    13499 fi
    13500 case "$host_os" in
    13501   # For platforms which do not support PIC, -DPIC is meaningless:
    13502   *djgpp*)
    13503     lt_prog_compiler_pic_F77=
    13504     ;;
    13505   *)
    13506     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
    13507     ;;
    13508 esac
    13509 
    13510 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
    13511 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
    13512 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
    13513   echo $ECHO_N "(cached) $ECHO_C" >&6
    13514 else
    13515   lt_cv_prog_compiler_c_o_F77=no
    13516    $rm -r conftest 2>/dev/null
    13517    mkdir conftest
    13518    cd conftest
    13519    mkdir out
    13520    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
    13521 
    13522    lt_compiler_flag="-o out/conftest2.$ac_objext"
    13523    # Insert the option either (1) after the last *FLAGS variable, or
    13524    # (2) before a word containing "conftest.", or (3) at the end.
    13525    # Note that $ac_compile itself does not contain backslashes and begins
    13526    # with a dollar sign (not a hyphen), so the echo should work correctly.
    13527    lt_compile=`echo "$ac_compile" | $SED \
    13528    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
    13529    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    13530    -e 's:$: $lt_compiler_flag:'`
    13531    (eval echo "\"\$as_me:13531: $lt_compile\"" >&5)
    13532    (eval "$lt_compile" 2>out/conftest.err)
    13533    ac_status=$?
    13534    cat out/conftest.err >&5
    13535    echo "$as_me:13535: \$? = $ac_status" >&5
    13536    if (exit $ac_status) && test -s out/conftest2.$ac_objext
    13537    then
    13538      # The compiler can only warn and ignore the option if not recognized
    13539      # So say no if there are warnings
    13540      if test ! -s out/conftest.err; then
    13541        lt_cv_prog_compiler_c_o_F77=yes
    13542      fi
    13543    fi
    13544    chmod u+w .
    13545    $rm conftest*
    13546    # SGI C++ compiler will create directory out/ii_files/ for
    13547    # template instantiation
    13548    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
    13549    $rm out/* && rmdir out
    13550    cd ..
    13551    rmdir conftest
    13552    $rm conftest*
    13553 
    13554 fi
    13555 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
    13556 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
    13557 
    13558 
    13559 hard_links="nottested"
    13560 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
    13561   # do not overwrite the value of need_locks provided by the user
    13562   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
    13563 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
    13564   hard_links=yes
    13565   $rm conftest*
    13566   ln conftest.a conftest.b 2>/dev/null && hard_links=no
    13567   touch conftest.a
    13568   ln conftest.a conftest.b 2>&5 || hard_links=no
    13569   ln conftest.a conftest.b 2>/dev/null && hard_links=no
    13570   echo "$as_me:$LINENO: result: $hard_links" >&5
    13571 echo "${ECHO_T}$hard_links" >&6
    13572   if test "$hard_links" = no; then
    13573     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
    13574 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
    13575     need_locks=warn
    13576   fi
    13577 else
    13578   need_locks=no
    13579 fi
    13580 
    13581 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
    13582 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
    13583 
    13584   runpath_var=
    13585   allow_undefined_flag_F77=
    13586   enable_shared_with_static_runtimes_F77=no
    13587   archive_cmds_F77=
    13588   archive_expsym_cmds_F77=
    13589   old_archive_From_new_cmds_F77=
    13590   old_archive_from_expsyms_cmds_F77=
    13591   export_dynamic_flag_spec_F77=
    13592   whole_archive_flag_spec_F77=
    13593   thread_safe_flag_spec_F77=
    13594   hardcode_libdir_flag_spec_F77=
    13595   hardcode_libdir_flag_spec_ld_F77=
    13596   hardcode_libdir_separator_F77=
    13597   hardcode_direct_F77=no
    13598   hardcode_minus_L_F77=no
    13599   hardcode_shlibpath_var_F77=unsupported
    13600   link_all_deplibs_F77=unknown
    13601   hardcode_automatic_F77=no
    13602   module_cmds_F77=
    13603   module_expsym_cmds_F77=
    13604   always_export_symbols_F77=no
    13605   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
    13606   # include_expsyms should be a list of space-separated symbols to be *always*
    13607   # included in the symbol list
    13608   include_expsyms_F77=
    13609   # exclude_expsyms can be an extended regexp of symbols to exclude
    13610   # it will be wrapped by ` (' and `)$', so one must not match beginning or
    13611   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
    13612   # as well as any symbol that contains `d'.
    13613   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
    13614   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
    13615   # platforms (ab)use it in PIC code, but their linkers get confused if
    13616   # the symbol is explicitly referenced.  Since portable code cannot
    13617   # rely on this symbol name, it's probably fine to never include it in
    13618   # preloaded symbol tables.
    13619   extract_expsyms_cmds=
    13620 
    13621   case $host_os in
    13622   cygwin* | mingw* | pw32*)
    13623     # FIXME: the MSVC++ port hasn't been tested in a loooong time
    13624     # When not using gcc, we currently assume that we are using
    13625     # Microsoft Visual C++.
    13626     if test "$GCC" != yes; then
    13627       with_gnu_ld=no
    13628     fi
    13629     ;;
    13630   openbsd*)
    13631     with_gnu_ld=no
    13632     ;;
    13633   esac
    13634 
    13635   ld_shlibs_F77=yes
    13636   if test "$with_gnu_ld" = yes; then
    13637     # If archive_cmds runs LD, not CC, wlarc should be empty
    13638     wlarc='${wl}'
    13639 
    13640     # See if GNU ld supports shared libraries.
    13641     case $host_os in
    13642     aix3* | aix4* | aix5*)
    13643       # On AIX/PPC, the GNU linker is very broken
    13644       if test "$host_cpu" != ia64; then
    13645         ld_shlibs_F77=no
    13646         cat <<EOF 1>&2
    13647 
    13648 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
    13649 *** to be unable to reliably create shared libraries on AIX.
    13650 *** Therefore, libtool is disabling shared libraries support.  If you
    13651 *** really care for shared libraries, you may want to modify your PATH
    13652 *** so that a non-GNU linker is found, and then restart.
    13653 
    13654 EOF
    13655       fi
    13656       ;;
    13657 
    13658     amigaos*)
    13659       archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
    13660       hardcode_libdir_flag_spec_F77='-L$libdir'
    13661       hardcode_minus_L_F77=yes
    13662 
    13663       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
    13664       # that the semantics of dynamic libraries on AmigaOS, at least up
    13665       # to version 4, is to share data among multiple programs linked
    13666       # with the same dynamic library.  Since this doesn't match the
    13667       # behavior of shared libraries on other platforms, we can't use
    13668       # them.
    13669       ld_shlibs_F77=no
    13670       ;;
    13671 
    13672     beos*)
    13673       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
    13674         allow_undefined_flag_F77=unsupported
    13675         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
    13676         # support --undefined.  This deserves some investigation.  FIXME
    13677         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
    13678       else
    13679         ld_shlibs_F77=no
    13680       fi
    13681       ;;
    13682 
    13683     cygwin* | mingw* | pw32*)
    13684       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
    13685       # as there is no search path for DLLs.
    13686       hardcode_libdir_flag_spec_F77='-L$libdir'
    13687       allow_undefined_flag_F77=unsupported
    13688       always_export_symbols_F77=no
    13689       enable_shared_with_static_runtimes_F77=yes
    13690       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
    13691 
    13692       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
    13693         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
    13694         # If the export-symbols file already is a .def file (1st line
    13695         # is EXPORTS), use it as is; otherwise, prepend...
    13696         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
    13697           cp $export_symbols $output_objdir/$soname.def;
    13698         else
    13699           echo EXPORTS > $output_objdir/$soname.def;
    13700           cat $export_symbols >> $output_objdir/$soname.def;
    13701         fi~
    13702         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
    13703       else
    13704         ld_shlibs=no
    13705       fi
    13706       ;;
    13707 
    13708     netbsd*)
    13709       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
    13710         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
    13711         wlarc=
    13712       else
    13713         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
    13714         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
    13715       fi
    13716       ;;
    13717 
    13718     solaris* | sysv5*)
    13719       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
    13720         ld_shlibs_F77=no
    13721         cat <<EOF 1>&2
    13722 
    13723 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
    13724 *** create shared libraries on Solaris systems.  Therefore, libtool
    13725 *** is disabling shared libraries support.  We urge you to upgrade GNU
    13726 *** binutils to release 2.9.1 or newer.  Another option is to modify
    13727 *** your PATH or compiler configuration so that the native linker is
    13728 *** used, and then restart.
    13729 
    13730 EOF
    13731       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
    13732         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
    13733         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
    13734       else
    13735         ld_shlibs_F77=no
    13736       fi
    13737       ;;
    13738 
    13739     sunos4*)
    13740       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
    13741       wlarc=
    13742       hardcode_direct_F77=yes
    13743       hardcode_shlibpath_var_F77=no
    13744       ;;
    13745 
    13746   linux*)
    13747     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
    13748         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
    13749         archive_cmds_F77="$tmp_archive_cmds"
    13750       supports_anon_versioning=no
    13751       case `$LD -v 2>/dev/null` in
    13752         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
    13753         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
    13754         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
    13755         *\ 2.11.*) ;; # other 2.11 versions
    13756         *) supports_anon_versioning=yes ;;
    13757       esac
    13758       if test $supports_anon_versioning = yes; then
    13759         archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
    13760 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
    13761 $echo "local: *; };" >> $output_objdir/$libname.ver~
    13762         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
    13763       else
    13764         archive_expsym_cmds_F77="$tmp_archive_cmds"
    13765       fi
    13766     else
    13767       ld_shlibs_F77=no
    13768     fi
    13769     ;;
    13770 
    13771     *)
    13772       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
    13773         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
    13774         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
    13775       else
    13776         ld_shlibs_F77=no
    13777       fi
    13778       ;;
    13779     esac
    13780 
    13781     if test "$ld_shlibs_F77" = yes; then
    13782       runpath_var=LD_RUN_PATH
    13783       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
    13784       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
    13785       # ancient GNU ld didn't support --whole-archive et. al.
    13786       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
    13787         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
    13788       else
    13789         whole_archive_flag_spec_F77=
    13790       fi
    13791     fi
    13792   else
    13793     # PORTME fill in a description of your system's linker (not GNU ld)
    13794     case $host_os in
    13795     aix3*)
    13796       allow_undefined_flag_F77=unsupported
    13797       always_export_symbols_F77=yes
    13798       archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
    13799       # Note: this linker hardcodes the directories in LIBPATH if there
    13800       # are no directories specified by -L.
    13801       hardcode_minus_L_F77=yes
    13802       if test "$GCC" = yes && test -z "$link_static_flag"; then
    13803         # Neither direct hardcoding nor static linking is supported with a
    13804         # broken collect2.
    13805         hardcode_direct_F77=unsupported
    13806       fi
    13807       ;;
    13808 
    13809     aix4* | aix5*)
    13810       if test "$host_cpu" = ia64; then
    13811         # On IA64, the linker does run time linking by default, so we don't
    13812         # have to do anything special.
    13813         aix_use_runtimelinking=no
    13814         exp_sym_flag='-Bexport'
    13815         no_entry_flag=""
    13816       else
    13817         # If we're using GNU nm, then we don't want the "-C" option.
    13818         # -C means demangle to AIX nm, but means don't demangle with GNU nm
    13819         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
    13820           export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
    13821         else
    13822           export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
    13823         fi
    13824         aix_use_runtimelinking=no
    13825 
    13826         # Test if we are trying to use run time linking or normal
    13827         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
    13828         # need to do runtime linking.
    13829         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
    13830           for ld_flag in $LDFLAGS; do
    13831           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
    13832             aix_use_runtimelinking=yes
    13833             break
    13834           fi
    13835           done
    13836         esac
    13837 
    13838         exp_sym_flag='-bexport'
    13839         no_entry_flag='-bnoentry'
    13840       fi
    13841 
    13842       # When large executables or shared objects are built, AIX ld can
    13843       # have problems creating the table of contents.  If linking a library
    13844       # or program results in "error TOC overflow" add -mminimal-toc to
    13845       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
    13846       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
    13847 
    13848       archive_cmds_F77=''
    13849       hardcode_direct_F77=yes
    13850       hardcode_libdir_separator_F77=':'
    13851       link_all_deplibs_F77=yes
    13852 
    13853       if test "$GCC" = yes; then
    13854         case $host_os in aix4.012|aix4.012.*)
    13855         # We only want to do this on AIX 4.2 and lower, the check
    13856         # below for broken collect2 doesn't work under 4.3+
    13857           collect2name=`${CC} -print-prog-name=collect2`
    13858           if test -f "$collect2name" && \
    13859            strings "$collect2name" | grep resolve_lib_name >/dev/null
    13860           then
    13861           # We have reworked collect2
    13862           hardcode_direct_F77=yes
    13863           else
    13864           # We have old collect2
    13865           hardcode_direct_F77=unsupported
    13866           # It fails to find uninstalled libraries when the uninstalled
    13867           # path is not listed in the libpath.  Setting hardcode_minus_L
    13868           # to unsupported forces relinking
    13869           hardcode_minus_L_F77=yes
    13870           hardcode_libdir_flag_spec_F77='-L$libdir'
    13871           hardcode_libdir_separator_F77=
    13872           fi
    13873         esac
    13874         shared_flag='-shared'
    13875       else
    13876         # not using gcc
    13877         if test "$host_cpu" = ia64; then
    13878         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
    13879         # chokes on -Wl,-G. The following line is correct:
    13880           shared_flag='-G'
    13881         else
    13882         if test "$aix_use_runtimelinking" = yes; then
    13883             shared_flag='${wl}-G'
    13884           else
    13885             shared_flag='${wl}-bM:SRE'
    13886         fi
    13887         fi
    13888       fi
    13889 
    13890       # It seems that -bexpall does not export symbols beginning with
    13891       # underscore (_), so it is better to generate a list of symbols to export.
    13892       always_export_symbols_F77=yes
    13893       if test "$aix_use_runtimelinking" = yes; then
    13894         # Warning - without using the other runtime loading flags (-brtl),
    13895         # -berok will link without error, but may produce a broken library.
    13896         allow_undefined_flag_F77='-berok'
    13897        # Determine the default libpath from the value encoded in an empty executable.
    13898        cat >conftest.$ac_ext <<_ACEOF
    13899       program main
    13900 
    13901       end
    13902 _ACEOF
    13903 rm -f conftest.$ac_objext conftest$ac_exeext
    13904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    13905   (eval $ac_link) 2>conftest.er1
    13906   ac_status=$?
    13907   grep -v '^ *+' conftest.er1 >conftest.err
    13908   rm -f conftest.er1
    13909   cat conftest.err >&5
    13910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    13911   (exit $ac_status); } &&
    13912          { ac_try='test -z "$ac_f77_werror_flag"
    13913                          || test ! -s conftest.err'
    13914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    13915   (eval $ac_try) 2>&5
    13916   ac_status=$?
    13917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    13918   (exit $ac_status); }; } &&
    13919          { ac_try='test -s conftest$ac_exeext'
    13920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    13921   (eval $ac_try) 2>&5
    13922   ac_status=$?
    13923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    13924   (exit $ac_status); }; }; then
    13925 
    13926 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
    13927 }'`
    13928 # Check for a 64-bit object if we didn't find anything.
    13929 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; }
    13930 }'`; fi
    13931 else
    13932   echo "$as_me: failed program was:" >&5
    13933 sed 's/^/| /' conftest.$ac_ext >&5
    13934 
    13935 fi
    13936 rm -f conftest.err conftest.$ac_objext \
    13937       conftest$ac_exeext conftest.$ac_ext
    13938 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
    13939 
    13940        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
    13941         archive_expsym_cmds_F77="\$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"
    13942        else
    13943         if test "$host_cpu" = ia64; then
    13944           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
    13945           allow_undefined_flag_F77="-z nodefs"
    13946           archive_expsym_cmds_F77="\$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"
    13947         else
    13948          # Determine the default libpath from the value encoded in an empty executable.
    13949          cat >conftest.$ac_ext <<_ACEOF
    13950       program main
    13951 
    13952       end
    13953 _ACEOF
    13954 rm -f conftest.$ac_objext conftest$ac_exeext
    13955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    13956   (eval $ac_link) 2>conftest.er1
    13957   ac_status=$?
    13958   grep -v '^ *+' conftest.er1 >conftest.err
    13959   rm -f conftest.er1
    13960   cat conftest.err >&5
    13961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    13962   (exit $ac_status); } &&
    13963          { ac_try='test -z "$ac_f77_werror_flag"
    13964                          || test ! -s conftest.err'
    13965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    13966   (eval $ac_try) 2>&5
    13967   ac_status=$?
    13968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    13969   (exit $ac_status); }; } &&
    13970          { ac_try='test -s conftest$ac_exeext'
    13971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    13972   (eval $ac_try) 2>&5
    13973   ac_status=$?
    13974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    13975   (exit $ac_status); }; }; then
    13976 
    13977 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
    13978 }'`
    13979 # Check for a 64-bit object if we didn't find anything.
    13980 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; }
    13981 }'`; fi
    13982 else
    13983   echo "$as_me: failed program was:" >&5
    13984 sed 's/^/| /' conftest.$ac_ext >&5
    13985 
    13986 fi
    13987 rm -f conftest.err conftest.$ac_objext \
    13988       conftest$ac_exeext conftest.$ac_ext
    13989 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
    13990 
    13991          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
    13992           # Warning - without using the other run time loading flags,
    13993           # -berok will link without error, but may produce a broken library.
    13994           no_undefined_flag_F77=' ${wl}-bernotok'
    13995           allow_undefined_flag_F77=' ${wl}-berok'
    13996           # -bexpall does not export symbols beginning with underscore (_)
    13997           always_export_symbols_F77=yes
    13998           # Exported symbols can be pulled into shared objects from archives
    13999           whole_archive_flag_spec_F77=' '
    14000           archive_cmds_need_lc_F77=yes
    14001           # This is similar to how AIX traditionally builds it's shared libraries.
    14002           archive_expsym_cmds_F77="\$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'
    14003         fi
    14004       fi
    14005       ;;
    14006 
    14007     amigaos*)
    14008       archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
    14009       hardcode_libdir_flag_spec_F77='-L$libdir'
    14010       hardcode_minus_L_F77=yes
    14011       # see comment about different semantics on the GNU ld section
    14012       ld_shlibs_F77=no
    14013       ;;
    14014 
    14015     bsdi4*)
    14016       export_dynamic_flag_spec_F77=-rdynamic
    14017       ;;
    14018 
    14019     cygwin* | mingw* | pw32*)
    14020       # When not using gcc, we currently assume that we are using
    14021       # Microsoft Visual C++.
    14022       # hardcode_libdir_flag_spec is actually meaningless, as there is
    14023       # no search path for DLLs.
    14024       hardcode_libdir_flag_spec_F77=' '
    14025       allow_undefined_flag_F77=unsupported
    14026       # Tell ltmain to make .lib files, not .a files.
    14027       libext=lib
    14028       # Tell ltmain to make .dll files, not .so files.
    14029       shrext_cmds=".dll"
    14030       # FIXME: Setting linknames here is a bad hack.
    14031       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
    14032       # The linker will automatically build a .lib file if we build a DLL.
    14033       old_archive_From_new_cmds_F77='true'
    14034       # FIXME: Should let the user specify the lib program.
    14035       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
    14036       fix_srcfile_path='`cygpath -w "$srcfile"`'
    14037       enable_shared_with_static_runtimes_F77=yes
    14038       ;;
    14039 
    14040     darwin* | rhapsody*)
    14041     if test "$GXX" = yes ; then
    14042       archive_cmds_need_lc_F77=no
    14043       case "$host_os" in
    14044       rhapsody* | darwin1.[012])
    14045         allow_undefined_flag_F77='-undefined suppress'
    14046         ;;
    14047       *) # Darwin 1.3 on
    14048       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
    14049         allow_undefined_flag_F77='-flat_namespace -undefined suppress'
    14050       else
    14051         case ${MACOSX_DEPLOYMENT_TARGET} in
    14052           10.[012])
    14053             allow_undefined_flag_F77='-flat_namespace -undefined suppress'
    14054             ;;
    14055           10.*)
    14056             allow_undefined_flag_F77='-undefined dynamic_lookup'
    14057             ;;
    14058         esac
    14059       fi
    14060         ;;
    14061       esac
    14062         lt_int_apple_cc_single_mod=no
    14063         output_verbose_link_cmd='echo'
    14064         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
    14065           lt_int_apple_cc_single_mod=yes
    14066         fi
    14067         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
    14068           archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
    14069         else
    14070         archive_cmds_F77='$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'
    14071       fi
    14072       module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
    14073       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
    14074         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
    14075           archive_expsym_cmds_F77='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}'
    14076         else
    14077           archive_expsym_cmds_F77='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}'
    14078         fi
    14079           module_expsym_cmds_F77='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}'
    14080       hardcode_direct_F77=no
    14081       hardcode_automatic_F77=yes
    14082       hardcode_shlibpath_var_F77=unsupported
    14083       whole_archive_flag_spec_F77='-all_load $convenience'
    14084       link_all_deplibs_F77=yes
    14085     else
    14086       ld_shlibs_F77=no
    14087     fi
    14088       ;;
    14089 
    14090     dgux*)
    14091       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
    14092       hardcode_libdir_flag_spec_F77='-L$libdir'
    14093       hardcode_shlibpath_var_F77=no
    14094       ;;
    14095 
    14096     freebsd1*)
    14097       ld_shlibs_F77=no
    14098       ;;
    14099 
    14100     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
    14101     # support.  Future versions do this automatically, but an explicit c++rt0.o
    14102     # does not break anything, and helps significantly (at the cost of a little
    14103     # extra space).
    14104     freebsd2.2*)
    14105       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
    14106       hardcode_libdir_flag_spec_F77='-R$libdir'
    14107       hardcode_direct_F77=yes
    14108       hardcode_shlibpath_var_F77=no
    14109       ;;
    14110 
    14111     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
    14112     freebsd2*)
    14113       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
    14114       hardcode_direct_F77=yes
    14115       hardcode_minus_L_F77=yes
    14116       hardcode_shlibpath_var_F77=no
    14117       ;;
    14118 
    14119     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
    14120     freebsd* | kfreebsd*-gnu)
    14121       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
    14122       hardcode_libdir_flag_spec_F77='-R$libdir'
    14123       hardcode_direct_F77=yes
    14124       hardcode_shlibpath_var_F77=no
    14125       ;;
    14126 
    14127     hpux9*)
    14128       if test "$GCC" = yes; then
    14129         archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
    14130       else
    14131         archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
    14132       fi
    14133       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
    14134       hardcode_libdir_separator_F77=:
    14135       hardcode_direct_F77=yes
    14136 
    14137       # hardcode_minus_L: Not really in the search PATH,
    14138       # but as the default location of the library.
    14139       hardcode_minus_L_F77=yes
    14140       export_dynamic_flag_spec_F77='${wl}-E'
    14141       ;;
    14142 
    14143     hpux10* | hpux11*)
    14144       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
    14145         case "$host_cpu" in
    14146         hppa*64*|ia64*)
    14147           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
    14148           ;;
    14149         *)
    14150           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
    14151           ;;
    14152         esac
    14153       else
    14154         case "$host_cpu" in
    14155         hppa*64*|ia64*)
    14156           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
    14157           ;;
    14158         *)
    14159           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
    14160           ;;
    14161         esac
    14162       fi
    14163       if test "$with_gnu_ld" = no; then
    14164         case "$host_cpu" in
    14165         hppa*64*)
    14166           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
    14167           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
    14168           hardcode_libdir_separator_F77=:
    14169           hardcode_direct_F77=no
    14170           hardcode_shlibpath_var_F77=no
    14171           ;;
    14172         ia64*)
    14173           hardcode_libdir_flag_spec_F77='-L$libdir'
    14174           hardcode_direct_F77=no
    14175           hardcode_shlibpath_var_F77=no
    14176 
    14177           # hardcode_minus_L: Not really in the search PATH,
    14178           # but as the default location of the library.
    14179           hardcode_minus_L_F77=yes
    14180           ;;
    14181         *)
    14182           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
    14183           hardcode_libdir_separator_F77=:
    14184           hardcode_direct_F77=yes
    14185           export_dynamic_flag_spec_F77='${wl}-E'
    14186 
    14187           # hardcode_minus_L: Not really in the search PATH,
    14188           # but as the default location of the library.
    14189           hardcode_minus_L_F77=yes
    14190           ;;
    14191         esac
    14192       fi
    14193       ;;
    14194 
    14195     irix5* | irix6* | nonstopux*)
    14196       if test "$GCC" = yes; then
    14197         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
    14198       else
    14199         archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
    14200         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
    14201       fi
    14202       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
    14203       hardcode_libdir_separator_F77=:
    14204       link_all_deplibs_F77=yes
    14205       ;;
    14206 
    14207     netbsd*)
    14208       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
    14209         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
    14210       else
    14211         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
    14212       fi
    14213       hardcode_libdir_flag_spec_F77='-R$libdir'
    14214       hardcode_direct_F77=yes
    14215       hardcode_shlibpath_var_F77=no
    14216       ;;
    14217 
    14218     newsos6)
    14219       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
    14220       hardcode_direct_F77=yes
    14221       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
    14222       hardcode_libdir_separator_F77=:
    14223       hardcode_shlibpath_var_F77=no
    14224       ;;
    14225 
    14226     openbsd*)
    14227       hardcode_direct_F77=yes
    14228       hardcode_shlibpath_var_F77=no
    14229       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
    14230         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
    14231         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
    14232         export_dynamic_flag_spec_F77='${wl}-E'
    14233       else
    14234        case $host_os in
    14235          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
    14236            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
    14237            hardcode_libdir_flag_spec_F77='-R$libdir'
    14238            ;;
    14239          *)
    14240            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
    14241            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
    14242            ;;
    14243        esac
    14244       fi
    14245       ;;
    14246 
    14247     os2*)
    14248       hardcode_libdir_flag_spec_F77='-L$libdir'
    14249       hardcode_minus_L_F77=yes
    14250       allow_undefined_flag_F77=unsupported
    14251       archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
    14252       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
    14253       ;;
    14254 
    14255     osf3*)
    14256       if test "$GCC" = yes; then
    14257         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
    14258         archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
    14259       else
    14260         allow_undefined_flag_F77=' -expect_unresolved \*'
    14261         archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
    14262       fi
    14263       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
    14264       hardcode_libdir_separator_F77=:
    14265       ;;
    14266 
    14267     osf4* | osf5*)      # as osf3* with the addition of -msym flag
    14268       if test "$GCC" = yes; then
    14269         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
    14270         archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
    14271         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
    14272       else
    14273         allow_undefined_flag_F77=' -expect_unresolved \*'
    14274         archive_cmds_F77='$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'
    14275         archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
    14276         $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'
    14277 
    14278         # Both c and cxx compiler support -rpath directly
    14279         hardcode_libdir_flag_spec_F77='-rpath $libdir'
    14280       fi
    14281       hardcode_libdir_separator_F77=:
    14282       ;;
    14283 
    14284     sco3.2v5*)
    14285       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
    14286       hardcode_shlibpath_var_F77=no
    14287       export_dynamic_flag_spec_F77='${wl}-Bexport'
    14288       runpath_var=LD_RUN_PATH
    14289       hardcode_runpath_var=yes
    14290       ;;
    14291 
    14292     solaris*)
    14293       no_undefined_flag_F77=' -z text'
    14294       if test "$GCC" = yes; then
    14295         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
    14296         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
    14297           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
    14298       else
    14299         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
    14300         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
    14301         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
    14302       fi
    14303       hardcode_libdir_flag_spec_F77='-R$libdir'
    14304       hardcode_shlibpath_var_F77=no
    14305       case $host_os in
    14306       solaris2.[0-5] | solaris2.[0-5].*) ;;
    14307       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
    14308         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
    14309       esac
    14310       link_all_deplibs_F77=yes
    14311       ;;
    14312 
    14313     sunos4*)
    14314       if test "x$host_vendor" = xsequent; then
    14315         # Use $CC to link under sequent, because it throws in some extra .o
    14316         # files that make .init and .fini sections work.
    14317         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
    14318       else
    14319         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
    14320       fi
    14321       hardcode_libdir_flag_spec_F77='-L$libdir'
    14322       hardcode_direct_F77=yes
    14323       hardcode_minus_L_F77=yes
    14324       hardcode_shlibpath_var_F77=no
    14325       ;;
    14326 
    14327     sysv4)
    14328       case $host_vendor in
    14329         sni)
    14330           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
    14331           hardcode_direct_F77=yes # is this really true???
    14332         ;;
    14333         siemens)
    14334           ## LD is ld it makes a PLAMLIB
    14335           ## CC just makes a GrossModule.
    14336           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
    14337           reload_cmds_F77='$CC -r -o $output$reload_objs'
    14338           hardcode_direct_F77=no
    14339         ;;
    14340         motorola)
    14341           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
    14342           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
    14343         ;;
    14344       esac
    14345       runpath_var='LD_RUN_PATH'
    14346       hardcode_shlibpath_var_F77=no
    14347       ;;
    14348 
    14349     sysv4.3*)
    14350       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
    14351       hardcode_shlibpath_var_F77=no
    14352       export_dynamic_flag_spec_F77='-Bexport'
    14353       ;;
    14354 
    14355     sysv4*MP*)
    14356       if test -d /usr/nec; then
    14357         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
    14358         hardcode_shlibpath_var_F77=no
    14359         runpath_var=LD_RUN_PATH
    14360         hardcode_runpath_var=yes
    14361         ld_shlibs_F77=yes
    14362       fi
    14363       ;;
    14364 
    14365     sysv4.2uw2*)
    14366       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
    14367       hardcode_direct_F77=yes
    14368       hardcode_minus_L_F77=no
    14369       hardcode_shlibpath_var_F77=no
    14370       hardcode_runpath_var=yes
    14371       runpath_var=LD_RUN_PATH
    14372       ;;
    14373 
    14374    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
    14375       no_undefined_flag_F77='${wl}-z ${wl}text'
    14376       if test "$GCC" = yes; then
    14377         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
    14378       else
    14379         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
    14380       fi
    14381       runpath_var='LD_RUN_PATH'
    14382       hardcode_shlibpath_var_F77=no
    14383       ;;
    14384 
    14385     sysv5*)
    14386       no_undefined_flag_F77=' -z text'
    14387       # $CC -shared without GNU ld will not create a library from C++
    14388       # object files and a static libstdc++, better avoid it by now
    14389       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
    14390       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
    14391                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
    14392       hardcode_libdir_flag_spec_F77=
    14393       hardcode_shlibpath_var_F77=no
    14394       runpath_var='LD_RUN_PATH'
    14395       ;;
    14396 
    14397     uts4*)
    14398       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
    14399       hardcode_libdir_flag_spec_F77='-L$libdir'
    14400       hardcode_shlibpath_var_F77=no
    14401       ;;
    14402 
    14403     *)
    14404       ld_shlibs_F77=no
    14405       ;;
    14406     esac
    14407   fi
    14408 
    14409 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
    14410 echo "${ECHO_T}$ld_shlibs_F77" >&6
    14411 test "$ld_shlibs_F77" = no && can_build_shared=no
    14412 
    14413 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
    14414 if test "$GCC" = yes; then
    14415   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
    14416 fi
    14417 
    14418 #
    14419 # Do we need to explicitly link libc?
    14420 #
    14421 case "x$archive_cmds_need_lc_F77" in
    14422 x|xyes)
    14423   # Assume -lc should be added
    14424   archive_cmds_need_lc_F77=yes
    14425 
    14426   if test "$enable_shared" = yes && test "$GCC" = yes; then
    14427     case $archive_cmds_F77 in
    14428     *'~'*)
    14429       # FIXME: we may have to deal with multi-command sequences.
    14430       ;;
    14431     '$CC '*)
    14432       # Test whether the compiler implicitly links with -lc since on some
    14433       # systems, -lgcc has to come before -lc. If gcc already passes -lc
    14434       # to ld, don't add -lc before -lgcc.
    14435       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
    14436 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
    14437       $rm conftest*
    14438       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
    14439 
    14440       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    14441   (eval $ac_compile) 2>&5
    14442   ac_status=$?
    14443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    14444   (exit $ac_status); } 2>conftest.err; then
    14445         soname=conftest
    14446         lib=conftest
    14447         libobjs=conftest.$ac_objext
    14448         deplibs=
    14449         wl=$lt_prog_compiler_wl_F77
    14450         compiler_flags=-v
    14451         linker_flags=-v
    14452         verstring=
    14453         output_objdir=.
    14454         libname=conftest
    14455         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
    14456         allow_undefined_flag_F77=
    14457         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
    14458   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
    14459   ac_status=$?
    14460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    14461   (exit $ac_status); }
    14462         then
    14463           archive_cmds_need_lc_F77=no
    14464         else
    14465           archive_cmds_need_lc_F77=yes
    14466         fi
    14467         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
    14468       else
    14469         cat conftest.err 1>&5
    14470       fi
    14471       $rm conftest*
    14472       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
    14473 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
    14474       ;;
    14475     esac
    14476   fi
    14477   ;;
    14478 esac
    14479 
    14480 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
    14481 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
    14482 library_names_spec=
    14483 libname_spec='lib$name'
    14484 soname_spec=
    14485 shrext_cmds=".so"
    14486 postinstall_cmds=
    14487 postuninstall_cmds=
    14488 finish_cmds=
    14489 finish_eval=
    14490 shlibpath_var=
    14491 shlibpath_overrides_runpath=unknown
    14492 version_type=none
    14493 dynamic_linker="$host_os ld.so"
    14494 sys_lib_dlsearch_path_spec="/lib /usr/lib"
    14495 if test "$GCC" = yes; then
    14496   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
    14497   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
    14498     # if the path contains ";" then we assume it to be the separator
    14499     # otherwise default to the standard path separator (i.e. ":") - it is
    14500     # assumed that no part of a normal pathname contains ";" but that should
    14501     # okay in the real world where ";" in dirpaths is itself problematic.
    14502     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
    14503   else
    14504     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
    14505   fi
    14506 else
    14507   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
    14508 fi
    14509 need_lib_prefix=unknown
    14510 hardcode_into_libs=no
    14511 
    14512 # when you set need_version to no, make sure it does not cause -set_version
    14513 # flags to be left without arguments
    14514 need_version=unknown
    14515 
    14516 case $host_os in
    14517 aix3*)
    14518   version_type=linux
    14519   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
    14520   shlibpath_var=LIBPATH
    14521 
    14522   # AIX 3 has no versioning support, so we append a major version to the name.
    14523   soname_spec='${libname}${release}${shared_ext}$major'
    14524   ;;
    14525 
    14526 aix4* | aix5*)
    14527   version_type=linux
    14528   need_lib_prefix=no
    14529   need_version=no
    14530   hardcode_into_libs=yes
    14531   if test "$host_cpu" = ia64; then
    14532     # AIX 5 supports IA64
    14533     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
    14534     shlibpath_var=LD_LIBRARY_PATH
    14535   else
    14536     # With GCC up to 2.95.x, collect2 would create an import file
    14537     # for dependence libraries.  The import file would start with
    14538     # the line `#! .'.  This would cause the generated library to
    14539     # depend on `.', always an invalid library.  This was fixed in
    14540     # development snapshots of GCC prior to 3.0.
    14541     case $host_os in
    14542       aix4 | aix4.[01] | aix4.[01].*)
    14543       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
    14544            echo ' yes '
    14545            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
    14546         :
    14547       else
    14548         can_build_shared=no
    14549       fi
    14550       ;;
    14551     esac
    14552     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
    14553     # soname into executable. Probably we can add versioning support to
    14554     # collect2, so additional links can be useful in future.
    14555     if test "$aix_use_runtimelinking" = yes; then
    14556       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
    14557       # instead of lib<name>.a to let people know that these are not
    14558       # typical AIX shared libraries.
    14559       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    14560     else
    14561       # We preserve .a as extension for shared libraries through AIX4.2
    14562       # and later when we are not doing run time linking.
    14563       library_names_spec='${libname}${release}.a $libname.a'
    14564       soname_spec='${libname}${release}${shared_ext}$major'
    14565     fi
    14566     shlibpath_var=LIBPATH
    14567   fi
    14568   ;;
    14569 
    14570 amigaos*)
    14571   library_names_spec='$libname.ixlibrary $libname.a'
    14572   # Create ${libname}_ixlibrary.a entries in /sys/libs.
    14573   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
    14574   ;;
    14575 
    14576 beos*)
    14577   library_names_spec='${libname}${shared_ext}'
    14578   dynamic_linker="$host_os ld.so"
    14579   shlibpath_var=LIBRARY_PATH
    14580   ;;
    14581 
    14582 bsdi4*)
    14583   version_type=linux
    14584   need_version=no
    14585   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    14586   soname_spec='${libname}${release}${shared_ext}$major'
    14587   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
    14588   shlibpath_var=LD_LIBRARY_PATH
    14589   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
    14590   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
    14591   # the default ld.so.conf also contains /usr/contrib/lib and
    14592   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
    14593   # libtool to hard-code these into programs
    14594   ;;
    14595 
    14596 cygwin* | mingw* | pw32*)
    14597   version_type=windows
    14598   shrext_cmds=".dll"
    14599   need_version=no
    14600   need_lib_prefix=no
    14601 
    14602   case $GCC,$host_os in
    14603   yes,cygwin* | yes,mingw* | yes,pw32*)
    14604     library_names_spec='$libname.dll.a'
    14605     # DLL is installed to $(libdir)/../bin by postinstall_cmds
    14606     postinstall_cmds='base_file=`basename \${file}`~
    14607       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
    14608       dldir=$destdir/`dirname \$dlpath`~
    14609       test -d \$dldir || mkdir -p \$dldir~
    14610       $install_prog $dir/$dlname \$dldir/$dlname'
    14611     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
    14612       dlpath=$dir/\$dldll~
    14613        $rm \$dlpath'
    14614     shlibpath_overrides_runpath=yes
    14615 
    14616     case $host_os in
    14617     cygwin*)
    14618       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
    14619       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
    14620       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
    14621       ;;
    14622     mingw*)
    14623       # MinGW DLLs use traditional 'lib' prefix
    14624       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
    14625       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
    14626       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
    14627         # It is most probably a Windows format PATH printed by
    14628         # mingw gcc, but we are running on Cygwin. Gcc prints its search
    14629         # path with ; separators, and with drive letters. We can handle the
    14630         # drive letters (cygwin fileutils understands them), so leave them,
    14631         # especially as we might pass files found there to a mingw objdump,
    14632         # which wouldn't understand a cygwinified path. Ahh.
    14633         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
    14634       else
    14635         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
    14636       fi
    14637       ;;
    14638     pw32*)
    14639       # pw32 DLLs use 'pw' prefix rather than 'lib'
    14640       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
    14641       ;;
    14642     esac
    14643     ;;
    14644 
    14645   *)
    14646     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
    14647     ;;
    14648   esac
    14649   dynamic_linker='Win32 ld.exe'
    14650   # FIXME: first we should search . and the directory the executable is in
    14651   shlibpath_var=PATH
    14652   ;;
    14653 
    14654 darwin* | rhapsody*)
    14655   dynamic_linker="$host_os dyld"
    14656   version_type=darwin
    14657   need_lib_prefix=no
    14658   need_version=no
    14659   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
    14660   soname_spec='${libname}${release}${major}$shared_ext'
    14661   shlibpath_overrides_runpath=yes
    14662   shlibpath_var=DYLD_LIBRARY_PATH
    14663   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
    14664   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
    14665   if test "$GCC" = yes; then
    14666     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"`
    14667   else
    14668     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
    14669   fi
    14670   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
    14671   ;;
    14672 
    14673 dgux*)
    14674   version_type=linux
    14675   need_lib_prefix=no
    14676   need_version=no
    14677   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
    14678   soname_spec='${libname}${release}${shared_ext}$major'
    14679   shlibpath_var=LD_LIBRARY_PATH
    14680   ;;
    14681 
    14682 freebsd1*)
    14683   dynamic_linker=no
    14684   ;;
    14685 
    14686 kfreebsd*-gnu)
    14687   version_type=linux
    14688   need_lib_prefix=no
    14689   need_version=no
    14690   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
    14691   soname_spec='${libname}${release}${shared_ext}$major'
    14692   shlibpath_var=LD_LIBRARY_PATH
    14693   shlibpath_overrides_runpath=no
    14694   hardcode_into_libs=yes
    14695   dynamic_linker='GNU ld.so'
    14696   ;;
    14697 
    14698 freebsd*)
    14699   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
    14700   version_type=freebsd-$objformat
    14701   case $version_type in
    14702     freebsd-elf*)
    14703       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
    14704       need_version=no
    14705       need_lib_prefix=no
    14706       ;;
    14707     freebsd-*)
    14708       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
    14709       need_version=yes
    14710       ;;
    14711   esac
    14712   shlibpath_var=LD_LIBRARY_PATH
    14713   case $host_os in
    14714   freebsd2*)
    14715     shlibpath_overrides_runpath=yes
    14716     ;;
    14717   freebsd3.01* | freebsdelf3.01*)
    14718     shlibpath_overrides_runpath=yes
    14719     hardcode_into_libs=yes
    14720     ;;
    14721   *) # from 3.2 on
    14722     shlibpath_overrides_runpath=no
    14723     hardcode_into_libs=yes
    14724     ;;
    14725   esac
    14726   ;;
    14727 
    14728 gnu*)
    14729   version_type=linux
    14730   need_lib_prefix=no
    14731   need_version=no
    14732   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
    14733   soname_spec='${libname}${release}${shared_ext}$major'
    14734   shlibpath_var=LD_LIBRARY_PATH
    14735   hardcode_into_libs=yes
    14736   ;;
    14737 
    14738 hpux9* | hpux10* | hpux11*)
    14739   # Give a soname corresponding to the major version so that dld.sl refuses to
    14740   # link against other versions.
    14741   version_type=sunos
    14742   need_lib_prefix=no
    14743   need_version=no
    14744   case "$host_cpu" in
    14745   ia64*)
    14746     shrext_cmds='.so'
    14747     hardcode_into_libs=yes
    14748     dynamic_linker="$host_os dld.so"
    14749     shlibpath_var=LD_LIBRARY_PATH
    14750     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
    14751     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    14752     soname_spec='${libname}${release}${shared_ext}$major'
    14753     if test "X$HPUX_IA64_MODE" = X32; then
    14754       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
    14755     else
    14756       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
    14757     fi
    14758     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
    14759     ;;
    14760    hppa*64*)
    14761      shrext_cmds='.sl'
    14762      hardcode_into_libs=yes
    14763      dynamic_linker="$host_os dld.sl"
    14764      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
    14765      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
    14766      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    14767      soname_spec='${libname}${release}${shared_ext}$major'
    14768      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
    14769      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
    14770      ;;
    14771    *)
    14772     shrext_cmds='.sl'
    14773     dynamic_linker="$host_os dld.sl"
    14774     shlibpath_var=SHLIB_PATH
    14775     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
    14776     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    14777     soname_spec='${libname}${release}${shared_ext}$major'
    14778     ;;
    14779   esac
    14780   # HP-UX runs *really* slowly unless shared libraries are mode 555.
    14781   postinstall_cmds='chmod 555 $lib'
    14782   ;;
    14783 
    14784 irix5* | irix6* | nonstopux*)
    14785   case $host_os in
    14786     nonstopux*) version_type=nonstopux ;;
    14787     *)
    14788         if test "$lt_cv_prog_gnu_ld" = yes; then
    14789                 version_type=linux
    14790         else
    14791                 version_type=irix
    14792         fi ;;
    14793   esac
    14794   need_lib_prefix=no
    14795   need_version=no
    14796   soname_spec='${libname}${release}${shared_ext}$major'
    14797   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
    14798   case $host_os in
    14799   irix5* | nonstopux*)
    14800     libsuff= shlibsuff=
    14801     ;;
    14802   *)
    14803     case $LD in # libtool.m4 will add one of these switches to LD
    14804     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
    14805       libsuff= shlibsuff= libmagic=32-bit;;
    14806     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
    14807       libsuff=32 shlibsuff=N32 libmagic=N32;;
    14808     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
    14809       libsuff=64 shlibsuff=64 libmagic=64-bit;;
    14810     *) libsuff= shlibsuff= libmagic=never-match;;
    14811     esac
    14812     ;;
    14813   esac
    14814   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
    14815   shlibpath_overrides_runpath=no
    14816   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
    14817   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
    14818   hardcode_into_libs=yes
    14819   ;;
    14820 
    14821 # No shared lib support for Linux oldld, aout, or coff.
    14822 linux*oldld* | linux*aout* | linux*coff*)
    14823   dynamic_linker=no
    14824   ;;
    14825 
    14826 # This must be Linux ELF.
    14827 linux*)
    14828   version_type=linux
    14829   need_lib_prefix=no
    14830   need_version=no
    14831   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    14832   soname_spec='${libname}${release}${shared_ext}$major'
    14833   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
    14834   shlibpath_var=LD_LIBRARY_PATH
    14835   shlibpath_overrides_runpath=no
    14836   # This implies no fast_install, which is unacceptable.
    14837   # Some rework will be needed to allow for fast_install
    14838   # before this can be enabled.
    14839   hardcode_into_libs=yes
    14840 
    14841   # find out which ABI we are using
    14842   libsuff=
    14843   case "$host_cpu" in
    14844   x86_64*|s390x*|powerpc64*)
    14845     echo '#line 14845 "configure"' > conftest.$ac_ext
    14846     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    14847   (eval $ac_compile) 2>&5
    14848   ac_status=$?
    14849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    14850   (exit $ac_status); }; then
    14851       case `/usr/bin/file conftest.$ac_objext` in
    14852       *64-bit*)
    14853         libsuff=64
    14854         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
    14855         ;;
    14856       esac
    14857     fi
    14858     rm -rf conftest*
    14859     ;;
    14860   esac
    14861 
    14862   # Append ld.so.conf contents to the search path
    14863   if test -f /etc/ld.so.conf; then
    14864     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
    14865     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
    14866   fi
    14867 
    14868   # We used to test for /lib/ld.so.1 and disable shared libraries on
    14869   # powerpc, because MkLinux only supported shared libraries with the
    14870   # GNU dynamic linker.  Since this was broken with cross compilers,
    14871   # most powerpc-linux boxes support dynamic linking these days and
    14872   # people can always --disable-shared, the test was removed, and we
    14873   # assume the GNU/Linux dynamic linker is in use.
    14874   dynamic_linker='GNU/Linux ld.so'
    14875   ;;
    14876 
    14877 knetbsd*-gnu)
    14878   version_type=linux
    14879   need_lib_prefix=no
    14880   need_version=no
    14881   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
    14882   soname_spec='${libname}${release}${shared_ext}$major'
    14883   shlibpath_var=LD_LIBRARY_PATH
    14884   shlibpath_overrides_runpath=no
    14885   hardcode_into_libs=yes
    14886   dynamic_linker='GNU ld.so'
    14887   ;;
    14888 
    14889 netbsd*)
    14890   version_type=sunos
    14891   need_lib_prefix=no
    14892   need_version=no
    14893   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
    14894     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
    14895     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
    14896     dynamic_linker='NetBSD (a.out) ld.so'
    14897   else
    14898     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
    14899     soname_spec='${libname}${release}${shared_ext}$major'
    14900     dynamic_linker='NetBSD ld.elf_so'
    14901   fi
    14902   shlibpath_var=LD_LIBRARY_PATH
    14903   shlibpath_overrides_runpath=yes
    14904   hardcode_into_libs=yes
    14905   ;;
    14906 
    14907 newsos6)
    14908   version_type=linux
    14909   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    14910   shlibpath_var=LD_LIBRARY_PATH
    14911   shlibpath_overrides_runpath=yes
    14912   ;;
    14913 
    14914 nto-qnx*)
    14915   version_type=linux
    14916   need_lib_prefix=no
    14917   need_version=no
    14918   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    14919   soname_spec='${libname}${release}${shared_ext}$major'
    14920   shlibpath_var=LD_LIBRARY_PATH
    14921   shlibpath_overrides_runpath=yes
    14922   ;;
    14923 
    14924 openbsd*)
    14925   version_type=sunos
    14926   need_lib_prefix=no
    14927   need_version=yes
    14928   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
    14929   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
    14930   shlibpath_var=LD_LIBRARY_PATH
    14931   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
    14932     case $host_os in
    14933       openbsd2.[89] | openbsd2.[89].*)
    14934         shlibpath_overrides_runpath=no
    14935         ;;
    14936       *)
    14937         shlibpath_overrides_runpath=yes
    14938         ;;
    14939       esac
    14940   else
    14941     shlibpath_overrides_runpath=yes
    14942   fi
    14943   ;;
    14944 
    14945 os2*)
    14946   libname_spec='$name'
    14947   shrext_cmds=".dll"
    14948   need_lib_prefix=no
    14949   library_names_spec='$libname${shared_ext} $libname.a'
    14950   dynamic_linker='OS/2 ld.exe'
    14951   shlibpath_var=LIBPATH
    14952   ;;
    14953 
    14954 osf3* | osf4* | osf5*)
    14955   version_type=osf
    14956   need_lib_prefix=no
    14957   need_version=no
    14958   soname_spec='${libname}${release}${shared_ext}$major'
    14959   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    14960   shlibpath_var=LD_LIBRARY_PATH
    14961   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
    14962   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
    14963   ;;
    14964 
    14965 sco3.2v5*)
    14966   version_type=osf
    14967   soname_spec='${libname}${release}${shared_ext}$major'
    14968   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    14969   shlibpath_var=LD_LIBRARY_PATH
    14970   ;;
    14971 
    14972 solaris*)
    14973   version_type=linux
    14974   need_lib_prefix=no
    14975   need_version=no
    14976   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    14977   soname_spec='${libname}${release}${shared_ext}$major'
    14978   shlibpath_var=LD_LIBRARY_PATH
    14979   shlibpath_overrides_runpath=yes
    14980   hardcode_into_libs=yes
    14981   # ldd complains unless libraries are executable
    14982   postinstall_cmds='chmod +x $lib'
    14983   ;;
    14984 
    14985 sunos4*)
    14986   version_type=sunos
    14987   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
    14988   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
    14989   shlibpath_var=LD_LIBRARY_PATH
    14990   shlibpath_overrides_runpath=yes
    14991   if test "$with_gnu_ld" = yes; then
    14992     need_lib_prefix=no
    14993   fi
    14994   need_version=yes
    14995   ;;
    14996 
    14997 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
    14998   version_type=linux
    14999   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    15000   soname_spec='${libname}${release}${shared_ext}$major'
    15001   shlibpath_var=LD_LIBRARY_PATH
    15002   case $host_vendor in
    15003     sni)
    15004       shlibpath_overrides_runpath=no
    15005       need_lib_prefix=no
    15006       export_dynamic_flag_spec='${wl}-Blargedynsym'
    15007       runpath_var=LD_RUN_PATH
    15008       ;;
    15009     siemens)
    15010       need_lib_prefix=no
    15011       ;;
    15012     motorola)
    15013       need_lib_prefix=no
    15014       need_version=no
    15015       shlibpath_overrides_runpath=no
    15016       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
    15017       ;;
    15018   esac
    15019   ;;
    15020 
    15021 sysv4*MP*)
    15022   if test -d /usr/nec ;then
    15023     version_type=linux
    15024     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
    15025     soname_spec='$libname${shared_ext}.$major'
    15026     shlibpath_var=LD_LIBRARY_PATH
    15027   fi
    15028   ;;
    15029 
    15030 uts4*)
    15031   version_type=linux
    15032   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    15033   soname_spec='${libname}${release}${shared_ext}$major'
    15034   shlibpath_var=LD_LIBRARY_PATH
    15035   ;;
    15036 
    15037 *)
    15038   dynamic_linker=no
    15039   ;;
    15040 esac
    15041 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
    15042 echo "${ECHO_T}$dynamic_linker" >&6
    15043 test "$dynamic_linker" = no && can_build_shared=no
    15044 
    15045 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
    15046 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
    15047 hardcode_action_F77=
    15048 if test -n "$hardcode_libdir_flag_spec_F77" || \
    15049    test -n "$runpath_var F77" || \
    15050    test "X$hardcode_automatic_F77"="Xyes" ; then
    15051 
    15052   # We can hardcode non-existant directories.
    15053   if test "$hardcode_direct_F77" != no &&
    15054      # If the only mechanism to avoid hardcoding is shlibpath_var, we
    15055      # have to relink, otherwise we might link with an installed library
    15056      # when we should be linking with a yet-to-be-installed one
    15057      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
    15058      test "$hardcode_minus_L_F77" != no; then
    15059     # Linking always hardcodes the temporary library directory.
    15060     hardcode_action_F77=relink
    15061   else
    15062     # We can link without hardcoding, and we can hardcode nonexisting dirs.
    15063     hardcode_action_F77=immediate
    15064   fi
    15065 else
    15066   # We cannot hardcode anything, or else we can only hardcode existing
    15067   # directories.
    15068   hardcode_action_F77=unsupported
    15069 fi
    15070 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
    15071 echo "${ECHO_T}$hardcode_action_F77" >&6
    15072 
    15073 if test "$hardcode_action_F77" = relink; then
    15074   # Fast installation is not supported
    15075   enable_fast_install=no
    15076 elif test "$shlibpath_overrides_runpath" = yes ||
    15077      test "$enable_shared" = no; then
    15078   # Fast installation is not necessary
    15079   enable_fast_install=needless
    15080 fi
    15081 
    15082 striplib=
    15083 old_striplib=
    15084 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
    15085 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
    15086 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
    15087   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
    15088   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
    15089   echo "$as_me:$LINENO: result: yes" >&5
    15090 echo "${ECHO_T}yes" >&6
    15091 else
    15092 # FIXME - insert some real tests, host_os isn't really good enough
    15093   case $host_os in
    15094    darwin*)
    15095        if test -n "$STRIP" ; then
    15096          striplib="$STRIP -x"
    15097          echo "$as_me:$LINENO: result: yes" >&5
    15098 echo "${ECHO_T}yes" >&6
    15099        else
    15100   echo "$as_me:$LINENO: result: no" >&5
    15101 echo "${ECHO_T}no" >&6
    15102 fi
    15103        ;;
    15104    *)
    15105   echo "$as_me:$LINENO: result: no" >&5
    15106 echo "${ECHO_T}no" >&6
    15107     ;;
    15108   esac
    15109 fi
    15110 
    15111 
    15112 
    15113 # The else clause should only fire when bootstrapping the
    15114 # libtool distribution, otherwise you forgot to ship ltmain.sh
    15115 # with your package, and you will get complaints that there are
    15116 # no rules to generate ltmain.sh.
    15117 if test -f "$ltmain"; then
    15118   # See if we are running on zsh, and set the options which allow our commands through
    15119   # without removal of \ escapes.
    15120   if test -n "${ZSH_VERSION+set}" ; then
    15121     setopt NO_GLOB_SUBST
    15122   fi
    15123   # Now quote all the things that may contain metacharacters while being
    15124   # careful not to overquote the AC_SUBSTed values.  We take copies of the
    15125   # variables and quote the copies for generation of the libtool script.
    15126   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
    15127     SED SHELL STRIP \
    15128     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
    15129     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
    15130     deplibs_check_method reload_flag reload_cmds need_locks \
    15131     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
    15132     lt_cv_sys_global_symbol_to_c_name_address \
    15133     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
    15134     old_postinstall_cmds old_postuninstall_cmds \
    15135     compiler_F77 \
    15136     CC_F77 \
    15137     LD_F77 \
    15138     lt_prog_compiler_wl_F77 \
    15139     lt_prog_compiler_pic_F77 \
    15140     lt_prog_compiler_static_F77 \
    15141     lt_prog_compiler_no_builtin_flag_F77 \
    15142     export_dynamic_flag_spec_F77 \
    15143     thread_safe_flag_spec_F77 \
    15144     whole_archive_flag_spec_F77 \
    15145     enable_shared_with_static_runtimes_F77 \
    15146     old_archive_cmds_F77 \
    15147     old_archive_from_new_cmds_F77 \
    15148     predep_objects_F77 \
    15149     postdep_objects_F77 \
    15150     predeps_F77 \
    15151     postdeps_F77 \
    15152     compiler_lib_search_path_F77 \
    15153     archive_cmds_F77 \
    15154     archive_expsym_cmds_F77 \
    15155     postinstall_cmds_F77 \
    15156     postuninstall_cmds_F77 \
    15157     old_archive_from_expsyms_cmds_F77 \
    15158     allow_undefined_flag_F77 \
    15159     no_undefined_flag_F77 \
    15160     export_symbols_cmds_F77 \
    15161     hardcode_libdir_flag_spec_F77 \
    15162     hardcode_libdir_flag_spec_ld_F77 \
    15163     hardcode_libdir_separator_F77 \
    15164     hardcode_automatic_F77 \
    15165     module_cmds_F77 \
    15166     module_expsym_cmds_F77 \
    15167     lt_cv_prog_compiler_c_o_F77 \
    15168     exclude_expsyms_F77 \
    15169     include_expsyms_F77; do
    15170 
    15171     case $var in
    15172     old_archive_cmds_F77 | \
    15173     old_archive_from_new_cmds_F77 | \
    15174     archive_cmds_F77 | \
    15175     archive_expsym_cmds_F77 | \
    15176     module_cmds_F77 | \
    15177     module_expsym_cmds_F77 | \
    15178     old_archive_from_expsyms_cmds_F77 | \
    15179     export_symbols_cmds_F77 | \
    15180     extract_expsyms_cmds | reload_cmds | finish_cmds | \
    15181     postinstall_cmds | postuninstall_cmds | \
    15182     old_postinstall_cmds | old_postuninstall_cmds | \
    15183     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
    15184       # Double-quote double-evaled strings.
    15185       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
    15186       ;;
    15187     *)
    15188       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
    15189       ;;
    15190     esac
    15191   done
    15192 
    15193   case $lt_echo in
    15194   *'\$0 --fallback-echo"')
    15195     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
    15196     ;;
    15197   esac
    15198 
    15199 cfgfile="$ofile"
    15200 
    15201   cat <<__EOF__ >> "$cfgfile"
    15202 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
    15203 
    15204 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
    15205 
    15206 # Shell to use when invoking shell scripts.
    15207 SHELL=$lt_SHELL
    15208 
    15209 # Whether or not to build shared libraries.
    15210 build_libtool_libs=$enable_shared
    15211 
    15212 # Whether or not to build static libraries.
    15213 build_old_libs=$enable_static
    15214 
    15215 # Whether or not to add -lc for building shared libraries.
    15216 build_libtool_need_lc=$archive_cmds_need_lc_F77
    15217 
    15218 # Whether or not to disallow shared libs when runtime libs are static
    15219 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
    15220 
    15221 # Whether or not to optimize for fast installation.
    15222 fast_install=$enable_fast_install
    15223 
    15224 # The host system.
    15225 host_alias=$host_alias
    15226 host=$host
    15227 
    15228 # An echo program that does not interpret backslashes.
    15229 echo=$lt_echo
    15230 
    15231 # The archiver.
    15232 AR=$lt_AR
    15233 AR_FLAGS=$lt_AR_FLAGS
    15234 
    15235 # A C compiler.
    15236 LTCC=$lt_LTCC
    15237 
    15238 # A language-specific compiler.
    15239 CC=$lt_compiler_F77
    15240 
    15241 # Is the compiler the GNU C compiler?
    15242 with_gcc=$GCC_F77
    15243 
    15244 # An ERE matcher.
    15245 EGREP=$lt_EGREP
    15246 
    15247 # The linker used to build libraries.
    15248 LD=$lt_LD_F77
    15249 
    15250 # Whether we need hard or soft links.
    15251 LN_S=$lt_LN_S
    15252 
    15253 # A BSD-compatible nm program.
    15254 NM=$lt_NM
    15255 
    15256 # A symbol stripping program
    15257 STRIP=$lt_STRIP
    15258 
    15259 # Used to examine libraries when file_magic_cmd begins "file"
    15260 MAGIC_CMD=$MAGIC_CMD
    15261 
    15262 # Used on cygwin: DLL creation program.
    15263 DLLTOOL="$DLLTOOL"
    15264 
    15265 # Used on cygwin: object dumper.
    15266 OBJDUMP="$OBJDUMP"
    15267 
    15268 # Used on cygwin: assembler.
    15269 AS="$AS"
    15270 
    15271 # The name of the directory that contains temporary libtool files.
    15272 objdir=$objdir
    15273 
    15274 # How to create reloadable object files.
    15275 reload_flag=$lt_reload_flag
    15276 reload_cmds=$lt_reload_cmds
    15277 
    15278 # How to pass a linker flag through the compiler.
    15279 wl=$lt_lt_prog_compiler_wl_F77
    15280 
    15281 # Object file suffix (normally "o").
    15282 objext="$ac_objext"
    15283 
    15284 # Old archive suffix (normally "a").
    15285 libext="$libext"
    15286 
    15287 # Shared library suffix (normally ".so").
    15288 shrext_cmds='$shrext_cmds'
    15289 
    15290 # Executable file suffix (normally "").
    15291 exeext="$exeext"
    15292 
    15293 # Additional compiler flags for building library objects.
    15294 pic_flag=$lt_lt_prog_compiler_pic_F77
    15295 pic_mode=$pic_mode
    15296 
    15297 # What is the maximum length of a command?
    15298 max_cmd_len=$lt_cv_sys_max_cmd_len
    15299 
    15300 # Does compiler simultaneously support -c and -o options?
    15301 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
    15302 
    15303 # Must we lock files when doing compilation ?
    15304 need_locks=$lt_need_locks
    15305 
    15306 # Do we need the lib prefix for modules?
    15307 need_lib_prefix=$need_lib_prefix
    15308 
    15309 # Do we need a version for libraries?
    15310 need_version=$need_version
    15311 
    15312 # Whether dlopen is supported.
    15313 dlopen_support=$enable_dlopen
    15314 
    15315 # Whether dlopen of programs is supported.
    15316 dlopen_self=$enable_dlopen_self
    15317 
    15318 # Whether dlopen of statically linked programs is supported.
    15319 dlopen_self_static=$enable_dlopen_self_static
    15320 
    15321 # Compiler flag to prevent dynamic linking.
    15322 link_static_flag=$lt_lt_prog_compiler_static_F77
    15323 
    15324 # Compiler flag to turn off builtin functions.
    15325 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
    15326 
    15327 # Compiler flag to allow reflexive dlopens.
    15328 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
    15329 
    15330 # Compiler flag to generate shared objects directly from archives.
    15331 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
    15332 
    15333 # Compiler flag to generate thread-safe objects.
    15334 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
    15335 
    15336 # Library versioning type.
    15337 version_type=$version_type
    15338 
    15339 # Format of library name prefix.
    15340 libname_spec=$lt_libname_spec
    15341 
    15342 # List of archive names.  First name is the real one, the rest are links.
    15343 # The last name is the one that the linker finds with -lNAME.
    15344 library_names_spec=$lt_library_names_spec
    15345 
    15346 # The coded name of the library, if different from the real name.
    15347 soname_spec=$lt_soname_spec
    15348 
    15349 # Commands used to build and install an old-style archive.
    15350 RANLIB=$lt_RANLIB
    15351 old_archive_cmds=$lt_old_archive_cmds_F77
    15352 old_postinstall_cmds=$lt_old_postinstall_cmds
    15353 old_postuninstall_cmds=$lt_old_postuninstall_cmds
    15354 
    15355 # Create an old-style archive from a shared archive.
    15356 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
    15357 
    15358 # Create a temporary old-style archive to link instead of a shared archive.
    15359 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
    15360 
    15361 # Commands used to build and install a shared archive.
    15362 archive_cmds=$lt_archive_cmds_F77
    15363 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
    15364 postinstall_cmds=$lt_postinstall_cmds
    15365 postuninstall_cmds=$lt_postuninstall_cmds
    15366 
    15367 # Commands used to build a loadable module (assumed same as above if empty)
    15368 module_cmds=$lt_module_cmds_F77
    15369 module_expsym_cmds=$lt_module_expsym_cmds_F77
    15370 
    15371 # Commands to strip libraries.
    15372 old_striplib=$lt_old_striplib
    15373 striplib=$lt_striplib
    15374 
    15375 # Dependencies to place before the objects being linked to create a
    15376 # shared library.
    15377 predep_objects=$lt_predep_objects_F77
    15378 
    15379 # Dependencies to place after the objects being linked to create a
    15380 # shared library.
    15381 postdep_objects=$lt_postdep_objects_F77
    15382 
    15383 # Dependencies to place before the objects being linked to create a
    15384 # shared library.
    15385 predeps=$lt_predeps_F77
    15386 
    15387 # Dependencies to place after the objects being linked to create a
    15388 # shared library.
    15389 postdeps=$lt_postdeps_F77
    15390 
    15391 # The library search path used internally by the compiler when linking
    15392 # a shared library.
    15393 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
    15394 
    15395 # Method to check whether dependent libraries are shared objects.
    15396 deplibs_check_method=$lt_deplibs_check_method
    15397 
    15398 # Command to use when deplibs_check_method == file_magic.
    15399 file_magic_cmd=$lt_file_magic_cmd
    15400 
    15401 # Flag that allows shared libraries with undefined symbols to be built.
    15402 allow_undefined_flag=$lt_allow_undefined_flag_F77
    15403 
    15404 # Flag that forces no undefined symbols.
    15405 no_undefined_flag=$lt_no_undefined_flag_F77
    15406 
    15407 # Commands used to finish a libtool library installation in a directory.
    15408 finish_cmds=$lt_finish_cmds
    15409 
    15410 # Same as above, but a single script fragment to be evaled but not shown.
    15411 finish_eval=$lt_finish_eval
    15412 
    15413 # Take the output of nm and produce a listing of raw symbols and C names.
    15414 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
    15415 
    15416 # Transform the output of nm in a proper C declaration
    15417 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
    15418 
    15419 # Transform the output of nm in a C name address pair
    15420 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
    15421 
    15422 # This is the shared library runtime path variable.
    15423 runpath_var=$runpath_var
    15424 
    15425 # This is the shared library path variable.
    15426 shlibpath_var=$shlibpath_var
    15427 
    15428 # Is shlibpath searched before the hard-coded library search path?
    15429 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
    15430 
    15431 # How to hardcode a shared library path into an executable.
    15432 hardcode_action=$hardcode_action_F77
    15433 
    15434 # Whether we should hardcode library paths into libraries.
    15435 hardcode_into_libs=$hardcode_into_libs
    15436 
    15437 # Flag to hardcode \$libdir into a binary during linking.
    15438 # This must work even if \$libdir does not exist.
    15439 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
    15440 
    15441 # If ld is used when linking, flag to hardcode \$libdir into
    15442 # a binary during linking. This must work even if \$libdir does
    15443 # not exist.
    15444 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
    15445 
    15446 # Whether we need a single -rpath flag with a separated argument.
    15447 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
    15448 
    15449 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
    15450 # resulting binary.
    15451 hardcode_direct=$hardcode_direct_F77
    15452 
    15453 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
    15454 # resulting binary.
    15455 hardcode_minus_L=$hardcode_minus_L_F77
    15456 
    15457 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
    15458 # the resulting binary.
    15459 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
    15460 
    15461 # Set to yes if building a shared library automatically hardcodes DIR into the library
    15462 # and all subsequent libraries and executables linked against it.
    15463 hardcode_automatic=$hardcode_automatic_F77
    15464 
    15465 # Variables whose values should be saved in libtool wrapper scripts and
    15466 # restored at relink time.
    15467 variables_saved_for_relink="$variables_saved_for_relink"
    15468 
    15469 # Whether libtool must link a program against all its dependency libraries.
    15470 link_all_deplibs=$link_all_deplibs_F77
    15471 
    15472 # Compile-time system search path for libraries
    15473 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
    15474 
    15475 # Run-time system search path for libraries
    15476 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
    15477 
    15478 # Fix the shell variable \$srcfile for the compiler.
    15479 fix_srcfile_path="$fix_srcfile_path_F77"
    15480 
    15481 # Set to yes if exported symbols are required.
    15482 always_export_symbols=$always_export_symbols_F77
    15483 
    15484 # The commands to list exported symbols.
    15485 export_symbols_cmds=$lt_export_symbols_cmds_F77
    15486 
    15487 # The commands to extract the exported symbol list from a shared archive.
    15488 extract_expsyms_cmds=$lt_extract_expsyms_cmds
    15489 
    15490 # Symbols that should not be listed in the preloaded symbols.
    15491 exclude_expsyms=$lt_exclude_expsyms_F77
    15492 
    15493 # Symbols that must always be exported.
    15494 include_expsyms=$lt_include_expsyms_F77
    15495 
    15496 # ### END LIBTOOL TAG CONFIG: $tagname
    15497 
    15498 __EOF__
    15499 
    15500 
    15501 else
    15502   # If there is no Makefile yet, we rely on a make rule to execute
    15503   # `config.status --recheck' to rerun these tests and create the
    15504   # libtool script then.
    15505   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
    15506   if test -f "$ltmain_in"; then
    15507     test -f Makefile && make "$ltmain"
    15508   fi
    15509 fi
    15510 
    15511 
    15512 ac_ext=c
    15513 ac_cpp='$CPP $CPPFLAGS'
    15514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    15515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    15516 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    15517 
    15518 CC="$lt_save_CC"
    15519 
    15520         else
    15521           tagname=""
    15522         fi
    15523         ;;
    15524 
    15525       GCJ)
    15526         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
    15527 
    15528 
    15529 
    15530 # Source file extension for Java test sources.
    15531 ac_ext=java
    15532 
    15533 # Object file extension for compiled Java test sources.
    15534 objext=o
    15535 objext_GCJ=$objext
    15536 
    15537 # Code to be used in simple compile tests
    15538 lt_simple_compile_test_code="class foo {}\n"
    15539 
    15540 # Code to be used in simple link tests
    15541 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
    15542 
    15543 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
    15544 
    15545 # If no C compiler was specified, use CC.
    15546 LTCC=${LTCC-"$CC"}
    15547 
    15548 # Allow CC to be a program name with arguments.
    15549 compiler=$CC
    15550 
    15551 
    15552 # Allow CC to be a program name with arguments.
    15553 lt_save_CC="$CC"
    15554 CC=${GCJ-"gcj"}
    15555 compiler=$CC
    15556 compiler_GCJ=$CC
    15557 
    15558 # GCJ did not exist at the time GCC didn't implicitly link libc in.
    15559 archive_cmds_need_lc_GCJ=no
    15560 
    15561 
    15562 lt_prog_compiler_no_builtin_flag_GCJ=
    15563 
    15564 if test "$GCC" = yes; then
    15565   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
    15566 
    15567 
    15568 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
    15569 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
    15570 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
    15571   echo $ECHO_N "(cached) $ECHO_C" >&6
    15572 else
    15573   lt_cv_prog_compiler_rtti_exceptions=no
    15574   ac_outfile=conftest.$ac_objext
    15575    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
    15576    lt_compiler_flag="-fno-rtti -fno-exceptions"
    15577    # Insert the option either (1) after the last *FLAGS variable, or
    15578    # (2) before a word containing "conftest.", or (3) at the end.
    15579    # Note that $ac_compile itself does not contain backslashes and begins
    15580    # with a dollar sign (not a hyphen), so the echo should work correctly.
    15581    # The option is referenced via a variable to avoid confusing sed.
    15582    lt_compile=`echo "$ac_compile" | $SED \
    15583    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
    15584    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    15585    -e 's:$: $lt_compiler_flag:'`
    15586    (eval echo "\"\$as_me:15586: $lt_compile\"" >&5)
    15587    (eval "$lt_compile" 2>conftest.err)
    15588    ac_status=$?
    15589    cat conftest.err >&5
    15590    echo "$as_me:15590: \$? = $ac_status" >&5
    15591    if (exit $ac_status) && test -s "$ac_outfile"; then
    15592      # The compiler can only warn and ignore the option if not recognized
    15593      # So say no if there are warnings
    15594      if test ! -s conftest.err; then
    15595        lt_cv_prog_compiler_rtti_exceptions=yes
    15596      fi
    15597    fi
    15598    $rm conftest*
    15599 
    15600 fi
    15601 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
    15602 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
    15603 
    15604 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
    15605     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
    15606 else
    15607     :
    15608 fi
    15609 
    15610 fi
    15611 
    15612 lt_prog_compiler_wl_GCJ=
    15613 lt_prog_compiler_pic_GCJ=
    15614 lt_prog_compiler_static_GCJ=
    15615 
    15616 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
    15617 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
    15618 
    15619   if test "$GCC" = yes; then
    15620     lt_prog_compiler_wl_GCJ='-Wl,'
    15621     lt_prog_compiler_static_GCJ='-static'
    15622 
    15623     case $host_os in
    15624       aix*)
    15625       # All AIX code is PIC.
    15626       if test "$host_cpu" = ia64; then
    15627         # AIX 5 now supports IA64 processor
    15628         lt_prog_compiler_static_GCJ='-Bstatic'
    15629       fi
    15630       ;;
    15631 
    15632     amigaos*)
    15633       # FIXME: we need at least 68020 code to build shared libraries, but
    15634       # adding the `-m68020' flag to GCC prevents building anything better,
    15635       # like `-m68040'.
    15636       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
    15637       ;;
    15638 
    15639     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
    15640       # PIC is the default for these OSes.
    15641       ;;
    15642 
    15643     mingw* | pw32* | os2*)
    15644       # This hack is so that the source file can tell whether it is being
    15645       # built for inclusion in a dll (and should export symbols for example).
    15646       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
    15647       ;;
    15648 
    15649     darwin* | rhapsody*)
    15650       # PIC is the default on this platform
    15651       # Common symbols not allowed in MH_DYLIB files
    15652       lt_prog_compiler_pic_GCJ='-fno-common'
    15653       ;;
    15654 
    15655     msdosdjgpp*)
    15656       # Just because we use GCC doesn't mean we suddenly get shared libraries
    15657       # on systems that don't support them.
    15658       lt_prog_compiler_can_build_shared_GCJ=no
    15659       enable_shared=no
    15660       ;;
    15661 
    15662     sysv4*MP*)
    15663       if test -d /usr/nec; then
    15664         lt_prog_compiler_pic_GCJ=-Kconform_pic
    15665       fi
    15666       ;;
    15667 
    15668     hpux*)
    15669       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
    15670       # not for PA HP-UX.
    15671       case "$host_cpu" in
    15672       hppa*64*|ia64*)
    15673         # +Z the default
    15674         ;;
    15675       *)
    15676         lt_prog_compiler_pic_GCJ='-fPIC'
    15677         ;;
    15678       esac
    15679       ;;
    15680 
    15681     *)
    15682       lt_prog_compiler_pic_GCJ='-fPIC'
    15683       ;;
    15684     esac
    15685   else
    15686     # PORTME Check for flag to pass linker flags through the system compiler.
    15687     case $host_os in
    15688     aix*)
    15689       lt_prog_compiler_wl_GCJ='-Wl,'
    15690       if test "$host_cpu" = ia64; then
    15691         # AIX 5 now supports IA64 processor
    15692         lt_prog_compiler_static_GCJ='-Bstatic'
    15693       else
    15694         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
    15695       fi
    15696       ;;
    15697 
    15698     mingw* | pw32* | os2*)
    15699       # This hack is so that the source file can tell whether it is being
    15700       # built for inclusion in a dll (and should export symbols for example).
    15701       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
    15702       ;;
    15703 
    15704     hpux9* | hpux10* | hpux11*)
    15705       lt_prog_compiler_wl_GCJ='-Wl,'
    15706       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
    15707       # not for PA HP-UX.
    15708       case "$host_cpu" in
    15709       hppa*64*|ia64*)
    15710         # +Z the default
    15711         ;;
    15712       *)
    15713         lt_prog_compiler_pic_GCJ='+Z'
    15714         ;;
    15715       esac
    15716       # Is there a better lt_prog_compiler_static that works with the bundled CC?
    15717       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
    15718       ;;
    15719 
    15720     irix5* | irix6* | nonstopux*)
    15721       lt_prog_compiler_wl_GCJ='-Wl,'
    15722       # PIC (with -KPIC) is the default.
    15723       lt_prog_compiler_static_GCJ='-non_shared'
    15724       ;;
    15725 
    15726     newsos6)
    15727       lt_prog_compiler_pic_GCJ='-KPIC'
    15728       lt_prog_compiler_static_GCJ='-Bstatic'
    15729       ;;
    15730 
    15731     linux*)
    15732       case $CC in
    15733       icc* | ecc*)
    15734         lt_prog_compiler_wl_GCJ='-Wl,'
    15735         lt_prog_compiler_pic_GCJ='-KPIC'
    15736         lt_prog_compiler_static_GCJ='-static'
    15737         ;;
    15738       ccc*)
    15739         lt_prog_compiler_wl_GCJ='-Wl,'
    15740         # All Alpha code is PIC.
    15741         lt_prog_compiler_static_GCJ='-non_shared'
    15742         ;;
    15743       esac
    15744       ;;
    15745 
    15746     osf3* | osf4* | osf5*)
    15747       lt_prog_compiler_wl_GCJ='-Wl,'
    15748       # All OSF/1 code is PIC.
    15749       lt_prog_compiler_static_GCJ='-non_shared'
    15750       ;;
    15751 
    15752     sco3.2v5*)
    15753       lt_prog_compiler_pic_GCJ='-Kpic'
    15754       lt_prog_compiler_static_GCJ='-dn'
    15755       ;;
    15756 
    15757     solaris*)
    15758       lt_prog_compiler_wl_GCJ='-Wl,'
    15759       lt_prog_compiler_pic_GCJ='-KPIC'
    15760       lt_prog_compiler_static_GCJ='-Bstatic'
    15761       ;;
    15762 
    15763     sunos4*)
    15764       lt_prog_compiler_wl_GCJ='-Qoption ld '
    15765       lt_prog_compiler_pic_GCJ='-PIC'
    15766       lt_prog_compiler_static_GCJ='-Bstatic'
    15767       ;;
    15768 
    15769     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
    15770       lt_prog_compiler_wl_GCJ='-Wl,'
    15771       lt_prog_compiler_pic_GCJ='-KPIC'
    15772       lt_prog_compiler_static_GCJ='-Bstatic'
    15773       ;;
    15774 
    15775     sysv4*MP*)
    15776       if test -d /usr/nec ;then
    15777         lt_prog_compiler_pic_GCJ='-Kconform_pic'
    15778         lt_prog_compiler_static_GCJ='-Bstatic'
    15779       fi
    15780       ;;
    15781 
    15782     uts4*)
    15783       lt_prog_compiler_pic_GCJ='-pic'
    15784       lt_prog_compiler_static_GCJ='-Bstatic'
    15785       ;;
    15786 
    15787     *)
    15788       lt_prog_compiler_can_build_shared_GCJ=no
    15789       ;;
    15790     esac
    15791   fi
    15792 
    15793 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
    15794 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
    15795 
    15796 #
    15797 # Check to make sure the PIC flag actually works.
    15798 #
    15799 if test -n "$lt_prog_compiler_pic_GCJ"; then
    15800 
    15801 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
    15802 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
    15803 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
    15804   echo $ECHO_N "(cached) $ECHO_C" >&6
    15805 else
    15806   lt_prog_compiler_pic_works_GCJ=no
    15807   ac_outfile=conftest.$ac_objext
    15808    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
    15809    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
    15810    # Insert the option either (1) after the last *FLAGS variable, or
    15811    # (2) before a word containing "conftest.", or (3) at the end.
    15812    # Note that $ac_compile itself does not contain backslashes and begins
    15813    # with a dollar sign (not a hyphen), so the echo should work correctly.
    15814    # The option is referenced via a variable to avoid confusing sed.
    15815    lt_compile=`echo "$ac_compile" | $SED \
    15816    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
    15817    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    15818    -e 's:$: $lt_compiler_flag:'`
    15819    (eval echo "\"\$as_me:15819: $lt_compile\"" >&5)
    15820    (eval "$lt_compile" 2>conftest.err)
    15821    ac_status=$?
    15822    cat conftest.err >&5
    15823    echo "$as_me:15823: \$? = $ac_status" >&5
    15824    if (exit $ac_status) && test -s "$ac_outfile"; then
    15825      # The compiler can only warn and ignore the option if not recognized
    15826      # So say no if there are warnings
    15827      if test ! -s conftest.err; then
    15828        lt_prog_compiler_pic_works_GCJ=yes
    15829      fi
    15830    fi
    15831    $rm conftest*
    15832 
    15833 fi
    15834 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
    15835 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
    15836 
    15837 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
    15838     case $lt_prog_compiler_pic_GCJ in
    15839      "" | " "*) ;;
    15840      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
    15841      esac
    15842 else
    15843     lt_prog_compiler_pic_GCJ=
    15844      lt_prog_compiler_can_build_shared_GCJ=no
    15845 fi
    15846 
    15847 fi
    15848 case "$host_os" in
    15849   # For platforms which do not support PIC, -DPIC is meaningless:
    15850   *djgpp*)
    15851     lt_prog_compiler_pic_GCJ=
    15852     ;;
    15853   *)
    15854     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
    15855     ;;
    15856 esac
    15857 
    15858 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
    15859 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
    15860 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
    15861   echo $ECHO_N "(cached) $ECHO_C" >&6
    15862 else
    15863   lt_cv_prog_compiler_c_o_GCJ=no
    15864    $rm -r conftest 2>/dev/null
    15865    mkdir conftest
    15866    cd conftest
    15867    mkdir out
    15868    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
    15869 
    15870    lt_compiler_flag="-o out/conftest2.$ac_objext"
    15871    # Insert the option either (1) after the last *FLAGS variable, or
    15872    # (2) before a word containing "conftest.", or (3) at the end.
    15873    # Note that $ac_compile itself does not contain backslashes and begins
    15874    # with a dollar sign (not a hyphen), so the echo should work correctly.
    15875    lt_compile=`echo "$ac_compile" | $SED \
    15876    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
    15877    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    15878    -e 's:$: $lt_compiler_flag:'`
    15879    (eval echo "\"\$as_me:15879: $lt_compile\"" >&5)
    15880    (eval "$lt_compile" 2>out/conftest.err)
    15881    ac_status=$?
    15882    cat out/conftest.err >&5
    15883    echo "$as_me:15883: \$? = $ac_status" >&5
    15884    if (exit $ac_status) && test -s out/conftest2.$ac_objext
    15885    then
    15886      # The compiler can only warn and ignore the option if not recognized
    15887      # So say no if there are warnings
    15888      if test ! -s out/conftest.err; then
    15889        lt_cv_prog_compiler_c_o_GCJ=yes
    15890      fi
    15891    fi
    15892    chmod u+w .
    15893    $rm conftest*
    15894    # SGI C++ compiler will create directory out/ii_files/ for
    15895    # template instantiation
    15896    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
    15897    $rm out/* && rmdir out
    15898    cd ..
    15899    rmdir conftest
    15900    $rm conftest*
    15901 
    15902 fi
    15903 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
    15904 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
    15905 
    15906 
    15907 hard_links="nottested"
    15908 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
    15909   # do not overwrite the value of need_locks provided by the user
    15910   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
    15911 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
    15912   hard_links=yes
    15913   $rm conftest*
    15914   ln conftest.a conftest.b 2>/dev/null && hard_links=no
    15915   touch conftest.a
    15916   ln conftest.a conftest.b 2>&5 || hard_links=no
    15917   ln conftest.a conftest.b 2>/dev/null && hard_links=no
    15918   echo "$as_me:$LINENO: result: $hard_links" >&5
    15919 echo "${ECHO_T}$hard_links" >&6
    15920   if test "$hard_links" = no; then
    15921     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
    15922 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
    15923     need_locks=warn
    15924   fi
    15925 else
    15926   need_locks=no
    15927 fi
    15928 
    15929 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
    15930 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
    15931 
    15932   runpath_var=
    15933   allow_undefined_flag_GCJ=
    15934   enable_shared_with_static_runtimes_GCJ=no
    15935   archive_cmds_GCJ=
    15936   archive_expsym_cmds_GCJ=
    15937   old_archive_From_new_cmds_GCJ=
    15938   old_archive_from_expsyms_cmds_GCJ=
    15939   export_dynamic_flag_spec_GCJ=
    15940   whole_archive_flag_spec_GCJ=
    15941   thread_safe_flag_spec_GCJ=
    15942   hardcode_libdir_flag_spec_GCJ=
    15943   hardcode_libdir_flag_spec_ld_GCJ=
    15944   hardcode_libdir_separator_GCJ=
    15945   hardcode_direct_GCJ=no
    15946   hardcode_minus_L_GCJ=no
    15947   hardcode_shlibpath_var_GCJ=unsupported
    15948   link_all_deplibs_GCJ=unknown
    15949   hardcode_automatic_GCJ=no
    15950   module_cmds_GCJ=
    15951   module_expsym_cmds_GCJ=
    15952   always_export_symbols_GCJ=no
    15953   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
    15954   # include_expsyms should be a list of space-separated symbols to be *always*
    15955   # included in the symbol list
    15956   include_expsyms_GCJ=
    15957   # exclude_expsyms can be an extended regexp of symbols to exclude
    15958   # it will be wrapped by ` (' and `)$', so one must not match beginning or
    15959   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
    15960   # as well as any symbol that contains `d'.
    15961   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
    15962   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
    15963   # platforms (ab)use it in PIC code, but their linkers get confused if
    15964   # the symbol is explicitly referenced.  Since portable code cannot
    15965   # rely on this symbol name, it's probably fine to never include it in
    15966   # preloaded symbol tables.
    15967   extract_expsyms_cmds=
    15968 
    15969   case $host_os in
    15970   cygwin* | mingw* | pw32*)
    15971     # FIXME: the MSVC++ port hasn't been tested in a loooong time
    15972     # When not using gcc, we currently assume that we are using
    15973     # Microsoft Visual C++.
    15974     if test "$GCC" != yes; then
    15975       with_gnu_ld=no
    15976     fi
    15977     ;;
    15978   openbsd*)
    15979     with_gnu_ld=no
    15980     ;;
    15981   esac
    15982 
    15983   ld_shlibs_GCJ=yes
    15984   if test "$with_gnu_ld" = yes; then
    15985     # If archive_cmds runs LD, not CC, wlarc should be empty
    15986     wlarc='${wl}'
    15987 
    15988     # See if GNU ld supports shared libraries.
    15989     case $host_os in
    15990     aix3* | aix4* | aix5*)
    15991       # On AIX/PPC, the GNU linker is very broken
    15992       if test "$host_cpu" != ia64; then
    15993         ld_shlibs_GCJ=no
    15994         cat <<EOF 1>&2
    15995 
    15996 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
    15997 *** to be unable to reliably create shared libraries on AIX.
    15998 *** Therefore, libtool is disabling shared libraries support.  If you
    15999 *** really care for shared libraries, you may want to modify your PATH
    16000 *** so that a non-GNU linker is found, and then restart.
    16001 
    16002 EOF
    16003       fi
    16004       ;;
    16005 
    16006     amigaos*)
    16007       archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
    16008       hardcode_libdir_flag_spec_GCJ='-L$libdir'
    16009       hardcode_minus_L_GCJ=yes
    16010 
    16011       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
    16012       # that the semantics of dynamic libraries on AmigaOS, at least up
    16013       # to version 4, is to share data among multiple programs linked
    16014       # with the same dynamic library.  Since this doesn't match the
    16015       # behavior of shared libraries on other platforms, we can't use
    16016       # them.
    16017       ld_shlibs_GCJ=no
    16018       ;;
    16019 
    16020     beos*)
    16021       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
    16022         allow_undefined_flag_GCJ=unsupported
    16023         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
    16024         # support --undefined.  This deserves some investigation.  FIXME
    16025         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
    16026       else
    16027         ld_shlibs_GCJ=no
    16028       fi
    16029       ;;
    16030 
    16031     cygwin* | mingw* | pw32*)
    16032       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
    16033       # as there is no search path for DLLs.
    16034       hardcode_libdir_flag_spec_GCJ='-L$libdir'
    16035       allow_undefined_flag_GCJ=unsupported
    16036       always_export_symbols_GCJ=no
    16037       enable_shared_with_static_runtimes_GCJ=yes
    16038       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
    16039 
    16040       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
    16041         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
    16042         # If the export-symbols file already is a .def file (1st line
    16043         # is EXPORTS), use it as is; otherwise, prepend...
    16044         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
    16045           cp $export_symbols $output_objdir/$soname.def;
    16046         else
    16047           echo EXPORTS > $output_objdir/$soname.def;
    16048           cat $export_symbols >> $output_objdir/$soname.def;
    16049         fi~
    16050         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
    16051       else
    16052         ld_shlibs=no
    16053       fi
    16054       ;;
    16055 
    16056     netbsd*)
    16057       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
    16058         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
    16059         wlarc=
    16060       else
    16061         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
    16062         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
    16063       fi
    16064       ;;
    16065 
    16066     solaris* | sysv5*)
    16067       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
    16068         ld_shlibs_GCJ=no
    16069         cat <<EOF 1>&2
    16070 
    16071 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
    16072 *** create shared libraries on Solaris systems.  Therefore, libtool
    16073 *** is disabling shared libraries support.  We urge you to upgrade GNU
    16074 *** binutils to release 2.9.1 or newer.  Another option is to modify
    16075 *** your PATH or compiler configuration so that the native linker is
    16076 *** used, and then restart.
    16077 
    16078 EOF
    16079       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
    16080         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
    16081         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
    16082       else
    16083         ld_shlibs_GCJ=no
    16084       fi
    16085       ;;
    16086 
    16087     sunos4*)
    16088       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
    16089       wlarc=
    16090       hardcode_direct_GCJ=yes
    16091       hardcode_shlibpath_var_GCJ=no
    16092       ;;
    16093 
    16094   linux*)
    16095     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
    16096         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
    16097         archive_cmds_GCJ="$tmp_archive_cmds"
    16098       supports_anon_versioning=no
    16099       case `$LD -v 2>/dev/null` in
    16100         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
    16101         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
    16102         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
    16103         *\ 2.11.*) ;; # other 2.11 versions
    16104         *) supports_anon_versioning=yes ;;
    16105       esac
    16106       if test $supports_anon_versioning = yes; then
    16107         archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
    16108 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
    16109 $echo "local: *; };" >> $output_objdir/$libname.ver~
    16110         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
    16111       else
    16112         archive_expsym_cmds_GCJ="$tmp_archive_cmds"
    16113       fi
    16114     else
    16115       ld_shlibs_GCJ=no
    16116     fi
    16117     ;;
    16118 
    16119     *)
    16120       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
    16121         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
    16122         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
    16123       else
    16124         ld_shlibs_GCJ=no
    16125       fi
    16126       ;;
    16127     esac
    16128 
    16129     if test "$ld_shlibs_GCJ" = yes; then
    16130       runpath_var=LD_RUN_PATH
    16131       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
    16132       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
    16133       # ancient GNU ld didn't support --whole-archive et. al.
    16134       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
    16135         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
    16136       else
    16137         whole_archive_flag_spec_GCJ=
    16138       fi
    16139     fi
    16140   else
    16141     # PORTME fill in a description of your system's linker (not GNU ld)
    16142     case $host_os in
    16143     aix3*)
    16144       allow_undefined_flag_GCJ=unsupported
    16145       always_export_symbols_GCJ=yes
    16146       archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
    16147       # Note: this linker hardcodes the directories in LIBPATH if there
    16148       # are no directories specified by -L.
    16149       hardcode_minus_L_GCJ=yes
    16150       if test "$GCC" = yes && test -z "$link_static_flag"; then
    16151         # Neither direct hardcoding nor static linking is supported with a
    16152         # broken collect2.
    16153         hardcode_direct_GCJ=unsupported
    16154       fi
    16155       ;;
    16156 
    16157     aix4* | aix5*)
    16158       if test "$host_cpu" = ia64; then
    16159         # On IA64, the linker does run time linking by default, so we don't
    16160         # have to do anything special.
    16161         aix_use_runtimelinking=no
    16162         exp_sym_flag='-Bexport'
    16163         no_entry_flag=""
    16164       else
    16165         # If we're using GNU nm, then we don't want the "-C" option.
    16166         # -C means demangle to AIX nm, but means don't demangle with GNU nm
    16167         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
    16168           export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
    16169         else
    16170           export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
    16171         fi
    16172         aix_use_runtimelinking=no
    16173 
    16174         # Test if we are trying to use run time linking or normal
    16175         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
    16176         # need to do runtime linking.
    16177         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
    16178           for ld_flag in $LDFLAGS; do
    16179           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
    16180             aix_use_runtimelinking=yes
    16181             break
    16182           fi
    16183           done
    16184         esac
    16185 
    16186         exp_sym_flag='-bexport'
    16187         no_entry_flag='-bnoentry'
    16188       fi
    16189 
    16190       # When large executables or shared objects are built, AIX ld can
    16191       # have problems creating the table of contents.  If linking a library
    16192       # or program results in "error TOC overflow" add -mminimal-toc to
    16193       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
    16194       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
    16195 
    16196       archive_cmds_GCJ=''
    16197       hardcode_direct_GCJ=yes
    16198       hardcode_libdir_separator_GCJ=':'
    16199       link_all_deplibs_GCJ=yes
    16200 
    16201       if test "$GCC" = yes; then
    16202         case $host_os in aix4.012|aix4.012.*)
    16203         # We only want to do this on AIX 4.2 and lower, the check
    16204         # below for broken collect2 doesn't work under 4.3+
    16205           collect2name=`${CC} -print-prog-name=collect2`
    16206           if test -f "$collect2name" && \
    16207            strings "$collect2name" | grep resolve_lib_name >/dev/null
    16208           then
    16209           # We have reworked collect2
    16210           hardcode_direct_GCJ=yes
    16211           else
    16212           # We have old collect2
    16213           hardcode_direct_GCJ=unsupported
    16214           # It fails to find uninstalled libraries when the uninstalled
    16215           # path is not listed in the libpath.  Setting hardcode_minus_L
    16216           # to unsupported forces relinking
    16217           hardcode_minus_L_GCJ=yes
    16218           hardcode_libdir_flag_spec_GCJ='-L$libdir'
    16219           hardcode_libdir_separator_GCJ=
    16220           fi
    16221         esac
    16222         shared_flag='-shared'
    16223       else
    16224         # not using gcc
    16225         if test "$host_cpu" = ia64; then
    16226         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
    16227         # chokes on -Wl,-G. The following line is correct:
    16228           shared_flag='-G'
    16229         else
    16230         if test "$aix_use_runtimelinking" = yes; then
    16231             shared_flag='${wl}-G'
    16232           else
    16233             shared_flag='${wl}-bM:SRE'
    16234         fi
    16235         fi
    16236       fi
    16237 
    16238       # It seems that -bexpall does not export symbols beginning with
    16239       # underscore (_), so it is better to generate a list of symbols to export.
    16240       always_export_symbols_GCJ=yes
    16241       if test "$aix_use_runtimelinking" = yes; then
    16242         # Warning - without using the other runtime loading flags (-brtl),
    16243         # -berok will link without error, but may produce a broken library.
    16244         allow_undefined_flag_GCJ='-berok'
    16245        # Determine the default libpath from the value encoded in an empty executable.
    16246        cat >conftest.$ac_ext <<_ACEOF
    16247 /* confdefs.h.  */
    16248 _ACEOF
    16249 cat confdefs.h >>conftest.$ac_ext
    16250 cat >>conftest.$ac_ext <<_ACEOF
    16251 /* end confdefs.h.  */
    16252 
    16253 int
    16254 main ()
    16255 {
    16256 
    16257   ;
    16258   return 0;
    16259 }
    16260 _ACEOF
    16261 rm -f conftest.$ac_objext conftest$ac_exeext
    16262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    16263   (eval $ac_link) 2>conftest.er1
    16264   ac_status=$?
    16265   grep -v '^ *+' conftest.er1 >conftest.err
    16266   rm -f conftest.er1
    16267   cat conftest.err >&5
    16268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    16269   (exit $ac_status); } &&
    16270          { ac_try='test -z "$ac_c_werror_flag"
    16271                          || test ! -s conftest.err'
    16272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    16273   (eval $ac_try) 2>&5
    16274   ac_status=$?
    16275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    16276   (exit $ac_status); }; } &&
    16277          { ac_try='test -s conftest$ac_exeext'
    16278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    16279   (eval $ac_try) 2>&5
    16280   ac_status=$?
    16281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    16282   (exit $ac_status); }; }; then
    16283 
    16284 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
    16285 }'`
    16286 # Check for a 64-bit object if we didn't find anything.
    16287 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; }
    16288 }'`; fi
    16289 else
    16290   echo "$as_me: failed program was:" >&5
    16291 sed 's/^/| /' conftest.$ac_ext >&5
    16292 
    16293 fi
    16294 rm -f conftest.err conftest.$ac_objext \
    16295       conftest$ac_exeext conftest.$ac_ext
    16296 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
    16297 
    16298        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
    16299         archive_expsym_cmds_GCJ="\$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"
    16300        else
    16301         if test "$host_cpu" = ia64; then
    16302           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
    16303           allow_undefined_flag_GCJ="-z nodefs"
    16304           archive_expsym_cmds_GCJ="\$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"
    16305         else
    16306          # Determine the default libpath from the value encoded in an empty executable.
    16307          cat >conftest.$ac_ext <<_ACEOF
    16308 /* confdefs.h.  */
    16309 _ACEOF
    16310 cat confdefs.h >>conftest.$ac_ext
    16311 cat >>conftest.$ac_ext <<_ACEOF
    16312 /* end confdefs.h.  */
    16313 
    16314 int
    16315 main ()
    16316 {
    16317 
    16318   ;
    16319   return 0;
    16320 }
    16321 _ACEOF
    16322 rm -f conftest.$ac_objext conftest$ac_exeext
    16323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    16324   (eval $ac_link) 2>conftest.er1
    16325   ac_status=$?
    16326   grep -v '^ *+' conftest.er1 >conftest.err
    16327   rm -f conftest.er1
    16328   cat conftest.err >&5
    16329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    16330   (exit $ac_status); } &&
    16331          { ac_try='test -z "$ac_c_werror_flag"
    16332                          || test ! -s conftest.err'
    16333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    16334   (eval $ac_try) 2>&5
    16335   ac_status=$?
    16336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    16337   (exit $ac_status); }; } &&
    16338          { ac_try='test -s conftest$ac_exeext'
    16339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    16340   (eval $ac_try) 2>&5
    16341   ac_status=$?
    16342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    16343   (exit $ac_status); }; }; then
    16344 
    16345 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
    16346 }'`
    16347 # Check for a 64-bit object if we didn't find anything.
    16348 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; }
    16349 }'`; fi
    16350 else
    16351   echo "$as_me: failed program was:" >&5
    16352 sed 's/^/| /' conftest.$ac_ext >&5
    16353 
    16354 fi
    16355 rm -f conftest.err conftest.$ac_objext \
    16356       conftest$ac_exeext conftest.$ac_ext
    16357 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
    16358 
    16359          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
    16360           # Warning - without using the other run time loading flags,
    16361           # -berok will link without error, but may produce a broken library.
    16362           no_undefined_flag_GCJ=' ${wl}-bernotok'
    16363           allow_undefined_flag_GCJ=' ${wl}-berok'
    16364           # -bexpall does not export symbols beginning with underscore (_)
    16365           always_export_symbols_GCJ=yes
    16366           # Exported symbols can be pulled into shared objects from archives
    16367           whole_archive_flag_spec_GCJ=' '
    16368           archive_cmds_need_lc_GCJ=yes
    16369           # This is similar to how AIX traditionally builds it's shared libraries.
    16370           archive_expsym_cmds_GCJ="\$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'
    16371         fi
    16372       fi
    16373       ;;
    16374 
    16375     amigaos*)
    16376       archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
    16377       hardcode_libdir_flag_spec_GCJ='-L$libdir'
    16378       hardcode_minus_L_GCJ=yes
    16379       # see comment about different semantics on the GNU ld section
    16380       ld_shlibs_GCJ=no
    16381       ;;
    16382 
    16383     bsdi4*)
    16384       export_dynamic_flag_spec_GCJ=-rdynamic
    16385       ;;
    16386 
    16387     cygwin* | mingw* | pw32*)
    16388       # When not using gcc, we currently assume that we are using
    16389       # Microsoft Visual C++.
    16390       # hardcode_libdir_flag_spec is actually meaningless, as there is
    16391       # no search path for DLLs.
    16392       hardcode_libdir_flag_spec_GCJ=' '
    16393       allow_undefined_flag_GCJ=unsupported
    16394       # Tell ltmain to make .lib files, not .a files.
    16395       libext=lib
    16396       # Tell ltmain to make .dll files, not .so files.
    16397       shrext_cmds=".dll"
    16398       # FIXME: Setting linknames here is a bad hack.
    16399       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
    16400       # The linker will automatically build a .lib file if we build a DLL.
    16401       old_archive_From_new_cmds_GCJ='true'
    16402       # FIXME: Should let the user specify the lib program.
    16403       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
    16404       fix_srcfile_path='`cygpath -w "$srcfile"`'
    16405       enable_shared_with_static_runtimes_GCJ=yes
    16406       ;;
    16407 
    16408     darwin* | rhapsody*)
    16409     if test "$GXX" = yes ; then
    16410       archive_cmds_need_lc_GCJ=no
    16411       case "$host_os" in
    16412       rhapsody* | darwin1.[012])
    16413         allow_undefined_flag_GCJ='-undefined suppress'
    16414         ;;
    16415       *) # Darwin 1.3 on
    16416       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
    16417         allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
    16418       else
    16419         case ${MACOSX_DEPLOYMENT_TARGET} in
    16420           10.[012])
    16421             allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
    16422             ;;
    16423           10.*)
    16424             allow_undefined_flag_GCJ='-undefined dynamic_lookup'
    16425             ;;
    16426         esac
    16427       fi
    16428         ;;
    16429       esac
    16430         lt_int_apple_cc_single_mod=no
    16431         output_verbose_link_cmd='echo'
    16432         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
    16433           lt_int_apple_cc_single_mod=yes
    16434         fi
    16435         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
    16436           archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
    16437         else
    16438         archive_cmds_GCJ='$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'
    16439       fi
    16440       module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
    16441       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
    16442         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
    16443           archive_expsym_cmds_GCJ='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}'
    16444         else
    16445           archive_expsym_cmds_GCJ='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}'
    16446         fi
    16447           module_expsym_cmds_GCJ='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}'
    16448       hardcode_direct_GCJ=no
    16449       hardcode_automatic_GCJ=yes
    16450       hardcode_shlibpath_var_GCJ=unsupported
    16451       whole_archive_flag_spec_GCJ='-all_load $convenience'
    16452       link_all_deplibs_GCJ=yes
    16453     else
    16454       ld_shlibs_GCJ=no
    16455     fi
    16456       ;;
    16457 
    16458     dgux*)
    16459       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
    16460       hardcode_libdir_flag_spec_GCJ='-L$libdir'
    16461       hardcode_shlibpath_var_GCJ=no
    16462       ;;
    16463 
    16464     freebsd1*)
    16465       ld_shlibs_GCJ=no
    16466       ;;
    16467 
    16468     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
    16469     # support.  Future versions do this automatically, but an explicit c++rt0.o
    16470     # does not break anything, and helps significantly (at the cost of a little
    16471     # extra space).
    16472     freebsd2.2*)
    16473       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
    16474       hardcode_libdir_flag_spec_GCJ='-R$libdir'
    16475       hardcode_direct_GCJ=yes
    16476       hardcode_shlibpath_var_GCJ=no
    16477       ;;
    16478 
    16479     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
    16480     freebsd2*)
    16481       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
    16482       hardcode_direct_GCJ=yes
    16483       hardcode_minus_L_GCJ=yes
    16484       hardcode_shlibpath_var_GCJ=no
    16485       ;;
    16486 
    16487     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
    16488     freebsd* | kfreebsd*-gnu)
    16489       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
    16490       hardcode_libdir_flag_spec_GCJ='-R$libdir'
    16491       hardcode_direct_GCJ=yes
    16492       hardcode_shlibpath_var_GCJ=no
    16493       ;;
    16494 
    16495     hpux9*)
    16496       if test "$GCC" = yes; then
    16497         archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
    16498       else
    16499         archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
    16500       fi
    16501       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
    16502       hardcode_libdir_separator_GCJ=:
    16503       hardcode_direct_GCJ=yes
    16504 
    16505       # hardcode_minus_L: Not really in the search PATH,
    16506       # but as the default location of the library.
    16507       hardcode_minus_L_GCJ=yes
    16508       export_dynamic_flag_spec_GCJ='${wl}-E'
    16509       ;;
    16510 
    16511     hpux10* | hpux11*)
    16512       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
    16513         case "$host_cpu" in
    16514         hppa*64*|ia64*)
    16515           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
    16516           ;;
    16517         *)
    16518           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
    16519           ;;
    16520         esac
    16521       else
    16522         case "$host_cpu" in
    16523         hppa*64*|ia64*)
    16524           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
    16525           ;;
    16526         *)
    16527           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
    16528           ;;
    16529         esac
    16530       fi
    16531       if test "$with_gnu_ld" = no; then
    16532         case "$host_cpu" in
    16533         hppa*64*)
    16534           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
    16535           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
    16536           hardcode_libdir_separator_GCJ=:
    16537           hardcode_direct_GCJ=no
    16538           hardcode_shlibpath_var_GCJ=no
    16539           ;;
    16540         ia64*)
    16541           hardcode_libdir_flag_spec_GCJ='-L$libdir'
    16542           hardcode_direct_GCJ=no
    16543           hardcode_shlibpath_var_GCJ=no
    16544 
    16545           # hardcode_minus_L: Not really in the search PATH,
    16546           # but as the default location of the library.
    16547           hardcode_minus_L_GCJ=yes
    16548           ;;
    16549         *)
    16550           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
    16551           hardcode_libdir_separator_GCJ=:
    16552           hardcode_direct_GCJ=yes
    16553           export_dynamic_flag_spec_GCJ='${wl}-E'
    16554 
    16555           # hardcode_minus_L: Not really in the search PATH,
    16556           # but as the default location of the library.
    16557           hardcode_minus_L_GCJ=yes
    16558           ;;
    16559         esac
    16560       fi
    16561       ;;
    16562 
    16563     irix5* | irix6* | nonstopux*)
    16564       if test "$GCC" = yes; then
    16565         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
    16566       else
    16567         archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
    16568         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
    16569       fi
    16570       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
    16571       hardcode_libdir_separator_GCJ=:
    16572       link_all_deplibs_GCJ=yes
    16573       ;;
    16574 
    16575     netbsd*)
    16576       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
    16577         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
    16578       else
    16579         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
    16580       fi
    16581       hardcode_libdir_flag_spec_GCJ='-R$libdir'
    16582       hardcode_direct_GCJ=yes
    16583       hardcode_shlibpath_var_GCJ=no
    16584       ;;
    16585 
    16586     newsos6)
    16587       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
    16588       hardcode_direct_GCJ=yes
    16589       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
    16590       hardcode_libdir_separator_GCJ=:
    16591       hardcode_shlibpath_var_GCJ=no
    16592       ;;
    16593 
    16594     openbsd*)
    16595       hardcode_direct_GCJ=yes
    16596       hardcode_shlibpath_var_GCJ=no
    16597       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
    16598         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
    16599         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
    16600         export_dynamic_flag_spec_GCJ='${wl}-E'
    16601       else
    16602        case $host_os in
    16603          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
    16604            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
    16605            hardcode_libdir_flag_spec_GCJ='-R$libdir'
    16606            ;;
    16607          *)
    16608            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
    16609            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
    16610            ;;
    16611        esac
    16612       fi
    16613       ;;
    16614 
    16615     os2*)
    16616       hardcode_libdir_flag_spec_GCJ='-L$libdir'
    16617       hardcode_minus_L_GCJ=yes
    16618       allow_undefined_flag_GCJ=unsupported
    16619       archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
    16620       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
    16621       ;;
    16622 
    16623     osf3*)
    16624       if test "$GCC" = yes; then
    16625         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
    16626         archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
    16627       else
    16628         allow_undefined_flag_GCJ=' -expect_unresolved \*'
    16629         archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
    16630       fi
    16631       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
    16632       hardcode_libdir_separator_GCJ=:
    16633       ;;
    16634 
    16635     osf4* | osf5*)      # as osf3* with the addition of -msym flag
    16636       if test "$GCC" = yes; then
    16637         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
    16638         archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
    16639         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
    16640       else
    16641         allow_undefined_flag_GCJ=' -expect_unresolved \*'
    16642         archive_cmds_GCJ='$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'
    16643         archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
    16644         $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'
    16645 
    16646         # Both c and cxx compiler support -rpath directly
    16647         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
    16648       fi
    16649       hardcode_libdir_separator_GCJ=:
    16650       ;;
    16651 
    16652     sco3.2v5*)
    16653       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
    16654       hardcode_shlibpath_var_GCJ=no
    16655       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
    16656       runpath_var=LD_RUN_PATH
    16657       hardcode_runpath_var=yes
    16658       ;;
    16659 
    16660     solaris*)
    16661       no_undefined_flag_GCJ=' -z text'
    16662       if test "$GCC" = yes; then
    16663         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
    16664         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
    16665           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
    16666       else
    16667         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
    16668         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
    16669         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
    16670       fi
    16671       hardcode_libdir_flag_spec_GCJ='-R$libdir'
    16672       hardcode_shlibpath_var_GCJ=no
    16673       case $host_os in
    16674       solaris2.[0-5] | solaris2.[0-5].*) ;;
    16675       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
    16676         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
    16677       esac
    16678       link_all_deplibs_GCJ=yes
    16679       ;;
    16680 
    16681     sunos4*)
    16682       if test "x$host_vendor" = xsequent; then
    16683         # Use $CC to link under sequent, because it throws in some extra .o
    16684         # files that make .init and .fini sections work.
    16685         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
    16686       else
    16687         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
    16688       fi
    16689       hardcode_libdir_flag_spec_GCJ='-L$libdir'
    16690       hardcode_direct_GCJ=yes
    16691       hardcode_minus_L_GCJ=yes
    16692       hardcode_shlibpath_var_GCJ=no
    16693       ;;
    16694 
    16695     sysv4)
    16696       case $host_vendor in
    16697         sni)
    16698           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
    16699           hardcode_direct_GCJ=yes # is this really true???
    16700         ;;
    16701         siemens)
    16702           ## LD is ld it makes a PLAMLIB
    16703           ## CC just makes a GrossModule.
    16704           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
    16705           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
    16706           hardcode_direct_GCJ=no
    16707         ;;
    16708         motorola)
    16709           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
    16710           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
    16711         ;;
    16712       esac
    16713       runpath_var='LD_RUN_PATH'
    16714       hardcode_shlibpath_var_GCJ=no
    16715       ;;
    16716 
    16717     sysv4.3*)
    16718       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
    16719       hardcode_shlibpath_var_GCJ=no
    16720       export_dynamic_flag_spec_GCJ='-Bexport'
    16721       ;;
    16722 
    16723     sysv4*MP*)
    16724       if test -d /usr/nec; then
    16725         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
    16726         hardcode_shlibpath_var_GCJ=no
    16727         runpath_var=LD_RUN_PATH
    16728         hardcode_runpath_var=yes
    16729         ld_shlibs_GCJ=yes
    16730       fi
    16731       ;;
    16732 
    16733     sysv4.2uw2*)
    16734       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
    16735       hardcode_direct_GCJ=yes
    16736       hardcode_minus_L_GCJ=no
    16737       hardcode_shlibpath_var_GCJ=no
    16738       hardcode_runpath_var=yes
    16739       runpath_var=LD_RUN_PATH
    16740       ;;
    16741 
    16742    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
    16743       no_undefined_flag_GCJ='${wl}-z ${wl}text'
    16744       if test "$GCC" = yes; then
    16745         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
    16746       else
    16747         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
    16748       fi
    16749       runpath_var='LD_RUN_PATH'
    16750       hardcode_shlibpath_var_GCJ=no
    16751       ;;
    16752 
    16753     sysv5*)
    16754       no_undefined_flag_GCJ=' -z text'
    16755       # $CC -shared without GNU ld will not create a library from C++
    16756       # object files and a static libstdc++, better avoid it by now
    16757       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
    16758       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
    16759                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
    16760       hardcode_libdir_flag_spec_GCJ=
    16761       hardcode_shlibpath_var_GCJ=no
    16762       runpath_var='LD_RUN_PATH'
    16763       ;;
    16764 
    16765     uts4*)
    16766       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
    16767       hardcode_libdir_flag_spec_GCJ='-L$libdir'
    16768       hardcode_shlibpath_var_GCJ=no
    16769       ;;
    16770 
    16771     *)
    16772       ld_shlibs_GCJ=no
    16773       ;;
    16774     esac
    16775   fi
    16776 
    16777 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
    16778 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
    16779 test "$ld_shlibs_GCJ" = no && can_build_shared=no
    16780 
    16781 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
    16782 if test "$GCC" = yes; then
    16783   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
    16784 fi
    16785 
    16786 #
    16787 # Do we need to explicitly link libc?
    16788 #
    16789 case "x$archive_cmds_need_lc_GCJ" in
    16790 x|xyes)
    16791   # Assume -lc should be added
    16792   archive_cmds_need_lc_GCJ=yes
    16793 
    16794   if test "$enable_shared" = yes && test "$GCC" = yes; then
    16795     case $archive_cmds_GCJ in
    16796     *'~'*)
    16797       # FIXME: we may have to deal with multi-command sequences.
    16798       ;;
    16799     '$CC '*)
    16800       # Test whether the compiler implicitly links with -lc since on some
    16801       # systems, -lgcc has to come before -lc. If gcc already passes -lc
    16802       # to ld, don't add -lc before -lgcc.
    16803       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
    16804 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
    16805       $rm conftest*
    16806       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
    16807 
    16808       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    16809   (eval $ac_compile) 2>&5
    16810   ac_status=$?
    16811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    16812   (exit $ac_status); } 2>conftest.err; then
    16813         soname=conftest
    16814         lib=conftest
    16815         libobjs=conftest.$ac_objext
    16816         deplibs=
    16817         wl=$lt_prog_compiler_wl_GCJ
    16818         compiler_flags=-v
    16819         linker_flags=-v
    16820         verstring=
    16821         output_objdir=.
    16822         libname=conftest
    16823         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
    16824         allow_undefined_flag_GCJ=
    16825         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
    16826   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
    16827   ac_status=$?
    16828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    16829   (exit $ac_status); }
    16830         then
    16831           archive_cmds_need_lc_GCJ=no
    16832         else
    16833           archive_cmds_need_lc_GCJ=yes
    16834         fi
    16835         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
    16836       else
    16837         cat conftest.err 1>&5
    16838       fi
    16839       $rm conftest*
    16840       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
    16841 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
    16842       ;;
    16843     esac
    16844   fi
    16845   ;;
    16846 esac
    16847 
    16848 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
    16849 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
    16850 library_names_spec=
    16851 libname_spec='lib$name'
    16852 soname_spec=
    16853 shrext_cmds=".so"
    16854 postinstall_cmds=
    16855 postuninstall_cmds=
    16856 finish_cmds=
    16857 finish_eval=
    16858 shlibpath_var=
    16859 shlibpath_overrides_runpath=unknown
    16860 version_type=none
    16861 dynamic_linker="$host_os ld.so"
    16862 sys_lib_dlsearch_path_spec="/lib /usr/lib"
    16863 if test "$GCC" = yes; then
    16864   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
    16865   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
    16866     # if the path contains ";" then we assume it to be the separator
    16867     # otherwise default to the standard path separator (i.e. ":") - it is
    16868     # assumed that no part of a normal pathname contains ";" but that should
    16869     # okay in the real world where ";" in dirpaths is itself problematic.
    16870     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
    16871   else
    16872     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
    16873   fi
    16874 else
    16875   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
    16876 fi
    16877 need_lib_prefix=unknown
    16878 hardcode_into_libs=no
    16879 
    16880 # when you set need_version to no, make sure it does not cause -set_version
    16881 # flags to be left without arguments
    16882 need_version=unknown
    16883 
    16884 case $host_os in
    16885 aix3*)
    16886   version_type=linux
    16887   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
    16888   shlibpath_var=LIBPATH
    16889 
    16890   # AIX 3 has no versioning support, so we append a major version to the name.
    16891   soname_spec='${libname}${release}${shared_ext}$major'
    16892   ;;
    16893 
    16894 aix4* | aix5*)
    16895   version_type=linux
    16896   need_lib_prefix=no
    16897   need_version=no
    16898   hardcode_into_libs=yes
    16899   if test "$host_cpu" = ia64; then
    16900     # AIX 5 supports IA64
    16901     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
    16902     shlibpath_var=LD_LIBRARY_PATH
    16903   else
    16904     # With GCC up to 2.95.x, collect2 would create an import file
    16905     # for dependence libraries.  The import file would start with
    16906     # the line `#! .'.  This would cause the generated library to
    16907     # depend on `.', always an invalid library.  This was fixed in
    16908     # development snapshots of GCC prior to 3.0.
    16909     case $host_os in
    16910       aix4 | aix4.[01] | aix4.[01].*)
    16911       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
    16912            echo ' yes '
    16913            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
    16914         :
    16915       else
    16916         can_build_shared=no
    16917       fi
    16918       ;;
    16919     esac
    16920     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
    16921     # soname into executable. Probably we can add versioning support to
    16922     # collect2, so additional links can be useful in future.
    16923     if test "$aix_use_runtimelinking" = yes; then
    16924       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
    16925       # instead of lib<name>.a to let people know that these are not
    16926       # typical AIX shared libraries.
    16927       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    16928     else
    16929       # We preserve .a as extension for shared libraries through AIX4.2
    16930       # and later when we are not doing run time linking.
    16931       library_names_spec='${libname}${release}.a $libname.a'
    16932       soname_spec='${libname}${release}${shared_ext}$major'
    16933     fi
    16934     shlibpath_var=LIBPATH
    16935   fi
    16936   ;;
    16937 
    16938 amigaos*)
    16939   library_names_spec='$libname.ixlibrary $libname.a'
    16940   # Create ${libname}_ixlibrary.a entries in /sys/libs.
    16941   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
    16942   ;;
    16943 
    16944 beos*)
    16945   library_names_spec='${libname}${shared_ext}'
    16946   dynamic_linker="$host_os ld.so"
    16947   shlibpath_var=LIBRARY_PATH
    16948   ;;
    16949 
    16950 bsdi4*)
    16951   version_type=linux
    16952   need_version=no
    16953   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    16954   soname_spec='${libname}${release}${shared_ext}$major'
    16955   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
    16956   shlibpath_var=LD_LIBRARY_PATH
    16957   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
    16958   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
    16959   # the default ld.so.conf also contains /usr/contrib/lib and
    16960   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
    16961   # libtool to hard-code these into programs
    16962   ;;
    16963 
    16964 cygwin* | mingw* | pw32*)
    16965   version_type=windows
    16966   shrext_cmds=".dll"
    16967   need_version=no
    16968   need_lib_prefix=no
    16969 
    16970   case $GCC,$host_os in
    16971   yes,cygwin* | yes,mingw* | yes,pw32*)
    16972     library_names_spec='$libname.dll.a'
    16973     # DLL is installed to $(libdir)/../bin by postinstall_cmds
    16974     postinstall_cmds='base_file=`basename \${file}`~
    16975       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
    16976       dldir=$destdir/`dirname \$dlpath`~
    16977       test -d \$dldir || mkdir -p \$dldir~
    16978       $install_prog $dir/$dlname \$dldir/$dlname'
    16979     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
    16980       dlpath=$dir/\$dldll~
    16981        $rm \$dlpath'
    16982     shlibpath_overrides_runpath=yes
    16983 
    16984     case $host_os in
    16985     cygwin*)
    16986       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
    16987       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
    16988       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
    16989       ;;
    16990     mingw*)
    16991       # MinGW DLLs use traditional 'lib' prefix
    16992       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
    16993       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
    16994       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
    16995         # It is most probably a Windows format PATH printed by
    16996         # mingw gcc, but we are running on Cygwin. Gcc prints its search
    16997         # path with ; separators, and with drive letters. We can handle the
    16998         # drive letters (cygwin fileutils understands them), so leave them,
    16999         # especially as we might pass files found there to a mingw objdump,
    17000         # which wouldn't understand a cygwinified path. Ahh.
    17001         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
    17002       else
    17003         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
    17004       fi
    17005       ;;
    17006     pw32*)
    17007       # pw32 DLLs use 'pw' prefix rather than 'lib'
    17008       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
    17009       ;;
    17010     esac
    17011     ;;
    17012 
    17013   *)
    17014     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
    17015     ;;
    17016   esac
    17017   dynamic_linker='Win32 ld.exe'
    17018   # FIXME: first we should search . and the directory the executable is in
    17019   shlibpath_var=PATH
    17020   ;;
    17021 
    17022 darwin* | rhapsody*)
    17023   dynamic_linker="$host_os dyld"
    17024   version_type=darwin
    17025   need_lib_prefix=no
    17026   need_version=no
    17027   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
    17028   soname_spec='${libname}${release}${major}$shared_ext'
    17029   shlibpath_overrides_runpath=yes
    17030   shlibpath_var=DYLD_LIBRARY_PATH
    17031   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
    17032   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
    17033   if test "$GCC" = yes; then
    17034     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"`
    17035   else
    17036     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
    17037   fi
    17038   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
    17039   ;;
    17040 
    17041 dgux*)
    17042   version_type=linux
    17043   need_lib_prefix=no
    17044   need_version=no
    17045   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
    17046   soname_spec='${libname}${release}${shared_ext}$major'
    17047   shlibpath_var=LD_LIBRARY_PATH
    17048   ;;
    17049 
    17050 freebsd1*)
    17051   dynamic_linker=no
    17052   ;;
    17053 
    17054 kfreebsd*-gnu)
    17055   version_type=linux
    17056   need_lib_prefix=no
    17057   need_version=no
    17058   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
    17059   soname_spec='${libname}${release}${shared_ext}$major'
    17060   shlibpath_var=LD_LIBRARY_PATH
    17061   shlibpath_overrides_runpath=no
    17062   hardcode_into_libs=yes
    17063   dynamic_linker='GNU ld.so'
    17064   ;;
    17065 
    17066 freebsd*)
    17067   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
    17068   version_type=freebsd-$objformat
    17069   case $version_type in
    17070     freebsd-elf*)
    17071       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
    17072       need_version=no
    17073       need_lib_prefix=no
    17074       ;;
    17075     freebsd-*)
    17076       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
    17077       need_version=yes
    17078       ;;
    17079   esac
    17080   shlibpath_var=LD_LIBRARY_PATH
    17081   case $host_os in
    17082   freebsd2*)
    17083     shlibpath_overrides_runpath=yes
    17084     ;;
    17085   freebsd3.01* | freebsdelf3.01*)
    17086     shlibpath_overrides_runpath=yes
    17087     hardcode_into_libs=yes
    17088     ;;
    17089   *) # from 3.2 on
    17090     shlibpath_overrides_runpath=no
    17091     hardcode_into_libs=yes
    17092     ;;
    17093   esac
    17094   ;;
    17095 
    17096 gnu*)
    17097   version_type=linux
    17098   need_lib_prefix=no
    17099   need_version=no
    17100   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
    17101   soname_spec='${libname}${release}${shared_ext}$major'
    17102   shlibpath_var=LD_LIBRARY_PATH
    17103   hardcode_into_libs=yes
    17104   ;;
    17105 
    17106 hpux9* | hpux10* | hpux11*)
    17107   # Give a soname corresponding to the major version so that dld.sl refuses to
    17108   # link against other versions.
    17109   version_type=sunos
    17110   need_lib_prefix=no
    17111   need_version=no
    17112   case "$host_cpu" in
    17113   ia64*)
    17114     shrext_cmds='.so'
    17115     hardcode_into_libs=yes
    17116     dynamic_linker="$host_os dld.so"
    17117     shlibpath_var=LD_LIBRARY_PATH
    17118     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
    17119     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    17120     soname_spec='${libname}${release}${shared_ext}$major'
    17121     if test "X$HPUX_IA64_MODE" = X32; then
    17122       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
    17123     else
    17124       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
    17125     fi
    17126     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
    17127     ;;
    17128    hppa*64*)
    17129      shrext_cmds='.sl'
    17130      hardcode_into_libs=yes
    17131      dynamic_linker="$host_os dld.sl"
    17132      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
    17133      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
    17134      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    17135      soname_spec='${libname}${release}${shared_ext}$major'
    17136      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
    17137      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
    17138      ;;
    17139    *)
    17140     shrext_cmds='.sl'
    17141     dynamic_linker="$host_os dld.sl"
    17142     shlibpath_var=SHLIB_PATH
    17143     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
    17144     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    17145     soname_spec='${libname}${release}${shared_ext}$major'
    17146     ;;
    17147   esac
    17148   # HP-UX runs *really* slowly unless shared libraries are mode 555.
    17149   postinstall_cmds='chmod 555 $lib'
    17150   ;;
    17151 
    17152 irix5* | irix6* | nonstopux*)
    17153   case $host_os in
    17154     nonstopux*) version_type=nonstopux ;;
    17155     *)
    17156         if test "$lt_cv_prog_gnu_ld" = yes; then
    17157                 version_type=linux
    17158         else
    17159                 version_type=irix
    17160         fi ;;
    17161   esac
    17162   need_lib_prefix=no
    17163   need_version=no
    17164   soname_spec='${libname}${release}${shared_ext}$major'
    17165   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
    17166   case $host_os in
    17167   irix5* | nonstopux*)
    17168     libsuff= shlibsuff=
    17169     ;;
    17170   *)
    17171     case $LD in # libtool.m4 will add one of these switches to LD
    17172     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
    17173       libsuff= shlibsuff= libmagic=32-bit;;
    17174     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
    17175       libsuff=32 shlibsuff=N32 libmagic=N32;;
    17176     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
    17177       libsuff=64 shlibsuff=64 libmagic=64-bit;;
    17178     *) libsuff= shlibsuff= libmagic=never-match;;
    17179     esac
    17180     ;;
    17181   esac
    17182   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
    17183   shlibpath_overrides_runpath=no
    17184   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
    17185   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
    17186   hardcode_into_libs=yes
    17187   ;;
    17188 
    17189 # No shared lib support for Linux oldld, aout, or coff.
    17190 linux*oldld* | linux*aout* | linux*coff*)
    17191   dynamic_linker=no
    17192   ;;
    17193 
    17194 # This must be Linux ELF.
    17195 linux*)
    17196   version_type=linux
    17197   need_lib_prefix=no
    17198   need_version=no
    17199   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    17200   soname_spec='${libname}${release}${shared_ext}$major'
    17201   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
    17202   shlibpath_var=LD_LIBRARY_PATH
    17203   shlibpath_overrides_runpath=no
    17204   # This implies no fast_install, which is unacceptable.
    17205   # Some rework will be needed to allow for fast_install
    17206   # before this can be enabled.
    17207   hardcode_into_libs=yes
    17208 
    17209   # find out which ABI we are using
    17210   libsuff=
    17211   case "$host_cpu" in
    17212   x86_64*|s390x*|powerpc64*)
    17213     echo '#line 17213 "configure"' > conftest.$ac_ext
    17214     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    17215   (eval $ac_compile) 2>&5
    17216   ac_status=$?
    17217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    17218   (exit $ac_status); }; then
    17219       case `/usr/bin/file conftest.$ac_objext` in
    17220       *64-bit*)
    17221         libsuff=64
    17222         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
    17223         ;;
    17224       esac
    17225     fi
    17226     rm -rf conftest*
    17227     ;;
    17228   esac
    17229 
    17230   # Append ld.so.conf contents to the search path
    17231   if test -f /etc/ld.so.conf; then
    17232     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
    17233     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
    17234   fi
    17235 
    17236   # We used to test for /lib/ld.so.1 and disable shared libraries on
    17237   # powerpc, because MkLinux only supported shared libraries with the
    17238   # GNU dynamic linker.  Since this was broken with cross compilers,
    17239   # most powerpc-linux boxes support dynamic linking these days and
    17240   # people can always --disable-shared, the test was removed, and we
    17241   # assume the GNU/Linux dynamic linker is in use.
    17242   dynamic_linker='GNU/Linux ld.so'
    17243   ;;
    17244 
    17245 knetbsd*-gnu)
    17246   version_type=linux
    17247   need_lib_prefix=no
    17248   need_version=no
    17249   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
    17250   soname_spec='${libname}${release}${shared_ext}$major'
    17251   shlibpath_var=LD_LIBRARY_PATH
    17252   shlibpath_overrides_runpath=no
    17253   hardcode_into_libs=yes
    17254   dynamic_linker='GNU ld.so'
    17255   ;;
    17256 
    17257 netbsd*)
    17258   version_type=sunos
    17259   need_lib_prefix=no
    17260   need_version=no
    17261   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
    17262     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
    17263     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
    17264     dynamic_linker='NetBSD (a.out) ld.so'
    17265   else
    17266     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
    17267     soname_spec='${libname}${release}${shared_ext}$major'
    17268     dynamic_linker='NetBSD ld.elf_so'
    17269   fi
    17270   shlibpath_var=LD_LIBRARY_PATH
    17271   shlibpath_overrides_runpath=yes
    17272   hardcode_into_libs=yes
    17273   ;;
    17274 
    17275 newsos6)
    17276   version_type=linux
    17277   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    17278   shlibpath_var=LD_LIBRARY_PATH
    17279   shlibpath_overrides_runpath=yes
    17280   ;;
    17281 
    17282 nto-qnx*)
    17283   version_type=linux
    17284   need_lib_prefix=no
    17285   need_version=no
    17286   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    17287   soname_spec='${libname}${release}${shared_ext}$major'
    17288   shlibpath_var=LD_LIBRARY_PATH
    17289   shlibpath_overrides_runpath=yes
    17290   ;;
    17291 
    17292 openbsd*)
    17293   version_type=sunos
    17294   need_lib_prefix=no
    17295   need_version=yes
    17296   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
    17297   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
    17298   shlibpath_var=LD_LIBRARY_PATH
    17299   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
    17300     case $host_os in
    17301       openbsd2.[89] | openbsd2.[89].*)
    17302         shlibpath_overrides_runpath=no
    17303         ;;
    17304       *)
    17305         shlibpath_overrides_runpath=yes
    17306         ;;
    17307       esac
    17308   else
    17309     shlibpath_overrides_runpath=yes
    17310   fi
    17311   ;;
    17312 
    17313 os2*)
    17314   libname_spec='$name'
    17315   shrext_cmds=".dll"
    17316   need_lib_prefix=no
    17317   library_names_spec='$libname${shared_ext} $libname.a'
    17318   dynamic_linker='OS/2 ld.exe'
    17319   shlibpath_var=LIBPATH
    17320   ;;
    17321 
    17322 osf3* | osf4* | osf5*)
    17323   version_type=osf
    17324   need_lib_prefix=no
    17325   need_version=no
    17326   soname_spec='${libname}${release}${shared_ext}$major'
    17327   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    17328   shlibpath_var=LD_LIBRARY_PATH
    17329   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
    17330   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
    17331   ;;
    17332 
    17333 sco3.2v5*)
    17334   version_type=osf
    17335   soname_spec='${libname}${release}${shared_ext}$major'
    17336   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    17337   shlibpath_var=LD_LIBRARY_PATH
    17338   ;;
    17339 
    17340 solaris*)
    17341   version_type=linux
    17342   need_lib_prefix=no
    17343   need_version=no
    17344   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    17345   soname_spec='${libname}${release}${shared_ext}$major'
    17346   shlibpath_var=LD_LIBRARY_PATH
    17347   shlibpath_overrides_runpath=yes
    17348   hardcode_into_libs=yes
    17349   # ldd complains unless libraries are executable
    17350   postinstall_cmds='chmod +x $lib'
    17351   ;;
    17352 
    17353 sunos4*)
    17354   version_type=sunos
    17355   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
    17356   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
    17357   shlibpath_var=LD_LIBRARY_PATH
    17358   shlibpath_overrides_runpath=yes
    17359   if test "$with_gnu_ld" = yes; then
    17360     need_lib_prefix=no
    17361   fi
    17362   need_version=yes
    17363   ;;
    17364 
    17365 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
    17366   version_type=linux
    17367   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    17368   soname_spec='${libname}${release}${shared_ext}$major'
    17369   shlibpath_var=LD_LIBRARY_PATH
    17370   case $host_vendor in
    17371     sni)
    17372       shlibpath_overrides_runpath=no
    17373       need_lib_prefix=no
    17374       export_dynamic_flag_spec='${wl}-Blargedynsym'
    17375       runpath_var=LD_RUN_PATH
    17376       ;;
    17377     siemens)
    17378       need_lib_prefix=no
    17379       ;;
    17380     motorola)
    17381       need_lib_prefix=no
    17382       need_version=no
    17383       shlibpath_overrides_runpath=no
    17384       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
    17385       ;;
    17386   esac
    17387   ;;
    17388 
    17389 sysv4*MP*)
    17390   if test -d /usr/nec ;then
    17391     version_type=linux
    17392     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
    17393     soname_spec='$libname${shared_ext}.$major'
    17394     shlibpath_var=LD_LIBRARY_PATH
    17395   fi
    17396   ;;
    17397 
    17398 uts4*)
    17399   version_type=linux
    17400   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    17401   soname_spec='${libname}${release}${shared_ext}$major'
    17402   shlibpath_var=LD_LIBRARY_PATH
    17403   ;;
    17404 
    17405 *)
    17406   dynamic_linker=no
    17407   ;;
    17408 esac
    17409 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
    17410 echo "${ECHO_T}$dynamic_linker" >&6
    17411 test "$dynamic_linker" = no && can_build_shared=no
    17412 
    17413 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
    17414 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
    17415 hardcode_action_GCJ=
    17416 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
    17417    test -n "$runpath_var GCJ" || \
    17418    test "X$hardcode_automatic_GCJ"="Xyes" ; then
    17419 
    17420   # We can hardcode non-existant directories.
    17421   if test "$hardcode_direct_GCJ" != no &&
    17422      # If the only mechanism to avoid hardcoding is shlibpath_var, we
    17423      # have to relink, otherwise we might link with an installed library
    17424      # when we should be linking with a yet-to-be-installed one
    17425      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
    17426      test "$hardcode_minus_L_GCJ" != no; then
    17427     # Linking always hardcodes the temporary library directory.
    17428     hardcode_action_GCJ=relink
    17429   else
    17430     # We can link without hardcoding, and we can hardcode nonexisting dirs.
    17431     hardcode_action_GCJ=immediate
    17432   fi
    17433 else
    17434   # We cannot hardcode anything, or else we can only hardcode existing
    17435   # directories.
    17436   hardcode_action_GCJ=unsupported
    17437 fi
    17438 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
    17439 echo "${ECHO_T}$hardcode_action_GCJ" >&6
    17440 
    17441 if test "$hardcode_action_GCJ" = relink; then
    17442   # Fast installation is not supported
    17443   enable_fast_install=no
    17444 elif test "$shlibpath_overrides_runpath" = yes ||
    17445      test "$enable_shared" = no; then
    17446   # Fast installation is not necessary
    17447   enable_fast_install=needless
    17448 fi
    17449 
    17450 striplib=
    17451 old_striplib=
    17452 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
    17453 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
    17454 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
    17455   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
    17456   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
    17457   echo "$as_me:$LINENO: result: yes" >&5
    17458 echo "${ECHO_T}yes" >&6
    17459 else
    17460 # FIXME - insert some real tests, host_os isn't really good enough
    17461   case $host_os in
    17462    darwin*)
    17463        if test -n "$STRIP" ; then
    17464          striplib="$STRIP -x"
    17465          echo "$as_me:$LINENO: result: yes" >&5
    17466 echo "${ECHO_T}yes" >&6
    17467        else
    17468   echo "$as_me:$LINENO: result: no" >&5
    17469 echo "${ECHO_T}no" >&6
    17470 fi
    17471        ;;
    17472    *)
    17473   echo "$as_me:$LINENO: result: no" >&5
    17474 echo "${ECHO_T}no" >&6
    17475     ;;
    17476   esac
    17477 fi
    17478 
    17479 if test "x$enable_dlopen" != xyes; then
    17480   enable_dlopen=unknown
    17481   enable_dlopen_self=unknown
    17482   enable_dlopen_self_static=unknown
    17483 else
    17484   lt_cv_dlopen=no
    17485   lt_cv_dlopen_libs=
    17486 
    17487   case $host_os in
    17488   beos*)
    17489     lt_cv_dlopen="load_add_on"
    17490     lt_cv_dlopen_libs=
    17491     lt_cv_dlopen_self=yes
    17492     ;;
    17493 
    17494   mingw* | pw32*)
    17495     lt_cv_dlopen="LoadLibrary"
    17496     lt_cv_dlopen_libs=
    17497    ;;
    17498 
    17499   cygwin*)
    17500     lt_cv_dlopen="dlopen"
    17501     lt_cv_dlopen_libs=
    17502    ;;
    17503 
    17504   darwin*)
    17505   # if libdl is installed we need to link against it
    17506     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
    17507 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
    17508 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
    17509   echo $ECHO_N "(cached) $ECHO_C" >&6
    17510 else
    17511   ac_check_lib_save_LIBS=$LIBS
    17512 LIBS="-ldl  $LIBS"
    17513 cat >conftest.$ac_ext <<_ACEOF
    17514 /* confdefs.h.  */
    17515 _ACEOF
    17516 cat confdefs.h >>conftest.$ac_ext
    17517 cat >>conftest.$ac_ext <<_ACEOF
    17518 /* end confdefs.h.  */
    17519 
    17520 /* Override any gcc2 internal prototype to avoid an error.  */
    17521 #ifdef __cplusplus
    17522 extern "C"
    17523 #endif
    17524 /* We use char because int might match the return type of a gcc2
    17525    builtin and then its argument prototype would still apply.  */
    17526 char dlopen ();
    17527 int
    17528 main ()
    17529 {
    17530 dlopen ();
    17531   ;
    17532   return 0;
    17533 }
    17534 _ACEOF
    17535 rm -f conftest.$ac_objext conftest$ac_exeext
    17536 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    17537   (eval $ac_link) 2>conftest.er1
    17538   ac_status=$?
    17539   grep -v '^ *+' conftest.er1 >conftest.err
    17540   rm -f conftest.er1
    17541   cat conftest.err >&5
    17542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    17543   (exit $ac_status); } &&
    17544          { ac_try='test -z "$ac_c_werror_flag"
    17545                          || test ! -s conftest.err'
    17546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    17547   (eval $ac_try) 2>&5
    17548   ac_status=$?
    17549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    17550   (exit $ac_status); }; } &&
    17551          { ac_try='test -s conftest$ac_exeext'
    17552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    17553   (eval $ac_try) 2>&5
    17554   ac_status=$?
    17555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    17556   (exit $ac_status); }; }; then
    17557   ac_cv_lib_dl_dlopen=yes
    17558 else
    17559   echo "$as_me: failed program was:" >&5
    17560 sed 's/^/| /' conftest.$ac_ext >&5
    17561 
    17562 ac_cv_lib_dl_dlopen=no
    17563 fi
    17564 rm -f conftest.err conftest.$ac_objext \
    17565       conftest$ac_exeext conftest.$ac_ext
    17566 LIBS=$ac_check_lib_save_LIBS
    17567 fi
    17568 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
    17569 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
    17570 if test $ac_cv_lib_dl_dlopen = yes; then
    17571   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
    17572 else
    17573 
    17574     lt_cv_dlopen="dyld"
    17575     lt_cv_dlopen_libs=
    17576     lt_cv_dlopen_self=yes
    17577 
    17578 fi
    17579 
    17580    ;;
    17581 
    17582   *)
    17583     echo "$as_me:$LINENO: checking for shl_load" >&5
    17584 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
    17585 if test "${ac_cv_func_shl_load+set}" = set; then
    17586   echo $ECHO_N "(cached) $ECHO_C" >&6
    17587 else
    17588   cat >conftest.$ac_ext <<_ACEOF
    17589 /* confdefs.h.  */
    17590 _ACEOF
    17591 cat confdefs.h >>conftest.$ac_ext
    17592 cat >>conftest.$ac_ext <<_ACEOF
    17593 /* end confdefs.h.  */
    17594 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
    17595    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    17596 #define shl_load innocuous_shl_load
    17597 
    17598 /* System header to define __stub macros and hopefully few prototypes,
    17599     which can conflict with char shl_load (); below.
    17600     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    17601     <limits.h> exists even on freestanding compilers.  */
    17602 
    17603 #ifdef __STDC__
    17604 # include <limits.h>
    17605 #else
    17606 # include <assert.h>
    17607 #endif
    17608 
    17609 #undef shl_load
    17610 
    17611 /* Override any gcc2 internal prototype to avoid an error.  */
    17612 #ifdef __cplusplus
    17613 extern "C"
    17614 {
    17615 #endif
    17616 /* We use char because int might match the return type of a gcc2
    17617    builtin and then its argument prototype would still apply.  */
    17618 char shl_load ();
    17619 /* The GNU C library defines this for functions which it implements
    17620     to always fail with ENOSYS.  Some functions are actually named
    17621     something starting with __ and the normal name is an alias.  */
    17622 #if defined (__stub_shl_load) || defined (__stub___shl_load)
    17623 choke me
    17624 #else
    17625 char (*f) () = shl_load;
    17626 #endif
    17627 #ifdef __cplusplus
    17628 }
    17629 #endif
    17630 
    17631 int
    17632 main ()
    17633 {
    17634 return f != shl_load;
    17635   ;
    17636   return 0;
    17637 }
    17638 _ACEOF
    17639 rm -f conftest.$ac_objext conftest$ac_exeext
    17640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    17641   (eval $ac_link) 2>conftest.er1
    17642   ac_status=$?
    17643   grep -v '^ *+' conftest.er1 >conftest.err
    17644   rm -f conftest.er1
    17645   cat conftest.err >&5
    17646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    17647   (exit $ac_status); } &&
    17648          { ac_try='test -z "$ac_c_werror_flag"
    17649                          || test ! -s conftest.err'
    17650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    17651   (eval $ac_try) 2>&5
    17652   ac_status=$?
    17653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    17654   (exit $ac_status); }; } &&
    17655          { ac_try='test -s conftest$ac_exeext'
    17656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    17657   (eval $ac_try) 2>&5
    17658   ac_status=$?
    17659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    17660   (exit $ac_status); }; }; then
    17661   ac_cv_func_shl_load=yes
    17662 else
    17663   echo "$as_me: failed program was:" >&5
    17664 sed 's/^/| /' conftest.$ac_ext >&5
    17665 
    17666 ac_cv_func_shl_load=no
    17667 fi
    17668 rm -f conftest.err conftest.$ac_objext \
    17669       conftest$ac_exeext conftest.$ac_ext
    17670 fi
    17671 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
    17672 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
    17673 if test $ac_cv_func_shl_load = yes; then
    17674   lt_cv_dlopen="shl_load"
    17675 else
    17676   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
    17677 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
    17678 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
    17679   echo $ECHO_N "(cached) $ECHO_C" >&6
    17680 else
    17681   ac_check_lib_save_LIBS=$LIBS
    17682 LIBS="-ldld  $LIBS"
    17683 cat >conftest.$ac_ext <<_ACEOF
    17684 /* confdefs.h.  */
    17685 _ACEOF
    17686 cat confdefs.h >>conftest.$ac_ext
    17687 cat >>conftest.$ac_ext <<_ACEOF
    17688 /* end confdefs.h.  */
    17689 
    17690 /* Override any gcc2 internal prototype to avoid an error.  */
    17691 #ifdef __cplusplus
    17692 extern "C"
    17693 #endif
    17694 /* We use char because int might match the return type of a gcc2
    17695    builtin and then its argument prototype would still apply.  */
    17696 char shl_load ();
    17697 int
    17698 main ()
    17699 {
    17700 shl_load ();
    17701   ;
    17702   return 0;
    17703 }
    17704 _ACEOF
    17705 rm -f conftest.$ac_objext conftest$ac_exeext
    17706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    17707   (eval $ac_link) 2>conftest.er1
    17708   ac_status=$?
    17709   grep -v '^ *+' conftest.er1 >conftest.err
    17710   rm -f conftest.er1
    17711   cat conftest.err >&5
    17712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    17713   (exit $ac_status); } &&
    17714          { ac_try='test -z "$ac_c_werror_flag"
    17715                          || test ! -s conftest.err'
    17716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    17717   (eval $ac_try) 2>&5
    17718   ac_status=$?
    17719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    17720   (exit $ac_status); }; } &&
    17721          { ac_try='test -s conftest$ac_exeext'
    17722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    17723   (eval $ac_try) 2>&5
    17724   ac_status=$?
    17725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    17726   (exit $ac_status); }; }; then
    17727   ac_cv_lib_dld_shl_load=yes
    17728 else
    17729   echo "$as_me: failed program was:" >&5
    17730 sed 's/^/| /' conftest.$ac_ext >&5
    17731 
    17732 ac_cv_lib_dld_shl_load=no
    17733 fi
    17734 rm -f conftest.err conftest.$ac_objext \
    17735       conftest$ac_exeext conftest.$ac_ext
    17736 LIBS=$ac_check_lib_save_LIBS
    17737 fi
    17738 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
    17739 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
    17740 if test $ac_cv_lib_dld_shl_load = yes; then
    17741   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
    17742 else
    17743   echo "$as_me:$LINENO: checking for dlopen" >&5
    17744 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
    17745 if test "${ac_cv_func_dlopen+set}" = set; then
    17746   echo $ECHO_N "(cached) $ECHO_C" >&6
    17747 else
    17748   cat >conftest.$ac_ext <<_ACEOF
    17749 /* confdefs.h.  */
    17750 _ACEOF
    17751 cat confdefs.h >>conftest.$ac_ext
    17752 cat >>conftest.$ac_ext <<_ACEOF
    17753 /* end confdefs.h.  */
    17754 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
    17755    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
    17756 #define dlopen innocuous_dlopen
    17757 
    17758 /* System header to define __stub macros and hopefully few prototypes,
    17759     which can conflict with char dlopen (); below.
    17760     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    17761     <limits.h> exists even on freestanding compilers.  */
    17762 
    17763 #ifdef __STDC__
    17764 # include <limits.h>
    17765 #else
    17766 # include <assert.h>
    17767 #endif
    17768 
    17769 #undef dlopen
    17770 
    17771 /* Override any gcc2 internal prototype to avoid an error.  */
    17772 #ifdef __cplusplus
    17773 extern "C"
    17774 {
    17775 #endif
    17776 /* We use char because int might match the return type of a gcc2
    17777    builtin and then its argument prototype would still apply.  */
    17778 char dlopen ();
    17779 /* The GNU C library defines this for functions which it implements
    17780     to always fail with ENOSYS.  Some functions are actually named
    17781     something starting with __ and the normal name is an alias.  */
    17782 #if defined (__stub_dlopen) || defined (__stub___dlopen)
    17783 choke me
    17784 #else
    17785 char (*f) () = dlopen;
    17786 #endif
    17787 #ifdef __cplusplus
    17788 }
    17789 #endif
    17790 
    17791 int
    17792 main ()
    17793 {
    17794 return f != dlopen;
    17795   ;
    17796   return 0;
    17797 }
    17798 _ACEOF
    17799 rm -f conftest.$ac_objext conftest$ac_exeext
    17800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    17801   (eval $ac_link) 2>conftest.er1
    17802   ac_status=$?
    17803   grep -v '^ *+' conftest.er1 >conftest.err
    17804   rm -f conftest.er1
    17805   cat conftest.err >&5
    17806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    17807   (exit $ac_status); } &&
    17808          { ac_try='test -z "$ac_c_werror_flag"
    17809                          || test ! -s conftest.err'
    17810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    17811   (eval $ac_try) 2>&5
    17812   ac_status=$?
    17813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    17814   (exit $ac_status); }; } &&
    17815          { ac_try='test -s conftest$ac_exeext'
    17816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    17817   (eval $ac_try) 2>&5
    17818   ac_status=$?
    17819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    17820   (exit $ac_status); }; }; then
    17821   ac_cv_func_dlopen=yes
    17822 else
    17823   echo "$as_me: failed program was:" >&5
    17824 sed 's/^/| /' conftest.$ac_ext >&5
    17825 
    17826 ac_cv_func_dlopen=no
    17827 fi
    17828 rm -f conftest.err conftest.$ac_objext \
    17829       conftest$ac_exeext conftest.$ac_ext
    17830 fi
    17831 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
    17832 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
    17833 if test $ac_cv_func_dlopen = yes; then
    17834   lt_cv_dlopen="dlopen"
    17835 else
    17836   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
    17837 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
    17838 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
    17839   echo $ECHO_N "(cached) $ECHO_C" >&6
    17840 else
    17841   ac_check_lib_save_LIBS=$LIBS
    17842 LIBS="-ldl  $LIBS"
    17843 cat >conftest.$ac_ext <<_ACEOF
    17844 /* confdefs.h.  */
    17845 _ACEOF
    17846 cat confdefs.h >>conftest.$ac_ext
    17847 cat >>conftest.$ac_ext <<_ACEOF
    17848 /* end confdefs.h.  */
    17849 
    17850 /* Override any gcc2 internal prototype to avoid an error.  */
    17851 #ifdef __cplusplus
    17852 extern "C"
    17853 #endif
    17854 /* We use char because int might match the return type of a gcc2
    17855    builtin and then its argument prototype would still apply.  */
    17856 char dlopen ();
    17857 int
    17858 main ()
    17859 {
    17860 dlopen ();
    17861   ;
    17862   return 0;
    17863 }
    17864 _ACEOF
    17865 rm -f conftest.$ac_objext conftest$ac_exeext
    17866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    17867   (eval $ac_link) 2>conftest.er1
    17868   ac_status=$?
    17869   grep -v '^ *+' conftest.er1 >conftest.err
    17870   rm -f conftest.er1
    17871   cat conftest.err >&5
    17872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    17873   (exit $ac_status); } &&
    17874          { ac_try='test -z "$ac_c_werror_flag"
    17875                          || test ! -s conftest.err'
    17876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    17877   (eval $ac_try) 2>&5
    17878   ac_status=$?
    17879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    17880   (exit $ac_status); }; } &&
    17881          { ac_try='test -s conftest$ac_exeext'
    17882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    17883   (eval $ac_try) 2>&5
    17884   ac_status=$?
    17885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    17886   (exit $ac_status); }; }; then
    17887   ac_cv_lib_dl_dlopen=yes
    17888 else
    17889   echo "$as_me: failed program was:" >&5
    17890 sed 's/^/| /' conftest.$ac_ext >&5
    17891 
    17892 ac_cv_lib_dl_dlopen=no
    17893 fi
    17894 rm -f conftest.err conftest.$ac_objext \
    17895       conftest$ac_exeext conftest.$ac_ext
    17896 LIBS=$ac_check_lib_save_LIBS
    17897 fi
    17898 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
    17899 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
    17900 if test $ac_cv_lib_dl_dlopen = yes; then
    17901   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
    17902 else
    17903   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
    17904 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
    17905 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
    17906   echo $ECHO_N "(cached) $ECHO_C" >&6
    17907 else
    17908   ac_check_lib_save_LIBS=$LIBS
    17909 LIBS="-lsvld  $LIBS"
    17910 cat >conftest.$ac_ext <<_ACEOF
    17911 /* confdefs.h.  */
    17912 _ACEOF
    17913 cat confdefs.h >>conftest.$ac_ext
    17914 cat >>conftest.$ac_ext <<_ACEOF
    17915 /* end confdefs.h.  */
    17916 
    17917 /* Override any gcc2 internal prototype to avoid an error.  */
    17918 #ifdef __cplusplus
    17919 extern "C"
    17920 #endif
    17921 /* We use char because int might match the return type of a gcc2
    17922    builtin and then its argument prototype would still apply.  */
    17923 char dlopen ();
    17924 int
    17925 main ()
    17926 {
    17927 dlopen ();
    17928   ;
    17929   return 0;
    17930 }
    17931 _ACEOF
    17932 rm -f conftest.$ac_objext conftest$ac_exeext
    17933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    17934   (eval $ac_link) 2>conftest.er1
    17935   ac_status=$?
    17936   grep -v '^ *+' conftest.er1 >conftest.err
    17937   rm -f conftest.er1
    17938   cat conftest.err >&5
    17939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    17940   (exit $ac_status); } &&
    17941          { ac_try='test -z "$ac_c_werror_flag"
    17942                          || test ! -s conftest.err'
    17943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    17944   (eval $ac_try) 2>&5
    17945   ac_status=$?
    17946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    17947   (exit $ac_status); }; } &&
    17948          { ac_try='test -s conftest$ac_exeext'
    17949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    17950   (eval $ac_try) 2>&5
    17951   ac_status=$?
    17952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    17953   (exit $ac_status); }; }; then
    17954   ac_cv_lib_svld_dlopen=yes
    17955 else
    17956   echo "$as_me: failed program was:" >&5
    17957 sed 's/^/| /' conftest.$ac_ext >&5
    17958 
    17959 ac_cv_lib_svld_dlopen=no
    17960 fi
    17961 rm -f conftest.err conftest.$ac_objext \
    17962       conftest$ac_exeext conftest.$ac_ext
    17963 LIBS=$ac_check_lib_save_LIBS
    17964 fi
    17965 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
    17966 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
    17967 if test $ac_cv_lib_svld_dlopen = yes; then
    17968   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
    17969 else
    17970   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
    17971 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
    17972 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
    17973   echo $ECHO_N "(cached) $ECHO_C" >&6
    17974 else
    17975   ac_check_lib_save_LIBS=$LIBS
    17976 LIBS="-ldld  $LIBS"
    17977 cat >conftest.$ac_ext <<_ACEOF
    17978 /* confdefs.h.  */
    17979 _ACEOF
    17980 cat confdefs.h >>conftest.$ac_ext
    17981 cat >>conftest.$ac_ext <<_ACEOF
    17982 /* end confdefs.h.  */
    17983 
    17984 /* Override any gcc2 internal prototype to avoid an error.  */
    17985 #ifdef __cplusplus
    17986 extern "C"
    17987 #endif
    17988 /* We use char because int might match the return type of a gcc2
    17989    builtin and then its argument prototype would still apply.  */
    17990 char dld_link ();
    17991 int
    17992 main ()
    17993 {
    17994 dld_link ();
    17995   ;
    17996   return 0;
    17997 }
    17998 _ACEOF
    17999 rm -f conftest.$ac_objext conftest$ac_exeext
    18000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    18001   (eval $ac_link) 2>conftest.er1
    18002   ac_status=$?
    18003   grep -v '^ *+' conftest.er1 >conftest.err
    18004   rm -f conftest.er1
    18005   cat conftest.err >&5
    18006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    18007   (exit $ac_status); } &&
    18008          { ac_try='test -z "$ac_c_werror_flag"
    18009                          || test ! -s conftest.err'
    18010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    18011   (eval $ac_try) 2>&5
    18012   ac_status=$?
    18013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    18014   (exit $ac_status); }; } &&
    18015          { ac_try='test -s conftest$ac_exeext'
    18016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    18017   (eval $ac_try) 2>&5
    18018   ac_status=$?
    18019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    18020   (exit $ac_status); }; }; then
    18021   ac_cv_lib_dld_dld_link=yes
    18022 else
    18023   echo "$as_me: failed program was:" >&5
    18024 sed 's/^/| /' conftest.$ac_ext >&5
    18025 
    18026 ac_cv_lib_dld_dld_link=no
    18027 fi
    18028 rm -f conftest.err conftest.$ac_objext \
    18029       conftest$ac_exeext conftest.$ac_ext
    18030 LIBS=$ac_check_lib_save_LIBS
    18031 fi
    18032 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
    18033 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
    18034 if test $ac_cv_lib_dld_dld_link = yes; then
    18035   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
    18036 fi
    18037 
    18038 
    18039 fi
    18040 
    18041 
    18042 fi
    18043 
    18044 
    18045 fi
    18046 
    18047 
    18048 fi
    18049 
    18050 
    18051 fi
    18052 
    18053     ;;
    18054   esac
    18055 
    18056   if test "x$lt_cv_dlopen" != xno; then
    18057     enable_dlopen=yes
    18058   else
    18059     enable_dlopen=no
    18060   fi
    18061 
    18062   case $lt_cv_dlopen in
    18063   dlopen)
    18064     save_CPPFLAGS="$CPPFLAGS"
    18065     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
    18066 
    18067     save_LDFLAGS="$LDFLAGS"
    18068     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
    18069 
    18070     save_LIBS="$LIBS"
    18071     LIBS="$lt_cv_dlopen_libs $LIBS"
    18072 
    18073     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
    18074 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
    18075 if test "${lt_cv_dlopen_self+set}" = set; then
    18076   echo $ECHO_N "(cached) $ECHO_C" >&6
    18077 else
    18078           if test "$cross_compiling" = yes; then :
    18079   lt_cv_dlopen_self=cross
    18080 else
    18081   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
    18082   lt_status=$lt_dlunknown
    18083   cat > conftest.$ac_ext <<EOF
    18084 #line 18084 "configure"
    18085 #include "confdefs.h"
    18086 
    18087 #if HAVE_DLFCN_H
    18088 #include <dlfcn.h>
    18089 #endif
    18090 
    18091 #include <stdio.h>
    18092 
    18093 #ifdef RTLD_GLOBAL
    18094 #  define LT_DLGLOBAL           RTLD_GLOBAL
    18095 #else
    18096 #  ifdef DL_GLOBAL
    18097 #    define LT_DLGLOBAL         DL_GLOBAL
    18098 #  else
    18099 #    define LT_DLGLOBAL         0
    18100 #  endif
    18101 #endif
    18102 
    18103 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
    18104    find out it does not work in some platform. */
    18105 #ifndef LT_DLLAZY_OR_NOW
    18106 #  ifdef RTLD_LAZY
    18107 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
    18108 #  else
    18109 #    ifdef DL_LAZY
    18110 #      define LT_DLLAZY_OR_NOW          DL_LAZY
    18111 #    else
    18112 #      ifdef RTLD_NOW
    18113 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
    18114 #      else
    18115 #        ifdef DL_NOW
    18116 #          define LT_DLLAZY_OR_NOW      DL_NOW
    18117 #        else
    18118 #          define LT_DLLAZY_OR_NOW      0
    18119 #        endif
    18120 #      endif
    18121 #    endif
    18122 #  endif
    18123 #endif
    18124 
    18125 #ifdef __cplusplus
    18126 extern "C" void exit (int);
    18127 #endif
    18128 
    18129 void fnord() { int i=42;}
    18130 int main ()
    18131 {
    18132   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
    18133   int status = $lt_dlunknown;
    18134 
    18135   if (self)
    18136     {
    18137       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
    18138       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
    18139       /* dlclose (self); */
    18140     }
    18141 
    18142     exit (status);
    18143 }
    18144 EOF
    18145   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    18146   (eval $ac_link) 2>&5
    18147   ac_status=$?
    18148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    18149   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
    18150     (./conftest; exit; ) 2>/dev/null
    18151     lt_status=$?
    18152     case x$lt_status in
    18153       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
    18154       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
    18155       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
    18156     esac
    18157   else :
    18158     # compilation failed
    18159     lt_cv_dlopen_self=no
    18160   fi
    18161 fi
    18162 rm -fr conftest*
    18163 
    18164 
    18165 fi
    18166 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
    18167 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
    18168 
    18169     if test "x$lt_cv_dlopen_self" = xyes; then
    18170       LDFLAGS="$LDFLAGS $link_static_flag"
    18171       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
    18172 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
    18173 if test "${lt_cv_dlopen_self_static+set}" = set; then
    18174   echo $ECHO_N "(cached) $ECHO_C" >&6
    18175 else
    18176           if test "$cross_compiling" = yes; then :
    18177   lt_cv_dlopen_self_static=cross
    18178 else
    18179   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
    18180   lt_status=$lt_dlunknown
    18181   cat > conftest.$ac_ext <<EOF
    18182 #line 18182 "configure"
    18183 #include "confdefs.h"
    18184 
    18185 #if HAVE_DLFCN_H
    18186 #include <dlfcn.h>
    18187 #endif
    18188 
    18189 #include <stdio.h>
    18190 
    18191 #ifdef RTLD_GLOBAL
    18192 #  define LT_DLGLOBAL           RTLD_GLOBAL
    18193 #else
    18194 #  ifdef DL_GLOBAL
    18195 #    define LT_DLGLOBAL         DL_GLOBAL
    18196 #  else
    18197 #    define LT_DLGLOBAL         0
    18198 #  endif
    18199 #endif
    18200 
    18201 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
    18202    find out it does not work in some platform. */
    18203 #ifndef LT_DLLAZY_OR_NOW
    18204 #  ifdef RTLD_LAZY
    18205 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
    18206 #  else
    18207 #    ifdef DL_LAZY
    18208 #      define LT_DLLAZY_OR_NOW          DL_LAZY
    18209 #    else
    18210 #      ifdef RTLD_NOW
    18211 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
    18212 #      else
    18213 #        ifdef DL_NOW
    18214 #          define LT_DLLAZY_OR_NOW      DL_NOW
    18215 #        else
    18216 #          define LT_DLLAZY_OR_NOW      0
    18217 #        endif
    18218 #      endif
    18219 #    endif
    18220 #  endif
    18221 #endif
    18222 
    18223 #ifdef __cplusplus
    18224 extern "C" void exit (int);
    18225 #endif
    18226 
    18227 void fnord() { int i=42;}
    18228 int main ()
    18229 {
    18230   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
    18231   int status = $lt_dlunknown;
    18232 
    18233   if (self)
    18234     {
    18235       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
    18236       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
    18237       /* dlclose (self); */
    18238     }
    18239 
    18240     exit (status);
    18241 }
    18242 EOF
    18243   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    18244   (eval $ac_link) 2>&5
    18245   ac_status=$?
    18246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    18247   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
    18248     (./conftest; exit; ) 2>/dev/null
    18249     lt_status=$?
    18250     case x$lt_status in
    18251       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
    18252       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
    18253       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
    18254     esac
    18255   else :
    18256     # compilation failed
    18257     lt_cv_dlopen_self_static=no
    18258   fi
    18259 fi
    18260 rm -fr conftest*
    18261 
    18262 
    18263 fi
    18264 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
    18265 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
    18266     fi
    18267 
    18268     CPPFLAGS="$save_CPPFLAGS"
    18269     LDFLAGS="$save_LDFLAGS"
    18270     LIBS="$save_LIBS"
    18271     ;;
    18272   esac
    18273 
    18274   case $lt_cv_dlopen_self in
    18275   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
    18276   *) enable_dlopen_self=unknown ;;
    18277   esac
    18278 
    18279   case $lt_cv_dlopen_self_static in
    18280   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
    18281   *) enable_dlopen_self_static=unknown ;;
    18282   esac
    18283 fi
    18284 
    18285 
    18286 # The else clause should only fire when bootstrapping the
    18287 # libtool distribution, otherwise you forgot to ship ltmain.sh
    18288 # with your package, and you will get complaints that there are
    18289 # no rules to generate ltmain.sh.
    18290 if test -f "$ltmain"; then
    18291   # See if we are running on zsh, and set the options which allow our commands through
    18292   # without removal of \ escapes.
    18293   if test -n "${ZSH_VERSION+set}" ; then
    18294     setopt NO_GLOB_SUBST
    18295   fi
    18296   # Now quote all the things that may contain metacharacters while being
    18297   # careful not to overquote the AC_SUBSTed values.  We take copies of the
    18298   # variables and quote the copies for generation of the libtool script.
    18299   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
    18300     SED SHELL STRIP \
    18301     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
    18302     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
    18303     deplibs_check_method reload_flag reload_cmds need_locks \
    18304     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
    18305     lt_cv_sys_global_symbol_to_c_name_address \
    18306     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
    18307     old_postinstall_cmds old_postuninstall_cmds \
    18308     compiler_GCJ \
    18309     CC_GCJ \
    18310     LD_GCJ \
    18311     lt_prog_compiler_wl_GCJ \
    18312     lt_prog_compiler_pic_GCJ \
    18313     lt_prog_compiler_static_GCJ \
    18314     lt_prog_compiler_no_builtin_flag_GCJ \
    18315     export_dynamic_flag_spec_GCJ \
    18316     thread_safe_flag_spec_GCJ \
    18317     whole_archive_flag_spec_GCJ \
    18318     enable_shared_with_static_runtimes_GCJ \
    18319     old_archive_cmds_GCJ \
    18320     old_archive_from_new_cmds_GCJ \
    18321     predep_objects_GCJ \
    18322     postdep_objects_GCJ \
    18323     predeps_GCJ \
    18324     postdeps_GCJ \
    18325     compiler_lib_search_path_GCJ \
    18326     archive_cmds_GCJ \
    18327     archive_expsym_cmds_GCJ \
    18328     postinstall_cmds_GCJ \
    18329     postuninstall_cmds_GCJ \
    18330     old_archive_from_expsyms_cmds_GCJ \
    18331     allow_undefined_flag_GCJ \
    18332     no_undefined_flag_GCJ \
    18333     export_symbols_cmds_GCJ \
    18334     hardcode_libdir_flag_spec_GCJ \
    18335     hardcode_libdir_flag_spec_ld_GCJ \
    18336     hardcode_libdir_separator_GCJ \
    18337     hardcode_automatic_GCJ \
    18338     module_cmds_GCJ \
    18339     module_expsym_cmds_GCJ \
    18340     lt_cv_prog_compiler_c_o_GCJ \
    18341     exclude_expsyms_GCJ \
    18342     include_expsyms_GCJ; do
    18343 
    18344     case $var in
    18345     old_archive_cmds_GCJ | \
    18346     old_archive_from_new_cmds_GCJ | \
    18347     archive_cmds_GCJ | \
    18348     archive_expsym_cmds_GCJ | \
    18349     module_cmds_GCJ | \
    18350     module_expsym_cmds_GCJ | \
    18351     old_archive_from_expsyms_cmds_GCJ | \
    18352     export_symbols_cmds_GCJ | \
    18353     extract_expsyms_cmds | reload_cmds | finish_cmds | \
    18354     postinstall_cmds | postuninstall_cmds | \
    18355     old_postinstall_cmds | old_postuninstall_cmds | \
    18356     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
    18357       # Double-quote double-evaled strings.
    18358       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
    18359       ;;
    18360     *)
    18361       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
    18362       ;;
    18363     esac
    18364   done
    18365 
    18366   case $lt_echo in
    18367   *'\$0 --fallback-echo"')
    18368     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
    18369     ;;
    18370   esac
    18371 
    18372 cfgfile="$ofile"
    18373 
    18374   cat <<__EOF__ >> "$cfgfile"
    18375 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
    18376 
    18377 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
    18378 
    18379 # Shell to use when invoking shell scripts.
    18380 SHELL=$lt_SHELL
    18381 
    18382 # Whether or not to build shared libraries.
    18383 build_libtool_libs=$enable_shared
    18384 
    18385 # Whether or not to build static libraries.
    18386 build_old_libs=$enable_static
    18387 
    18388 # Whether or not to add -lc for building shared libraries.
    18389 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
    18390 
    18391 # Whether or not to disallow shared libs when runtime libs are static
    18392 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
    18393 
    18394 # Whether or not to optimize for fast installation.
    18395 fast_install=$enable_fast_install
    18396 
    18397 # The host system.
    18398 host_alias=$host_alias
    18399 host=$host
    18400 
    18401 # An echo program that does not interpret backslashes.
    18402 echo=$lt_echo
    18403 
    18404 # The archiver.
    18405 AR=$lt_AR
    18406 AR_FLAGS=$lt_AR_FLAGS
    18407 
    18408 # A C compiler.
    18409 LTCC=$lt_LTCC
    18410 
    18411 # A language-specific compiler.
    18412 CC=$lt_compiler_GCJ
    18413 
    18414 # Is the compiler the GNU C compiler?
    18415 with_gcc=$GCC_GCJ
    18416 
    18417 # An ERE matcher.
    18418 EGREP=$lt_EGREP
    18419 
    18420 # The linker used to build libraries.
    18421 LD=$lt_LD_GCJ
    18422 
    18423 # Whether we need hard or soft links.
    18424 LN_S=$lt_LN_S
    18425 
    18426 # A BSD-compatible nm program.
    18427 NM=$lt_NM
    18428 
    18429 # A symbol stripping program
    18430 STRIP=$lt_STRIP
    18431 
    18432 # Used to examine libraries when file_magic_cmd begins "file"
    18433 MAGIC_CMD=$MAGIC_CMD
    18434 
    18435 # Used on cygwin: DLL creation program.
    18436 DLLTOOL="$DLLTOOL"
    18437 
    18438 # Used on cygwin: object dumper.
    18439 OBJDUMP="$OBJDUMP"
    18440 
    18441 # Used on cygwin: assembler.
    18442 AS="$AS"
    18443 
    18444 # The name of the directory that contains temporary libtool files.
    18445 objdir=$objdir
    18446 
    18447 # How to create reloadable object files.
    18448 reload_flag=$lt_reload_flag
    18449 reload_cmds=$lt_reload_cmds
    18450 
    18451 # How to pass a linker flag through the compiler.
    18452 wl=$lt_lt_prog_compiler_wl_GCJ
    18453 
    18454 # Object file suffix (normally "o").
    18455 objext="$ac_objext"
    18456 
    18457 # Old archive suffix (normally "a").
    18458 libext="$libext"
    18459 
    18460 # Shared library suffix (normally ".so").
    18461 shrext_cmds='$shrext_cmds'
    18462 
    18463 # Executable file suffix (normally "").
    18464 exeext="$exeext"
    18465 
    18466 # Additional compiler flags for building library objects.
    18467 pic_flag=$lt_lt_prog_compiler_pic_GCJ
    18468 pic_mode=$pic_mode
    18469 
    18470 # What is the maximum length of a command?
    18471 max_cmd_len=$lt_cv_sys_max_cmd_len
    18472 
    18473 # Does compiler simultaneously support -c and -o options?
    18474 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
    18475 
    18476 # Must we lock files when doing compilation ?
    18477 need_locks=$lt_need_locks
    18478 
    18479 # Do we need the lib prefix for modules?
    18480 need_lib_prefix=$need_lib_prefix
    18481 
    18482 # Do we need a version for libraries?
    18483 need_version=$need_version
    18484 
    18485 # Whether dlopen is supported.
    18486 dlopen_support=$enable_dlopen
    18487 
    18488 # Whether dlopen of programs is supported.
    18489 dlopen_self=$enable_dlopen_self
    18490 
    18491 # Whether dlopen of statically linked programs is supported.
    18492 dlopen_self_static=$enable_dlopen_self_static
    18493 
    18494 # Compiler flag to prevent dynamic linking.
    18495 link_static_flag=$lt_lt_prog_compiler_static_GCJ
    18496 
    18497 # Compiler flag to turn off builtin functions.
    18498 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
    18499 
    18500 # Compiler flag to allow reflexive dlopens.
    18501 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
    18502 
    18503 # Compiler flag to generate shared objects directly from archives.
    18504 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
    18505 
    18506 # Compiler flag to generate thread-safe objects.
    18507 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
    18508 
    18509 # Library versioning type.
    18510 version_type=$version_type
    18511 
    18512 # Format of library name prefix.
    18513 libname_spec=$lt_libname_spec
    18514 
    18515 # List of archive names.  First name is the real one, the rest are links.
    18516 # The last name is the one that the linker finds with -lNAME.
    18517 library_names_spec=$lt_library_names_spec
    18518 
    18519 # The coded name of the library, if different from the real name.
    18520 soname_spec=$lt_soname_spec
    18521 
    18522 # Commands used to build and install an old-style archive.
    18523 RANLIB=$lt_RANLIB
    18524 old_archive_cmds=$lt_old_archive_cmds_GCJ
    18525 old_postinstall_cmds=$lt_old_postinstall_cmds
    18526 old_postuninstall_cmds=$lt_old_postuninstall_cmds
    18527 
    18528 # Create an old-style archive from a shared archive.
    18529 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
    18530 
    18531 # Create a temporary old-style archive to link instead of a shared archive.
    18532 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
    18533 
    18534 # Commands used to build and install a shared archive.
    18535 archive_cmds=$lt_archive_cmds_GCJ
    18536 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
    18537 postinstall_cmds=$lt_postinstall_cmds
    18538 postuninstall_cmds=$lt_postuninstall_cmds
    18539 
    18540 # Commands used to build a loadable module (assumed same as above if empty)
    18541 module_cmds=$lt_module_cmds_GCJ
    18542 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
    18543 
    18544 # Commands to strip libraries.
    18545 old_striplib=$lt_old_striplib
    18546 striplib=$lt_striplib
    18547 
    18548 # Dependencies to place before the objects being linked to create a
    18549 # shared library.
    18550 predep_objects=$lt_predep_objects_GCJ
    18551 
    18552 # Dependencies to place after the objects being linked to create a
    18553 # shared library.
    18554 postdep_objects=$lt_postdep_objects_GCJ
    18555 
    18556 # Dependencies to place before the objects being linked to create a
    18557 # shared library.
    18558 predeps=$lt_predeps_GCJ
    18559 
    18560 # Dependencies to place after the objects being linked to create a
    18561 # shared library.
    18562 postdeps=$lt_postdeps_GCJ
    18563 
    18564 # The library search path used internally by the compiler when linking
    18565 # a shared library.
    18566 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
    18567 
    18568 # Method to check whether dependent libraries are shared objects.
    18569 deplibs_check_method=$lt_deplibs_check_method
    18570 
    18571 # Command to use when deplibs_check_method == file_magic.
    18572 file_magic_cmd=$lt_file_magic_cmd
    18573 
    18574 # Flag that allows shared libraries with undefined symbols to be built.
    18575 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
    18576 
    18577 # Flag that forces no undefined symbols.
    18578 no_undefined_flag=$lt_no_undefined_flag_GCJ
    18579 
    18580 # Commands used to finish a libtool library installation in a directory.
    18581 finish_cmds=$lt_finish_cmds
    18582 
    18583 # Same as above, but a single script fragment to be evaled but not shown.
    18584 finish_eval=$lt_finish_eval
    18585 
    18586 # Take the output of nm and produce a listing of raw symbols and C names.
    18587 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
    18588 
    18589 # Transform the output of nm in a proper C declaration
    18590 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
    18591 
    18592 # Transform the output of nm in a C name address pair
    18593 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
    18594 
    18595 # This is the shared library runtime path variable.
    18596 runpath_var=$runpath_var
    18597 
    18598 # This is the shared library path variable.
    18599 shlibpath_var=$shlibpath_var
    18600 
    18601 # Is shlibpath searched before the hard-coded library search path?
    18602 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
    18603 
    18604 # How to hardcode a shared library path into an executable.
    18605 hardcode_action=$hardcode_action_GCJ
    18606 
    18607 # Whether we should hardcode library paths into libraries.
    18608 hardcode_into_libs=$hardcode_into_libs
    18609 
    18610 # Flag to hardcode \$libdir into a binary during linking.
    18611 # This must work even if \$libdir does not exist.
    18612 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
    18613 
    18614 # If ld is used when linking, flag to hardcode \$libdir into
    18615 # a binary during linking. This must work even if \$libdir does
    18616 # not exist.
    18617 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
    18618 
    18619 # Whether we need a single -rpath flag with a separated argument.
    18620 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
    18621 
    18622 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
    18623 # resulting binary.
    18624 hardcode_direct=$hardcode_direct_GCJ
    18625 
    18626 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
    18627 # resulting binary.
    18628 hardcode_minus_L=$hardcode_minus_L_GCJ
    18629 
    18630 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
    18631 # the resulting binary.
    18632 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
    18633 
    18634 # Set to yes if building a shared library automatically hardcodes DIR into the library
    18635 # and all subsequent libraries and executables linked against it.
    18636 hardcode_automatic=$hardcode_automatic_GCJ
    18637 
    18638 # Variables whose values should be saved in libtool wrapper scripts and
    18639 # restored at relink time.
    18640 variables_saved_for_relink="$variables_saved_for_relink"
    18641 
    18642 # Whether libtool must link a program against all its dependency libraries.
    18643 link_all_deplibs=$link_all_deplibs_GCJ
    18644 
    18645 # Compile-time system search path for libraries
    18646 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
    18647 
    18648 # Run-time system search path for libraries
    18649 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
    18650 
    18651 # Fix the shell variable \$srcfile for the compiler.
    18652 fix_srcfile_path="$fix_srcfile_path_GCJ"
    18653 
    18654 # Set to yes if exported symbols are required.
    18655 always_export_symbols=$always_export_symbols_GCJ
    18656 
    18657 # The commands to list exported symbols.
    18658 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
    18659 
    18660 # The commands to extract the exported symbol list from a shared archive.
    18661 extract_expsyms_cmds=$lt_extract_expsyms_cmds
    18662 
    18663 # Symbols that should not be listed in the preloaded symbols.
    18664 exclude_expsyms=$lt_exclude_expsyms_GCJ
    18665 
    18666 # Symbols that must always be exported.
    18667 include_expsyms=$lt_include_expsyms_GCJ
    18668 
    18669 # ### END LIBTOOL TAG CONFIG: $tagname
    18670 
    18671 __EOF__
    18672 
    18673 
    18674 else
    18675   # If there is no Makefile yet, we rely on a make rule to execute
    18676   # `config.status --recheck' to rerun these tests and create the
    18677   # libtool script then.
    18678   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
    18679   if test -f "$ltmain_in"; then
    18680     test -f Makefile && make "$ltmain"
    18681   fi
    18682 fi
    18683 
    18684 
    18685 ac_ext=c
    18686 ac_cpp='$CPP $CPPFLAGS'
    18687 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    18688 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    18689 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    18690 
    18691 CC="$lt_save_CC"
    18692 
    18693         else
    18694           tagname=""
    18695         fi
    18696         ;;
    18697 
    18698       RC)
    18699 
    18700 
    18701 
    18702 # Source file extension for RC test sources.
    18703 ac_ext=rc
    18704 
    18705 # Object file extension for compiled RC test sources.
    18706 objext=o
    18707 objext_RC=$objext
    18708 
    18709 # Code to be used in simple compile tests
    18710 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
    18711 
    18712 # Code to be used in simple link tests
    18713 lt_simple_link_test_code="$lt_simple_compile_test_code"
    18714 
    18715 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
    18716 
    18717 # If no C compiler was specified, use CC.
    18718 LTCC=${LTCC-"$CC"}
    18719 
    18720 # Allow CC to be a program name with arguments.
    18721 compiler=$CC
    18722 
    18723 
    18724 # Allow CC to be a program name with arguments.
    18725 lt_save_CC="$CC"
    18726 CC=${RC-"windres"}
    18727 compiler=$CC
    18728 compiler_RC=$CC
    18729 lt_cv_prog_compiler_c_o_RC=yes
    18730 
    18731 # The else clause should only fire when bootstrapping the
    18732 # libtool distribution, otherwise you forgot to ship ltmain.sh
    18733 # with your package, and you will get complaints that there are
    18734 # no rules to generate ltmain.sh.
    18735 if test -f "$ltmain"; then
    18736   # See if we are running on zsh, and set the options which allow our commands through
    18737   # without removal of \ escapes.
    18738   if test -n "${ZSH_VERSION+set}" ; then
    18739     setopt NO_GLOB_SUBST
    18740   fi
    18741   # Now quote all the things that may contain metacharacters while being
    18742   # careful not to overquote the AC_SUBSTed values.  We take copies of the
    18743   # variables and quote the copies for generation of the libtool script.
    18744   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
    18745     SED SHELL STRIP \
    18746     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
    18747     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
    18748     deplibs_check_method reload_flag reload_cmds need_locks \
    18749     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
    18750     lt_cv_sys_global_symbol_to_c_name_address \
    18751     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
    18752     old_postinstall_cmds old_postuninstall_cmds \
    18753     compiler_RC \
    18754     CC_RC \
    18755     LD_RC \
    18756     lt_prog_compiler_wl_RC \
    18757     lt_prog_compiler_pic_RC \
    18758     lt_prog_compiler_static_RC \
    18759     lt_prog_compiler_no_builtin_flag_RC \
    18760     export_dynamic_flag_spec_RC \
    18761     thread_safe_flag_spec_RC \
    18762     whole_archive_flag_spec_RC \
    18763     enable_shared_with_static_runtimes_RC \
    18764     old_archive_cmds_RC \
    18765     old_archive_from_new_cmds_RC \
    18766     predep_objects_RC \
    18767     postdep_objects_RC \
    18768     predeps_RC \
    18769     postdeps_RC \
    18770     compiler_lib_search_path_RC \
    18771     archive_cmds_RC \
    18772     archive_expsym_cmds_RC \
    18773     postinstall_cmds_RC \
    18774     postuninstall_cmds_RC \
    18775     old_archive_from_expsyms_cmds_RC \
    18776     allow_undefined_flag_RC \
    18777     no_undefined_flag_RC \
    18778     export_symbols_cmds_RC \
    18779     hardcode_libdir_flag_spec_RC \
    18780     hardcode_libdir_flag_spec_ld_RC \
    18781     hardcode_libdir_separator_RC \
    18782     hardcode_automatic_RC \
    18783     module_cmds_RC \
    18784     module_expsym_cmds_RC \
    18785     lt_cv_prog_compiler_c_o_RC \
    18786     exclude_expsyms_RC \
    18787     include_expsyms_RC; do
    18788 
    18789     case $var in
    18790     old_archive_cmds_RC | \
    18791     old_archive_from_new_cmds_RC | \
    18792     archive_cmds_RC | \
    18793     archive_expsym_cmds_RC | \
    18794     module_cmds_RC | \
    18795     module_expsym_cmds_RC | \
    18796     old_archive_from_expsyms_cmds_RC | \
    18797     export_symbols_cmds_RC | \
    18798     extract_expsyms_cmds | reload_cmds | finish_cmds | \
    18799     postinstall_cmds | postuninstall_cmds | \
    18800     old_postinstall_cmds | old_postuninstall_cmds | \
    18801     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
    18802       # Double-quote double-evaled strings.
    18803       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
    18804       ;;
    18805     *)
    18806       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
    18807       ;;
    18808     esac
    18809   done
    18810 
    18811   case $lt_echo in
    18812   *'\$0 --fallback-echo"')
    18813     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
    18814     ;;
    18815   esac
    18816 
    18817 cfgfile="$ofile"
    18818 
    18819   cat <<__EOF__ >> "$cfgfile"
    18820 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
    18821 
    18822 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
    18823 
    18824 # Shell to use when invoking shell scripts.
    18825 SHELL=$lt_SHELL
    18826 
    18827 # Whether or not to build shared libraries.
    18828 build_libtool_libs=$enable_shared
    18829 
    18830 # Whether or not to build static libraries.
    18831 build_old_libs=$enable_static
    18832 
    18833 # Whether or not to add -lc for building shared libraries.
    18834 build_libtool_need_lc=$archive_cmds_need_lc_RC
    18835 
    18836 # Whether or not to disallow shared libs when runtime libs are static
    18837 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
    18838 
    18839 # Whether or not to optimize for fast installation.
    18840 fast_install=$enable_fast_install
    18841 
    18842 # The host system.
    18843 host_alias=$host_alias
    18844 host=$host
    18845 
    18846 # An echo program that does not interpret backslashes.
    18847 echo=$lt_echo
    18848 
    18849 # The archiver.
    18850 AR=$lt_AR
    18851 AR_FLAGS=$lt_AR_FLAGS
    18852 
    18853 # A C compiler.
    18854 LTCC=$lt_LTCC
    18855 
    18856 # A language-specific compiler.
    18857 CC=$lt_compiler_RC
    18858 
    18859 # Is the compiler the GNU C compiler?
    18860 with_gcc=$GCC_RC
    18861 
    18862 # An ERE matcher.
    18863 EGREP=$lt_EGREP
    18864 
    18865 # The linker used to build libraries.
    18866 LD=$lt_LD_RC
    18867 
    18868 # Whether we need hard or soft links.
    18869 LN_S=$lt_LN_S
    18870 
    18871 # A BSD-compatible nm program.
    18872 NM=$lt_NM
    18873 
    18874 # A symbol stripping program
    18875 STRIP=$lt_STRIP
    18876 
    18877 # Used to examine libraries when file_magic_cmd begins "file"
    18878 MAGIC_CMD=$MAGIC_CMD
    18879 
    18880 # Used on cygwin: DLL creation program.
    18881 DLLTOOL="$DLLTOOL"
    18882 
    18883 # Used on cygwin: object dumper.
    18884 OBJDUMP="$OBJDUMP"
    18885 
    18886 # Used on cygwin: assembler.
    18887 AS="$AS"
    18888 
    18889 # The name of the directory that contains temporary libtool files.
    18890 objdir=$objdir
    18891 
    18892 # How to create reloadable object files.
    18893 reload_flag=$lt_reload_flag
    18894 reload_cmds=$lt_reload_cmds
    18895 
    18896 # How to pass a linker flag through the compiler.
    18897 wl=$lt_lt_prog_compiler_wl_RC
    18898 
    18899 # Object file suffix (normally "o").
    18900 objext="$ac_objext"
    18901 
    18902 # Old archive suffix (normally "a").
    18903 libext="$libext"
    18904 
    18905 # Shared library suffix (normally ".so").
    18906 shrext_cmds='$shrext_cmds'
    18907 
    18908 # Executable file suffix (normally "").
    18909 exeext="$exeext"
    18910 
    18911 # Additional compiler flags for building library objects.
    18912 pic_flag=$lt_lt_prog_compiler_pic_RC
    18913 pic_mode=$pic_mode
    18914 
    18915 # What is the maximum length of a command?
    18916 max_cmd_len=$lt_cv_sys_max_cmd_len
    18917 
    18918 # Does compiler simultaneously support -c and -o options?
    18919 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
    18920 
    18921 # Must we lock files when doing compilation ?
    18922 need_locks=$lt_need_locks
    18923 
    18924 # Do we need the lib prefix for modules?
    18925 need_lib_prefix=$need_lib_prefix
    18926 
    18927 # Do we need a version for libraries?
    18928 need_version=$need_version
    18929 
    18930 # Whether dlopen is supported.
    18931 dlopen_support=$enable_dlopen
    18932 
    18933 # Whether dlopen of programs is supported.
    18934 dlopen_self=$enable_dlopen_self
    18935 
    18936 # Whether dlopen of statically linked programs is supported.
    18937 dlopen_self_static=$enable_dlopen_self_static
    18938 
    18939 # Compiler flag to prevent dynamic linking.
    18940 link_static_flag=$lt_lt_prog_compiler_static_RC
    18941 
    18942 # Compiler flag to turn off builtin functions.
    18943 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
    18944 
    18945 # Compiler flag to allow reflexive dlopens.
    18946 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
    18947 
    18948 # Compiler flag to generate shared objects directly from archives.
    18949 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
    18950 
    18951 # Compiler flag to generate thread-safe objects.
    18952 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
    18953 
    18954 # Library versioning type.
    18955 version_type=$version_type
    18956 
    18957 # Format of library name prefix.
    18958 libname_spec=$lt_libname_spec
    18959 
    18960 # List of archive names.  First name is the real one, the rest are links.
    18961 # The last name is the one that the linker finds with -lNAME.
    18962 library_names_spec=$lt_library_names_spec
    18963 
    18964 # The coded name of the library, if different from the real name.
    18965 soname_spec=$lt_soname_spec
    18966 
    18967 # Commands used to build and install an old-style archive.
    18968 RANLIB=$lt_RANLIB
    18969 old_archive_cmds=$lt_old_archive_cmds_RC
    18970 old_postinstall_cmds=$lt_old_postinstall_cmds
    18971 old_postuninstall_cmds=$lt_old_postuninstall_cmds
    18972 
    18973 # Create an old-style archive from a shared archive.
    18974 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
    18975 
    18976 # Create a temporary old-style archive to link instead of a shared archive.
    18977 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
    18978 
    18979 # Commands used to build and install a shared archive.
    18980 archive_cmds=$lt_archive_cmds_RC
    18981 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
    18982 postinstall_cmds=$lt_postinstall_cmds
    18983 postuninstall_cmds=$lt_postuninstall_cmds
    18984 
    18985 # Commands used to build a loadable module (assumed same as above if empty)
    18986 module_cmds=$lt_module_cmds_RC
    18987 module_expsym_cmds=$lt_module_expsym_cmds_RC
    18988 
    18989 # Commands to strip libraries.
    18990 old_striplib=$lt_old_striplib
    18991 striplib=$lt_striplib
    18992 
    18993 # Dependencies to place before the objects being linked to create a
    18994 # shared library.
    18995 predep_objects=$lt_predep_objects_RC
    18996 
    18997 # Dependencies to place after the objects being linked to create a
    18998 # shared library.
    18999 postdep_objects=$lt_postdep_objects_RC
    19000 
    19001 # Dependencies to place before the objects being linked to create a
    19002 # shared library.
    19003 predeps=$lt_predeps_RC
    19004 
    19005 # Dependencies to place after the objects being linked to create a
    19006 # shared library.
    19007 postdeps=$lt_postdeps_RC
    19008 
    19009 # The library search path used internally by the compiler when linking
    19010 # a shared library.
    19011 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
    19012 
    19013 # Method to check whether dependent libraries are shared objects.
    19014 deplibs_check_method=$lt_deplibs_check_method
    19015 
    19016 # Command to use when deplibs_check_method == file_magic.
    19017 file_magic_cmd=$lt_file_magic_cmd
    19018 
    19019 # Flag that allows shared libraries with undefined symbols to be built.
    19020 allow_undefined_flag=$lt_allow_undefined_flag_RC
    19021 
    19022 # Flag that forces no undefined symbols.
    19023 no_undefined_flag=$lt_no_undefined_flag_RC
    19024 
    19025 # Commands used to finish a libtool library installation in a directory.
    19026 finish_cmds=$lt_finish_cmds
    19027 
    19028 # Same as above, but a single script fragment to be evaled but not shown.
    19029 finish_eval=$lt_finish_eval
    19030 
    19031 # Take the output of nm and produce a listing of raw symbols and C names.
    19032 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
    19033 
    19034 # Transform the output of nm in a proper C declaration
    19035 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
    19036 
    19037 # Transform the output of nm in a C name address pair
    19038 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
    19039 
    19040 # This is the shared library runtime path variable.
    19041 runpath_var=$runpath_var
    19042 
    19043 # This is the shared library path variable.
    19044 shlibpath_var=$shlibpath_var
    19045 
    19046 # Is shlibpath searched before the hard-coded library search path?
    19047 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
    19048 
    19049 # How to hardcode a shared library path into an executable.
    19050 hardcode_action=$hardcode_action_RC
    19051 
    19052 # Whether we should hardcode library paths into libraries.
    19053 hardcode_into_libs=$hardcode_into_libs
    19054 
    19055 # Flag to hardcode \$libdir into a binary during linking.
    19056 # This must work even if \$libdir does not exist.
    19057 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
    19058 
    19059 # If ld is used when linking, flag to hardcode \$libdir into
    19060 # a binary during linking. This must work even if \$libdir does
    19061 # not exist.
    19062 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
    19063 
    19064 # Whether we need a single -rpath flag with a separated argument.
    19065 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
    19066 
    19067 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
    19068 # resulting binary.
    19069 hardcode_direct=$hardcode_direct_RC
    19070 
    19071 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
    19072 # resulting binary.
    19073 hardcode_minus_L=$hardcode_minus_L_RC
    19074 
    19075 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
    19076 # the resulting binary.
    19077 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
    19078 
    19079 # Set to yes if building a shared library automatically hardcodes DIR into the library
    19080 # and all subsequent libraries and executables linked against it.
    19081 hardcode_automatic=$hardcode_automatic_RC
    19082 
    19083 # Variables whose values should be saved in libtool wrapper scripts and
    19084 # restored at relink time.
    19085 variables_saved_for_relink="$variables_saved_for_relink"
    19086 
    19087 # Whether libtool must link a program against all its dependency libraries.
    19088 link_all_deplibs=$link_all_deplibs_RC
    19089 
    19090 # Compile-time system search path for libraries
    19091 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
    19092 
    19093 # Run-time system search path for libraries
    19094 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
    19095 
    19096 # Fix the shell variable \$srcfile for the compiler.
    19097 fix_srcfile_path="$fix_srcfile_path_RC"
    19098 
    19099 # Set to yes if exported symbols are required.
    19100 always_export_symbols=$always_export_symbols_RC
    19101 
    19102 # The commands to list exported symbols.
    19103 export_symbols_cmds=$lt_export_symbols_cmds_RC
    19104 
    19105 # The commands to extract the exported symbol list from a shared archive.
    19106 extract_expsyms_cmds=$lt_extract_expsyms_cmds
    19107 
    19108 # Symbols that should not be listed in the preloaded symbols.
    19109 exclude_expsyms=$lt_exclude_expsyms_RC
    19110 
    19111 # Symbols that must always be exported.
    19112 include_expsyms=$lt_include_expsyms_RC
    19113 
    19114 # ### END LIBTOOL TAG CONFIG: $tagname
    19115 
    19116 __EOF__
    19117 
    19118 
    19119 else
    19120   # If there is no Makefile yet, we rely on a make rule to execute
    19121   # `config.status --recheck' to rerun these tests and create the
    19122   # libtool script then.
    19123   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
    19124   if test -f "$ltmain_in"; then
    19125     test -f Makefile && make "$ltmain"
    19126   fi
    19127 fi
    19128 
    19129 
    19130 ac_ext=c
    19131 ac_cpp='$CPP $CPPFLAGS'
    19132 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    19133 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    19134 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    19135 
    19136 CC="$lt_save_CC"
    19137 
    19138         ;;
    19139 
    19140       *)
    19141         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
    19142 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
    19143    { (exit 1); exit 1; }; }
    19144         ;;
    19145       esac
    19146 
    19147       # Append the new tag name to the list of available tags.
    19148       if test -n "$tagname" ; then
    19149       available_tags="$available_tags $tagname"
    19150     fi
    19151     fi
    19152   done
    19153   IFS="$lt_save_ifs"
    19154 
    19155   # Now substitute the updated list of available tags.
    19156   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
    19157     mv "${ofile}T" "$ofile"
    19158     chmod +x "$ofile"
    19159   else
    19160     rm -f "${ofile}T"
    19161     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
    19162 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
    19163    { (exit 1); exit 1; }; }
    19164   fi
    19165 fi
     7828fi
     7829
     7830
    191667831
    191677832
     
    191747839
    191757840# Prevent multiple expansion
    19176 
    19177 
    19178 
    19179 
    19180 
    19181 
    19182 
    19183 
    19184 
    19185 
    19186 
    19187 
    19188 
    19189 
    19190 
    19191 
    19192 
    19193 
    191947841
    191957842
     
    193377984LIBS="-lsla  $LIBS"
    193387985cat >conftest.$ac_ext <<_ACEOF
     7986#line $LINENO "configure"
    193397987/* confdefs.h.  */
    193407988_ACEOF
     
    193548002rm -f conftest.$ac_objext conftest$ac_exeext
    193558003if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    19356   (eval $ac_link) 2>conftest.er1
     8004  (eval $ac_link) 2>&5
    193578005  ac_status=$?
    19358   grep -v '^ *+' conftest.er1 >conftest.err
    19359   rm -f conftest.er1
    19360   cat conftest.err >&5
    193618006  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    193628007  (exit $ac_status); } &&
    19363          { ac_try='test -z "$ac_c_werror_flag"
    19364                          || test ! -s conftest.err'
    19365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    19366   (eval $ac_try) 2>&5
    19367   ac_status=$?
    19368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    19369   (exit $ac_status); }; } &&
    19370          { ac_try='test -s conftest$ac_exeext'
     8008         { ac_try='test -s conftest$ac_exeext'
    193718009  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    193728010  (eval $ac_try) 2>&5
     
    193818019ac_cv_lib_sla_main=no
    193828020fi
    19383 rm -f conftest.err conftest.$ac_objext \
    19384       conftest$ac_exeext conftest.$ac_ext
     8021rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    193858022LIBS=$ac_check_lib_save_LIBS
    193868023fi
     
    194098046LIBS="-lcfitsio  $LIBS"
    194108047cat >conftest.$ac_ext <<_ACEOF
     8048#line $LINENO "configure"
    194118049/* confdefs.h.  */
    194128050_ACEOF
     
    194268064rm -f conftest.$ac_objext conftest$ac_exeext
    194278065if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    19428   (eval $ac_link) 2>conftest.er1
     8066  (eval $ac_link) 2>&5
    194298067  ac_status=$?
    19430   grep -v '^ *+' conftest.er1 >conftest.err
    19431   rm -f conftest.er1
    19432   cat conftest.err >&5
    194338068  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    194348069  (exit $ac_status); } &&
    19435          { ac_try='test -z "$ac_c_werror_flag"
    19436                          || test ! -s conftest.err'
    19437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    19438   (eval $ac_try) 2>&5
    19439   ac_status=$?
    19440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    19441   (exit $ac_status); }; } &&
    19442          { ac_try='test -s conftest$ac_exeext'
     8070         { ac_try='test -s conftest$ac_exeext'
    194438071  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    194448072  (eval $ac_try) 2>&5
     
    194538081ac_cv_lib_cfitsio_main=no
    194548082fi
    19455 rm -f conftest.err conftest.$ac_objext \
    19456       conftest$ac_exeext conftest.$ac_ext
     8083rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    194578084LIBS=$ac_check_lib_save_LIBS
    194588085fi
     
    194818108LIBS="-lfftw3f  $LIBS"
    194828109cat >conftest.$ac_ext <<_ACEOF
     8110#line $LINENO "configure"
    194838111/* confdefs.h.  */
    194848112_ACEOF
     
    194988126rm -f conftest.$ac_objext conftest$ac_exeext
    194998127if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    19500   (eval $ac_link) 2>conftest.er1
     8128  (eval $ac_link) 2>&5
    195018129  ac_status=$?
    19502   grep -v '^ *+' conftest.er1 >conftest.err
    19503   rm -f conftest.er1
    19504   cat conftest.err >&5
    195058130  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    195068131  (exit $ac_status); } &&
    19507          { ac_try='test -z "$ac_c_werror_flag"
    19508                          || test ! -s conftest.err'
    19509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    19510   (eval $ac_try) 2>&5
    19511   ac_status=$?
    19512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    19513   (exit $ac_status); }; } &&
    19514          { ac_try='test -s conftest$ac_exeext'
     8132         { ac_try='test -s conftest$ac_exeext'
    195158133  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    195168134  (eval $ac_try) 2>&5
     
    195258143ac_cv_lib_fftw3f_main=no
    195268144fi
    19527 rm -f conftest.err conftest.$ac_objext \
    19528       conftest$ac_exeext conftest.$ac_ext
     8145rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    195298146LIBS=$ac_check_lib_save_LIBS
    195308147fi
     
    195538170LIBS="-lgsl  $LIBS"
    195548171cat >conftest.$ac_ext <<_ACEOF
     8172#line $LINENO "configure"
    195558173/* confdefs.h.  */
    195568174_ACEOF
     
    195708188rm -f conftest.$ac_objext conftest$ac_exeext
    195718189if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    19572   (eval $ac_link) 2>conftest.er1
     8190  (eval $ac_link) 2>&5
    195738191  ac_status=$?
    19574   grep -v '^ *+' conftest.er1 >conftest.err
    19575   rm -f conftest.er1
    19576   cat conftest.err >&5
    195778192  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    195788193  (exit $ac_status); } &&
    19579          { ac_try='test -z "$ac_c_werror_flag"
    19580                          || test ! -s conftest.err'
    19581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    19582   (eval $ac_try) 2>&5
    19583   ac_status=$?
    19584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    19585   (exit $ac_status); }; } &&
    19586          { ac_try='test -s conftest$ac_exeext'
     8194         { ac_try='test -s conftest$ac_exeext'
    195878195  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    195888196  (eval $ac_try) 2>&5
     
    195978205ac_cv_lib_gsl_main=no
    195988206fi
    19599 rm -f conftest.err conftest.$ac_objext \
    19600       conftest$ac_exeext conftest.$ac_ext
     8207rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    196018208LIBS=$ac_check_lib_save_LIBS
    196028209fi
     
    196258232LIBS="-lgslcblas  $LIBS"
    196268233cat >conftest.$ac_ext <<_ACEOF
     8234#line $LINENO "configure"
    196278235/* confdefs.h.  */
    196288236_ACEOF
     
    196428250rm -f conftest.$ac_objext conftest$ac_exeext
    196438251if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    19644   (eval $ac_link) 2>conftest.er1
     8252  (eval $ac_link) 2>&5
    196458253  ac_status=$?
    19646   grep -v '^ *+' conftest.er1 >conftest.err
    19647   rm -f conftest.er1
    19648   cat conftest.err >&5
    196498254  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    196508255  (exit $ac_status); } &&
    19651          { ac_try='test -z "$ac_c_werror_flag"
    19652                          || test ! -s conftest.err'
    19653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    19654   (eval $ac_try) 2>&5
    19655   ac_status=$?
    19656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    19657   (exit $ac_status); }; } &&
    19658          { ac_try='test -s conftest$ac_exeext'
     8256         { ac_try='test -s conftest$ac_exeext'
    196598257  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    196608258  (eval $ac_try) 2>&5
     
    196698267ac_cv_lib_gslcblas_main=no
    196708268fi
    19671 rm -f conftest.err conftest.$ac_objext \
    19672       conftest$ac_exeext conftest.$ac_ext
     8269rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    196738270LIBS=$ac_check_lib_save_LIBS
    196748271fi
     
    196978294LIBS="-lpslib  $LIBS"
    196988295cat >conftest.$ac_ext <<_ACEOF
     8296#line $LINENO "configure"
    196998297/* confdefs.h.  */
    197008298_ACEOF
     
    197148312rm -f conftest.$ac_objext conftest$ac_exeext
    197158313if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    19716   (eval $ac_link) 2>conftest.er1
     8314  (eval $ac_link) 2>&5
    197178315  ac_status=$?
    19718   grep -v '^ *+' conftest.er1 >conftest.err
    19719   rm -f conftest.er1
    19720   cat conftest.err >&5
    197218316  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    197228317  (exit $ac_status); } &&
    19723          { ac_try='test -z "$ac_c_werror_flag"
    19724                          || test ! -s conftest.err'
    19725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    19726   (eval $ac_try) 2>&5
    19727   ac_status=$?
    19728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    19729   (exit $ac_status); }; } &&
    19730          { ac_try='test -s conftest$ac_exeext'
     8318         { ac_try='test -s conftest$ac_exeext'
    197318319  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    197328320  (eval $ac_try) 2>&5
     
    197418329ac_cv_lib_pslib_main=no
    197428330fi
    19743 rm -f conftest.err conftest.$ac_objext \
    19744       conftest$ac_exeext conftest.$ac_ext
     8331rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
    197458332LIBS=$ac_check_lib_save_LIBS
    197468333fi
     
    197908377      # substitution turns \\\\ into \\, and sed turns \\ into \).
    197918378      sed -n \
    19792         "s/'/'\\\\''/g;
    19793           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
     8379        "s/'/'\\\\''/g;
     8380          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
    197948381      ;;
    197958382    *)
    197968383      # `set' quotes correctly as required by POSIX, so do not add quotes.
    197978384      sed -n \
    19798         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
     8385        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
    197998386      ;;
    198008387    esac;
     
    198268413# (actually we leave an empty line to preserve line numbers).
    198278414if test "x$srcdir" = x.; then
    19828   ac_vpsub='/^[  ]*VPATH[        ]*=/{
     8415  ac_vpsub='/^[         ]*VPATH[        ]*=/{
    198298416s/:*\$(srcdir):*/:/;
    198308417s/:*\${srcdir}:*/:/;
    198318418s/:*@srcdir@:*/:/;
    19832 s/^\([^=]*=[     ]*\):*/\1/;
     8419s/^\([^=]*=[    ]*\):*/\1/;
    198338420s/:*$//;
    19834 s/^[^=]*=[       ]*$//;
     8421s/^[^=]*=[      ]*$//;
    198358422}'
    198368423fi
     
    198438430  # 1. Remove the extension, and $U if already installed.
    198448431  ac_i=`echo "$ac_i" |
    19845         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
     8432        sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
    198468433  # 2. Add them.
    198478434  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
     
    198578444Usually this means the macro was only invoked conditionally." >&5
    198588445echo "$as_me: error: conditional \"AMDEP\" was never defined.
    19859 Usually this means the macro was only invoked conditionally." >&2;}
    19860    { (exit 1); exit 1; }; }
    19861 fi
    19862 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
    19863   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
    19864 Usually this means the macro was only invoked conditionally." >&5
    19865 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
    19866 Usually this means the macro was only invoked conditionally." >&2;}
    19867    { (exit 1); exit 1; }; }
    19868 fi
    19869 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
    19870   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
    19871 Usually this means the macro was only invoked conditionally." >&5
    19872 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
    198738446Usually this means the macro was only invoked conditionally." >&2;}
    198748447   { (exit 1); exit 1; }; }
     
    199088481  set -o posix
    199098482fi
    19910 DUALCASE=1; export DUALCASE # for MKS sh
    199118483
    199128484# Support unset when possible.
    19913 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
     8485if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
    199148486  as_unset=unset
    199158487else
     
    199308502  LC_TELEPHONE LC_TIME
    199318503do
    19932   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
     8504  if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
    199338505    eval $as_var=C; export $as_var
    199348506  else
     
    201098681  as_mkdir_p=:
    201108682else
    20111   test -d ./-p && rmdir ./-p
    201128683  as_mkdir_p=false
    201138684fi
     
    201168687
    201178688# Sed expression to map a string onto a valid CPP name.
    20118 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
     8689as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
    201198690
    201208691# Sed expression to map a string onto a valid variable name.
    20121 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
     8692as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
    201228693
    201238694
     
    201468717
    201478718This file was extended by $as_me, which was
    20148 generated by GNU Autoconf 2.59.  Invocation command line was
     8719generated by GNU Autoconf 2.57.  Invocation command line was
    201498720
    201508721  CONFIG_FILES    = $CONFIG_FILES
     
    201908761      --recheck    update $as_me by reconfiguring in the same conditions
    201918762  --file=FILE[:TEMPLATE]
    20192                    instantiate the configuration file FILE
     8763                   instantiate the configuration file FILE
    201938764  --header=FILE[:TEMPLATE]
    20194                    instantiate the configuration header FILE
     8765                   instantiate the configuration header FILE
    201958766
    201968767Configuration files:
     
    202098780ac_cs_version="\\
    202108781config.status
    20211 configured by $0, generated by GNU Autoconf 2.59,
     8782configured by $0, generated by GNU Autoconf 2.57,
    202128783  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
    202138784
    20214 Copyright (C) 2003 Free Software Foundation, Inc.
     8785Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
     8786Free Software Foundation, Inc.
    202158787This config.status script is free software; the Free Software Foundation
    202168788gives unlimited permission to copy, distribute and modify it."
     
    204118983s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
    204128984s,@INSTALL_DATA@,$INSTALL_DATA,;t t
    20413 s,@CYGPATH_W@,$CYGPATH_W,;t t
    204148985s,@PACKAGE@,$PACKAGE,;t t
    204158986s,@VERSION@,$VERSION,;t t
     
    204248995s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
    204258996s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
    20426 s,@mkdir_p@,$mkdir_p,;t t
    204278997s,@AWK@,$AWK,;t t
    204288998s,@SET_MAKE@,$SET_MAKE,;t t
    20429 s,@am__leading_dot@,$am__leading_dot,;t t
    204308999s,@CC@,$CC,;t t
    204319000s,@CFLAGS@,$CFLAGS,;t t
     
    204429011s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
    204439012s,@CCDEPMODE@,$CCDEPMODE,;t t
    20444 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
    20445 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
    204469013s,@build@,$build,;t t
    204479014s,@build_cpu@,$build_cpu,;t t
     
    204529019s,@host_vendor@,$host_vendor,;t t
    204539020s,@host_os@,$host_os,;t t
    20454 s,@EGREP@,$EGREP,;t t
    204559021s,@LN_S@,$LN_S,;t t
    204569022s,@ECHO@,$ECHO,;t t
    20457 s,@AR@,$AR,;t t
    20458 s,@ac_ct_AR@,$ac_ct_AR,;t t
    204599023s,@RANLIB@,$RANLIB,;t t
    204609024s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
    204619025s,@CPP@,$CPP,;t t
    20462 s,@CXX@,$CXX,;t t
    20463 s,@CXXFLAGS@,$CXXFLAGS,;t t
    20464 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
    20465 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
    20466 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
    20467 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
    20468 s,@CXXCPP@,$CXXCPP,;t t
    20469 s,@F77@,$F77,;t t
    20470 s,@FFLAGS@,$FFLAGS,;t t
    20471 s,@ac_ct_F77@,$ac_ct_F77,;t t
     9026s,@EGREP@,$EGREP,;t t
    204729027s,@LIBTOOL@,$LIBTOOL,;t t
    204739028s,@GSL_CONFIG@,$GSL_CONFIG,;t t
     
    205039058  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
    205049059      if test -z "$ac_sed_cmds"; then
    20505         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
     9060        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
    205069061      else
    20507         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
     9062        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
    205089063      fi
    205099064      ac_sed_frag=`expr $ac_sed_frag + 1`
     
    205239078  case $ac_file in
    205249079  - | *:- | *:-:* ) # input from stdin
    20525         cat >$tmp/stdin
    20526         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
    20527         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
     9080        cat >$tmp/stdin
     9081        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
     9082        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
    205289083  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
    20529         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
     9084        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
    205309085  * )   ac_file_in=$ac_file.in ;;
    205319086  esac
     
    205349089  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
    205359090$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    20536         X"$ac_file" : 'X\(//\)[^/]' \| \
    20537         X"$ac_file" : 'X\(//\)$' \| \
    20538         X"$ac_file" : 'X\(/\)' \| \
    20539         .     : '\(.\)' 2>/dev/null ||
     9091        X"$ac_file" : 'X\(//\)[^/]' \| \
     9092        X"$ac_file" : 'X\(//\)$' \| \
     9093        X"$ac_file" : 'X\(/\)' \| \
     9094        .     : '\(.\)' 2>/dev/null ||
    205409095echo X"$ac_file" |
    205419096    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
     
    205539108      as_dir=`(dirname "$as_dir") 2>/dev/null ||
    205549109$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    20555         X"$as_dir" : 'X\(//\)[^/]' \| \
    20556         X"$as_dir" : 'X\(//\)$' \| \
    20557         X"$as_dir" : 'X\(/\)' \| \
    20558         .     : '\(.\)' 2>/dev/null ||
     9110        X"$as_dir" : 'X\(//\)[^/]' \| \
     9111        X"$as_dir" : 'X\(//\)$' \| \
     9112        X"$as_dir" : 'X\(/\)' \| \
     9113        .     : '\(.\)' 2>/dev/null ||
    205599114echo X"$as_dir" |
    205609115    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
     
    205949149    ac_top_srcdir=$ac_top_builddir$srcdir ;;
    205959150esac
    20596 
    20597 # Do not use `cd foo && pwd` to compute absolute paths, because
    20598 # the directories may not exist.
    20599 case `pwd` in
    20600 .) ac_abs_builddir="$ac_dir";;
    20601 *)
    20602   case "$ac_dir" in
    20603   .) ac_abs_builddir=`pwd`;;
    20604   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
    20605   *) ac_abs_builddir=`pwd`/"$ac_dir";;
    20606   esac;;
    20607 esac
    20608 case $ac_abs_builddir in
    20609 .) ac_abs_top_builddir=${ac_top_builddir}.;;
    20610 *)
    20611   case ${ac_top_builddir}. in
    20612   .) ac_abs_top_builddir=$ac_abs_builddir;;
    20613   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
    20614   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
    20615   esac;;
    20616 esac
    20617 case $ac_abs_builddir in
    20618 .) ac_abs_srcdir=$ac_srcdir;;
    20619 *)
    20620   case $ac_srcdir in
    20621   .) ac_abs_srcdir=$ac_abs_builddir;;
    20622   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
    20623   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
    20624   esac;;
    20625 esac
    20626 case $ac_abs_builddir in
    20627 .) ac_abs_top_srcdir=$ac_top_srcdir;;
    20628 *)
    20629   case $ac_top_srcdir in
    20630   .) ac_abs_top_srcdir=$ac_abs_builddir;;
    20631   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
    20632   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
    20633   esac;;
    20634 esac
     9151# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
     9152# absolute.
     9153ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
     9154ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
     9155ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
     9156ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
    206359157
    206369158
     
    206549176  fi
    206559177  configure_input=$configure_input"Generated from `echo $ac_file_in |
    20656                                      sed 's,.*/,,'` by configure."
     9178                                     sed 's,.*/,,'` by configure."
    206579179
    206589180  # First look for the input files in the build tree, otherwise in the
     
    206639185      -) echo $tmp/stdin ;;
    206649186      [\\/$]*)
    20665         # Absolute (can't be DOS-style, as IFS=:)
    20666         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
     9187        # Absolute (can't be DOS-style, as IFS=:)
     9188        test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
    206679189echo "$as_me: error: cannot find input file: $f" >&2;}
    206689190   { (exit 1); exit 1; }; }
    20669          echo "$f";;
     9191         echo $f;;
    206709192      *) # Relative
    20671         if test -f "$f"; then
    20672            # Build tree
    20673            echo "$f"
    20674         elif test -f "$srcdir/$f"; then
    20675            # Source tree
    20676            echo "$srcdir/$f"
    20677         else
    20678            # /dev/null tree
    20679            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
     9193        if test -f "$f"; then
     9194           # Build tree
     9195           echo $f
     9196        elif test -f "$srcdir/$f"; then
     9197           # Source tree
     9198           echo $srcdir/$f
     9199        else
     9200           # /dev/null tree
     9201           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
    206809202echo "$as_me: error: cannot find input file: $f" >&2;}
    206819203   { (exit 1); exit 1; }; }
    20682         fi;;
     9204        fi;;
    206839205      esac
    206849206    done` || { (exit 1); exit 1; }
     
    207229244#
    207239245# ac_d sets the value in "#define NAME VALUE" lines.
    20724 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
    20725 ac_dB='[         ].*$,\1#\2'
     9246ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
     9247ac_dB='[        ].*$,\1#\2'
    207269248ac_dC=' '
    207279249ac_dD=',;t'
    207289250# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
    20729 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
     9251ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
    207309252ac_uB='$,\1#\2define\3'
    207319253ac_uC=' '
     
    207369258  case $ac_file in
    207379259  - | *:- | *:-:* ) # input from stdin
    20738         cat >$tmp/stdin
    20739         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
    20740         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
     9260        cat >$tmp/stdin
     9261        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
     9262        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
    207419263  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
    20742         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
     9264        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
    207439265  * )   ac_file_in=$ac_file.in ;;
    207449266  esac
     
    207549276      -) echo $tmp/stdin ;;
    207559277      [\\/$]*)
    20756         # Absolute (can't be DOS-style, as IFS=:)
    20757         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
     9278        # Absolute (can't be DOS-style, as IFS=:)
     9279        test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
    207589280echo "$as_me: error: cannot find input file: $f" >&2;}
    207599281   { (exit 1); exit 1; }; }
    20760          # Do quote $f, to prevent DOS paths from being IFS'd.
    20761          echo "$f";;
     9282         echo $f;;
    207629283      *) # Relative
    20763         if test -f "$f"; then
    20764            # Build tree
    20765            echo "$f"
    20766         elif test -f "$srcdir/$f"; then
    20767            # Source tree
    20768            echo "$srcdir/$f"
    20769         else
    20770            # /dev/null tree
    20771            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
     9284        if test -f "$f"; then
     9285           # Build tree
     9286           echo $f
     9287        elif test -f "$srcdir/$f"; then
     9288           # Source tree
     9289           echo $srcdir/$f
     9290        else
     9291           # /dev/null tree
     9292           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
    207729293echo "$as_me: error: cannot find input file: $f" >&2;}
    207739294   { (exit 1); exit 1; }; }
    20774         fi;;
     9295        fi;;
    207759296      esac
    207769297    done` || { (exit 1); exit 1; }
    207779298  # Remove the trailing spaces.
    20778   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
     9299  sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
    207799300
    207809301_ACEOF
     
    207999320t clear
    208009321: clear
    20801 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
     9322s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
    208029323t end
    20803 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
     9324s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
    208049325: end
    208059326_ACEOF
     
    208159336# on some systems where configure will not decide to define it.
    208169337cat >>conftest.undefs <<\_ACEOF
    20817 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
     9338s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
    208189339_ACEOF
    208199340
     
    208219342# of here documents, and old seds have small limits too (100 cmds).
    208229343echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
    20823 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
     9344echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
    208249345echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
    208259346echo '  :' >>$CONFIG_STATUS
     
    208309351  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
    208319352  # Speed up: don't consider the non `#define' lines.
    20832   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
     9353  echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
    208339354  # Work around the forget-to-reset-the-flag bug.
    208349355  echo 't clr' >>$CONFIG_STATUS
     
    208579378  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
    208589379  # Speed up: don't consider the non `#undef'
    20859   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
     9380  echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
    208609381  # Work around the forget-to-reset-the-flag bug.
    208619382  echo 't clr' >>$CONFIG_STATUS
     
    208919412      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
    208929413$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    20893         X"$ac_file" : 'X\(//\)[^/]' \| \
    20894         X"$ac_file" : 'X\(//\)$' \| \
    20895         X"$ac_file" : 'X\(/\)' \| \
    20896         .     : '\(.\)' 2>/dev/null ||
     9414        X"$ac_file" : 'X\(//\)[^/]' \| \
     9415        X"$ac_file" : 'X\(//\)$' \| \
     9416        X"$ac_file" : 'X\(/\)' \| \
     9417        .     : '\(.\)' 2>/dev/null ||
    208979418echo X"$ac_file" |
    208989419    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
     
    209109431      as_dir=`(dirname "$as_dir") 2>/dev/null ||
    209119432$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    20912         X"$as_dir" : 'X\(//\)[^/]' \| \
    20913         X"$as_dir" : 'X\(//\)$' \| \
    20914         X"$as_dir" : 'X\(/\)' \| \
    20915         .     : '\(.\)' 2>/dev/null ||
     9433        X"$as_dir" : 'X\(//\)[^/]' \| \
     9434        X"$as_dir" : 'X\(//\)$' \| \
     9435        X"$as_dir" : 'X\(/\)' \| \
     9436        .     : '\(.\)' 2>/dev/null ||
    209169437echo X"$as_dir" |
    209179438    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
     
    209339454    rm -f $tmp/config.h
    209349455  fi
    20935 # Compute $ac_file's index in $config_headers.
    20936 _am_stamp_count=1
    20937 for _am_header in $config_headers :; do
    20938   case $_am_header in
    20939     $ac_file | $ac_file:* )
    20940       break ;;
    20941     * )
    20942       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
     9456  # Run the commands associated with the file.
     9457  case $ac_file in
     9458    src/config.h ) # update the timestamp
     9459echo 'timestamp for src/config.h' >"src/stamp-h1"
     9460 ;;
    209439461  esac
    20944 done
    20945 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
    20946 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    20947          X$ac_file : 'X\(//\)[^/]' \| \
    20948          X$ac_file : 'X\(//\)$' \| \
    20949          X$ac_file : 'X\(/\)' \| \
    20950          .     : '\(.\)' 2>/dev/null ||
    20951 echo X$ac_file |
    20952     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
    20953           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
    20954           /^X\(\/\/\)$/{ s//\1/; q; }
    20955           /^X\(\/\).*/{ s//\1/; q; }
    20956           s/.*/./; q'`/stamp-h$_am_stamp_count
    209579462done
    209589463_ACEOF
     
    209679472  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
    209689473$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    20969         X"$ac_dest" : 'X\(//\)[^/]' \| \
    20970         X"$ac_dest" : 'X\(//\)$' \| \
    20971         X"$ac_dest" : 'X\(/\)' \| \
    20972         .     : '\(.\)' 2>/dev/null ||
     9474        X"$ac_dest" : 'X\(//\)[^/]' \| \
     9475        X"$ac_dest" : 'X\(//\)$' \| \
     9476        X"$ac_dest" : 'X\(/\)' \| \
     9477        .     : '\(.\)' 2>/dev/null ||
    209739478echo X"$ac_dest" |
    209749479    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
     
    209779482          /^X\(\/\).*/{ s//\1/; q; }
    209789483          s/.*/./; q'`
    20979   { if $as_mkdir_p; then
    20980     mkdir -p "$ac_dir"
    20981   else
    20982     as_dir="$ac_dir"
    20983     as_dirs=
    20984     while test ! -d "$as_dir"; do
    20985       as_dirs="$as_dir $as_dirs"
    20986       as_dir=`(dirname "$as_dir") 2>/dev/null ||
    20987 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    20988          X"$as_dir" : 'X\(//\)[^/]' \| \
    20989          X"$as_dir" : 'X\(//\)$' \| \
    20990          X"$as_dir" : 'X\(/\)' \| \
    20991          .     : '\(.\)' 2>/dev/null ||
    20992 echo X"$as_dir" |
    20993     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
    20994           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
    20995           /^X\(\/\/\)$/{ s//\1/; q; }
    20996           /^X\(\/\).*/{ s//\1/; q; }
    20997           s/.*/./; q'`
    20998     done
    20999     test ! -n "$as_dirs" || mkdir $as_dirs
    21000   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
    21001 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
    21002    { (exit 1); exit 1; }; }; }
    21003 
    210049484  ac_builddir=.
    210059485
     
    210279507    ac_top_srcdir=$ac_top_builddir$srcdir ;;
    210289508esac
    21029 
    21030 # Do not use `cd foo && pwd` to compute absolute paths, because
    21031 # the directories may not exist.
    21032 case `pwd` in
    21033 .) ac_abs_builddir="$ac_dir";;
    21034 *)
    21035   case "$ac_dir" in
    21036   .) ac_abs_builddir=`pwd`;;
    21037   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
    21038   *) ac_abs_builddir=`pwd`/"$ac_dir";;
    21039   esac;;
    21040 esac
    21041 case $ac_abs_builddir in
    21042 .) ac_abs_top_builddir=${ac_top_builddir}.;;
    21043 *)
    21044   case ${ac_top_builddir}. in
    21045   .) ac_abs_top_builddir=$ac_abs_builddir;;
    21046   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
    21047   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
    21048   esac;;
    21049 esac
    21050 case $ac_abs_builddir in
    21051 .) ac_abs_srcdir=$ac_srcdir;;
    21052 *)
    21053   case $ac_srcdir in
    21054   .) ac_abs_srcdir=$ac_abs_builddir;;
    21055   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
    21056   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
    21057   esac;;
    21058 esac
    21059 case $ac_abs_builddir in
    21060 .) ac_abs_top_srcdir=$ac_top_srcdir;;
    21061 *)
    21062   case $ac_top_srcdir in
    21063   .) ac_abs_top_srcdir=$ac_abs_builddir;;
    21064   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
    21065   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
    21066   esac;;
    21067 esac
     9509# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
     9510# absolute.
     9511ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
     9512ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
     9513ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
     9514ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
    210689515
    210699516
     
    210839530    dirpart=`(dirname "$mf") 2>/dev/null ||
    210849531$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    21085         X"$mf" : 'X\(//\)[^/]' \| \
    21086         X"$mf" : 'X\(//\)$' \| \
    21087         X"$mf" : 'X\(/\)' \| \
    21088         .     : '\(.\)' 2>/dev/null ||
     9532        X"$mf" : 'X\(//\)[^/]' \| \
     9533        X"$mf" : 'X\(//\)$' \| \
     9534        X"$mf" : 'X\(/\)' \| \
     9535        .     : '\(.\)' 2>/dev/null ||
    210899536echo X"$mf" |
    210909537    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
     
    210999546  # Extract the definition of DEP_FILES from the Makefile without
    211009547  # running `make'.
    21101   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
     9548  DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
    211029549  test -z "$DEPDIR" && continue
    211039550  # When using ansi2knr, U may be empty or an underscore; expand it
    21104   U=`sed -n 's/^U = //p' < "$mf"`
     9551  U=`sed -n -e '/^U = / s///p' < "$mf"`
    211059552  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
    211069553  # We invoke sed twice because it is the simplest approach to
    211079554  # changing $(DEPDIR) to its actual value in the expansion.
    21108   for file in `sed -n '
     9555  for file in `sed -n -e '
    211099556    /^DEP_FILES = .*\\\\$/ {
    211109557      s/^DEP_FILES = //
     
    211229569    fdir=`(dirname "$file") 2>/dev/null ||
    211239570$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    21124         X"$file" : 'X\(//\)[^/]' \| \
    21125         X"$file" : 'X\(//\)$' \| \
    21126         X"$file" : 'X\(/\)' \| \
    21127         .     : '\(.\)' 2>/dev/null ||
     9571        X"$file" : 'X\(//\)[^/]' \| \
     9572        X"$file" : 'X\(//\)$' \| \
     9573        X"$file" : 'X\(/\)' \| \
     9574        .     : '\(.\)' 2>/dev/null ||
    211289575echo X"$file" |
    211299576    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
     
    211419588      as_dir=`(dirname "$as_dir") 2>/dev/null ||
    211429589$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    21143         X"$as_dir" : 'X\(//\)[^/]' \| \
    21144         X"$as_dir" : 'X\(//\)$' \| \
    21145         X"$as_dir" : 'X\(/\)' \| \
    21146         .     : '\(.\)' 2>/dev/null ||
     9590        X"$as_dir" : 'X\(//\)[^/]' \| \
     9591        X"$as_dir" : 'X\(//\)$' \| \
     9592        X"$as_dir" : 'X\(/\)' \| \
     9593        .     : '\(.\)' 2>/dev/null ||
    211479594echo X"$as_dir" |
    211489595    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  • trunk/psModules/src/Makefile.in

    r2125 r2132  
    1 # Makefile.in generated by automake 1.8.3 from Makefile.am.
     1# Makefile.in generated by automake 1.6.3 from Makefile.am.
    22# @configure_input@
    33
    4 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
    5 # 2003, 2004  Free Software Foundation, Inc.
     4# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002
     5# 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 
    17 
    18 SOURCES = $(libpsmodule_a_SOURCES)
     16SHELL = @SHELL@
    1917
    2018srcdir = @srcdir@
    2119top_srcdir = @top_srcdir@
    2220VPATH = @srcdir@
     21prefix = @prefix@
     22exec_prefix = @exec_prefix@
     23
     24bindir = @bindir@
     25sbindir = @sbindir@
     26libexecdir = @libexecdir@
     27datadir = @datadir@
     28sysconfdir = @sysconfdir@
     29sharedstatedir = @sharedstatedir@
     30localstatedir = @localstatedir@
     31libdir = @libdir@
     32infodir = @infodir@
     33mandir = @mandir@
     34includedir = @includedir@
     35oldincludedir = /usr/include
    2336pkgdatadir = $(datadir)/@PACKAGE@
    2437pkglibdir = $(libdir)/@PACKAGE@
    2538pkgincludedir = $(includedir)/@PACKAGE@
    2639top_builddir = ..
     40
     41ACLOCAL = @ACLOCAL@
     42AUTOCONF = @AUTOCONF@
     43AUTOMAKE = @AUTOMAKE@
     44AUTOHEADER = @AUTOHEADER@
     45
    2746am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
    2847INSTALL = @INSTALL@
     48INSTALL_PROGRAM = @INSTALL_PROGRAM@
     49INSTALL_DATA = @INSTALL_DATA@
    2950install_sh_DATA = $(install_sh) -c -m 644
    3051install_sh_PROGRAM = $(install_sh) -c
    3152install_sh_SCRIPT = $(install_sh) -c
     53INSTALL_SCRIPT = @INSTALL_SCRIPT@
    3254INSTALL_HEADER = $(INSTALL_DATA)
    33 transform = $(program_transform_name)
     55transform = @program_transform_name@
    3456NORMAL_INSTALL = :
    3557PRE_INSTALL = :
     
    3860PRE_UNINSTALL = :
    3961POST_UNINSTALL = :
     62host_alias = @host_alias@
    4063host_triplet = @host@
     64
     65EXEEXT = @EXEEXT@
     66OBJEXT = @OBJEXT@
     67PATH_SEPARATOR = @PATH_SEPARATOR@
     68AMTAR = @AMTAR@
     69AS = @AS@
     70AWK = @AWK@
     71CC = @CC@
     72CFLAGS = @CFLAGS@
     73DEPDIR = @DEPDIR@
     74DLLTOOL = @DLLTOOL@
     75ECHO = @ECHO@
     76GSL_CONFIG = @GSL_CONFIG@
     77INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
     78LIBTOOL = @LIBTOOL@
     79LN_S = @LN_S@
     80OBJDUMP = @OBJDUMP@
     81PACKAGE = @PACKAGE@
     82RANLIB = @RANLIB@
     83STRIP = @STRIP@
     84VERSION = @VERSION@
     85am__include = @am__include@
     86am__quote = @am__quote@
     87install_sh = @install_sh@
     88lib_LIBRARIES = libpsmodule.a
     89
     90libpsmodule_a_SOURCES = pmFlatField.c pmMaskBadPixels.c pmSubtractBias.c psTest.c pmSubtractBias.c pmNonLinear.c
     91libpsmodule_a_HEADERS = pmFlatField.h pmMaskBadPixels.h pmSubtractBias.h psTest.h pmSubtractBias.h pmNonLinear.h
     92libpsmodule_adir = .
    4193subdir = src
    42 DIST_COMMON = $(libpsmodule_a_HEADERS) $(srcdir)/Makefile.am \
    43         $(srcdir)/Makefile.in $(srcdir)/config.h.in
    44 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
    45 am__aclocal_m4_deps = $(top_srcdir)/configure.in
    46 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
    47         $(ACLOCAL_M4)
    4894mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
    4995CONFIG_HEADER = config.h
    5096CONFIG_CLEAN_FILES =
    51 ARFLAGS = cru
    52 am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(libpsmodule_adir)"
    53 libLIBRARIES_INSTALL = $(INSTALL_DATA)
    5497LIBRARIES = $(lib_LIBRARIES)
    55 libpsmodule_a_AR = $(AR) $(ARFLAGS)
     98
     99libpsmodule_a_AR = $(AR) cru
    56100libpsmodule_a_LIBADD =
    57101am_libpsmodule_a_OBJECTS = pmFlatField.$(OBJEXT) \
    58102        pmMaskBadPixels.$(OBJEXT) pmSubtractBias.$(OBJEXT) \
    59         psTest.$(OBJEXT) pmSubtractBias.$(OBJEXT) \
    60         pmNonLinear.$(OBJEXT)
     103        psTest.$(OBJEXT) pmSubtractBias.$(OBJEXT) pmNonLinear.$(OBJEXT)
    61104libpsmodule_a_OBJECTS = $(am_libpsmodule_a_OBJECTS)
    62 DEFAULT_INCLUDES = -I. -I$(srcdir) -I.
     105
     106DEFS = @DEFS@
     107DEFAULT_INCLUDES =  -I. -I$(srcdir) -I.
     108CPPFLAGS = @CPPFLAGS@
     109LDFLAGS = @LDFLAGS@
     110LIBS = @LIBS@
    63111depcomp = $(SHELL) $(top_srcdir)/depcomp
    64112am__depfiles_maybe = depfiles
     
    66114@AMDEP_TRUE@    ./$(DEPDIR)/pmMaskBadPixels.Po \
    67115@AMDEP_TRUE@    ./$(DEPDIR)/pmNonLinear.Po \
    68 @AMDEP_TRUE@    ./$(DEPDIR)/pmSubtractBias.Po \
    69 @AMDEP_TRUE@    ./$(DEPDIR)/psTest.Po
     116@AMDEP_TRUE@    ./$(DEPDIR)/pmSubtractBias.Po ./$(DEPDIR)/psTest.Po
    70117COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
    71118        $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
    72 LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) \
    73         $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
    74         $(AM_CFLAGS) $(CFLAGS)
     119LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) \
     120        $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
    75121CCLD = $(CC)
    76122LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
    77123        $(AM_LDFLAGS) $(LDFLAGS) -o $@
     124DIST_SOURCES = $(libpsmodule_a_SOURCES)
     125HEADERS = $(libpsmodule_a_HEADERS)
     126
     127DIST_COMMON = $(libpsmodule_a_HEADERS) Makefile.am Makefile.in \
     128        config.h.in
    78129SOURCES = $(libpsmodule_a_SOURCES)
    79 DIST_SOURCES = $(libpsmodule_a_SOURCES)
    80 libpsmodule_aHEADERS_INSTALL = $(INSTALL_HEADER)
    81 HEADERS = $(libpsmodule_a_HEADERS)
    82 ETAGS = etags
    83 CTAGS = ctags
    84 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
    85 ACLOCAL = @ACLOCAL@
    86 AMDEP_FALSE = @AMDEP_FALSE@
    87 AMDEP_TRUE = @AMDEP_TRUE@
    88 AMTAR = @AMTAR@
    89 AR = @AR@
    90 AUTOCONF = @AUTOCONF@
    91 AUTOHEADER = @AUTOHEADER@
    92 AUTOMAKE = @AUTOMAKE@
    93 AWK = @AWK@
    94 CC = @CC@
    95 CCDEPMODE = @CCDEPMODE@
    96 CFLAGS = @CFLAGS@
    97 CPP = @CPP@
    98 CPPFLAGS = @CPPFLAGS@
    99 CXX = @CXX@
    100 CXXCPP = @CXXCPP@
    101 CXXDEPMODE = @CXXDEPMODE@
    102 CXXFLAGS = @CXXFLAGS@
    103 CYGPATH_W = @CYGPATH_W@
    104 DEFS = @DEFS@
    105 DEPDIR = @DEPDIR@
    106 ECHO = @ECHO@
    107 ECHO_C = @ECHO_C@
    108 ECHO_N = @ECHO_N@
    109 ECHO_T = @ECHO_T@
    110 EGREP = @EGREP@
    111 EXEEXT = @EXEEXT@
    112 F77 = @F77@
    113 FFLAGS = @FFLAGS@
    114 GSL_CONFIG = @GSL_CONFIG@
    115 INSTALL_DATA = @INSTALL_DATA@
    116 INSTALL_PROGRAM = @INSTALL_PROGRAM@
    117 INSTALL_SCRIPT = @INSTALL_SCRIPT@
    118 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
    119 LDFLAGS = @LDFLAGS@
    120 LIBOBJS = @LIBOBJS@
    121 LIBS = @LIBS@
    122 LIBTOOL = @LIBTOOL@
    123 LN_S = @LN_S@
    124 LTLIBOBJS = @LTLIBOBJS@
    125 MAKEINFO = @MAKEINFO@
    126 OBJEXT = @OBJEXT@
    127 PACKAGE = @PACKAGE@
    128 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
    129 PACKAGE_NAME = @PACKAGE_NAME@
    130 PACKAGE_STRING = @PACKAGE_STRING@
    131 PACKAGE_TARNAME = @PACKAGE_TARNAME@
    132 PACKAGE_VERSION = @PACKAGE_VERSION@
    133 PATH_SEPARATOR = @PATH_SEPARATOR@
    134 RANLIB = @RANLIB@
    135 SET_MAKE = @SET_MAKE@
    136 SHELL = @SHELL@
    137 STRIP = @STRIP@
    138 VERSION = @VERSION@
    139 ac_ct_AR = @ac_ct_AR@
    140 ac_ct_CC = @ac_ct_CC@
    141 ac_ct_CXX = @ac_ct_CXX@
    142 ac_ct_F77 = @ac_ct_F77@
    143 ac_ct_RANLIB = @ac_ct_RANLIB@
    144 ac_ct_STRIP = @ac_ct_STRIP@
    145 am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
    146 am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
    147 am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
    148 am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
    149 am__include = @am__include@
    150 am__leading_dot = @am__leading_dot@
    151 am__quote = @am__quote@
    152 bindir = @bindir@
    153 build = @build@
    154 build_alias = @build_alias@
    155 build_cpu = @build_cpu@
    156 build_os = @build_os@
    157 build_vendor = @build_vendor@
    158 datadir = @datadir@
    159 exec_prefix = @exec_prefix@
    160 host = @host@
    161 host_alias = @host_alias@
    162 host_cpu = @host_cpu@
    163 host_os = @host_os@
    164 host_vendor = @host_vendor@
    165 includedir = @includedir@
    166 infodir = @infodir@
    167 install_sh = @install_sh@
    168 libdir = @libdir@
    169 libexecdir = @libexecdir@
    170 localstatedir = @localstatedir@
    171 mandir = @mandir@
    172 mkdir_p = @mkdir_p@
    173 oldincludedir = @oldincludedir@
    174 prefix = @prefix@
    175 program_transform_name = @program_transform_name@
    176 sbindir = @sbindir@
    177 sharedstatedir = @sharedstatedir@
    178 sysconfdir = @sysconfdir@
    179 target_alias = @target_alias@
    180 lib_LIBRARIES = libpsmodule.a
    181 libpsmodule_a_SOURCES = pmFlatField.c pmMaskBadPixels.c pmSubtractBias.c psTest.c pmSubtractBias.c pmNonLinear.c
    182 libpsmodule_a_HEADERS = pmFlatField.h pmMaskBadPixels.h pmSubtractBias.h psTest.h pmSubtractBias.h pmNonLinear.h
    183 libpsmodule_adir = .
     130
    184131all: config.h
    185132        $(MAKE) $(AM_MAKEFLAGS) all-am
     
    187134.SUFFIXES:
    188135.SUFFIXES: .c .lo .o .obj
    189 $(srcdir)/Makefile.in:  $(srcdir)/Makefile.am  $(am__configure_deps)
    190         @for dep in $?; do \
    191           case '$(am__configure_deps)' in \
    192             *$$dep*) \
    193               cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
    194                 && exit 0; \
    195               exit 1;; \
    196           esac; \
    197         done; \
    198         echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu  src/Makefile'; \
     136$(srcdir)/Makefile.in:  Makefile.am  $(top_srcdir)/configure.in $(ACLOCAL_M4)
    199137        cd $(top_srcdir) && \
    200138          $(AUTOMAKE) --gnu  src/Makefile
    201 .PRECIOUS: Makefile
    202 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
    203         @case '$?' in \
    204           *config.status*) \
    205             cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
    206           *) \
    207             echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
    208             cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
    209         esac;
    210 
    211 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
    212         cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
    213 
    214 $(top_srcdir)/configure:  $(am__configure_deps)
    215         cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
    216 $(ACLOCAL_M4):  $(am__aclocal_m4_deps)
    217         cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
     139Makefile:  $(srcdir)/Makefile.in  $(top_builddir)/config.status
     140        cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)
    218141
    219142config.h: stamp-h1
     
    226149        @rm -f stamp-h1
    227150        cd $(top_builddir) && $(SHELL) ./config.status src/config.h
    228 $(srcdir)/config.h.in:  $(am__configure_deps)
     151
     152$(srcdir)/config.h.in:  $(top_srcdir)/configure.in $(ACLOCAL_M4)
    229153        cd $(top_srcdir) && $(AUTOHEADER)
    230         rm -f stamp-h1
    231         touch $@
     154        touch $(srcdir)/config.h.in
    232155
    233156distclean-hdr:
    234157        -rm -f config.h stamp-h1
     158
     159AR = ar
     160libLIBRARIES_INSTALL = $(INSTALL_DATA)
    235161install-libLIBRARIES: $(lib_LIBRARIES)
    236162        @$(NORMAL_INSTALL)
    237         test -z "$(libdir)" || $(mkdir_p) "$(DESTDIR)$(libdir)"
     163        $(mkinstalldirs) $(DESTDIR)$(libdir)
    238164        @list='$(lib_LIBRARIES)'; for p in $$list; do \
    239165          if test -f $$p; then \
    240166            f="`echo $$p | sed -e 's|^.*/||'`"; \
    241             echo " $(libLIBRARIES_INSTALL) '$$p' '$(DESTDIR)$(libdir)/$$f'"; \
    242             $(libLIBRARIES_INSTALL) "$$p" "$(DESTDIR)$(libdir)/$$f"; \
     167            echo " $(libLIBRARIES_INSTALL) $$p $(DESTDIR)$(libdir)/$$f"; \
     168            $(libLIBRARIES_INSTALL) $$p $(DESTDIR)$(libdir)/$$f; \
    243169          else :; fi; \
    244170        done
     
    247173          if test -f $$p; then \
    248174            p="`echo $$p | sed -e 's|^.*/||'`"; \
    249             echo " $(RANLIB) '$(DESTDIR)$(libdir)/$$p'"; \
    250             $(RANLIB) "$(DESTDIR)$(libdir)/$$p"; \
     175            echo " $(RANLIB) $(DESTDIR)$(libdir)/$$p"; \
     176            $(RANLIB) $(DESTDIR)$(libdir)/$$p; \
    251177          else :; fi; \
    252178        done
     
    256182        @list='$(lib_LIBRARIES)'; for p in $$list; do \
    257183          p="`echo $$p | sed -e 's|^.*/||'`"; \
    258           echo " rm -f '$(DESTDIR)$(libdir)/$$p'"; \
    259           rm -f "$(DESTDIR)$(libdir)/$$p"; \
     184          echo " rm -f $(DESTDIR)$(libdir)/$$p"; \
     185          rm -f $(DESTDIR)$(libdir)/$$p; \
    260186        done
    261187
     
    268194
    269195mostlyclean-compile:
    270         -rm -f *.$(OBJEXT)
     196        -rm -f *.$(OBJEXT) core *.core
    271197
    272198distclean-compile:
     
    279205@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/psTest.Po@am__quote@
    280206
     207distclean-depend:
     208        -rm -rf ./$(DEPDIR)
     209
    281210.c.o:
    282 @am__fastdepCC_TRUE@    if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
    283 @am__fastdepCC_TRUE@    then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
    284 @AMDEP_TRUE@@am__fastdepCC_FALSE@       source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
    285 @AMDEP_TRUE@@am__fastdepCC_FALSE@       depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@
    286 @AMDEP_TRUE@@am__fastdepCC_FALSE@       $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
    287 @am__fastdepCC_FALSE@   $(COMPILE) -c $<
     211@AMDEP_TRUE@    source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
     212@AMDEP_TRUE@    depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@
     213@AMDEP_TRUE@    $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
     214        $(COMPILE) -c `test -f '$<' || echo '$(srcdir)/'`$<
    288215
    289216.c.obj:
    290 @am__fastdepCC_TRUE@    if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \
    291 @am__fastdepCC_TRUE@    then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
    292 @AMDEP_TRUE@@am__fastdepCC_FALSE@       source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
    293 @AMDEP_TRUE@@am__fastdepCC_FALSE@       depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@
    294 @AMDEP_TRUE@@am__fastdepCC_FALSE@       $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
    295 @am__fastdepCC_FALSE@   $(COMPILE) -c `$(CYGPATH_W) '$<'`
     217@AMDEP_TRUE@    source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
     218@AMDEP_TRUE@    depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@
     219@AMDEP_TRUE@    $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
     220        $(COMPILE) -c `cygpath -w $<`
    296221
    297222.c.lo:
    298 @am__fastdepCC_TRUE@    if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
    299 @am__fastdepCC_TRUE@    then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
    300 @AMDEP_TRUE@@am__fastdepCC_FALSE@       source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
    301 @AMDEP_TRUE@@am__fastdepCC_FALSE@       depfile='$(DEPDIR)/$*.Plo' tmpdepfile='$(DEPDIR)/$*.TPlo' @AMDEPBACKSLASH@
    302 @AMDEP_TRUE@@am__fastdepCC_FALSE@       $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
    303 @am__fastdepCC_FALSE@   $(LTCOMPILE) -c -o $@ $<
     223@AMDEP_TRUE@    source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
     224@AMDEP_TRUE@    depfile='$(DEPDIR)/$*.Plo' tmpdepfile='$(DEPDIR)/$*.TPlo' @AMDEPBACKSLASH@
     225@AMDEP_TRUE@    $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
     226        $(LTCOMPILE) -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$<
     227CCDEPMODE = @CCDEPMODE@
    304228
    305229mostlyclean-libtool:
     
    312236        -rm -f libtool
    313237uninstall-info-am:
     238libpsmodule_aHEADERS_INSTALL = $(INSTALL_HEADER)
    314239install-libpsmodule_aHEADERS: $(libpsmodule_a_HEADERS)
    315240        @$(NORMAL_INSTALL)
    316         test -z "$(libpsmodule_adir)" || $(mkdir_p) "$(DESTDIR)$(libpsmodule_adir)"
     241        $(mkinstalldirs) $(DESTDIR)$(libpsmodule_adir)
    317242        @list='$(libpsmodule_a_HEADERS)'; for p in $$list; do \
    318243          if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
    319244          f="`echo $$p | sed -e 's|^.*/||'`"; \
    320           echo " $(libpsmodule_aHEADERS_INSTALL) '$$d$$p' '$(DESTDIR)$(libpsmodule_adir)/$$f'"; \
    321           $(libpsmodule_aHEADERS_INSTALL) "$$d$$p" "$(DESTDIR)$(libpsmodule_adir)/$$f"; \
     245          echo " $(libpsmodule_aHEADERS_INSTALL) $$d$$p $(DESTDIR)$(libpsmodule_adir)/$$f"; \
     246          $(libpsmodule_aHEADERS_INSTALL) $$d$$p $(DESTDIR)$(libpsmodule_adir)/$$f; \
    322247        done
    323248
     
    326251        @list='$(libpsmodule_a_HEADERS)'; for p in $$list; do \
    327252          f="`echo $$p | sed -e 's|^.*/||'`"; \
    328           echo " rm -f '$(DESTDIR)$(libpsmodule_adir)/$$f'"; \
    329           rm -f "$(DESTDIR)$(libpsmodule_adir)/$$f"; \
    330         done
     253          echo " rm -f $(DESTDIR)$(libpsmodule_adir)/$$f"; \
     254          rm -f $(DESTDIR)$(libpsmodule_adir)/$$f; \
     255        done
     256
     257ETAGS = etags
     258ETAGSFLAGS =
     259
     260tags: TAGS
    331261
    332262ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
     
    338268               END { for (i in files) print i; }'`; \
    339269        mkid -fID $$unique
    340 tags: TAGS
    341270
    342271TAGS:  $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
     
    353282          || $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
    354283             $$tags $$unique
    355 ctags: CTAGS
    356 CTAGS:  $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
    357                 $(TAGS_FILES) $(LISP)
    358         tags=; \
    359         here=`pwd`; \
    360         list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
    361         unique=`for i in $$list; do \
    362             if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
    363           done | \
    364           $(AWK) '    { files[$$0] = 1; } \
    365                END { for (i in files) print i; }'`; \
    366         test -z "$(CTAGS_ARGS)$$tags$$unique" \
    367           || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
    368              $$tags $$unique
    369284
    370285GTAGS:
     
    374289
    375290distclean-tags:
    376         -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
     291        -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH
     292DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
     293
     294top_distdir = ..
     295distdir = $(top_distdir)/$(PACKAGE)-$(VERSION)
    377296
    378297distdir: $(DISTFILES)
    379         @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
    380         topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
    381         list='$(DISTFILES)'; for file in $$list; do \
    382           case $$file in \
    383             $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
    384             $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
    385           esac; \
     298        @list='$(DISTFILES)'; for file in $$list; do \
    386299          if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
    387300          dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
    388301          if test "$$dir" != "$$file" && test "$$dir" != "."; then \
    389302            dir="/$$dir"; \
    390             $(mkdir_p) "$(distdir)$$dir"; \
     303            $(mkinstalldirs) "$(distdir)$$dir"; \
    391304          else \
    392305            dir=''; \
     
    406319check: check-am
    407320all-am: Makefile $(LIBRARIES) $(HEADERS) config.h
     321
    408322installdirs:
    409         for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(libpsmodule_adir)"; do \
    410           test -z "$$dir" || $(mkdir_p) "$$dir"; \
    411         done
     323        $(mkinstalldirs) $(DESTDIR)$(libdir) $(DESTDIR)$(libpsmodule_adir)
     324
    412325install: install-am
    413326install-exec: install-exec-am
     
    421334install-strip:
    422335        $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
    423           install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
     336          INSTALL_STRIP_FLAG=-s \
    424337          `test -z '$(STRIP)' || \
    425338            echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
     
    429342
    430343distclean-generic:
    431         -rm -f $(CONFIG_CLEAN_FILES)
     344        -rm -f Makefile $(CONFIG_CLEAN_FILES)
    432345
    433346maintainer-clean-generic:
     
    436349clean: clean-am
    437350
    438 clean-am: clean-generic clean-libLIBRARIES clean-libtool \
    439         mostlyclean-am
     351clean-am: clean-generic clean-libLIBRARIES clean-libtool mostlyclean-am
    440352
    441353distclean: distclean-am
    442         -rm -rf ./$(DEPDIR)
    443         -rm -f Makefile
    444 distclean-am: clean-am distclean-compile distclean-generic \
    445         distclean-hdr distclean-libtool distclean-tags
     354
     355distclean-am: clean-am distclean-compile distclean-depend \
     356        distclean-generic distclean-hdr distclean-libtool \
     357        distclean-tags
    446358
    447359dvi: dvi-am
     
    449361dvi-am:
    450362
    451 html: html-am
    452 
    453363info: info-am
    454364
     
    466376
    467377maintainer-clean: maintainer-clean-am
    468         -rm -rf ./$(DEPDIR)
    469         -rm -f Makefile
     378
    470379maintainer-clean-am: distclean-am maintainer-clean-generic
    471380
     
    475384        mostlyclean-libtool
    476385
    477 pdf: pdf-am
    478 
    479 pdf-am:
    480 
    481 ps: ps-am
    482 
    483 ps-am:
    484 
    485386uninstall-am: uninstall-info-am uninstall-libLIBRARIES \
    486387        uninstall-libpsmodule_aHEADERS
    487388
    488 .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
    489         clean-libLIBRARIES clean-libtool ctags distclean \
    490         distclean-compile distclean-generic distclean-hdr \
    491         distclean-libtool distclean-tags distdir dvi dvi-am html \
    492         html-am info info-am install install-am install-data \
    493         install-data-am install-exec install-exec-am install-info \
    494         install-info-am install-libLIBRARIES \
    495         install-libpsmodule_aHEADERS install-man install-strip \
    496         installcheck installcheck-am installdirs maintainer-clean \
    497         maintainer-clean-generic mostlyclean mostlyclean-compile \
    498         mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
     389.PHONY: GTAGS all all-am check check-am clean clean-generic \
     390        clean-libLIBRARIES clean-libtool distclean distclean-compile \
     391        distclean-depend distclean-generic distclean-hdr \
     392        distclean-libtool distclean-tags distdir dvi dvi-am info \
     393        info-am install install-am install-data install-data-am \
     394        install-exec install-exec-am install-info install-info-am \
     395        install-libLIBRARIES install-libpsmodule_aHEADERS install-man \
     396        install-strip installcheck installcheck-am installdirs \
     397        maintainer-clean maintainer-clean-generic mostlyclean \
     398        mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
    499399        tags uninstall uninstall-am uninstall-info-am \
    500400        uninstall-libLIBRARIES uninstall-libpsmodule_aHEADERS
  • trunk/psModules/src/pmSubtractBias.c

    r2127 r2132  
    66 *  @author George Gusciora, MHPCC
    77 *
    8  *  @version $Revision: 1.11 $ $Name: not supported by cvs2svn $
    9  *  @date $Date: 2004-10-14 19:06:19 $
     8 *  @version $Revision: 1.12 $ $Name: not supported by cvs2svn $
     9 *  @date $Date: 2004-10-14 22:33:28 $
    1010 *
    1111 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    3838
    3939    if (((in->image)->numRows + in->row0 - bias->row0) > (bias->image)->numRows) {
    40         // XXX: psErrorMsg() bias image does not have enough rows.
     40        psError(__func__, "bias image does not have enough rows\n");
    4141    }
    4242    if (((in->image)->numCols + in->row0 - bias->row0) > (bias->image)->numCols) {
    43         // XXX: psErrorMsg() bias image does not have enough columns.
     43        psError(__func__, "bias image does not have enough columns\n");
    4444    }
    4545
     
    5252            (in->image)->data.F32[i][j]-=
    5353                (bias->image)->data.F32[i+in->row0-bias->row0][j+in->col0-bias->col0];
    54 
    55             ((in->mask)->data.U8[i][j])|=
    56                 (bias->mask)->data.U8[i+in->row0-bias->row0][j+in->col0-bias->col0];
     54            if ((in->mask != NULL) && (bias->mask != NULL)) {
     55                ((in->mask)->data.U8[i][j])|=
     56                    (bias->mask)->data.U8[i+in->row0-bias->row0][j+in->col0-bias->col0];
     57            }
    5758        }
    5859    }
     
    219220    psSpline1D *mySpline;
    220221
    221     if (in == NULL) {
    222         //XXX: psErrorMsg()
    223     }
     222    PS_CHECK_NULL_PTR_RETURN_NULL(in);
    224223
    225224    //
     
    231230
    232231    if ((overscans == NULL) && (overScanAxis != PM_OVERSCAN_NONE)) {
     232        psError(__func__, "(overscans == NULL) && (overScanAxis != PM_OVERSCAN_NONE)\n");
    233233        //XXX: psErrorMsg()
    234234        return(in);
     
    240240        //XXX: psWarningMsg()
    241241        //XXX: Then what?
    242         return(in);
     242        printf("WARNING: overScanAxis equals NONE or ALL, and fit equals NONE\n");
     243        //        return(in);
    243244    }
    244245
    245246    if (overScanAxis == PM_OVERSCAN_NONE) {
    246247        if (overscans != NULL) {
    247             //XXX: psWarningMsg()
     248            printf("WARNING: overScanAxis equals NONE and overscans does not equal NULL\n");
    248249        }
    249250        return(psSubtractFrame(in, bias));
  • trunk/psModules/test/Makefile.in

    r2125 r2132  
    1 # Makefile.in generated by automake 1.8.3 from Makefile.am.
     1# Makefile.in generated by automake 1.6.3 from Makefile.am.
    22# @configure_input@
    33
    4 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
    5 # 2003, 2004  Free Software Foundation, Inc.
     4# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002
     5# 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 
    17 SOURCES = $(tst_pmFlatField_SOURCES) $(tst_pmMaskBadPixels_SOURCES) $(tst_pmNonLinear_SOURCES)
     16SHELL = @SHELL@
    1817
    1918srcdir = @srcdir@
    2019top_srcdir = @top_srcdir@
    2120VPATH = @srcdir@
     21prefix = @prefix@
     22exec_prefix = @exec_prefix@
     23
     24bindir = @bindir@
     25sbindir = @sbindir@
     26libexecdir = @libexecdir@
     27datadir = @datadir@
     28sysconfdir = @sysconfdir@
     29sharedstatedir = @sharedstatedir@
     30localstatedir = @localstatedir@
     31libdir = @libdir@
     32infodir = @infodir@
     33mandir = @mandir@
     34includedir = @includedir@
     35oldincludedir = /usr/include
    2236pkgdatadir = $(datadir)/@PACKAGE@
    2337pkglibdir = $(libdir)/@PACKAGE@
    2438pkgincludedir = $(includedir)/@PACKAGE@
    2539top_builddir = ..
     40
     41ACLOCAL = @ACLOCAL@
     42AUTOCONF = @AUTOCONF@
     43AUTOMAKE = @AUTOMAKE@
     44AUTOHEADER = @AUTOHEADER@
     45
    2646am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
    2747INSTALL = @INSTALL@
     48INSTALL_PROGRAM = @INSTALL_PROGRAM@
     49INSTALL_DATA = @INSTALL_DATA@
    2850install_sh_DATA = $(install_sh) -c -m 644
    2951install_sh_PROGRAM = $(install_sh) -c
    3052install_sh_SCRIPT = $(install_sh) -c
     53INSTALL_SCRIPT = @INSTALL_SCRIPT@
    3154INSTALL_HEADER = $(INSTALL_DATA)
    32 transform = $(program_transform_name)
     55transform = @program_transform_name@
    3356NORMAL_INSTALL = :
    3457PRE_INSTALL = :
     
    3760PRE_UNINSTALL = :
    3861POST_UNINSTALL = :
     62host_alias = @host_alias@
    3963host_triplet = @host@
    40 bin_PROGRAMS = tst_pmFlatField$(EXEEXT) tst_pmMaskBadPixels$(EXEEXT) \
    41         tst_pmNonLinear$(EXEEXT)
     64
     65EXEEXT = @EXEEXT@
     66OBJEXT = @OBJEXT@
     67PATH_SEPARATOR = @PATH_SEPARATOR@
     68AMTAR = @AMTAR@
     69AS = @AS@
     70AWK = @AWK@
     71CC = @CC@
     72CFLAGS = @CFLAGS@
     73DEPDIR = @DEPDIR@
     74DLLTOOL = @DLLTOOL@
     75ECHO = @ECHO@
     76GSL_CONFIG = @GSL_CONFIG@
     77INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
     78LIBTOOL = @LIBTOOL@
     79LN_S = @LN_S@
     80OBJDUMP = @OBJDUMP@
     81PACKAGE = @PACKAGE@
     82RANLIB = @RANLIB@
     83STRIP = @STRIP@
     84VERSION = @VERSION@
     85am__include = @am__include@
     86am__quote = @am__quote@
     87install_sh = @install_sh@
     88bin_PROGRAMS = tst_pmFlatField tst_pmMaskBadPixels tst_pmNonLinear tst_pmSubtractBias
     89
     90tst_pmFlatField_SOURCES = tst_pmFlatField.c
     91tst_pmFlatField_LDFLAGS = -L../src -lpsmodule
     92
     93tst_pmMaskBadPixels_SOURCES = tst_pmMaskBadPixels.c
     94tst_pmMaskBadPixels_LDFLAGS = -L../src -lpsmodule
     95
     96tst_pmNonLinear_SOURCES = tst_pmNonLinear.c
     97tst_pmNonLinear_LDFLAGS = -L../src -lpsmodule
     98
     99tst_pmSubtractBias_SOURCES = tst_pmSubtractBias.c
     100tst_pmSubtractBias_LDFLAGS = -L../src -lpsmodule
    42101subdir = test
    43 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
    44 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
    45 am__aclocal_m4_deps = $(top_srcdir)/configure.in
    46 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
    47         $(ACLOCAL_M4)
    48102mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
    49103CONFIG_HEADER = $(top_builddir)/src/config.h
    50104CONFIG_CLEAN_FILES =
    51 am__installdirs = "$(DESTDIR)$(bindir)"
    52 binPROGRAMS_INSTALL = $(INSTALL_PROGRAM)
     105bin_PROGRAMS = tst_pmFlatField$(EXEEXT) tst_pmMaskBadPixels$(EXEEXT) \
     106        tst_pmNonLinear$(EXEEXT) tst_pmSubtractBias$(EXEEXT)
    53107PROGRAMS = $(bin_PROGRAMS)
     108
    54109am_tst_pmFlatField_OBJECTS = tst_pmFlatField.$(OBJEXT)
    55110tst_pmFlatField_OBJECTS = $(am_tst_pmFlatField_OBJECTS)
    56111tst_pmFlatField_LDADD = $(LDADD)
     112tst_pmFlatField_DEPENDENCIES =
    57113am_tst_pmMaskBadPixels_OBJECTS = tst_pmMaskBadPixels.$(OBJEXT)
    58114tst_pmMaskBadPixels_OBJECTS = $(am_tst_pmMaskBadPixels_OBJECTS)
    59115tst_pmMaskBadPixels_LDADD = $(LDADD)
     116tst_pmMaskBadPixels_DEPENDENCIES =
    60117am_tst_pmNonLinear_OBJECTS = tst_pmNonLinear.$(OBJEXT)
    61118tst_pmNonLinear_OBJECTS = $(am_tst_pmNonLinear_OBJECTS)
    62119tst_pmNonLinear_LDADD = $(LDADD)
    63 DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)/src
     120tst_pmNonLinear_DEPENDENCIES =
     121am_tst_pmSubtractBias_OBJECTS = tst_pmSubtractBias.$(OBJEXT)
     122tst_pmSubtractBias_OBJECTS = $(am_tst_pmSubtractBias_OBJECTS)
     123tst_pmSubtractBias_LDADD = $(LDADD)
     124tst_pmSubtractBias_DEPENDENCIES =
     125
     126DEFS = @DEFS@
     127DEFAULT_INCLUDES =  -I. -I$(srcdir) -I$(top_builddir)/src
     128CPPFLAGS = @CPPFLAGS@
     129LDFLAGS = @LDFLAGS@
     130LIBS = @LIBS@
    64131depcomp = $(SHELL) $(top_srcdir)/depcomp
    65132am__depfiles_maybe = depfiles
    66133@AMDEP_TRUE@DEP_FILES = ./$(DEPDIR)/tst_pmFlatField.Po \
    67134@AMDEP_TRUE@    ./$(DEPDIR)/tst_pmMaskBadPixels.Po \
    68 @AMDEP_TRUE@    ./$(DEPDIR)/tst_pmNonLinear.Po
     135@AMDEP_TRUE@    ./$(DEPDIR)/tst_pmNonLinear.Po \
     136@AMDEP_TRUE@    ./$(DEPDIR)/tst_pmSubtractBias.Po
    69137COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
    70138        $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
    71 LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) \
    72         $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
    73         $(AM_CFLAGS) $(CFLAGS)
     139LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) \
     140        $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
    74141CCLD = $(CC)
    75142LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
    76143        $(AM_LDFLAGS) $(LDFLAGS) -o $@
    77 SOURCES = $(tst_pmFlatField_SOURCES) $(tst_pmMaskBadPixels_SOURCES) \
    78         $(tst_pmNonLinear_SOURCES)
    79 DIST_SOURCES = $(tst_pmFlatField_SOURCES) \
    80         $(tst_pmMaskBadPixels_SOURCES) $(tst_pmNonLinear_SOURCES)
    81 ETAGS = etags
    82 CTAGS = ctags
    83 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
    84 ACLOCAL = @ACLOCAL@
    85 AMDEP_FALSE = @AMDEP_FALSE@
    86 AMDEP_TRUE = @AMDEP_TRUE@
    87 AMTAR = @AMTAR@
    88 AR = @AR@
    89 AUTOCONF = @AUTOCONF@
    90 AUTOHEADER = @AUTOHEADER@
    91 AUTOMAKE = @AUTOMAKE@
    92 AWK = @AWK@
    93 CC = @CC@
    94 CCDEPMODE = @CCDEPMODE@
    95 CFLAGS = @CFLAGS@
    96 CPP = @CPP@
    97 CPPFLAGS = @CPPFLAGS@
    98 CXX = @CXX@
    99 CXXCPP = @CXXCPP@
    100 CXXDEPMODE = @CXXDEPMODE@
    101 CXXFLAGS = @CXXFLAGS@
    102 CYGPATH_W = @CYGPATH_W@
    103 DEFS = @DEFS@
    104 DEPDIR = @DEPDIR@
    105 ECHO = @ECHO@
    106 ECHO_C = @ECHO_C@
    107 ECHO_N = @ECHO_N@
    108 ECHO_T = @ECHO_T@
    109 EGREP = @EGREP@
    110 EXEEXT = @EXEEXT@
    111 F77 = @F77@
    112 FFLAGS = @FFLAGS@
    113 GSL_CONFIG = @GSL_CONFIG@
    114 INSTALL_DATA = @INSTALL_DATA@
    115 INSTALL_PROGRAM = @INSTALL_PROGRAM@
    116 INSTALL_SCRIPT = @INSTALL_SCRIPT@
    117 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
    118 LDFLAGS = @LDFLAGS@
    119 LIBOBJS = @LIBOBJS@
    120 LIBS = @LIBS@
    121 LIBTOOL = @LIBTOOL@
    122 LN_S = @LN_S@
    123 LTLIBOBJS = @LTLIBOBJS@
    124 MAKEINFO = @MAKEINFO@
    125 OBJEXT = @OBJEXT@
    126 PACKAGE = @PACKAGE@
    127 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
    128 PACKAGE_NAME = @PACKAGE_NAME@
    129 PACKAGE_STRING = @PACKAGE_STRING@
    130 PACKAGE_TARNAME = @PACKAGE_TARNAME@
    131 PACKAGE_VERSION = @PACKAGE_VERSION@
    132 PATH_SEPARATOR = @PATH_SEPARATOR@
    133 RANLIB = @RANLIB@
    134 SET_MAKE = @SET_MAKE@
    135 SHELL = @SHELL@
    136 STRIP = @STRIP@
    137 VERSION = @VERSION@
    138 ac_ct_AR = @ac_ct_AR@
    139 ac_ct_CC = @ac_ct_CC@
    140 ac_ct_CXX = @ac_ct_CXX@
    141 ac_ct_F77 = @ac_ct_F77@
    142 ac_ct_RANLIB = @ac_ct_RANLIB@
    143 ac_ct_STRIP = @ac_ct_STRIP@
    144 am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
    145 am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
    146 am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
    147 am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
    148 am__include = @am__include@
    149 am__leading_dot = @am__leading_dot@
    150 am__quote = @am__quote@
    151 bindir = @bindir@
    152 build = @build@
    153 build_alias = @build_alias@
    154 build_cpu = @build_cpu@
    155 build_os = @build_os@
    156 build_vendor = @build_vendor@
    157 datadir = @datadir@
    158 exec_prefix = @exec_prefix@
    159 host = @host@
    160 host_alias = @host_alias@
    161 host_cpu = @host_cpu@
    162 host_os = @host_os@
    163 host_vendor = @host_vendor@
    164 includedir = @includedir@
    165 infodir = @infodir@
    166 install_sh = @install_sh@
    167 libdir = @libdir@
    168 libexecdir = @libexecdir@
    169 localstatedir = @localstatedir@
    170 mandir = @mandir@
    171 mkdir_p = @mkdir_p@
    172 oldincludedir = @oldincludedir@
    173 prefix = @prefix@
    174 program_transform_name = @program_transform_name@
    175 sbindir = @sbindir@
    176 sharedstatedir = @sharedstatedir@
    177 sysconfdir = @sysconfdir@
    178 target_alias = @target_alias@
    179 tst_pmFlatField_SOURCES = tst_pmFlatField.c
    180 tst_pmFlatField_LDFLAGS = -L../src -lpsmodule
    181 tst_pmMaskBadPixels_SOURCES = tst_pmMaskBadPixels.c
    182 tst_pmMaskBadPixels_LDFLAGS = -L../src -lpsmodule
    183 tst_pmNonLinear_SOURCES = tst_pmNonLinear.c
    184 tst_pmNonLinear_LDFLAGS = -L../src -lpsmodule
     144DIST_SOURCES = $(tst_pmFlatField_SOURCES) $(tst_pmMaskBadPixels_SOURCES) \
     145        $(tst_pmNonLinear_SOURCES) $(tst_pmSubtractBias_SOURCES)
     146DIST_COMMON = Makefile.am Makefile.in
     147SOURCES = $(tst_pmFlatField_SOURCES) $(tst_pmMaskBadPixels_SOURCES) $(tst_pmNonLinear_SOURCES) $(tst_pmSubtractBias_SOURCES)
     148
    185149all: all-am
    186150
    187151.SUFFIXES:
    188152.SUFFIXES: .c .lo .o .obj
    189 $(srcdir)/Makefile.in:  $(srcdir)/Makefile.am  $(am__configure_deps)
    190         @for dep in $?; do \
    191           case '$(am__configure_deps)' in \
    192             *$$dep*) \
    193               cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
    194                 && exit 0; \
    195               exit 1;; \
    196           esac; \
    197         done; \
    198         echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu  test/Makefile'; \
     153$(srcdir)/Makefile.in:  Makefile.am  $(top_srcdir)/configure.in $(ACLOCAL_M4)
    199154        cd $(top_srcdir) && \
    200155          $(AUTOMAKE) --gnu  test/Makefile
    201 .PRECIOUS: Makefile
    202 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
    203         @case '$?' in \
    204           *config.status*) \
    205             cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
    206           *) \
    207             echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
    208             cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
    209         esac;
    210 
    211 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
    212         cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
    213 
    214 $(top_srcdir)/configure:  $(am__configure_deps)
    215         cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
    216 $(ACLOCAL_M4):  $(am__aclocal_m4_deps)
    217         cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
     156Makefile:  $(srcdir)/Makefile.in  $(top_builddir)/config.status
     157        cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)
     158binPROGRAMS_INSTALL = $(INSTALL_PROGRAM)
    218159install-binPROGRAMS: $(bin_PROGRAMS)
    219160        @$(NORMAL_INSTALL)
    220         test -z "$(bindir)" || $(mkdir_p) "$(DESTDIR)$(bindir)"
     161        $(mkinstalldirs) $(DESTDIR)$(bindir)
    221162        @list='$(bin_PROGRAMS)'; for p in $$list; do \
    222163          p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
     
    225166          ; then \
    226167            f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \
    227            echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(binPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(bindir)/$$f'"; \
    228            $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(binPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(bindir)/$$f" || exit 1; \
     168           echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(binPROGRAMS_INSTALL) $$p $(DESTDIR)$(bindir)/$$f"; \
     169           $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(binPROGRAMS_INSTALL) $$p $(DESTDIR)$(bindir)/$$f; \
    229170          else :; fi; \
    230171        done
     
    234175        @list='$(bin_PROGRAMS)'; for p in $$list; do \
    235176          f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \
    236           echo " rm -f '$(DESTDIR)$(bindir)/$$f'"; \
    237           rm -f "$(DESTDIR)$(bindir)/$$f"; \
     177          echo " rm -f $(DESTDIR)$(bindir)/$$f"; \
     178          rm -f $(DESTDIR)$(bindir)/$$f; \
    238179        done
    239180
     
    253194        @rm -f tst_pmNonLinear$(EXEEXT)
    254195        $(LINK) $(tst_pmNonLinear_LDFLAGS) $(tst_pmNonLinear_OBJECTS) $(tst_pmNonLinear_LDADD) $(LIBS)
     196tst_pmSubtractBias$(EXEEXT): $(tst_pmSubtractBias_OBJECTS) $(tst_pmSubtractBias_DEPENDENCIES)
     197        @rm -f tst_pmSubtractBias$(EXEEXT)
     198        $(LINK) $(tst_pmSubtractBias_LDFLAGS) $(tst_pmSubtractBias_OBJECTS) $(tst_pmSubtractBias_LDADD) $(LIBS)
    255199
    256200mostlyclean-compile:
    257         -rm -f *.$(OBJEXT)
     201        -rm -f *.$(OBJEXT) core *.core
    258202
    259203distclean-compile:
     
    263207@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tst_pmMaskBadPixels.Po@am__quote@
    264208@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tst_pmNonLinear.Po@am__quote@
     209@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tst_pmSubtractBias.Po@am__quote@
     210
     211distclean-depend:
     212        -rm -rf ./$(DEPDIR)
    265213
    266214.c.o:
    267 @am__fastdepCC_TRUE@    if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
    268 @am__fastdepCC_TRUE@    then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
    269 @AMDEP_TRUE@@am__fastdepCC_FALSE@       source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
    270 @AMDEP_TRUE@@am__fastdepCC_FALSE@       depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@
    271 @AMDEP_TRUE@@am__fastdepCC_FALSE@       $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
    272 @am__fastdepCC_FALSE@   $(COMPILE) -c $<
     215@AMDEP_TRUE@    source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
     216@AMDEP_TRUE@    depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@
     217@AMDEP_TRUE@    $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
     218        $(COMPILE) -c `test -f '$<' || echo '$(srcdir)/'`$<
    273219
    274220.c.obj:
    275 @am__fastdepCC_TRUE@    if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \
    276 @am__fastdepCC_TRUE@    then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
    277 @AMDEP_TRUE@@am__fastdepCC_FALSE@       source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
    278 @AMDEP_TRUE@@am__fastdepCC_FALSE@       depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@
    279 @AMDEP_TRUE@@am__fastdepCC_FALSE@       $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
    280 @am__fastdepCC_FALSE@   $(COMPILE) -c `$(CYGPATH_W) '$<'`
     221@AMDEP_TRUE@    source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
     222@AMDEP_TRUE@    depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@
     223@AMDEP_TRUE@    $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
     224        $(COMPILE) -c `cygpath -w $<`
    281225
    282226.c.lo:
    283 @am__fastdepCC_TRUE@    if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
    284 @am__fastdepCC_TRUE@    then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
    285 @AMDEP_TRUE@@am__fastdepCC_FALSE@       source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
    286 @AMDEP_TRUE@@am__fastdepCC_FALSE@       depfile='$(DEPDIR)/$*.Plo' tmpdepfile='$(DEPDIR)/$*.TPlo' @AMDEPBACKSLASH@
    287 @AMDEP_TRUE@@am__fastdepCC_FALSE@       $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
    288 @am__fastdepCC_FALSE@   $(LTCOMPILE) -c -o $@ $<
     227@AMDEP_TRUE@    source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
     228@AMDEP_TRUE@    depfile='$(DEPDIR)/$*.Plo' tmpdepfile='$(DEPDIR)/$*.TPlo' @AMDEPBACKSLASH@
     229@AMDEP_TRUE@    $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
     230        $(LTCOMPILE) -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$<
     231CCDEPMODE = @CCDEPMODE@
    289232
    290233mostlyclean-libtool:
     
    297240        -rm -f libtool
    298241uninstall-info-am:
     242
     243ETAGS = etags
     244ETAGSFLAGS =
     245
     246tags: TAGS
    299247
    300248ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
     
    306254               END { for (i in files) print i; }'`; \
    307255        mkid -fID $$unique
    308 tags: TAGS
    309256
    310257TAGS:  $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
     
    321268          || $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
    322269             $$tags $$unique
    323 ctags: CTAGS
    324 CTAGS:  $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
    325                 $(TAGS_FILES) $(LISP)
    326         tags=; \
    327         here=`pwd`; \
    328         list='$(SOURCES) $(HEADERS)  $(LISP) $(TAGS_FILES)'; \
    329         unique=`for i in $$list; do \
    330             if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
    331           done | \
    332           $(AWK) '    { files[$$0] = 1; } \
    333                END { for (i in files) print i; }'`; \
    334         test -z "$(CTAGS_ARGS)$$tags$$unique" \
    335           || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
    336              $$tags $$unique
    337270
    338271GTAGS:
     
    342275
    343276distclean-tags:
    344         -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
     277        -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH
     278DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
     279
     280top_distdir = ..
     281distdir = $(top_distdir)/$(PACKAGE)-$(VERSION)
    345282
    346283distdir: $(DISTFILES)
    347         @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
    348         topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
    349         list='$(DISTFILES)'; for file in $$list; do \
    350           case $$file in \
    351             $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
    352             $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
    353           esac; \
     284        @list='$(DISTFILES)'; for file in $$list; do \
    354285          if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
    355286          dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
    356287          if test "$$dir" != "$$file" && test "$$dir" != "."; then \
    357288            dir="/$$dir"; \
    358             $(mkdir_p) "$(distdir)$$dir"; \
     289            $(mkinstalldirs) "$(distdir)$$dir"; \
    359290          else \
    360291            dir=''; \
     
    374305check: check-am
    375306all-am: Makefile $(PROGRAMS)
     307
    376308installdirs:
    377         for dir in "$(DESTDIR)$(bindir)"; do \
    378           test -z "$$dir" || $(mkdir_p) "$$dir"; \
    379         done
     309        $(mkinstalldirs) $(DESTDIR)$(bindir)
     310
    380311install: install-am
    381312install-exec: install-exec-am
     
    389320install-strip:
    390321        $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
    391           install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
     322          INSTALL_STRIP_FLAG=-s \
    392323          `test -z '$(STRIP)' || \
    393324            echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
     
    397328
    398329distclean-generic:
    399         -rm -f $(CONFIG_CLEAN_FILES)
     330        -rm -f Makefile $(CONFIG_CLEAN_FILES)
    400331
    401332maintainer-clean-generic:
     
    407338
    408339distclean: distclean-am
    409         -rm -rf ./$(DEPDIR)
    410         -rm -f Makefile
    411 distclean-am: clean-am distclean-compile distclean-generic \
    412         distclean-libtool distclean-tags
     340
     341distclean-am: clean-am distclean-compile distclean-depend \
     342        distclean-generic distclean-libtool distclean-tags
    413343
    414344dvi: dvi-am
     
    416346dvi-am:
    417347
    418 html: html-am
    419 
    420348info: info-am
    421349
     
    433361
    434362maintainer-clean: maintainer-clean-am
    435         -rm -rf ./$(DEPDIR)
    436         -rm -f Makefile
     363
    437364maintainer-clean-am: distclean-am maintainer-clean-generic
    438365
     
    442369        mostlyclean-libtool
    443370
    444 pdf: pdf-am
    445 
    446 pdf-am:
    447 
    448 ps: ps-am
    449 
    450 ps-am:
    451 
    452371uninstall-am: uninstall-binPROGRAMS uninstall-info-am
    453372
    454 .PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \
    455         clean-generic clean-libtool ctags distclean distclean-compile \
    456         distclean-generic distclean-libtool distclean-tags distdir dvi \
    457         dvi-am html html-am info info-am install install-am \
    458         install-binPROGRAMS install-data install-data-am install-exec \
    459         install-exec-am install-info install-info-am install-man \
    460         install-strip installcheck installcheck-am installdirs \
    461         maintainer-clean maintainer-clean-generic mostlyclean \
    462         mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
    463         pdf pdf-am ps ps-am tags uninstall uninstall-am \
     373.PHONY: GTAGS all all-am check check-am clean clean-binPROGRAMS \
     374        clean-generic clean-libtool distclean distclean-compile \
     375        distclean-depend distclean-generic distclean-libtool \
     376        distclean-tags distdir dvi dvi-am info info-am install \
     377        install-am install-binPROGRAMS install-data install-data-am \
     378        install-exec install-exec-am install-info install-info-am \
     379        install-man install-strip installcheck installcheck-am \
     380        installdirs maintainer-clean maintainer-clean-generic \
     381        mostlyclean mostlyclean-compile mostlyclean-generic \
     382        mostlyclean-libtool tags uninstall uninstall-am \
    464383        uninstall-binPROGRAMS uninstall-info-am
    465384
  • trunk/psModules/test/tst_pmSubtractBias.c

    r2131 r2132  
    77 *  @author GLG, MHPCC
    88 *
    9  *  @version $Revision: 1.1 $ $Name: not supported by cvs2svn $
    10  *  @date $Date: 2004-10-14 21:49:58 $
     9 *  @version $Revision: 1.2 $ $Name: not supported by cvs2svn $
     10 *  @date $Date: 2004-10-14 22:33:28 $
    1111 *
    1212 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    3737    float expect;
    3838    int testStatus = 0;
    39     psImage *myImage = psImageAlloc(numCols, numRows, PS_TYPE_F32);
    40     psReadout *myReadout = psReadoutAlloc(numCols, numRows, myImage);
    41     psImage *myImage = psImageAlloc(numCols, numRows, PS_TYPE_F32);
    42     psReadout *myBias = psReadoutAlloc(numCols, numRows, myImage);
     39    psImage *myImage1 = psImageAlloc(numCols, numRows, PS_TYPE_F32);
     40    psImage *myImage2 = psImageAlloc(numCols, numRows, PS_TYPE_F32);
     41    psReadout *myReadout = psReadoutAlloc(numCols, numRows, myImage1);
     42    psReadout *myBias = psReadoutAlloc(numCols, numRows, myImage2);
    4343
    4444    for (i=0;i<numRows;i++) {
     
    5252
    5353    myReadout = pmSubtractBias(myReadout, NULL, NULL, PM_OVERSCAN_NONE, NULL,
    54                                0, NULL, myBias);
     54                               0, PM_FIT_NONE, myBias);
    5555
    5656    for (i=0;i<numRows;i++) {
     
    7676    int testStatus = 0;
    7777
    78     //    testStatus |= doNonLinearityPolynomialTest(1, 1);
    79     //    testStatus |= doNonLinearityPolynomialTest(NUM_COLS, 1);
    80     //    testStatus |= doNonLinearityPolynomialTest(1, NUM_ROWS);
    81     testStatus |= doNonLinearityPolynomialTest(NUM_COLS, NUM_ROWS);
     78    testStatus |= doSubtractBiasFullFrame(NUM_COLS, NUM_ROWS);
    8279
    8380    return(testStatus);
Note: See TracChangeset for help on using the changeset viewer.