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