166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman## Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005
366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman## Free Software Foundation, Inc.
466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman## Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman##
666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman## This file is free software; the Free Software Foundation gives
766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman## unlimited permission to copy and/or distribute it, with or without
866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman## modifications, as long as this notice is preserved.
966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
1066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# serial 48 AC_PROG_LIBTOOL
1166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
1266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
1366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
1466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# -----------------------------------------------------------
1566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# If this macro is not defined by Autoconf, define it here.
1666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanm4_ifdef([AC_PROVIDE_IFELSE],
1766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman         [],
1866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman         [m4_define([AC_PROVIDE_IFELSE],
1966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	         [m4_ifdef([AC_PROVIDE_$1],
2066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		           [$2], [$3])])])
2166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
2266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
2366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# AC_PROG_LIBTOOL
2466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# ---------------
2566b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_DEFUN([AC_PROG_LIBTOOL],
2666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
2766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumandnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
2866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumandnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
2966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  AC_PROVIDE_IFELSE([AC_PROG_CXX],
3066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    [AC_LIBTOOL_CXX],
3166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
3266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  ])])
3366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumandnl And a similar setup for Fortran 77 support
3466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  AC_PROVIDE_IFELSE([AC_PROG_F77],
3566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    [AC_LIBTOOL_F77],
3666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
3766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman])])
3866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
3966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumandnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
4066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumandnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
4166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumandnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
4266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  AC_PROVIDE_IFELSE([AC_PROG_GCJ],
4366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    [AC_LIBTOOL_GCJ],
4466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
4566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      [AC_LIBTOOL_GCJ],
4666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
4766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	[AC_LIBTOOL_GCJ],
4866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      [ifdef([AC_PROG_GCJ],
4966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	     [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
5066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman       ifdef([A][M_PROG_GCJ],
5166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	     [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
5266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman       ifdef([LT_AC_PROG_GCJ],
5366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	     [define([LT_AC_PROG_GCJ],
5466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
5566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman])])# AC_PROG_LIBTOOL
5666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
5766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
5866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# _AC_PROG_LIBTOOL
5966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# ----------------
6066b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_DEFUN([_AC_PROG_LIBTOOL],
6166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
6266b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
6366b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
6466b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
6566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
6666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# This can be used to rebuild libtool when needed
6766b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanLIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
6866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
6966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Always use our own libtool.
7066b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanLIBTOOL='$(SHELL) $(top_builddir)/mklib'
7166b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_SUBST(LIBTOOL)dnl
7266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
7366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Prevent multiple expansion
7466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumandefine([AC_PROG_LIBTOOL], [])
7566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman])# _AC_PROG_LIBTOOL
7666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
7766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
7866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# AC_LIBTOOL_SETUP
7966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# ----------------
8066b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_DEFUN([AC_LIBTOOL_SETUP],
8166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman[AC_PREREQ(2.60)dnl
8266b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_REQUIRE([AC_ENABLE_SHARED])dnl
8366b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_REQUIRE([AC_ENABLE_STATIC])dnl
8466b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
8566b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_REQUIRE([AC_CANONICAL_HOST])dnl
8666b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_REQUIRE([AC_CANONICAL_BUILD])dnl
8766b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_REQUIRE([AC_PROG_CC])dnl
8866b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_REQUIRE([AC_PROG_LD])dnl
8966b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
9066b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_REQUIRE([AC_PROG_NM])dnl
9166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
9266b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_REQUIRE([AC_PROG_LN_S])dnl
9366b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
9466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
9566b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_REQUIRE([AC_OBJEXT])dnl
9666b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_REQUIRE([AC_EXEEXT])dnl
9766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumandnl
9866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
9966b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_LIBTOOL_SYS_MAX_CMD_LEN
10066b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
10166b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_LIBTOOL_OBJDIR
10266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
10366b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
10466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman_LT_AC_PROG_ECHO_BACKSLASH
10566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
10666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumancase $host_os in
10766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanaix3*)
10866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  # AIX sometimes has problems with the GCC collect2 program.  For some
10966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  # reason, if we set the COLLECT_NAMES environment variable, the problems
11066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  # vanish in a puff of smoke.
11166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  if test "X${COLLECT_NAMES+set}" != Xset; then
11266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    COLLECT_NAMES=
11366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    export COLLECT_NAMES
11466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  fi
11566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  ;;
11666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanesac
11766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
11866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Sed substitution that helps us do robust quoting.  It backslashifies
11966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# metacharacters that are still active within double-quoted strings.
12066b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanXsed='sed -e 1s/^X//'
12166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
12266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
12366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Same as above, but do not quote variable references.
12466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
12566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
12666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Sed substitution to delay expansion of an escaped shell variable in a
12766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# double_quote_subst'ed string.
12866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumandelay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
13066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Sed substitution to avoid accidental globbing in evaled expressions
13166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanno_glob_subst='s/\*/\\\*/g'
13266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
13366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Constants:
13466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanrm="rm -f"
13566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
13666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Global variables:
13766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumandefault_ofile=mklib
13866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumancan_build_shared=yes
13966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
14066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# All known linkers require a `.a' archive for static linking (except MSVC,
14166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# which needs '.lib').
14266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanlibext=a
14366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanltmain="$ac_aux_dir/ltmain.sh"
14466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanofile="$default_ofile"
14566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanwith_gnu_ld="$lt_cv_prog_gnu_ld"
14666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
14766b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_CHECK_TOOL(AR, ar, false)
14866b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_CHECK_TOOL(RANLIB, ranlib, :)
14966b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_CHECK_TOOL(STRIP, strip, :)
15066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
15166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanold_CC="$CC"
15266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanold_CFLAGS="$CFLAGS"
15366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
15466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Set sane defaults for various variables
15566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumantest -z "$AR" && AR=ar
15666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumantest -z "$AR_FLAGS" && AR_FLAGS=cru
15766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumantest -z "$AS" && AS=as
15866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumantest -z "$CC" && CC=cc
15966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumantest -z "$LTCC" && LTCC=$CC
16066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumantest -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
16166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumantest -z "$DLLTOOL" && DLLTOOL=dlltool
16266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumantest -z "$LD" && LD=ld
16366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumantest -z "$LN_S" && LN_S="ln -s"
16466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumantest -z "$MAGIC_CMD" && MAGIC_CMD=file
16566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumantest -z "$NM" && NM=nm
16666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumantest -z "$SED" && SED=sed
16766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumantest -z "$OBJDUMP" && OBJDUMP=objdump
16866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumantest -z "$RANLIB" && RANLIB=:
16966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumantest -z "$STRIP" && STRIP=:
17066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumantest -z "$ac_objext" && ac_objext=o
17166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
17266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Determine commands to create old-style static archives.
17366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanold_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
17466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanold_postinstall_cmds='chmod 644 $oldlib'
17566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanold_postuninstall_cmds=
17666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
17766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanif test -n "$RANLIB"; then
17866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  case $host_os in
17966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  openbsd*)
18066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
18166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    ;;
18266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  *)
18366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
18466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    ;;
18566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  esac
18666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
18766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanfi
18866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
18966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman_LT_CC_BASENAME([$compiler])
19066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
19166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Only perform the check for file, if the check method requires it
19266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumancase $deplibs_check_method in
19366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanfile_magic*)
19466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
19566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    AC_PATH_MAGIC
19666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  fi
19766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  ;;
19866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanesac
19966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
20066b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
20166b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
20266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanenable_win32_dll=yes, enable_win32_dll=no)
20366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
20466b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_ARG_ENABLE([libtool-lock],
20566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    [AS_HELP_STRING([--disable-libtool-lock],[avoid locking (might break parallel builds)])])
20666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumantest "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
20766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
20866b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_ARG_WITH([pic],
20966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    [AS_HELP_STRING([--with-pic],[try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
21066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    [pic_mode="$withval"],
21166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    [pic_mode=default])
21266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumantest -z "$pic_mode" && pic_mode=default
21366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
21466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Use C for the default configuration in the libtool script
21566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumantagname=
21666b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_LIBTOOL_LANG_C_CONFIG
21766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman_LT_AC_TAGCONFIG
21866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman])# AC_LIBTOOL_SETUP
21966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
22066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
22166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# _LT_AC_SYS_COMPILER
22266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# -------------------
22366b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_DEFUN([_LT_AC_SYS_COMPILER],
22466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman[AC_REQUIRE([AC_PROG_CC])dnl
22566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
22666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# If no C compiler was specified, use CC.
22766b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanLTCC=${LTCC-"$CC"}
22866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
22966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# If no C compiler flags were specified, use CFLAGS.
23066b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanLTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
23266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Allow CC to be a program name with arguments.
23366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumancompiler=$CC
23466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman])# _LT_AC_SYS_COMPILER
23566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
23666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
23766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# _LT_CC_BASENAME(CC)
23866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# -------------------
23966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
24066b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_DEFUN([_LT_CC_BASENAME],
24166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman[for cc_temp in $1""; do
24266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  case $cc_temp in
24366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
24466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
24566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    \-*) ;;
24666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    *) break;;
24766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  esac
24866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumandone
24966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumancc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
25066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman])
25166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
25266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
25366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# _LT_COMPILER_BOILERPLATE
25466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# ------------------------
25566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Check for compiler boilerplate output or warnings with
25666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# the simple compiler test code.
25766b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_DEFUN([_LT_COMPILER_BOILERPLATE],
25866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman[ac_outfile=conftest.$ac_objext
25966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanprintf "$lt_simple_compile_test_code" >conftest.$ac_ext
26066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumaneval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman_lt_compiler_boilerplate=`cat conftest.err`
26266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman$rm conftest*
26366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman])# _LT_COMPILER_BOILERPLATE
26466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
26566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
26666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# _LT_LINKER_BOILERPLATE
26766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# ----------------------
26866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Check for linker boilerplate output or warnings with
26966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# the simple link test code.
27066b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_DEFUN([_LT_LINKER_BOILERPLATE],
27166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman[ac_outfile=conftest.$ac_objext
27266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanprintf "$lt_simple_link_test_code" >conftest.$ac_ext
27366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumaneval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
27466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman_lt_linker_boilerplate=`cat conftest.err`
27566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman$rm conftest*
27666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman])# _LT_LINKER_BOILERPLATE
27766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
27866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
27966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# _LT_AC_SYS_LIBPATH_AIX
28066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# ----------------------
28166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Links a minimal program and checks the executable
28266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# for the system default hardcoded library path. In most cases,
28366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# this is /usr/lib:/lib, but when the MPI compilers are used
28466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# the location of the communication and MPI libs are included too.
28566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# If we don't find anything, use the default library path according
28666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# to the aix ld manual.
28766b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
28866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman[AC_LINK_IFELSE(AC_LANG_PROGRAM,[
28966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanaix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
29066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman}'`
29166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Check for a 64-bit object if we didn't find anything.
29266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanif 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; }
29366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman}'`; fi],[])
29466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanif test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
29566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman])# _LT_AC_SYS_LIBPATH_AIX
29666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
29766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
29866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# _LT_AC_SHELL_INIT(ARG)
29966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# ----------------------
30066b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_DEFUN([_LT_AC_SHELL_INIT],
30166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman[ifdef([AC_DIVERSION_NOTICE],
30266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	     [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
30366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	 [AC_DIVERT_PUSH(NOTICE)])
30466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman$1
30566b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_DIVERT_POP
30666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman])# _LT_AC_SHELL_INIT
30766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
30866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
30966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# _LT_AC_PROG_ECHO_BACKSLASH
31066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# --------------------------
31166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Add some code to the start of the generated configure script which
31266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# will find an echo command which doesn't interpret backslashes.
31366b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
31466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman[_LT_AC_SHELL_INIT([
31566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Check that we are running under the correct shell.
31666b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanSHELL=${CONFIG_SHELL-/bin/sh}
31766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
31866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumancase X$ECHO in
31966b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanX*--fallback-echo)
32066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  # Remove one level of quotation (which was required for Make).
32166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
32266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  ;;
32366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanesac
32466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
32566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanecho=${ECHO-echo}
32666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanif test "X[$]1" = X--no-reexec; then
32766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  # Discard the --no-reexec flag, and continue.
32866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  shift
32966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanelif test "X[$]1" = X--fallback-echo; then
33066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  # Avoid inline document here, it may be left over
33166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  :
33266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanelif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
33366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  # Yippee, $echo works!
33466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  :
33566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanelse
33666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  # Restart under the correct shell.
33766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
33866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanfi
33966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
34066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanif test "X[$]1" = X--fallback-echo; then
34166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  # used as fallback echo
34266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  shift
34366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  cat <<EOF
34466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman[$]*
34566b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanEOF
34666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  exit 0
34766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanfi
34866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
34966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# The HP-UX ksh and POSIX shell print the target directory to stdout
35066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# if CDPATH is set.
35166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
35266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
35366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanif test -z "$ECHO"; then
35466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanif test "X${echo_test_string+set}" != Xset; then
35566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# find a string as large as possible, as long as the shell can cope with it
35666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
35766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
35866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
35966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman       echo_test_string=`eval $cmd` &&
36066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
36166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    then
36266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      break
36366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    fi
36466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  done
36566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanfi
36666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
36766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanif test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
36866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
36966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman   test "X$echo_testing_string" = "X$echo_test_string"; then
37066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  :
37166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanelse
37266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  # The Solaris, AIX, and Digital Unix default echo programs unquote
37366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  # backslashes.  This makes it impossible to quote backslashes using
37466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  #   echo "$something" | sed 's/\\/\\\\/g'
37566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  #
37666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  # So, first we look for a working echo in the user's PATH.
37766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
37866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
37966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  for dir in $PATH /usr/ucb; do
38066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    IFS="$lt_save_ifs"
38166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
38266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
38366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
38466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman       test "X$echo_testing_string" = "X$echo_test_string"; then
38566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      echo="$dir/echo"
38666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      break
38766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    fi
38866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  done
38966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  IFS="$lt_save_ifs"
39066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
39166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  if test "X$echo" = Xecho; then
39266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    # We didn't find a better echo, so look for alternatives.
39366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
39466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
39566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman       test "X$echo_testing_string" = "X$echo_test_string"; then
39666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      # This shell has a builtin print -r that does the trick.
39766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      echo='print -r'
39866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
39966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	 test "X$CONFIG_SHELL" != X/bin/ksh; then
40066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      # If we have ksh, try running configure again with it.
40166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
40266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      export ORIGINAL_CONFIG_SHELL
40366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      CONFIG_SHELL=/bin/ksh
40466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      export CONFIG_SHELL
40566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
40666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    else
40766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      # Try using printf.
40866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      echo='printf %s\n'
40966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
41066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
41166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	 test "X$echo_testing_string" = "X$echo_test_string"; then
41266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# Cool, printf works
41366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	:
41466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
41566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	   test "X$echo_testing_string" = 'X\t' &&
41666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
41766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	   test "X$echo_testing_string" = "X$echo_test_string"; then
41866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
41966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	export CONFIG_SHELL
42066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	SHELL="$CONFIG_SHELL"
42166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	export SHELL
42266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	echo="$CONFIG_SHELL [$]0 --fallback-echo"
42366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
42466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	   test "X$echo_testing_string" = 'X\t' &&
42566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	   echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
42666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	   test "X$echo_testing_string" = "X$echo_test_string"; then
42766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	echo="$CONFIG_SHELL [$]0 --fallback-echo"
42866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      else
42966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# maybe with a smaller string...
43066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	prev=:
43166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
43266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
43366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
43466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  then
43566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    break
43666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  fi
43766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  prev="$cmd"
43866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	done
43966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
44066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	if test "$prev" != 'sed 50q "[$]0"'; then
44166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  echo_test_string=`eval $prev`
44266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  export echo_test_string
44366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
44466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	else
44566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  # Oops.  We lost completely, so just stick with echo.
44666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  echo=echo
44766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	fi
44866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      fi
44966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    fi
45066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  fi
45166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanfi
45266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanfi
45366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
45466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Copy echo and quote the copy suitably for passing to libtool from
45566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# the Makefile, instead of quoting the original, which is used later.
45666b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanECHO=$echo
45766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanif test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
45866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman   ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
45966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanfi
46066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
46166b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_SUBST(ECHO)
46266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman])])# _LT_AC_PROG_ECHO_BACKSLASH
46366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
46466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
46566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# _LT_AC_LOCK
46666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# -----------
46766b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_DEFUN([_LT_AC_LOCK],
46866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman[AC_ARG_ENABLE([libtool-lock],
46966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    [AS_HELP_STRING([--disable-libtool-lock],[avoid locking (might break parallel builds)])])
47066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumantest "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
47166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
47266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Some flags need to be propagated to the compiler or linker for good
47366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# libtool support.
47466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumancase $host in
47566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumania64-*-hpux*)
47666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  # Find out which ABI we are using.
47766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  echo 'int i;' > conftest.$ac_ext
47866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  if AC_TRY_EVAL(ac_compile); then
47966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    case `/usr/bin/file conftest.$ac_objext` in
48066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    *ELF-32*)
48166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      HPUX_IA64_MODE="32"
48266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      ;;
48366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    *ELF-64*)
48466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      HPUX_IA64_MODE="64"
48566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      ;;
48666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    esac
48766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  fi
48866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  rm -rf conftest*
48966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  ;;
49066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman*-*-irix6*)
49166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  # Find out which ABI we are using.
49266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  echo '[#]line __oline__ "configure"' > conftest.$ac_ext
49366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  if AC_TRY_EVAL(ac_compile); then
49466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman   if test "$lt_cv_prog_gnu_ld" = yes; then
49566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    case `/usr/bin/file conftest.$ac_objext` in
49666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    *32-bit*)
49766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      LD="${LD-ld} -melf32bsmip"
49866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      ;;
49966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    *N32*)
50066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      LD="${LD-ld} -melf32bmipn32"
50166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      ;;
50266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    *64-bit*)
50366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      LD="${LD-ld} -melf64bmip"
50466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      ;;
50566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    esac
50666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman   else
50766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    case `/usr/bin/file conftest.$ac_objext` in
50866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    *32-bit*)
50966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      LD="${LD-ld} -32"
51066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      ;;
51166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    *N32*)
51266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      LD="${LD-ld} -n32"
51366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      ;;
51466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    *64-bit*)
51566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      LD="${LD-ld} -64"
51666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      ;;
51766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    esac
51866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman   fi
51966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  fi
52066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  rm -rf conftest*
52166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  ;;
52266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
52366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanx86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
52466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  # Find out which ABI we are using.
52566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  echo 'int i;' > conftest.$ac_ext
52666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  if AC_TRY_EVAL(ac_compile); then
52766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    case `/usr/bin/file conftest.o` in
52866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    *32-bit*)
52966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      case $host in
53066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman        x86_64-*linux*)
53166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman          LD="${LD-ld} -m elf_i386"
53266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman          ;;
53366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman        ppc64-*linux*|powerpc64-*linux*)
53466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman          LD="${LD-ld} -m elf32ppclinux"
53566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman          ;;
53666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman        s390x-*linux*)
53766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman          LD="${LD-ld} -m elf_s390"
53866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman          ;;
53966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman        sparc64-*linux*)
54066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman          LD="${LD-ld} -m elf32_sparc"
54166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman          ;;
54266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      esac
54366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      ;;
54466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    *64-bit*)
54566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      case $host in
54666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman        x86_64-*linux*)
54766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman          LD="${LD-ld} -m elf_x86_64"
54866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman          ;;
54966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman        ppc*-*linux*|powerpc*-*linux*)
55066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman          LD="${LD-ld} -m elf64ppc"
55166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman          ;;
55266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman        s390*-*linux*)
55366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman          LD="${LD-ld} -m elf64_s390"
55466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman          ;;
55566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman        sparc*-*linux*)
55666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman          LD="${LD-ld} -m elf64_sparc"
55766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman          ;;
55866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      esac
55966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      ;;
56066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    esac
56166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  fi
56266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  rm -rf conftest*
56366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  ;;
56466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
56566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman*-*-sco3.2v5*)
56666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
56766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  SAVE_CFLAGS="$CFLAGS"
56866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  CFLAGS="$CFLAGS -belf"
56966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
57066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    [AC_LANG_PUSH(C)
57166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman     AC_LINK_IFELSE([AC_LANG_PROGRAM([[]], [[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
57266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman     AC_LANG_POP])
57366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
57466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
57566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    CFLAGS="$SAVE_CFLAGS"
57666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  fi
57766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  ;;
57866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumansparc*-*solaris*)
57966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  # Find out which ABI we are using.
58066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  echo 'int i;' > conftest.$ac_ext
58166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  if AC_TRY_EVAL(ac_compile); then
58266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    case `/usr/bin/file conftest.o` in
58366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    *64-bit*)
58466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      case $lt_cv_prog_gnu_ld in
58566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      yes*) LD="${LD-ld} -m elf64_sparc" ;;
58666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      *)    LD="${LD-ld} -64" ;;
58766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      esac
58866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      ;;
58966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    esac
59066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  fi
59166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  rm -rf conftest*
59266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  ;;
59366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
59466b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
59566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
59666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  AC_CHECK_TOOL(DLLTOOL, dlltool, false)
59766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  AC_CHECK_TOOL(AS, as, false)
59866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  AC_CHECK_TOOL(OBJDUMP, objdump, false)
59966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  ;;
60066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  ])
60166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanesac
60266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
60366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanneed_locks="$enable_libtool_lock"
60466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
60566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman])# _LT_AC_LOCK
60666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
60766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
60866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
60966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman#		[OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
61066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# ----------------------------------------------------------------
61166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Check whether the given compiler option works
61266b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
61366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman[AC_REQUIRE([LT_AC_PROG_SED])
61466b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_CACHE_CHECK([$1], [$2],
61566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  [$2=no
61666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
61766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
61866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman   lt_compiler_flag="$3"
61966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman   # Insert the option either (1) after the last *FLAGS variable, or
62066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman   # (2) before a word containing "conftest.", or (3) at the end.
62166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman   # Note that $ac_compile itself does not contain backslashes and begins
62266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman   # with a dollar sign (not a hyphen), so the echo should work correctly.
62366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman   # The option is referenced via a variable to avoid confusing sed.
62466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman   lt_compile=`echo "$ac_compile" | $SED \
62566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
62666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
62766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman   -e 's:$: $lt_compiler_flag:'`
62866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
62966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman   (eval "$lt_compile" 2>conftest.err)
63066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman   ac_status=$?
63166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman   cat conftest.err >&AS_MESSAGE_LOG_FD
63266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman   echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
63366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman   if (exit $ac_status) && test -s "$ac_outfile"; then
63466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman     # The compiler can only warn and ignore the option if not recognized
63566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman     # So say no if there are warnings other than the usual output.
63666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
63766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
63866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
63966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman       $2=yes
64066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman     fi
64166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman   fi
64266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman   $rm conftest*
64366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman])
64466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
64566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanif test x"[$]$2" = xyes; then
64666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    ifelse([$5], , :, [$5])
64766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanelse
64866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    ifelse([$6], , :, [$6])
64966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanfi
65066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman])# AC_LIBTOOL_COMPILER_OPTION
65166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
65266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
65366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
65466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman#                          [ACTION-SUCCESS], [ACTION-FAILURE])
65566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# ------------------------------------------------------------
65666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Check whether the given compiler option works
65766b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
65866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman[AC_CACHE_CHECK([$1], [$2],
65966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  [$2=no
66066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman   save_LDFLAGS="$LDFLAGS"
66166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman   LDFLAGS="$LDFLAGS $3"
66266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman   printf "$lt_simple_link_test_code" > conftest.$ac_ext
66366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
66466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman     # The linker can only warn and ignore the option if not recognized
66566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman     # So say no if there are warnings
66666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman     if test -s conftest.err; then
66766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman       # Append any errors to the config.log.
66866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman       cat conftest.err 1>&AS_MESSAGE_LOG_FD
66966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
67066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
67166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman       if diff conftest.exp conftest.er2 >/dev/null; then
67266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman         $2=yes
67366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman       fi
67466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman     else
67566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman       $2=yes
67666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman     fi
67766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman   fi
67866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman   $rm conftest*
67966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman   LDFLAGS="$save_LDFLAGS"
68066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman])
68166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
68266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanif test x"[$]$2" = xyes; then
68366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    ifelse([$4], , :, [$4])
68466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanelse
68566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    ifelse([$5], , :, [$5])
68666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanfi
68766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman])# AC_LIBTOOL_LINKER_OPTION
68866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
68966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
69066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# AC_LIBTOOL_SYS_MAX_CMD_LEN
69166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# --------------------------
69266b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
69366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman[# find the maximum length of command line arguments
69466b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_MSG_CHECKING([the maximum length of command line arguments])
69566b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
69666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  i=0
69766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  teststring="ABCD"
69866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
69966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  case $build_os in
70066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  msdosdjgpp*)
70166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    # On DJGPP, this test can blow up pretty badly due to problems in libc
70266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    # (any single argument exceeding 2000 bytes causes a buffer overrun
70366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    # during glob expansion).  Even if it were fixed, the result of this
70466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    # check would be larger than it should be.
70566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
70666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    ;;
70766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
70866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  gnu*)
70966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    # Under GNU Hurd, this test is not required because there is
71066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    # no limit to the length of command line arguments.
71166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    # Libtool will interpret -1 as no limit whatsoever
71266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    lt_cv_sys_max_cmd_len=-1;
71366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    ;;
71466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
71566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  cygwin* | mingw*)
71666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    # On Win9x/ME, this test blows up -- it succeeds, but takes
71766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    # about 5 minutes as the teststring grows exponentially.
71866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    # Worse, since 9x/ME are not pre-emptively multitasking,
71966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    # you end up with a "frozen" computer, even though with patience
72066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    # the test eventually succeeds (with a max line length of 256k).
72166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    # Instead, let's just punt: use the minimum linelength reported by
72266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    # all of the supported platforms: 8192 (on NT/2K/XP).
72366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    lt_cv_sys_max_cmd_len=8192;
72466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    ;;
72566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
72666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  amigaos*)
72766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    # On AmigaOS with pdksh, this test takes hours, literally.
72866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    # So we just punt and use a minimum line length of 8192.
72966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    lt_cv_sys_max_cmd_len=8192;
73066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    ;;
73166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
73266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
73366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    # This has been around since 386BSD, at least.  Likely further.
73466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    if test -x /sbin/sysctl; then
73566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
73666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    elif test -x /usr/sbin/sysctl; then
73766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
73866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    else
73966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
74066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    fi
74166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    # And add a safety zone
74266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
74366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
74466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    ;;
74566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
74666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  interix*)
74766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    # We know the value 262144 and hardcode it with a safety zone (like BSD)
74866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    lt_cv_sys_max_cmd_len=196608
74966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    ;;
75066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
75166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  osf*)
75266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
75366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
75466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    # nice to cause kernel panics so lets avoid the loop below.
75566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    # First set a reasonable default.
75666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    lt_cv_sys_max_cmd_len=16384
75766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    #
75866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    if test -x /sbin/sysconfig; then
75966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
76066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman        *1*) lt_cv_sys_max_cmd_len=-1 ;;
76166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      esac
76266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    fi
76366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    ;;
76466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  sco3.2v5*)
76566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    lt_cv_sys_max_cmd_len=102400
76666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    ;;
76766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  sysv5* | sco5v6* | sysv4.2uw2*)
76866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
76966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    if test -n "$kargmax"; then
77066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ 	]]//'`
77166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    else
77266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      lt_cv_sys_max_cmd_len=32768
77366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    fi
77466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    ;;
77566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  *)
77666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    # If test is not a shell built-in, we'll probably end up computing a
77766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    # maximum length that is only half of the actual maximum length, but
77866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    # we can't tell.
77966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
78066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
78166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	       = "XX$teststring") >/dev/null 2>&1 &&
78266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    new_result=`expr "X$teststring" : ".*" 2>&1` &&
78366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    lt_cv_sys_max_cmd_len=$new_result &&
78466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    test $i != 17 # 1/2 MB should be enough
78566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    do
78666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      i=`expr $i + 1`
78766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      teststring=$teststring$teststring
78866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    done
78966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    teststring=
79066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    # Add a significant safety factor because C++ compilers can tack on massive
79166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    # amounts of additional arguments before passing them to the linker.
79266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    # It appears as though 1/2 is a usable value.
79366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
79466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    ;;
79566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  esac
79666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman])
79766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanif test -n $lt_cv_sys_max_cmd_len ; then
79866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
79966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanelse
80066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  AC_MSG_RESULT(none)
80166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanfi
80266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman])# AC_LIBTOOL_SYS_MAX_CMD_LEN
80366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
80466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
80566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# _LT_AC_CHECK_DLFCN
80666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# ------------------
80766b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_DEFUN([_LT_AC_CHECK_DLFCN],
80866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman[AC_CHECK_HEADERS(dlfcn.h)dnl
80966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman])# _LT_AC_CHECK_DLFCN
81066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
81166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
81266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
81366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman#                           ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
81466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# ---------------------------------------------------------------------
81566b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
81666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
81766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanif test "$cross_compiling" = yes; then :
81866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  [$4]
81966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanelse
82066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
82166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  lt_status=$lt_dlunknown
82266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  cat > conftest.$ac_ext <<EOF
82366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman[#line __oline__ "configure"
82466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman#include "confdefs.h"
82566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
82666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman#if HAVE_DLFCN_H
82766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman#include <dlfcn.h>
82866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman#endif
82966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
83066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman#include <stdio.h>
83166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
83266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman#ifdef RTLD_GLOBAL
83366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman#  define LT_DLGLOBAL		RTLD_GLOBAL
83466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman#else
83566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman#  ifdef DL_GLOBAL
83666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman#    define LT_DLGLOBAL		DL_GLOBAL
83766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman#  else
83866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman#    define LT_DLGLOBAL		0
83966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman#  endif
84066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman#endif
84166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
84266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
84366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman   find out it does not work in some platform. */
84466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman#ifndef LT_DLLAZY_OR_NOW
84566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman#  ifdef RTLD_LAZY
84666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
84766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman#  else
84866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman#    ifdef DL_LAZY
84966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman#      define LT_DLLAZY_OR_NOW		DL_LAZY
85066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman#    else
85166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman#      ifdef RTLD_NOW
85266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman#        define LT_DLLAZY_OR_NOW	RTLD_NOW
85366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman#      else
85466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman#        ifdef DL_NOW
85566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman#          define LT_DLLAZY_OR_NOW	DL_NOW
85666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman#        else
85766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman#          define LT_DLLAZY_OR_NOW	0
85866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman#        endif
85966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman#      endif
86066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman#    endif
86166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman#  endif
86266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman#endif
86366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
86466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman#ifdef __cplusplus
86566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanextern "C" void exit (int);
86666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman#endif
86766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
86866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanvoid fnord() { int i=42;}
86966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanint main ()
87066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman{
87166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
87266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  int status = $lt_dlunknown;
87366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
87466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  if (self)
87566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    {
87666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
87766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
87866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      /* dlclose (self); */
87966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    }
88066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  else
88166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    puts (dlerror ());
88266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
88366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    exit (status);
88466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman}]
88566b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanEOF
88666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
88766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
88866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    lt_status=$?
88966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    case x$lt_status in
89066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      x$lt_dlno_uscore) $1 ;;
89166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      x$lt_dlneed_uscore) $2 ;;
89266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      x$lt_dlunknown|x*) $3 ;;
89366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    esac
89466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  else :
89566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    # compilation failed
89666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    $3
89766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  fi
89866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanfi
89966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanrm -fr conftest*
90066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman])# _LT_AC_TRY_DLOPEN_SELF
90166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
90266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
90366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# AC_LIBTOOL_DLOPEN_SELF
90466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# ----------------------
90566b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
90666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
90766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanif test "x$enable_dlopen" != xyes; then
90866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  enable_dlopen=unknown
90966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  enable_dlopen_self=unknown
91066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  enable_dlopen_self_static=unknown
91166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanelse
91266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  lt_cv_dlopen=no
91366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  lt_cv_dlopen_libs=
91466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
91566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  case $host_os in
91666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  beos*)
91766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    lt_cv_dlopen="load_add_on"
91866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    lt_cv_dlopen_libs=
91966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    lt_cv_dlopen_self=yes
92066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    ;;
92166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
92266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  mingw* | pw32*)
92366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    lt_cv_dlopen="LoadLibrary"
92466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    lt_cv_dlopen_libs=
92566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman   ;;
92666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
92766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  cygwin*)
92866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    lt_cv_dlopen="dlopen"
92966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    lt_cv_dlopen_libs=
93066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman   ;;
93166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
93266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  darwin*)
93366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  # if libdl is installed we need to link against it
93466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    AC_CHECK_LIB([dl], [dlopen],
93566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
93666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    lt_cv_dlopen="dyld"
93766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    lt_cv_dlopen_libs=
93866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    lt_cv_dlopen_self=yes
93966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    ])
94066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman   ;;
94166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
94266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  *)
94366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    AC_CHECK_FUNC([shl_load],
94466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  [lt_cv_dlopen="shl_load"],
94566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      [AC_CHECK_LIB([dld], [shl_load],
94666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
94766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	[AC_CHECK_FUNC([dlopen],
94866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	      [lt_cv_dlopen="dlopen"],
94966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  [AC_CHECK_LIB([dl], [dlopen],
95066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
95166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    [AC_CHECK_LIB([svld], [dlopen],
95266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		  [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
95366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	      [AC_CHECK_LIB([dld], [dld_link],
95466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		    [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
95566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	      ])
95666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    ])
95766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  ])
95866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	])
95966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      ])
96066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    ;;
96166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  esac
96266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
96366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  if test "x$lt_cv_dlopen" != xno; then
96466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    enable_dlopen=yes
96566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  else
96666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    enable_dlopen=no
96766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  fi
96866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
96966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  case $lt_cv_dlopen in
97066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  dlopen)
97166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    save_CPPFLAGS="$CPPFLAGS"
97266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
97366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
97466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    save_LDFLAGS="$LDFLAGS"
97566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
97666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
97766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    save_LIBS="$LIBS"
97866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    LIBS="$lt_cv_dlopen_libs $LIBS"
97966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
98066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    AC_CACHE_CHECK([whether a program can dlopen itself],
98166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  lt_cv_dlopen_self, [dnl
98266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  _LT_AC_TRY_DLOPEN_SELF(
98366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
98466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
98566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    ])
98666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
98766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    if test "x$lt_cv_dlopen_self" = xyes; then
98866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
98966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
99066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    	  lt_cv_dlopen_self_static, [dnl
99166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  _LT_AC_TRY_DLOPEN_SELF(
99266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
99366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    lt_cv_dlopen_self_static=no,  lt_cv_dlopen_self_static=cross)
99466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      ])
99566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    fi
99666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
99766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    CPPFLAGS="$save_CPPFLAGS"
99866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    LDFLAGS="$save_LDFLAGS"
99966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    LIBS="$save_LIBS"
100066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    ;;
100166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  esac
100266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
100366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  case $lt_cv_dlopen_self in
100466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
100566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  *) enable_dlopen_self=unknown ;;
100666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  esac
100766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
100866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  case $lt_cv_dlopen_self_static in
100966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
101066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  *) enable_dlopen_self_static=unknown ;;
101166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  esac
101266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanfi
101366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman])# AC_LIBTOOL_DLOPEN_SELF
101466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
101566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
101666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
101766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# ---------------------------------
101866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Check to see if options -c and -o are simultaneously supported by compiler
101966b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
102066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
102166b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
102266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
102366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
102466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman   $rm -r conftest 2>/dev/null
102566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman   mkdir conftest
102666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman   cd conftest
102766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman   mkdir out
102866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
102966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
103066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman   lt_compiler_flag="-o out/conftest2.$ac_objext"
103166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman   # Insert the option either (1) after the last *FLAGS variable, or
103266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman   # (2) before a word containing "conftest.", or (3) at the end.
103366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman   # Note that $ac_compile itself does not contain backslashes and begins
103466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman   # with a dollar sign (not a hyphen), so the echo should work correctly.
103566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman   lt_compile=`echo "$ac_compile" | $SED \
103666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
103766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
103866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman   -e 's:$: $lt_compiler_flag:'`
103966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
104066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman   (eval "$lt_compile" 2>out/conftest.err)
104166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman   ac_status=$?
104266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman   cat out/conftest.err >&AS_MESSAGE_LOG_FD
104366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman   echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
104466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman   if (exit $ac_status) && test -s out/conftest2.$ac_objext
104566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman   then
104666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman     # The compiler can only warn and ignore the option if not recognized
104766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman     # So say no if there are warnings
104866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
104966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
105066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
105166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman       _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
105266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman     fi
105366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman   fi
105466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman   chmod u+w . 2>&AS_MESSAGE_LOG_FD
105566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman   $rm conftest*
105666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman   # SGI C++ compiler will create directory out/ii_files/ for
105766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman   # template instantiation
105866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
105966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman   $rm out/* && rmdir out
106066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman   cd ..
106166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman   rmdir conftest
106266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman   $rm conftest*
106366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman])
106466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman])# AC_LIBTOOL_PROG_CC_C_O
106566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
106666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
106766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
106866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# -----------------------------------------
106966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Check to see if we can do hard links to lock some files if needed
107066b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
107166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman[AC_REQUIRE([_LT_AC_LOCK])dnl
107266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
107366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanhard_links="nottested"
107466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanif test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
107566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  # do not overwrite the value of need_locks provided by the user
107666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  AC_MSG_CHECKING([if we can lock with hard links])
107766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  hard_links=yes
107866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  $rm conftest*
107966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  ln conftest.a conftest.b 2>/dev/null && hard_links=no
108066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  touch conftest.a
108166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  ln conftest.a conftest.b 2>&5 || hard_links=no
108266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  ln conftest.a conftest.b 2>/dev/null && hard_links=no
108366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  AC_MSG_RESULT([$hard_links])
108466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  if test "$hard_links" = no; then
108566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
108666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    need_locks=warn
108766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  fi
108866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanelse
108966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  need_locks=no
109066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanfi
109166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
109266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
109366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
109466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# AC_LIBTOOL_OBJDIR
109566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# -----------------
109666b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_DEFUN([AC_LIBTOOL_OBJDIR],
109766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
109866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman[rm -f .libs 2>/dev/null
109966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanmkdir .libs 2>/dev/null
110066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanif test -d .libs; then
110166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  lt_cv_objdir=.libs
110266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanelse
110366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  # MS-DOS does not allow filenames that begin with a dot.
110466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  lt_cv_objdir=_libs
110566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanfi
110666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanrmdir .libs 2>/dev/null])
110766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanobjdir=$lt_cv_objdir
110866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman])# AC_LIBTOOL_OBJDIR
110966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
111066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
111166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
111266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# ----------------------------------------------
111366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Check hardcoding attributes.
111466b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
111566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman[AC_MSG_CHECKING([how to hardcode library paths into programs])
111666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman_LT_AC_TAGVAR(hardcode_action, $1)=
111766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanif test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
111866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman   test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
111966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman   test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
112066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
112166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  # We can hardcode non-existent directories.
112266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
112366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman     # If the only mechanism to avoid hardcoding is shlibpath_var, we
112466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman     # have to relink, otherwise we might link with an installed library
112566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman     # when we should be linking with a yet-to-be-installed one
112666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
112766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman     test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
112866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    # Linking always hardcodes the temporary library directory.
112966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    _LT_AC_TAGVAR(hardcode_action, $1)=relink
113066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  else
113166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    # We can link without hardcoding, and we can hardcode nonexisting dirs.
113266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    _LT_AC_TAGVAR(hardcode_action, $1)=immediate
113366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  fi
113466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanelse
113566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  # We cannot hardcode anything, or else we can only hardcode existing
113666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  # directories.
113766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
113866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanfi
113966b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
114066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
114166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanif test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
114266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  # Fast installation is not supported
114366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  enable_fast_install=no
114466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanelif test "$shlibpath_overrides_runpath" = yes ||
114566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman     test "$enable_shared" = no; then
114666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  # Fast installation is not necessary
114766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  enable_fast_install=needless
114866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanfi
114966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
115066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
115166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
115266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# AC_LIBTOOL_SYS_LIB_STRIP
115366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# ------------------------
115466b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
115566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman[striplib=
115666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanold_striplib=
115766b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_MSG_CHECKING([whether stripping libraries is possible])
115866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanif test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
115966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
116066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
116166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  AC_MSG_RESULT([yes])
116266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanelse
116366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# FIXME - insert some real tests, host_os isn't really good enough
116466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  case $host_os in
116566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman   darwin*)
116666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman       if test -n "$STRIP" ; then
116766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman         striplib="$STRIP -x"
116866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman         AC_MSG_RESULT([yes])
116966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman       else
117066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  AC_MSG_RESULT([no])
117166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanfi
117266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman       ;;
117366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman   *)
117466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  AC_MSG_RESULT([no])
117566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    ;;
117666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  esac
117766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanfi
117866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman])# AC_LIBTOOL_SYS_LIB_STRIP
117966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
118066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
118166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# AC_LIBTOOL_SYS_DYNAMIC_LINKER
118266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# -----------------------------
118366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# PORTME Fill in your ld.so characteristics
118466b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
118566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman[AC_MSG_CHECKING([dynamic linker characteristics])
118666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanlibrary_names_spec=
118766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanlibname_spec='lib$name'
118866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumansoname_spec=
118966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanshrext_cmds=".so"
119066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanpostinstall_cmds=
119166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanpostuninstall_cmds=
119266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanfinish_cmds=
119366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanfinish_eval=
119466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanshlibpath_var=
119566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanshlibpath_overrides_runpath=unknown
119666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanversion_type=none
119766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumandynamic_linker="$host_os ld.so"
119866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumansys_lib_dlsearch_path_spec="/lib /usr/lib"
119966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanif test "$GCC" = yes; then
120066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
120166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
120266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    # if the path contains ";" then we assume it to be the separator
120366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    # otherwise default to the standard path separator (i.e. ":") - it is
120466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    # assumed that no part of a normal pathname contains ";" but that should
120566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    # okay in the real world where ";" in dirpaths is itself problematic.
120666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
120766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  else
120866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
120966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  fi
121066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanelse
121166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
121266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanfi
121366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanneed_lib_prefix=unknown
121466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanhardcode_into_libs=no
121566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
121666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# when you set need_version to no, make sure it does not cause -set_version
121766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# flags to be left without arguments
121866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanneed_version=unknown
121966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
122066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumancase $host_os in
122166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanaix3*)
122266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  version_type=linux
122366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
122466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  shlibpath_var=LIBPATH
122566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
122666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  # AIX 3 has no versioning support, so we append a major version to the name.
122766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  soname_spec='${libname}${release}${shared_ext}$major'
122866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  ;;
122966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
123066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanaix4* | aix5*)
123166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  version_type=linux
123266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  need_lib_prefix=no
123366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  need_version=no
123466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  hardcode_into_libs=yes
123566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  if test "$host_cpu" = ia64; then
123666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    # AIX 5 supports IA64
123766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
123866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    shlibpath_var=LD_LIBRARY_PATH
123966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  else
124066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    # With GCC up to 2.95.x, collect2 would create an import file
124166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    # for dependence libraries.  The import file would start with
124266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    # the line `#! .'.  This would cause the generated library to
124366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    # depend on `.', always an invalid library.  This was fixed in
124466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    # development snapshots of GCC prior to 3.0.
124566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    case $host_os in
124666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      aix4 | aix4.[[01]] | aix4.[[01]].*)
124766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
124866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	   echo ' yes '
124966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
125066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	:
125166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      else
125266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	can_build_shared=no
125366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      fi
125466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      ;;
125566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    esac
125666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
125766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    # soname into executable. Probably we can add versioning support to
125866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    # collect2, so additional links can be useful in future.
125966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    if test "$aix_use_runtimelinking" = yes; then
126066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
126166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      # instead of lib<name>.a to let people know that these are not
126266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      # typical AIX shared libraries.
126366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
126466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    else
126566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      # We preserve .a as extension for shared libraries through AIX4.2
126666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      # and later when we are not doing run time linking.
126766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      library_names_spec='${libname}${release}.a $libname.a'
126866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      soname_spec='${libname}${release}${shared_ext}$major'
126966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    fi
127066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    shlibpath_var=LIBPATH
127166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  fi
127266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  ;;
127366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
127466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanamigaos*)
127566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  library_names_spec='$libname.ixlibrary $libname.a'
127666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  # Create ${libname}_ixlibrary.a entries in /sys/libs.
127766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  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'
127866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  ;;
127966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
128066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanbeos*)
128166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  library_names_spec='${libname}${shared_ext}'
128266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  dynamic_linker="$host_os ld.so"
128366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  shlibpath_var=LIBRARY_PATH
128466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  ;;
128566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
128666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanbsdi[[45]]*)
128766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  version_type=linux
128866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  need_version=no
128966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
129066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  soname_spec='${libname}${release}${shared_ext}$major'
129166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
129266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  shlibpath_var=LD_LIBRARY_PATH
129366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
129466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
129566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  # the default ld.so.conf also contains /usr/contrib/lib and
129666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
129766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  # libtool to hard-code these into programs
129866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  ;;
129966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
130066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumancygwin* | mingw* | pw32*)
130166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  version_type=windows
130266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  shrext_cmds=".dll"
130366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  need_version=no
130466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  need_lib_prefix=no
130566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
130666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  case $GCC,$host_os in
130766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  yes,cygwin* | yes,mingw* | yes,pw32*)
130866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    library_names_spec='$libname.dll.a'
130966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    # DLL is installed to $(libdir)/../bin by postinstall_cmds
131066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    postinstall_cmds='base_file=`basename \${file}`~
131166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
131266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      dldir=$destdir/`dirname \$dlpath`~
131366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      test -d \$dldir || mkdir -p \$dldir~
131466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      $install_prog $dir/$dlname \$dldir/$dlname~
131566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      chmod a+x \$dldir/$dlname'
131666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
131766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      dlpath=$dir/\$dldll~
131866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman       $rm \$dlpath'
131966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    shlibpath_overrides_runpath=yes
132066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
132166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    case $host_os in
132266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    cygwin*)
132366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
132466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
132566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
132666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      ;;
132766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    mingw*)
132866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      # MinGW DLLs use traditional 'lib' prefix
132966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
133066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
133166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
133266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman        # It is most probably a Windows format PATH printed by
133366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman        # mingw gcc, but we are running on Cygwin. Gcc prints its search
133466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman        # path with ; separators, and with drive letters. We can handle the
133566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman        # drive letters (cygwin fileutils understands them), so leave them,
133666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman        # especially as we might pass files found there to a mingw objdump,
133766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman        # which wouldn't understand a cygwinified path. Ahh.
133866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
133966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      else
134066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
134166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      fi
134266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      ;;
134366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    pw32*)
134466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      # pw32 DLLs use 'pw' prefix rather than 'lib'
134566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
134666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      ;;
134766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    esac
134866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    ;;
134966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
135066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  *)
135166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
135266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    ;;
135366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  esac
135466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  dynamic_linker='Win32 ld.exe'
135566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  # FIXME: first we should search . and the directory the executable is in
135666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  shlibpath_var=PATH
135766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  ;;
135866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
135966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumandarwin* | rhapsody*)
136066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  dynamic_linker="$host_os dyld"
136166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  version_type=darwin
136266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  need_lib_prefix=no
136366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  need_version=no
136466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
136566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  soname_spec='${libname}${release}${major}$shared_ext'
136666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  shlibpath_overrides_runpath=yes
136766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  shlibpath_var=DYLD_LIBRARY_PATH
136866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  shrext_cmds='.dylib'
136966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
137066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  if test "$GCC" = yes; then
137166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    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"`
137266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  else
137366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
137466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  fi
137566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
137666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  ;;
137766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
137866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumandgux*)
137966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  version_type=linux
138066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  need_lib_prefix=no
138166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  need_version=no
138266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
138366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  soname_spec='${libname}${release}${shared_ext}$major'
138466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  shlibpath_var=LD_LIBRARY_PATH
138566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  ;;
138666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
138766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanfreebsd1*)
138866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  dynamic_linker=no
138966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  ;;
139066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
139166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumankfreebsd*-gnu)
139266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  version_type=linux
139366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  need_lib_prefix=no
139466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  need_version=no
139566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
139666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  soname_spec='${libname}${release}${shared_ext}$major'
139766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  shlibpath_var=LD_LIBRARY_PATH
139866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  shlibpath_overrides_runpath=no
139966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  hardcode_into_libs=yes
140066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  dynamic_linker='GNU ld.so'
140166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  ;;
140266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
140366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanfreebsd* | dragonfly*)
140466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  # DragonFly does not have aout.  When/if they implement a new
140566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  # versioning mechanism, adjust this.
140666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  if test -x /usr/bin/objformat; then
140766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    objformat=`/usr/bin/objformat`
140866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  else
140966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    case $host_os in
141066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    freebsd[[123]]*) objformat=aout ;;
141166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    *) objformat=elf ;;
141266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    esac
141366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  fi
141466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  version_type=freebsd-$objformat
141566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  case $version_type in
141666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    freebsd-elf*)
141766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
141866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      need_version=no
141966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      need_lib_prefix=no
142066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      ;;
142166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    freebsd-*)
142266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
142366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      need_version=yes
142466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      ;;
142566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  esac
142666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  shlibpath_var=LD_LIBRARY_PATH
142766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  case $host_os in
142866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  freebsd2*)
142966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    shlibpath_overrides_runpath=yes
143066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    ;;
143166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  freebsd3.[[01]]* | freebsdelf3.[[01]]*)
143266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    shlibpath_overrides_runpath=yes
143366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    hardcode_into_libs=yes
143466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    ;;
143566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
143666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
143766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    shlibpath_overrides_runpath=no
143866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    hardcode_into_libs=yes
143966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    ;;
144066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  freebsd*) # from 4.6 on
144166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    shlibpath_overrides_runpath=yes
144266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    hardcode_into_libs=yes
144366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    ;;
144466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  esac
144566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  ;;
144666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
144766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumangnu*)
144866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  version_type=linux
144966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  need_lib_prefix=no
145066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  need_version=no
145166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
145266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  soname_spec='${libname}${release}${shared_ext}$major'
145366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  shlibpath_var=LD_LIBRARY_PATH
145466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  hardcode_into_libs=yes
145566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  ;;
145666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
145766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanhpux9* | hpux10* | hpux11*)
145866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  # Give a soname corresponding to the major version so that dld.sl refuses to
145966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  # link against other versions.
146066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  version_type=sunos
146166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  need_lib_prefix=no
146266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  need_version=no
146366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  case $host_cpu in
146466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  ia64*)
146566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    shrext_cmds='.so'
146666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    hardcode_into_libs=yes
146766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    dynamic_linker="$host_os dld.so"
146866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    shlibpath_var=LD_LIBRARY_PATH
146966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
147066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
147166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    soname_spec='${libname}${release}${shared_ext}$major'
147266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    if test "X$HPUX_IA64_MODE" = X32; then
147366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
147466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    else
147566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
147666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    fi
147766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
147866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    ;;
147966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman   hppa*64*)
148066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman     shrext_cmds='.sl'
148166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman     hardcode_into_libs=yes
148266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman     dynamic_linker="$host_os dld.sl"
148366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
148466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
148566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
148666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman     soname_spec='${libname}${release}${shared_ext}$major'
148766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
148866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
148966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman     ;;
149066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman   *)
149166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    shrext_cmds='.sl'
149266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    dynamic_linker="$host_os dld.sl"
149366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    shlibpath_var=SHLIB_PATH
149466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
149566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
149666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    soname_spec='${libname}${release}${shared_ext}$major'
149766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    ;;
149866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  esac
149966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  # HP-UX runs *really* slowly unless shared libraries are mode 555.
150066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  postinstall_cmds='chmod 555 $lib'
150166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  ;;
150266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
150366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumaninterix3*)
150466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  version_type=linux
150566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  need_lib_prefix=no
150666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  need_version=no
150766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
150866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  soname_spec='${libname}${release}${shared_ext}$major'
150966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
151066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  shlibpath_var=LD_LIBRARY_PATH
151166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  shlibpath_overrides_runpath=no
151266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  hardcode_into_libs=yes
151366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  ;;
151466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
151566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanirix5* | irix6* | nonstopux*)
151666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  case $host_os in
151766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    nonstopux*) version_type=nonstopux ;;
151866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    *)
151966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	if test "$lt_cv_prog_gnu_ld" = yes; then
152066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		version_type=linux
152166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	else
152266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		version_type=irix
152366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	fi ;;
152466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  esac
152566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  need_lib_prefix=no
152666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  need_version=no
152766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  soname_spec='${libname}${release}${shared_ext}$major'
152866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
152966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  case $host_os in
153066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  irix5* | nonstopux*)
153166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    libsuff= shlibsuff=
153266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    ;;
153366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  *)
153466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    case $LD in # libtool.m4 will add one of these switches to LD
153566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
153666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      libsuff= shlibsuff= libmagic=32-bit;;
153766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
153866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      libsuff=32 shlibsuff=N32 libmagic=N32;;
153966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
154066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      libsuff=64 shlibsuff=64 libmagic=64-bit;;
154166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    *) libsuff= shlibsuff= libmagic=never-match;;
154266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    esac
154366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    ;;
154466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  esac
154566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
154666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  shlibpath_overrides_runpath=no
154766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
154866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
154966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  hardcode_into_libs=yes
155066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  ;;
155166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
155266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# No shared lib support for Linux oldld, aout, or coff.
155366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanlinux*oldld* | linux*aout* | linux*coff*)
155466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  dynamic_linker=no
155566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  ;;
155666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
155766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# This must be Linux ELF.
155866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanlinux*)
155966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  version_type=linux
156066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  need_lib_prefix=no
156166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  need_version=no
156266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
156366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  soname_spec='${libname}${release}${shared_ext}$major'
156466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
156566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  shlibpath_var=LD_LIBRARY_PATH
156666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  shlibpath_overrides_runpath=no
156766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  # This implies no fast_install, which is unacceptable.
156866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  # Some rework will be needed to allow for fast_install
156966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  # before this can be enabled.
157066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  hardcode_into_libs=yes
157166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
157266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  # Append ld.so.conf contents to the search path
157366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  if test -f /etc/ld.so.conf; then
157466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    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' ' '`
157566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
157666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  fi
157766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
157866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  # We used to test for /lib/ld.so.1 and disable shared libraries on
157966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  # powerpc, because MkLinux only supported shared libraries with the
158066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  # GNU dynamic linker.  Since this was broken with cross compilers,
158166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  # most powerpc-linux boxes support dynamic linking these days and
158266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  # people can always --disable-shared, the test was removed, and we
158366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  # assume the GNU/Linux dynamic linker is in use.
158466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  dynamic_linker='GNU/Linux ld.so'
158566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  ;;
158666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
158766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanknetbsd*-gnu)
158866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  version_type=linux
158966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  need_lib_prefix=no
159066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  need_version=no
159166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
159266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  soname_spec='${libname}${release}${shared_ext}$major'
159366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  shlibpath_var=LD_LIBRARY_PATH
159466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  shlibpath_overrides_runpath=no
159566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  hardcode_into_libs=yes
159666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  dynamic_linker='GNU ld.so'
159766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  ;;
159866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
159966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumannetbsd*)
160066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  version_type=sunos
160166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  need_lib_prefix=no
160266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  need_version=no
160366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
160466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
160566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
160666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    dynamic_linker='NetBSD (a.out) ld.so'
160766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  else
160866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
160966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    soname_spec='${libname}${release}${shared_ext}$major'
161066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    dynamic_linker='NetBSD ld.elf_so'
161166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  fi
161266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  shlibpath_var=LD_LIBRARY_PATH
161366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  shlibpath_overrides_runpath=yes
161466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  hardcode_into_libs=yes
161566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  ;;
161666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
161766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumannewsos6)
161866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  version_type=linux
161966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
162066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  shlibpath_var=LD_LIBRARY_PATH
162166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  shlibpath_overrides_runpath=yes
162266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  ;;
162366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
162466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumannto-qnx*)
162566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  version_type=linux
162666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  need_lib_prefix=no
162766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  need_version=no
162866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
162966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  soname_spec='${libname}${release}${shared_ext}$major'
163066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  shlibpath_var=LD_LIBRARY_PATH
163166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  shlibpath_overrides_runpath=yes
163266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  ;;
163366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
163466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanopenbsd*)
163566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  version_type=sunos
163666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  sys_lib_dlsearch_path_spec="/usr/lib"
163766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  need_lib_prefix=no
163866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
163966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  case $host_os in
164066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
164166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    *)                         need_version=no  ;;
164266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  esac
164366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
164466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
164566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  shlibpath_var=LD_LIBRARY_PATH
164666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
164766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    case $host_os in
164866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      openbsd2.[[89]] | openbsd2.[[89]].*)
164966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	shlibpath_overrides_runpath=no
165066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	;;
165166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      *)
165266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	shlibpath_overrides_runpath=yes
165366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	;;
165466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      esac
165566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  else
165666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    shlibpath_overrides_runpath=yes
165766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  fi
165866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  ;;
165966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
166066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanos2*)
166166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  libname_spec='$name'
166266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  shrext_cmds=".dll"
166366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  need_lib_prefix=no
166466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  library_names_spec='$libname${shared_ext} $libname.a'
166566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  dynamic_linker='OS/2 ld.exe'
166666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  shlibpath_var=LIBPATH
166766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  ;;
166866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
166966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanosf3* | osf4* | osf5*)
167066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  version_type=osf
167166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  need_lib_prefix=no
167266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  need_version=no
167366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  soname_spec='${libname}${release}${shared_ext}$major'
167466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
167566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  shlibpath_var=LD_LIBRARY_PATH
167666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
167766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
167866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  ;;
167966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
168066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumansolaris*)
168166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  version_type=linux
168266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  need_lib_prefix=no
168366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  need_version=no
168466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
168566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  soname_spec='${libname}${release}${shared_ext}$major'
168666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  shlibpath_var=LD_LIBRARY_PATH
168766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  shlibpath_overrides_runpath=yes
168866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  hardcode_into_libs=yes
168966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  # ldd complains unless libraries are executable
169066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  postinstall_cmds='chmod +x $lib'
169166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  ;;
169266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
169366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumansunos4*)
169466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  version_type=sunos
169566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
169666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
169766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  shlibpath_var=LD_LIBRARY_PATH
169866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  shlibpath_overrides_runpath=yes
169966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  if test "$with_gnu_ld" = yes; then
170066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    need_lib_prefix=no
170166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  fi
170266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  need_version=yes
170366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  ;;
170466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
170566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumansysv4 | sysv4.3*)
170666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  version_type=linux
170766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
170866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  soname_spec='${libname}${release}${shared_ext}$major'
170966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  shlibpath_var=LD_LIBRARY_PATH
171066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  case $host_vendor in
171166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    sni)
171266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      shlibpath_overrides_runpath=no
171366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      need_lib_prefix=no
171466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      export_dynamic_flag_spec='${wl}-Blargedynsym'
171566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      runpath_var=LD_RUN_PATH
171666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      ;;
171766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    siemens)
171866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      need_lib_prefix=no
171966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      ;;
172066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    motorola)
172166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      need_lib_prefix=no
172266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      need_version=no
172366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      shlibpath_overrides_runpath=no
172466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
172566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      ;;
172666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  esac
172766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  ;;
172866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
172966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumansysv4*MP*)
173066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  if test -d /usr/nec ;then
173166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    version_type=linux
173266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
173366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    soname_spec='$libname${shared_ext}.$major'
173466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    shlibpath_var=LD_LIBRARY_PATH
173566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  fi
173666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  ;;
173766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
173866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumansysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
173966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  version_type=freebsd-elf
174066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  need_lib_prefix=no
174166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  need_version=no
174266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
174366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  soname_spec='${libname}${release}${shared_ext}$major'
174466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  shlibpath_var=LD_LIBRARY_PATH
174566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  hardcode_into_libs=yes
174666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  if test "$with_gnu_ld" = yes; then
174766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
174866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    shlibpath_overrides_runpath=no
174966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  else
175066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
175166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    shlibpath_overrides_runpath=yes
175266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    case $host_os in
175366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      sco3.2v5*)
175466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
175566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	;;
175666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    esac
175766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  fi
175866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  sys_lib_dlsearch_path_spec='/usr/lib'
175966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  ;;
176066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
176166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanuts4*)
176266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  version_type=linux
176366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
176466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  soname_spec='${libname}${release}${shared_ext}$major'
176566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  shlibpath_var=LD_LIBRARY_PATH
176666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  ;;
176766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
176866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman*)
176966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  dynamic_linker=no
177066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  ;;
177166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanesac
177266b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_MSG_RESULT([$dynamic_linker])
177366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumantest "$dynamic_linker" = no && can_build_shared=no
177466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
177566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanvariables_saved_for_relink="PATH $shlibpath_var $runpath_var"
177666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanif test "$GCC" = yes; then
177766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
177866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanfi
177966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
178066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
178166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
178266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# _LT_AC_TAGCONFIG
178366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# ----------------
178466b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_DEFUN([_LT_AC_TAGCONFIG],
178566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman[AC_ARG_WITH([tags],
178666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    [AS_HELP_STRING([--with-tags@<:@=TAGS@:>@],[include additional configurations @<:@automatic@:>@])],
178766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    [tagnames="$withval"])
178866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
178966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanif test -f "$ltmain" && test -n "$tagnames"; then
179066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  if test ! -f "${ofile}"; then
179166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    AC_MSG_WARN([output file `$ofile' does not exist])
179266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  fi
179366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
179466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  if test -z "$LTCC"; then
179566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
179666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    if test -z "$LTCC"; then
179766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
179866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    else
179966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
180066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    fi
180166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  fi
180266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  if test -z "$LTCFLAGS"; then
180366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
180466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  fi
180566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
180666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  # Extract list of available tagged configurations in $ofile.
180766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  # Note that this assumes the entire list is on one line.
180866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
180966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
181066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
181166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  for tagname in $tagnames; do
181266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    IFS="$lt_save_ifs"
181366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    # Check whether tagname contains only valid characters
181466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
181566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    "") ;;
181666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    *)  AC_MSG_ERROR([invalid tag name: $tagname])
181766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	;;
181866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    esac
181966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
182066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
182166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    then
182266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      AC_MSG_ERROR([tag name "$tagname" already exists])
182366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    fi
182466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
182566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    # Update the list of available tags.
182666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    if test -n "$tagname"; then
182766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      echo appending configuration tag \"$tagname\" to $ofile
182866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
182966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      case $tagname in
183066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      CXX)
183166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
183266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
183366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    (test "X$CXX" != "Xg++"))) ; then
183466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  AC_LIBTOOL_LANG_CXX_CONFIG
183566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	else
183666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  tagname=""
183766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	fi
183866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	;;
183966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
184066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      F77)
184166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	if test -n "$F77" && test "X$F77" != "Xno"; then
184266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  AC_LIBTOOL_LANG_F77_CONFIG
184366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	else
184466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  tagname=""
184566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	fi
184666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	;;
184766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
184866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      GCJ)
184966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
185066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  AC_LIBTOOL_LANG_GCJ_CONFIG
185166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	else
185266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  tagname=""
185366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	fi
185466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	;;
185566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
185666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      RC)
185766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	AC_LIBTOOL_LANG_RC_CONFIG
185866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	;;
185966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
186066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      *)
186166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	AC_MSG_ERROR([Unsupported tag name: $tagname])
186266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	;;
186366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      esac
186466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
186566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      # Append the new tag name to the list of available tags.
186666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      if test -n "$tagname" ; then
186766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      available_tags="$available_tags $tagname"
186866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    fi
186966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    fi
187066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  done
187166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  IFS="$lt_save_ifs"
187266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
187366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  # Now substitute the updated list of available tags.
187466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
187566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    mv "${ofile}T" "$ofile"
187666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    chmod +x "$ofile"
187766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  else
187866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    rm -f "${ofile}T"
187966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    AC_MSG_ERROR([unable to update list of available tagged configurations.])
188066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  fi
188166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanfi
188266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman])# _LT_AC_TAGCONFIG
188366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
188466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
188566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# AC_LIBTOOL_DLOPEN
188666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# -----------------
188766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# enable checks for dlopen support
188866b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_DEFUN([AC_LIBTOOL_DLOPEN],
188966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
189066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman])# AC_LIBTOOL_DLOPEN
189166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
189266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
189366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# AC_LIBTOOL_WIN32_DLL
189466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# --------------------
189566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# declare package support for building win32 DLLs
189666b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_DEFUN([AC_LIBTOOL_WIN32_DLL],
189766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
189866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman])# AC_LIBTOOL_WIN32_DLL
189966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
190066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
190166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# AC_ENABLE_SHARED([DEFAULT])
190266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# ---------------------------
190366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# implement the --enable-shared flag
190466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
190566b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_DEFUN([AC_ENABLE_SHARED],
190666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman[define([enable_shared_default], ifelse($1, no, no, yes))dnl
190766b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_ARG_ENABLE([shared],
190866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],[build shared libraries @<:@default=enable_shared_default@:>@]),
190966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    [p=${PACKAGE-default}
191066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    case $enableval in
191166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    yes) enable_shared=yes ;;
191266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    no) enable_shared=no ;;
191366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    *)
191466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      enable_shared=no
191566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      # Look at the argument we got.  We use all the common list separators.
191666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
191766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      for pkg in $enableval; do
191866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	IFS="$lt_save_ifs"
191966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	if test "X$pkg" = "X$p"; then
192066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  enable_shared=yes
192166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	fi
192266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      done
192366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      IFS="$lt_save_ifs"
192466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      ;;
192566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    esac],
192666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    [enable_shared=]enable_shared_default)
192766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman])# AC_ENABLE_SHARED
192866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
192966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
193066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# AC_DISABLE_SHARED
193166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# -----------------
193266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# set the default shared flag to --disable-shared
193366b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_DEFUN([AC_DISABLE_SHARED],
193466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
193566b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_ENABLE_SHARED(no)
193666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman])# AC_DISABLE_SHARED
193766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
193866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
193966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# AC_ENABLE_STATIC([DEFAULT])
194066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# ---------------------------
194166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# implement the --enable-static flag
194266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
194366b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_DEFUN([AC_ENABLE_STATIC],
194466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman[define([enable_static_default], ifelse($1, no, no, yes))dnl
194566b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_ARG_ENABLE([static],
194666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],[build static libraries @<:@default=enable_static_default@:>@]),
194766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    [p=${PACKAGE-default}
194866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    case $enableval in
194966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    yes) enable_static=yes ;;
195066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    no) enable_static=no ;;
195166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    *)
195266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman     enable_static=no
195366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      # Look at the argument we got.  We use all the common list separators.
195466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
195566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      for pkg in $enableval; do
195666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	IFS="$lt_save_ifs"
195766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	if test "X$pkg" = "X$p"; then
195866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  enable_static=yes
195966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	fi
196066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      done
196166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      IFS="$lt_save_ifs"
196266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      ;;
196366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    esac],
196466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    [enable_static=]enable_static_default)
196566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman])# AC_ENABLE_STATIC
196666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
196766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
196866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# AC_DISABLE_STATIC
196966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# -----------------
197066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# set the default static flag to --disable-static
197166b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_DEFUN([AC_DISABLE_STATIC],
197266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
197366b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_ENABLE_STATIC(no)
197466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman])# AC_DISABLE_STATIC
197566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
197666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
197766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# AC_ENABLE_FAST_INSTALL([DEFAULT])
197866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# ---------------------------------
197966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# implement the --enable-fast-install flag
198066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
198166b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_DEFUN([AC_ENABLE_FAST_INSTALL],
198266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman[define([enable_Fast_install_default], ifelse($1, no, no, yes))dnl
198366b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_ARG_ENABLE([fast-install],
198466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],[optimize for fast installation @<:@default=enable_Fast_install_default@:>@]),
198566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    [p=${PACKAGE-default}
198666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    case $enableval in
198766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    yes) enable_fast_install=yes ;;
198866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    no) enable_fast_install=no ;;
198966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    *)
199066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      enable_fast_install=no
199166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      # Look at the argument we got.  We use all the common list separators.
199266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
199366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      for pkg in $enableval; do
199466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	IFS="$lt_save_ifs"
199566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	if test "X$pkg" = "X$p"; then
199666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  enable_fast_install=yes
199766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	fi
199866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      done
199966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      IFS="$lt_save_ifs"
200066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      ;;
200166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    esac],
200266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    [enable_fast_install=]enable_Fast_install_default)
200366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman])# AC_ENABLE_FAST_INSTALL
200466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
200566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
200666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# AC_DISABLE_FAST_INSTALL
200766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# -----------------------
200866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# set the default to --disable-fast-install
200966b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_DEFUN([AC_DISABLE_FAST_INSTALL],
201066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
201166b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_ENABLE_FAST_INSTALL(no)
201266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman])# AC_DISABLE_FAST_INSTALL
201366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
201466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
201566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# AC_LIBTOOL_PICMODE([MODE])
201666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# --------------------------
201766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# implement the --with-pic flag
201866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# MODE is either `yes' or `no'.  If omitted, it defaults to `both'.
201966b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_DEFUN([AC_LIBTOOL_PICMODE],
202066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
202166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanpic_mode=ifelse($#,1,$1,default)
202266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman])# AC_LIBTOOL_PICMODE
202366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
202466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
202566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# AC_PROG_EGREP
202666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# -------------
202766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# This is predefined starting with Autoconf 2.54, so this conditional
202866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# definition can be removed once we require Autoconf 2.54 or later.
202966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanm4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
203066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
203166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman   [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
203266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    then ac_cv_prog_egrep='grep -E'
203366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    else ac_cv_prog_egrep='egrep'
203466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    fi])
203566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman EGREP=$ac_cv_prog_egrep
203666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman AC_SUBST([EGREP])
203766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman])])
203866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
203966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
204066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# AC_PATH_TOOL_PREFIX
204166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# -------------------
204266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# find a file program which can recognise shared library
204366b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_DEFUN([AC_PATH_TOOL_PREFIX],
204466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman[AC_REQUIRE([AC_PROG_EGREP])dnl
204566b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_MSG_CHECKING([for $1])
204666b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
204766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman[case $MAGIC_CMD in
204866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman[[\\/*] |  ?:[\\/]*])
204966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
205066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  ;;
205166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman*)
205266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  lt_save_MAGIC_CMD="$MAGIC_CMD"
205366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
205466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumandnl $ac_dummy forces splitting on constant user-supplied paths.
205566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumandnl POSIX.2 word splitting is done only on the output of word expansions,
205666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumandnl not every word.  This closes a longstanding sh security hole.
205766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  ac_dummy="ifelse([$2], , $PATH, [$2])"
205866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  for ac_dir in $ac_dummy; do
205966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    IFS="$lt_save_ifs"
206066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    test -z "$ac_dir" && ac_dir=.
206166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    if test -f $ac_dir/$1; then
206266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      lt_cv_path_MAGIC_CMD="$ac_dir/$1"
206366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      if test -n "$file_magic_test_file"; then
206466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	case $deplibs_check_method in
206566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	"file_magic "*)
206666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
206766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
206866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
206966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    $EGREP "$file_magic_regex" > /dev/null; then
207066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    :
207166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  else
207266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    cat <<EOF 1>&2
207366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
207466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman*** Warning: the command libtool uses to detect shared libraries,
207566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman*** $file_magic_cmd, produces output that libtool cannot recognize.
207666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman*** The result is that libtool may fail to recognize shared libraries
207766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman*** as such.  This will affect the creation of libtool libraries that
207866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman*** depend on shared libraries, but programs linked with such libtool
207966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman*** libraries will work regardless of this problem.  Nevertheless, you
208066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman*** may want to report the problem to your system manager and/or to
208166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman*** bug-libtool@gnu.org
208266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
208366b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanEOF
208466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  fi ;;
208566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	esac
208666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      fi
208766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      break
208866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    fi
208966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  done
209066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  IFS="$lt_save_ifs"
209166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  MAGIC_CMD="$lt_save_MAGIC_CMD"
209266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  ;;
209366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanesac])
209466b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanMAGIC_CMD="$lt_cv_path_MAGIC_CMD"
209566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanif test -n "$MAGIC_CMD"; then
209666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  AC_MSG_RESULT($MAGIC_CMD)
209766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanelse
209866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  AC_MSG_RESULT(no)
209966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanfi
210066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman])# AC_PATH_TOOL_PREFIX
210166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
210266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
210366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# AC_PATH_MAGIC
210466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# -------------
210566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# find a file program which can recognise a shared library
210666b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_DEFUN([AC_PATH_MAGIC],
210766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
210866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanif test -z "$lt_cv_path_MAGIC_CMD"; then
210966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  if test -n "$ac_tool_prefix"; then
211066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
211166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  else
211266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    MAGIC_CMD=:
211366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  fi
211466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanfi
211566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman])# AC_PATH_MAGIC
211666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
211766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
211866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# AC_PROG_LD
211966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# ----------
212066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# find the pathname to the GNU or non-GNU linker
212166b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_DEFUN([AC_PROG_LD],
212266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman[AC_ARG_WITH([gnu-ld],
212366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    [AS_HELP_STRING([--with-gnu-ld],[assume the C compiler uses GNU ld @<:@default=no@:>@])],
212466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    [test "$withval" = no || with_gnu_ld=yes],
212566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    [with_gnu_ld=no])
212666b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_REQUIRE([LT_AC_PROG_SED])dnl
212766b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_REQUIRE([AC_PROG_CC])dnl
212866b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_REQUIRE([AC_CANONICAL_HOST])dnl
212966b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_REQUIRE([AC_CANONICAL_BUILD])dnl
213066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanac_prog=ld
213166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanif test "$GCC" = yes; then
213266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  # Check if gcc -print-prog-name=ld gives a path.
213366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  AC_MSG_CHECKING([for ld used by $CC])
213466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  case $host in
213566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  *-*-mingw*)
213666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    # gcc leaves a trailing carriage return which upsets mingw
213766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
213866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  *)
213966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
214066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  esac
214166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  case $ac_prog in
214266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    # Accept absolute paths.
214366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    [[\\/]]* | ?:[[\\/]]*)
214466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      re_direlt='/[[^/]][[^/]]*/\.\./'
214566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      # Canonicalize the pathname of ld
214666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
214766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
214866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
214966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      done
215066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      test -z "$LD" && LD="$ac_prog"
215166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      ;;
215266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  "")
215366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    # If it fails, then pretend we aren't using GCC.
215466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    ac_prog=ld
215566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    ;;
215666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  *)
215766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    # If it is relative, then search for the first ld in PATH.
215866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    with_gnu_ld=unknown
215966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    ;;
216066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  esac
216166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanelif test "$with_gnu_ld" = yes; then
216266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  AC_MSG_CHECKING([for GNU ld])
216366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanelse
216466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  AC_MSG_CHECKING([for non-GNU ld])
216566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanfi
216666b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_CACHE_VAL(lt_cv_path_LD,
216766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman[if test -z "$LD"; then
216866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
216966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  for ac_dir in $PATH; do
217066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    IFS="$lt_save_ifs"
217166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    test -z "$ac_dir" && ac_dir=.
217266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
217366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      lt_cv_path_LD="$ac_dir/$ac_prog"
217466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      # Check to see if the program is GNU ld.  I'd rather use --version,
217566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      # but apparently some variants of GNU ld only accept -v.
217666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      # Break only if it was the GNU/non-GNU ld that we prefer.
217766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
217866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      *GNU* | *'with BFD'*)
217966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	test "$with_gnu_ld" != no && break
218066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	;;
218166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      *)
218266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	test "$with_gnu_ld" != yes && break
218366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	;;
218466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      esac
218566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    fi
218666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  done
218766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  IFS="$lt_save_ifs"
218866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanelse
218966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  lt_cv_path_LD="$LD" # Let the user override the test with a path.
219066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanfi])
219166b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanLD="$lt_cv_path_LD"
219266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanif test -n "$LD"; then
219366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  AC_MSG_RESULT($LD)
219466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanelse
219566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  AC_MSG_RESULT(no)
219666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanfi
219766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumantest -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
219866b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_PROG_LD_GNU
219966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman])# AC_PROG_LD
220066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
220166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
220266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# AC_PROG_LD_GNU
220366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# --------------
220466b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_DEFUN([AC_PROG_LD_GNU],
220566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman[AC_REQUIRE([AC_PROG_EGREP])dnl
220666b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
220766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman[# I'd rather use --version here, but apparently some GNU lds only accept -v.
220866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumancase `$LD -v 2>&1 </dev/null` in
220966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman*GNU* | *'with BFD'*)
221066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  lt_cv_prog_gnu_ld=yes
221166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  ;;
221266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman*)
221366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  lt_cv_prog_gnu_ld=no
221466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  ;;
221566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanesac])
221666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanwith_gnu_ld=$lt_cv_prog_gnu_ld
221766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman])# AC_PROG_LD_GNU
221866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
221966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
222066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# AC_PROG_LD_RELOAD_FLAG
222166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# ----------------------
222266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# find reload flag for linker
222366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman#   -- PORTME Some linkers may need a different reload flag.
222466b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
222566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman[AC_CACHE_CHECK([for $LD option to reload object files],
222666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  lt_cv_ld_reload_flag,
222766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  [lt_cv_ld_reload_flag='-r'])
222866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanreload_flag=$lt_cv_ld_reload_flag
222966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumancase $reload_flag in
223066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman"" | " "*) ;;
223166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman*) reload_flag=" $reload_flag" ;;
223266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanesac
223366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanreload_cmds='$LD$reload_flag -o $output$reload_objs'
223466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumancase $host_os in
223566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  darwin*)
223666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    if test "$GCC" = yes; then
223766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
223866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    else
223966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      reload_cmds='$LD$reload_flag -o $output$reload_objs'
224066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    fi
224166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    ;;
224266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanesac
224366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman])# AC_PROG_LD_RELOAD_FLAG
224466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
224566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
224666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# AC_DEPLIBS_CHECK_METHOD
224766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# -----------------------
224866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# how to check for library dependencies
224966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman#  -- PORTME fill in with the dynamic library characteristics
225066b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
225166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman[AC_CACHE_CHECK([how to recognise dependent libraries],
225266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanlt_cv_deplibs_check_method,
225366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman[lt_cv_file_magic_cmd='$MAGIC_CMD'
225466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanlt_cv_file_magic_test_file=
225566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanlt_cv_deplibs_check_method='unknown'
225666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Need to set the preceding variable on all platforms that support
225766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# interlibrary dependencies.
225866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# 'none' -- dependencies not supported.
225966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# `unknown' -- same as none, but documents that we really don't know.
226066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# 'pass_all' -- all dependencies passed with no checks.
226166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# 'test_compile' -- check by making test program.
226266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# 'file_magic [[regex]]' -- check by looking for files in library path
226366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# which responds to the $file_magic_cmd with a given extended regex.
226466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# If you have `file' or equivalent on your system and you're not sure
226566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# whether `pass_all' will *always* work, you probably want this one.
226666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
226766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumancase $host_os in
226866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanaix4* | aix5*)
226966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  lt_cv_deplibs_check_method=pass_all
227066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  ;;
227166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
227266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanbeos*)
227366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  lt_cv_deplibs_check_method=pass_all
227466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  ;;
227566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
227666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanbsdi[[45]]*)
227766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
227866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  lt_cv_file_magic_cmd='/usr/bin/file -L'
227966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  lt_cv_file_magic_test_file=/shlib/libc.so
228066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  ;;
228166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
228266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumancygwin*)
228366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  # func_win32_libid is a shell function defined in ltmain.sh
228466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
228566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  lt_cv_file_magic_cmd='func_win32_libid'
228666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  ;;
228766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
228866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanmingw* | pw32*)
228966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  # Base MSYS/MinGW do not provide the 'file' command needed by
229066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
229166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
229266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  lt_cv_file_magic_cmd='$OBJDUMP -f'
229366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  ;;
229466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
229566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumandarwin* | rhapsody*)
229666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  lt_cv_deplibs_check_method=pass_all
229766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  ;;
229866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
229966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanfreebsd* | kfreebsd*-gnu | dragonfly*)
230066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
230166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    case $host_cpu in
230266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    i*86 )
230366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      # Not sure whether the presence of OpenBSD here was a mistake.
230466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      # Let's accept both of them until this is cleared up.
230566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
230666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      lt_cv_file_magic_cmd=/usr/bin/file
230766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
230866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      ;;
230966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    esac
231066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  else
231166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    lt_cv_deplibs_check_method=pass_all
231266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  fi
231366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  ;;
231466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
231566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumangnu*)
231666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  lt_cv_deplibs_check_method=pass_all
231766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  ;;
231866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
231966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanhpux10.20* | hpux11*)
232066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  lt_cv_file_magic_cmd=/usr/bin/file
232166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  case $host_cpu in
232266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  ia64*)
232366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
232466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
232566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    ;;
232666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  hppa*64*)
232766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    [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]']
232866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
232966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    ;;
233066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  *)
233166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
233266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    lt_cv_file_magic_test_file=/usr/lib/libc.sl
233366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    ;;
233466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  esac
233566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  ;;
233666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
233766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumaninterix3*)
233866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
233966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
234066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  ;;
234166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
234266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanirix5* | irix6* | nonstopux*)
234366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  case $LD in
234466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  *-32|*"-32 ") libmagic=32-bit;;
234566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  *-n32|*"-n32 ") libmagic=N32;;
234666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  *-64|*"-64 ") libmagic=64-bit;;
234766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  *) libmagic=never-match;;
234866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  esac
234966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  lt_cv_deplibs_check_method=pass_all
235066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  ;;
235166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
235266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# This must be Linux ELF.
235366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanlinux*)
235466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  lt_cv_deplibs_check_method=pass_all
235566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  ;;
235666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
235766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumannetbsd*)
235866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
235966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
236066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  else
236166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
236266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  fi
236366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  ;;
236466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
236566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumannewos6*)
236666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
236766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  lt_cv_file_magic_cmd=/usr/bin/file
236866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  lt_cv_file_magic_test_file=/usr/lib/libnls.so
236966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  ;;
237066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
237166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumannto-qnx*)
237266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  lt_cv_deplibs_check_method=unknown
237366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  ;;
237466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
237566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanopenbsd*)
237666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
237766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
237866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  else
237966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
238066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  fi
238166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  ;;
238266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
238366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanosf3* | osf4* | osf5*)
238466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  lt_cv_deplibs_check_method=pass_all
238566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  ;;
238666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
238766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumansolaris*)
238866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  lt_cv_deplibs_check_method=pass_all
238966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  ;;
239066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
239166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumansysv4 | sysv4.3*)
239266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  case $host_vendor in
239366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  motorola)
239466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    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]]'
239566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
239666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    ;;
239766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  ncr)
239866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    lt_cv_deplibs_check_method=pass_all
239966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    ;;
240066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  sequent)
240166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    lt_cv_file_magic_cmd='/bin/file'
240266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
240366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    ;;
240466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  sni)
240566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    lt_cv_file_magic_cmd='/bin/file'
240666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
240766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    lt_cv_file_magic_test_file=/lib/libc.so
240866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    ;;
240966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  siemens)
241066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    lt_cv_deplibs_check_method=pass_all
241166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    ;;
241266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  pc)
241366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    lt_cv_deplibs_check_method=pass_all
241466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    ;;
241566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  esac
241666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  ;;
241766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
241866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumansysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
241966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  lt_cv_deplibs_check_method=pass_all
242066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  ;;
242166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanesac
242266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman])
242366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanfile_magic_cmd=$lt_cv_file_magic_cmd
242466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumandeplibs_check_method=$lt_cv_deplibs_check_method
242566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumantest -z "$deplibs_check_method" && deplibs_check_method=unknown
242666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman])# AC_DEPLIBS_CHECK_METHOD
242766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
242866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
242966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# AC_PROG_NM
243066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# ----------
243166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# find the pathname to a BSD-compatible name lister
243266b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_DEFUN([AC_PROG_NM],
243366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
243466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman[if test -n "$NM"; then
243566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  # Let the user override the test.
243666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  lt_cv_path_NM="$NM"
243766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanelse
243866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  lt_nm_to_check="${ac_tool_prefix}nm"
243966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 
244066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    lt_nm_to_check="$lt_nm_to_check nm"
244166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  fi
244266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  for lt_tmp_nm in $lt_nm_to_check; do
244366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
244466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
244566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      IFS="$lt_save_ifs"
244666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      test -z "$ac_dir" && ac_dir=.
244766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      tmp_nm="$ac_dir/$lt_tmp_nm"
244866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
244966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# Check to see if the nm accepts a BSD-compat flag.
245066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
245166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	#   nm: unknown option "B" ignored
245266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# Tru64's nm complains that /dev/null is an invalid object file
245366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
245466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	*/dev/null* | *'Invalid file or object type'*)
245566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  lt_cv_path_NM="$tmp_nm -B"
245666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  break
245766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  ;;
245866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	*)
245966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
246066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  */dev/null*)
246166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    lt_cv_path_NM="$tmp_nm -p"
246266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    break
246366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    ;;
246466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  *)
246566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
246666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    continue # so that we can try to find one that supports BSD flags
246766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    ;;
246866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  esac
246966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  ;;
247066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	esac
247166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      fi
247266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    done
247366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    IFS="$lt_save_ifs"
247466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  done
247566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
247666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanfi])
247766b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanNM="$lt_cv_path_NM"
247866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman])# AC_PROG_NM
247966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
248066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
248166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# AC_CHECK_LIBM
248266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# -------------
248366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# check for math library
248466b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_DEFUN([AC_CHECK_LIBM],
248566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman[AC_REQUIRE([AC_CANONICAL_HOST])dnl
248666b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanLIBM=
248766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumancase $host in
248866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
248966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  # These system don't have libm, or don't need it
249066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  ;;
249166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman*-ncr-sysv4.3*)
249266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
249366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
249466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  ;;
249566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman*)
249666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  AC_CHECK_LIB(m, cos, LIBM="-lm")
249766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  ;;
249866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanesac
249966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman])# AC_CHECK_LIBM
250066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
250166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
250266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
250366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# -----------------------------------
250466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# sets LIBLTDL to the link flags for the libltdl convenience library and
250566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# LTDLINCL to the include flags for the libltdl header and adds
250666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# --enable-ltdl-convenience to the configure arguments.  Note that
250766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# AC_CONFIG_SUBDIRS is not called here.  If DIRECTORY is not provided,
250866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# it is assumed to be `libltdl'.  LIBLTDL will be prefixed with
250966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
251066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# (note the single quotes!).  If your package is not flat and you're not
251166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# using automake, define top_builddir and top_srcdir appropriately in
251266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# the Makefiles.
251366b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_DEFUN([AC_LIBLTDL_CONVENIENCE],
251466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
251566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  case $enable_ltdl_convenience in
251666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
251766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  "") enable_ltdl_convenience=yes
251866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
251966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  esac
252066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
252166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
252266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  # For backwards non-gettext consistent compatibility...
252366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  INCLTDL="$LTDLINCL"
252466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman])# AC_LIBLTDL_CONVENIENCE
252566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
252666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
252766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
252866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# -----------------------------------
252966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# sets LIBLTDL to the link flags for the libltdl installable library and
253066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# LTDLINCL to the include flags for the libltdl header and adds
253166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# --enable-ltdl-install to the configure arguments.  Note that
253266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# AC_CONFIG_SUBDIRS is not called here.  If DIRECTORY is not provided,
253366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# and an installed libltdl is not found, it is assumed to be `libltdl'.
253466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
253566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# '${top_srcdir}/' (note the single quotes!).  If your package is not
253666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# flat and you're not using automake, define top_builddir and top_srcdir
253766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# appropriately in the Makefiles.
253866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
253966b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_DEFUN([AC_LIBLTDL_INSTALLABLE],
254066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
254166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  AC_CHECK_LIB(ltdl, lt_dlinit,
254266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
254366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  [if test x"$enable_ltdl_install" = xno; then
254466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman     AC_MSG_WARN([libltdl not installed, but installation disabled])
254566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman   else
254666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman     enable_ltdl_install=yes
254766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman   fi
254866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  ])
254966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  if test x"$enable_ltdl_install" = x"yes"; then
255066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    ac_configure_args="$ac_configure_args --enable-ltdl-install"
255166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
255266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
255366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  else
255466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
255566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    LIBLTDL="-lltdl"
255666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    LTDLINCL=
255766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  fi
255866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  # For backwards non-gettext consistent compatibility...
255966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  INCLTDL="$LTDLINCL"
256066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman])# AC_LIBLTDL_INSTALLABLE
256166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
256266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
256366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# AC_LIBTOOL_CXX
256466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# --------------
256566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# enable support for C++ libraries
256666b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_DEFUN([AC_LIBTOOL_CXX],
256766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman[AC_REQUIRE([_LT_AC_LANG_CXX])
256866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman])# AC_LIBTOOL_CXX
256966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
257066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
257166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# _LT_AC_LANG_CXX
257266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# ---------------
257366b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_DEFUN([_LT_AC_LANG_CXX],
257466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman[AC_REQUIRE([AC_PROG_CXX])
257566b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_REQUIRE([_LT_AC_PROG_CXXCPP])
257666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
257766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman])# _LT_AC_LANG_CXX
257866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
257966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# _LT_AC_PROG_CXXCPP
258066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# ------------------
258166b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_DEFUN([_LT_AC_PROG_CXXCPP],
258266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman[
258366b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_REQUIRE([AC_PROG_CXX])
258466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanif test -n "$CXX" && ( test "X$CXX" != "Xno" &&
258566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
258666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    (test "X$CXX" != "Xg++"))) ; then
258766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  AC_PROG_CXXCPP
258866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanfi
258966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman])# _LT_AC_PROG_CXXCPP
259066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
259166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# AC_LIBTOOL_F77
259266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# --------------
259366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# enable support for Fortran 77 libraries
259466b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_DEFUN([AC_LIBTOOL_F77],
259566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman[AC_REQUIRE([_LT_AC_LANG_F77])
259666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman])# AC_LIBTOOL_F77
259766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
259866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
259966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# _LT_AC_LANG_F77
260066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# ---------------
260166b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_DEFUN([_LT_AC_LANG_F77],
260266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman[AC_REQUIRE([AC_PROG_F77])
260366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
260466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman])# _LT_AC_LANG_F77
260566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
260666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
260766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# AC_LIBTOOL_GCJ
260866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# --------------
260966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# enable support for GCJ libraries
261066b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_DEFUN([AC_LIBTOOL_GCJ],
261166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman[AC_REQUIRE([_LT_AC_LANG_GCJ])
261266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman])# AC_LIBTOOL_GCJ
261366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
261466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
261566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# _LT_AC_LANG_GCJ
261666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# ---------------
261766b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_DEFUN([_LT_AC_LANG_GCJ],
261866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
261966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
262066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
262166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
262266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	 [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
262366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	   [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
262466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
262566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman])# _LT_AC_LANG_GCJ
262666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
262766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
262866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# AC_LIBTOOL_RC
262966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# -------------
263066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# enable support for Windows resource files
263166b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_DEFUN([AC_LIBTOOL_RC],
263266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman[AC_REQUIRE([LT_AC_PROG_RC])
263366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
263466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman])# AC_LIBTOOL_RC
263566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
263666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
263766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# AC_LIBTOOL_LANG_C_CONFIG
263866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# ------------------------
263966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Ensure that the configuration vars for the C compiler are
264066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# suitably defined.  Those variables are subsequently used by
264166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
264266b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
264366b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_DEFUN([_LT_AC_LANG_C_CONFIG],
264466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman[lt_save_CC="$CC"
264566b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_LANG_PUSH(C)
264666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
264766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Source file extension for C test sources.
264866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanac_ext=c
264966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
265066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Object file extension for compiled C test sources.
265166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanobjext=o
265266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman_LT_AC_TAGVAR(objext, $1)=$objext
265366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
265466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Code to be used in simple compile tests
265566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanlt_simple_compile_test_code="int some_variable = 0;\n"
265666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
265766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Code to be used in simple link tests
265866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanlt_simple_link_test_code='int main(){return(0);}\n'
265966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
266066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman_LT_AC_SYS_COMPILER
266166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
266266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# save warnings/boilerplate of simple test code
266366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman_LT_COMPILER_BOILERPLATE
266466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman_LT_LINKER_BOILERPLATE
266566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
266666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman## CAVEAT EMPTOR:
266766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman## There is no encapsulation within the following macros, do not change
266866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman## the running order or otherwise move them around unless you know exactly
266966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman## what you are doing...
267066b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
267166b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_LIBTOOL_PROG_COMPILER_PIC($1)
267266b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_LIBTOOL_PROG_CC_C_O($1)
267366b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
267466b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_LIBTOOL_PROG_LD_SHLIBS($1)
267566b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
267666b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
267766b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_LIBTOOL_SYS_LIB_STRIP
267866b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_LIBTOOL_DLOPEN_SELF
267966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
268066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Report which library types will actually be built
268166b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_MSG_CHECKING([if libtool supports shared libraries])
268266b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_MSG_RESULT([$can_build_shared])
268366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
268466b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_MSG_CHECKING([whether to build shared libraries])
268566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumantest "$can_build_shared" = "no" && enable_shared=no
268666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
268766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# On AIX, shared libraries and static libraries use the same namespace, and
268866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# are all built from PIC.
268966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumancase $host_os in
269066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanaix3*)
269166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  test "$enable_shared" = yes && enable_static=no
269266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  if test -n "$RANLIB"; then
269366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    archive_cmds="$archive_cmds~\$RANLIB \$lib"
269466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    postinstall_cmds='$RANLIB $lib'
269566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  fi
269666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  ;;
269766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
269866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanaix4* | aix5*)
269966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
270066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    test "$enable_shared" = yes && enable_static=no
270166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  fi
270266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    ;;
270366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanesac
270466b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_MSG_RESULT([$enable_shared])
270566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
270666b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_MSG_CHECKING([whether to build static libraries])
270766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Make sure either enable_shared or enable_static is yes.
270866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumantest "$enable_shared" = yes || enable_static=yes
270966b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_MSG_RESULT([$enable_static])
271066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
271166b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_LIBTOOL_CONFIG($1)
271266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
271366b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_LANG_POP
271466b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanCC="$lt_save_CC"
271566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman])# AC_LIBTOOL_LANG_C_CONFIG
271666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
271766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
271866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# AC_LIBTOOL_LANG_CXX_CONFIG
271966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# --------------------------
272066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Ensure that the configuration vars for the C compiler are
272166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# suitably defined.  Those variables are subsequently used by
272266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
272366b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
272466b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
272566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman[AC_LANG_PUSH(C++)
272666b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_REQUIRE([AC_PROG_CXX])
272766b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_REQUIRE([_LT_AC_PROG_CXXCPP])
272866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
272966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
273066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman_LT_AC_TAGVAR(allow_undefined_flag, $1)=
273166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman_LT_AC_TAGVAR(always_export_symbols, $1)=no
273266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
273366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
273466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman_LT_AC_TAGVAR(hardcode_direct, $1)=no
273566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
273666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
273766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
273866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
273966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
274066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman_LT_AC_TAGVAR(hardcode_automatic, $1)=no
274166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman_LT_AC_TAGVAR(module_cmds, $1)=
274266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman_LT_AC_TAGVAR(module_expsym_cmds, $1)=
274366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
274466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
274566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman_LT_AC_TAGVAR(no_undefined_flag, $1)=
274666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
274766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
274866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
274966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Dependencies to place before and after the object being linked:
275066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman_LT_AC_TAGVAR(predep_objects, $1)=
275166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman_LT_AC_TAGVAR(postdep_objects, $1)=
275266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman_LT_AC_TAGVAR(predeps, $1)=
275366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman_LT_AC_TAGVAR(postdeps, $1)=
275466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
275566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
275666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Source file extension for C++ test sources.
275766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanac_ext=cpp
275866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
275966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Object file extension for compiled C++ test sources.
276066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanobjext=o
276166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman_LT_AC_TAGVAR(objext, $1)=$objext
276266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
276366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Code to be used in simple compile tests
276466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanlt_simple_compile_test_code="int some_variable = 0;\n"
276566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
276666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Code to be used in simple link tests
276766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanlt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n'
276866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
276966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# ltmain only uses $CC for tagged configurations so make sure $CC is set.
277066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman_LT_AC_SYS_COMPILER
277166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
277266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# save warnings/boilerplate of simple test code
277366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman_LT_COMPILER_BOILERPLATE
277466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman_LT_LINKER_BOILERPLATE
277566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
277666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Allow CC to be a program name with arguments.
277766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanlt_save_CC=$CC
277866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanlt_save_LD=$LD
277966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanlt_save_GCC=$GCC
278066b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanGCC=$GXX
278166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanlt_save_with_gnu_ld=$with_gnu_ld
278266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanlt_save_path_LD=$lt_cv_path_LD
278366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanif test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
278466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
278566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanelse
278666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  $as_unset lt_cv_prog_gnu_ld
278766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanfi
278866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanif test -n "${lt_cv_path_LDCXX+set}"; then
278966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  lt_cv_path_LD=$lt_cv_path_LDCXX
279066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanelse
279166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  $as_unset lt_cv_path_LD
279266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanfi
279366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumantest -z "${LDCXX+set}" || LD=$LDCXX
279466b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanCC=${CXX-"c++"}
279566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumancompiler=$CC
279666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman_LT_AC_TAGVAR(compiler, $1)=$CC
279766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman_LT_CC_BASENAME([$compiler])
279866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
279966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# We don't want -fno-exception wen compiling C++ code, so set the
280066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# no_builtin_flag separately
280166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanif test "$GXX" = yes; then
280266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
280366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanelse
280466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
280566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanfi
280666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
280766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanif test "$GXX" = yes; then
280866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  # Set up default GNU C++ configuration
280966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
281066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  AC_PROG_LD
281166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
281266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  # Check if GNU C++ uses GNU ld as the underlying linker, since the
281366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  # archiving commands below assume that GNU ld is being used.
281466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  if test "$with_gnu_ld" = yes; then
281566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
281666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    _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'
281766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
281866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
281966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
282066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
282166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    # If archive_cmds runs LD, not CC, wlarc should be empty
282266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
282366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    #     investigate it a little bit more. (MM)
282466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    wlarc='${wl}'
282566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
282666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    # ancient GNU ld didn't support --whole-archive et. al.
282766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
282866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	grep 'no-whole-archive' > /dev/null; then
282966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
283066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    else
283166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
283266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    fi
283366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  else
283466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    with_gnu_ld=no
283566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    wlarc=
283666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
283766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    # A generic and very simple default shared library creation
283866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    # command for GNU C++ for the case where it uses the native
283966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    # linker, instead of GNU ld.  If possible, this setting should
284066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    # overridden to take advantage of the native linker features on
284166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    # the platform it is being used on.
284266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
284366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  fi
284466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
284566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  # Commands to make compiler produce verbose output that lists
284666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  # what "hidden" libraries, object files and flags are used when
284766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  # linking a shared library.
284866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
284966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
285066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanelse
285166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  GXX=no
285266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  with_gnu_ld=no
285366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  wlarc=
285466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanfi
285566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
285666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# PORTME: fill in a description of your system's C++ link characteristics
285766b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
285866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman_LT_AC_TAGVAR(ld_shlibs, $1)=yes
285966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumancase $host_os in
286066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  aix3*)
286166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    # FIXME: insert proper C++ library support
286266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    _LT_AC_TAGVAR(ld_shlibs, $1)=no
286366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    ;;
286466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  aix4* | aix5*)
286566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    if test "$host_cpu" = ia64; then
286666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      # On IA64, the linker does run time linking by default, so we don't
286766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      # have to do anything special.
286866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      aix_use_runtimelinking=no
286966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      exp_sym_flag='-Bexport'
287066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      no_entry_flag=""
287166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    else
287266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      aix_use_runtimelinking=no
287366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
287466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      # Test if we are trying to use run time linking or normal
287566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
287666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      # need to do runtime linking.
287766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
287866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	for ld_flag in $LDFLAGS; do
287966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  case $ld_flag in
288066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  *-brtl*)
288166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    aix_use_runtimelinking=yes
288266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    break
288366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    ;;
288466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  esac
288566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	done
288666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	;;
288766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      esac
288866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
288966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      exp_sym_flag='-bexport'
289066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      no_entry_flag='-bnoentry'
289166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    fi
289266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
289366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    # When large executables or shared objects are built, AIX ld can
289466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    # have problems creating the table of contents.  If linking a library
289566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    # or program results in "error TOC overflow" add -mminimal-toc to
289666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
289766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
289866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
289966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    _LT_AC_TAGVAR(archive_cmds, $1)=''
290066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    _LT_AC_TAGVAR(hardcode_direct, $1)=yes
290166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
290266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
290366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
290466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    if test "$GXX" = yes; then
290566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      case $host_os in aix4.[[012]]|aix4.[[012]].*)
290666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      # We only want to do this on AIX 4.2 and lower, the check
290766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      # below for broken collect2 doesn't work under 4.3+
290866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	collect2name=`${CC} -print-prog-name=collect2`
290966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	if test -f "$collect2name" && \
291066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	   strings "$collect2name" | grep resolve_lib_name >/dev/null
291166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	then
291266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  # We have reworked collect2
291366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  _LT_AC_TAGVAR(hardcode_direct, $1)=yes
291466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	else
291566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  # We have old collect2
291666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
291766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  # It fails to find uninstalled libraries when the uninstalled
291866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  # path is not listed in the libpath.  Setting hardcode_minus_L
291966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  # to unsupported forces relinking
292066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
292166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
292266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
292366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	fi
292466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	;;
292566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      esac
292666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      shared_flag='-shared'
292766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      if test "$aix_use_runtimelinking" = yes; then
292866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	shared_flag="$shared_flag "'${wl}-G'
292966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      fi
293066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    else
293166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      # not using gcc
293266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      if test "$host_cpu" = ia64; then
293366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
293466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# chokes on -Wl,-G. The following line is correct:
293566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	shared_flag='-G'
293666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      else
293766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	if test "$aix_use_runtimelinking" = yes; then
293866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  shared_flag='${wl}-G'
293966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	else
294066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  shared_flag='${wl}-bM:SRE'
294166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	fi
294266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      fi
294366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    fi
294466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
294566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    # It seems that -bexpall does not export symbols beginning with
294666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    # underscore (_), so it is better to generate a list of symbols to export.
294766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    _LT_AC_TAGVAR(always_export_symbols, $1)=yes
294866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    if test "$aix_use_runtimelinking" = yes; then
294966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      # Warning - without using the other runtime loading flags (-brtl),
295066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      # -berok will link without error, but may produce a broken library.
295166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
295266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      # Determine the default libpath from the value encoded in an empty executable.
295366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_SYS_LIBPATH_AIX
295466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
295566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
295666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _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"
295766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman     else
295866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      if test "$host_cpu" = ia64; then
295966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
296066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
296166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_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"
296266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      else
296366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# Determine the default libpath from the value encoded in an empty executable.
296466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_SYS_LIBPATH_AIX
296566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
296666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# Warning - without using the other run time loading flags,
296766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# -berok will link without error, but may produce a broken library.
296866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
296966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
297066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# Exported symbols can be pulled into shared objects from archives
297166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
297266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
297366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# This is similar to how AIX traditionally builds its shared libraries.
297466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_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'
297566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      fi
297666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    fi
297766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    ;;
297866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
297966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  beos*)
298066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
298166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
298266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
298366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      # support --undefined.  This deserves some investigation.  FIXME
298466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
298566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    else
298666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(ld_shlibs, $1)=no
298766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    fi
298866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    ;;
298966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
299066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  chorus*)
299166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    case $cc_basename in
299266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      *)
299366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# FIXME: insert proper C++ library support
299466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(ld_shlibs, $1)=no
299566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	;;
299666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    esac
299766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    ;;
299866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
299966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  cygwin* | mingw* | pw32*)
300066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
300166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    # as there is no search path for DLLs.
300266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
300366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
300466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    _LT_AC_TAGVAR(always_export_symbols, $1)=no
300566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
300666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
300766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
300866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _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'
300966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      # If the export-symbols file already is a .def file (1st line
301066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      # is EXPORTS), use it as is; otherwise, prepend...
301166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
301266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	cp $export_symbols $output_objdir/$soname.def;
301366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      else
301466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	echo EXPORTS > $output_objdir/$soname.def;
301566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	cat $export_symbols >> $output_objdir/$soname.def;
301666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      fi~
301766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      $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'
301866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    else
301966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(ld_shlibs, $1)=no
302066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    fi
302166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  ;;
302266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      darwin* | rhapsody*)
302366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman        case $host_os in
302466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman        rhapsody* | darwin1.[[012]])
302566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman         _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
302666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman         ;;
302766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman       *) # Darwin 1.3 on
302866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
302966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman           _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
303066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman         else
303166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman           case ${MACOSX_DEPLOYMENT_TARGET} in
303266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman             10.[[012]])
303366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
303466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman               ;;
303566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman             10.*)
303666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
303766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman               ;;
303866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman           esac
303966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman         fi
304066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman         ;;
304166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman        esac
304266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
304366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(hardcode_direct, $1)=no
304466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
304566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
304666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
304766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
304866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
304966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    if test "$GXX" = yes ; then
305066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      lt_int_apple_cc_single_mod=no
305166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      output_verbose_link_cmd='echo'
305266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
305366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman       lt_int_apple_cc_single_mod=yes
305466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      fi
305566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
305666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
305766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      else
305866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman          _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'
305966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman        fi
306066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman        _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
306166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
306266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
306366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman            _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}'
306466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman          else
306566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman            _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}'
306666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman          fi
306766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman            _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}'
306866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      else
306966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      case $cc_basename in
307066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman        xlc*)
307166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman         output_verbose_link_cmd='echo'
307266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman          _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'
307366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman          _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
307466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
307566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman          _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}'
307666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman          _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}'
307766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman          ;;
307866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman       *)
307966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman         _LT_AC_TAGVAR(ld_shlibs, $1)=no
308066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman          ;;
308166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      esac
308266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      fi
308366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman        ;;
308466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
308566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  dgux*)
308666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    case $cc_basename in
308766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      ec++*)
308866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# FIXME: insert proper C++ library support
308966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(ld_shlibs, $1)=no
309066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	;;
309166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      ghcx*)
309266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# Green Hills C++ Compiler
309366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# FIXME: insert proper C++ library support
309466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(ld_shlibs, $1)=no
309566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	;;
309666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      *)
309766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# FIXME: insert proper C++ library support
309866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(ld_shlibs, $1)=no
309966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	;;
310066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    esac
310166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    ;;
310266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  freebsd[[12]]*)
310366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    # C++ shared libraries reported to be fairly broken before switch to ELF
310466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    _LT_AC_TAGVAR(ld_shlibs, $1)=no
310566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    ;;
310666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  freebsd-elf*)
310766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
310866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    ;;
310966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  freebsd* | kfreebsd*-gnu | dragonfly*)
311066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
311166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    # conventions
311266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    _LT_AC_TAGVAR(ld_shlibs, $1)=yes
311366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    ;;
311466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  gnu*)
311566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    ;;
311666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  hpux9*)
311766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
311866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
311966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
312066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    _LT_AC_TAGVAR(hardcode_direct, $1)=yes
312166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
312266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman				# but as the default
312366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman				# location of the library.
312466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
312566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    case $cc_basename in
312666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    CC*)
312766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      # FIXME: insert proper C++ library support
312866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(ld_shlibs, $1)=no
312966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      ;;
313066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    aCC*)
313166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _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'
313266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      # Commands to make compiler produce verbose output that lists
313366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      # what "hidden" libraries, object files and flags are used when
313466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      # linking a shared library.
313566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      #
313666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      # There doesn't appear to be a way to prevent this compiler from
313766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      # explicitly linking system object files so we need to strip them
313866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      # from the output so that they don't get included in the library
313966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      # dependencies.
314066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      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'
314166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      ;;
314266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    *)
314366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      if test "$GXX" = yes; then
314466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman        _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'
314566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      else
314666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman        # FIXME: insert proper C++ library support
314766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman        _LT_AC_TAGVAR(ld_shlibs, $1)=no
314866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      fi
314966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      ;;
315066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    esac
315166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    ;;
315266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  hpux10*|hpux11*)
315366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    if test $with_gnu_ld = no; then
315466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
315566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
315666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
315766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      case $host_cpu in
315866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      hppa*64*|ia64*)
315966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
316066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman        ;;
316166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      *)
316266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
316366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman        ;;
316466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      esac
316566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    fi
316666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    case $host_cpu in
316766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    hppa*64*|ia64*)
316866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(hardcode_direct, $1)=no
316966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
317066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      ;;
317166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    *)
317266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
317366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
317466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman					      # but as the default
317566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman					      # location of the library.
317666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      ;;
317766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    esac
317866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
317966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    case $cc_basename in
318066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      CC*)
318166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# FIXME: insert proper C++ library support
318266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(ld_shlibs, $1)=no
318366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	;;
318466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      aCC*)
318566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	case $host_cpu in
318666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	hppa*64*)
318766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
318866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  ;;
318966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	ia64*)
319066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
319166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  ;;
319266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	*)
319366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  _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'
319466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  ;;
319566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	esac
319666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# Commands to make compiler produce verbose output that lists
319766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# what "hidden" libraries, object files and flags are used when
319866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# linking a shared library.
319966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	#
320066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# There doesn't appear to be a way to prevent this compiler from
320166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# explicitly linking system object files so we need to strip them
320266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# from the output so that they don't get included in the library
320366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# dependencies.
320466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	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'
320566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	;;
320666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      *)
320766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	if test "$GXX" = yes; then
320866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  if test $with_gnu_ld = no; then
320966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    case $host_cpu in
321066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    hppa*64*)
321166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
321266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	      ;;
321366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    ia64*)
321466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	      _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'
321566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	      ;;
321666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    *)
321766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	      _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'
321866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	      ;;
321966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    esac
322066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  fi
322166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	else
322266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  # FIXME: insert proper C++ library support
322366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  _LT_AC_TAGVAR(ld_shlibs, $1)=no
322466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	fi
322566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	;;
322666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    esac
322766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    ;;
322866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  interix3*)
322966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    _LT_AC_TAGVAR(hardcode_direct, $1)=no
323066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
323166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
323266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
323366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
323466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    # Instead, shared libraries are loaded at an image base (0x10000000 by
323566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    # default) and relocated if they conflict, which is a slow very memory
323666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    # consuming and fragmenting process.  To avoid this, we pick a random,
323766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
323866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
323966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    _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'
324066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    _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'
324166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    ;;
324266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  irix5* | irix6*)
324366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    case $cc_basename in
324466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      CC*)
324566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# SGI C++
324666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_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'
324766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
324866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# Archives containing C++ object files must be created using
324966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
325066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# necessary to make sure instantiated templates are included
325166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# in the archive.
325266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
325366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	;;
325466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      *)
325566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	if test "$GXX" = yes; then
325666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  if test "$with_gnu_ld" = no; then
325766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    _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'
325866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  else
325966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    _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'
326066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  fi
326166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	fi
326266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
326366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	;;
326466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    esac
326566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
326666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
326766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    ;;
326866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  linux*)
326966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    case $cc_basename in
327066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      KCC*)
327166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# Kuck and Associates, Inc. (KAI) C++ Compiler
327266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
327366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# KCC will only create a shared library if the output file
327466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# ends with ".so" (or ".sl" for HP-UX), so rename the library
327566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# to its proper name (with version) after linking.
327666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_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'
327766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_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'
327866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# Commands to make compiler produce verbose output that lists
327966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# what "hidden" libraries, object files and flags are used when
328066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# linking a shared library.
328166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	#
328266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# There doesn't appear to be a way to prevent this compiler from
328366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# explicitly linking system object files so we need to strip them
328466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# from the output so that they don't get included in the library
328566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# dependencies.
328666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	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'
328766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
328866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
328966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
329066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
329166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# Archives containing C++ object files must be created using
329266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
329366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
329466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	;;
329566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      icpc*)
329666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# Intel C++
329766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	with_gnu_ld=yes
329866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# version 8.0 and above of icpc choke on multiply defined symbols
329966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# if we add $predep_objects and $postdep_objects, however 7.1 and
330066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# earlier do not add the objects themselves.
330166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	case `$CC -V 2>&1` in
330266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	*"Version 7."*)
330366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  	  _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
330466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  	  _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'
330566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  ;;
330666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	*)  # Version 8.0 or newer
330766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  tmp_idyn=
330866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  case $host_cpu in
330966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    ia64*) tmp_idyn=' -i_dynamic';;
331066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  esac
331166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  	  _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
331266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  _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'
331366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  ;;
331466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	esac
331566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
331666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
331766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
331866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
331966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	;;
332066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      pgCC*)
332166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman        # Portland Group C++ compiler
332266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
332366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  	_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'
332466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
332566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
332666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
332766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_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'
332866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman        ;;
332966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      cxx*)
333066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# Compaq C++
333166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
333266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_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'
333366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
333466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	runpath_var=LD_RUN_PATH
333566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
333666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
333766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
333866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# Commands to make compiler produce verbose output that lists
333966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# what "hidden" libraries, object files and flags are used when
334066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# linking a shared library.
334166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	#
334266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# There doesn't appear to be a way to prevent this compiler from
334366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# explicitly linking system object files so we need to strip them
334466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# from the output so that they don't get included in the library
334566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# dependencies.
334666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	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'
334766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	;;
334866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    esac
334966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    ;;
335066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  lynxos*)
335166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    # FIXME: insert proper C++ library support
335266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    _LT_AC_TAGVAR(ld_shlibs, $1)=no
335366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    ;;
335466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  m88k*)
335566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    # FIXME: insert proper C++ library support
335666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    _LT_AC_TAGVAR(ld_shlibs, $1)=no
335766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    ;;
335866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  mvs*)
335966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    case $cc_basename in
336066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      cxx*)
336166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# FIXME: insert proper C++ library support
336266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(ld_shlibs, $1)=no
336366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	;;
336466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      *)
336566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# FIXME: insert proper C++ library support
336666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(ld_shlibs, $1)=no
336766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	;;
336866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    esac
336966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    ;;
337066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  netbsd*)
337166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
337266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
337366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      wlarc=
337466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
337566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
337666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
337766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    fi
337866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    # Workaround some broken pre-1.5 toolchains
337966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
338066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    ;;
338166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  openbsd2*)
338266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    # C++ shared libraries are fairly broken
338366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    _LT_AC_TAGVAR(ld_shlibs, $1)=no
338466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    ;;
338566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  openbsd*)
338666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    _LT_AC_TAGVAR(hardcode_direct, $1)=yes
338766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
338866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
338966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
339066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
339166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _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'
339266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
339366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
339466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    fi
339566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    output_verbose_link_cmd='echo'
339666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    ;;
339766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  osf3*)
339866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    case $cc_basename in
339966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      KCC*)
340066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# Kuck and Associates, Inc. (KAI) C++ Compiler
340166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
340266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# KCC will only create a shared library if the output file
340366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# ends with ".so" (or ".sl" for HP-UX), so rename the library
340466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# to its proper name (with version) after linking.
340566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_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'
340666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
340766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
340866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
340966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
341066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# Archives containing C++ object files must be created using
341166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
341266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
341366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
341466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	;;
341566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      RCC*)
341666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# Rational C++ 2.4.1
341766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# FIXME: insert proper C++ library support
341866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(ld_shlibs, $1)=no
341966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	;;
342066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      cxx*)
342166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
342266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_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'
342366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
342466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
342566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
342666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
342766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# Commands to make compiler produce verbose output that lists
342866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# what "hidden" libraries, object files and flags are used when
342966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# linking a shared library.
343066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	#
343166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# There doesn't appear to be a way to prevent this compiler from
343266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# explicitly linking system object files so we need to strip them
343366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# from the output so that they don't get included in the library
343466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# dependencies.
343566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	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'
343666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	;;
343766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      *)
343866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
343966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
344066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  _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'
344166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
344266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
344366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
344466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
344566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  # Commands to make compiler produce verbose output that lists
344666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  # what "hidden" libraries, object files and flags are used when
344766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  # linking a shared library.
344866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
344966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
345066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	else
345166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  # FIXME: insert proper C++ library support
345266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  _LT_AC_TAGVAR(ld_shlibs, $1)=no
345366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	fi
345466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	;;
345566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    esac
345666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    ;;
345766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  osf4* | osf5*)
345866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    case $cc_basename in
345966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      KCC*)
346066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# Kuck and Associates, Inc. (KAI) C++ Compiler
346166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
346266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# KCC will only create a shared library if the output file
346366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# ends with ".so" (or ".sl" for HP-UX), so rename the library
346466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# to its proper name (with version) after linking.
346566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_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'
346666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
346766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
346866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
346966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
347066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# Archives containing C++ object files must be created using
347166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# the KAI C++ compiler.
347266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
347366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	;;
347466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      RCC*)
347566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# Rational C++ 2.4.1
347666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# FIXME: insert proper C++ library support
347766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(ld_shlibs, $1)=no
347866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	;;
347966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      cxx*)
348066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
348166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_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'
348266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
348366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  echo "-hidden">> $lib.exp~
348466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  $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~
348566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  $rm $lib.exp'
348666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
348766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
348866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
348966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
349066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# Commands to make compiler produce verbose output that lists
349166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# what "hidden" libraries, object files and flags are used when
349266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# linking a shared library.
349366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	#
349466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# There doesn't appear to be a way to prevent this compiler from
349566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# explicitly linking system object files so we need to strip them
349666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# from the output so that they don't get included in the library
349766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# dependencies.
349866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	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'
349966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	;;
350066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      *)
350166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
350266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
350366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	 _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'
350466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
350566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
350666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
350766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
350866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  # Commands to make compiler produce verbose output that lists
350966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  # what "hidden" libraries, object files and flags are used when
351066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  # linking a shared library.
351166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
351266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
351366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	else
351466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  # FIXME: insert proper C++ library support
351566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  _LT_AC_TAGVAR(ld_shlibs, $1)=no
351666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	fi
351766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	;;
351866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    esac
351966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    ;;
352066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  psos*)
352166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    # FIXME: insert proper C++ library support
352266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    _LT_AC_TAGVAR(ld_shlibs, $1)=no
352366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    ;;
352466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  sunos4*)
352566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    case $cc_basename in
352666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      CC*)
352766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# Sun C++ 4.x
352866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# FIXME: insert proper C++ library support
352966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(ld_shlibs, $1)=no
353066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	;;
353166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      lcc*)
353266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# Lucid
353366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# FIXME: insert proper C++ library support
353466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(ld_shlibs, $1)=no
353566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	;;
353666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      *)
353766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# FIXME: insert proper C++ library support
353866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(ld_shlibs, $1)=no
353966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	;;
354066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    esac
354166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    ;;
354266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  solaris*)
354366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    case $cc_basename in
354466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      CC*)
354566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# Sun C++ 4.2, 5.x and Centerline C++
354666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman        _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
354766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
354866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
354966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
355066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	$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'
355166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
355266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
355366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
355466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	case $host_os in
355566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
355666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  *)
355766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    # The C++ compiler is used as linker so we must use $wl
355866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    # flag to pass the commands to the underlying system
355966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    # linker. We must also pass each convience library through
356066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    # to the system linker between allextract/defaultextract.
356166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    # The C++ compiler will combine linker options so we
356266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    # cannot just pass the convience library names through
356366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    # without $wl.
356466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    # Supported since Solaris 2.6 (maybe 2.5.1?)
356566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    _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'
356666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    ;;
356766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	esac
356866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
356966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
357066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	output_verbose_link_cmd='echo'
357166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
357266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# Archives containing C++ object files must be created using
357366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
357466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# necessary to make sure instantiated templates are included
357566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# in the archive.
357666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
357766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	;;
357866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      gcx*)
357966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# Green Hills C++ Compiler
358066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
358166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
358266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# The C++ compiler must be used to create the archive.
358366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
358466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	;;
358566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      *)
358666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# GNU C++ compiler with Solaris linker
358766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
358866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
358966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  if $CC --version | grep -v '^2\.7' > /dev/null; then
359066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
359166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
359266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
359366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
359466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    # Commands to make compiler produce verbose output that lists
359566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    # what "hidden" libraries, object files and flags are used when
359666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    # linking a shared library.
359766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
359866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  else
359966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
360066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    # platform.
360166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
360266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
360366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
360466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
360566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    # Commands to make compiler produce verbose output that lists
360666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    # what "hidden" libraries, object files and flags are used when
360766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    # linking a shared library.
360866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
360966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  fi
361066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
361166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
361266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	fi
361366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	;;
361466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    esac
361566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    ;;
361666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
361766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
361866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
361966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
362066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    runpath_var='LD_RUN_PATH'
362166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
362266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    case $cc_basename in
362366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      CC*)
362466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
362566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
362666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	;;
362766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      *)
362866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
362966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
363066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	;;
363166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    esac
363266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    ;;
363366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  sysv5* | sco3.2v5* | sco5v6*)
363466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    # Note: We can NOT use -z defs as we might desire, because we do not
363566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    # link with -lc, and that would cause any symbols used from libc to
363666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    # always be unresolved, which means just about no library would
363766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    # ever link correctly.  If we're not using GNU ld we use -z text
363866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    # though, which does catch some bad symbols but isn't as heavy-handed
363966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    # as -z defs.
364066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    # For security reasons, it is highly recommended that you always
364166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    # use absolute paths for naming shared libraries, and exclude the
364266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    # DT_RUNPATH tag from executables and libraries.  But doing so
364366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    # requires that you compile everything twice, which is a pain.
364466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    # So that behaviour is only enabled if SCOABSPATH is set to a
364566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    # non-empty value in the environment.  Most likely only useful for
364666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    # creating official distributions of packages.
364766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    # This is a hack until libtool officially supports absolute path
364866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    # names for shared libraries.
364966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
365066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
365166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
365266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
365366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
365466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
365566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
365666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
365766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    runpath_var='LD_RUN_PATH'
365866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
365966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    case $cc_basename in
366066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      CC*)
366166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
366266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_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'
366366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	;;
366466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      *)
366566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
366666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_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'
366766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	;;
366866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    esac
366966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    ;;
367066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  tandem*)
367166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    case $cc_basename in
367266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      NCC*)
367366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# NonStop-UX NCC 3.20
367466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# FIXME: insert proper C++ library support
367566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(ld_shlibs, $1)=no
367666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	;;
367766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      *)
367866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# FIXME: insert proper C++ library support
367966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(ld_shlibs, $1)=no
368066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	;;
368166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    esac
368266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    ;;
368366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  vxworks*)
368466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    # FIXME: insert proper C++ library support
368566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    _LT_AC_TAGVAR(ld_shlibs, $1)=no
368666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    ;;
368766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  *)
368866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    # FIXME: insert proper C++ library support
368966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    _LT_AC_TAGVAR(ld_shlibs, $1)=no
369066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    ;;
369166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanesac
369266b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
369366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumantest "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
369466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
369566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman_LT_AC_TAGVAR(GCC, $1)="$GXX"
369666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman_LT_AC_TAGVAR(LD, $1)="$LD"
369766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
369866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman## CAVEAT EMPTOR:
369966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman## There is no encapsulation within the following macros, do not change
370066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman## the running order or otherwise move them around unless you know exactly
370166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman## what you are doing...
370266b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_LIBTOOL_POSTDEP_PREDEP($1)
370366b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_LIBTOOL_PROG_COMPILER_PIC($1)
370466b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_LIBTOOL_PROG_CC_C_O($1)
370566b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
370666b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_LIBTOOL_PROG_LD_SHLIBS($1)
370766b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
370866b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
370966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
371066b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_LIBTOOL_CONFIG($1)
371166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
371266b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_LANG_POP
371366b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanCC=$lt_save_CC
371466b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanLDCXX=$LD
371566b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanLD=$lt_save_LD
371666b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanGCC=$lt_save_GCC
371766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanwith_gnu_ldcxx=$with_gnu_ld
371866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanwith_gnu_ld=$lt_save_with_gnu_ld
371966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanlt_cv_path_LDCXX=$lt_cv_path_LD
372066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanlt_cv_path_LD=$lt_save_path_LD
372166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanlt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
372266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanlt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
372366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman])# AC_LIBTOOL_LANG_CXX_CONFIG
372466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
372566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
372666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# ------------------------------------
372766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Figure out "hidden" library dependencies from verbose
372866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# compiler output when linking a shared library.
372966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Parse the compiler output and extract the necessary
373066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# objects, libraries and library flags.
373166b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
373266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumandnl we can't use the lt_simple_compile_test_code here,
373366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumandnl because it contains code intended for an executable,
373466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumandnl not a library.  It's possible we should let each
373566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumandnl tag define a new lt_????_link_test_code variable,
373666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumandnl but it's only used here...
373766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanifelse([$1],[],[cat > conftest.$ac_ext <<EOF
373866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanint a;
373966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanvoid foo (void) { a = 0; }
374066b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanEOF
374166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
374266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanclass Foo
374366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman{
374466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanpublic:
374566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  Foo (void) { a = 0; }
374666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanprivate:
374766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  int a;
374866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman};
374966b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanEOF
375066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman],[$1],[F77],[cat > conftest.$ac_ext <<EOF
375166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      subroutine foo
375266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      implicit none
375366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      integer*4 a
375466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      a=0
375566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      return
375666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      end
375766b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanEOF
375866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
375966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanpublic class foo {
376066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  private int a;
376166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  public void bar (void) {
376266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    a = 0;
376366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  }
376466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman};
376566b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanEOF
376666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman])
376766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumandnl Parse the compiler output and extract the necessary
376866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumandnl objects, libraries and library flags.
376966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanif AC_TRY_EVAL(ac_compile); then
377066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  # Parse the compiler output and extract the necessary
377166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  # objects, libraries and library flags.
377266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
377366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  # Sentinel used to keep track of whether or not we are before
377466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  # the conftest object file.
377566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  pre_test_object_deps_done=no
377666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
377766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  # The `*' in the case matches for architectures that use `case' in
377866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  # $output_verbose_cmd can trigger glob expansion during the loop
377966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  # eval without this substitution.
378066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
378166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
378266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  for p in `eval $output_verbose_link_cmd`; do
378366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    case $p in
378466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
378566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    -L* | -R* | -l*)
378666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman       # Some compilers place space between "-{L,R}" and the path.
378766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman       # Remove the space.
378866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman       if test $p = "-L" \
378966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  || test $p = "-R"; then
379066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	 prev=$p
379166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	 continue
379266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman       else
379366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	 prev=
379466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman       fi
379566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
379666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman       if test "$pre_test_object_deps_done" = no; then
379766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	 case $p in
379866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	 -L* | -R*)
379966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	   # Internal compiler library paths should come after those
380066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	   # provided the user.  The postdeps already come after the
380166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	   # user supplied libs so there is no need to process them.
380266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	   if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
380366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	     _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
380466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	   else
380566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	     _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
380666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	   fi
380766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	   ;;
380866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	 # The "-l" case would never come before the object being
380966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	 # linked, so don't bother handling this case.
381066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	 esac
381166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman       else
381266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	 if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
381366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	   _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
381466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	 else
381566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	   _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
381666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	 fi
381766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman       fi
381866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman       ;;
381966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
382066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    *.$objext)
382166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman       # This assumes that the test object file only shows up
382266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman       # once in the compiler output.
382366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman       if test "$p" = "conftest.$objext"; then
382466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	 pre_test_object_deps_done=yes
382566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	 continue
382666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman       fi
382766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
382866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman       if test "$pre_test_object_deps_done" = no; then
382966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	 if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
383066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	   _LT_AC_TAGVAR(predep_objects, $1)="$p"
383166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	 else
383266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	   _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
383366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	 fi
383466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman       else
383566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	 if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
383666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	   _LT_AC_TAGVAR(postdep_objects, $1)="$p"
383766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	 else
383866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	   _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
383966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	 fi
384066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman       fi
384166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman       ;;
384266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
384366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    *) ;; # Ignore the rest.
384466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
384566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    esac
384666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  done
384766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
384866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  # Clean up.
384966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  rm -f a.out a.exe
385066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanelse
385166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  echo "libtool.m4: error: problem compiling $1 test program"
385266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanfi
385366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
385466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman$rm -f confest.$objext
385566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
385666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# PORTME: override above test on systems where it is broken
385766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanifelse([$1],[CXX],
385866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman[case $host_os in
385966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumaninterix3*)
386066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  # Interix 3.5 installs completely hosed .la files for C++, so rather than
386166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  # hack all around it, let's just trust "g++" to DTRT.
386266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  _LT_AC_TAGVAR(predep_objects,$1)=
386366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  _LT_AC_TAGVAR(postdep_objects,$1)=
386466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  _LT_AC_TAGVAR(postdeps,$1)=
386566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  ;;
386666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
386766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumansolaris*)
386866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  case $cc_basename in
386966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  CC*)
387066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    # Adding this requires a known-good setup of shared libraries for
387166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    # Sun compiler versions before 5.6, else PIC objects from an old
387266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    # archive will be linked into the output, leading to subtle bugs.
387366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
387466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    ;;
387566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  esac
387666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  ;;
387766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanesac
387866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman])
387966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
388066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumancase " $_LT_AC_TAGVAR(postdeps, $1) " in
388166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
388266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanesac
388366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman])# AC_LIBTOOL_POSTDEP_PREDEP
388466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
388566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# AC_LIBTOOL_LANG_F77_CONFIG
388666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# --------------------------
388766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Ensure that the configuration vars for the C compiler are
388866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# suitably defined.  Those variables are subsequently used by
388966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
389066b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
389166b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_DEFUN([_LT_AC_LANG_F77_CONFIG],
389266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman[AC_REQUIRE([AC_PROG_F77])
389366b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_LANG_PUSH(Fortran 77)
389466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
389566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
389666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman_LT_AC_TAGVAR(allow_undefined_flag, $1)=
389766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman_LT_AC_TAGVAR(always_export_symbols, $1)=no
389866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
389966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
390066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman_LT_AC_TAGVAR(hardcode_direct, $1)=no
390166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
390266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
390366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
390466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
390566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman_LT_AC_TAGVAR(hardcode_automatic, $1)=no
390666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman_LT_AC_TAGVAR(module_cmds, $1)=
390766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman_LT_AC_TAGVAR(module_expsym_cmds, $1)=
390866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
390966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
391066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman_LT_AC_TAGVAR(no_undefined_flag, $1)=
391166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
391266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
391366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
391466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Source file extension for f77 test sources.
391566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanac_ext=f
391666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
391766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Object file extension for compiled f77 test sources.
391866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanobjext=o
391966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman_LT_AC_TAGVAR(objext, $1)=$objext
392066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
392166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Code to be used in simple compile tests
392266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanlt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
392366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
392466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Code to be used in simple link tests
392566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanlt_simple_link_test_code="      program t\n      end\n"
392666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
392766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# ltmain only uses $CC for tagged configurations so make sure $CC is set.
392866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman_LT_AC_SYS_COMPILER
392966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
393066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# save warnings/boilerplate of simple test code
393166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman_LT_COMPILER_BOILERPLATE
393266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman_LT_LINKER_BOILERPLATE
393366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
393466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Allow CC to be a program name with arguments.
393566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanlt_save_CC="$CC"
393666b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanCC=${F77-"f77"}
393766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumancompiler=$CC
393866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman_LT_AC_TAGVAR(compiler, $1)=$CC
393966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman_LT_CC_BASENAME([$compiler])
394066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
394166b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_MSG_CHECKING([if libtool supports shared libraries])
394266b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_MSG_RESULT([$can_build_shared])
394366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
394466b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_MSG_CHECKING([whether to build shared libraries])
394566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumantest "$can_build_shared" = "no" && enable_shared=no
394666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
394766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# On AIX, shared libraries and static libraries use the same namespace, and
394866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# are all built from PIC.
394966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumancase $host_os in
395066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanaix3*)
395166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  test "$enable_shared" = yes && enable_static=no
395266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  if test -n "$RANLIB"; then
395366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    archive_cmds="$archive_cmds~\$RANLIB \$lib"
395466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    postinstall_cmds='$RANLIB $lib'
395566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  fi
395666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  ;;
395766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanaix4* | aix5*)
395866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
395966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    test "$enable_shared" = yes && enable_static=no
396066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  fi
396166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  ;;
396266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanesac
396366b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_MSG_RESULT([$enable_shared])
396466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
396566b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_MSG_CHECKING([whether to build static libraries])
396666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Make sure either enable_shared or enable_static is yes.
396766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumantest "$enable_shared" = yes || enable_static=yes
396866b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_MSG_RESULT([$enable_static])
396966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
397066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman_LT_AC_TAGVAR(GCC, $1)="$G77"
397166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman_LT_AC_TAGVAR(LD, $1)="$LD"
397266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
397366b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_LIBTOOL_PROG_COMPILER_PIC($1)
397466b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_LIBTOOL_PROG_CC_C_O($1)
397566b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
397666b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_LIBTOOL_PROG_LD_SHLIBS($1)
397766b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
397866b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
397966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
398066b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_LIBTOOL_CONFIG($1)
398166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
398266b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_LANG_POP
398366b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanCC="$lt_save_CC"
398466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman])# AC_LIBTOOL_LANG_F77_CONFIG
398566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
398666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
398766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# AC_LIBTOOL_LANG_GCJ_CONFIG
398866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# --------------------------
398966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Ensure that the configuration vars for the C compiler are
399066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# suitably defined.  Those variables are subsequently used by
399166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
399266b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
399366b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
399466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman[AC_LANG_PUSH(C)
399566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
399666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Source file extension for Java test sources.
399766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanac_ext=java
399866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
399966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Object file extension for compiled Java test sources.
400066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanobjext=o
400166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman_LT_AC_TAGVAR(objext, $1)=$objext
400266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
400366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Code to be used in simple compile tests
400466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanlt_simple_compile_test_code="class foo {}\n"
400566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
400666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Code to be used in simple link tests
400766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanlt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n'
400866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
400966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# ltmain only uses $CC for tagged configurations so make sure $CC is set.
401066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman_LT_AC_SYS_COMPILER
401166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
401266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# save warnings/boilerplate of simple test code
401366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman_LT_COMPILER_BOILERPLATE
401466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman_LT_LINKER_BOILERPLATE
401566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
401666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Allow CC to be a program name with arguments.
401766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanlt_save_CC="$CC"
401866b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanCC=${GCJ-"gcj"}
401966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumancompiler=$CC
402066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman_LT_AC_TAGVAR(compiler, $1)=$CC
402166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman_LT_CC_BASENAME([$compiler])
402266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
402366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# GCJ did not exist at the time GCC didn't implicitly link libc in.
402466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
402566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
402666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
402766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
402866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman## CAVEAT EMPTOR:
402966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman## There is no encapsulation within the following macros, do not change
403066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman## the running order or otherwise move them around unless you know exactly
403166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman## what you are doing...
403266b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
403366b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_LIBTOOL_PROG_COMPILER_PIC($1)
403466b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_LIBTOOL_PROG_CC_C_O($1)
403566b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
403666b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_LIBTOOL_PROG_LD_SHLIBS($1)
403766b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
403866b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
403966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
404066b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_LIBTOOL_CONFIG($1)
404166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
404266b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_LANG_POP([])
404366b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanCC="$lt_save_CC"
404466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman])# AC_LIBTOOL_LANG_GCJ_CONFIG
404566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
404666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
404766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# AC_LIBTOOL_LANG_RC_CONFIG
404866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# -------------------------
404966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Ensure that the configuration vars for the Windows resource compiler are
405066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# suitably defined.  Those variables are subsequently used by
405166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
405266b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
405366b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_DEFUN([_LT_AC_LANG_RC_CONFIG],
405466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman[AC_LANG_PUSH(C)
405566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
405666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Source file extension for RC test sources.
405766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanac_ext=rc
405866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
405966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Object file extension for compiled RC test sources.
406066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanobjext=o
406166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman_LT_AC_TAGVAR(objext, $1)=$objext
406266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
406366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Code to be used in simple compile tests
406466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanlt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
406566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
406666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Code to be used in simple link tests
406766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanlt_simple_link_test_code="$lt_simple_compile_test_code"
406866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
406966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# ltmain only uses $CC for tagged configurations so make sure $CC is set.
407066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman_LT_AC_SYS_COMPILER
407166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
407266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# save warnings/boilerplate of simple test code
407366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman_LT_COMPILER_BOILERPLATE
407466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman_LT_LINKER_BOILERPLATE
407566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
407666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Allow CC to be a program name with arguments.
407766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanlt_save_CC="$CC"
407866b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanCC=${RC-"windres"}
407966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumancompiler=$CC
408066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman_LT_AC_TAGVAR(compiler, $1)=$CC
408166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman_LT_CC_BASENAME([$compiler])
408266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
408366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
408466b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_LIBTOOL_CONFIG($1)
408566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
408666b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_LANG_POP([])
408766b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanCC="$lt_save_CC"
408866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman])# AC_LIBTOOL_LANG_RC_CONFIG
408966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
409066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
409166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# AC_LIBTOOL_CONFIG([TAGNAME])
409266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# ----------------------------
409366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# If TAGNAME is not passed, then create an initial libtool script
409466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# with a default configuration from the untagged config vars.  Otherwise
409566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# add code to config.status for appending the configuration named by
409666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# TAGNAME from the matching tagged config vars.
409766b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_DEFUN([AC_LIBTOOL_CONFIG],
409866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman[# The else clause should only fire when bootstrapping the
409966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# libtool distribution, otherwise you forgot to ship ltmain.sh
410066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# with your package, and you will get complaints that there are
410166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# no rules to generate ltmain.sh.
410266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanif test -f "$ltmain"; then
410366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  # See if we are running on zsh, and set the options which allow our commands through
410466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  # without removal of \ escapes.
410566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  if test -n "${ZSH_VERSION+set}" ; then
410666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    setopt NO_GLOB_SUBST
410766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  fi
410866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  # Now quote all the things that may contain metacharacters while being
410966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  # careful not to overquote the AC_SUBSTed values.  We take copies of the
411066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  # variables and quote the copies for generation of the libtool script.
411166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
411266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    SED SHELL STRIP \
411366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
411466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
411566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    deplibs_check_method reload_flag reload_cmds need_locks \
411666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
411766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    lt_cv_sys_global_symbol_to_c_name_address \
411866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
411966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    old_postinstall_cmds old_postuninstall_cmds \
412066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    _LT_AC_TAGVAR(compiler, $1) \
412166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    _LT_AC_TAGVAR(CC, $1) \
412266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    _LT_AC_TAGVAR(LD, $1) \
412366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
412466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
412566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
412666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
412766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
412866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
412966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
413066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
413166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    _LT_AC_TAGVAR(old_archive_cmds, $1) \
413266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
413366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    _LT_AC_TAGVAR(predep_objects, $1) \
413466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    _LT_AC_TAGVAR(postdep_objects, $1) \
413566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    _LT_AC_TAGVAR(predeps, $1) \
413666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    _LT_AC_TAGVAR(postdeps, $1) \
413766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
413866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    _LT_AC_TAGVAR(archive_cmds, $1) \
413966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
414066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    _LT_AC_TAGVAR(postinstall_cmds, $1) \
414166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    _LT_AC_TAGVAR(postuninstall_cmds, $1) \
414266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
414366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    _LT_AC_TAGVAR(allow_undefined_flag, $1) \
414466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    _LT_AC_TAGVAR(no_undefined_flag, $1) \
414566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    _LT_AC_TAGVAR(export_symbols_cmds, $1) \
414666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
414766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
414866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
414966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    _LT_AC_TAGVAR(hardcode_automatic, $1) \
415066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    _LT_AC_TAGVAR(module_cmds, $1) \
415166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    _LT_AC_TAGVAR(module_expsym_cmds, $1) \
415266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
415366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    _LT_AC_TAGVAR(exclude_expsyms, $1) \
415466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    _LT_AC_TAGVAR(include_expsyms, $1); do
415566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
415666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    case $var in
415766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    _LT_AC_TAGVAR(old_archive_cmds, $1) | \
415866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
415966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    _LT_AC_TAGVAR(archive_cmds, $1) | \
416066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
416166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    _LT_AC_TAGVAR(module_cmds, $1) | \
416266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
416366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
416466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
416566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    extract_expsyms_cmds | reload_cmds | finish_cmds | \
416666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    postinstall_cmds | postuninstall_cmds | \
416766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    old_postinstall_cmds | old_postuninstall_cmds | \
416866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
416966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      # Double-quote double-evaled strings.
417066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
417166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      ;;
417266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    *)
417366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
417466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      ;;
417566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    esac
417666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  done
417766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
417866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  case $lt_echo in
417966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  *'\[$]0 --fallback-echo"')
418066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
418166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    ;;
418266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  esac
418366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
418466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanifelse([$1], [],
418566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  [cfgfile="${ofile}T"
418666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
418766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  $rm -f "$cfgfile"
418866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  AC_MSG_NOTICE([creating $ofile])],
418966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  [cfgfile="$ofile"])
419066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
419166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  cat <<__EOF__ >> "$cfgfile"
419266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanifelse([$1], [],
419366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman[#! $SHELL
419466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
419566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
419666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
419766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# NOTE: Changes made to this file will be lost: look at ltmain.sh.
419866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman#
419966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
420066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Free Software Foundation, Inc.
420166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman#
420266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# This file is part of GNU Libtool:
420366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
420466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman#
420566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# This program is free software; you can redistribute it and/or modify
420666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# it under the terms of the GNU General Public License as published by
420766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# the Free Software Foundation; either version 2 of the License, or
420866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# (at your option) any later version.
420966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman#
421066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# This program is distributed in the hope that it will be useful, but
421166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# WITHOUT ANY WARRANTY; without even the implied warranty of
421266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
421366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# General Public License for more details.
421466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman#
421566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# You should have received a copy of the GNU General Public License
421666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# along with this program; if not, write to the Free Software
421766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
421866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman#
421966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# As a special exception to the GNU General Public License, if you
422066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# distribute this file as part of a program that contains a
422166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# configuration script generated by Autoconf, you may include it under
422266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# the same distribution terms that you use for the rest of that program.
422366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
422466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# A sed program that does not truncate output.
422566b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanSED=$lt_SED
422666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
422766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Sed that helps us avoid accidentally triggering echo(1) options like -n.
422866b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanXsed="$SED -e 1s/^X//"
422966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
423066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# The HP-UX ksh and POSIX shell print the target directory to stdout
423166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# if CDPATH is set.
423266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
423366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
423466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# The names of the tagged configurations supported by this script.
423566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanavailable_tags=
423666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
423766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# ### BEGIN LIBTOOL CONFIG],
423866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman[# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
423966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
424066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
424166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
424266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Shell to use when invoking shell scripts.
424366b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanSHELL=$lt_SHELL
424466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
424566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Whether or not to build shared libraries.
424666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanbuild_libtool_libs=$enable_shared
424766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
424866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Whether or not to build static libraries.
424966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanbuild_old_libs=$enable_static
425066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
425166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Whether or not to add -lc for building shared libraries.
425266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanbuild_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
425366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
425466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Whether or not to disallow shared libs when runtime libs are static
425566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanallow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
425666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
425766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Whether or not to optimize for fast installation.
425866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanfast_install=$enable_fast_install
425966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
426066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# The host system.
426166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanhost_alias=$host_alias
426266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanhost=$host
426366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanhost_os=$host_os
426466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
426566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# The build system.
426666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanbuild_alias=$build_alias
426766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanbuild=$build
426866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanbuild_os=$build_os
426966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
427066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# An echo program that does not interpret backslashes.
427166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanecho=$lt_echo
427266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
427366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# The archiver.
427466b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAR=$lt_AR
427566b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAR_FLAGS=$lt_AR_FLAGS
427666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
427766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# A C compiler.
427866b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanLTCC=$lt_LTCC
427966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
428066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# LTCC compiler flags.
428166b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanLTCFLAGS=$lt_LTCFLAGS
428266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
428366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# A language-specific compiler.
428466b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanCC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
428566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
428666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Is the compiler the GNU C compiler?
428766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanwith_gcc=$_LT_AC_TAGVAR(GCC, $1)
428866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
428966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# An ERE matcher.
429066b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanEGREP=$lt_EGREP
429166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
429266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# The linker used to build libraries.
429366b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanLD=$lt_[]_LT_AC_TAGVAR(LD, $1)
429466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
429566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Whether we need hard or soft links.
429666b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanLN_S=$lt_LN_S
429766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
429866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# A BSD-compatible nm program.
429966b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanNM=$lt_NM
430066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
430166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# A symbol stripping program
430266b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanSTRIP=$lt_STRIP
430366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
430466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Used to examine libraries when file_magic_cmd begins "file"
430566b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanMAGIC_CMD=$MAGIC_CMD
430666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
430766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Used on cygwin: DLL creation program.
430866b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanDLLTOOL="$DLLTOOL"
430966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
431066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Used on cygwin: object dumper.
431166b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanOBJDUMP="$OBJDUMP"
431266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
431366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Used on cygwin: assembler.
431466b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAS="$AS"
431566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
431666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# The name of the directory that contains temporary libtool files.
431766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanobjdir=$objdir
431866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
431966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# How to create reloadable object files.
432066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanreload_flag=$lt_reload_flag
432166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanreload_cmds=$lt_reload_cmds
432266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
432366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# How to pass a linker flag through the compiler.
432466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanwl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
432566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
432666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Object file suffix (normally "o").
432766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanobjext="$ac_objext"
432866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
432966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Old archive suffix (normally "a").
433066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanlibext="$libext"
433166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
433266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Shared library suffix (normally ".so").
433366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanshrext_cmds='$shrext_cmds'
433466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
433566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Executable file suffix (normally "").
433666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanexeext="$exeext"
433766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
433866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Additional compiler flags for building library objects.
433966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanpic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
434066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanpic_mode=$pic_mode
434166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
434266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# What is the maximum length of a command?
434366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanmax_cmd_len=$lt_cv_sys_max_cmd_len
434466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
434566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Does compiler simultaneously support -c and -o options?
434666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumancompiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
434766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
434866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Must we lock files when doing compilation?
434966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanneed_locks=$lt_need_locks
435066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
435166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Do we need the lib prefix for modules?
435266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanneed_lib_prefix=$need_lib_prefix
435366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
435466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Do we need a version for libraries?
435566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanneed_version=$need_version
435666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
435766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Whether dlopen is supported.
435866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumandlopen_support=$enable_dlopen
435966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
436066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Whether dlopen of programs is supported.
436166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumandlopen_self=$enable_dlopen_self
436266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
436366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Whether dlopen of statically linked programs is supported.
436466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumandlopen_self_static=$enable_dlopen_self_static
436566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
436666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Compiler flag to prevent dynamic linking.
436766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanlink_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
436866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
436966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Compiler flag to turn off builtin functions.
437066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanno_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
437166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
437266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Compiler flag to allow reflexive dlopens.
437366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanexport_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
437466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
437566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Compiler flag to generate shared objects directly from archives.
437666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanwhole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
437766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
437866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Compiler flag to generate thread-safe objects.
437966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanthread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
438066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
438166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Library versioning type.
438266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanversion_type=$version_type
438366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
438466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Format of library name prefix.
438566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanlibname_spec=$lt_libname_spec
438666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
438766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# List of archive names.  First name is the real one, the rest are links.
438866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# The last name is the one that the linker finds with -lNAME.
438966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanlibrary_names_spec=$lt_library_names_spec
439066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
439166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# The coded name of the library, if different from the real name.
439266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumansoname_spec=$lt_soname_spec
439366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
439466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Commands used to build and install an old-style archive.
439566b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanRANLIB=$lt_RANLIB
439666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanold_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
439766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanold_postinstall_cmds=$lt_old_postinstall_cmds
439866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanold_postuninstall_cmds=$lt_old_postuninstall_cmds
439966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
440066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Create an old-style archive from a shared archive.
440166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanold_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
440266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
440366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Create a temporary old-style archive to link instead of a shared archive.
440466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanold_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
440566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
440666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Commands used to build and install a shared archive.
440766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanarchive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
440866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanarchive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
440966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanpostinstall_cmds=$lt_postinstall_cmds
441066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanpostuninstall_cmds=$lt_postuninstall_cmds
441166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
441266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Commands used to build a loadable module (assumed same as above if empty)
441366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanmodule_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
441466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanmodule_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
441566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
441666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Commands to strip libraries.
441766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanold_striplib=$lt_old_striplib
441866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanstriplib=$lt_striplib
441966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
442066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Dependencies to place before the objects being linked to create a
442166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# shared library.
442266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanpredep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
442366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
442466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Dependencies to place after the objects being linked to create a
442566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# shared library.
442666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanpostdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
442766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
442866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Dependencies to place before the objects being linked to create a
442966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# shared library.
443066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanpredeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
443166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
443266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Dependencies to place after the objects being linked to create a
443366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# shared library.
443466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanpostdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
443566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
443666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# The library search path used internally by the compiler when linking
443766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# a shared library.
443866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumancompiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
443966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
444066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Method to check whether dependent libraries are shared objects.
444166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumandeplibs_check_method=$lt_deplibs_check_method
444266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
444366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Command to use when deplibs_check_method == file_magic.
444466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanfile_magic_cmd=$lt_file_magic_cmd
444566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
444666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Flag that allows shared libraries with undefined symbols to be built.
444766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanallow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
444866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
444966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Flag that forces no undefined symbols.
445066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanno_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
445166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
445266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Commands used to finish a libtool library installation in a directory.
445366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanfinish_cmds=$lt_finish_cmds
445466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
445566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Same as above, but a single script fragment to be evaled but not shown.
445666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanfinish_eval=$lt_finish_eval
445766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
445866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Take the output of nm and produce a listing of raw symbols and C names.
445966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanglobal_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
446066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
446166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Transform the output of nm in a proper C declaration
446266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanglobal_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
446366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
446466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Transform the output of nm in a C name address pair
446566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanglobal_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
446666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
446766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# This is the shared library runtime path variable.
446866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanrunpath_var=$runpath_var
446966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
447066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# This is the shared library path variable.
447166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanshlibpath_var=$shlibpath_var
447266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
447366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Is shlibpath searched before the hard-coded library search path?
447466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanshlibpath_overrides_runpath=$shlibpath_overrides_runpath
447566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
447666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# How to hardcode a shared library path into an executable.
447766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanhardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
447866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
447966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Whether we should hardcode library paths into libraries.
448066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanhardcode_into_libs=$hardcode_into_libs
448166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
448266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Flag to hardcode \$libdir into a binary during linking.
448366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# This must work even if \$libdir does not exist.
448466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanhardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
448566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
448666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# If ld is used when linking, flag to hardcode \$libdir into
448766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# a binary during linking. This must work even if \$libdir does
448866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# not exist.
448966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanhardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
449066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
449166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Whether we need a single -rpath flag with a separated argument.
449266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanhardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
449366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
449466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
449566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# resulting binary.
449666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanhardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
449766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
449866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
449966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# resulting binary.
450066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanhardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
450166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
450266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
450366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# the resulting binary.
450466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanhardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
450566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
450666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Set to yes if building a shared library automatically hardcodes DIR into the library
450766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# and all subsequent libraries and executables linked against it.
450866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanhardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
450966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
451066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Variables whose values should be saved in libtool wrapper scripts and
451166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# restored at relink time.
451266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanvariables_saved_for_relink="$variables_saved_for_relink"
451366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
451466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Whether libtool must link a program against all its dependency libraries.
451566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanlink_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
451666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
451766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Compile-time system search path for libraries
451866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumansys_lib_search_path_spec=$lt_sys_lib_search_path_spec
451966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
452066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Run-time system search path for libraries
452166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumansys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
452266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
452366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Fix the shell variable \$srcfile for the compiler.
452466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanfix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
452566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
452666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Set to yes if exported symbols are required.
452766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanalways_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
452866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
452966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# The commands to list exported symbols.
453066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanexport_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
453166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
453266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# The commands to extract the exported symbol list from a shared archive.
453366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanextract_expsyms_cmds=$lt_extract_expsyms_cmds
453466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
453566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Symbols that should not be listed in the preloaded symbols.
453666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanexclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
453766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
453866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Symbols that must always be exported.
453966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumaninclude_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
454066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
454166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanifelse([$1],[],
454266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman[# ### END LIBTOOL CONFIG],
454366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman[# ### END LIBTOOL TAG CONFIG: $tagname])
454466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
454566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman__EOF__
454666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
454766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanifelse([$1],[], [
454866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  case $host_os in
454966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  aix3*)
455066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    cat <<\EOF >> "$cfgfile"
455166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
455266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# AIX sometimes has problems with the GCC collect2 program.  For some
455366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# reason, if we set the COLLECT_NAMES environment variable, the problems
455466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# vanish in a puff of smoke.
455566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanif test "X${COLLECT_NAMES+set}" != Xset; then
455666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  COLLECT_NAMES=
455766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  export COLLECT_NAMES
455866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanfi
455966b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanEOF
456066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    ;;
456166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  esac
456266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
456366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  # We use sed instead of cat because bash on DJGPP gets confused if
456466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
456566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  # text mode, it properly converts lines to CR/LF.  This bash problem
456666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  # is reportedly fixed, but why not run on old versions too?
456766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
456866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
456966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  mv -f "$cfgfile" "$ofile" || \
457066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
457166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  chmod +x "$ofile"
457266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman])
457366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanelse
457466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  # If there is no Makefile yet, we rely on a make rule to execute
457566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  # `config.status --recheck' to rerun these tests and create the
457666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  # libtool script then.
457766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
457866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  if test -f "$ltmain_in"; then
457966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    test -f Makefile && make "$ltmain"
458066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  fi
458166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanfi
458266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman])# AC_LIBTOOL_CONFIG
458366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
458466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
458566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
458666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# -------------------------------------------
458766b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
458866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
458966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
459066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
459166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
459266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanif test "$GCC" = yes; then
459366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
459466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
459566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
459666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    lt_cv_prog_compiler_rtti_exceptions,
459766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    [-fno-rtti -fno-exceptions], [],
459866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
459966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanfi
460066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
460166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
460266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
460366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
460466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# ---------------------------------
460566b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
460666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman[AC_REQUIRE([AC_CANONICAL_HOST])
460766b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_REQUIRE([AC_PROG_NM])
460866b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_REQUIRE([AC_OBJEXT])
460966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Check for command to grab the raw symbol name followed by C symbol from nm.
461066b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_MSG_CHECKING([command to parse $NM output from $compiler object])
461166b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
461266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman[
461366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# These are sane defaults that work on at least a few old systems.
461466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
461566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
461666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Character class describing NM global symbol codes.
461766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumansymcode='[[BCDEGRST]]'
461866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
461966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Regexp to match symbols that can be accessed directly from C.
462066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumansympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
462166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
462266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Transform an extracted symbol line into a proper C declaration
462366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanlt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
462466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
462566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Transform an extracted symbol line into symbol name and symbol address
462666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanlt_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'"
462766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
462866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Define system-specific variables.
462966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumancase $host_os in
463066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanaix*)
463166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  symcode='[[BCDT]]'
463266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  ;;
463366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumancygwin* | mingw* | pw32*)
463466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  symcode='[[ABCDGISTW]]'
463566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  ;;
463666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanhpux*) # Its linker distinguishes data from code symbols
463766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  if test "$host_cpu" = ia64; then
463866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    symcode='[[ABCDEGRST]]'
463966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  fi
464066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
464166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  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'"
464266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  ;;
464366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanlinux*)
464466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  if test "$host_cpu" = ia64; then
464566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    symcode='[[ABCDGIRSTW]]'
464666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
464766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    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'"
464866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  fi
464966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  ;;
465066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanirix* | nonstopux*)
465166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  symcode='[[BCDEGRST]]'
465266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  ;;
465366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanosf*)
465466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  symcode='[[BCDEGQRST]]'
465566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  ;;
465666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumansolaris*)
465766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  symcode='[[BDRT]]'
465866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  ;;
465966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumansco3.2v5*)
466066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  symcode='[[DT]]'
466166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  ;;
466266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumansysv4.2uw2*)
466366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  symcode='[[DT]]'
466466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  ;;
466566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumansysv5* | sco5v6* | unixware* | OpenUNIX*)
466666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  symcode='[[ABDT]]'
466766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  ;;
466866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumansysv4)
466966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  symcode='[[DFNSTU]]'
467066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  ;;
467166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanesac
467266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
467366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Handle CRLF in mingw tool chain
467466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanopt_cr=
467566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumancase $build_os in
467666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanmingw*)
467766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
467866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  ;;
467966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanesac
468066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
468166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# If we're using GNU nm, then use its standard symbol codes.
468266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumancase `$NM -V 2>&1` in
468366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman*GNU* | *'with BFD'*)
468466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  symcode='[[ABCDGIRSTW]]' ;;
468566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanesac
468666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
468766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Try without a prefix undercore, then with it.
468866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanfor ac_symprfx in "" "_"; do
468966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
469066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
469166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  symxfrm="\\1 $ac_symprfx\\2 \\2"
469266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
469366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  # Write the raw and C identifiers.
469466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ 	]]\($symcode$symcode*\)[[ 	]][[ 	]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
469566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
469666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  # Check to see that the pipe works correctly.
469766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  pipe_works=no
469866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
469966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  rm -f conftest*
470066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  cat > conftest.$ac_ext <<EOF
470166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman#ifdef __cplusplus
470266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanextern "C" {
470366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman#endif
470466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanchar nm_test_var;
470566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanvoid nm_test_func(){}
470666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman#ifdef __cplusplus
470766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman}
470866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman#endif
470966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanint main(){nm_test_var='a';nm_test_func();return(0);}
471066b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanEOF
471166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
471266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  if AC_TRY_EVAL(ac_compile); then
471366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    # Now try to grab the symbols.
471466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    nlist=conftest.nm
471566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
471666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      # Try sorting and uniquifying the output.
471766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      if sort "$nlist" | uniq > "$nlist"T; then
471866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	mv -f "$nlist"T "$nlist"
471966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      else
472066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	rm -f "$nlist"T
472166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      fi
472266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
472366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      # Make sure that we snagged all the symbols we need.
472466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      if grep ' nm_test_var$' "$nlist" >/dev/null; then
472566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	if grep ' nm_test_func$' "$nlist" >/dev/null; then
472666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  cat <<EOF > conftest.$ac_ext
472766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman#ifdef __cplusplus
472866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanextern "C" {
472966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman#endif
473066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
473166b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanEOF
473266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  # Now generate the symbol file.
473366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
473466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
473566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  cat <<EOF >> conftest.$ac_ext
473666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman#if defined (__STDC__) && __STDC__
473766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# define lt_ptr_t void *
473866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman#else
473966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# define lt_ptr_t char *
474066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# define const
474166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman#endif
474266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
474366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman/* The mapping between symbol names and symbols. */
474466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanconst struct {
474566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  const char *name;
474666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  lt_ptr_t address;
474766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman}
474866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanlt_preloaded_symbols[[]] =
474966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman{
475066b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanEOF
475166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
475266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  cat <<\EOF >> conftest.$ac_ext
475366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  {0, (lt_ptr_t) 0}
475466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman};
475566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
475666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman#ifdef __cplusplus
475766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman}
475866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman#endif
475966b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanEOF
476066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  # Now try linking the two files.
476166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  mv conftest.$ac_objext conftstm.$ac_objext
476266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  lt_save_LIBS="$LIBS"
476366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  lt_save_CFLAGS="$CFLAGS"
476466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  LIBS="conftstm.$ac_objext"
476566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
476666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
476766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    pipe_works=yes
476866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  fi
476966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  LIBS="$lt_save_LIBS"
477066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  CFLAGS="$lt_save_CFLAGS"
477166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	else
477266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
477366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	fi
477466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      else
477566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
477666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      fi
477766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    else
477866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
477966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    fi
478066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  else
478166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
478266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    cat conftest.$ac_ext >&5
478366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  fi
478466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  rm -f conftest* conftst*
478566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
478666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  # Do not use the global_symbol_pipe unless it works.
478766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  if test "$pipe_works" = yes; then
478866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    break
478966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  else
479066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    lt_cv_sys_global_symbol_pipe=
479166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  fi
479266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumandone
479366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman])
479466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanif test -z "$lt_cv_sys_global_symbol_pipe"; then
479566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  lt_cv_sys_global_symbol_to_cdecl=
479666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanfi
479766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanif test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
479866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  AC_MSG_RESULT(failed)
479966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanelse
480066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  AC_MSG_RESULT(ok)
480166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanfi
480266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
480366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
480466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
480566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
480666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# ---------------------------------------
480766b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
480866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
480966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
481066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
481166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
481266b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_MSG_CHECKING([for $compiler option to produce PIC])
481366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman ifelse([$1],[CXX],[
481466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  # C++ specific cases for pic, static, wl, etc.
481566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  if test "$GXX" = yes; then
481666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
481766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
481866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
481966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    case $host_os in
482066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    aix*)
482166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      # All AIX code is PIC.
482266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      if test "$host_cpu" = ia64; then
482366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# AIX 5 now supports IA64 processor
482466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
482566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      fi
482666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      ;;
482766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    amigaos*)
482866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      # FIXME: we need at least 68020 code to build shared libraries, but
482966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      # adding the `-m68020' flag to GCC prevents building anything better,
483066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      # like `-m68040'.
483166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
483266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      ;;
483366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
483466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      # PIC is the default for these OSes.
483566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      ;;
483666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    mingw* | os2* | pw32*)
483766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      # This hack is so that the source file can tell whether it is being
483866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      # built for inclusion in a dll (and should export symbols for example).
483966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
484066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      ;;
484166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    darwin* | rhapsody*)
484266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      # PIC is the default on this platform
484366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      # Common symbols not allowed in MH_DYLIB files
484466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
484566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      ;;
484666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    *djgpp*)
484766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      # DJGPP does not support shared libraries at all
484866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
484966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      ;;
485066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    interix3*)
485166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
485266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      # Instead, we relocate shared libraries at runtime.
485366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      ;;
485466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    sysv4*MP*)
485566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      if test -d /usr/nec; then
485666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
485766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      fi
485866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      ;;
485966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    hpux*)
486066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
486166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      # not for PA HP-UX.
486266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      case $host_cpu in
486366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      hppa*64*|ia64*)
486466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	;;
486566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      *)
486666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
486766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	;;
486866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      esac
486966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      ;;
487066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    *)
487166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
487266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      ;;
487366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    esac
487466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  else
487566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    case $host_os in
487666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      aix4* | aix5*)
487766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# All AIX code is PIC.
487866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	if test "$host_cpu" = ia64; then
487966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  # AIX 5 now supports IA64 processor
488066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
488166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	else
488266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
488366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	fi
488466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	;;
488566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      chorus*)
488666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	case $cc_basename in
488766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	cxch68*)
488866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  # Green Hills C++ Compiler
488966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  # _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"
489066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  ;;
489166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	esac
489266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	;;
489366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman       darwin*)
489466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman         # PIC is the default on this platform
489566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman         # Common symbols not allowed in MH_DYLIB files
489666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman         case $cc_basename in
489766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman           xlc*)
489866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman           _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
489966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman           _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
490066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman           ;;
490166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman         esac
490266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman       ;;
490366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      dgux*)
490466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	case $cc_basename in
490566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  ec++*)
490666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
490766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    ;;
490866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  ghcx*)
490966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    # Green Hills C++ Compiler
491066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
491166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    ;;
491266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  *)
491366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    ;;
491466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	esac
491566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	;;
491666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      freebsd* | kfreebsd*-gnu | dragonfly*)
491766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# FreeBSD uses GNU C++
491866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	;;
491966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      hpux9* | hpux10* | hpux11*)
492066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	case $cc_basename in
492166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  CC*)
492266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
492366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
492466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    if test "$host_cpu" != ia64; then
492566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
492666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    fi
492766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    ;;
492866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  aCC*)
492966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
493066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
493166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    case $host_cpu in
493266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    hppa*64*|ia64*)
493366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	      # +Z the default
493466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	      ;;
493566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    *)
493666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
493766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	      ;;
493866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    esac
493966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    ;;
494066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  *)
494166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    ;;
494266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	esac
494366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	;;
494466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      interix*)
494566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# This is c89, which is MS Visual C++ (no shared libs)
494666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# Anyone wants to do a port?
494766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	;;
494866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      irix5* | irix6* | nonstopux*)
494966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	case $cc_basename in
495066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  CC*)
495166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
495266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
495366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    # CC pic flag -KPIC is the default.
495466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    ;;
495566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  *)
495666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    ;;
495766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	esac
495866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	;;
495966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      linux*)
496066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	case $cc_basename in
496166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  KCC*)
496266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    # KAI C++ Compiler
496366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
496466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
496566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    ;;
496666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  icpc* | ecpc*)
496766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    # Intel C++
496866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
496966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
497066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
497166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    ;;
497266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  pgCC*)
497366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    # Portland Group C++ compiler.
497466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
497566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
497666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
497766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    ;;
497866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  cxx*)
497966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    # Compaq C++
498066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    # Make sure the PIC flag is empty.  It appears that all Alpha
498166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    # Linux and Compaq Tru64 Unix objects are PIC.
498266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
498366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
498466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    ;;
498566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  *)
498666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    ;;
498766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	esac
498866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	;;
498966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      lynxos*)
499066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	;;
499166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      m88k*)
499266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	;;
499366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      mvs*)
499466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	case $cc_basename in
499566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  cxx*)
499666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
499766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    ;;
499866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  *)
499966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    ;;
500066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	esac
500166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	;;
500266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      netbsd*)
500366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	;;
500466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      osf3* | osf4* | osf5*)
500566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	case $cc_basename in
500666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  KCC*)
500766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
500866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    ;;
500966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  RCC*)
501066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    # Rational C++ 2.4.1
501166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
501266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    ;;
501366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  cxx*)
501466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    # Digital/Compaq C++
501566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
501666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    # Make sure the PIC flag is empty.  It appears that all Alpha
501766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    # Linux and Compaq Tru64 Unix objects are PIC.
501866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
501966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
502066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    ;;
502166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  *)
502266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    ;;
502366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	esac
502466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	;;
502566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      psos*)
502666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	;;
502766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      solaris*)
502866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	case $cc_basename in
502966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  CC*)
503066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    # Sun C++ 4.2, 5.x and Centerline C++
503166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
503266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
503366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
503466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    ;;
503566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  gcx*)
503666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    # Green Hills C++ Compiler
503766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
503866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    ;;
503966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  *)
504066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    ;;
504166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	esac
504266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	;;
504366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      sunos4*)
504466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	case $cc_basename in
504566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  CC*)
504666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    # Sun C++ 4.x
504766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
504866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
504966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    ;;
505066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  lcc*)
505166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    # Lucid
505266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
505366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    ;;
505466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  *)
505566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    ;;
505666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	esac
505766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	;;
505866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      tandem*)
505966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	case $cc_basename in
506066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  NCC*)
506166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    # NonStop-UX NCC 3.20
506266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
506366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    ;;
506466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  *)
506566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    ;;
506666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	esac
506766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	;;
506866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
506966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	case $cc_basename in
507066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  CC*)
507166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
507266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
507366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
507466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    ;;
507566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	esac
507666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	;;
507766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      vxworks*)
507866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	;;
507966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      *)
508066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
508166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	;;
508266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    esac
508366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  fi
508466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman],
508566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman[
508666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  if test "$GCC" = yes; then
508766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
508866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
508966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
509066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    case $host_os in
509166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      aix*)
509266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      # All AIX code is PIC.
509366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      if test "$host_cpu" = ia64; then
509466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# AIX 5 now supports IA64 processor
509566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
509666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      fi
509766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      ;;
509866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
509966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    amigaos*)
510066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      # FIXME: we need at least 68020 code to build shared libraries, but
510166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      # adding the `-m68020' flag to GCC prevents building anything better,
510266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      # like `-m68040'.
510366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
510466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      ;;
510566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
510666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
510766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      # PIC is the default for these OSes.
510866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      ;;
510966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
511066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    mingw* | pw32* | os2*)
511166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      # This hack is so that the source file can tell whether it is being
511266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      # built for inclusion in a dll (and should export symbols for example).
511366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
511466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      ;;
511566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
511666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    darwin* | rhapsody*)
511766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      # PIC is the default on this platform
511866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      # Common symbols not allowed in MH_DYLIB files
511966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
512066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      ;;
512166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
512266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    interix3*)
512366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
512466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      # Instead, we relocate shared libraries at runtime.
512566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      ;;
512666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
512766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    msdosdjgpp*)
512866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      # Just because we use GCC doesn't mean we suddenly get shared libraries
512966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      # on systems that don't support them.
513066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
513166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      enable_shared=no
513266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      ;;
513366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
513466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    sysv4*MP*)
513566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      if test -d /usr/nec; then
513666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
513766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      fi
513866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      ;;
513966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
514066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    hpux*)
514166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
514266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      # not for PA HP-UX.
514366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      case $host_cpu in
514466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      hppa*64*|ia64*)
514566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# +Z the default
514666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	;;
514766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      *)
514866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
514966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	;;
515066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      esac
515166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      ;;
515266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
515366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    *)
515466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
515566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      ;;
515666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    esac
515766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  else
515866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    # PORTME Check for flag to pass linker flags through the system compiler.
515966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    case $host_os in
516066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    aix*)
516166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
516266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      if test "$host_cpu" = ia64; then
516366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# AIX 5 now supports IA64 processor
516466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
516566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      else
516666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
516766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      fi
516866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      ;;
516966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      darwin*)
517066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman        # PIC is the default on this platform
517166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman        # Common symbols not allowed in MH_DYLIB files
517266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman       case $cc_basename in
517366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman         xlc*)
517466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman         _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
517566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman         _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
517666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman         ;;
517766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman       esac
517866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman       ;;
517966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
518066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    mingw* | pw32* | os2*)
518166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      # This hack is so that the source file can tell whether it is being
518266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      # built for inclusion in a dll (and should export symbols for example).
518366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
518466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      ;;
518566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
518666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    hpux9* | hpux10* | hpux11*)
518766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
518866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
518966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      # not for PA HP-UX.
519066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      case $host_cpu in
519166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      hppa*64*|ia64*)
519266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# +Z the default
519366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	;;
519466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      *)
519566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
519666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	;;
519766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      esac
519866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      # Is there a better lt_prog_compiler_static that works with the bundled CC?
519966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
520066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      ;;
520166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
520266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    irix5* | irix6* | nonstopux*)
520366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
520466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      # PIC (with -KPIC) is the default.
520566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
520666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      ;;
520766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
520866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    newsos6)
520966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
521066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
521166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      ;;
521266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
521366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    linux*)
521466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      case $cc_basename in
521566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      icc* | ecc*)
521666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
521766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
521866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
521966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman        ;;
522066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      pgcc* | pgf77* | pgf90* | pgf95*)
522166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman        # Portland Group compilers (*not* the Pentium gcc compiler,
522266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# which looks to be a dead project)
522366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
522466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
522566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
522666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman        ;;
522766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      ccc*)
522866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
522966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman        # All Alpha code is PIC.
523066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
523166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman        ;;
523266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      esac
523366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      ;;
523466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
523566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    osf3* | osf4* | osf5*)
523666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
523766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      # All OSF/1 code is PIC.
523866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
523966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      ;;
524066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
524166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    solaris*)
524266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
524366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
524466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      case $cc_basename in
524566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      f77* | f90* | f95*)
524666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
524766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      *)
524866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
524966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      esac
525066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      ;;
525166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
525266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    sunos4*)
525366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
525466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
525566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
525666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      ;;
525766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
525866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    sysv4 | sysv4.2uw2* | sysv4.3*)
525966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
526066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
526166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
526266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      ;;
526366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
526466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    sysv4*MP*)
526566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      if test -d /usr/nec ;then
526666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
526766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
526866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      fi
526966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      ;;
527066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
527166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
527266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
527366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
527466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
527566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      ;;
527666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
527766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    unicos*)
527866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
527966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
528066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      ;;
528166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
528266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    uts4*)
528366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
528466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
528566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      ;;
528666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
528766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    *)
528866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
528966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      ;;
529066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    esac
529166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  fi
529266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman])
529366b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
529466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
529566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman#
529666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Check to make sure the PIC flag actually works.
529766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman#
529866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanif test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
529966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
530066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
530166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
530266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
530366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman     "" | " "*) ;;
530466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman     *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
530566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman     esac],
530666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
530766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman     _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
530866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanfi
530966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumancase $host_os in
531066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  # For platforms which do not support PIC, -DPIC is meaningless:
531166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  *djgpp*)
531266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
531366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    ;;
531466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  *)
531566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
531666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    ;;
531766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanesac
531866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
531966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman#
532066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Check to make sure the static flag actually works.
532166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman#
532266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanwl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
532366b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
532466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
532566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  $lt_tmp_static_flag,
532666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  [],
532766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
532866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman])
532966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
533066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
533166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
533266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# ------------------------------------
533366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# See if the linker supports building shared libraries.
533466b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
533566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
533666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanifelse([$1],[CXX],[
533766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
533866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  case $host_os in
533966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  aix4* | aix5*)
534066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    # If we're using GNU nm, then we don't want the "-C" option.
534166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    # -C means demangle to AIX nm, but means don't demangle with GNU nm
534266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
534366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _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'
534466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    else
534566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _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'
534666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    fi
534766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    ;;
534866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  pw32*)
534966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
535066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  ;;
535166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  cygwin* | mingw*)
535266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    _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'
535366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  ;;
535466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  *)
535566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
535666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  ;;
535766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  esac
535866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman],[
535966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  runpath_var=
536066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  _LT_AC_TAGVAR(allow_undefined_flag, $1)=
536166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
536266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  _LT_AC_TAGVAR(archive_cmds, $1)=
536366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
536466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
536566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
536666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
536766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
536866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  _LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
536966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
537066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
537166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
537266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  _LT_AC_TAGVAR(hardcode_direct, $1)=no
537366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
537466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
537566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
537666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  _LT_AC_TAGVAR(hardcode_automatic, $1)=no
537766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  _LT_AC_TAGVAR(module_cmds, $1)=
537866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  _LT_AC_TAGVAR(module_expsym_cmds, $1)=
537966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  _LT_AC_TAGVAR(always_export_symbols, $1)=no
538066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
538166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  # include_expsyms should be a list of space-separated symbols to be *always*
538266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  # included in the symbol list
538366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  _LT_AC_TAGVAR(include_expsyms, $1)=
538466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  # exclude_expsyms can be an extended regexp of symbols to exclude
538566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  # it will be wrapped by ` (' and `)$', so one must not match beginning or
538666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
538766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  # as well as any symbol that contains `d'.
538866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
538966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
539066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  # platforms (ab)use it in PIC code, but their linkers get confused if
539166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  # the symbol is explicitly referenced.  Since portable code cannot
539266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  # rely on this symbol name, it's probably fine to never include it in
539366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  # preloaded symbol tables.
539466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  extract_expsyms_cmds=
539566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  # Just being paranoid about ensuring that cc_basename is set.
539666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  _LT_CC_BASENAME([$compiler])
539766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  case $host_os in
539866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  cygwin* | mingw* | pw32*)
539966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    # FIXME: the MSVC++ port hasn't been tested in a loooong time
540066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    # When not using gcc, we currently assume that we are using
540166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    # Microsoft Visual C++.
540266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    if test "$GCC" != yes; then
540366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      with_gnu_ld=no
540466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    fi
540566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    ;;
540666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  interix*)
540766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    # we just hope/assume this is gcc and not c89 (= MSVC++)
540866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    with_gnu_ld=yes
540966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    ;;
541066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  openbsd*)
541166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    with_gnu_ld=no
541266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    ;;
541366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  esac
541466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
541566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  _LT_AC_TAGVAR(ld_shlibs, $1)=yes
541666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  if test "$with_gnu_ld" = yes; then
541766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    # If archive_cmds runs LD, not CC, wlarc should be empty
541866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    wlarc='${wl}'
541966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
542066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    # Set some defaults for GNU ld with shared library support. These
542166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    # are reset later if shared libraries are not supported. Putting them
542266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    # here allows them to be overridden if necessary.
542366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    runpath_var=LD_RUN_PATH
542466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
542566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
542666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    # ancient GNU ld didn't support --whole-archive et. al.
542766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
542866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
542966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      else
543066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  	_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
543166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    fi
543266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    supports_anon_versioning=no
543366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    case `$LD -v 2>/dev/null` in
543466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
543566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
543666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
543766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      *\ 2.11.*) ;; # other 2.11 versions
543866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      *) supports_anon_versioning=yes ;;
543966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    esac
544066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
544166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    # See if GNU ld supports shared libraries.
544266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    case $host_os in
544366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    aix3* | aix4* | aix5*)
544466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      # On AIX/PPC, the GNU linker is very broken
544566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      if test "$host_cpu" != ia64; then
544666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(ld_shlibs, $1)=no
544766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	cat <<EOF 1>&2
544866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
544966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman*** Warning: the GNU linker, at least up to release 2.9.1, is reported
545066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman*** to be unable to reliably create shared libraries on AIX.
545166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman*** Therefore, libtool is disabling shared libraries support.  If you
545266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman*** really care for shared libraries, you may want to modify your PATH
545366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman*** so that a non-GNU linker is found, and then restart.
545466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
545566b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanEOF
545666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      fi
545766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      ;;
545866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
545966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    amigaos*)
546066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _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)'
546166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
546266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
546366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
546466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
546566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      # that the semantics of dynamic libraries on AmigaOS, at least up
546666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      # to version 4, is to share data among multiple programs linked
546766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      # with the same dynamic library.  Since this doesn't match the
546866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      # behavior of shared libraries on other platforms, we can't use
546966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      # them.
547066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(ld_shlibs, $1)=no
547166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      ;;
547266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
547366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    beos*)
547466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
547566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
547666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
547766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# support --undefined.  This deserves some investigation.  FIXME
547866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
547966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      else
548066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(ld_shlibs, $1)=no
548166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      fi
548266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      ;;
548366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
548466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    cygwin* | mingw* | pw32*)
548566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
548666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      # as there is no search path for DLLs.
548766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
548866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
548966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(always_export_symbols, $1)=no
549066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
549166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _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'
549266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
549366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
549466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman        _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'
549566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# If the export-symbols file already is a .def file (1st line
549666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# is EXPORTS), use it as is; otherwise, prepend...
549766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
549866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  cp $export_symbols $output_objdir/$soname.def;
549966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	else
550066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  echo EXPORTS > $output_objdir/$soname.def;
550166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  cat $export_symbols >> $output_objdir/$soname.def;
550266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	fi~
550366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
550466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      else
550566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(ld_shlibs, $1)=no
550666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      fi
550766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      ;;
550866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
550966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    interix3*)
551066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(hardcode_direct, $1)=no
551166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
551266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
551366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
551466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
551566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      # Instead, shared libraries are loaded at an image base (0x10000000 by
551666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      # default) and relocated if they conflict, which is a slow very memory
551766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      # consuming and fragmenting process.  To avoid this, we pick a random,
551866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
551966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
552066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _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'
552166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _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'
552266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      ;;
552366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
552466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    linux*)
552566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
552666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	tmp_addflag=
552766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	case $cc_basename,$host_cpu in
552866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	pgcc*)				# Portland Group C compiler
552966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  _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'
553066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  tmp_addflag=' $pic_flag'
553166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  ;;
553266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
553366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  _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'
553466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  tmp_addflag=' $pic_flag -Mnomain' ;;
553566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
553666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  tmp_addflag=' -i_dynamic' ;;
553766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
553866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  tmp_addflag=' -i_dynamic -nofor_main' ;;
553966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	ifc* | ifort*)			# Intel Fortran compiler
554066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  tmp_addflag=' -nofor_main' ;;
554166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	esac
554266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
554366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
554466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	if test $supports_anon_versioning = yes; then
554566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
554666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
554766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  $echo "local: *; };" >> $output_objdir/$libname.ver~
554866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
554966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	fi
555066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      else
555166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(ld_shlibs, $1)=no
555266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      fi
555366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      ;;
555466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
555566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    netbsd*)
555666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
555766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
555866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	wlarc=
555966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      else
556066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
556166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_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'
556266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      fi
556366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      ;;
556466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
556566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    solaris*)
556666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
556766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(ld_shlibs, $1)=no
556866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	cat <<EOF 1>&2
556966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
557066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman*** Warning: The releases 2.8.* of the GNU linker cannot reliably
557166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman*** create shared libraries on Solaris systems.  Therefore, libtool
557266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman*** is disabling shared libraries support.  We urge you to upgrade GNU
557366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman*** binutils to release 2.9.1 or newer.  Another option is to modify
557466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman*** your PATH or compiler configuration so that the native linker is
557566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman*** used, and then restart.
557666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
557766b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanEOF
557866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
557966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
558066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_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'
558166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      else
558266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(ld_shlibs, $1)=no
558366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      fi
558466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      ;;
558566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
558666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
558766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      case `$LD -v 2>&1` in
558866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman        *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) 
558966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(ld_shlibs, $1)=no
559066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	cat <<_LT_EOF 1>&2
559166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
559266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
559366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman*** reliably create shared libraries on SCO systems.  Therefore, libtool
559466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman*** is disabling shared libraries support.  We urge you to upgrade GNU
559566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
559666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman*** your PATH or compiler configuration so that the native linker is
559766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman*** used, and then restart.
559866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
559966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman_LT_EOF
560066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	;;
560166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	*)
560266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
560366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
560466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
560566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    _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'
560666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  else
560766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    _LT_AC_TAGVAR(ld_shlibs, $1)=no
560866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  fi
560966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	;;
561066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      esac
561166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      ;;
561266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
561366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    sunos4*)
561466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
561566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      wlarc=
561666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
561766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
561866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      ;;
561966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
562066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    *)
562166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
562266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
562366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_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'
562466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      else
562566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(ld_shlibs, $1)=no
562666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      fi
562766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      ;;
562866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    esac
562966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
563066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
563166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      runpath_var=
563266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
563366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
563466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
563566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    fi
563666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  else
563766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    # PORTME fill in a description of your system's linker (not GNU ld)
563866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    case $host_os in
563966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    aix3*)
564066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
564166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(always_export_symbols, $1)=yes
564266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _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'
564366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      # Note: this linker hardcodes the directories in LIBPATH if there
564466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      # are no directories specified by -L.
564566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
564666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
564766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# Neither direct hardcoding nor static linking is supported with a
564866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# broken collect2.
564966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
565066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      fi
565166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      ;;
565266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
565366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    aix4* | aix5*)
565466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      if test "$host_cpu" = ia64; then
565566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# On IA64, the linker does run time linking by default, so we don't
565666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# have to do anything special.
565766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	aix_use_runtimelinking=no
565866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	exp_sym_flag='-Bexport'
565966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	no_entry_flag=""
566066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      else
566166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# If we're using GNU nm, then we don't want the "-C" option.
566266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# -C means demangle to AIX nm, but means don't demangle with GNU nm
566366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
566466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  _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'
566566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	else
566666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  _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'
566766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	fi
566866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	aix_use_runtimelinking=no
566966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
567066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# Test if we are trying to use run time linking or normal
567166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
567266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# need to do runtime linking.
567366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
567466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  for ld_flag in $LDFLAGS; do
567566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
567666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  	    aix_use_runtimelinking=yes
567766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  	    break
567866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  	  fi
567966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  done
568066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  ;;
568166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	esac
568266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
568366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	exp_sym_flag='-bexport'
568466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	no_entry_flag='-bnoentry'
568566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      fi
568666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
568766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      # When large executables or shared objects are built, AIX ld can
568866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      # have problems creating the table of contents.  If linking a library
568966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      # or program results in "error TOC overflow" add -mminimal-toc to
569066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
569166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
569266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
569366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(archive_cmds, $1)=''
569466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
569566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
569666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
569766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
569866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      if test "$GCC" = yes; then
569966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	case $host_os in aix4.[[012]]|aix4.[[012]].*)
570066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# We only want to do this on AIX 4.2 and lower, the check
570166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# below for broken collect2 doesn't work under 4.3+
570266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  collect2name=`${CC} -print-prog-name=collect2`
570366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  if test -f "$collect2name" && \
570466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
570566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  then
570666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  	  # We have reworked collect2
570766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  	  _LT_AC_TAGVAR(hardcode_direct, $1)=yes
570866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  else
570966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  	  # We have old collect2
571066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  	  _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
571166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  	  # It fails to find uninstalled libraries when the uninstalled
571266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  	  # path is not listed in the libpath.  Setting hardcode_minus_L
571366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  	  # to unsupported forces relinking
571466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  	  _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
571566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  	  _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
571666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  	  _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
571766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  fi
571866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  ;;
571966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	esac
572066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	shared_flag='-shared'
572166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	if test "$aix_use_runtimelinking" = yes; then
572266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  shared_flag="$shared_flag "'${wl}-G'
572366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	fi
572466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      else
572566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# not using gcc
572666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	if test "$host_cpu" = ia64; then
572766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
572866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  	# chokes on -Wl,-G. The following line is correct:
572966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  shared_flag='-G'
573066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	else
573166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  if test "$aix_use_runtimelinking" = yes; then
573266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    shared_flag='${wl}-G'
573366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  else
573466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	    shared_flag='${wl}-bM:SRE'
573566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  fi
573666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	fi
573766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      fi
573866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
573966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      # It seems that -bexpall does not export symbols beginning with
574066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      # underscore (_), so it is better to generate a list of symbols to export.
574166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(always_export_symbols, $1)=yes
574266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      if test "$aix_use_runtimelinking" = yes; then
574366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# Warning - without using the other runtime loading flags (-brtl),
574466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# -berok will link without error, but may produce a broken library.
574566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
574666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman       # Determine the default libpath from the value encoded in an empty executable.
574766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman       _LT_AC_SYS_LIBPATH_AIX
574866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
574966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_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"
575066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman       else
575166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	if test "$host_cpu" = ia64; then
575266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
575366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
575466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  _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"
575566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	else
575666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	 # Determine the default libpath from the value encoded in an empty executable.
575766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	 _LT_AC_SYS_LIBPATH_AIX
575866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
575966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  # Warning - without using the other run time loading flags,
576066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  # -berok will link without error, but may produce a broken library.
576166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
576266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
576366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  # Exported symbols can be pulled into shared objects from archives
576466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
576566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
576666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  # This is similar to how AIX traditionally builds its shared libraries.
576766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  _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'
576866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	fi
576966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      fi
577066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      ;;
577166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
577266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    amigaos*)
577366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _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)'
577466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
577566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
577666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      # see comment about different semantics on the GNU ld section
577766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(ld_shlibs, $1)=no
577866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      ;;
577966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
578066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    bsdi[[45]]*)
578166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
578266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      ;;
578366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
578466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    cygwin* | mingw* | pw32*)
578566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      # When not using gcc, we currently assume that we are using
578666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      # Microsoft Visual C++.
578766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      # hardcode_libdir_flag_spec is actually meaningless, as there is
578866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      # no search path for DLLs.
578966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
579066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
579166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      # Tell ltmain to make .lib files, not .a files.
579266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      libext=lib
579366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      # Tell ltmain to make .dll files, not .so files.
579466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      shrext_cmds=".dll"
579566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      # FIXME: Setting linknames here is a bad hack.
579666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
579766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      # The linker will automatically build a .lib file if we build a DLL.
579866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
579966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      # FIXME: Should let the user specify the lib program.
580066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
580166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
580266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
580366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      ;;
580466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
580566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    darwin* | rhapsody*)
580666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      case $host_os in
580766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman        rhapsody* | darwin1.[[012]])
580866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman         _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
580966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman         ;;
581066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman       *) # Darwin 1.3 on
581166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
581266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman           _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
581366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman         else
581466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman           case ${MACOSX_DEPLOYMENT_TARGET} in
581566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman             10.[[012]])
581666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
581766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman               ;;
581866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman             10.*)
581966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
582066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman               ;;
582166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman           esac
582266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman         fi
582366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman         ;;
582466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      esac
582566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
582666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(hardcode_direct, $1)=no
582766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
582866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
582966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
583066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
583166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    if test "$GCC" = yes ; then
583266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    	output_verbose_link_cmd='echo'
583366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
583466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
583566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
583666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _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}'
583766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _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}'
583866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    else
583966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      case $cc_basename in
584066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman        xlc*)
584166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman         output_verbose_link_cmd='echo'
584266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman         _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'
584366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman         _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
584466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
584566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman         _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}'
584666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman          _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}'
584766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman          ;;
584866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman       *)
584966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman         _LT_AC_TAGVAR(ld_shlibs, $1)=no
585066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman          ;;
585166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      esac
585266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    fi
585366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      ;;
585466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
585566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    dgux*)
585666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
585766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
585866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
585966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      ;;
586066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
586166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    freebsd1*)
586266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(ld_shlibs, $1)=no
586366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      ;;
586466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
586566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
586666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    # support.  Future versions do this automatically, but an explicit c++rt0.o
586766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    # does not break anything, and helps significantly (at the cost of a little
586866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    # extra space).
586966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    freebsd2.2*)
587066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
587166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
587266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
587366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
587466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      ;;
587566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
587666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
587766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    freebsd2*)
587866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
587966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
588066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
588166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
588266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      ;;
588366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
588466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
588566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    freebsd* | kfreebsd*-gnu | dragonfly*)
588666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
588766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
588866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
588966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
589066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      ;;
589166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
589266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    hpux9*)
589366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      if test "$GCC" = yes; then
589466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_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'
589566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      else
589666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_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'
589766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      fi
589866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
589966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
590066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
590166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
590266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      # hardcode_minus_L: Not really in the search PATH,
590366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      # but as the default location of the library.
590466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
590566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
590666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      ;;
590766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
590866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    hpux10*)
590966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
591066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
591166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      else
591266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
591366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      fi
591466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      if test "$with_gnu_ld" = no; then
591566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
591666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
591766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
591866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(hardcode_direct, $1)=yes
591966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
592066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
592166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# hardcode_minus_L: Not really in the search PATH,
592266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# but as the default location of the library.
592366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
592466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      fi
592566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      ;;
592666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
592766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    hpux11*)
592866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
592966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	case $host_cpu in
593066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	hppa*64*)
593166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
593266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  ;;
593366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	ia64*)
593466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
593566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  ;;
593666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	*)
593766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
593866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  ;;
593966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	esac
594066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      else
594166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	case $host_cpu in
594266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	hppa*64*)
594366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
594466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  ;;
594566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	ia64*)
594666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
594766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  ;;
594866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	*)
594966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
595066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  ;;
595166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	esac
595266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      fi
595366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      if test "$with_gnu_ld" = no; then
595466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
595566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
595666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
595766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	case $host_cpu in
595866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	hppa*64*|ia64*)
595966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
596066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  _LT_AC_TAGVAR(hardcode_direct, $1)=no
596166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
596266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  ;;
596366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	*)
596466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  _LT_AC_TAGVAR(hardcode_direct, $1)=yes
596566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
596666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
596766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  # hardcode_minus_L: Not really in the search PATH,
596866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  # but as the default location of the library.
596966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
597066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  ;;
597166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	esac
597266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      fi
597366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      ;;
597466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
597566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    irix5* | irix6* | nonstopux*)
597666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      if test "$GCC" = yes; then
597766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_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'
597866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      else
597966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_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'
598066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
598166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      fi
598266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
598366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
598466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
598566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      ;;
598666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
598766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    netbsd*)
598866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
598966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
599066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      else
599166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
599266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      fi
599366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
599466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
599566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
599666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      ;;
599766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
599866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    newsos6)
599966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
600066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
600166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
600266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
600366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
600466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      ;;
600566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
600666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    openbsd*)
600766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
600866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
600966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
601066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
601166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
601266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
601366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
601466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      else
601566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman       case $host_os in
601666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	 openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
601766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	   _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
601866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	   _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
601966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	   ;;
602066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	 *)
602166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	   _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
602266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	   _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
602366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	   ;;
602466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman       esac
602566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      fi
602666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      ;;
602766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
602866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    os2*)
602966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
603066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
603166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
603266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _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'
603366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
603466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      ;;
603566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
603666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    osf3*)
603766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      if test "$GCC" = yes; then
603866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
603966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_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'
604066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      else
604166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
604266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_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'
604366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      fi
604466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
604566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
604666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      ;;
604766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
604866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    osf4* | osf5*)	# as osf3* with the addition of -msym flag
604966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      if test "$GCC" = yes; then
605066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
605166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_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'
605266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
605366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      else
605466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
605566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_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'
605666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_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~
605766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	$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'
605866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
605966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# Both c and cxx compiler support -rpath directly
606066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
606166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      fi
606266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
606366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      ;;
606466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
606566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    solaris*)
606666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
606766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      if test "$GCC" = yes; then
606866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	wlarc='${wl}'
606966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
607066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
607166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
607266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      else
607366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	wlarc=''
607466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
607566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
607666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
607766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      fi
607866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
607966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
608066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      case $host_os in
608166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
608266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      *)
608366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman 	# The compiler driver will combine linker options so we
608466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman 	# cannot just pass the convience library names through
608566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman 	# without $wl, iff we do not link with $LD.
608666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman 	# Luckily, gcc supports the same syntax we need for Sun Studio.
608766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman 	# Supported since Solaris 2.6 (maybe 2.5.1?)
608866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman 	case $wlarc in
608966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman 	'')
609066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman 	  _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
609166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman 	*)
609266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman 	  _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' ;;
609366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman 	esac ;;
609466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      esac
609566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
609666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      ;;
609766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
609866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    sunos4*)
609966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      if test "x$host_vendor" = xsequent; then
610066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# Use $CC to link under sequent, because it throws in some extra .o
610166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# files that make .init and .fini sections work.
610266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
610366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      else
610466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
610566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      fi
610666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
610766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
610866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
610966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
611066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      ;;
611166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
611266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    sysv4)
611366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      case $host_vendor in
611466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	sni)
611566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
611666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
611766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	;;
611866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	siemens)
611966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  ## LD is ld it makes a PLAMLIB
612066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  ## CC just makes a GrossModule.
612166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
612266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
612366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  _LT_AC_TAGVAR(hardcode_direct, $1)=no
612466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman        ;;
612566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	motorola)
612666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
612766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
612866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	;;
612966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      esac
613066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      runpath_var='LD_RUN_PATH'
613166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
613266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      ;;
613366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
613466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    sysv4.3*)
613566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
613666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
613766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
613866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      ;;
613966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
614066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    sysv4*MP*)
614166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      if test -d /usr/nec; then
614266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
614366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
614466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	runpath_var=LD_RUN_PATH
614566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	hardcode_runpath_var=yes
614666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(ld_shlibs, $1)=yes
614766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      fi
614866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      ;;
614966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
615066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7*)
615166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
615266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
615366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
615466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      runpath_var='LD_RUN_PATH'
615566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
615666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      if test "$GCC" = yes; then
615766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
615866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
615966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      else
616066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
616166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
616266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      fi
616366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      ;;
616466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
616566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    sysv5* | sco3.2v5* | sco5v6*)
616666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      # Note: We can NOT use -z defs as we might desire, because we do not
616766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      # link with -lc, and that would cause any symbols used from libc to
616866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      # always be unresolved, which means just about no library would
616966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      # ever link correctly.  If we're not using GNU ld we use -z text
617066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      # though, which does catch some bad symbols but isn't as heavy-handed
617166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      # as -z defs.
617266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
617366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
617466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
617566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
617666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
617766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
617866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
617966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
618066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      runpath_var='LD_RUN_PATH'
618166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
618266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      if test "$GCC" = yes; then
618366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
618466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_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'
618566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      else
618666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
618766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	_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'
618866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      fi
618966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      ;;
619066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
619166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    uts4*)
619266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
619366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
619466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
619566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      ;;
619666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
619766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    *)
619866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      _LT_AC_TAGVAR(ld_shlibs, $1)=no
619966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      ;;
620066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    esac
620166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  fi
620266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman])
620366b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
620466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumantest "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
620566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
620666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman#
620766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Do we need to explicitly link libc?
620866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman#
620966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumancase "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
621066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanx|xyes)
621166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  # Assume -lc should be added
621266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
621366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
621466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  if test "$enable_shared" = yes && test "$GCC" = yes; then
621566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    case $_LT_AC_TAGVAR(archive_cmds, $1) in
621666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    *'~'*)
621766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      # FIXME: we may have to deal with multi-command sequences.
621866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      ;;
621966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    '$CC '*)
622066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      # Test whether the compiler implicitly links with -lc since on some
622166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      # systems, -lgcc has to come before -lc. If gcc already passes -lc
622266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      # to ld, don't add -lc before -lgcc.
622366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      AC_MSG_CHECKING([whether -lc should be explicitly linked in])
622466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      $rm conftest*
622566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
622666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
622766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
622866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman        soname=conftest
622966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman        lib=conftest
623066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman        libobjs=conftest.$ac_objext
623166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman        deplibs=
623266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman        wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
623366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
623466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman        compiler_flags=-v
623566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman        linker_flags=-v
623666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman        verstring=
623766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman        output_objdir=.
623866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman        libname=conftest
623966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman        lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
624066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman        _LT_AC_TAGVAR(allow_undefined_flag, $1)=
624166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman        if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
624266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman        then
624366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
624466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman        else
624566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
624666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman        fi
624766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman        _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
624866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      else
624966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman        cat conftest.err 1>&5
625066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      fi
625166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      $rm conftest*
625266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
625366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      ;;
625466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    esac
625566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  fi
625666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  ;;
625766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanesac
625866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman])# AC_LIBTOOL_PROG_LD_SHLIBS
625966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
626066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
626166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# _LT_AC_FILE_LTDLL_C
626266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# -------------------
626366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Be careful that the start marker always follows a newline.
626466b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_DEFUN([_LT_AC_FILE_LTDLL_C], [
626566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# /* ltdll.c starts here */
626666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# #define WIN32_LEAN_AND_MEAN
626766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# #include <windows.h>
626866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# #undef WIN32_LEAN_AND_MEAN
626966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# #include <stdio.h>
627066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman#
627166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# #ifndef __CYGWIN__
627266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# #  ifdef __CYGWIN32__
627366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# #    define __CYGWIN__ __CYGWIN32__
627466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# #  endif
627566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# #endif
627666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman#
627766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# #ifdef __cplusplus
627866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# extern "C" {
627966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# #endif
628066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
628166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# #ifdef __cplusplus
628266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# }
628366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# #endif
628466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman#
628566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# #ifdef __CYGWIN__
628666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# #include <cygwin/cygwin_dll.h>
628766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# DECLARE_CYGWIN_DLL( DllMain );
628866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# #endif
628966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# HINSTANCE __hDllInstance_base;
629066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman#
629166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# BOOL APIENTRY
629266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
629366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# {
629466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman#   __hDllInstance_base = hInst;
629566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman#   return TRUE;
629666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# }
629766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# /* ltdll.c ends here */
629866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman])# _LT_AC_FILE_LTDLL_C
629966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
630066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
630166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
630266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# ---------------------------------
630366b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
630466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
630566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
630666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# old names
630766b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_DEFUN([AM_PROG_LIBTOOL],   [AC_PROG_LIBTOOL])
630866b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_DEFUN([AM_ENABLE_SHARED],  [AC_ENABLE_SHARED($@)])
630966b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_DEFUN([AM_ENABLE_STATIC],  [AC_ENABLE_STATIC($@)])
631066b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
631166b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
631266b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_DEFUN([AM_PROG_LD],        [AC_PROG_LD])
631366b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_DEFUN([AM_PROG_NM],        [AC_PROG_NM])
631466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
631566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# This is just to silence aclocal about the macro not being used
631666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanifelse([AC_DISABLE_FAST_INSTALL])
631766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
631866b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_DEFUN([LT_AC_PROG_GCJ],
631966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman[AC_CHECK_TOOL(GCJ, gcj, no)
632066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
632166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  AC_SUBST(GCJFLAGS)
632266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman])
632366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
632466b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_DEFUN([LT_AC_PROG_RC],
632566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman[AC_CHECK_TOOL(RC, windres, no)
632666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman])
632766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
632866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman############################################################
632966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# NOTE: This macro has been submitted for inclusion into   #
633066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman#  GNU Autoconf as AC_PROG_SED.  When it is available in   #
633166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman#  a released version of Autoconf we should remove this    #
633266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman#  macro and use it instead.                               #
633366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman############################################################
633466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# LT_AC_PROG_SED
633566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# --------------
633666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Check for a fully-functional sed program, that truncates
633766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# as few characters as possible.  Prefer GNU sed if found.
633866b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_DEFUN([LT_AC_PROG_SED],
633966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman[AC_MSG_CHECKING([for a sed that does not truncate output])
634066b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_CACHE_VAL(lt_cv_path_SED,
634166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman[# Loop through the user's path and test for sed and gsed.
634266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Then use that list of sed's as ones to test for truncation.
634366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
634466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanfor as_dir in $PATH
634566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumando
634666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  IFS=$as_save_IFS
634766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  test -z "$as_dir" && as_dir=.
634866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  for lt_ac_prog in sed gsed; do
634966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    for ac_exec_ext in '' $ac_executable_extensions; do
635066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
635166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
635266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      fi
635366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    done
635466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  done
635566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumandone
635666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanlt_ac_max=0
635766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanlt_ac_count=0
635866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Add /usr/xpg4/bin/sed as it is typically found on Solaris
635966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# along with /bin/sed that truncates output.
636066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanfor lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
636166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  test ! -f $lt_ac_sed && continue
636266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  cat /dev/null > conftest.in
636366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  lt_ac_count=0
636466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
636566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  # Check for GNU sed and select it if it is found.
636666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
636766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    lt_cv_path_SED=$lt_ac_sed
636866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    break
636966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  fi
637066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  while true; do
637166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    cat conftest.in conftest.in >conftest.tmp
637266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    mv conftest.tmp conftest.in
637366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    cp conftest.in conftest.nl
637466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    echo >>conftest.nl
637566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
637666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    cmp -s conftest.out conftest.nl || break
637766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    # 10000 chars as input seems more than enough
637866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    test $lt_ac_count -gt 10 && break
637966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    lt_ac_count=`expr $lt_ac_count + 1`
638066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    if test $lt_ac_count -gt $lt_ac_max; then
638166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      lt_ac_max=$lt_ac_count
638266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman      lt_cv_path_SED=$lt_ac_sed
638366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    fi
638466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  done
638566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumandone
638666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman])
638766b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanSED=$lt_cv_path_SED
638866b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanAC_MSG_RESULT([$SED])
638966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman])
6390