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