acinclude.m4
author Sam Lantinga <slouken@libsdl.org>
Thu, 16 Feb 2006 10:11:48 +0000
changeset 1361 19418e4422cb
parent 1309 0f00cbbe5792
child 1570 a740bca2a1b1
permissions -rw-r--r--
New configure-based build system. Still work in progress, but much improved
     1 ##############################################################################
     2 dnl Configure Paths for Alsa
     3 dnl Some modifications by Richard Boulton <richard-alsa@tartarus.org>
     4 dnl Christopher Lansdown <lansdoct@cs.alfred.edu>
     5 dnl Jaroslav Kysela <perex@suse.cz>
     6 dnl Last modification: alsa.m4,v 1.23 2004/01/16 18:14:22 tiwai Exp
     7 dnl AM_PATH_ALSA([MINIMUM-VERSION [, ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]])
     8 dnl Test for libasound, and define ALSA_CFLAGS and ALSA_LIBS as appropriate.
     9 dnl enables arguments --with-alsa-prefix=
    10 dnl                   --with-alsa-enc-prefix=
    11 dnl                   --disable-alsatest
    12 dnl
    13 dnl For backwards compatibility, if ACTION_IF_NOT_FOUND is not specified,
    14 dnl and the alsa libraries are not found, a fatal AC_MSG_ERROR() will result.
    15 dnl
    16 AC_DEFUN([AM_PATH_ALSA],
    17 [dnl Save the original CFLAGS, LDFLAGS, and LIBS
    18 alsa_save_CFLAGS="$CFLAGS"
    19 alsa_save_LDFLAGS="$LDFLAGS"
    20 alsa_save_LIBS="$LIBS"
    21 alsa_found=yes
    22 
    23 dnl
    24 dnl Get the cflags and libraries for alsa
    25 dnl
    26 AC_ARG_WITH(alsa-prefix,
    27 [  --with-alsa-prefix=PFX  Prefix where Alsa library is installed(optional)],
    28 [alsa_prefix="$withval"], [alsa_prefix=""])
    29 
    30 AC_ARG_WITH(alsa-inc-prefix,
    31 [  --with-alsa-inc-prefix=PFX  Prefix where include libraries are (optional)],
    32 [alsa_inc_prefix="$withval"], [alsa_inc_prefix=""])
    33 
    34 dnl FIXME: this is not yet implemented
    35 AC_ARG_ENABLE(alsatest,
    36 [  --disable-alsatest      Do not try to compile and run a test Alsa program],
    37 [enable_alsatest="$enableval"],
    38 [enable_alsatest=yes])
    39 
    40 dnl Add any special include directories
    41 AC_MSG_CHECKING(for ALSA CFLAGS)
    42 if test "$alsa_inc_prefix" != "" ; then
    43 	ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
    44 	CFLAGS="$CFLAGS -I$alsa_inc_prefix"
    45 fi
    46 AC_MSG_RESULT($ALSA_CFLAGS)
    47 
    48 dnl add any special lib dirs
    49 AC_MSG_CHECKING(for ALSA LDFLAGS)
    50 if test "$alsa_prefix" != "" ; then
    51 	ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
    52 	LDFLAGS="$LDFLAGS $ALSA_LIBS"
    53 fi
    54 
    55 dnl add the alsa library
    56 ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
    57 LIBS=`echo $LIBS | sed 's/-lm//'`
    58 LIBS=`echo $LIBS | sed 's/-ldl//'`
    59 LIBS=`echo $LIBS | sed 's/-lpthread//'`
    60 LIBS=`echo $LIBS | sed 's/  //'`
    61 LIBS="$ALSA_LIBS $LIBS"
    62 AC_MSG_RESULT($ALSA_LIBS)
    63 
    64 dnl Check for a working version of libasound that is of the right version.
    65 min_alsa_version=ifelse([$1], ,0.1.1,$1)
    66 AC_MSG_CHECKING(for libasound headers version >= $min_alsa_version)
    67 no_alsa=""
    68     alsa_min_major_version=`echo $min_alsa_version | \
    69            sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
    70     alsa_min_minor_version=`echo $min_alsa_version | \
    71            sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
    72     alsa_min_micro_version=`echo $min_alsa_version | \
    73            sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
    74 
    75 AC_LANG_SAVE
    76 AC_LANG_C
    77 AC_TRY_COMPILE([
    78 #include <alsa/asoundlib.h>
    79 ], [
    80 /* ensure backward compatibility */
    81 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
    82 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
    83 #endif
    84 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
    85 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
    86 #endif
    87 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
    88 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
    89 #endif
    90 
    91 #  if(SND_LIB_MAJOR > $alsa_min_major_version)
    92   exit(0);
    93 #  else
    94 #    if(SND_LIB_MAJOR < $alsa_min_major_version)
    95 #       error not present
    96 #    endif
    97 
    98 #   if(SND_LIB_MINOR > $alsa_min_minor_version)
    99   exit(0);
   100 #   else
   101 #     if(SND_LIB_MINOR < $alsa_min_minor_version)
   102 #          error not present
   103 #      endif
   104 
   105 #      if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
   106 #        error not present
   107 #      endif
   108 #    endif
   109 #  endif
   110 exit(0);
   111 ],
   112   [AC_MSG_RESULT(found.)],
   113   [AC_MSG_RESULT(not present.)
   114    ifelse([$3], , [AC_MSG_ERROR(Sufficiently new version of libasound not found.)])
   115    alsa_found=no]
   116 )
   117 AC_LANG_RESTORE
   118 
   119 dnl Now that we know that we have the right version, let's see if we have the library and not just the headers.
   120 if test "x$enable_alsatest" = "xyes"; then
   121 AC_CHECK_LIB([asound], [snd_ctl_open],,
   122 	[ifelse([$3], , [AC_MSG_ERROR(No linkable libasound was found.)])
   123 	 alsa_found=no]
   124 )
   125 fi
   126 
   127 if test "x$alsa_found" = "xyes" ; then
   128    ifelse([$2], , :, [$2])
   129    LIBS=`echo $LIBS | sed 's/-lasound//g'`
   130    LIBS=`echo $LIBS | sed 's/  //'`
   131    LIBS="-lasound $LIBS"
   132 fi
   133 if test "x$alsa_found" = "xno" ; then
   134    ifelse([$3], , :, [$3])
   135    CFLAGS="$alsa_save_CFLAGS"
   136    LDFLAGS="$alsa_save_LDFLAGS"
   137    LIBS="$alsa_save_LIBS"
   138    ALSA_CFLAGS=""
   139    ALSA_LIBS=""
   140 fi
   141 
   142 dnl That should be it.  Now just export out symbols:
   143 AC_SUBST(ALSA_CFLAGS)
   144 AC_SUBST(ALSA_LIBS)
   145 ])
   146 
   147 ##############################################################################
   148 #
   149 # --- esd.m4 ---
   150 #
   151 # Configure paths for ESD
   152 # Manish Singh    98-9-30
   153 # stolen back from Frank Belew
   154 # stolen from Manish Singh
   155 # Shamelessly stolen from Owen Taylor
   156 
   157 dnl AM_PATH_ESD([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]])
   158 dnl Test for ESD, and define ESD_CFLAGS and ESD_LIBS
   159 dnl
   160 AC_DEFUN([AM_PATH_ESD],
   161 [dnl 
   162 dnl Get the cflags and libraries from the esd-config script
   163 dnl
   164 AC_ARG_WITH(esd-prefix,[  --with-esd-prefix=PFX   Prefix where ESD is installed (optional)],
   165             esd_prefix="$withval", esd_prefix="")
   166 AC_ARG_WITH(esd-exec-prefix,[  --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)],
   167             esd_exec_prefix="$withval", esd_exec_prefix="")
   168 AC_ARG_ENABLE(esdtest, [  --disable-esdtest       Do not try to compile and run a test ESD program],
   169 		    , enable_esdtest=yes)
   170 
   171   if test x$esd_exec_prefix != x ; then
   172      esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
   173      if test x${ESD_CONFIG+set} != xset ; then
   174         ESD_CONFIG=$esd_exec_prefix/bin/esd-config
   175      fi
   176   fi
   177   if test x$esd_prefix != x ; then
   178      esd_args="$esd_args --prefix=$esd_prefix"
   179      if test x${ESD_CONFIG+set} != xset ; then
   180         ESD_CONFIG=$esd_prefix/bin/esd-config
   181      fi
   182   fi
   183 
   184   AC_PATH_PROG(ESD_CONFIG, esd-config, no)
   185   min_esd_version=ifelse([$1], ,0.2.7,$1)
   186   AC_MSG_CHECKING(for ESD - version >= $min_esd_version)
   187   no_esd=""
   188   if test "$ESD_CONFIG" = "no" ; then
   189     no_esd=yes
   190   else
   191     ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
   192     ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
   193 
   194     esd_major_version=`$ESD_CONFIG $esd_args --version | \
   195            sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
   196     esd_minor_version=`$ESD_CONFIG $esd_args --version | \
   197            sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
   198     esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
   199            sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
   200     if test "x$enable_esdtest" = "xyes" ; then
   201       ac_save_CFLAGS="$CFLAGS"
   202       ac_save_LIBS="$LIBS"
   203       CFLAGS="$CFLAGS $ESD_CFLAGS"
   204       LIBS="$LIBS $ESD_LIBS"
   205 dnl
   206 dnl Now check if the installed ESD is sufficiently new. (Also sanity
   207 dnl checks the results of esd-config to some extent
   208 dnl
   209       rm -f conf.esdtest
   210       AC_TRY_RUN([
   211 #include <stdio.h>
   212 #include <stdlib.h>
   213 #include <string.h>
   214 #include <esd.h>
   215 
   216 char*
   217 my_strdup (char *str)
   218 {
   219   char *new_str;
   220   
   221   if (str)
   222     {
   223       new_str = malloc ((strlen (str) + 1) * sizeof(char));
   224       strcpy (new_str, str);
   225     }
   226   else
   227     new_str = NULL;
   228   
   229   return new_str;
   230 }
   231 
   232 int main ()
   233 {
   234   int major, minor, micro;
   235   char *tmp_version;
   236 
   237   system ("touch conf.esdtest");
   238 
   239   /* HP/UX 9 (%@#!) writes to sscanf strings */
   240   tmp_version = my_strdup("$min_esd_version");
   241   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
   242      printf("%s, bad version string\n", "$min_esd_version");
   243      exit(1);
   244    }
   245 
   246    if (($esd_major_version > major) ||
   247       (($esd_major_version == major) && ($esd_minor_version > minor)) ||
   248       (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
   249     {
   250       return 0;
   251     }
   252   else
   253     {
   254       printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
   255       printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
   256       printf("*** best to upgrade to the required version.\n");
   257       printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
   258       printf("*** to point to the correct copy of esd-config, and remove the file\n");
   259       printf("*** config.cache before re-running configure\n");
   260       return 1;
   261     }
   262 }
   263 
   264 ],, no_esd=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
   265        CFLAGS="$ac_save_CFLAGS"
   266        LIBS="$ac_save_LIBS"
   267      fi
   268   fi
   269   if test "x$no_esd" = x ; then
   270      AC_MSG_RESULT(yes)
   271      ifelse([$2], , :, [$2])     
   272   else
   273      AC_MSG_RESULT(no)
   274      if test "$ESD_CONFIG" = "no" ; then
   275        echo "*** The esd-config script installed by ESD could not be found"
   276        echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
   277        echo "*** your path, or set the ESD_CONFIG environment variable to the"
   278        echo "*** full path to esd-config."
   279      else
   280        if test -f conf.esdtest ; then
   281         :
   282        else
   283           echo "*** Could not run ESD test program, checking why..."
   284           CFLAGS="$CFLAGS $ESD_CFLAGS"
   285           LIBS="$LIBS $ESD_LIBS"
   286           AC_TRY_LINK([
   287 #include <stdio.h>
   288 #include <esd.h>
   289 ],      [ return 0; ],
   290         [ echo "*** The test program compiled, but did not run. This usually means"
   291           echo "*** that the run-time linker is not finding ESD or finding the wrong"
   292           echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
   293           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
   294           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
   295           echo "*** is required on your system"
   296 	  echo "***"
   297           echo "*** If you have an old version installed, it is best to remove it, although"
   298           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"],
   299         [ echo "*** The test program failed to compile or link. See the file config.log for the"
   300           echo "*** exact error that occured. This usually means ESD was incorrectly installed"
   301           echo "*** or that you have moved ESD since it was installed. In the latter case, you"
   302           echo "*** may want to edit the esd-config script: $ESD_CONFIG" ])
   303           CFLAGS="$ac_save_CFLAGS"
   304           LIBS="$ac_save_LIBS"
   305        fi
   306      fi
   307      ESD_CFLAGS=""
   308      ESD_LIBS=""
   309      ifelse([$3], , :, [$3])
   310   fi
   311   AC_SUBST(ESD_CFLAGS)
   312   AC_SUBST(ESD_LIBS)
   313   rm -f conf.esdtest
   314 ])
   315 
   316 ##############################################################################
   317 # Based on libtool-1.5.8
   318 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
   319 ## Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004
   320 ## Free Software Foundation, Inc.
   321 ## Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
   322 ##
   323 ## This program is free software; you can redistribute it and/or modify
   324 ## it under the terms of the GNU General Public License as published by
   325 ## the Free Software Foundation; either version 2 of the License, or
   326 ## (at your option) any later version.
   327 ##
   328 ## This program is distributed in the hope that it will be useful, but
   329 ## WITHOUT ANY WARRANTY; without even the implied warranty of
   330 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   331 ## General Public License for more details.
   332 ##
   333 ## You should have received a copy of the GNU General Public License
   334 ## along with this program; if not, write to the Free Software
   335 ## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
   336 ##
   337 ## As a special exception to the GNU General Public License, if you
   338 ## distribute this file as part of a program that contains a
   339 ## configuration script generated by Autoconf, you may include it under
   340 ## the same distribution terms that you use for the rest of that program.
   341 
   342 # serial 47 AC_PROG_LIBTOOL
   343 
   344 
   345 # AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
   346 # -----------------------------------------------------------
   347 # If this macro is not defined by Autoconf, define it here.
   348 m4_ifdef([AC_PROVIDE_IFELSE],
   349          [],
   350          [m4_define([AC_PROVIDE_IFELSE],
   351 	         [m4_ifdef([AC_PROVIDE_$1],
   352 		           [$2], [$3])])])
   353 
   354 
   355 # AC_PROG_LIBTOOL
   356 # ---------------
   357 AC_DEFUN([AC_PROG_LIBTOOL],
   358 [AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
   359 dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
   360 dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
   361   AC_PROVIDE_IFELSE([AC_PROG_CXX],
   362     [AC_LIBTOOL_CXX],
   363     [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
   364   ])])
   365 dnl And a similar setup for Fortran 77 support
   366   AC_PROVIDE_IFELSE([AC_PROG_F77],
   367     [AC_LIBTOOL_F77],
   368     [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
   369 ])])
   370 
   371 dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
   372 dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
   373 dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
   374   AC_PROVIDE_IFELSE([AC_PROG_GCJ],
   375     [AC_LIBTOOL_GCJ],
   376     [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
   377       [AC_LIBTOOL_GCJ],
   378       [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
   379 	[AC_LIBTOOL_GCJ],
   380       [ifdef([AC_PROG_GCJ],
   381 	     [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
   382        ifdef([A][M_PROG_GCJ],
   383 	     [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
   384        ifdef([LT_AC_PROG_GCJ],
   385 	     [define([LT_AC_PROG_GCJ],
   386 		defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
   387 ])])# AC_PROG_LIBTOOL
   388 
   389 
   390 # _AC_PROG_LIBTOOL
   391 # ----------------
   392 AC_DEFUN([_AC_PROG_LIBTOOL],
   393 [AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
   394 AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
   395 AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
   396 AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
   397 
   398 # This can be used to rebuild libtool when needed
   399 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
   400 
   401 # Always use our own libtool.
   402 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
   403 AC_SUBST(LIBTOOL)dnl
   404 
   405 # Prevent multiple expansion
   406 define([AC_PROG_LIBTOOL], [])
   407 ])# _AC_PROG_LIBTOOL
   408 
   409 
   410 # AC_LIBTOOL_SETUP
   411 # ----------------
   412 AC_DEFUN([AC_LIBTOOL_SETUP],
   413 [AC_PREREQ(2.50)dnl
   414 AC_REQUIRE([AC_ENABLE_SHARED])dnl
   415 AC_REQUIRE([AC_ENABLE_STATIC])dnl
   416 AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
   417 AC_REQUIRE([AC_CANONICAL_HOST])dnl
   418 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
   419 AC_REQUIRE([AC_PROG_CC])dnl
   420 AC_REQUIRE([AC_PROG_LD])dnl
   421 AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
   422 AC_REQUIRE([AC_PROG_NM])dnl
   423 
   424 AC_REQUIRE([AC_PROG_LN_S])dnl
   425 AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
   426 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
   427 AC_REQUIRE([AC_OBJEXT])dnl
   428 AC_REQUIRE([AC_EXEEXT])dnl
   429 dnl
   430 
   431 AC_LIBTOOL_SYS_MAX_CMD_LEN
   432 AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
   433 AC_LIBTOOL_OBJDIR
   434 
   435 AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
   436 _LT_AC_PROG_ECHO_BACKSLASH
   437 
   438 case $host_os in
   439 aix3*)
   440   # AIX sometimes has problems with the GCC collect2 program.  For some
   441   # reason, if we set the COLLECT_NAMES environment variable, the problems
   442   # vanish in a puff of smoke.
   443   if test "X${COLLECT_NAMES+set}" != Xset; then
   444     COLLECT_NAMES=
   445     export COLLECT_NAMES
   446   fi
   447   ;;
   448 esac
   449 
   450 # Sed substitution that helps us do robust quoting.  It backslashifies
   451 # metacharacters that are still active within double-quoted strings.
   452 Xsed='sed -e s/^X//'
   453 [sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
   454 
   455 # Same as above, but do not quote variable references.
   456 [double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
   457 
   458 # Sed substitution to delay expansion of an escaped shell variable in a
   459 # double_quote_subst'ed string.
   460 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
   461 
   462 # Sed substitution to avoid accidental globbing in evaled expressions
   463 no_glob_subst='s/\*/\\\*/g'
   464 
   465 # Constants:
   466 rm="rm -f"
   467 
   468 # Global variables:
   469 default_ofile=libtool
   470 can_build_shared=yes
   471 
   472 # All known linkers require a `.a' archive for static linking (except M$VC,
   473 # which needs '.lib').
   474 libext=a
   475 ltmain="$ac_aux_dir/ltmain.sh"
   476 ofile="$default_ofile"
   477 with_gnu_ld="$lt_cv_prog_gnu_ld"
   478 
   479 AC_CHECK_TOOL(AR, ar, false)
   480 AC_CHECK_TOOL(RANLIB, ranlib, :)
   481 AC_CHECK_TOOL(STRIP, strip, :)
   482 
   483 old_CC="$CC"
   484 old_CFLAGS="$CFLAGS"
   485 
   486 # Set sane defaults for various variables
   487 test -z "$AR" && AR=ar
   488 test -z "$AR_FLAGS" && AR_FLAGS=cru
   489 test -z "$AS" && AS=as
   490 test -z "$CC" && CC=cc
   491 test -z "$LTCC" && LTCC=$CC
   492 test -z "$DLLTOOL" && DLLTOOL=dlltool
   493 test -z "$LD" && LD=ld
   494 test -z "$LN_S" && LN_S="ln -s"
   495 test -z "$MAGIC_CMD" && MAGIC_CMD=file
   496 test -z "$NM" && NM=nm
   497 test -z "$SED" && SED=sed
   498 test -z "$OBJDUMP" && OBJDUMP=objdump
   499 test -z "$RANLIB" && RANLIB=:
   500 test -z "$STRIP" && STRIP=:
   501 test -z "$ac_objext" && ac_objext=o
   502 
   503 # Determine commands to create old-style static archives.
   504 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
   505 old_postinstall_cmds='chmod 644 $oldlib'
   506 old_postuninstall_cmds=
   507 
   508 if test -n "$RANLIB"; then
   509   case $host_os in
   510   openbsd*)
   511     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
   512     ;;
   513   *)
   514     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
   515     ;;
   516   esac
   517   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
   518 fi
   519 
   520 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
   521 
   522 # Only perform the check for file, if the check method requires it
   523 case $deplibs_check_method in
   524 file_magic*)
   525   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
   526     AC_PATH_MAGIC
   527   fi
   528   ;;
   529 esac
   530 
   531 AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
   532 AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
   533 enable_win32_dll=yes, enable_win32_dll=no)
   534 
   535 AC_ARG_ENABLE([libtool-lock],
   536     [AC_HELP_STRING([--disable-libtool-lock],
   537 	[avoid locking (might break parallel builds)])])
   538 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
   539 
   540 AC_ARG_WITH([pic],
   541     [AC_HELP_STRING([--with-pic],
   542 	[try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
   543     [pic_mode="$withval"],
   544     [pic_mode=default])
   545 test -z "$pic_mode" && pic_mode=default
   546 
   547 # Use C for the default configuration in the libtool script
   548 tagname=
   549 AC_LIBTOOL_LANG_C_CONFIG
   550 _LT_AC_TAGCONFIG
   551 ])# AC_LIBTOOL_SETUP
   552 
   553 
   554 # _LT_AC_SYS_COMPILER
   555 # -------------------
   556 AC_DEFUN([_LT_AC_SYS_COMPILER],
   557 [AC_REQUIRE([AC_PROG_CC])dnl
   558 
   559 # If no C compiler was specified, use CC.
   560 LTCC=${LTCC-"$CC"}
   561 
   562 # Allow CC to be a program name with arguments.
   563 compiler=$CC
   564 ])# _LT_AC_SYS_COMPILER
   565 
   566 
   567 # _LT_AC_SYS_LIBPATH_AIX
   568 # ----------------------
   569 # Links a minimal program and checks the executable
   570 # for the system default hardcoded library path. In most cases,
   571 # this is /usr/lib:/lib, but when the MPI compilers are used
   572 # the location of the communication and MPI libs are included too.
   573 # If we don't find anything, use the default library path according
   574 # to the aix ld manual.
   575 AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
   576 [AC_LINK_IFELSE(AC_LANG_PROGRAM,[
   577 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
   578 }'`
   579 # Check for a 64-bit object if we didn't find anything.
   580 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; }
   581 }'`; fi],[])
   582 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
   583 ])# _LT_AC_SYS_LIBPATH_AIX
   584 
   585 
   586 # _LT_AC_SHELL_INIT(ARG)
   587 # ----------------------
   588 AC_DEFUN([_LT_AC_SHELL_INIT],
   589 [ifdef([AC_DIVERSION_NOTICE],
   590 	     [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
   591 	 [AC_DIVERT_PUSH(NOTICE)])
   592 $1
   593 AC_DIVERT_POP
   594 ])# _LT_AC_SHELL_INIT
   595 
   596 
   597 # _LT_AC_PROG_ECHO_BACKSLASH
   598 # --------------------------
   599 # Add some code to the start of the generated configure script which
   600 # will find an echo command which doesn't interpret backslashes.
   601 AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
   602 [_LT_AC_SHELL_INIT([
   603 # Check that we are running under the correct shell.
   604 SHELL=${CONFIG_SHELL-/bin/sh}
   605 
   606 case X$ECHO in
   607 X*--fallback-echo)
   608   # Remove one level of quotation (which was required for Make).
   609   ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
   610   ;;
   611 esac
   612 
   613 echo=${ECHO-echo}
   614 if test "X[$]1" = X--no-reexec; then
   615   # Discard the --no-reexec flag, and continue.
   616   shift
   617 elif test "X[$]1" = X--fallback-echo; then
   618   # Avoid inline document here, it may be left over
   619   :
   620 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
   621   # Yippee, $echo works!
   622   :
   623 else
   624   # Restart under the correct shell.
   625   exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
   626 fi
   627 
   628 if test "X[$]1" = X--fallback-echo; then
   629   # used as fallback echo
   630   shift
   631   cat <<EOF
   632 [$]*
   633 EOF
   634   exit 0
   635 fi
   636 
   637 # The HP-UX ksh and POSIX shell print the target directory to stdout
   638 # if CDPATH is set.
   639 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
   640 
   641 if test -z "$ECHO"; then
   642 if test "X${echo_test_string+set}" != Xset; then
   643 # find a string as large as possible, as long as the shell can cope with it
   644   for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
   645     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
   646     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
   647        echo_test_string="`eval $cmd`" &&
   648        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
   649     then
   650       break
   651     fi
   652   done
   653 fi
   654 
   655 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
   656    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
   657    test "X$echo_testing_string" = "X$echo_test_string"; then
   658   :
   659 else
   660   # The Solaris, AIX, and Digital Unix default echo programs unquote
   661   # backslashes.  This makes it impossible to quote backslashes using
   662   #   echo "$something" | sed 's/\\/\\\\/g'
   663   #
   664   # So, first we look for a working echo in the user's PATH.
   665 
   666   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
   667   for dir in $PATH /usr/ucb; do
   668     IFS="$lt_save_ifs"
   669     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
   670        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
   671        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
   672        test "X$echo_testing_string" = "X$echo_test_string"; then
   673       echo="$dir/echo"
   674       break
   675     fi
   676   done
   677   IFS="$lt_save_ifs"
   678 
   679   if test "X$echo" = Xecho; then
   680     # We didn't find a better echo, so look for alternatives.
   681     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
   682        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
   683        test "X$echo_testing_string" = "X$echo_test_string"; then
   684       # This shell has a builtin print -r that does the trick.
   685       echo='print -r'
   686     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
   687 	 test "X$CONFIG_SHELL" != X/bin/ksh; then
   688       # If we have ksh, try running configure again with it.
   689       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
   690       export ORIGINAL_CONFIG_SHELL
   691       CONFIG_SHELL=/bin/ksh
   692       export CONFIG_SHELL
   693       exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
   694     else
   695       # Try using printf.
   696       echo='printf %s\n'
   697       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
   698 	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
   699 	 test "X$echo_testing_string" = "X$echo_test_string"; then
   700 	# Cool, printf works
   701 	:
   702       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
   703 	   test "X$echo_testing_string" = 'X\t' &&
   704 	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
   705 	   test "X$echo_testing_string" = "X$echo_test_string"; then
   706 	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
   707 	export CONFIG_SHELL
   708 	SHELL="$CONFIG_SHELL"
   709 	export SHELL
   710 	echo="$CONFIG_SHELL [$]0 --fallback-echo"
   711       elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
   712 	   test "X$echo_testing_string" = 'X\t' &&
   713 	   echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
   714 	   test "X$echo_testing_string" = "X$echo_test_string"; then
   715 	echo="$CONFIG_SHELL [$]0 --fallback-echo"
   716       else
   717 	# maybe with a smaller string...
   718 	prev=:
   719 
   720 	for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
   721 	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
   722 	  then
   723 	    break
   724 	  fi
   725 	  prev="$cmd"
   726 	done
   727 
   728 	if test "$prev" != 'sed 50q "[$]0"'; then
   729 	  echo_test_string=`eval $prev`
   730 	  export echo_test_string
   731 	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
   732 	else
   733 	  # Oops.  We lost completely, so just stick with echo.
   734 	  echo=echo
   735 	fi
   736       fi
   737     fi
   738   fi
   739 fi
   740 fi
   741 
   742 # Copy echo and quote the copy suitably for passing to libtool from
   743 # the Makefile, instead of quoting the original, which is used later.
   744 ECHO=$echo
   745 if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
   746    ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
   747 fi
   748 
   749 AC_SUBST(ECHO)
   750 ])])# _LT_AC_PROG_ECHO_BACKSLASH
   751 
   752 
   753 # _LT_AC_LOCK
   754 # -----------
   755 AC_DEFUN([_LT_AC_LOCK],
   756 [AC_ARG_ENABLE([libtool-lock],
   757     [AC_HELP_STRING([--disable-libtool-lock],
   758 	[avoid locking (might break parallel builds)])])
   759 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
   760 
   761 # Some flags need to be propagated to the compiler or linker for good
   762 # libtool support.
   763 case $host in
   764 ia64-*-hpux*)
   765   # Find out which ABI we are using.
   766   echo 'int i;' > conftest.$ac_ext
   767   if AC_TRY_EVAL(ac_compile); then
   768     case `/usr/bin/file conftest.$ac_objext` in
   769     *ELF-32*)
   770       HPUX_IA64_MODE="32"
   771       ;;
   772     *ELF-64*)
   773       HPUX_IA64_MODE="64"
   774       ;;
   775     esac
   776   fi
   777   rm -rf conftest*
   778   ;;
   779 *-*-irix6*)
   780   # Find out which ABI we are using.
   781   echo '[#]line __oline__ "configure"' > conftest.$ac_ext
   782   if AC_TRY_EVAL(ac_compile); then
   783    if test "$lt_cv_prog_gnu_ld" = yes; then
   784     case `/usr/bin/file conftest.$ac_objext` in
   785     *32-bit*)
   786       LD="${LD-ld} -melf32bsmip"
   787       ;;
   788     *N32*)
   789       LD="${LD-ld} -melf32bmipn32"
   790       ;;
   791     *64-bit*)
   792       LD="${LD-ld} -melf64bmip"
   793       ;;
   794     esac
   795    else
   796     case `/usr/bin/file conftest.$ac_objext` in
   797     *32-bit*)
   798       LD="${LD-ld} -32"
   799       ;;
   800     *N32*)
   801       LD="${LD-ld} -n32"
   802       ;;
   803     *64-bit*)
   804       LD="${LD-ld} -64"
   805       ;;
   806     esac
   807    fi
   808   fi
   809   rm -rf conftest*
   810   ;;
   811 
   812 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
   813   # Find out which ABI we are using.
   814   echo 'int i;' > conftest.$ac_ext
   815   if AC_TRY_EVAL(ac_compile); then
   816     case "`/usr/bin/file conftest.o`" in
   817     *32-bit*)
   818       case $host in
   819         x86_64-*linux*)
   820           LD="${LD-ld} -m elf_i386"
   821           ;;
   822         ppc64-*linux*|powerpc64-*linux*)
   823           LD="${LD-ld} -m elf32ppclinux"
   824           ;;
   825         s390x-*linux*)
   826           LD="${LD-ld} -m elf_s390"
   827           ;;
   828         sparc64-*linux*)
   829           LD="${LD-ld} -m elf32_sparc"
   830           ;;
   831       esac
   832       ;;
   833     *64-bit*)
   834       case $host in
   835         x86_64-*linux*)
   836           LD="${LD-ld} -m elf_x86_64"
   837           ;;
   838         ppc*-*linux*|powerpc*-*linux*)
   839           LD="${LD-ld} -m elf64ppc"
   840           ;;
   841         s390*-*linux*)
   842           LD="${LD-ld} -m elf64_s390"
   843           ;;
   844         sparc*-*linux*)
   845           LD="${LD-ld} -m elf64_sparc"
   846           ;;
   847       esac
   848       ;;
   849     esac
   850   fi
   851   rm -rf conftest*
   852   ;;
   853 
   854 *-*-sco3.2v5*)
   855   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
   856   SAVE_CFLAGS="$CFLAGS"
   857   CFLAGS="$CFLAGS -belf"
   858   AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
   859     [AC_LANG_PUSH(C)
   860      AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
   861      AC_LANG_POP])
   862   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
   863     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
   864     CFLAGS="$SAVE_CFLAGS"
   865   fi
   866   ;;
   867 AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
   868 [*-*-cygwin* | *-*-mingw* | *-*-pw32*)
   869   AC_CHECK_TOOL(DLLTOOL, dlltool, false)
   870   AC_CHECK_TOOL(AS, as, false)
   871   AC_CHECK_TOOL(OBJDUMP, objdump, false)
   872   ;;
   873   ])
   874 esac
   875 
   876 need_locks="$enable_libtool_lock"
   877 
   878 ])# _LT_AC_LOCK
   879 
   880 
   881 # AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
   882 #		[OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
   883 # ----------------------------------------------------------------
   884 # Check whether the given compiler option works
   885 AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
   886 [AC_REQUIRE([LT_AC_PROG_SED])
   887 AC_CACHE_CHECK([$1], [$2],
   888   [$2=no
   889   ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
   890    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
   891    lt_compiler_flag="$3"
   892    # Insert the option either (1) after the last *FLAGS variable, or
   893    # (2) before a word containing "conftest.", or (3) at the end.
   894    # Note that $ac_compile itself does not contain backslashes and begins
   895    # with a dollar sign (not a hyphen), so the echo should work correctly.
   896    # The option is referenced via a variable to avoid confusing sed.
   897    lt_compile=`echo "$ac_compile" | $SED \
   898    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
   899    -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
   900    -e 's:$: $lt_compiler_flag:'`
   901    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
   902    (eval "$lt_compile" 2>conftest.err)
   903    ac_status=$?
   904    cat conftest.err >&AS_MESSAGE_LOG_FD
   905    echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
   906    if (exit $ac_status) && test -s "$ac_outfile"; then
   907      # The compiler can only warn and ignore the option if not recognized
   908      # So say no if there are warnings
   909      if test ! -s conftest.err; then
   910        $2=yes
   911      fi
   912    fi
   913    $rm conftest*
   914 ])
   915 
   916 if test x"[$]$2" = xyes; then
   917     ifelse([$5], , :, [$5])
   918 else
   919     ifelse([$6], , :, [$6])
   920 fi
   921 ])# AC_LIBTOOL_COMPILER_OPTION
   922 
   923 
   924 # AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
   925 #                          [ACTION-SUCCESS], [ACTION-FAILURE])
   926 # ------------------------------------------------------------
   927 # Check whether the given compiler option works
   928 AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
   929 [AC_CACHE_CHECK([$1], [$2],
   930   [$2=no
   931    save_LDFLAGS="$LDFLAGS"
   932    LDFLAGS="$LDFLAGS $3"
   933    printf "$lt_simple_link_test_code" > conftest.$ac_ext
   934    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
   935      # The compiler can only warn and ignore the option if not recognized
   936      # So say no if there are warnings
   937      if test -s conftest.err; then
   938        # Append any errors to the config.log.
   939        cat conftest.err 1>&AS_MESSAGE_LOG_FD
   940      else
   941        $2=yes
   942      fi
   943    fi
   944    $rm conftest*
   945    LDFLAGS="$save_LDFLAGS"
   946 ])
   947 
   948 if test x"[$]$2" = xyes; then
   949     ifelse([$4], , :, [$4])
   950 else
   951     ifelse([$5], , :, [$5])
   952 fi
   953 ])# AC_LIBTOOL_LINKER_OPTION
   954 
   955 
   956 # AC_LIBTOOL_SYS_MAX_CMD_LEN
   957 # --------------------------
   958 AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
   959 [# find the maximum length of command line arguments
   960 AC_MSG_CHECKING([the maximum length of command line arguments])
   961 AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
   962   i=0
   963   teststring="ABCD"
   964 
   965   case $build_os in
   966   msdosdjgpp*)
   967     # On DJGPP, this test can blow up pretty badly due to problems in libc
   968     # (any single argument exceeding 2000 bytes causes a buffer overrun
   969     # during glob expansion).  Even if it were fixed, the result of this
   970     # check would be larger than it should be.
   971     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
   972     ;;
   973 
   974   gnu*)
   975     # Under GNU Hurd, this test is not required because there is
   976     # no limit to the length of command line arguments.
   977     # Libtool will interpret -1 as no limit whatsoever
   978     lt_cv_sys_max_cmd_len=-1;
   979     ;;
   980 
   981   cygwin* | mingw*)
   982     # On Win9x/ME, this test blows up -- it succeeds, but takes
   983     # about 5 minutes as the teststring grows exponentially.
   984     # Worse, since 9x/ME are not pre-emptively multitasking,
   985     # you end up with a "frozen" computer, even though with patience
   986     # the test eventually succeeds (with a max line length of 256k).
   987     # Instead, let's just punt: use the minimum linelength reported by
   988     # all of the supported platforms: 8192 (on NT/2K/XP).
   989     lt_cv_sys_max_cmd_len=8192;
   990     ;;
   991 
   992   beos*)
   993     # On BeOS, this test takes a really really long time.
   994     # So we just punt and use a minimum line length of 8192.
   995     lt_cv_sys_max_cmd_len=8192;
   996     ;;
   997 
   998   amigaos*)
   999     # On AmigaOS with pdksh, this test takes hours, literally.
  1000     # So we just punt and use a minimum line length of 8192.
  1001     lt_cv_sys_max_cmd_len=8192;
  1002     ;;
  1003 
  1004   netbsd* | freebsd* | openbsd* | darwin* )
  1005     # This has been around since 386BSD, at least.  Likely further.
  1006     if test -x /sbin/sysctl; then
  1007       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  1008     elif test -x /usr/sbin/sysctl; then
  1009       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  1010     else
  1011       lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
  1012     fi
  1013     # And add a safety zone
  1014     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  1015     ;;
  1016 
  1017  *)
  1018     # If test is not a shell built-in, we'll probably end up computing a
  1019     # maximum length that is only half of the actual maximum length, but
  1020     # we can't tell.
  1021     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  1022     while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
  1023 	       = "XX$teststring") >/dev/null 2>&1 &&
  1024 	    new_result=`expr "X$teststring" : ".*" 2>&1` &&
  1025 	    lt_cv_sys_max_cmd_len=$new_result &&
  1026 	    test $i != 17 # 1/2 MB should be enough
  1027     do
  1028       i=`expr $i + 1`
  1029       teststring=$teststring$teststring
  1030     done
  1031     teststring=
  1032     # Add a significant safety factor because C++ compilers can tack on massive
  1033     # amounts of additional arguments before passing them to the linker.
  1034     # It appears as though 1/2 is a usable value.
  1035     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  1036     ;;
  1037   esac
  1038 ])
  1039 if test -n $lt_cv_sys_max_cmd_len ; then
  1040   AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
  1041 else
  1042   AC_MSG_RESULT(none)
  1043 fi
  1044 ])# AC_LIBTOOL_SYS_MAX_CMD_LEN
  1045 
  1046 
  1047 # _LT_AC_CHECK_DLFCN
  1048 # --------------------
  1049 AC_DEFUN([_LT_AC_CHECK_DLFCN],
  1050 [AC_CHECK_HEADERS(dlfcn.h)dnl
  1051 ])# _LT_AC_CHECK_DLFCN
  1052 
  1053 
  1054 # _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
  1055 #                           ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
  1056 # ------------------------------------------------------------------
  1057 AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
  1058 [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
  1059 if test "$cross_compiling" = yes; then :
  1060   [$4]
  1061 else
  1062   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  1063   lt_status=$lt_dlunknown
  1064   cat > conftest.$ac_ext <<EOF
  1065 [#line __oline__ "configure"
  1066 #include "confdefs.h"
  1067 
  1068 #if HAVE_DLFCN_H
  1069 #include <dlfcn.h>
  1070 #endif
  1071 
  1072 #include <stdio.h>
  1073 
  1074 #ifdef RTLD_GLOBAL
  1075 #  define LT_DLGLOBAL		RTLD_GLOBAL
  1076 #else
  1077 #  ifdef DL_GLOBAL
  1078 #    define LT_DLGLOBAL		DL_GLOBAL
  1079 #  else
  1080 #    define LT_DLGLOBAL		0
  1081 #  endif
  1082 #endif
  1083 
  1084 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  1085    find out it does not work in some platform. */
  1086 #ifndef LT_DLLAZY_OR_NOW
  1087 #  ifdef RTLD_LAZY
  1088 #    define LT_DLLAZY_OR_NOW		RTLD_LAZY
  1089 #  else
  1090 #    ifdef DL_LAZY
  1091 #      define LT_DLLAZY_OR_NOW		DL_LAZY
  1092 #    else
  1093 #      ifdef RTLD_NOW
  1094 #        define LT_DLLAZY_OR_NOW	RTLD_NOW
  1095 #      else
  1096 #        ifdef DL_NOW
  1097 #          define LT_DLLAZY_OR_NOW	DL_NOW
  1098 #        else
  1099 #          define LT_DLLAZY_OR_NOW	0
  1100 #        endif
  1101 #      endif
  1102 #    endif
  1103 #  endif
  1104 #endif
  1105 
  1106 #ifdef __cplusplus
  1107 extern "C" void exit (int);
  1108 #endif
  1109 
  1110 void fnord() { int i=42;}
  1111 int main ()
  1112 {
  1113   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  1114   int status = $lt_dlunknown;
  1115 
  1116   if (self)
  1117     {
  1118       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
  1119       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  1120       /* dlclose (self); */
  1121     }
  1122 
  1123     exit (status);
  1124 }]
  1125 EOF
  1126   if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
  1127     (./conftest; exit; ) 2>/dev/null
  1128     lt_status=$?
  1129     case x$lt_status in
  1130       x$lt_dlno_uscore) $1 ;;
  1131       x$lt_dlneed_uscore) $2 ;;
  1132       x$lt_unknown|x*) $3 ;;
  1133     esac
  1134   else :
  1135     # compilation failed
  1136     $3
  1137   fi
  1138 fi
  1139 rm -fr conftest*
  1140 ])# _LT_AC_TRY_DLOPEN_SELF
  1141 
  1142 
  1143 # AC_LIBTOOL_DLOPEN_SELF
  1144 # -------------------
  1145 AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
  1146 [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
  1147 if test "x$enable_dlopen" != xyes; then
  1148   enable_dlopen=unknown
  1149   enable_dlopen_self=unknown
  1150   enable_dlopen_self_static=unknown
  1151 else
  1152   lt_cv_dlopen=no
  1153   lt_cv_dlopen_libs=
  1154 
  1155   case $host_os in
  1156   beos*)
  1157     lt_cv_dlopen="load_add_on"
  1158     lt_cv_dlopen_libs=
  1159     lt_cv_dlopen_self=yes
  1160     ;;
  1161 
  1162   mingw* | pw32*)
  1163     lt_cv_dlopen="LoadLibrary"
  1164     lt_cv_dlopen_libs=
  1165    ;;
  1166 
  1167   cygwin*)
  1168     lt_cv_dlopen="dlopen"
  1169     lt_cv_dlopen_libs=
  1170    ;;
  1171 
  1172   darwin*)
  1173   # if libdl is installed we need to link against it
  1174     AC_CHECK_LIB([dl], [dlopen],
  1175 		[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
  1176     lt_cv_dlopen="dyld"
  1177     lt_cv_dlopen_libs=
  1178     lt_cv_dlopen_self=yes
  1179     ])
  1180    ;;
  1181 
  1182   *)
  1183     AC_CHECK_FUNC([shl_load],
  1184 	  [lt_cv_dlopen="shl_load"],
  1185       [AC_CHECK_LIB([dld], [shl_load],
  1186 	    [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
  1187 	[AC_CHECK_FUNC([dlopen],
  1188 	      [lt_cv_dlopen="dlopen"],
  1189 	  [AC_CHECK_LIB([dl], [dlopen],
  1190 		[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
  1191 	    [AC_CHECK_LIB([svld], [dlopen],
  1192 		  [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
  1193 	      [AC_CHECK_LIB([dld], [dld_link],
  1194 		    [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
  1195 	      ])
  1196 	    ])
  1197 	  ])
  1198 	])
  1199       ])
  1200     ;;
  1201   esac
  1202 
  1203   if test "x$lt_cv_dlopen" != xno; then
  1204     enable_dlopen=yes
  1205   else
  1206     enable_dlopen=no
  1207   fi
  1208 
  1209   case $lt_cv_dlopen in
  1210   dlopen)
  1211     save_CPPFLAGS="$CPPFLAGS"
  1212     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  1213 
  1214     save_LDFLAGS="$LDFLAGS"
  1215     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  1216 
  1217     save_LIBS="$LIBS"
  1218     LIBS="$lt_cv_dlopen_libs $LIBS"
  1219 
  1220     AC_CACHE_CHECK([whether a program can dlopen itself],
  1221 	  lt_cv_dlopen_self, [dnl
  1222 	  _LT_AC_TRY_DLOPEN_SELF(
  1223 	    lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
  1224 	    lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
  1225     ])
  1226 
  1227     if test "x$lt_cv_dlopen_self" = xyes; then
  1228       LDFLAGS="$LDFLAGS $link_static_flag"
  1229       AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
  1230     	  lt_cv_dlopen_self_static, [dnl
  1231 	  _LT_AC_TRY_DLOPEN_SELF(
  1232 	    lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
  1233 	    lt_cv_dlopen_self_static=no,  lt_cv_dlopen_self_static=cross)
  1234       ])
  1235     fi
  1236 
  1237     CPPFLAGS="$save_CPPFLAGS"
  1238     LDFLAGS="$save_LDFLAGS"
  1239     LIBS="$save_LIBS"
  1240     ;;
  1241   esac
  1242 
  1243   case $lt_cv_dlopen_self in
  1244   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  1245   *) enable_dlopen_self=unknown ;;
  1246   esac
  1247 
  1248   case $lt_cv_dlopen_self_static in
  1249   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  1250   *) enable_dlopen_self_static=unknown ;;
  1251   esac
  1252 fi
  1253 ])# AC_LIBTOOL_DLOPEN_SELF
  1254 
  1255 
  1256 # AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
  1257 # ---------------------------------
  1258 # Check to see if options -c and -o are simultaneously supported by compiler
  1259 AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
  1260 [AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
  1261 AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
  1262   [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
  1263   [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
  1264    $rm -r conftest 2>/dev/null
  1265    mkdir conftest
  1266    cd conftest
  1267    mkdir out
  1268    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  1269 
  1270    lt_compiler_flag="-o out/conftest2.$ac_objext"
  1271    # Insert the option either (1) after the last *FLAGS variable, or
  1272    # (2) before a word containing "conftest.", or (3) at the end.
  1273    # Note that $ac_compile itself does not contain backslashes and begins
  1274    # with a dollar sign (not a hyphen), so the echo should work correctly.
  1275    lt_compile=`echo "$ac_compile" | $SED \
  1276    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  1277    -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  1278    -e 's:$: $lt_compiler_flag:'`
  1279    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  1280    (eval "$lt_compile" 2>out/conftest.err)
  1281    ac_status=$?
  1282    cat out/conftest.err >&AS_MESSAGE_LOG_FD
  1283    echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  1284    if (exit $ac_status) && test -s out/conftest2.$ac_objext
  1285    then
  1286      # The compiler can only warn and ignore the option if not recognized
  1287      # So say no if there are warnings
  1288      if test ! -s out/conftest.err; then
  1289        _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  1290      fi
  1291    fi
  1292    chmod u+w .
  1293    $rm conftest*
  1294    # SGI C++ compiler will create directory out/ii_files/ for
  1295    # template instantiation
  1296    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  1297    $rm out/* && rmdir out
  1298    cd ..
  1299    rmdir conftest
  1300    $rm conftest*
  1301 ])
  1302 ])# AC_LIBTOOL_PROG_CC_C_O
  1303 
  1304 
  1305 # AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
  1306 # -----------------------------------------
  1307 # Check to see if we can do hard links to lock some files if needed
  1308 AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
  1309 [AC_REQUIRE([_LT_AC_LOCK])dnl
  1310 
  1311 hard_links="nottested"
  1312 if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
  1313   # do not overwrite the value of need_locks provided by the user
  1314   AC_MSG_CHECKING([if we can lock with hard links])
  1315   hard_links=yes
  1316   $rm conftest*
  1317   ln conftest.a conftest.b 2>/dev/null && hard_links=no
  1318   touch conftest.a
  1319   ln conftest.a conftest.b 2>&5 || hard_links=no
  1320   ln conftest.a conftest.b 2>/dev/null && hard_links=no
  1321   AC_MSG_RESULT([$hard_links])
  1322   if test "$hard_links" = no; then
  1323     AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
  1324     need_locks=warn
  1325   fi
  1326 else
  1327   need_locks=no
  1328 fi
  1329 ])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
  1330 
  1331 
  1332 # AC_LIBTOOL_OBJDIR
  1333 # -----------------
  1334 AC_DEFUN([AC_LIBTOOL_OBJDIR],
  1335 [AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
  1336 [rm -f .libs 2>/dev/null
  1337 mkdir .libs 2>/dev/null
  1338 if test -d .libs; then
  1339   lt_cv_objdir=.libs
  1340 else
  1341   # MS-DOS does not allow filenames that begin with a dot.
  1342   lt_cv_objdir=_libs
  1343 fi
  1344 rmdir .libs 2>/dev/null])
  1345 objdir=$lt_cv_objdir
  1346 ])# AC_LIBTOOL_OBJDIR
  1347 
  1348 
  1349 # AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
  1350 # ----------------------------------------------
  1351 # Check hardcoding attributes.
  1352 AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
  1353 [AC_MSG_CHECKING([how to hardcode library paths into programs])
  1354 _LT_AC_TAGVAR(hardcode_action, $1)=
  1355 if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
  1356    test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
  1357    test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
  1358 
  1359   # We can hardcode non-existant directories.
  1360   if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
  1361      # If the only mechanism to avoid hardcoding is shlibpath_var, we
  1362      # have to relink, otherwise we might link with an installed library
  1363      # when we should be linking with a yet-to-be-installed one
  1364      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
  1365      test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
  1366     # Linking always hardcodes the temporary library directory.
  1367     _LT_AC_TAGVAR(hardcode_action, $1)=relink
  1368   else
  1369     # We can link without hardcoding, and we can hardcode nonexisting dirs.
  1370     _LT_AC_TAGVAR(hardcode_action, $1)=immediate
  1371   fi
  1372 else
  1373   # We cannot hardcode anything, or else we can only hardcode existing
  1374   # directories.
  1375   _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
  1376 fi
  1377 AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
  1378 
  1379 if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
  1380   # Fast installation is not supported
  1381   enable_fast_install=no
  1382 elif test "$shlibpath_overrides_runpath" = yes ||
  1383      test "$enable_shared" = no; then
  1384   # Fast installation is not necessary
  1385   enable_fast_install=needless
  1386 fi
  1387 ])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
  1388 
  1389 
  1390 # AC_LIBTOOL_SYS_LIB_STRIP
  1391 # ------------------------
  1392 AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
  1393 [striplib=
  1394 old_striplib=
  1395 AC_MSG_CHECKING([whether stripping libraries is possible])
  1396 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  1397   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  1398   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  1399   AC_MSG_RESULT([yes])
  1400 else
  1401 # FIXME - insert some real tests, host_os isn't really good enough
  1402   case $host_os in
  1403    darwin*)
  1404        if test -n "$STRIP" ; then
  1405          striplib="$STRIP -x"
  1406          AC_MSG_RESULT([yes])
  1407        else
  1408   AC_MSG_RESULT([no])
  1409 fi
  1410        ;;
  1411    *)
  1412   AC_MSG_RESULT([no])
  1413     ;;
  1414   esac
  1415 fi
  1416 ])# AC_LIBTOOL_SYS_LIB_STRIP
  1417 
  1418 
  1419 # AC_LIBTOOL_SYS_DYNAMIC_LINKER
  1420 # -----------------------------
  1421 # PORTME Fill in your ld.so characteristics
  1422 AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
  1423 [AC_MSG_CHECKING([dynamic linker characteristics])
  1424 library_names_spec=
  1425 libname_spec='lib$name'
  1426 soname_spec=
  1427 shrext_cmds=".so"
  1428 postinstall_cmds=
  1429 postuninstall_cmds=
  1430 finish_cmds=
  1431 finish_eval=
  1432 shlibpath_var=
  1433 shlibpath_overrides_runpath=unknown
  1434 version_type=none
  1435 dynamic_linker="$host_os ld.so"
  1436 sys_lib_dlsearch_path_spec="/lib /usr/lib"
  1437 if test "$GCC" = yes; then
  1438   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  1439   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  1440     # if the path contains ";" then we assume it to be the separator
  1441     # otherwise default to the standard path separator (i.e. ":") - it is
  1442     # assumed that no part of a normal pathname contains ";" but that should
  1443     # okay in the real world where ";" in dirpaths is itself problematic.
  1444     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  1445   else
  1446     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
  1447   fi
  1448 else
  1449   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  1450 fi
  1451 need_lib_prefix=unknown
  1452 hardcode_into_libs=no
  1453 
  1454 # when you set need_version to no, make sure it does not cause -set_version
  1455 # flags to be left without arguments
  1456 need_version=unknown
  1457 
  1458 case $host_os in
  1459 aix3*)
  1460   version_type=linux
  1461   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  1462   shlibpath_var=LIBPATH
  1463 
  1464   # AIX 3 has no versioning support, so we append a major version to the name.
  1465   soname_spec='${libname}${release}${shared_ext}$major'
  1466   ;;
  1467 
  1468 aix4* | aix5*)
  1469   version_type=linux
  1470   need_lib_prefix=no
  1471   need_version=no
  1472   hardcode_into_libs=yes
  1473   if test "$host_cpu" = ia64; then
  1474     # AIX 5 supports IA64
  1475     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  1476     shlibpath_var=LD_LIBRARY_PATH
  1477   else
  1478     # With GCC up to 2.95.x, collect2 would create an import file
  1479     # for dependence libraries.  The import file would start with
  1480     # the line `#! .'.  This would cause the generated library to
  1481     # depend on `.', always an invalid library.  This was fixed in
  1482     # development snapshots of GCC prior to 3.0.
  1483     case $host_os in
  1484       aix4 | aix4.[[01]] | aix4.[[01]].*)
  1485       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  1486 	   echo ' yes '
  1487 	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  1488 	:
  1489       else
  1490 	can_build_shared=no
  1491       fi
  1492       ;;
  1493     esac
  1494     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  1495     # soname into executable. Probably we can add versioning support to
  1496     # collect2, so additional links can be useful in future.
  1497     if test "$aix_use_runtimelinking" = yes; then
  1498       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  1499       # instead of lib<name>.a to let people know that these are not
  1500       # typical AIX shared libraries.
  1501       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1502     else
  1503       # We preserve .a as extension for shared libraries through AIX4.2
  1504       # and later when we are not doing run time linking.
  1505       library_names_spec='${libname}${release}.a $libname.a'
  1506       soname_spec='${libname}${release}${shared_ext}$major'
  1507     fi
  1508     shlibpath_var=LIBPATH
  1509   fi
  1510   ;;
  1511 
  1512 amigaos*)
  1513   library_names_spec='$libname.ixlibrary $libname.a'
  1514   # Create ${libname}_ixlibrary.a entries in /sys/libs.
  1515   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'
  1516   ;;
  1517 
  1518 beos*)
  1519   library_names_spec='${libname}${shared_ext}'
  1520   dynamic_linker="$host_os ld.so"
  1521   shlibpath_var=LIBRARY_PATH
  1522   ;;
  1523 
  1524 bsdi[[45]]*)
  1525   version_type=linux
  1526   need_version=no
  1527   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1528   soname_spec='${libname}${release}${shared_ext}$major'
  1529   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  1530   shlibpath_var=LD_LIBRARY_PATH
  1531   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  1532   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  1533   # the default ld.so.conf also contains /usr/contrib/lib and
  1534   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  1535   # libtool to hard-code these into programs
  1536   ;;
  1537 
  1538 cygwin* | mingw* | pw32*)
  1539   version_type=windows
  1540   shrext_cmds=".dll"
  1541   need_version=no
  1542   need_lib_prefix=no
  1543 
  1544   case $GCC,$host_os in
  1545   yes,cygwin* | yes,mingw* | yes,pw32*)
  1546     library_names_spec='$libname.dll.a'
  1547     # DLL is installed to $(libdir)/../bin by postinstall_cmds
  1548     postinstall_cmds='base_file=`basename \${file}`~
  1549       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  1550       dldir=$destdir/`dirname \$dlpath`~
  1551       test -d \$dldir || mkdir -p \$dldir~
  1552       $install_prog $dir/$dlname \$dldir/$dlname'
  1553     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  1554       dlpath=$dir/\$dldll~
  1555        $rm \$dlpath'
  1556     shlibpath_overrides_runpath=yes
  1557 
  1558     case $host_os in
  1559     cygwin*)
  1560       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  1561       #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  1562       soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  1563       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  1564       ;;
  1565     mingw*)
  1566       # MinGW DLLs use traditional 'lib' prefix
  1567       #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  1568       soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  1569       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  1570       if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
  1571         # It is most probably a Windows format PATH printed by
  1572         # mingw gcc, but we are running on Cygwin. Gcc prints its search
  1573         # path with ; separators, and with drive letters. We can handle the
  1574         # drive letters (cygwin fileutils understands them), so leave them,
  1575         # especially as we might pass files found there to a mingw objdump,
  1576         # which wouldn't understand a cygwinified path. Ahh.
  1577         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  1578       else
  1579         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
  1580       fi
  1581       ;;
  1582     pw32*)
  1583       # pw32 DLLs use 'pw' prefix rather than 'lib'
  1584       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  1585       ;;
  1586     esac
  1587     ;;
  1588 
  1589   *)
  1590     library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
  1591     ;;
  1592   esac
  1593   dynamic_linker='Win32 ld.exe'
  1594   # FIXME: first we should search . and the directory the executable is in
  1595   shlibpath_var=PATH
  1596   ;;
  1597 
  1598 darwin* | rhapsody*)
  1599   dynamic_linker="$host_os dyld"
  1600   version_type=darwin
  1601   need_lib_prefix=no
  1602   need_version=no
  1603   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  1604   soname_spec='${libname}${release}${major}$shared_ext'
  1605   shlibpath_overrides_runpath=yes
  1606   shlibpath_var=DYLD_LIBRARY_PATH
  1607   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
  1608   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  1609   if test "$GCC" = yes; then
  1610     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"`
  1611   else
  1612     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  1613   fi
  1614   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  1615   ;;
  1616 
  1617 dgux*)
  1618   version_type=linux
  1619   need_lib_prefix=no
  1620   need_version=no
  1621   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  1622   soname_spec='${libname}${release}${shared_ext}$major'
  1623   shlibpath_var=LD_LIBRARY_PATH
  1624   ;;
  1625 
  1626 freebsd1*)
  1627   dynamic_linker=no
  1628   ;;
  1629 
  1630 kfreebsd*-gnu)
  1631   version_type=linux
  1632   need_lib_prefix=no
  1633   need_version=no
  1634   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  1635   soname_spec='${libname}${release}${shared_ext}$major'
  1636   shlibpath_var=LD_LIBRARY_PATH
  1637   shlibpath_overrides_runpath=no
  1638   hardcode_into_libs=yes
  1639   dynamic_linker='GNU ld.so'
  1640   ;;
  1641 
  1642 freebsd*)
  1643   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
  1644   version_type=freebsd-$objformat
  1645   case $version_type in
  1646     freebsd-elf*)
  1647       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  1648       need_version=no
  1649       need_lib_prefix=no
  1650       ;;
  1651     freebsd-*)
  1652       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  1653       need_version=yes
  1654       ;;
  1655   esac
  1656   shlibpath_var=LD_LIBRARY_PATH
  1657   case $host_os in
  1658   freebsd2*)
  1659     shlibpath_overrides_runpath=yes
  1660     ;;
  1661   freebsd3.[01]* | freebsdelf3.[01]*)
  1662     shlibpath_overrides_runpath=yes
  1663     hardcode_into_libs=yes
  1664     ;;
  1665   *) # from 3.2 on
  1666     shlibpath_overrides_runpath=no
  1667     hardcode_into_libs=yes
  1668     ;;
  1669   esac
  1670   ;;
  1671 
  1672 gnu*)
  1673   version_type=linux
  1674   need_lib_prefix=no
  1675   need_version=no
  1676   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  1677   soname_spec='${libname}${release}${shared_ext}$major'
  1678   shlibpath_var=LD_LIBRARY_PATH
  1679   hardcode_into_libs=yes
  1680   ;;
  1681 
  1682 hpux9* | hpux10* | hpux11*)
  1683   # Give a soname corresponding to the major version so that dld.sl refuses to
  1684   # link against other versions.
  1685   version_type=sunos
  1686   need_lib_prefix=no
  1687   need_version=no
  1688   case "$host_cpu" in
  1689   ia64*)
  1690     shrext_cmds='.so'
  1691     hardcode_into_libs=yes
  1692     dynamic_linker="$host_os dld.so"
  1693     shlibpath_var=LD_LIBRARY_PATH
  1694     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  1695     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1696     soname_spec='${libname}${release}${shared_ext}$major'
  1697     if test "X$HPUX_IA64_MODE" = X32; then
  1698       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  1699     else
  1700       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  1701     fi
  1702     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  1703     ;;
  1704    hppa*64*)
  1705      shrext_cmds='.sl'
  1706      hardcode_into_libs=yes
  1707      dynamic_linker="$host_os dld.sl"
  1708      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  1709      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  1710      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1711      soname_spec='${libname}${release}${shared_ext}$major'
  1712      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  1713      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  1714      ;;
  1715    *)
  1716     shrext_cmds='.sl'
  1717     dynamic_linker="$host_os dld.sl"
  1718     shlibpath_var=SHLIB_PATH
  1719     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  1720     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1721     soname_spec='${libname}${release}${shared_ext}$major'
  1722     ;;
  1723   esac
  1724   # HP-UX runs *really* slowly unless shared libraries are mode 555.
  1725   postinstall_cmds='chmod 555 $lib'
  1726   ;;
  1727 
  1728 irix5* | irix6* | nonstopux*)
  1729   case $host_os in
  1730     nonstopux*) version_type=nonstopux ;;
  1731     *)
  1732 	if test "$lt_cv_prog_gnu_ld" = yes; then
  1733 		version_type=linux
  1734 	else
  1735 		version_type=irix
  1736 	fi ;;
  1737   esac
  1738   need_lib_prefix=no
  1739   need_version=no
  1740   soname_spec='${libname}${release}${shared_ext}$major'
  1741   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  1742   case $host_os in
  1743   irix5* | nonstopux*)
  1744     libsuff= shlibsuff=
  1745     ;;
  1746   *)
  1747     case $LD in # libtool.m4 will add one of these switches to LD
  1748     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  1749       libsuff= shlibsuff= libmagic=32-bit;;
  1750     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  1751       libsuff=32 shlibsuff=N32 libmagic=N32;;
  1752     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  1753       libsuff=64 shlibsuff=64 libmagic=64-bit;;
  1754     *) libsuff= shlibsuff= libmagic=never-match;;
  1755     esac
  1756     ;;
  1757   esac
  1758   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  1759   shlibpath_overrides_runpath=no
  1760   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  1761   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  1762   hardcode_into_libs=yes
  1763   ;;
  1764 
  1765 # No shared lib support for Linux oldld, aout, or coff.
  1766 linux*oldld* | linux*aout* | linux*coff*)
  1767   dynamic_linker=no
  1768   ;;
  1769 
  1770 # This must be Linux ELF.
  1771 linux*)
  1772   version_type=linux
  1773   need_lib_prefix=no
  1774   need_version=no
  1775   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1776   soname_spec='${libname}${release}${shared_ext}$major'
  1777   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  1778   shlibpath_var=LD_LIBRARY_PATH
  1779   shlibpath_overrides_runpath=no
  1780   # This implies no fast_install, which is unacceptable.
  1781   # Some rework will be needed to allow for fast_install
  1782   # before this can be enabled.
  1783   hardcode_into_libs=yes
  1784 
  1785   # Append ld.so.conf contents to the search path
  1786   if test -f /etc/ld.so.conf; then
  1787     lt_ld_extra=`$SED -e 's/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g' /etc/ld.so.conf | tr '\n' ' '`
  1788     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  1789   fi
  1790 
  1791   # We used to test for /lib/ld.so.1 and disable shared libraries on
  1792   # powerpc, because MkLinux only supported shared libraries with the
  1793   # GNU dynamic linker.  Since this was broken with cross compilers,
  1794   # most powerpc-linux boxes support dynamic linking these days and
  1795   # people can always --disable-shared, the test was removed, and we
  1796   # assume the GNU/Linux dynamic linker is in use.
  1797   dynamic_linker='GNU/Linux ld.so'
  1798   ;;
  1799 
  1800 knetbsd*-gnu)
  1801   version_type=linux
  1802   need_lib_prefix=no
  1803   need_version=no
  1804   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  1805   soname_spec='${libname}${release}${shared_ext}$major'
  1806   shlibpath_var=LD_LIBRARY_PATH
  1807   shlibpath_overrides_runpath=no
  1808   hardcode_into_libs=yes
  1809   dynamic_linker='GNU ld.so'
  1810   ;;
  1811 
  1812 netbsd*)
  1813   version_type=sunos
  1814   need_lib_prefix=no
  1815   need_version=no
  1816   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  1817     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  1818     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  1819     dynamic_linker='NetBSD (a.out) ld.so'
  1820   else
  1821     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  1822     soname_spec='${libname}${release}${shared_ext}$major'
  1823     dynamic_linker='NetBSD ld.elf_so'
  1824   fi
  1825   shlibpath_var=LD_LIBRARY_PATH
  1826   shlibpath_overrides_runpath=yes
  1827   hardcode_into_libs=yes
  1828   ;;
  1829 
  1830 newsos6)
  1831   version_type=linux
  1832   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1833   shlibpath_var=LD_LIBRARY_PATH
  1834   shlibpath_overrides_runpath=yes
  1835   ;;
  1836 
  1837 nto-qnx*)
  1838   version_type=linux
  1839   need_lib_prefix=no
  1840   need_version=no
  1841   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1842   soname_spec='${libname}${release}${shared_ext}$major'
  1843   shlibpath_var=LD_LIBRARY_PATH
  1844   shlibpath_overrides_runpath=yes
  1845   ;;
  1846 
  1847 openbsd*)
  1848   version_type=sunos
  1849   need_lib_prefix=no
  1850   need_version=no
  1851   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  1852   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  1853   shlibpath_var=LD_LIBRARY_PATH
  1854   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  1855     case $host_os in
  1856       openbsd2.[[89]] | openbsd2.[[89]].*)
  1857 	shlibpath_overrides_runpath=no
  1858 	;;
  1859       *)
  1860 	shlibpath_overrides_runpath=yes
  1861 	;;
  1862       esac
  1863   else
  1864     shlibpath_overrides_runpath=yes
  1865   fi
  1866   ;;
  1867 
  1868 os2*)
  1869   libname_spec='$name'
  1870   shrext_cmds=".dll"
  1871   need_lib_prefix=no
  1872   library_names_spec='$libname${shared_ext} $libname.a'
  1873   dynamic_linker='OS/2 ld.exe'
  1874   shlibpath_var=LIBPATH
  1875   ;;
  1876 
  1877 osf3* | osf4* | osf5*)
  1878   version_type=osf
  1879   need_lib_prefix=no
  1880   need_version=no
  1881   soname_spec='${libname}${release}${shared_ext}$major'
  1882   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1883   shlibpath_var=LD_LIBRARY_PATH
  1884   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  1885   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  1886   ;;
  1887 
  1888 sco3.2v5*)
  1889   version_type=osf
  1890   soname_spec='${libname}${release}${shared_ext}$major'
  1891   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1892   shlibpath_var=LD_LIBRARY_PATH
  1893   ;;
  1894 
  1895 solaris*)
  1896   version_type=linux
  1897   need_lib_prefix=no
  1898   need_version=no
  1899   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1900   soname_spec='${libname}${release}${shared_ext}$major'
  1901   shlibpath_var=LD_LIBRARY_PATH
  1902   shlibpath_overrides_runpath=yes
  1903   hardcode_into_libs=yes
  1904   # ldd complains unless libraries are executable
  1905   postinstall_cmds='chmod +x $lib'
  1906   ;;
  1907 
  1908 sunos4*)
  1909   version_type=sunos
  1910   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  1911   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  1912   shlibpath_var=LD_LIBRARY_PATH
  1913   shlibpath_overrides_runpath=yes
  1914   if test "$with_gnu_ld" = yes; then
  1915     need_lib_prefix=no
  1916   fi
  1917   need_version=yes
  1918   ;;
  1919 
  1920 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  1921   version_type=linux
  1922   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1923   soname_spec='${libname}${release}${shared_ext}$major'
  1924   shlibpath_var=LD_LIBRARY_PATH
  1925   case $host_vendor in
  1926     sni)
  1927       shlibpath_overrides_runpath=no
  1928       need_lib_prefix=no
  1929       export_dynamic_flag_spec='${wl}-Blargedynsym'
  1930       runpath_var=LD_RUN_PATH
  1931       ;;
  1932     siemens)
  1933       need_lib_prefix=no
  1934       ;;
  1935     motorola)
  1936       need_lib_prefix=no
  1937       need_version=no
  1938       shlibpath_overrides_runpath=no
  1939       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  1940       ;;
  1941   esac
  1942   ;;
  1943 
  1944 sysv4*MP*)
  1945   if test -d /usr/nec ;then
  1946     version_type=linux
  1947     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  1948     soname_spec='$libname${shared_ext}.$major'
  1949     shlibpath_var=LD_LIBRARY_PATH
  1950   fi
  1951   ;;
  1952 
  1953 uts4*)
  1954   version_type=linux
  1955   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1956   soname_spec='${libname}${release}${shared_ext}$major'
  1957   shlibpath_var=LD_LIBRARY_PATH
  1958   ;;
  1959 
  1960 *)
  1961   dynamic_linker=no
  1962   ;;
  1963 esac
  1964 AC_MSG_RESULT([$dynamic_linker])
  1965 test "$dynamic_linker" = no && can_build_shared=no
  1966 ])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
  1967 
  1968 
  1969 # _LT_AC_TAGCONFIG
  1970 # ----------------
  1971 AC_DEFUN([_LT_AC_TAGCONFIG],
  1972 [AC_ARG_WITH([tags],
  1973     [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
  1974         [include additional configurations @<:@automatic@:>@])],
  1975     [tagnames="$withval"])
  1976 
  1977 if test -f "$ltmain" && test -n "$tagnames"; then
  1978   if test ! -f "${ofile}"; then
  1979     AC_MSG_WARN([output file `$ofile' does not exist])
  1980   fi
  1981 
  1982   if test -z "$LTCC"; then
  1983     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
  1984     if test -z "$LTCC"; then
  1985       AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
  1986     else
  1987       AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
  1988     fi
  1989   fi
  1990 
  1991   # Extract list of available tagged configurations in $ofile.
  1992   # Note that this assumes the entire list is on one line.
  1993   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
  1994 
  1995   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  1996   for tagname in $tagnames; do
  1997     IFS="$lt_save_ifs"
  1998     # Check whether tagname contains only valid characters
  1999     case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
  2000     "") ;;
  2001     *)  AC_MSG_ERROR([invalid tag name: $tagname])
  2002 	;;
  2003     esac
  2004 
  2005     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
  2006     then
  2007       AC_MSG_ERROR([tag name \"$tagname\" already exists])
  2008     fi
  2009 
  2010     # Update the list of available tags.
  2011     if test -n "$tagname"; then
  2012       echo appending configuration tag \"$tagname\" to $ofile
  2013 
  2014       case $tagname in
  2015       CXX)
  2016 	if test -n "$CXX" && test "X$CXX" != "Xno"; then
  2017 	  AC_LIBTOOL_LANG_CXX_CONFIG
  2018 	else
  2019 	  tagname=""
  2020 	fi
  2021 	;;
  2022 
  2023       F77)
  2024 	if test -n "$F77" && test "X$F77" != "Xno"; then
  2025 	  AC_LIBTOOL_LANG_F77_CONFIG
  2026 	else
  2027 	  tagname=""
  2028 	fi
  2029 	;;
  2030 
  2031       GCJ)
  2032 	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
  2033 	  AC_LIBTOOL_LANG_GCJ_CONFIG
  2034 	else
  2035 	  tagname=""
  2036 	fi
  2037 	;;
  2038 
  2039       RC)
  2040 	AC_LIBTOOL_LANG_RC_CONFIG
  2041 	;;
  2042 
  2043       *)
  2044 	AC_MSG_ERROR([Unsupported tag name: $tagname])
  2045 	;;
  2046       esac
  2047 
  2048       # Append the new tag name to the list of available tags.
  2049       if test -n "$tagname" ; then
  2050       available_tags="$available_tags $tagname"
  2051     fi
  2052     fi
  2053   done
  2054   IFS="$lt_save_ifs"
  2055 
  2056   # Now substitute the updated list of available tags.
  2057   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
  2058     mv "${ofile}T" "$ofile"
  2059     chmod +x "$ofile"
  2060   else
  2061     rm -f "${ofile}T"
  2062     AC_MSG_ERROR([unable to update list of available tagged configurations.])
  2063   fi
  2064 fi
  2065 ])# _LT_AC_TAGCONFIG
  2066 
  2067 
  2068 # AC_LIBTOOL_DLOPEN
  2069 # -----------------
  2070 # enable checks for dlopen support
  2071 AC_DEFUN([AC_LIBTOOL_DLOPEN],
  2072  [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
  2073 ])# AC_LIBTOOL_DLOPEN
  2074 
  2075 
  2076 # AC_LIBTOOL_WIN32_DLL
  2077 # --------------------
  2078 # declare package support for building win32 dll's
  2079 AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
  2080 [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
  2081 ])# AC_LIBTOOL_WIN32_DLL
  2082 
  2083 
  2084 # AC_ENABLE_SHARED([DEFAULT])
  2085 # ---------------------------
  2086 # implement the --enable-shared flag
  2087 # DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
  2088 AC_DEFUN([AC_ENABLE_SHARED],
  2089 [define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
  2090 AC_ARG_ENABLE([shared],
  2091     [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
  2092 	[build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
  2093     [p=${PACKAGE-default}
  2094     case $enableval in
  2095     yes) enable_shared=yes ;;
  2096     no) enable_shared=no ;;
  2097     *)
  2098       enable_shared=no
  2099       # Look at the argument we got.  We use all the common list separators.
  2100       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  2101       for pkg in $enableval; do
  2102 	IFS="$lt_save_ifs"
  2103 	if test "X$pkg" = "X$p"; then
  2104 	  enable_shared=yes
  2105 	fi
  2106       done
  2107       IFS="$lt_save_ifs"
  2108       ;;
  2109     esac],
  2110     [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
  2111 ])# AC_ENABLE_SHARED
  2112 
  2113 
  2114 # AC_DISABLE_SHARED
  2115 # -----------------
  2116 #- set the default shared flag to --disable-shared
  2117 AC_DEFUN([AC_DISABLE_SHARED],
  2118 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  2119 AC_ENABLE_SHARED(no)
  2120 ])# AC_DISABLE_SHARED
  2121 
  2122 
  2123 # AC_ENABLE_STATIC([DEFAULT])
  2124 # ---------------------------
  2125 # implement the --enable-static flag
  2126 # DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
  2127 AC_DEFUN([AC_ENABLE_STATIC],
  2128 [define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
  2129 AC_ARG_ENABLE([static],
  2130     [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
  2131 	[build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
  2132     [p=${PACKAGE-default}
  2133     case $enableval in
  2134     yes) enable_static=yes ;;
  2135     no) enable_static=no ;;
  2136     *)
  2137      enable_static=no
  2138       # Look at the argument we got.  We use all the common list separators.
  2139       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  2140       for pkg in $enableval; do
  2141 	IFS="$lt_save_ifs"
  2142 	if test "X$pkg" = "X$p"; then
  2143 	  enable_static=yes
  2144 	fi
  2145       done
  2146       IFS="$lt_save_ifs"
  2147       ;;
  2148     esac],
  2149     [enable_static=]AC_ENABLE_STATIC_DEFAULT)
  2150 ])# AC_ENABLE_STATIC
  2151 
  2152 
  2153 # AC_DISABLE_STATIC
  2154 # -----------------
  2155 # set the default static flag to --disable-static
  2156 AC_DEFUN([AC_DISABLE_STATIC],
  2157 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  2158 AC_ENABLE_STATIC(no)
  2159 ])# AC_DISABLE_STATIC
  2160 
  2161 
  2162 # AC_ENABLE_FAST_INSTALL([DEFAULT])
  2163 # ---------------------------------
  2164 # implement the --enable-fast-install flag
  2165 # DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
  2166 AC_DEFUN([AC_ENABLE_FAST_INSTALL],
  2167 [define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
  2168 AC_ARG_ENABLE([fast-install],
  2169     [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
  2170     [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
  2171     [p=${PACKAGE-default}
  2172     case $enableval in
  2173     yes) enable_fast_install=yes ;;
  2174     no) enable_fast_install=no ;;
  2175     *)
  2176       enable_fast_install=no
  2177       # Look at the argument we got.  We use all the common list separators.
  2178       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  2179       for pkg in $enableval; do
  2180 	IFS="$lt_save_ifs"
  2181 	if test "X$pkg" = "X$p"; then
  2182 	  enable_fast_install=yes
  2183 	fi
  2184       done
  2185       IFS="$lt_save_ifs"
  2186       ;;
  2187     esac],
  2188     [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
  2189 ])# AC_ENABLE_FAST_INSTALL
  2190 
  2191 
  2192 # AC_DISABLE_FAST_INSTALL
  2193 # -----------------------
  2194 # set the default to --disable-fast-install
  2195 AC_DEFUN([AC_DISABLE_FAST_INSTALL],
  2196 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  2197 AC_ENABLE_FAST_INSTALL(no)
  2198 ])# AC_DISABLE_FAST_INSTALL
  2199 
  2200 
  2201 # AC_LIBTOOL_PICMODE([MODE])
  2202 # --------------------------
  2203 # implement the --with-pic flag
  2204 # MODE is either `yes' or `no'.  If omitted, it defaults to `both'.
  2205 AC_DEFUN([AC_LIBTOOL_PICMODE],
  2206 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  2207 pic_mode=ifelse($#,1,$1,default)
  2208 ])# AC_LIBTOOL_PICMODE
  2209 
  2210 
  2211 # AC_PROG_EGREP
  2212 # -------------
  2213 # This is predefined starting with Autoconf 2.54, so this conditional
  2214 # definition can be removed once we require Autoconf 2.54 or later.
  2215 m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
  2216 [AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
  2217    [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  2218     then ac_cv_prog_egrep='grep -E'
  2219     else ac_cv_prog_egrep='egrep'
  2220     fi])
  2221  EGREP=$ac_cv_prog_egrep
  2222  AC_SUBST([EGREP])
  2223 ])])
  2224 
  2225 
  2226 # AC_PATH_TOOL_PREFIX
  2227 # -------------------
  2228 # find a file program which can recognise shared library
  2229 AC_DEFUN([AC_PATH_TOOL_PREFIX],
  2230 [AC_REQUIRE([AC_PROG_EGREP])dnl
  2231 AC_MSG_CHECKING([for $1])
  2232 AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
  2233 [case $MAGIC_CMD in
  2234 [[\\/*] |  ?:[\\/]*])
  2235   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  2236   ;;
  2237 *)
  2238   lt_save_MAGIC_CMD="$MAGIC_CMD"
  2239   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  2240 dnl $ac_dummy forces splitting on constant user-supplied paths.
  2241 dnl POSIX.2 word splitting is done only on the output of word expansions,
  2242 dnl not every word.  This closes a longstanding sh security hole.
  2243   ac_dummy="ifelse([$2], , $PATH, [$2])"
  2244   for ac_dir in $ac_dummy; do
  2245     IFS="$lt_save_ifs"
  2246     test -z "$ac_dir" && ac_dir=.
  2247     if test -f $ac_dir/$1; then
  2248       lt_cv_path_MAGIC_CMD="$ac_dir/$1"
  2249       if test -n "$file_magic_test_file"; then
  2250 	case $deplibs_check_method in
  2251 	"file_magic "*)
  2252 	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
  2253 	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  2254 	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  2255 	    $EGREP "$file_magic_regex" > /dev/null; then
  2256 	    :
  2257 	  else
  2258 	    cat <<EOF 1>&2
  2259 
  2260 *** Warning: the command libtool uses to detect shared libraries,
  2261 *** $file_magic_cmd, produces output that libtool cannot recognize.
  2262 *** The result is that libtool may fail to recognize shared libraries
  2263 *** as such.  This will affect the creation of libtool libraries that
  2264 *** depend on shared libraries, but programs linked with such libtool
  2265 *** libraries will work regardless of this problem.  Nevertheless, you
  2266 *** may want to report the problem to your system manager and/or to
  2267 *** bug-libtool@gnu.org
  2268 
  2269 EOF
  2270 	  fi ;;
  2271 	esac
  2272       fi
  2273       break
  2274     fi
  2275   done
  2276   IFS="$lt_save_ifs"
  2277   MAGIC_CMD="$lt_save_MAGIC_CMD"
  2278   ;;
  2279 esac])
  2280 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  2281 if test -n "$MAGIC_CMD"; then
  2282   AC_MSG_RESULT($MAGIC_CMD)
  2283 else
  2284   AC_MSG_RESULT(no)
  2285 fi
  2286 ])# AC_PATH_TOOL_PREFIX
  2287 
  2288 
  2289 # AC_PATH_MAGIC
  2290 # -------------
  2291 # find a file program which can recognise a shared library
  2292 AC_DEFUN([AC_PATH_MAGIC],
  2293 [AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
  2294 if test -z "$lt_cv_path_MAGIC_CMD"; then
  2295   if test -n "$ac_tool_prefix"; then
  2296     AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
  2297   else
  2298     MAGIC_CMD=:
  2299   fi
  2300 fi
  2301 ])# AC_PATH_MAGIC
  2302 
  2303 
  2304 # AC_PROG_LD
  2305 # ----------
  2306 # find the pathname to the GNU or non-GNU linker
  2307 AC_DEFUN([AC_PROG_LD],
  2308 [AC_ARG_WITH([gnu-ld],
  2309     [AC_HELP_STRING([--with-gnu-ld],
  2310 	[assume the C compiler uses GNU ld @<:@default=no@:>@])],
  2311     [test "$withval" = no || with_gnu_ld=yes],
  2312     [with_gnu_ld=no])
  2313 AC_REQUIRE([LT_AC_PROG_SED])dnl
  2314 AC_REQUIRE([AC_PROG_CC])dnl
  2315 AC_REQUIRE([AC_CANONICAL_HOST])dnl
  2316 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  2317 ac_prog=ld
  2318 if test "$GCC" = yes; then
  2319   # Check if gcc -print-prog-name=ld gives a path.
  2320   AC_MSG_CHECKING([for ld used by $CC])
  2321   case $host in
  2322   *-*-mingw*)
  2323     # gcc leaves a trailing carriage return which upsets mingw
  2324     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  2325   *)
  2326     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  2327   esac
  2328   case $ac_prog in
  2329     # Accept absolute paths.
  2330     [[\\/]]* | ?:[[\\/]]*)
  2331       re_direlt='/[[^/]][[^/]]*/\.\./'
  2332       # Canonicalize the pathname of ld
  2333       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  2334       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  2335 	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  2336       done
  2337       test -z "$LD" && LD="$ac_prog"
  2338       ;;
  2339   "")
  2340     # If it fails, then pretend we aren't using GCC.
  2341     ac_prog=ld
  2342     ;;
  2343   *)
  2344     # If it is relative, then search for the first ld in PATH.
  2345     with_gnu_ld=unknown
  2346     ;;
  2347   esac
  2348 elif test "$with_gnu_ld" = yes; then
  2349   AC_MSG_CHECKING([for GNU ld])
  2350 else
  2351   AC_MSG_CHECKING([for non-GNU ld])
  2352 fi
  2353 AC_CACHE_VAL(lt_cv_path_LD,
  2354 [if test -z "$LD"; then
  2355   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  2356   for ac_dir in $PATH; do
  2357     IFS="$lt_save_ifs"
  2358     test -z "$ac_dir" && ac_dir=.
  2359     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  2360       lt_cv_path_LD="$ac_dir/$ac_prog"
  2361       # Check to see if the program is GNU ld.  I'd rather use --version,
  2362       # but apparently some GNU ld's only accept -v.
  2363       # Break only if it was the GNU/non-GNU ld that we prefer.
  2364       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  2365       *GNU* | *'with BFD'*)
  2366 	test "$with_gnu_ld" != no && break
  2367 	;;
  2368       *)
  2369 	test "$with_gnu_ld" != yes && break
  2370 	;;
  2371       esac
  2372     fi
  2373   done
  2374   IFS="$lt_save_ifs"
  2375 else
  2376   lt_cv_path_LD="$LD" # Let the user override the test with a path.
  2377 fi])
  2378 LD="$lt_cv_path_LD"
  2379 if test -n "$LD"; then
  2380   AC_MSG_RESULT($LD)
  2381 else
  2382   AC_MSG_RESULT(no)
  2383 fi
  2384 test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
  2385 AC_PROG_LD_GNU
  2386 ])# AC_PROG_LD
  2387 
  2388 
  2389 # AC_PROG_LD_GNU
  2390 # --------------
  2391 AC_DEFUN([AC_PROG_LD_GNU],
  2392 [AC_REQUIRE([AC_PROG_EGREP])dnl
  2393 AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
  2394 [# I'd rather use --version here, but apparently some GNU ld's only accept -v.
  2395 case `$LD -v 2>&1 </dev/null` in
  2396 *GNU* | *'with BFD'*)
  2397   lt_cv_prog_gnu_ld=yes
  2398   ;;
  2399 *)
  2400   lt_cv_prog_gnu_ld=no
  2401   ;;
  2402 esac])
  2403 with_gnu_ld=$lt_cv_prog_gnu_ld
  2404 ])# AC_PROG_LD_GNU
  2405 
  2406 
  2407 # AC_PROG_LD_RELOAD_FLAG
  2408 # ----------------------
  2409 # find reload flag for linker
  2410 #   -- PORTME Some linkers may need a different reload flag.
  2411 AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
  2412 [AC_CACHE_CHECK([for $LD option to reload object files],
  2413   lt_cv_ld_reload_flag,
  2414   [lt_cv_ld_reload_flag='-r'])
  2415 reload_flag=$lt_cv_ld_reload_flag
  2416 case $reload_flag in
  2417 "" | " "*) ;;
  2418 *) reload_flag=" $reload_flag" ;;
  2419 esac
  2420 reload_cmds='$LD$reload_flag -o $output$reload_objs'
  2421 case $host_os in
  2422   darwin*)
  2423     if test "$GCC" = yes; then
  2424       reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
  2425     else
  2426       reload_cmds='$LD$reload_flag -o $output$reload_objs'
  2427     fi
  2428     ;;
  2429 esac
  2430 ])# AC_PROG_LD_RELOAD_FLAG
  2431 
  2432 
  2433 # AC_DEPLIBS_CHECK_METHOD
  2434 # -----------------------
  2435 # how to check for library dependencies
  2436 #  -- PORTME fill in with the dynamic library characteristics
  2437 AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
  2438 [AC_CACHE_CHECK([how to recognise dependent libraries],
  2439 lt_cv_deplibs_check_method,
  2440 [lt_cv_file_magic_cmd='$MAGIC_CMD'
  2441 lt_cv_file_magic_test_file=
  2442 lt_cv_deplibs_check_method='unknown'
  2443 # Need to set the preceding variable on all platforms that support
  2444 # interlibrary dependencies.
  2445 # 'none' -- dependencies not supported.
  2446 # `unknown' -- same as none, but documents that we really don't know.
  2447 # 'pass_all' -- all dependencies passed with no checks.
  2448 # 'test_compile' -- check by making test program.
  2449 # 'file_magic [[regex]]' -- check by looking for files in library path
  2450 # which responds to the $file_magic_cmd with a given extended regex.
  2451 # If you have `file' or equivalent on your system and you're not sure
  2452 # whether `pass_all' will *always* work, you probably want this one.
  2453 
  2454 case $host_os in
  2455 aix4* | aix5*)
  2456   lt_cv_deplibs_check_method=pass_all
  2457   ;;
  2458 
  2459 beos*)
  2460   lt_cv_deplibs_check_method=pass_all
  2461   ;;
  2462 
  2463 bsdi[[45]]*)
  2464   lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
  2465   lt_cv_file_magic_cmd='/usr/bin/file -L'
  2466   lt_cv_file_magic_test_file=/shlib/libc.so
  2467   ;;
  2468 
  2469 cygwin*)
  2470   # func_win32_libid is a shell function defined in ltmain.sh
  2471   #lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  2472   lt_cv_deplibs_check_method=pass_all
  2473   lt_cv_file_magic_cmd='func_win32_libid'
  2474   ;;
  2475 
  2476 mingw* | pw32*)
  2477   # Base MSYS/MinGW do not provide the 'file' command needed by
  2478   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
  2479   #lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  2480   lt_cv_deplibs_check_method=pass_all
  2481   lt_cv_file_magic_cmd='$OBJDUMP -f'
  2482   ;;
  2483 
  2484 darwin* | rhapsody*)
  2485   lt_cv_deplibs_check_method=pass_all
  2486   ;;
  2487 
  2488 freebsd* | kfreebsd*-gnu)
  2489   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  2490     case $host_cpu in
  2491     i*86 )
  2492       # Not sure whether the presence of OpenBSD here was a mistake.
  2493       # Let's accept both of them until this is cleared up.
  2494       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[[3-9]]86 (compact )?demand paged shared library'
  2495       lt_cv_file_magic_cmd=/usr/bin/file
  2496       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  2497       ;;
  2498     esac
  2499   else
  2500     lt_cv_deplibs_check_method=pass_all
  2501   fi
  2502   ;;
  2503 
  2504 gnu*)
  2505   lt_cv_deplibs_check_method=pass_all
  2506   ;;
  2507 
  2508 hpux10.20* | hpux11*)
  2509   lt_cv_file_magic_cmd=/usr/bin/file
  2510   case "$host_cpu" in
  2511   ia64*)
  2512     lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
  2513     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  2514     ;;
  2515   hppa*64*)
  2516     [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]']
  2517     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  2518     ;;
  2519   *)
  2520     lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
  2521     lt_cv_file_magic_test_file=/usr/lib/libc.sl
  2522     ;;
  2523   esac
  2524   ;;
  2525 
  2526 irix5* | irix6* | nonstopux*)
  2527   case $LD in
  2528   *-32|*"-32 ") libmagic=32-bit;;
  2529   *-n32|*"-n32 ") libmagic=N32;;
  2530   *-64|*"-64 ") libmagic=64-bit;;
  2531   *) libmagic=never-match;;
  2532   esac
  2533   lt_cv_deplibs_check_method=pass_all
  2534   ;;
  2535 
  2536 # This must be Linux ELF.
  2537 linux*)
  2538   case $host_cpu in
  2539   alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*)
  2540     lt_cv_deplibs_check_method=pass_all ;;
  2541   *)
  2542     # glibc up to 2.1.1 does not perform some relocations on ARM
  2543     # this will be overridden with pass_all, but let us keep it just in case
  2544     lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' ;;
  2545   esac
  2546   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
  2547   lt_cv_deplibs_check_method=pass_all
  2548   ;;
  2549 
  2550 netbsd*)
  2551   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  2552     lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  2553   else
  2554     lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
  2555   fi
  2556   ;;
  2557 
  2558 newos6*)
  2559   lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
  2560   lt_cv_file_magic_cmd=/usr/bin/file
  2561   lt_cv_file_magic_test_file=/usr/lib/libnls.so
  2562   ;;
  2563 
  2564 nto-qnx*)
  2565   lt_cv_deplibs_check_method=unknown
  2566   ;;
  2567 
  2568 openbsd*)
  2569   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  2570     lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
  2571   else
  2572     lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  2573   fi
  2574   ;;
  2575 
  2576 osf3* | osf4* | osf5*)
  2577   lt_cv_deplibs_check_method=pass_all
  2578   ;;
  2579 
  2580 sco3.2v5*)
  2581   lt_cv_deplibs_check_method=pass_all
  2582   ;;
  2583 
  2584 solaris*)
  2585   lt_cv_deplibs_check_method=pass_all
  2586   ;;
  2587 
  2588 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  2589   case $host_vendor in
  2590   motorola)
  2591     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]]'
  2592     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  2593     ;;
  2594   ncr)
  2595     lt_cv_deplibs_check_method=pass_all
  2596     ;;
  2597   sequent)
  2598     lt_cv_file_magic_cmd='/bin/file'
  2599     lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
  2600     ;;
  2601   sni)
  2602     lt_cv_file_magic_cmd='/bin/file'
  2603     lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
  2604     lt_cv_file_magic_test_file=/lib/libc.so
  2605     ;;
  2606   siemens)
  2607     lt_cv_deplibs_check_method=pass_all
  2608     ;;
  2609   esac
  2610   ;;
  2611 
  2612 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7* | sysv4*uw2*)
  2613   lt_cv_deplibs_check_method=pass_all
  2614   ;;
  2615 esac
  2616 ])
  2617 file_magic_cmd=$lt_cv_file_magic_cmd
  2618 deplibs_check_method=$lt_cv_deplibs_check_method
  2619 test -z "$deplibs_check_method" && deplibs_check_method=unknown
  2620 ])# AC_DEPLIBS_CHECK_METHOD
  2621 
  2622 
  2623 # AC_PROG_NM
  2624 # ----------
  2625 # find the pathname to a BSD-compatible name lister
  2626 AC_DEFUN([AC_PROG_NM],
  2627 [AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
  2628 [if test -n "$NM"; then
  2629   # Let the user override the test.
  2630   lt_cv_path_NM="$NM"
  2631 else
  2632   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  2633   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
  2634     IFS="$lt_save_ifs"
  2635     test -z "$ac_dir" && ac_dir=.
  2636     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
  2637     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  2638       # Check to see if the nm accepts a BSD-compat flag.
  2639       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  2640       #   nm: unknown option "B" ignored
  2641       # Tru64's nm complains that /dev/null is an invalid object file
  2642       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  2643       */dev/null* | *'Invalid file or object type'*)
  2644 	lt_cv_path_NM="$tmp_nm -B"
  2645 	break
  2646         ;;
  2647       *)
  2648 	case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  2649 	*/dev/null*)
  2650 	  lt_cv_path_NM="$tmp_nm -p"
  2651 	  break
  2652 	  ;;
  2653 	*)
  2654 	  lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  2655 	  continue # so that we can try to find one that supports BSD flags
  2656 	  ;;
  2657 	esac
  2658       esac
  2659     fi
  2660   done
  2661   IFS="$lt_save_ifs"
  2662   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  2663 fi])
  2664 NM="$lt_cv_path_NM"
  2665 ])# AC_PROG_NM
  2666 
  2667 
  2668 # AC_CHECK_LIBM
  2669 # -------------
  2670 # check for math library
  2671 AC_DEFUN([AC_CHECK_LIBM],
  2672 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  2673 LIBM=
  2674 case $host in
  2675 *-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
  2676   # These system don't have libm, or don't need it
  2677   ;;
  2678 *-ncr-sysv4.3*)
  2679   AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
  2680   AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
  2681   ;;
  2682 *)
  2683   AC_CHECK_LIB(m, cos, LIBM="-lm")
  2684   ;;
  2685 esac
  2686 ])# AC_CHECK_LIBM
  2687 
  2688 
  2689 # AC_LIBLTDL_CONVENIENCE([DIRECTORY])
  2690 # -----------------------------------
  2691 # sets LIBLTDL to the link flags for the libltdl convenience library and
  2692 # LTDLINCL to the include flags for the libltdl header and adds
  2693 # --enable-ltdl-convenience to the configure arguments.  Note that LIBLTDL
  2694 # and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called.  If
  2695 # DIRECTORY is not provided, it is assumed to be `libltdl'.  LIBLTDL will
  2696 # be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed with
  2697 # '${top_srcdir}/' (note the single quotes!).  If your package is not
  2698 # flat and you're not using automake, define top_builddir and
  2699 # top_srcdir appropriately in the Makefiles.
  2700 AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
  2701 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  2702   case $enable_ltdl_convenience in
  2703   no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
  2704   "") enable_ltdl_convenience=yes
  2705       ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
  2706   esac
  2707   LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
  2708   LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
  2709   # For backwards non-gettext consistent compatibility...
  2710   INCLTDL="$LTDLINCL"
  2711 ])# AC_LIBLTDL_CONVENIENCE
  2712 
  2713 
  2714 # AC_LIBLTDL_INSTALLABLE([DIRECTORY])
  2715 # -----------------------------------
  2716 # sets LIBLTDL to the link flags for the libltdl installable library and
  2717 # LTDLINCL to the include flags for the libltdl header and adds
  2718 # --enable-ltdl-install to the configure arguments.  Note that LIBLTDL
  2719 # and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called.  If
  2720 # DIRECTORY is not provided and an installed libltdl is not found, it is
  2721 # assumed to be `libltdl'.  LIBLTDL will be prefixed with '${top_builddir}/'
  2722 # and LTDLINCL will be prefixed with '${top_srcdir}/' (note the single
  2723 # quotes!).  If your package is not flat and you're not using automake,
  2724 # define top_builddir and top_srcdir appropriately in the Makefiles.
  2725 # In the future, this macro may have to be called after AC_PROG_LIBTOOL.
  2726 AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
  2727 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  2728   AC_CHECK_LIB(ltdl, lt_dlinit,
  2729   [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
  2730   [if test x"$enable_ltdl_install" = xno; then
  2731      AC_MSG_WARN([libltdl not installed, but installation disabled])
  2732    else
  2733      enable_ltdl_install=yes
  2734    fi
  2735   ])
  2736   if test x"$enable_ltdl_install" = x"yes"; then
  2737     ac_configure_args="$ac_configure_args --enable-ltdl-install"
  2738     LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
  2739     LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
  2740   else
  2741     ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
  2742     LIBLTDL="-lltdl"
  2743     LTDLINCL=
  2744   fi
  2745   # For backwards non-gettext consistent compatibility...
  2746   INCLTDL="$LTDLINCL"
  2747 ])# AC_LIBLTDL_INSTALLABLE
  2748 
  2749 
  2750 # AC_LIBTOOL_CXX
  2751 # --------------
  2752 # enable support for C++ libraries
  2753 AC_DEFUN([AC_LIBTOOL_CXX],
  2754 [AC_REQUIRE([_LT_AC_LANG_CXX])
  2755 ])# AC_LIBTOOL_CXX
  2756 
  2757 
  2758 # _LT_AC_LANG_CXX
  2759 # ---------------
  2760 AC_DEFUN([_LT_AC_LANG_CXX],
  2761 [AC_REQUIRE([AC_PROG_CXX])
  2762 AC_REQUIRE([AC_PROG_CXXCPP])
  2763 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
  2764 ])# _LT_AC_LANG_CXX
  2765 
  2766 
  2767 # AC_LIBTOOL_F77
  2768 # --------------
  2769 # enable support for Fortran 77 libraries
  2770 AC_DEFUN([AC_LIBTOOL_F77],
  2771 [AC_REQUIRE([_LT_AC_LANG_F77])
  2772 ])# AC_LIBTOOL_F77
  2773 
  2774 
  2775 # _LT_AC_LANG_F77
  2776 # ---------------
  2777 AC_DEFUN([_LT_AC_LANG_F77],
  2778 [AC_REQUIRE([AC_PROG_F77])
  2779 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
  2780 ])# _LT_AC_LANG_F77
  2781 
  2782 
  2783 # AC_LIBTOOL_GCJ
  2784 # --------------
  2785 # enable support for GCJ libraries
  2786 AC_DEFUN([AC_LIBTOOL_GCJ],
  2787 [AC_REQUIRE([_LT_AC_LANG_GCJ])
  2788 ])# AC_LIBTOOL_GCJ
  2789 
  2790 
  2791 # _LT_AC_LANG_GCJ
  2792 # ---------------
  2793 AC_DEFUN([_LT_AC_LANG_GCJ],
  2794 [AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
  2795   [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
  2796     [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
  2797       [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
  2798 	 [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
  2799 	   [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
  2800 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
  2801 ])# _LT_AC_LANG_GCJ
  2802 
  2803 
  2804 # AC_LIBTOOL_RC
  2805 # --------------
  2806 # enable support for Windows resource files
  2807 AC_DEFUN([AC_LIBTOOL_RC],
  2808 [AC_REQUIRE([LT_AC_PROG_RC])
  2809 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
  2810 ])# AC_LIBTOOL_RC
  2811 
  2812 
  2813 # AC_LIBTOOL_LANG_C_CONFIG
  2814 # ------------------------
  2815 # Ensure that the configuration vars for the C compiler are
  2816 # suitably defined.  Those variables are subsequently used by
  2817 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  2818 AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
  2819 AC_DEFUN([_LT_AC_LANG_C_CONFIG],
  2820 [lt_save_CC="$CC"
  2821 AC_LANG_PUSH(C)
  2822 
  2823 # Source file extension for C test sources.
  2824 ac_ext=c
  2825 
  2826 # Object file extension for compiled C test sources.
  2827 objext=o
  2828 _LT_AC_TAGVAR(objext, $1)=$objext
  2829 
  2830 # Code to be used in simple compile tests
  2831 lt_simple_compile_test_code="int some_variable = 0;\n"
  2832 
  2833 # Code to be used in simple link tests
  2834 lt_simple_link_test_code='int main(){return(0);}\n'
  2835 
  2836 _LT_AC_SYS_COMPILER
  2837 
  2838 #
  2839 # Check for any special shared library compilation flags.
  2840 #
  2841 _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)=
  2842 if test "$GCC" = no; then
  2843   case $host_os in
  2844   sco3.2v5*)
  2845     _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf'
  2846     ;;
  2847   esac
  2848 fi
  2849 if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then
  2850   AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries])
  2851   if echo "$old_CC $old_CFLAGS " | grep "[[ 	]]$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[ 	]]" >/dev/null; then :
  2852   else
  2853     AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure])
  2854     _LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no
  2855   fi
  2856 fi
  2857 
  2858 
  2859 #
  2860 # Check to make sure the static flag actually works.
  2861 #
  2862 AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works],
  2863   _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
  2864   $_LT_AC_TAGVAR(lt_prog_compiler_static, $1),
  2865   [],
  2866   [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
  2867 
  2868 
  2869 ## CAVEAT EMPTOR:
  2870 ## There is no encapsulation within the following macros, do not change
  2871 ## the running order or otherwise move them around unless you know exactly
  2872 ## what you are doing...
  2873 AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
  2874 AC_LIBTOOL_PROG_COMPILER_PIC($1)
  2875 AC_LIBTOOL_PROG_CC_C_O($1)
  2876 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  2877 AC_LIBTOOL_PROG_LD_SHLIBS($1)
  2878 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  2879 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  2880 AC_LIBTOOL_SYS_LIB_STRIP
  2881 AC_LIBTOOL_DLOPEN_SELF($1)
  2882 
  2883 # Report which librarie types wil actually be built
  2884 AC_MSG_CHECKING([if libtool supports shared libraries])
  2885 AC_MSG_RESULT([$can_build_shared])
  2886 
  2887 AC_MSG_CHECKING([whether to build shared libraries])
  2888 test "$can_build_shared" = "no" && enable_shared=no
  2889 
  2890 # On AIX, shared libraries and static libraries use the same namespace, and
  2891 # are all built from PIC.
  2892 case "$host_os" in
  2893 aix3*)
  2894   test "$enable_shared" = yes && enable_static=no
  2895   if test -n "$RANLIB"; then
  2896     archive_cmds="$archive_cmds~\$RANLIB \$lib"
  2897     postinstall_cmds='$RANLIB $lib'
  2898   fi
  2899   ;;
  2900 
  2901 aix4* | aix5*)
  2902   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  2903     test "$enable_shared" = yes && enable_static=no
  2904   fi
  2905     ;;
  2906 esac
  2907 AC_MSG_RESULT([$enable_shared])
  2908 
  2909 AC_MSG_CHECKING([whether to build static libraries])
  2910 # Make sure either enable_shared or enable_static is yes.
  2911 test "$enable_shared" = yes || enable_static=yes
  2912 AC_MSG_RESULT([$enable_static])
  2913 
  2914 AC_LIBTOOL_CONFIG($1)
  2915 
  2916 AC_LANG_POP
  2917 CC="$lt_save_CC"
  2918 ])# AC_LIBTOOL_LANG_C_CONFIG
  2919 
  2920 
  2921 # AC_LIBTOOL_LANG_CXX_CONFIG
  2922 # --------------------------
  2923 # Ensure that the configuration vars for the C compiler are
  2924 # suitably defined.  Those variables are subsequently used by
  2925 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  2926 AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
  2927 AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
  2928 [AC_LANG_PUSH(C++)
  2929 AC_REQUIRE([AC_PROG_CXX])
  2930 AC_REQUIRE([AC_PROG_CXXCPP])
  2931 
  2932 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  2933 _LT_AC_TAGVAR(allow_undefined_flag, $1)=
  2934 _LT_AC_TAGVAR(always_export_symbols, $1)=no
  2935 _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
  2936 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  2937 _LT_AC_TAGVAR(hardcode_direct, $1)=no
  2938 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  2939 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  2940 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  2941 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
  2942 _LT_AC_TAGVAR(hardcode_automatic, $1)=no
  2943 _LT_AC_TAGVAR(module_cmds, $1)=
  2944 _LT_AC_TAGVAR(module_expsym_cmds, $1)=
  2945 _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
  2946 _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  2947 _LT_AC_TAGVAR(no_undefined_flag, $1)=
  2948 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  2949 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  2950 
  2951 # Dependencies to place before and after the object being linked:
  2952 _LT_AC_TAGVAR(predep_objects, $1)=
  2953 _LT_AC_TAGVAR(postdep_objects, $1)=
  2954 _LT_AC_TAGVAR(predeps, $1)=
  2955 _LT_AC_TAGVAR(postdeps, $1)=
  2956 _LT_AC_TAGVAR(compiler_lib_search_path, $1)=
  2957 
  2958 # Source file extension for C++ test sources.
  2959 ac_ext=cc
  2960 
  2961 # Object file extension for compiled C++ test sources.
  2962 objext=o
  2963 _LT_AC_TAGVAR(objext, $1)=$objext
  2964 
  2965 # Code to be used in simple compile tests
  2966 lt_simple_compile_test_code="int some_variable = 0;\n"
  2967 
  2968 # Code to be used in simple link tests
  2969 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
  2970 
  2971 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  2972 _LT_AC_SYS_COMPILER
  2973 
  2974 # Allow CC to be a program name with arguments.
  2975 lt_save_CC=$CC
  2976 lt_save_LD=$LD
  2977 lt_save_GCC=$GCC
  2978 GCC=$GXX
  2979 lt_save_with_gnu_ld=$with_gnu_ld
  2980 lt_save_path_LD=$lt_cv_path_LD
  2981 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  2982   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  2983 else
  2984   unset lt_cv_prog_gnu_ld
  2985 fi
  2986 if test -n "${lt_cv_path_LDCXX+set}"; then
  2987   lt_cv_path_LD=$lt_cv_path_LDCXX
  2988 else
  2989   unset lt_cv_path_LD
  2990 fi
  2991 test -z "${LDCXX+set}" || LD=$LDCXX
  2992 CC=${CXX-"c++"}
  2993 compiler=$CC
  2994 _LT_AC_TAGVAR(compiler, $1)=$CC
  2995 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
  2996 
  2997 # We don't want -fno-exception wen compiling C++ code, so set the
  2998 # no_builtin_flag separately
  2999 if test "$GXX" = yes; then
  3000   _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  3001 else
  3002   _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  3003 fi
  3004 
  3005 if test "$GXX" = yes; then
  3006   # Set up default GNU C++ configuration
  3007 
  3008   AC_PROG_LD
  3009 
  3010   # Check if GNU C++ uses GNU ld as the underlying linker, since the
  3011   # archiving commands below assume that GNU ld is being used.
  3012   if test "$with_gnu_ld" = yes; then
  3013     _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  3014     _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'
  3015 
  3016     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  3017     _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  3018 
  3019     # If archive_cmds runs LD, not CC, wlarc should be empty
  3020     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  3021     #     investigate it a little bit more. (MM)
  3022     wlarc='${wl}'
  3023 
  3024     # ancient GNU ld didn't support --whole-archive et. al.
  3025     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
  3026 	grep 'no-whole-archive' > /dev/null; then
  3027       _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  3028     else
  3029       _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  3030     fi
  3031   else
  3032     with_gnu_ld=no
  3033     wlarc=
  3034 
  3035     # A generic and very simple default shared library creation
  3036     # command for GNU C++ for the case where it uses the native
  3037     # linker, instead of GNU ld.  If possible, this setting should
  3038     # overridden to take advantage of the native linker features on
  3039     # the platform it is being used on.
  3040     _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  3041   fi
  3042 
  3043   # Commands to make compiler produce verbose output that lists
  3044   # what "hidden" libraries, object files and flags are used when
  3045   # linking a shared library.
  3046   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  3047 
  3048 else
  3049   GXX=no
  3050   with_gnu_ld=no
  3051   wlarc=
  3052 fi
  3053 
  3054 # PORTME: fill in a description of your system's C++ link characteristics
  3055 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  3056 _LT_AC_TAGVAR(ld_shlibs, $1)=yes
  3057 case $host_os in
  3058   aix3*)
  3059     # FIXME: insert proper C++ library support
  3060     _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3061     ;;
  3062   aix4* | aix5*)
  3063     if test "$host_cpu" = ia64; then
  3064       # On IA64, the linker does run time linking by default, so we don't
  3065       # have to do anything special.
  3066       aix_use_runtimelinking=no
  3067       exp_sym_flag='-Bexport'
  3068       no_entry_flag=""
  3069     else
  3070       aix_use_runtimelinking=no
  3071 
  3072       # Test if we are trying to use run time linking or normal
  3073       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  3074       # need to do runtime linking.
  3075       case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
  3076 	for ld_flag in $LDFLAGS; do
  3077 	  case $ld_flag in
  3078 	  *-brtl*)
  3079 	    aix_use_runtimelinking=yes
  3080 	    break
  3081 	    ;;
  3082 	  esac
  3083 	done
  3084       esac
  3085 
  3086       exp_sym_flag='-bexport'
  3087       no_entry_flag='-bnoentry'
  3088     fi
  3089 
  3090     # When large executables or shared objects are built, AIX ld can
  3091     # have problems creating the table of contents.  If linking a library
  3092     # or program results in "error TOC overflow" add -mminimal-toc to
  3093     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
  3094     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  3095 
  3096     _LT_AC_TAGVAR(archive_cmds, $1)=''
  3097     _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  3098     _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
  3099     _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  3100 
  3101     if test "$GXX" = yes; then
  3102       case $host_os in aix4.[012]|aix4.[012].*)
  3103       # We only want to do this on AIX 4.2 and lower, the check
  3104       # below for broken collect2 doesn't work under 4.3+
  3105 	collect2name=`${CC} -print-prog-name=collect2`
  3106 	if test -f "$collect2name" && \
  3107 	   strings "$collect2name" | grep resolve_lib_name >/dev/null
  3108 	then
  3109 	  # We have reworked collect2
  3110 	  _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  3111 	else
  3112 	  # We have old collect2
  3113 	  _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
  3114 	  # It fails to find uninstalled libraries when the uninstalled
  3115 	  # path is not listed in the libpath.  Setting hardcode_minus_L
  3116 	  # to unsupported forces relinking
  3117 	  _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  3118 	  _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  3119 	  _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  3120 	fi
  3121       esac
  3122       shared_flag='-shared'
  3123     else
  3124       # not using gcc
  3125       if test "$host_cpu" = ia64; then
  3126 	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  3127 	# chokes on -Wl,-G. The following line is correct:
  3128 	shared_flag='-G'
  3129       else
  3130 	if test "$aix_use_runtimelinking" = yes; then
  3131 	  shared_flag='${wl}-G'
  3132 	else
  3133 	  shared_flag='${wl}-bM:SRE'
  3134 	fi
  3135       fi
  3136     fi
  3137 
  3138     # It seems that -bexpall does not export symbols beginning with
  3139     # underscore (_), so it is better to generate a list of symbols to export.
  3140     _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  3141     if test "$aix_use_runtimelinking" = yes; then
  3142       # Warning - without using the other runtime loading flags (-brtl),
  3143       # -berok will link without error, but may produce a broken library.
  3144       _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
  3145       # Determine the default libpath from the value encoded in an empty executable.
  3146       _LT_AC_SYS_LIBPATH_AIX
  3147       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  3148 
  3149       _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"
  3150      else
  3151       if test "$host_cpu" = ia64; then
  3152 	_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  3153 	_LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  3154 	_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"
  3155       else
  3156 	# Determine the default libpath from the value encoded in an empty executable.
  3157 	_LT_AC_SYS_LIBPATH_AIX
  3158 	_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  3159 	# Warning - without using the other run time loading flags,
  3160 	# -berok will link without error, but may produce a broken library.
  3161 	_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  3162 	_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  3163 	# -bexpall does not export symbols beginning with underscore (_)
  3164 	_LT_AC_TAGVAR(always_export_symbols, $1)=yes
  3165 	# Exported symbols can be pulled into shared objects from archives
  3166 	_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
  3167 	_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  3168 	# This is similar to how AIX traditionally builds it's shared libraries.
  3169 	_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'
  3170       fi
  3171     fi
  3172     ;;
  3173   chorus*)
  3174     case $cc_basename in
  3175       *)
  3176 	# FIXME: insert proper C++ library support
  3177 	_LT_AC_TAGVAR(ld_shlibs, $1)=no
  3178 	;;
  3179     esac
  3180     ;;
  3181 
  3182 
  3183   cygwin* | mingw* | pw32*)
  3184     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  3185     # as there is no search path for DLLs.
  3186     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  3187     _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  3188     _LT_AC_TAGVAR(always_export_symbols, $1)=no
  3189     _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  3190 
  3191     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  3192 ##      _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'
  3193       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base ${wl}--out-implib,$lib'
  3194       # If the export-symbols file already is a .def file (1st line
  3195       # is EXPORTS), use it as is; otherwise, prepend...
  3196 ##      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  3197 ##	cp $export_symbols $output_objdir/$soname.def;
  3198 ##      else
  3199 ##	echo EXPORTS > $output_objdir/$soname.def;
  3200 ##	cat $export_symbols >> $output_objdir/$soname.def;
  3201 ##      fi~
  3202 ##      $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'
  3203       _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  3204 	cp $export_symbols $output_objdir/$soname.def;
  3205       else
  3206 	echo EXPORTS > $output_objdir/$soname.def;
  3207 	cat $export_symbols >> $output_objdir/$soname.def;
  3208       fi~
  3209       $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base ${wl}--out-implib,$lib'
  3210     else
  3211       _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3212     fi
  3213   ;;
  3214       darwin* | rhapsody*)
  3215         case "$host_os" in
  3216         rhapsody* | darwin1.[[012]])
  3217          _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
  3218          ;;
  3219        *) # Darwin 1.3 on
  3220          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  3221            _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  3222          else
  3223            case ${MACOSX_DEPLOYMENT_TARGET} in
  3224              10.[[012]])
  3225                _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  3226                ;;
  3227              10.*)
  3228                _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
  3229                ;;
  3230            esac
  3231          fi
  3232          ;;
  3233         esac
  3234       _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  3235       _LT_AC_TAGVAR(hardcode_direct, $1)=no
  3236       _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
  3237       _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  3238       _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
  3239       _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  3240 
  3241     if test "$GXX" = yes ; then
  3242       lt_int_apple_cc_single_mod=no
  3243       output_verbose_link_cmd='echo'
  3244       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
  3245        lt_int_apple_cc_single_mod=yes
  3246       fi
  3247       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  3248        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  3249       else
  3250           _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  3251         fi
  3252         _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  3253         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  3254           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  3255             _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}'
  3256           else
  3257             _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  3258           fi
  3259             _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}'
  3260       else
  3261       case "$cc_basename" in
  3262         xlc*)
  3263          output_verbose_link_cmd='echo'
  3264           _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  3265           _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  3266           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  3267           _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  3268           _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}'
  3269           ;;
  3270        *)
  3271          _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3272           ;;
  3273       esac
  3274       fi
  3275         ;;
  3276 
  3277   dgux*)
  3278     case $cc_basename in
  3279       ec++)
  3280 	# FIXME: insert proper C++ library support
  3281 	_LT_AC_TAGVAR(ld_shlibs, $1)=no
  3282 	;;
  3283       ghcx)
  3284 	# Green Hills C++ Compiler
  3285 	# FIXME: insert proper C++ library support
  3286 	_LT_AC_TAGVAR(ld_shlibs, $1)=no
  3287 	;;
  3288       *)
  3289 	# FIXME: insert proper C++ library support
  3290 	_LT_AC_TAGVAR(ld_shlibs, $1)=no
  3291 	;;
  3292     esac
  3293     ;;
  3294   freebsd[12]*)
  3295     # C++ shared libraries reported to be fairly broken before switch to ELF
  3296     _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3297     ;;
  3298   freebsd-elf*)
  3299     _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  3300     ;;
  3301   freebsd* | kfreebsd*-gnu)
  3302     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  3303     # conventions
  3304     _LT_AC_TAGVAR(ld_shlibs, $1)=yes
  3305     ;;
  3306   gnu*)
  3307     ;;
  3308   hpux9*)
  3309     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  3310     _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  3311     _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  3312     _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  3313     _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  3314 				# but as the default
  3315 				# location of the library.
  3316 
  3317     case $cc_basename in
  3318     CC)
  3319       # FIXME: insert proper C++ library support
  3320       _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3321       ;;
  3322     aCC)
  3323       _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'
  3324       # Commands to make compiler produce verbose output that lists
  3325       # what "hidden" libraries, object files and flags are used when
  3326       # linking a shared library.
  3327       #
  3328       # There doesn't appear to be a way to prevent this compiler from
  3329       # explicitly linking system object files so we need to strip them
  3330       # from the output so that they don't get included in the library
  3331       # dependencies.
  3332       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'
  3333       ;;
  3334     *)
  3335       if test "$GXX" = yes; then
  3336         _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'
  3337       else
  3338         # FIXME: insert proper C++ library support
  3339         _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3340       fi
  3341       ;;
  3342     esac
  3343     ;;
  3344   hpux10*|hpux11*)
  3345     if test $with_gnu_ld = no; then
  3346       case "$host_cpu" in
  3347       hppa*64*)
  3348 	_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  3349 	_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
  3350 	_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  3351         ;;
  3352       ia64*)
  3353 	_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  3354         ;;
  3355       *)
  3356 	_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  3357 	_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  3358 	_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  3359         ;;
  3360       esac
  3361     fi
  3362     case "$host_cpu" in
  3363     hppa*64*)
  3364       _LT_AC_TAGVAR(hardcode_direct, $1)=no
  3365       _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  3366       ;;
  3367     ia64*)
  3368       _LT_AC_TAGVAR(hardcode_direct, $1)=no
  3369       _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  3370       _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  3371 					      # but as the default
  3372 					      # location of the library.
  3373       ;;
  3374     *)
  3375       _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  3376       _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  3377 					      # but as the default
  3378 					      # location of the library.
  3379       ;;
  3380     esac
  3381 
  3382     case $cc_basename in
  3383       CC)
  3384 	# FIXME: insert proper C++ library support
  3385 	_LT_AC_TAGVAR(ld_shlibs, $1)=no
  3386 	;;
  3387       aCC)
  3388 	case "$host_cpu" in
  3389 	hppa*64*|ia64*)
  3390 	  _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
  3391 	  ;;
  3392 	*)
  3393 	  _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'
  3394 	  ;;
  3395 	esac
  3396 	# Commands to make compiler produce verbose output that lists
  3397 	# what "hidden" libraries, object files and flags are used when
  3398 	# linking a shared library.
  3399 	#
  3400 	# There doesn't appear to be a way to prevent this compiler from
  3401 	# explicitly linking system object files so we need to strip them
  3402 	# from the output so that they don't get included in the library
  3403 	# dependencies.
  3404 	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'
  3405 	;;
  3406       *)
  3407 	if test "$GXX" = yes; then
  3408 	  if test $with_gnu_ld = no; then
  3409 	    case "$host_cpu" in
  3410 	    ia64*|hppa*64*)
  3411 	      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
  3412 	      ;;
  3413 	    *)
  3414 	      _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'
  3415 	      ;;
  3416 	    esac
  3417 	  fi
  3418 	else
  3419 	  # FIXME: insert proper C++ library support
  3420 	  _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3421 	fi
  3422 	;;
  3423     esac
  3424     ;;
  3425   irix5* | irix6*)
  3426     case $cc_basename in
  3427       CC)
  3428 	# SGI C++
  3429 	_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'
  3430 
  3431 	# Archives containing C++ object files must be created using
  3432 	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
  3433 	# necessary to make sure instantiated templates are included
  3434 	# in the archive.
  3435 	_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
  3436 	;;
  3437       *)
  3438 	if test "$GXX" = yes; then
  3439 	  if test "$with_gnu_ld" = no; then
  3440 	    _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'
  3441 	  else
  3442 	    _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'
  3443 	  fi
  3444 	fi
  3445 	_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  3446 	;;
  3447     esac
  3448     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  3449     _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  3450     ;;
  3451   linux*)
  3452     case $cc_basename in
  3453       KCC)
  3454 	# Kuck and Associates, Inc. (KAI) C++ Compiler
  3455 
  3456 	# KCC will only create a shared library if the output file
  3457 	# ends with ".so" (or ".sl" for HP-UX), so rename the library
  3458 	# to its proper name (with version) after linking.
  3459 	_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'
  3460 	_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'
  3461 	# Commands to make compiler produce verbose output that lists
  3462 	# what "hidden" libraries, object files and flags are used when
  3463 	# linking a shared library.
  3464 	#
  3465 	# There doesn't appear to be a way to prevent this compiler from
  3466 	# explicitly linking system object files so we need to strip them
  3467 	# from the output so that they don't get included in the library
  3468 	# dependencies.
  3469 	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'
  3470 
  3471 	_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
  3472 	_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  3473 
  3474 	# Archives containing C++ object files must be created using
  3475 	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
  3476 	_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  3477 	;;
  3478       icpc)
  3479 	# Intel C++
  3480 	with_gnu_ld=yes
  3481 	# version 8.0 and above of icpc choke on multiply defined symbols
  3482 	# if we add $predep_objects and $postdep_objects, however 7.1 and
  3483 	# earlier do not add the objects themselves.
  3484 	case `$CC -V 2>&1` in
  3485 	*"Version 7."*)
  3486   	  _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  3487   	  _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'
  3488 	  ;;
  3489 	*)  # Version 8.0 or newer
  3490   	  _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  3491   	_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'
  3492 	  ;;
  3493 	esac
  3494 	_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  3495 	_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  3496 	_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  3497 	_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  3498 	;;
  3499       cxx)
  3500 	# Compaq C++
  3501 	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  3502 	_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'
  3503 
  3504 	runpath_var=LD_RUN_PATH
  3505 	_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  3506 	_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  3507 
  3508 	# Commands to make compiler produce verbose output that lists
  3509 	# what "hidden" libraries, object files and flags are used when
  3510 	# linking a shared library.
  3511 	#
  3512 	# There doesn't appear to be a way to prevent this compiler from
  3513 	# explicitly linking system object files so we need to strip them
  3514 	# from the output so that they don't get included in the library
  3515 	# dependencies.
  3516 	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'
  3517 	;;
  3518     esac
  3519     ;;
  3520   lynxos*)
  3521     # FIXME: insert proper C++ library support
  3522     _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3523     ;;
  3524   m88k*)
  3525     # FIXME: insert proper C++ library support
  3526     _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3527     ;;
  3528   mvs*)
  3529     case $cc_basename in
  3530       cxx)
  3531 	# FIXME: insert proper C++ library support
  3532 	_LT_AC_TAGVAR(ld_shlibs, $1)=no
  3533 	;;
  3534       *)
  3535 	# FIXME: insert proper C++ library support
  3536 	_LT_AC_TAGVAR(ld_shlibs, $1)=no
  3537 	;;
  3538     esac
  3539     ;;
  3540   netbsd*)
  3541     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  3542       _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  3543       wlarc=
  3544       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  3545       _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  3546       _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  3547     fi
  3548     # Workaround some broken pre-1.5 toolchains
  3549     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  3550     ;;
  3551   openbsd2*)
  3552     # C++ shared libraries are fairly broken
  3553     _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3554     ;;
  3555   openbsd*)
  3556     _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  3557     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  3558     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  3559       _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  3560       _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  3561       _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  3562     fi
  3563     output_verbose_link_cmd='echo'
  3564     ;;
  3565   osf3*)
  3566     case $cc_basename in
  3567       KCC)
  3568 	# Kuck and Associates, Inc. (KAI) C++ Compiler
  3569 
  3570 	# KCC will only create a shared library if the output file
  3571 	# ends with ".so" (or ".sl" for HP-UX), so rename the library
  3572 	# to its proper name (with version) after linking.
  3573 	_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'
  3574 
  3575 	_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  3576 	_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  3577 
  3578 	# Archives containing C++ object files must be created using
  3579 	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
  3580 	_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  3581 
  3582 	;;
  3583       RCC)
  3584 	# Rational C++ 2.4.1
  3585 	# FIXME: insert proper C++ library support
  3586 	_LT_AC_TAGVAR(ld_shlibs, $1)=no
  3587 	;;
  3588       cxx)
  3589 	_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  3590 	_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'
  3591 
  3592 	_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  3593 	_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  3594 
  3595 	# Commands to make compiler produce verbose output that lists
  3596 	# what "hidden" libraries, object files and flags are used when
  3597 	# linking a shared library.
  3598 	#
  3599 	# There doesn't appear to be a way to prevent this compiler from
  3600 	# explicitly linking system object files so we need to strip them
  3601 	# from the output so that they don't get included in the library
  3602 	# dependencies.
  3603 	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'
  3604 	;;
  3605       *)
  3606 	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  3607 	  _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  3608 	  _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'
  3609 
  3610 	  _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  3611 	  _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  3612 
  3613 	  # Commands to make compiler produce verbose output that lists
  3614 	  # what "hidden" libraries, object files and flags are used when
  3615 	  # linking a shared library.
  3616 	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  3617 
  3618 	else
  3619 	  # FIXME: insert proper C++ library support
  3620 	  _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3621 	fi
  3622 	;;
  3623     esac
  3624     ;;
  3625   osf4* | osf5*)
  3626     case $cc_basename in
  3627       KCC)
  3628 	# Kuck and Associates, Inc. (KAI) C++ Compiler
  3629 
  3630 	# KCC will only create a shared library if the output file
  3631 	# ends with ".so" (or ".sl" for HP-UX), so rename the library
  3632 	# to its proper name (with version) after linking.
  3633 	_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'
  3634 
  3635 	_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  3636 	_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  3637 
  3638 	# Archives containing C++ object files must be created using
  3639 	# the KAI C++ compiler.
  3640 	_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
  3641 	;;
  3642       RCC)
  3643 	# Rational C++ 2.4.1
  3644 	# FIXME: insert proper C++ library support
  3645 	_LT_AC_TAGVAR(ld_shlibs, $1)=no
  3646 	;;
  3647       cxx)
  3648 	_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  3649 	_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'
  3650 	_LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  3651 	  echo "-hidden">> $lib.exp~
  3652 	  $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~
  3653 	  $rm $lib.exp'
  3654 
  3655 	_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  3656 	_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  3657 
  3658 	# Commands to make compiler produce verbose output that lists
  3659 	# what "hidden" libraries, object files and flags are used when
  3660 	# linking a shared library.
  3661 	#
  3662 	# There doesn't appear to be a way to prevent this compiler from
  3663 	# explicitly linking system object files so we need to strip them
  3664 	# from the output so that they don't get included in the library
  3665 	# dependencies.
  3666 	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'
  3667 	;;
  3668       *)
  3669 	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  3670 	  _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  3671 	 _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'
  3672 
  3673 	  _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  3674 	  _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  3675 
  3676 	  # Commands to make compiler produce verbose output that lists
  3677 	  # what "hidden" libraries, object files and flags are used when
  3678 	  # linking a shared library.
  3679 	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  3680 
  3681 	else
  3682 	  # FIXME: insert proper C++ library support
  3683 	  _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3684 	fi
  3685 	;;
  3686     esac
  3687     ;;
  3688   psos*)
  3689     # FIXME: insert proper C++ library support
  3690     _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3691     ;;
  3692   sco*)
  3693     _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  3694     case $cc_basename in
  3695       CC)
  3696 	# FIXME: insert proper C++ library support
  3697 	_LT_AC_TAGVAR(ld_shlibs, $1)=no
  3698 	;;
  3699       *)
  3700 	# FIXME: insert proper C++ library support
  3701 	_LT_AC_TAGVAR(ld_shlibs, $1)=no
  3702 	;;
  3703     esac
  3704     ;;
  3705   sunos4*)
  3706     case $cc_basename in
  3707       CC)
  3708 	# Sun C++ 4.x
  3709 	# FIXME: insert proper C++ library support
  3710 	_LT_AC_TAGVAR(ld_shlibs, $1)=no
  3711 	;;
  3712       lcc)
  3713 	# Lucid
  3714 	# FIXME: insert proper C++ library support
  3715 	_LT_AC_TAGVAR(ld_shlibs, $1)=no
  3716 	;;
  3717       *)
  3718 	# FIXME: insert proper C++ library support
  3719 	_LT_AC_TAGVAR(ld_shlibs, $1)=no
  3720 	;;
  3721     esac
  3722     ;;
  3723   solaris*)
  3724     case $cc_basename in
  3725       CC)
  3726 	# Sun C++ 4.2, 5.x and Centerline C++
  3727 	_LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  3728 	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  3729 	_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  3730 	$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'
  3731 
  3732 	_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  3733 	_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  3734 	case $host_os in
  3735 	  solaris2.[0-5] | solaris2.[0-5].*) ;;
  3736 	  *)
  3737 	    # The C++ compiler is used as linker so we must use $wl
  3738 	    # flag to pass the commands to the underlying system
  3739 	    # linker.
  3740 	    # Supported since Solaris 2.6 (maybe 2.5.1?)
  3741 	    _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  3742 	    ;;
  3743 	esac
  3744 	_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  3745 
  3746 	# Commands to make compiler produce verbose output that lists
  3747 	# what "hidden" libraries, object files and flags are used when
  3748 	# linking a shared library.
  3749 	#
  3750 	# There doesn't appear to be a way to prevent this compiler from
  3751 	# explicitly linking system object files so we need to strip them
  3752 	# from the output so that they don't get included in the library
  3753 	# dependencies.
  3754 	output_verbose_link_cmd='templist=`$CC -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'
  3755 
  3756 	# Archives containing C++ object files must be created using
  3757 	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
  3758 	# necessary to make sure instantiated templates are included
  3759 	# in the archive.
  3760 	_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  3761 	;;
  3762       gcx)
  3763 	# Green Hills C++ Compiler
  3764 	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  3765 
  3766 	# The C++ compiler must be used to create the archive.
  3767 	_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  3768 	;;
  3769       *)
  3770 	# GNU C++ compiler with Solaris linker
  3771 	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  3772 	  _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
  3773 	  if $CC --version | grep -v '^2\.7' > /dev/null; then
  3774 	    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  3775 	    _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  3776 		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  3777 
  3778 	    # Commands to make compiler produce verbose output that lists
  3779 	    # what "hidden" libraries, object files and flags are used when
  3780 	    # linking a shared library.
  3781 	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  3782 	  else
  3783 	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
  3784 	    # platform.
  3785 	    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  3786 	    _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  3787 		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  3788 
  3789 	    # Commands to make compiler produce verbose output that lists
  3790 	    # what "hidden" libraries, object files and flags are used when
  3791 	    # linking a shared library.
  3792 	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  3793 	  fi
  3794 
  3795 	  _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
  3796 	fi
  3797 	;;
  3798     esac
  3799     ;;
  3800   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
  3801     _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  3802     ;;
  3803   tandem*)
  3804     case $cc_basename in
  3805       NCC)
  3806 	# NonStop-UX NCC 3.20
  3807 	# FIXME: insert proper C++ library support
  3808 	_LT_AC_TAGVAR(ld_shlibs, $1)=no
  3809 	;;
  3810       *)
  3811 	# FIXME: insert proper C++ library support
  3812 	_LT_AC_TAGVAR(ld_shlibs, $1)=no
  3813 	;;
  3814     esac
  3815     ;;
  3816   vxworks*)
  3817     # FIXME: insert proper C++ library support
  3818     _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3819     ;;
  3820   *)
  3821     # FIXME: insert proper C++ library support
  3822     _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3823     ;;
  3824 esac
  3825 AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
  3826 test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  3827 
  3828 _LT_AC_TAGVAR(GCC, $1)="$GXX"
  3829 _LT_AC_TAGVAR(LD, $1)="$LD"
  3830 
  3831 ## CAVEAT EMPTOR:
  3832 ## There is no encapsulation within the following macros, do not change
  3833 ## the running order or otherwise move them around unless you know exactly
  3834 ## what you are doing...
  3835 AC_LIBTOOL_POSTDEP_PREDEP($1)
  3836 AC_LIBTOOL_PROG_COMPILER_PIC($1)
  3837 AC_LIBTOOL_PROG_CC_C_O($1)
  3838 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  3839 AC_LIBTOOL_PROG_LD_SHLIBS($1)
  3840 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  3841 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  3842 AC_LIBTOOL_SYS_LIB_STRIP
  3843 AC_LIBTOOL_DLOPEN_SELF($1)
  3844 
  3845 AC_LIBTOOL_CONFIG($1)
  3846 
  3847 AC_LANG_POP
  3848 CC=$lt_save_CC
  3849 LDCXX=$LD
  3850 LD=$lt_save_LD
  3851 GCC=$lt_save_GCC
  3852 with_gnu_ldcxx=$with_gnu_ld
  3853 with_gnu_ld=$lt_save_with_gnu_ld
  3854 lt_cv_path_LDCXX=$lt_cv_path_LD
  3855 lt_cv_path_LD=$lt_save_path_LD
  3856 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  3857 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  3858 ])# AC_LIBTOOL_LANG_CXX_CONFIG
  3859 
  3860 # AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
  3861 # ------------------------
  3862 # Figure out "hidden" library dependencies from verbose
  3863 # compiler output when linking a shared library.
  3864 # Parse the compiler output and extract the necessary
  3865 # objects, libraries and library flags.
  3866 AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
  3867 dnl we can't use the lt_simple_compile_test_code here,
  3868 dnl because it contains code intended for an executable,
  3869 dnl not a library.  It's possible we should let each
  3870 dnl tag define a new lt_????_link_test_code variable,
  3871 dnl but it's only used here...
  3872 ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
  3873 int a;
  3874 void foo (void) { a = 0; }
  3875 EOF
  3876 ],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
  3877 class Foo
  3878 {
  3879 public:
  3880   Foo (void) { a = 0; }
  3881 private:
  3882   int a;
  3883 };
  3884 EOF
  3885 ],[$1],[F77],[cat > conftest.$ac_ext <<EOF
  3886       subroutine foo
  3887       implicit none
  3888       integer*4 a
  3889       a=0
  3890       return
  3891       end
  3892 EOF
  3893 ],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
  3894 public class foo {
  3895   private int a;
  3896   public void bar (void) {
  3897     a = 0;
  3898   }
  3899 };
  3900 EOF
  3901 ])
  3902 dnl Parse the compiler output and extract the necessary
  3903 dnl objects, libraries and library flags.
  3904 if AC_TRY_EVAL(ac_compile); then
  3905   # Parse the compiler output and extract the necessary
  3906   # objects, libraries and library flags.
  3907 
  3908   # Sentinel used to keep track of whether or not we are before
  3909   # the conftest object file.
  3910   pre_test_object_deps_done=no
  3911 
  3912   # The `*' in the case matches for architectures that use `case' in
  3913   # $output_verbose_cmd can trigger glob expansion during the loop
  3914   # eval without this substitution.
  3915   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
  3916 
  3917   for p in `eval $output_verbose_link_cmd`; do
  3918     case $p in
  3919 
  3920     -L* | -R* | -l*)
  3921        # Some compilers place space between "-{L,R}" and the path.
  3922        # Remove the space.
  3923        if test $p = "-L" \
  3924 	  || test $p = "-R"; then
  3925 	 prev=$p
  3926 	 continue
  3927        else
  3928 	 prev=
  3929        fi
  3930 
  3931        if test "$pre_test_object_deps_done" = no; then
  3932 	 case $p in
  3933 	 -L* | -R*)
  3934 	   # Internal compiler library paths should come after those
  3935 	   # provided the user.  The postdeps already come after the
  3936 	   # user supplied libs so there is no need to process them.
  3937 	   if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
  3938 	     _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
  3939 	   else
  3940 	     _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
  3941 	   fi
  3942 	   ;;
  3943 	 # The "-l" case would never come before the object being
  3944 	 # linked, so don't bother handling this case.
  3945 	 esac
  3946        else
  3947 	 if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
  3948 	   _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
  3949 	 else
  3950 	   _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
  3951 	 fi
  3952        fi
  3953        ;;
  3954 
  3955     *.$objext)
  3956        # This assumes that the test object file only shows up
  3957        # once in the compiler output.
  3958        if test "$p" = "conftest.$objext"; then
  3959 	 pre_test_object_deps_done=yes
  3960 	 continue
  3961        fi
  3962 
  3963        if test "$pre_test_object_deps_done" = no; then
  3964 	 if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
  3965 	   _LT_AC_TAGVAR(predep_objects, $1)="$p"
  3966 	 else
  3967 	   _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
  3968 	 fi
  3969        else
  3970 	 if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
  3971 	   _LT_AC_TAGVAR(postdep_objects, $1)="$p"
  3972 	 else
  3973 	   _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
  3974 	 fi
  3975        fi
  3976        ;;
  3977 
  3978     *) ;; # Ignore the rest.
  3979 
  3980     esac
  3981   done
  3982 
  3983   # Clean up.
  3984   rm -f a.out a.exe
  3985 else
  3986   echo "libtool.m4: error: problem compiling $1 test program"
  3987 fi
  3988 
  3989 $rm -f confest.$objext
  3990 
  3991 case " $_LT_AC_TAGVAR(postdeps, $1) " in
  3992 *" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
  3993 esac
  3994 ])# AC_LIBTOOL_POSTDEP_PREDEP
  3995 
  3996 # AC_LIBTOOL_LANG_F77_CONFIG
  3997 # ------------------------
  3998 # Ensure that the configuration vars for the C compiler are
  3999 # suitably defined.  Those variables are subsequently used by
  4000 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  4001 AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
  4002 AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
  4003 [AC_REQUIRE([AC_PROG_F77])
  4004 AC_LANG_PUSH(Fortran 77)
  4005 
  4006 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  4007 _LT_AC_TAGVAR(allow_undefined_flag, $1)=
  4008 _LT_AC_TAGVAR(always_export_symbols, $1)=no
  4009 _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
  4010 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  4011 _LT_AC_TAGVAR(hardcode_direct, $1)=no
  4012 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  4013 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  4014 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  4015 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
  4016 _LT_AC_TAGVAR(hardcode_automatic, $1)=no
  4017 _LT_AC_TAGVAR(module_cmds, $1)=
  4018 _LT_AC_TAGVAR(module_expsym_cmds, $1)=
  4019 _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
  4020 _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  4021 _LT_AC_TAGVAR(no_undefined_flag, $1)=
  4022 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  4023 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  4024 
  4025 # Source file extension for f77 test sources.
  4026 ac_ext=f
  4027 
  4028 # Object file extension for compiled f77 test sources.
  4029 objext=o
  4030 _LT_AC_TAGVAR(objext, $1)=$objext
  4031 
  4032 # Code to be used in simple compile tests
  4033 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
  4034 
  4035 # Code to be used in simple link tests
  4036 lt_simple_link_test_code="      program t\n      end\n"
  4037 
  4038 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  4039 _LT_AC_SYS_COMPILER
  4040 
  4041 # Allow CC to be a program name with arguments.
  4042 lt_save_CC="$CC"
  4043 CC=${F77-"f77"}
  4044 compiler=$CC
  4045 _LT_AC_TAGVAR(compiler, $1)=$CC
  4046 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
  4047 
  4048 AC_MSG_CHECKING([if libtool supports shared libraries])
  4049 AC_MSG_RESULT([$can_build_shared])
  4050 
  4051 AC_MSG_CHECKING([whether to build shared libraries])
  4052 test "$can_build_shared" = "no" && enable_shared=no
  4053 
  4054 # On AIX, shared libraries and static libraries use the same namespace, and
  4055 # are all built from PIC.
  4056 case "$host_os" in
  4057 aix3*)
  4058   test "$enable_shared" = yes && enable_static=no
  4059   if test -n "$RANLIB"; then
  4060     archive_cmds="$archive_cmds~\$RANLIB \$lib"
  4061     postinstall_cmds='$RANLIB $lib'
  4062   fi
  4063   ;;
  4064 aix4* | aix5*)
  4065   test "$enable_shared" = yes && enable_static=no
  4066   ;;
  4067 esac
  4068 AC_MSG_RESULT([$enable_shared])
  4069 
  4070 AC_MSG_CHECKING([whether to build static libraries])
  4071 # Make sure either enable_shared or enable_static is yes.
  4072 test "$enable_shared" = yes || enable_static=yes
  4073 AC_MSG_RESULT([$enable_static])
  4074 
  4075 test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  4076 
  4077 _LT_AC_TAGVAR(GCC, $1)="$G77"
  4078 _LT_AC_TAGVAR(LD, $1)="$LD"
  4079 
  4080 AC_LIBTOOL_PROG_COMPILER_PIC($1)
  4081 AC_LIBTOOL_PROG_CC_C_O($1)
  4082 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  4083 AC_LIBTOOL_PROG_LD_SHLIBS($1)
  4084 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  4085 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  4086 AC_LIBTOOL_SYS_LIB_STRIP
  4087 
  4088 
  4089 AC_LIBTOOL_CONFIG($1)
  4090 
  4091 AC_LANG_POP
  4092 CC="$lt_save_CC"
  4093 ])# AC_LIBTOOL_LANG_F77_CONFIG
  4094 
  4095 
  4096 # AC_LIBTOOL_LANG_GCJ_CONFIG
  4097 # --------------------------
  4098 # Ensure that the configuration vars for the C compiler are
  4099 # suitably defined.  Those variables are subsequently used by
  4100 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  4101 AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
  4102 AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
  4103 [AC_LANG_SAVE
  4104 
  4105 # Source file extension for Java test sources.
  4106 ac_ext=java
  4107 
  4108 # Object file extension for compiled Java test sources.
  4109 objext=o
  4110 _LT_AC_TAGVAR(objext, $1)=$objext
  4111 
  4112 # Code to be used in simple compile tests
  4113 lt_simple_compile_test_code="class foo {}\n"
  4114 
  4115 # Code to be used in simple link tests
  4116 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
  4117 
  4118 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  4119 _LT_AC_SYS_COMPILER
  4120 
  4121 # Allow CC to be a program name with arguments.
  4122 lt_save_CC="$CC"
  4123 CC=${GCJ-"gcj"}
  4124 compiler=$CC
  4125 _LT_AC_TAGVAR(compiler, $1)=$CC
  4126 
  4127 # GCJ did not exist at the time GCC didn't implicitly link libc in.
  4128 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  4129 
  4130 ## CAVEAT EMPTOR:
  4131 ## There is no encapsulation within the following macros, do not change
  4132 ## the running order or otherwise move them around unless you know exactly
  4133 ## what you are doing...
  4134 AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
  4135 AC_LIBTOOL_PROG_COMPILER_PIC($1)
  4136 AC_LIBTOOL_PROG_CC_C_O($1)
  4137 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  4138 AC_LIBTOOL_PROG_LD_SHLIBS($1)
  4139 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  4140 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  4141 AC_LIBTOOL_SYS_LIB_STRIP
  4142 AC_LIBTOOL_DLOPEN_SELF($1)
  4143 
  4144 AC_LIBTOOL_CONFIG($1)
  4145 
  4146 AC_LANG_RESTORE
  4147 CC="$lt_save_CC"
  4148 ])# AC_LIBTOOL_LANG_GCJ_CONFIG
  4149 
  4150 
  4151 # AC_LIBTOOL_LANG_RC_CONFIG
  4152 # --------------------------
  4153 # Ensure that the configuration vars for the Windows resource compiler are
  4154 # suitably defined.  Those variables are subsequently used by
  4155 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  4156 AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
  4157 AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
  4158 [AC_LANG_SAVE
  4159 
  4160 # Source file extension for RC test sources.
  4161 ac_ext=rc
  4162 
  4163 # Object file extension for compiled RC test sources.
  4164 objext=o
  4165 _LT_AC_TAGVAR(objext, $1)=$objext
  4166 
  4167 # Code to be used in simple compile tests
  4168 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
  4169 
  4170 # Code to be used in simple link tests
  4171 lt_simple_link_test_code="$lt_simple_compile_test_code"
  4172 
  4173 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  4174 _LT_AC_SYS_COMPILER
  4175 
  4176 # Allow CC to be a program name with arguments.
  4177 lt_save_CC="$CC"
  4178 CC=${RC-"windres"}
  4179 compiler=$CC
  4180 _LT_AC_TAGVAR(compiler, $1)=$CC
  4181 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  4182 
  4183 AC_LIBTOOL_CONFIG($1)
  4184 
  4185 AC_LANG_RESTORE
  4186 CC="$lt_save_CC"
  4187 ])# AC_LIBTOOL_LANG_RC_CONFIG
  4188 
  4189 
  4190 # AC_LIBTOOL_CONFIG([TAGNAME])
  4191 # ----------------------------
  4192 # If TAGNAME is not passed, then create an initial libtool script
  4193 # with a default configuration from the untagged config vars.  Otherwise
  4194 # add code to config.status for appending the configuration named by
  4195 # TAGNAME from the matching tagged config vars.
  4196 AC_DEFUN([AC_LIBTOOL_CONFIG],
  4197 [# The else clause should only fire when bootstrapping the
  4198 # libtool distribution, otherwise you forgot to ship ltmain.sh
  4199 # with your package, and you will get complaints that there are
  4200 # no rules to generate ltmain.sh.
  4201 if test -f "$ltmain"; then
  4202   # See if we are running on zsh, and set the options which allow our commands through
  4203   # without removal of \ escapes.
  4204   if test -n "${ZSH_VERSION+set}" ; then
  4205     setopt NO_GLOB_SUBST
  4206   fi
  4207   # Now quote all the things that may contain metacharacters while being
  4208   # careful not to overquote the AC_SUBSTed values.  We take copies of the
  4209   # variables and quote the copies for generation of the libtool script.
  4210   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
  4211     SED SHELL STRIP \
  4212     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  4213     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  4214     deplibs_check_method reload_flag reload_cmds need_locks \
  4215     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  4216     lt_cv_sys_global_symbol_to_c_name_address \
  4217     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  4218     old_postinstall_cmds old_postuninstall_cmds \
  4219     _LT_AC_TAGVAR(compiler, $1) \
  4220     _LT_AC_TAGVAR(CC, $1) \
  4221     _LT_AC_TAGVAR(LD, $1) \
  4222     _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
  4223     _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
  4224     _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
  4225     _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
  4226     _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
  4227     _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
  4228     _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
  4229     _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
  4230     _LT_AC_TAGVAR(old_archive_cmds, $1) \
  4231     _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
  4232     _LT_AC_TAGVAR(predep_objects, $1) \
  4233     _LT_AC_TAGVAR(postdep_objects, $1) \
  4234     _LT_AC_TAGVAR(predeps, $1) \
  4235     _LT_AC_TAGVAR(postdeps, $1) \
  4236     _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
  4237     _LT_AC_TAGVAR(archive_cmds, $1) \
  4238     _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
  4239     _LT_AC_TAGVAR(postinstall_cmds, $1) \
  4240     _LT_AC_TAGVAR(postuninstall_cmds, $1) \
  4241     _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
  4242     _LT_AC_TAGVAR(allow_undefined_flag, $1) \
  4243     _LT_AC_TAGVAR(no_undefined_flag, $1) \
  4244     _LT_AC_TAGVAR(export_symbols_cmds, $1) \
  4245     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
  4246     _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
  4247     _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
  4248     _LT_AC_TAGVAR(hardcode_automatic, $1) \
  4249     _LT_AC_TAGVAR(module_cmds, $1) \
  4250     _LT_AC_TAGVAR(module_expsym_cmds, $1) \
  4251     _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
  4252     _LT_AC_TAGVAR(exclude_expsyms, $1) \
  4253     _LT_AC_TAGVAR(include_expsyms, $1); do
  4254 
  4255     case $var in
  4256     _LT_AC_TAGVAR(old_archive_cmds, $1) | \
  4257     _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
  4258     _LT_AC_TAGVAR(archive_cmds, $1) | \
  4259     _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
  4260     _LT_AC_TAGVAR(module_cmds, $1) | \
  4261     _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
  4262     _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
  4263     _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
  4264     extract_expsyms_cmds | reload_cmds | finish_cmds | \
  4265     postinstall_cmds | postuninstall_cmds | \
  4266     old_postinstall_cmds | old_postuninstall_cmds | \
  4267     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  4268       # Double-quote double-evaled strings.
  4269       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  4270       ;;
  4271     *)
  4272       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  4273       ;;
  4274     esac
  4275   done
  4276 
  4277   case $lt_echo in
  4278   *'\[$]0 --fallback-echo"')
  4279     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
  4280     ;;
  4281   esac
  4282 
  4283 ifelse([$1], [],
  4284   [cfgfile="${ofile}T"
  4285   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
  4286   $rm -f "$cfgfile"
  4287   AC_MSG_NOTICE([creating $ofile])],
  4288   [cfgfile="$ofile"])
  4289 
  4290   cat <<__EOF__ >> "$cfgfile"
  4291 ifelse([$1], [],
  4292 [#! $SHELL
  4293 
  4294 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  4295 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  4296 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  4297 #
  4298 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
  4299 # Free Software Foundation, Inc.
  4300 #
  4301 # This file is part of GNU Libtool:
  4302 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  4303 #
  4304 # This program is free software; you can redistribute it and/or modify
  4305 # it under the terms of the GNU General Public License as published by
  4306 # the Free Software Foundation; either version 2 of the License, or
  4307 # (at your option) any later version.
  4308 #
  4309 # This program is distributed in the hope that it will be useful, but
  4310 # WITHOUT ANY WARRANTY; without even the implied warranty of
  4311 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  4312 # General Public License for more details.
  4313 #
  4314 # You should have received a copy of the GNU General Public License
  4315 # along with this program; if not, write to the Free Software
  4316 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  4317 #
  4318 # As a special exception to the GNU General Public License, if you
  4319 # distribute this file as part of a program that contains a
  4320 # configuration script generated by Autoconf, you may include it under
  4321 # the same distribution terms that you use for the rest of that program.
  4322 
  4323 # A sed program that does not truncate output.
  4324 SED=$lt_SED
  4325 
  4326 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  4327 Xsed="$SED -e s/^X//"
  4328 
  4329 # The HP-UX ksh and POSIX shell print the target directory to stdout
  4330 # if CDPATH is set.
  4331 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  4332 
  4333 # The names of the tagged configurations supported by this script.
  4334 available_tags=
  4335 
  4336 # ### BEGIN LIBTOOL CONFIG],
  4337 [# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
  4338 
  4339 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  4340 
  4341 # Shell to use when invoking shell scripts.
  4342 SHELL=$lt_SHELL
  4343 
  4344 # Whether or not to build shared libraries.
  4345 build_libtool_libs=$enable_shared
  4346 
  4347 # Whether or not to build static libraries.
  4348 build_old_libs=$enable_static
  4349 
  4350 # Whether or not to add -lc for building shared libraries.
  4351 build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
  4352 
  4353 # Whether or not to disallow shared libs when runtime libs are static
  4354 allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
  4355 
  4356 # Whether or not to optimize for fast installation.
  4357 fast_install=$enable_fast_install
  4358 
  4359 # The host system.
  4360 host_alias=$host_alias
  4361 host=$host
  4362 
  4363 # An echo program that does not interpret backslashes.
  4364 echo=$lt_echo
  4365 
  4366 # The archiver.
  4367 AR=$lt_AR
  4368 AR_FLAGS=$lt_AR_FLAGS
  4369 
  4370 # A C compiler.
  4371 LTCC=$lt_LTCC
  4372 
  4373 # A language-specific compiler.
  4374 CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
  4375 
  4376 # Is the compiler the GNU C compiler?
  4377 with_gcc=$_LT_AC_TAGVAR(GCC, $1)
  4378 
  4379 # An ERE matcher.
  4380 EGREP=$lt_EGREP
  4381 
  4382 # The linker used to build libraries.
  4383 LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
  4384 
  4385 # Whether we need hard or soft links.
  4386 LN_S=$lt_LN_S
  4387 
  4388 # A BSD-compatible nm program.
  4389 NM=$lt_NM
  4390 
  4391 # A symbol stripping program
  4392 STRIP=$lt_STRIP
  4393 
  4394 # Used to examine libraries when file_magic_cmd begins "file"
  4395 MAGIC_CMD=$MAGIC_CMD
  4396 
  4397 # Used on cygwin: DLL creation program.
  4398 DLLTOOL="$DLLTOOL"
  4399 
  4400 # Used on cygwin: object dumper.
  4401 OBJDUMP="$OBJDUMP"
  4402 
  4403 # Used on cygwin: assembler.
  4404 AS="$AS"
  4405 
  4406 # The name of the directory that contains temporary libtool files.
  4407 objdir=$objdir
  4408 
  4409 # How to create reloadable object files.
  4410 reload_flag=$lt_reload_flag
  4411 reload_cmds=$lt_reload_cmds
  4412 
  4413 # How to pass a linker flag through the compiler.
  4414 wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
  4415 
  4416 # Object file suffix (normally "o").
  4417 objext="$ac_objext"
  4418 
  4419 # Old archive suffix (normally "a").
  4420 libext="$libext"
  4421 
  4422 # Shared library suffix (normally ".so").
  4423 shrext_cmds='$shrext_cmds'
  4424 
  4425 # Executable file suffix (normally "").
  4426 exeext="$exeext"
  4427 
  4428 # Additional compiler flags for building library objects.
  4429 pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
  4430 pic_mode=$pic_mode
  4431 
  4432 # What is the maximum length of a command?
  4433 max_cmd_len=$lt_cv_sys_max_cmd_len
  4434 
  4435 # Does compiler simultaneously support -c and -o options?
  4436 compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
  4437 
  4438 # Must we lock files when doing compilation ?
  4439 need_locks=$lt_need_locks
  4440 
  4441 # Do we need the lib prefix for modules?
  4442 need_lib_prefix=$need_lib_prefix
  4443 
  4444 # Do we need a version for libraries?
  4445 need_version=$need_version
  4446 
  4447 # Whether dlopen is supported.
  4448 dlopen_support=$enable_dlopen
  4449 
  4450 # Whether dlopen of programs is supported.
  4451 dlopen_self=$enable_dlopen_self
  4452 
  4453 # Whether dlopen of statically linked programs is supported.
  4454 dlopen_self_static=$enable_dlopen_self_static
  4455 
  4456 # Compiler flag to prevent dynamic linking.
  4457 link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
  4458 
  4459 # Compiler flag to turn off builtin functions.
  4460 no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
  4461 
  4462 # Compiler flag to allow reflexive dlopens.
  4463 export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
  4464 
  4465 # Compiler flag to generate shared objects directly from archives.
  4466 whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
  4467 
  4468 # Compiler flag to generate thread-safe objects.
  4469 thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
  4470 
  4471 # Library versioning type.
  4472 version_type=$version_type
  4473 
  4474 # Format of library name prefix.
  4475 libname_spec=$lt_libname_spec
  4476 
  4477 # List of archive names.  First name is the real one, the rest are links.
  4478 # The last name is the one that the linker finds with -lNAME.
  4479 library_names_spec=$lt_library_names_spec
  4480 
  4481 # The coded name of the library, if different from the real name.
  4482 soname_spec=$lt_soname_spec
  4483 
  4484 # Commands used to build and install an old-style archive.
  4485 RANLIB=$lt_RANLIB
  4486 old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
  4487 old_postinstall_cmds=$lt_old_postinstall_cmds
  4488 old_postuninstall_cmds=$lt_old_postuninstall_cmds
  4489 
  4490 # Create an old-style archive from a shared archive.
  4491 old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
  4492 
  4493 # Create a temporary old-style archive to link instead of a shared archive.
  4494 old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
  4495 
  4496 # Commands used to build and install a shared archive.
  4497 archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
  4498 archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
  4499 postinstall_cmds=$lt_postinstall_cmds
  4500 postuninstall_cmds=$lt_postuninstall_cmds
  4501 
  4502 # Commands used to build a loadable module (assumed same as above if empty)
  4503 module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
  4504 module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
  4505 
  4506 # Commands to strip libraries.
  4507 old_striplib=$lt_old_striplib
  4508 striplib=$lt_striplib
  4509 
  4510 # Dependencies to place before the objects being linked to create a
  4511 # shared library.
  4512 predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
  4513 
  4514 # Dependencies to place after the objects being linked to create a
  4515 # shared library.
  4516 postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
  4517 
  4518 # Dependencies to place before the objects being linked to create a
  4519 # shared library.
  4520 predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
  4521 
  4522 # Dependencies to place after the objects being linked to create a
  4523 # shared library.
  4524 postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
  4525 
  4526 # The library search path used internally by the compiler when linking
  4527 # a shared library.
  4528 compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
  4529 
  4530 # Method to check whether dependent libraries are shared objects.
  4531 deplibs_check_method=$lt_deplibs_check_method
  4532 
  4533 # Command to use when deplibs_check_method == file_magic.
  4534 file_magic_cmd=$lt_file_magic_cmd
  4535 
  4536 # Flag that allows shared libraries with undefined symbols to be built.
  4537 allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
  4538 
  4539 # Flag that forces no undefined symbols.
  4540 no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
  4541 
  4542 # Commands used to finish a libtool library installation in a directory.
  4543 finish_cmds=$lt_finish_cmds
  4544 
  4545 # Same as above, but a single script fragment to be evaled but not shown.
  4546 finish_eval=$lt_finish_eval
  4547 
  4548 # Take the output of nm and produce a listing of raw symbols and C names.
  4549 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  4550 
  4551 # Transform the output of nm in a proper C declaration
  4552 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  4553 
  4554 # Transform the output of nm in a C name address pair
  4555 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  4556 
  4557 # This is the shared library runtime path variable.
  4558 runpath_var=$runpath_var
  4559 
  4560 # This is the shared library path variable.
  4561 shlibpath_var=$shlibpath_var
  4562 
  4563 # Is shlibpath searched before the hard-coded library search path?
  4564 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  4565 
  4566 # How to hardcode a shared library path into an executable.
  4567 hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
  4568 
  4569 # Whether we should hardcode library paths into libraries.
  4570 hardcode_into_libs=$hardcode_into_libs
  4571 
  4572 # Flag to hardcode \$libdir into a binary during linking.
  4573 # This must work even if \$libdir does not exist.
  4574 hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
  4575 
  4576 # If ld is used when linking, flag to hardcode \$libdir into
  4577 # a binary during linking. This must work even if \$libdir does
  4578 # not exist.
  4579 hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
  4580 
  4581 # Whether we need a single -rpath flag with a separated argument.
  4582 hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
  4583 
  4584 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  4585 # resulting binary.
  4586 hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
  4587 
  4588 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  4589 # resulting binary.
  4590 hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
  4591 
  4592 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  4593 # the resulting binary.
  4594 hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
  4595 
  4596 # Set to yes if building a shared library automatically hardcodes DIR into the library
  4597 # and all subsequent libraries and executables linked against it.
  4598 hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
  4599 
  4600 # Variables whose values should be saved in libtool wrapper scripts and
  4601 # restored at relink time.
  4602 variables_saved_for_relink="$variables_saved_for_relink"
  4603 
  4604 # Whether libtool must link a program against all its dependency libraries.
  4605 link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
  4606 
  4607 # Compile-time system search path for libraries
  4608 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  4609 
  4610 # Run-time system search path for libraries
  4611 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  4612 
  4613 # Fix the shell variable \$srcfile for the compiler.
  4614 fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
  4615 
  4616 # Set to yes if exported symbols are required.
  4617 always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
  4618 
  4619 # The commands to list exported symbols.
  4620 export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
  4621 
  4622 # The commands to extract the exported symbol list from a shared archive.
  4623 extract_expsyms_cmds=$lt_extract_expsyms_cmds
  4624 
  4625 # Symbols that should not be listed in the preloaded symbols.
  4626 exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
  4627 
  4628 # Symbols that must always be exported.
  4629 include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
  4630 
  4631 ifelse([$1],[],
  4632 [# ### END LIBTOOL CONFIG],
  4633 [# ### END LIBTOOL TAG CONFIG: $tagname])
  4634 
  4635 __EOF__
  4636 
  4637 ifelse([$1],[], [
  4638   case $host_os in
  4639   aix3*)
  4640     cat <<\EOF >> "$cfgfile"
  4641 
  4642 # AIX sometimes has problems with the GCC collect2 program.  For some
  4643 # reason, if we set the COLLECT_NAMES environment variable, the problems
  4644 # vanish in a puff of smoke.
  4645 if test "X${COLLECT_NAMES+set}" != Xset; then
  4646   COLLECT_NAMES=
  4647   export COLLECT_NAMES
  4648 fi
  4649 EOF
  4650     ;;
  4651   esac
  4652 
  4653   # We use sed instead of cat because bash on DJGPP gets confused if
  4654   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
  4655   # text mode, it properly converts lines to CR/LF.  This bash problem
  4656   # is reportedly fixed, but why not run on old versions too?
  4657   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
  4658 
  4659   mv -f "$cfgfile" "$ofile" || \
  4660     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  4661   chmod +x "$ofile"
  4662 ])
  4663 else
  4664   # If there is no Makefile yet, we rely on a make rule to execute
  4665   # `config.status --recheck' to rerun these tests and create the
  4666   # libtool script then.
  4667   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  4668   if test -f "$ltmain_in"; then
  4669     test -f Makefile && make "$ltmain"
  4670   fi
  4671 fi
  4672 ])# AC_LIBTOOL_CONFIG
  4673 
  4674 
  4675 # AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
  4676 # -------------------------------------------
  4677 AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
  4678 [AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
  4679 
  4680 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  4681 
  4682 if test "$GCC" = yes; then
  4683   _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  4684 
  4685   AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
  4686     lt_cv_prog_compiler_rtti_exceptions,
  4687     [-fno-rtti -fno-exceptions], [],
  4688     [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
  4689 fi
  4690 ])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
  4691 
  4692 
  4693 # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
  4694 # ---------------------------------
  4695 AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
  4696 [AC_REQUIRE([AC_CANONICAL_HOST])
  4697 AC_REQUIRE([AC_PROG_NM])
  4698 AC_REQUIRE([AC_OBJEXT])
  4699 # Check for command to grab the raw symbol name followed by C symbol from nm.
  4700 AC_MSG_CHECKING([command to parse $NM output from $compiler object])
  4701 AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
  4702 [
  4703 # These are sane defaults that work on at least a few old systems.
  4704 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
  4705 
  4706 # Character class describing NM global symbol codes.
  4707 symcode='[[BCDEGRST]]'
  4708 
  4709 # Regexp to match symbols that can be accessed directly from C.
  4710 sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
  4711 
  4712 # Transform the above into a raw symbol and a C symbol.
  4713 symxfrm='\1 \2\3 \3'
  4714 
  4715 # Transform an extracted symbol line into a proper C declaration
  4716 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
  4717 
  4718 # Transform an extracted symbol line into symbol name and symbol address
  4719 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'"
  4720 
  4721 # Define system-specific variables.
  4722 case $host_os in
  4723 aix*)
  4724   symcode='[[BCDT]]'
  4725   ;;
  4726 cygwin* | mingw* | pw32*)
  4727   symcode='[[ABCDGISTW]]'
  4728   ;;
  4729 hpux*) # Its linker distinguishes data from code symbols
  4730   if test "$host_cpu" = ia64; then
  4731     symcode='[[ABCDEGRST]]'
  4732   fi
  4733   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  4734   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'"
  4735   ;;
  4736 irix* | nonstopux*)
  4737   symcode='[[BCDEGRST]]'
  4738   ;;
  4739 osf*)
  4740   symcode='[[BCDEGQRST]]'
  4741   ;;
  4742 solaris* | sysv5*)
  4743   symcode='[[BDRT]]'
  4744   ;;
  4745 sysv4)
  4746   symcode='[[DFNSTU]]'
  4747   ;;
  4748 esac
  4749 
  4750 # Handle CRLF in mingw tool chain
  4751 opt_cr=
  4752 case $build_os in
  4753 mingw*)
  4754   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  4755   ;;
  4756 esac
  4757 
  4758 # If we're using GNU nm, then use its standard symbol codes.
  4759 case `$NM -V 2>&1` in
  4760 *GNU* | *'with BFD'*)
  4761   symcode='[[ABCDGIRSTW]]' ;;
  4762 esac
  4763 
  4764 # Try without a prefix undercore, then with it.
  4765 for ac_symprfx in "" "_"; do
  4766 
  4767   # Write the raw and C identifiers.
  4768   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ 	]]\($symcode$symcode*\)[[ 	]][[ 	]]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
  4769 
  4770   # Check to see that the pipe works correctly.
  4771   pipe_works=no
  4772 
  4773   rm -f conftest*
  4774   cat > conftest.$ac_ext <<EOF
  4775 #ifdef __cplusplus
  4776 extern "C" {
  4777 #endif
  4778 char nm_test_var;
  4779 void nm_test_func(){}
  4780 #ifdef __cplusplus
  4781 }
  4782 #endif
  4783 int main(){nm_test_var='a';nm_test_func();return(0);}
  4784 EOF
  4785 
  4786   if AC_TRY_EVAL(ac_compile); then
  4787     # Now try to grab the symbols.
  4788     nlist=conftest.nm
  4789     if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
  4790       # Try sorting and uniquifying the output.
  4791       if sort "$nlist" | uniq > "$nlist"T; then
  4792 	mv -f "$nlist"T "$nlist"
  4793       else
  4794 	rm -f "$nlist"T
  4795       fi
  4796 
  4797       # Make sure that we snagged all the symbols we need.
  4798       if grep ' nm_test_var$' "$nlist" >/dev/null; then
  4799 	if grep ' nm_test_func$' "$nlist" >/dev/null; then
  4800 	  cat <<EOF > conftest.$ac_ext
  4801 #ifdef __cplusplus
  4802 extern "C" {
  4803 #endif
  4804 
  4805 EOF
  4806 	  # Now generate the symbol file.
  4807 	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
  4808 
  4809 	  cat <<EOF >> conftest.$ac_ext
  4810 #if defined (__STDC__) && __STDC__
  4811 # define lt_ptr_t void *
  4812 #else
  4813 # define lt_ptr_t char *
  4814 # define const
  4815 #endif
  4816 
  4817 /* The mapping between symbol names and symbols. */
  4818 const struct {
  4819   const char *name;
  4820   lt_ptr_t address;
  4821 }
  4822 lt_preloaded_symbols[[]] =
  4823 {
  4824 EOF
  4825 	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
  4826 	  cat <<\EOF >> conftest.$ac_ext
  4827   {0, (lt_ptr_t) 0}
  4828 };
  4829 
  4830 #ifdef __cplusplus
  4831 }
  4832 #endif
  4833 EOF
  4834 	  # Now try linking the two files.
  4835 	  mv conftest.$ac_objext conftstm.$ac_objext
  4836 	  lt_save_LIBS="$LIBS"
  4837 	  lt_save_CFLAGS="$CFLAGS"
  4838 	  LIBS="conftstm.$ac_objext"
  4839 	  CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
  4840 	  if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
  4841 	    pipe_works=yes
  4842 	  fi
  4843 	  LIBS="$lt_save_LIBS"
  4844 	  CFLAGS="$lt_save_CFLAGS"
  4845 	else
  4846 	  echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
  4847 	fi
  4848       else
  4849 	echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
  4850       fi
  4851     else
  4852       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
  4853     fi
  4854   else
  4855     echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
  4856     cat conftest.$ac_ext >&5
  4857   fi
  4858   rm -f conftest* conftst*
  4859 
  4860   # Do not use the global_symbol_pipe unless it works.
  4861   if test "$pipe_works" = yes; then
  4862     break
  4863   else
  4864     lt_cv_sys_global_symbol_pipe=
  4865   fi
  4866 done
  4867 ])
  4868 if test -z "$lt_cv_sys_global_symbol_pipe"; then
  4869   lt_cv_sys_global_symbol_to_cdecl=
  4870 fi
  4871 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  4872   AC_MSG_RESULT(failed)
  4873 else
  4874   AC_MSG_RESULT(ok)
  4875 fi
  4876 ]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
  4877 
  4878 
  4879 # AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
  4880 # ---------------------------------------
  4881 AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
  4882 [_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
  4883 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  4884 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
  4885 
  4886 AC_MSG_CHECKING([for $compiler option to produce PIC])
  4887  ifelse([$1],[CXX],[
  4888   # C++ specific cases for pic, static, wl, etc.
  4889   if test "$GXX" = yes; then
  4890     _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4891     _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  4892 
  4893     case $host_os in
  4894     aix*)
  4895       # All AIX code is PIC.
  4896       if test "$host_cpu" = ia64; then
  4897 	# AIX 5 now supports IA64 processor
  4898 	_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4899       fi
  4900       ;;
  4901     amigaos*)
  4902       # FIXME: we need at least 68020 code to build shared libraries, but
  4903       # adding the `-m68020' flag to GCC prevents building anything better,
  4904       # like `-m68040'.
  4905       _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  4906       ;;
  4907     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  4908       # PIC is the default for these OSes.
  4909       ;;
  4910     mingw* | os2* | pw32*)
  4911       # This hack is so that the source file can tell whether it is being
  4912       # built for inclusion in a dll (and should export symbols for example).
  4913       _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
  4914       ;;
  4915     darwin* | rhapsody*)
  4916       # PIC is the default on this platform
  4917       # Common symbols not allowed in MH_DYLIB files
  4918       _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  4919       ;;
  4920     *djgpp*)
  4921       # DJGPP does not support shared libraries at all
  4922       _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  4923       ;;
  4924     sysv4*MP*)
  4925       if test -d /usr/nec; then
  4926 	_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  4927       fi
  4928       ;;
  4929     hpux*)
  4930       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  4931       # not for PA HP-UX.
  4932       case "$host_cpu" in
  4933       hppa*64*|ia64*)
  4934 	;;
  4935       *)
  4936 	_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4937 	;;
  4938       esac
  4939       ;;
  4940     *)
  4941       _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4942       ;;
  4943     esac
  4944   else
  4945     case $host_os in
  4946       aix4* | aix5*)
  4947 	# All AIX code is PIC.
  4948 	if test "$host_cpu" = ia64; then
  4949 	  # AIX 5 now supports IA64 processor
  4950 	  _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4951 	else
  4952 	  _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  4953 	fi
  4954 	;;
  4955       chorus*)
  4956 	case $cc_basename in
  4957 	cxch68)
  4958 	  # Green Hills C++ Compiler
  4959 	  # _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"
  4960 	  ;;
  4961 	esac
  4962 	;;
  4963        darwin*)
  4964          # PIC is the default on this platform
  4965          # Common symbols not allowed in MH_DYLIB files
  4966          case "$cc_basename" in
  4967            xlc*)
  4968            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
  4969            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4970            ;;
  4971          esac
  4972        ;;
  4973       dgux*)
  4974 	case $cc_basename in
  4975 	  ec++)
  4976 	    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4977 	    ;;
  4978 	  ghcx)
  4979 	    # Green Hills C++ Compiler
  4980 	    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  4981 	    ;;
  4982 	  *)
  4983 	    ;;
  4984 	esac
  4985 	;;
  4986       freebsd* | kfreebsd*-gnu)
  4987 	# FreeBSD uses GNU C++
  4988 	;;
  4989       hpux9* | hpux10* | hpux11*)
  4990 	case $cc_basename in
  4991 	  CC)
  4992 	    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4993 	    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
  4994 	    if test "$host_cpu" != ia64; then
  4995 	      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  4996 	    fi
  4997 	    ;;
  4998 	  aCC)
  4999 	    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5000 	    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
  5001 	    case "$host_cpu" in
  5002 	    hppa*64*|ia64*)
  5003 	      # +Z the default
  5004 	      ;;
  5005 	    *)
  5006 	      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  5007 	      ;;
  5008 	    esac
  5009 	    ;;
  5010 	  *)
  5011 	    ;;
  5012 	esac
  5013 	;;
  5014       irix5* | irix6* | nonstopux*)
  5015 	case $cc_basename in
  5016 	  CC)
  5017 	    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5018 	    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  5019 	    # CC pic flag -KPIC is the default.
  5020 	    ;;
  5021 	  *)
  5022 	    ;;
  5023 	esac
  5024 	;;
  5025       linux*)
  5026 	case $cc_basename in
  5027 	  KCC)
  5028 	    # KAI C++ Compiler
  5029 	    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  5030 	    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  5031 	    ;;
  5032 	  icpc)
  5033 	    # Intel C++
  5034 	    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5035 	    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  5036 	    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  5037 	    ;;
  5038 	  cxx)
  5039 	    # Compaq C++
  5040 	    # Make sure the PIC flag is empty.  It appears that all Alpha
  5041 	    # Linux and Compaq Tru64 Unix objects are PIC.
  5042 	    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  5043 	    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  5044 	    ;;
  5045 	  *)
  5046 	    ;;
  5047 	esac
  5048 	;;
  5049       lynxos*)
  5050 	;;
  5051       m88k*)
  5052 	;;
  5053       mvs*)
  5054 	case $cc_basename in
  5055 	  cxx)
  5056 	    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
  5057 	    ;;
  5058 	  *)
  5059 	    ;;
  5060 	esac
  5061 	;;
  5062       netbsd*)
  5063 	;;
  5064       osf3* | osf4* | osf5*)
  5065 	case $cc_basename in
  5066 	  KCC)
  5067 	    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  5068 	    ;;
  5069 	  RCC)
  5070 	    # Rational C++ 2.4.1
  5071 	    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  5072 	    ;;
  5073 	  cxx)
  5074 	    # Digital/Compaq C++
  5075 	    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5076 	    # Make sure the PIC flag is empty.  It appears that all Alpha
  5077 	    # Linux and Compaq Tru64 Unix objects are PIC.
  5078 	    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  5079 	    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  5080 	    ;;
  5081 	  *)
  5082 	    ;;
  5083 	esac
  5084 	;;
  5085       psos*)
  5086 	;;
  5087       sco*)
  5088 	case $cc_basename in
  5089 	  CC)
  5090 	    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  5091 	    ;;
  5092 	  *)
  5093 	    ;;
  5094 	esac
  5095 	;;
  5096       solaris*)
  5097 	case $cc_basename in
  5098 	  CC)
  5099 	    # Sun C++ 4.2, 5.x and Centerline C++
  5100 	    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  5101 	    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5102 	    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  5103 	    ;;
  5104 	  gcx)
  5105 	    # Green Hills C++ Compiler
  5106 	    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  5107 	    ;;
  5108 	  *)
  5109 	    ;;
  5110 	esac
  5111 	;;
  5112       sunos4*)
  5113 	case $cc_basename in
  5114 	  CC)
  5115 	    # Sun C++ 4.x
  5116 	    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  5117 	    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5118 	    ;;
  5119 	  lcc)
  5120 	    # Lucid
  5121 	    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  5122 	    ;;
  5123 	  *)
  5124 	    ;;
  5125 	esac
  5126 	;;
  5127       tandem*)
  5128 	case $cc_basename in
  5129 	  NCC)
  5130 	    # NonStop-UX NCC 3.20
  5131 	    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  5132 	    ;;
  5133 	  *)
  5134 	    ;;
  5135 	esac
  5136 	;;
  5137       unixware*)
  5138 	;;
  5139       vxworks*)
  5140 	;;
  5141       *)
  5142 	_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  5143 	;;
  5144     esac
  5145   fi
  5146 ],
  5147 [
  5148   if test "$GCC" = yes; then
  5149     _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5150     _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  5151 
  5152     case $host_os in
  5153       aix*)
  5154       # All AIX code is PIC.
  5155       if test "$host_cpu" = ia64; then
  5156 	# AIX 5 now supports IA64 processor
  5157 	_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5158       fi
  5159       ;;
  5160 
  5161     amigaos*)
  5162       # FIXME: we need at least 68020 code to build shared libraries, but
  5163       # adding the `-m68020' flag to GCC prevents building anything better,
  5164       # like `-m68040'.
  5165       _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  5166       ;;
  5167 
  5168     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  5169       # PIC is the default for these OSes.
  5170       ;;
  5171 
  5172     mingw* | pw32* | os2*)
  5173       # This hack is so that the source file can tell whether it is being
  5174       # built for inclusion in a dll (and should export symbols for example).
  5175       _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
  5176       ;;
  5177 
  5178     darwin* | rhapsody*)
  5179       # PIC is the default on this platform
  5180       # Common symbols not allowed in MH_DYLIB files
  5181       _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  5182       ;;
  5183 
  5184     msdosdjgpp*)
  5185       # Just because we use GCC doesn't mean we suddenly get shared libraries
  5186       # on systems that don't support them.
  5187       _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  5188       enable_shared=no
  5189       ;;
  5190 
  5191     sysv4*MP*)
  5192       if test -d /usr/nec; then
  5193 	_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  5194       fi
  5195       ;;
  5196 
  5197     hpux*)
  5198       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  5199       # not for PA HP-UX.
  5200       case "$host_cpu" in
  5201       hppa*64*|ia64*)
  5202 	# +Z the default
  5203 	;;
  5204       *)
  5205 	_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  5206 	;;
  5207       esac
  5208       ;;
  5209 
  5210     *)
  5211       _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  5212       ;;
  5213     esac
  5214   else
  5215     # PORTME Check for flag to pass linker flags through the system compiler.
  5216     case $host_os in
  5217     aix*)
  5218       _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5219       if test "$host_cpu" = ia64; then
  5220 	# AIX 5 now supports IA64 processor
  5221 	_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5222       else
  5223 	_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  5224       fi
  5225       ;;
  5226       darwin*)
  5227         # PIC is the default on this platform
  5228         # Common symbols not allowed in MH_DYLIB files
  5229        case "$cc_basename" in
  5230          xlc*)
  5231          _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
  5232          _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5233          ;;
  5234        esac
  5235        ;;
  5236 
  5237     mingw* | pw32* | os2*)
  5238       # This hack is so that the source file can tell whether it is being
  5239       # built for inclusion in a dll (and should export symbols for example).
  5240       _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
  5241       ;;
  5242 
  5243     hpux9* | hpux10* | hpux11*)
  5244       _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5245       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  5246       # not for PA HP-UX.
  5247       case "$host_cpu" in
  5248       hppa*64*|ia64*)
  5249 	# +Z the default
  5250 	;;
  5251       *)
  5252 	_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  5253 	;;
  5254       esac
  5255       # Is there a better lt_prog_compiler_static that works with the bundled CC?
  5256       _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  5257       ;;
  5258 
  5259     irix5* | irix6* | nonstopux*)
  5260       _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5261       # PIC (with -KPIC) is the default.
  5262       _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  5263       ;;
  5264 
  5265     newsos6)
  5266       _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  5267       _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5268       ;;
  5269 
  5270     linux*)
  5271       case $CC in
  5272       icc* | ecc*)
  5273 	_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5274 	_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  5275 	_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  5276         ;;
  5277       ccc*)
  5278         _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5279         # All Alpha code is PIC.
  5280         _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  5281         ;;
  5282       esac
  5283       ;;
  5284 
  5285     osf3* | osf4* | osf5*)
  5286       _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5287       # All OSF/1 code is PIC.
  5288       _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  5289       ;;
  5290 
  5291     sco3.2v5*)
  5292       _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kpic'
  5293       _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-dn'
  5294       ;;
  5295 
  5296     solaris*)
  5297       _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5298       _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  5299       _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5300       ;;
  5301 
  5302     sunos4*)
  5303       _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  5304       _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  5305       _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5306       ;;
  5307 
  5308     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  5309       _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5310       _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  5311       _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5312       ;;
  5313 
  5314     sysv4*MP*)
  5315       if test -d /usr/nec ;then
  5316 	_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
  5317 	_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5318       fi
  5319       ;;
  5320 
  5321     uts4*)
  5322       _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  5323       _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5324       ;;
  5325 
  5326     *)
  5327       _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  5328       ;;
  5329     esac
  5330   fi
  5331 ])
  5332 AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
  5333 
  5334 #
  5335 # Check to make sure the PIC flag actually works.
  5336 #
  5337 if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
  5338   AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
  5339     _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
  5340     [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
  5341     [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
  5342      "" | " "*) ;;
  5343      *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
  5344      esac],
  5345     [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  5346      _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
  5347 fi
  5348 case "$host_os" in
  5349   # For platforms which do not support PIC, -DPIC is meaningless:
  5350   *djgpp*)
  5351     _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  5352     ;;
  5353   *)
  5354     _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
  5355     ;;
  5356 esac
  5357 ])
  5358 
  5359 
  5360 # AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
  5361 # ------------------------------------
  5362 # See if the linker supports building shared libraries.
  5363 AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
  5364 [AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  5365 ifelse([$1],[CXX],[
  5366   _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  5367   case $host_os in
  5368   aix4* | aix5*)
  5369     # If we're using GNU nm, then we don't want the "-C" option.
  5370     # -C means demangle to AIX nm, but means don't demangle with GNU nm
  5371     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  5372       _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'
  5373     else
  5374       _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'
  5375     fi
  5376     ;;
  5377   pw32*)
  5378     _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
  5379   ;;
  5380   cygwin* | mingw*)
  5381     _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'
  5382   ;;
  5383   *)
  5384     _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  5385   ;;
  5386   esac
  5387 ],[
  5388   runpath_var=
  5389   _LT_AC_TAGVAR(allow_undefined_flag, $1)=
  5390   _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  5391   _LT_AC_TAGVAR(archive_cmds, $1)=
  5392   _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
  5393   _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
  5394   _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
  5395   _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  5396   _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  5397   _LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
  5398   _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  5399   _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  5400   _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  5401   _LT_AC_TAGVAR(hardcode_direct, $1)=no
  5402   _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
  5403   _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  5404   _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
  5405   _LT_AC_TAGVAR(hardcode_automatic, $1)=no
  5406   _LT_AC_TAGVAR(module_cmds, $1)=
  5407   _LT_AC_TAGVAR(module_expsym_cmds, $1)=
  5408   _LT_AC_TAGVAR(always_export_symbols, $1)=no
  5409   _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  5410   # include_expsyms should be a list of space-separated symbols to be *always*
  5411   # included in the symbol list
  5412   _LT_AC_TAGVAR(include_expsyms, $1)=
  5413   # exclude_expsyms can be an extended regexp of symbols to exclude
  5414   # it will be wrapped by ` (' and `)$', so one must not match beginning or
  5415   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  5416   # as well as any symbol that contains `d'.
  5417   _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
  5418   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  5419   # platforms (ab)use it in PIC code, but their linkers get confused if
  5420   # the symbol is explicitly referenced.  Since portable code cannot
  5421   # rely on this symbol name, it's probably fine to never include it in
  5422   # preloaded symbol tables.
  5423   extract_expsyms_cmds=
  5424 
  5425   case $host_os in
  5426   cygwin* | mingw* | pw32*)
  5427     # FIXME: the MSVC++ port hasn't been tested in a loooong time
  5428     # When not using gcc, we currently assume that we are using
  5429     # Microsoft Visual C++.
  5430     if test "$GCC" != yes; then
  5431       with_gnu_ld=no
  5432     fi
  5433     ;;
  5434   openbsd*)
  5435     with_gnu_ld=no
  5436     ;;
  5437   esac
  5438 
  5439   _LT_AC_TAGVAR(ld_shlibs, $1)=yes
  5440   if test "$with_gnu_ld" = yes; then
  5441     # If archive_cmds runs LD, not CC, wlarc should be empty
  5442     wlarc='${wl}'
  5443 
  5444     # See if GNU ld supports shared libraries.
  5445     case $host_os in
  5446     aix3* | aix4* | aix5*)
  5447       # On AIX/PPC, the GNU linker is very broken
  5448       if test "$host_cpu" != ia64; then
  5449 	_LT_AC_TAGVAR(ld_shlibs, $1)=no
  5450 	cat <<EOF 1>&2
  5451 
  5452 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  5453 *** to be unable to reliably create shared libraries on AIX.
  5454 *** Therefore, libtool is disabling shared libraries support.  If you
  5455 *** really care for shared libraries, you may want to modify your PATH
  5456 *** so that a non-GNU linker is found, and then restart.
  5457 
  5458 EOF
  5459       fi
  5460       ;;
  5461 
  5462     amigaos*)
  5463       _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)'
  5464       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5465       _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  5466 
  5467       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  5468       # that the semantics of dynamic libraries on AmigaOS, at least up
  5469       # to version 4, is to share data among multiple programs linked
  5470       # with the same dynamic library.  Since this doesn't match the
  5471       # behavior of shared libraries on other platforms, we can't use
  5472       # them.
  5473       _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5474       ;;
  5475 
  5476     beos*)
  5477       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  5478 	_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  5479 	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  5480 	# support --undefined.  This deserves some investigation.  FIXME
  5481 	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5482       else
  5483 	_LT_AC_TAGVAR(ld_shlibs, $1)=no
  5484       fi
  5485       ;;
  5486 
  5487     cygwin* | mingw* | pw32*)
  5488       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  5489       # as there is no search path for DLLs.
  5490       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5491       _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  5492       _LT_AC_TAGVAR(always_export_symbols, $1)=no
  5493       _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  5494       _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'
  5495 
  5496       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  5497 ##        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  5498         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base ${wl}--out-implib,$lib'
  5499 	# If the export-symbols file already is a .def file (1st line
  5500 	# is EXPORTS), use it as is; otherwise, prepend...
  5501 ##	_LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  5502 ##	  cp $export_symbols $output_objdir/$soname.def;
  5503 ##	else
  5504 ##	  echo EXPORTS > $output_objdir/$soname.def;
  5505 ##	  cat $export_symbols >> $output_objdir/$soname.def;
  5506 ##	fi~
  5507 ##	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
  5508 	_LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  5509 	  cp $export_symbols $output_objdir/$soname.def;
  5510 	else
  5511 	  echo EXPORTS > $output_objdir/$soname.def;
  5512 	  cat $export_symbols >> $output_objdir/$soname.def;
  5513 	fi~
  5514 	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base  ${wl}--out-implib,$lib'
  5515       else
  5516 	ld_shlibs=no
  5517       fi
  5518       ;;
  5519 
  5520     netbsd*)
  5521       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  5522 	_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  5523 	wlarc=
  5524       else
  5525 	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5526 	_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'
  5527       fi
  5528       ;;
  5529 
  5530     solaris* | sysv5*)
  5531       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  5532 	_LT_AC_TAGVAR(ld_shlibs, $1)=no
  5533 	cat <<EOF 1>&2
  5534 
  5535 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  5536 *** create shared libraries on Solaris systems.  Therefore, libtool
  5537 *** is disabling shared libraries support.  We urge you to upgrade GNU
  5538 *** binutils to release 2.9.1 or newer.  Another option is to modify
  5539 *** your PATH or compiler configuration so that the native linker is
  5540 *** used, and then restart.
  5541 
  5542 EOF
  5543       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  5544 	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5545 	_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'
  5546       else
  5547 	_LT_AC_TAGVAR(ld_shlibs, $1)=no
  5548       fi
  5549       ;;
  5550 
  5551     sunos4*)
  5552       _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  5553       wlarc=
  5554       _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  5555       _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5556       ;;
  5557 
  5558   linux*)
  5559     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  5560         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5561 	_LT_AC_TAGVAR(archive_cmds, $1)="$tmp_archive_cmds"
  5562       supports_anon_versioning=no
  5563       case `$LD -v 2>/dev/null` in
  5564         *\ [01].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
  5565         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  5566         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  5567         *\ 2.11.*) ;; # other 2.11 versions
  5568         *) supports_anon_versioning=yes ;;
  5569       esac
  5570       if test $supports_anon_versioning = yes; then
  5571         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
  5572 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  5573 $echo "local: *; };" >> $output_objdir/$libname.ver~
  5574         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  5575       else
  5576         _LT_AC_TAGVAR(archive_expsym_cmds, $1)="$tmp_archive_cmds"
  5577       fi
  5578     else
  5579       _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5580     fi
  5581     ;;
  5582 
  5583     *)
  5584       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  5585 	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5586 	_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'
  5587       else
  5588 	_LT_AC_TAGVAR(ld_shlibs, $1)=no
  5589       fi
  5590       ;;
  5591     esac
  5592 
  5593     if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = yes; then
  5594       runpath_var=LD_RUN_PATH
  5595       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  5596       _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  5597       # ancient GNU ld didn't support --whole-archive et. al.
  5598       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  5599  	_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  5600       else
  5601   	_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  5602       fi
  5603     fi
  5604   else
  5605     # PORTME fill in a description of your system's linker (not GNU ld)
  5606     case $host_os in
  5607     aix3*)
  5608       _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  5609       _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  5610       _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'
  5611       # Note: this linker hardcodes the directories in LIBPATH if there
  5612       # are no directories specified by -L.
  5613       _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  5614       if test "$GCC" = yes && test -z "$link_static_flag"; then
  5615 	# Neither direct hardcoding nor static linking is supported with a
  5616 	# broken collect2.
  5617 	_LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
  5618       fi
  5619       ;;
  5620 
  5621     aix4* | aix5*)
  5622       if test "$host_cpu" = ia64; then
  5623 	# On IA64, the linker does run time linking by default, so we don't
  5624 	# have to do anything special.
  5625 	aix_use_runtimelinking=no
  5626 	exp_sym_flag='-Bexport'
  5627 	no_entry_flag=""
  5628       else
  5629 	# If we're using GNU nm, then we don't want the "-C" option.
  5630 	# -C means demangle to AIX nm, but means don't demangle with GNU nm
  5631 	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  5632 	  _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'
  5633 	else
  5634 	  _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'
  5635 	fi
  5636 	aix_use_runtimelinking=no
  5637 
  5638 	# Test if we are trying to use run time linking or normal
  5639 	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
  5640 	# need to do runtime linking.
  5641 	case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
  5642 	  for ld_flag in $LDFLAGS; do
  5643   	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  5644   	    aix_use_runtimelinking=yes
  5645   	    break
  5646   	  fi
  5647 	  done
  5648 	esac
  5649 
  5650 	exp_sym_flag='-bexport'
  5651 	no_entry_flag='-bnoentry'
  5652       fi
  5653 
  5654       # When large executables or shared objects are built, AIX ld can
  5655       # have problems creating the table of contents.  If linking a library
  5656       # or program results in "error TOC overflow" add -mminimal-toc to
  5657       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
  5658       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  5659 
  5660       _LT_AC_TAGVAR(archive_cmds, $1)=''
  5661       _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  5662       _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
  5663       _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  5664 
  5665       if test "$GCC" = yes; then
  5666 	case $host_os in aix4.[012]|aix4.[012].*)
  5667 	# We only want to do this on AIX 4.2 and lower, the check
  5668 	# below for broken collect2 doesn't work under 4.3+
  5669 	  collect2name=`${CC} -print-prog-name=collect2`
  5670 	  if test -f "$collect2name" && \
  5671   	   strings "$collect2name" | grep resolve_lib_name >/dev/null
  5672 	  then
  5673   	  # We have reworked collect2
  5674   	  _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  5675 	  else
  5676   	  # We have old collect2
  5677   	  _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
  5678   	  # It fails to find uninstalled libraries when the uninstalled
  5679   	  # path is not listed in the libpath.  Setting hardcode_minus_L
  5680   	  # to unsupported forces relinking
  5681   	  _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  5682   	  _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5683   	  _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  5684 	  fi
  5685 	esac
  5686 	shared_flag='-shared'
  5687       else
  5688 	# not using gcc
  5689 	if test "$host_cpu" = ia64; then
  5690   	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  5691   	# chokes on -Wl,-G. The following line is correct:
  5692 	  shared_flag='-G'
  5693 	else
  5694   	if test "$aix_use_runtimelinking" = yes; then
  5695 	    shared_flag='${wl}-G'
  5696 	  else
  5697 	    shared_flag='${wl}-bM:SRE'
  5698   	fi
  5699 	fi
  5700       fi
  5701 
  5702       # It seems that -bexpall does not export symbols beginning with
  5703       # underscore (_), so it is better to generate a list of symbols to export.
  5704       _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  5705       if test "$aix_use_runtimelinking" = yes; then
  5706 	# Warning - without using the other runtime loading flags (-brtl),
  5707 	# -berok will link without error, but may produce a broken library.
  5708 	_LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
  5709        # Determine the default libpath from the value encoded in an empty executable.
  5710        _LT_AC_SYS_LIBPATH_AIX
  5711        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  5712 	_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"
  5713        else
  5714 	if test "$host_cpu" = ia64; then
  5715 	  _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  5716 	  _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  5717 	  _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"
  5718 	else
  5719 	 # Determine the default libpath from the value encoded in an empty executable.
  5720 	 _LT_AC_SYS_LIBPATH_AIX
  5721 	 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  5722 	  # Warning - without using the other run time loading flags,
  5723 	  # -berok will link without error, but may produce a broken library.
  5724 	  _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  5725 	  _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  5726 	  # -bexpall does not export symbols beginning with underscore (_)
  5727 	  _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  5728 	  # Exported symbols can be pulled into shared objects from archives
  5729 	  _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
  5730 	  _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  5731 	  # This is similar to how AIX traditionally builds it's shared libraries.
  5732 	  _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'
  5733 	fi
  5734       fi
  5735       ;;
  5736 
  5737     amigaos*)
  5738       _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)'
  5739       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5740       _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  5741       # see comment about different semantics on the GNU ld section
  5742       _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5743       ;;
  5744 
  5745     bsdi[[45]]*)
  5746       _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
  5747       ;;
  5748 
  5749     cygwin* | mingw* | pw32*)
  5750       # When not using gcc, we currently assume that we are using
  5751       # Microsoft Visual C++.
  5752       # hardcode_libdir_flag_spec is actually meaningless, as there is
  5753       # no search path for DLLs.
  5754       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  5755       _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  5756       # Tell ltmain to make .lib files, not .a files.
  5757       libext=lib
  5758       # Tell ltmain to make .dll files, not .so files.
  5759       shrext_cmds=".dll"
  5760       # FIXME: Setting linknames here is a bad hack.
  5761       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  5762       # The linker will automatically build a .lib file if we build a DLL.
  5763       _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
  5764       # FIXME: Should let the user specify the lib program.
  5765       _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
  5766       fix_srcfile_path='`cygpath -w "$srcfile"`'
  5767       _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  5768       ;;
  5769 
  5770     darwin* | rhapsody*)
  5771       case "$host_os" in
  5772         rhapsody* | darwin1.[[012]])
  5773          _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
  5774          ;;
  5775        *) # Darwin 1.3 on
  5776          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  5777            _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  5778          else
  5779            case ${MACOSX_DEPLOYMENT_TARGET} in
  5780              10.[[012]])
  5781                _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  5782                ;;
  5783              10.*)
  5784                _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
  5785                ;;
  5786            esac
  5787          fi
  5788          ;;
  5789       esac
  5790       _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  5791       _LT_AC_TAGVAR(hardcode_direct, $1)=no
  5792       _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
  5793       _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  5794       _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
  5795       _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  5796     if test "$GCC" = yes ; then
  5797     	output_verbose_link_cmd='echo'
  5798         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  5799       _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  5800       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  5801       _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}'
  5802       _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}'
  5803     else
  5804       case "$cc_basename" in
  5805         xlc*)
  5806          output_verbose_link_cmd='echo'
  5807          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  5808          _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  5809           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  5810          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  5811           _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}'
  5812           ;;
  5813        *)
  5814          _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5815           ;;
  5816       esac
  5817     fi
  5818       ;;
  5819 
  5820     dgux*)
  5821       _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5822       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5823       _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5824       ;;
  5825 
  5826     freebsd1*)
  5827       _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5828       ;;
  5829 
  5830     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  5831     # support.  Future versions do this automatically, but an explicit c++rt0.o
  5832     # does not break anything, and helps significantly (at the cost of a little
  5833     # extra space).
  5834     freebsd2.2*)
  5835       _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  5836       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  5837       _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  5838       _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5839       ;;
  5840 
  5841     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  5842     freebsd2*)
  5843       _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  5844       _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  5845       _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  5846       _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5847       ;;
  5848 
  5849     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  5850     freebsd* | kfreebsd*-gnu)
  5851       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  5852       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  5853       _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  5854       _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5855       ;;
  5856 
  5857     hpux9*)
  5858       if test "$GCC" = yes; then
  5859 	_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'
  5860       else
  5861 	_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'
  5862       fi
  5863       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  5864       _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5865       _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  5866 
  5867       # hardcode_minus_L: Not really in the search PATH,
  5868       # but as the default location of the library.
  5869       _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  5870       _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5871       ;;
  5872 
  5873     hpux10* | hpux11*)
  5874       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  5875 	case "$host_cpu" in
  5876 	hppa*64*|ia64*)
  5877 	  _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  5878 	  ;;
  5879 	*)
  5880 	  _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  5881 	  ;;
  5882 	esac
  5883       else
  5884 	case "$host_cpu" in
  5885 	hppa*64*|ia64*)
  5886 	  _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
  5887 	  ;;
  5888 	*)
  5889 	  _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  5890 	  ;;
  5891 	esac
  5892       fi
  5893       if test "$with_gnu_ld" = no; then
  5894 	case "$host_cpu" in
  5895 	hppa*64*)
  5896 	  _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  5897 	  _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
  5898 	  _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5899 	  _LT_AC_TAGVAR(hardcode_direct, $1)=no
  5900 	  _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5901 	  ;;
  5902 	ia64*)
  5903 	  _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5904 	  _LT_AC_TAGVAR(hardcode_direct, $1)=no
  5905 	  _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5906 
  5907 	  # hardcode_minus_L: Not really in the search PATH,
  5908 	  # but as the default location of the library.
  5909 	  _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  5910 	  ;;
  5911 	*)
  5912 	  _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  5913 	  _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5914 	  _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  5915 	  _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5916 
  5917 	  # hardcode_minus_L: Not really in the search PATH,
  5918 	  # but as the default location of the library.
  5919 	  _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  5920 	  ;;
  5921 	esac
  5922       fi
  5923       ;;
  5924 
  5925     irix5* | irix6* | nonstopux*)
  5926       if test "$GCC" = yes; then
  5927 	_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'
  5928       else
  5929 	_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'
  5930 	_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
  5931       fi
  5932       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5933       _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5934       _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  5935       ;;
  5936 
  5937     netbsd*)
  5938       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  5939 	_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
  5940       else
  5941 	_LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
  5942       fi
  5943       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  5944       _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  5945       _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5946       ;;
  5947 
  5948     newsos6)
  5949       _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5950       _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  5951       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5952       _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5953       _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5954       ;;
  5955 
  5956     openbsd*)
  5957       _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  5958       _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5959       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5960 	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  5961 	_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  5962 	_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5963 	_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5964       else
  5965        case $host_os in
  5966 	 openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
  5967 	   _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  5968 	   _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  5969 	   ;;
  5970 	 *)
  5971 	   _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  5972 	   _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5973 	   ;;
  5974        esac
  5975       fi
  5976       ;;
  5977 
  5978     os2*)
  5979       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5980       _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  5981       _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  5982       _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'
  5983       _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  5984       ;;
  5985 
  5986     osf3*)
  5987       if test "$GCC" = yes; then
  5988 	_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  5989 	_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'
  5990       else
  5991 	_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  5992 	_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'
  5993       fi
  5994       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5995       _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5996       ;;
  5997 
  5998     osf4* | osf5*)	# as osf3* with the addition of -msym flag
  5999       if test "$GCC" = yes; then
  6000 	_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  6001 	_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'
  6002 	_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  6003       else
  6004 	_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  6005 	_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'
  6006 	_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~
  6007 	$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'
  6008 
  6009 	# Both c and cxx compiler support -rpath directly
  6010 	_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  6011       fi
  6012       _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  6013       ;;
  6014 
  6015     sco3.2v5*)
  6016       _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6017       _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  6018       _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  6019       runpath_var=LD_RUN_PATH
  6020       hardcode_runpath_var=yes
  6021       ;;
  6022 
  6023     solaris*)
  6024       _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
  6025       if test "$GCC" = yes; then
  6026 	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6027 	_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  6028 	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  6029       else
  6030 	_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6031 	_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  6032   	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  6033       fi
  6034       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  6035       _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  6036       case $host_os in
  6037       solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  6038       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
  6039 	_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
  6040       esac
  6041       _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  6042       ;;
  6043 
  6044     sunos4*)
  6045       if test "x$host_vendor" = xsequent; then
  6046 	# Use $CC to link under sequent, because it throws in some extra .o
  6047 	# files that make .init and .fini sections work.
  6048 	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  6049       else
  6050 	_LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  6051       fi
  6052       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  6053       _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  6054       _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  6055       _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  6056       ;;
  6057 
  6058     sysv4)
  6059       case $host_vendor in
  6060 	sni)
  6061 	  _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6062 	  _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
  6063 	;;
  6064 	siemens)
  6065 	  ## LD is ld it makes a PLAMLIB
  6066 	  ## CC just makes a GrossModule.
  6067 	  _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  6068 	  _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
  6069 	  _LT_AC_TAGVAR(hardcode_direct, $1)=no
  6070         ;;
  6071 	motorola)
  6072 	  _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6073 	  _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
  6074 	;;
  6075       esac
  6076       runpath_var='LD_RUN_PATH'
  6077       _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  6078       ;;
  6079 
  6080     sysv4.3*)
  6081       _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6082       _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  6083       _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
  6084       ;;
  6085 
  6086     sysv4*MP*)
  6087       if test -d /usr/nec; then
  6088 	_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6089 	_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  6090 	runpath_var=LD_RUN_PATH
  6091 	hardcode_runpath_var=yes
  6092 	_LT_AC_TAGVAR(ld_shlibs, $1)=yes
  6093       fi
  6094       ;;
  6095 
  6096     sysv4.2uw2*)
  6097       _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  6098       _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  6099       _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
  6100       _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  6101       hardcode_runpath_var=yes
  6102       runpath_var=LD_RUN_PATH
  6103       ;;
  6104 
  6105    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[[78]]* | unixware7*)
  6106       _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text'
  6107       if test "$GCC" = yes; then
  6108 	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6109       else
  6110 	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6111       fi
  6112       runpath_var='LD_RUN_PATH'
  6113       _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  6114       ;;
  6115 
  6116     sysv5*)
  6117       _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
  6118       # $CC -shared without GNU ld will not create a library from C++
  6119       # object files and a static libstdc++, better avoid it by now
  6120       _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6121       _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  6122   		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  6123       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  6124       _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  6125       runpath_var='LD_RUN_PATH'
  6126       ;;
  6127 
  6128     uts4*)
  6129       _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6130       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  6131       _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  6132       ;;
  6133 
  6134     *)
  6135       _LT_AC_TAGVAR(ld_shlibs, $1)=no
  6136       ;;
  6137     esac
  6138   fi
  6139 ])
  6140 AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
  6141 test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  6142 
  6143 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  6144 if test "$GCC" = yes; then
  6145   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  6146 fi
  6147 
  6148 #
  6149 # Do we need to explicitly link libc?
  6150 #
  6151 case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
  6152 x|xyes)
  6153   # Assume -lc should be added
  6154   _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  6155 
  6156   if test "$enable_shared" = yes && test "$GCC" = yes; then
  6157     case $_LT_AC_TAGVAR(archive_cmds, $1) in
  6158     *'~'*)
  6159       # FIXME: we may have to deal with multi-command sequences.
  6160       ;;
  6161     '$CC '*)
  6162       # Test whether the compiler implicitly links with -lc since on some
  6163       # systems, -lgcc has to come before -lc. If gcc already passes -lc
  6164       # to ld, don't add -lc before -lgcc.
  6165       AC_MSG_CHECKING([whether -lc should be explicitly linked in])
  6166       $rm conftest*
  6167       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  6168 
  6169       if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
  6170         soname=conftest
  6171         lib=conftest
  6172         libobjs=conftest.$ac_objext
  6173         deplibs=
  6174         wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
  6175         compiler_flags=-v
  6176         linker_flags=-v
  6177         verstring=
  6178         output_objdir=.
  6179         libname=conftest
  6180         lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
  6181         _LT_AC_TAGVAR(allow_undefined_flag, $1)=
  6182         if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
  6183         then
  6184 	  _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  6185         else
  6186 	  _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  6187         fi
  6188         _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
  6189       else
  6190         cat conftest.err 1>&5
  6191       fi
  6192       $rm conftest*
  6193       AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
  6194       ;;
  6195     esac
  6196   fi
  6197   ;;
  6198 esac
  6199 ])# AC_LIBTOOL_PROG_LD_SHLIBS
  6200 
  6201 
  6202 # _LT_AC_FILE_LTDLL_C
  6203 # -------------------
  6204 # Be careful that the start marker always follows a newline.
  6205 AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
  6206 # /* ltdll.c starts here */
  6207 # #define WIN32_LEAN_AND_MEAN
  6208 # #include <windows.h>
  6209 # #undef WIN32_LEAN_AND_MEAN
  6210 # #include <stdio.h>
  6211 #
  6212 # #ifndef __CYGWIN__
  6213 # #  ifdef __CYGWIN32__
  6214 # #    define __CYGWIN__ __CYGWIN32__
  6215 # #  endif
  6216 # #endif
  6217 #
  6218 # #ifdef __cplusplus
  6219 # extern "C" {
  6220 # #endif
  6221 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
  6222 # #ifdef __cplusplus
  6223 # }
  6224 # #endif
  6225 #
  6226 # #ifdef __CYGWIN__
  6227 # #include <cygwin/cygwin_dll.h>
  6228 # DECLARE_CYGWIN_DLL( DllMain );
  6229 # #endif
  6230 # HINSTANCE __hDllInstance_base;
  6231 #
  6232 # BOOL APIENTRY
  6233 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
  6234 # {
  6235 #   __hDllInstance_base = hInst;
  6236 #   return TRUE;
  6237 # }
  6238 # /* ltdll.c ends here */
  6239 ])# _LT_AC_FILE_LTDLL_C
  6240 
  6241 
  6242 # _LT_AC_TAGVAR(VARNAME, [TAGNAME])
  6243 # ---------------------------------
  6244 AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
  6245 
  6246 
  6247 # old names
  6248 AC_DEFUN([AM_PROG_LIBTOOL],   [AC_PROG_LIBTOOL])
  6249 AC_DEFUN([AM_ENABLE_SHARED],  [AC_ENABLE_SHARED($@)])
  6250 AC_DEFUN([AM_ENABLE_STATIC],  [AC_ENABLE_STATIC($@)])
  6251 AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
  6252 AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
  6253 AC_DEFUN([AM_PROG_LD],        [AC_PROG_LD])
  6254 AC_DEFUN([AM_PROG_NM],        [AC_PROG_NM])
  6255 
  6256 # This is just to silence aclocal about the macro not being used
  6257 ifelse([AC_DISABLE_FAST_INSTALL])
  6258 
  6259 AC_DEFUN([LT_AC_PROG_GCJ],
  6260 [AC_CHECK_TOOL(GCJ, gcj, no)
  6261   test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
  6262   AC_SUBST(GCJFLAGS)
  6263 ])
  6264 
  6265 AC_DEFUN([LT_AC_PROG_RC],
  6266 [AC_CHECK_TOOL(RC, windres, no)
  6267 ])
  6268 
  6269 ############################################################
  6270 # NOTE: This macro has been submitted for inclusion into   #
  6271 #  GNU Autoconf as AC_PROG_SED.  When it is available in   #
  6272 #  a released version of Autoconf we should remove this    #
  6273 #  macro and use it instead.                               #
  6274 ############################################################
  6275 # LT_AC_PROG_SED
  6276 # --------------
  6277 # Check for a fully-functional sed program, that truncates
  6278 # as few characters as possible.  Prefer GNU sed if found.
  6279 AC_DEFUN([LT_AC_PROG_SED],
  6280 [AC_MSG_CHECKING([for a sed that does not truncate output])
  6281 AC_CACHE_VAL(lt_cv_path_SED,
  6282 [# Loop through the user's path and test for sed and gsed.
  6283 # Then use that list of sed's as ones to test for truncation.
  6284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6285 for as_dir in $PATH
  6286 do
  6287   IFS=$as_save_IFS
  6288   test -z "$as_dir" && as_dir=.
  6289   for lt_ac_prog in sed gsed; do
  6290     for ac_exec_ext in '' $ac_executable_extensions; do
  6291       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
  6292         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  6293       fi
  6294     done
  6295   done
  6296 done
  6297 lt_ac_max=0
  6298 lt_ac_count=0
  6299 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
  6300 # along with /bin/sed that truncates output.
  6301 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  6302   test ! -f $lt_ac_sed && break
  6303   cat /dev/null > conftest.in
  6304   lt_ac_count=0
  6305   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  6306   # Check for GNU sed and select it if it is found.
  6307   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  6308     lt_cv_path_SED=$lt_ac_sed
  6309     break
  6310   fi
  6311   while true; do
  6312     cat conftest.in conftest.in >conftest.tmp
  6313     mv conftest.tmp conftest.in
  6314     cp conftest.in conftest.nl
  6315     echo >>conftest.nl
  6316     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  6317     cmp -s conftest.out conftest.nl || break
  6318     # 10000 chars as input seems more than enough
  6319     test $lt_ac_count -gt 10 && break
  6320     lt_ac_count=`expr $lt_ac_count + 1`
  6321     if test $lt_ac_count -gt $lt_ac_max; then
  6322       lt_ac_max=$lt_ac_count
  6323       lt_cv_path_SED=$lt_ac_sed
  6324     fi
  6325   done
  6326 done
  6327 ])
  6328 SED=$lt_cv_path_SED
  6329 AC_MSG_RESULT([$SED])
  6330 ])