xref: /sqlite-3.40.0/aclocal.m4 (revision 6acb2cf6)
1*6acb2cf6Svapier# generated automatically by aclocal 1.10.2 -*- Autoconf -*-
271eb93eaSdrh
37f19c02fSvapier# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4636a995dSmlcreech# 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
562507b65Sa.rottmann# This file is free software; the Free Software Foundation
662507b65Sa.rottmann# gives unlimited permission to copy and/or distribute it,
762507b65Sa.rottmann# with or without modifications, as long as this notice is preserved.
871eb93eaSdrh
962507b65Sa.rottmann# This program is distributed in the hope that it will be useful,
1062507b65Sa.rottmann# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
1162507b65Sa.rottmann# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
1262507b65Sa.rottmann# PARTICULAR PURPOSE.
1371eb93eaSdrh
149bc8b93fSa.rottmann# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
15636a995dSmlcreech#
16636a995dSmlcreech#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17636a995dSmlcreech#                 2006, 2007, 2008 Free Software Foundation, Inc.
18636a995dSmlcreech#   Written by Gordon Matzigkeit, 1996
19636a995dSmlcreech#
20636a995dSmlcreech# This file is free software; the Free Software Foundation gives
21636a995dSmlcreech# unlimited permission to copy and/or distribute it, with or without
22636a995dSmlcreech# modifications, as long as this notice is preserved.
2371eb93eaSdrh
24636a995dSmlcreechm4_define([_LT_COPYING], [dnl
25636a995dSmlcreech#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
26636a995dSmlcreech#                 2006, 2007, 2008 Free Software Foundation, Inc.
27636a995dSmlcreech#   Written by Gordon Matzigkeit, 1996
28636a995dSmlcreech#
29636a995dSmlcreech#   This file is part of GNU Libtool.
30636a995dSmlcreech#
31636a995dSmlcreech# GNU Libtool is free software; you can redistribute it and/or
32636a995dSmlcreech# modify it under the terms of the GNU General Public License as
33636a995dSmlcreech# published by the Free Software Foundation; either version 2 of
34636a995dSmlcreech# the License, or (at your option) any later version.
35636a995dSmlcreech#
36636a995dSmlcreech# As a special exception to the GNU General Public License,
37636a995dSmlcreech# if you distribute this file as part of a program or library that
38636a995dSmlcreech# is built using GNU Libtool, you may include this file under the
39636a995dSmlcreech# same distribution terms that you use for the rest of that program.
40636a995dSmlcreech#
41636a995dSmlcreech# GNU Libtool is distributed in the hope that it will be useful,
42636a995dSmlcreech# but WITHOUT ANY WARRANTY; without even the implied warranty of
43636a995dSmlcreech# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
44636a995dSmlcreech# GNU General Public License for more details.
45636a995dSmlcreech#
46636a995dSmlcreech# You should have received a copy of the GNU General Public License
47636a995dSmlcreech# along with GNU Libtool; see the file COPYING.  If not, a copy
48636a995dSmlcreech# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
49636a995dSmlcreech# obtained by writing to the Free Software Foundation, Inc.,
50636a995dSmlcreech# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
51636a995dSmlcreech])
52636a995dSmlcreech
53636a995dSmlcreech# serial 56 LT_INIT
5471eb93eaSdrh
559bc8b93fSa.rottmann
56636a995dSmlcreech# LT_PREREQ(VERSION)
57636a995dSmlcreech# ------------------
58636a995dSmlcreech# Complain and exit if this libtool version is less that VERSION.
59636a995dSmlcreechm4_defun([LT_PREREQ],
60636a995dSmlcreech[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
61636a995dSmlcreech       [m4_default([$3],
62636a995dSmlcreech		   [m4_fatal([Libtool version $1 or higher is required],
63636a995dSmlcreech		             63)])],
64636a995dSmlcreech       [$2])])
659bc8b93fSa.rottmann
669bc8b93fSa.rottmann
67636a995dSmlcreech# _LT_CHECK_BUILDDIR
68636a995dSmlcreech# ------------------
69636a995dSmlcreech# Complain if the absolute build directory name contains unusual characters
70636a995dSmlcreechm4_defun([_LT_CHECK_BUILDDIR],
71636a995dSmlcreech[case `pwd` in
72636a995dSmlcreech  *\ * | *\	*)
73636a995dSmlcreech    AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
74636a995dSmlcreechesac
75636a995dSmlcreech])
769bc8b93fSa.rottmann
779bc8b93fSa.rottmann
78636a995dSmlcreech# LT_INIT([OPTIONS])
79636a995dSmlcreech# ------------------
80636a995dSmlcreechAC_DEFUN([LT_INIT],
81636a995dSmlcreech[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
82636a995dSmlcreechAC_BEFORE([$0], [LT_LANG])dnl
83636a995dSmlcreechAC_BEFORE([$0], [LT_OUTPUT])dnl
84636a995dSmlcreechAC_BEFORE([$0], [LTDL_INIT])dnl
85636a995dSmlcreechm4_require([_LT_CHECK_BUILDDIR])dnl
86636a995dSmlcreech
87636a995dSmlcreechdnl Autoconf doesn't catch unexpanded LT_ macros by default:
88636a995dSmlcreechm4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
89636a995dSmlcreechm4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
90636a995dSmlcreechdnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
91636a995dSmlcreechdnl unless we require an AC_DEFUNed macro:
92636a995dSmlcreechAC_REQUIRE([LTOPTIONS_VERSION])dnl
93636a995dSmlcreechAC_REQUIRE([LTSUGAR_VERSION])dnl
94636a995dSmlcreechAC_REQUIRE([LTVERSION_VERSION])dnl
95636a995dSmlcreechAC_REQUIRE([LTOBSOLETE_VERSION])dnl
96636a995dSmlcreechm4_require([_LT_PROG_LTMAIN])dnl
97636a995dSmlcreech
98636a995dSmlcreechdnl Parse OPTIONS
99636a995dSmlcreech_LT_SET_OPTIONS([$0], [$1])
10071eb93eaSdrh
10171eb93eaSdrh# This can be used to rebuild libtool when needed
102636a995dSmlcreechLIBTOOL_DEPS="$ltmain"
10371eb93eaSdrh
10471eb93eaSdrh# Always use our own libtool.
10571eb93eaSdrhLIBTOOL='$(SHELL) $(top_builddir)/libtool'
10671eb93eaSdrhAC_SUBST(LIBTOOL)dnl
10771eb93eaSdrh
108636a995dSmlcreech_LT_SETUP
109636a995dSmlcreech
110636a995dSmlcreech# Only expand once:
111636a995dSmlcreechm4_define([LT_INIT])
112636a995dSmlcreech])# LT_INIT
113636a995dSmlcreech
114636a995dSmlcreech# Old names:
115636a995dSmlcreechAU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
116636a995dSmlcreechAU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
117636a995dSmlcreechdnl aclocal-1.4 backwards compatibility:
118636a995dSmlcreechdnl AC_DEFUN([AC_PROG_LIBTOOL], [])
119636a995dSmlcreechdnl AC_DEFUN([AM_PROG_LIBTOOL], [])
12071eb93eaSdrh
1219bc8b93fSa.rottmann
122636a995dSmlcreech# _LT_CC_BASENAME(CC)
123636a995dSmlcreech# -------------------
124636a995dSmlcreech# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
125636a995dSmlcreechm4_defun([_LT_CC_BASENAME],
126636a995dSmlcreech[for cc_temp in $1""; do
127636a995dSmlcreech  case $cc_temp in
128636a995dSmlcreech    compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
129636a995dSmlcreech    distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
130636a995dSmlcreech    \-*) ;;
131636a995dSmlcreech    *) break;;
132636a995dSmlcreech  esac
133636a995dSmlcreechdone
134636a995dSmlcreechcc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
135636a995dSmlcreech])
136636a995dSmlcreech
137636a995dSmlcreech
138636a995dSmlcreech# _LT_FILEUTILS_DEFAULTS
139636a995dSmlcreech# ----------------------
140636a995dSmlcreech# It is okay to use these file commands and assume they have been set
141636a995dSmlcreech# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
142636a995dSmlcreechm4_defun([_LT_FILEUTILS_DEFAULTS],
143636a995dSmlcreech[: ${CP="cp -f"}
144636a995dSmlcreech: ${MV="mv -f"}
145636a995dSmlcreech: ${RM="rm -f"}
146636a995dSmlcreech])# _LT_FILEUTILS_DEFAULTS
147636a995dSmlcreech
148636a995dSmlcreech
149636a995dSmlcreech# _LT_SETUP
150636a995dSmlcreech# ---------
151636a995dSmlcreechm4_defun([_LT_SETUP],
152636a995dSmlcreech[AC_REQUIRE([AC_CANONICAL_HOST])dnl
15371eb93eaSdrhAC_REQUIRE([AC_CANONICAL_BUILD])dnl
154636a995dSmlcreech_LT_DECL([], [host_alias], [0], [The host system])dnl
155636a995dSmlcreech_LT_DECL([], [host], [0])dnl
156636a995dSmlcreech_LT_DECL([], [host_os], [0])dnl
15771eb93eaSdrhdnl
158636a995dSmlcreech_LT_DECL([], [build_alias], [0], [The build system])dnl
159636a995dSmlcreech_LT_DECL([], [build], [0])dnl
160636a995dSmlcreech_LT_DECL([], [build_os], [0])dnl
161636a995dSmlcreechdnl
162636a995dSmlcreechAC_REQUIRE([AC_PROG_CC])dnl
163636a995dSmlcreechAC_REQUIRE([LT_PATH_LD])dnl
164636a995dSmlcreechAC_REQUIRE([LT_PATH_NM])dnl
165636a995dSmlcreechdnl
166636a995dSmlcreechAC_REQUIRE([AC_PROG_LN_S])dnl
167636a995dSmlcreechtest -z "$LN_S" && LN_S="ln -s"
168636a995dSmlcreech_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
169636a995dSmlcreechdnl
170636a995dSmlcreechAC_REQUIRE([LT_CMD_MAX_LEN])dnl
171636a995dSmlcreech_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
172636a995dSmlcreech_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
173636a995dSmlcreechdnl
174636a995dSmlcreechm4_require([_LT_FILEUTILS_DEFAULTS])dnl
175636a995dSmlcreechm4_require([_LT_CHECK_SHELL_FEATURES])dnl
176636a995dSmlcreechm4_require([_LT_CMD_RELOAD])dnl
177636a995dSmlcreechm4_require([_LT_CHECK_MAGIC_METHOD])dnl
178636a995dSmlcreechm4_require([_LT_CMD_OLD_ARCHIVE])dnl
179636a995dSmlcreechm4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
18071eb93eaSdrh
181636a995dSmlcreech_LT_CONFIG_LIBTOOL_INIT([
182636a995dSmlcreech# See if we are running on zsh, and set the options which allow our
183636a995dSmlcreech# commands through without removal of \ escapes INIT.
184636a995dSmlcreechif test -n "\${ZSH_VERSION+set}" ; then
185636a995dSmlcreech   setopt NO_GLOB_SUBST
186636a995dSmlcreechfi
187636a995dSmlcreech])
188636a995dSmlcreechif test -n "${ZSH_VERSION+set}" ; then
189636a995dSmlcreech   setopt NO_GLOB_SUBST
190636a995dSmlcreechfi
1919bc8b93fSa.rottmann
192636a995dSmlcreech_LT_CHECK_OBJDIR
193636a995dSmlcreech
194636a995dSmlcreechm4_require([_LT_TAG_COMPILER])dnl
195636a995dSmlcreech_LT_PROG_ECHO_BACKSLASH
1969bc8b93fSa.rottmann
1979bc8b93fSa.rottmanncase $host_os in
1989bc8b93fSa.rottmannaix3*)
1999bc8b93fSa.rottmann  # AIX sometimes has problems with the GCC collect2 program.  For some
2009bc8b93fSa.rottmann  # reason, if we set the COLLECT_NAMES environment variable, the problems
2019bc8b93fSa.rottmann  # vanish in a puff of smoke.
2029bc8b93fSa.rottmann  if test "X${COLLECT_NAMES+set}" != Xset; then
2039bc8b93fSa.rottmann    COLLECT_NAMES=
2049bc8b93fSa.rottmann    export COLLECT_NAMES
2059bc8b93fSa.rottmann  fi
2069bc8b93fSa.rottmann  ;;
2079bc8b93fSa.rottmannesac
2089bc8b93fSa.rottmann
2099bc8b93fSa.rottmann# Sed substitution that helps us do robust quoting.  It backslashifies
2109bc8b93fSa.rottmann# metacharacters that are still active within double-quoted strings.
211636a995dSmlcreechsed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
2129bc8b93fSa.rottmann
2139bc8b93fSa.rottmann# Same as above, but do not quote variable references.
214636a995dSmlcreechdouble_quote_subst='s/\([["`\\]]\)/\\\1/g'
2159bc8b93fSa.rottmann
2169bc8b93fSa.rottmann# Sed substitution to delay expansion of an escaped shell variable in a
2179bc8b93fSa.rottmann# double_quote_subst'ed string.
2189bc8b93fSa.rottmanndelay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2199bc8b93fSa.rottmann
220636a995dSmlcreech# Sed substitution to delay expansion of an escaped single quote.
221636a995dSmlcreechdelay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
222636a995dSmlcreech
2239bc8b93fSa.rottmann# Sed substitution to avoid accidental globbing in evaled expressions
2249bc8b93fSa.rottmannno_glob_subst='s/\*/\\\*/g'
2259bc8b93fSa.rottmann
2269bc8b93fSa.rottmann# Global variables:
227636a995dSmlcreechofile=libtool
2289bc8b93fSa.rottmanncan_build_shared=yes
2299bc8b93fSa.rottmann
2307f19c02fSvapier# All known linkers require a `.a' archive for static linking (except MSVC,
2319bc8b93fSa.rottmann# which needs '.lib').
2329bc8b93fSa.rottmannlibext=a
2339bc8b93fSa.rottmann
234636a995dSmlcreechwith_gnu_ld="$lt_cv_prog_gnu_ld"
2359bc8b93fSa.rottmann
2369bc8b93fSa.rottmannold_CC="$CC"
2379bc8b93fSa.rottmannold_CFLAGS="$CFLAGS"
2389bc8b93fSa.rottmann
2399bc8b93fSa.rottmann# Set sane defaults for various variables
2409bc8b93fSa.rottmanntest -z "$CC" && CC=cc
2419bc8b93fSa.rottmanntest -z "$LTCC" && LTCC=$CC
2427f19c02fSvapiertest -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
2439bc8b93fSa.rottmanntest -z "$LD" && LD=ld
2449bc8b93fSa.rottmanntest -z "$ac_objext" && ac_objext=o
2459bc8b93fSa.rottmann
2467f19c02fSvapier_LT_CC_BASENAME([$compiler])
2477f19c02fSvapier
24871eb93eaSdrh# Only perform the check for file, if the check method requires it
249636a995dSmlcreechtest -z "$MAGIC_CMD" && MAGIC_CMD=file
25071eb93eaSdrhcase $deplibs_check_method in
25171eb93eaSdrhfile_magic*)
25271eb93eaSdrh  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
253636a995dSmlcreech    _LT_PATH_MAGIC
25471eb93eaSdrh  fi
25571eb93eaSdrh  ;;
25671eb93eaSdrhesac
25771eb93eaSdrh
2589bc8b93fSa.rottmann# Use C for the default configuration in the libtool script
259636a995dSmlcreechLT_SUPPORTED_TAG([CC])
260636a995dSmlcreech_LT_LANG_C_CONFIG
261636a995dSmlcreech_LT_LANG_DEFAULT_CONFIG
262636a995dSmlcreech_LT_CONFIG_COMMANDS
263636a995dSmlcreech])# _LT_SETUP
26471eb93eaSdrh
26571eb93eaSdrh
266636a995dSmlcreech# _LT_PROG_LTMAIN
267636a995dSmlcreech# ---------------
268636a995dSmlcreech# Note that this code is called both from `configure', and `config.status'
269636a995dSmlcreech# now that we use AC_CONFIG_COMMANDS to generate libtool.  Notably,
270636a995dSmlcreech# `config.status' has no value for ac_aux_dir unless we are using Automake,
271636a995dSmlcreech# so we pass a copy along to make sure it has a sensible value anyway.
272636a995dSmlcreechm4_defun([_LT_PROG_LTMAIN],
273636a995dSmlcreech[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
274636a995dSmlcreech_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
275636a995dSmlcreechltmain="$ac_aux_dir/ltmain.sh"
276636a995dSmlcreech])# _LT_PROG_LTMAIN
2777f19c02fSvapier
278636a995dSmlcreech
279636a995dSmlcreech
280636a995dSmlcreech# So that we can recreate a full libtool script including additional
281636a995dSmlcreech# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
282636a995dSmlcreech# in macros and then make a single call at the end using the `libtool'
283636a995dSmlcreech# label.
284636a995dSmlcreech
285636a995dSmlcreech
286636a995dSmlcreech# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
287636a995dSmlcreech# ----------------------------------------
288636a995dSmlcreech# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
289636a995dSmlcreechm4_define([_LT_CONFIG_LIBTOOL_INIT],
290636a995dSmlcreech[m4_ifval([$1],
291636a995dSmlcreech          [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
292636a995dSmlcreech                     [$1
293636a995dSmlcreech])])])
294636a995dSmlcreech
295636a995dSmlcreech# Initialize.
296636a995dSmlcreechm4_define([_LT_OUTPUT_LIBTOOL_INIT])
297636a995dSmlcreech
298636a995dSmlcreech
299636a995dSmlcreech# _LT_CONFIG_LIBTOOL([COMMANDS])
300636a995dSmlcreech# ------------------------------
301636a995dSmlcreech# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
302636a995dSmlcreechm4_define([_LT_CONFIG_LIBTOOL],
303636a995dSmlcreech[m4_ifval([$1],
304636a995dSmlcreech          [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
305636a995dSmlcreech                     [$1
306636a995dSmlcreech])])])
307636a995dSmlcreech
308636a995dSmlcreech# Initialize.
309636a995dSmlcreechm4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
310636a995dSmlcreech
311636a995dSmlcreech
312636a995dSmlcreech# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
313636a995dSmlcreech# -----------------------------------------------------
314636a995dSmlcreechm4_defun([_LT_CONFIG_SAVE_COMMANDS],
315636a995dSmlcreech[_LT_CONFIG_LIBTOOL([$1])
316636a995dSmlcreech_LT_CONFIG_LIBTOOL_INIT([$2])
3177f19c02fSvapier])
3187f19c02fSvapier
3197f19c02fSvapier
320636a995dSmlcreech# _LT_FORMAT_COMMENT([COMMENT])
321636a995dSmlcreech# -----------------------------
322636a995dSmlcreech# Add leading comment marks to the start of each line, and a trailing
323636a995dSmlcreech# full-stop to the whole comment if one is not present already.
324636a995dSmlcreechm4_define([_LT_FORMAT_COMMENT],
325636a995dSmlcreech[m4_ifval([$1], [
326636a995dSmlcreechm4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
327636a995dSmlcreech              [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
328636a995dSmlcreech)])
3297f19c02fSvapier
3307f19c02fSvapier
331636a995dSmlcreech
332636a995dSmlcreech
333636a995dSmlcreech
334636a995dSmlcreech# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
335636a995dSmlcreech# -------------------------------------------------------------------
336636a995dSmlcreech# CONFIGNAME is the name given to the value in the libtool script.
337636a995dSmlcreech# VARNAME is the (base) name used in the configure script.
338636a995dSmlcreech# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
339636a995dSmlcreech# VARNAME.  Any other value will be used directly.
340636a995dSmlcreechm4_define([_LT_DECL],
341636a995dSmlcreech[lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
342636a995dSmlcreech    [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
343636a995dSmlcreech	[m4_ifval([$1], [$1], [$2])])
344636a995dSmlcreech    lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
345636a995dSmlcreech    m4_ifval([$4],
346636a995dSmlcreech	[lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
347636a995dSmlcreech    lt_dict_add_subkey([lt_decl_dict], [$2],
348636a995dSmlcreech	[tagged?], [m4_ifval([$5], [yes], [no])])])
3497f19c02fSvapier])
3507f19c02fSvapier
3517f19c02fSvapier
352636a995dSmlcreech# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
353636a995dSmlcreech# --------------------------------------------------------
354636a995dSmlcreechm4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
355636a995dSmlcreech
356636a995dSmlcreech
357636a995dSmlcreech# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
358636a995dSmlcreech# ------------------------------------------------
359636a995dSmlcreechm4_define([lt_decl_tag_varnames],
360636a995dSmlcreech[_lt_decl_filter([tagged?], [yes], $@)])
361636a995dSmlcreech
362636a995dSmlcreech
363636a995dSmlcreech# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
364636a995dSmlcreech# ---------------------------------------------------------
365636a995dSmlcreechm4_define([_lt_decl_filter],
366636a995dSmlcreech[m4_case([$#],
367636a995dSmlcreech  [0], [m4_fatal([$0: too few arguments: $#])],
368636a995dSmlcreech  [1], [m4_fatal([$0: too few arguments: $#: $1])],
369636a995dSmlcreech  [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
370636a995dSmlcreech  [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
371636a995dSmlcreech  [lt_dict_filter([lt_decl_dict], $@)])[]dnl
372636a995dSmlcreech])
373636a995dSmlcreech
374636a995dSmlcreech
375636a995dSmlcreech# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
376636a995dSmlcreech# --------------------------------------------------
377636a995dSmlcreechm4_define([lt_decl_quote_varnames],
378636a995dSmlcreech[_lt_decl_filter([value], [1], $@)])
379636a995dSmlcreech
380636a995dSmlcreech
381636a995dSmlcreech# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
382636a995dSmlcreech# ---------------------------------------------------
383636a995dSmlcreechm4_define([lt_decl_dquote_varnames],
384636a995dSmlcreech[_lt_decl_filter([value], [2], $@)])
385636a995dSmlcreech
386636a995dSmlcreech
387636a995dSmlcreech# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
388636a995dSmlcreech# ---------------------------------------------------
389636a995dSmlcreechm4_define([lt_decl_varnames_tagged],
390*6acb2cf6Svapier[m4_assert([$# <= 2])dnl
391*6acb2cf6Svapier_$0(m4_quote(m4_default([$1], [[, ]])),
392*6acb2cf6Svapier    m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
393*6acb2cf6Svapier    m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
394*6acb2cf6Svapierm4_define([_lt_decl_varnames_tagged],
395*6acb2cf6Svapier[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
396636a995dSmlcreech
397636a995dSmlcreech
398636a995dSmlcreech# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
399636a995dSmlcreech# ------------------------------------------------
400636a995dSmlcreechm4_define([lt_decl_all_varnames],
401636a995dSmlcreech[_$0(m4_quote(m4_default([$1], [[, ]])),
402636a995dSmlcreech     m4_if([$2], [],
403636a995dSmlcreech	   m4_quote(lt_decl_varnames),
404636a995dSmlcreech	m4_quote(m4_shift($@))))[]dnl
405636a995dSmlcreech])
406636a995dSmlcreechm4_define([_lt_decl_all_varnames],
407636a995dSmlcreech[lt_join($@, lt_decl_varnames_tagged([$1],
408636a995dSmlcreech			lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
409636a995dSmlcreech])
410636a995dSmlcreech
411636a995dSmlcreech
412636a995dSmlcreech# _LT_CONFIG_STATUS_DECLARE([VARNAME])
413636a995dSmlcreech# ------------------------------------
414636a995dSmlcreech# Quote a variable value, and forward it to `config.status' so that its
415636a995dSmlcreech# declaration there will have the same value as in `configure'.  VARNAME
416636a995dSmlcreech# must have a single quote delimited value for this to work.
417636a995dSmlcreechm4_define([_LT_CONFIG_STATUS_DECLARE],
418636a995dSmlcreech[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
419636a995dSmlcreech
420636a995dSmlcreech
421636a995dSmlcreech# _LT_CONFIG_STATUS_DECLARATIONS
422636a995dSmlcreech# ------------------------------
423636a995dSmlcreech# We delimit libtool config variables with single quotes, so when
424636a995dSmlcreech# we write them to config.status, we have to be sure to quote all
425636a995dSmlcreech# embedded single quotes properly.  In configure, this macro expands
426636a995dSmlcreech# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
427636a995dSmlcreech#
428636a995dSmlcreech#    <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
429636a995dSmlcreechm4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
430636a995dSmlcreech[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
431636a995dSmlcreech    [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
432636a995dSmlcreech
433636a995dSmlcreech
434636a995dSmlcreech# _LT_LIBTOOL_TAGS
435636a995dSmlcreech# ----------------
436636a995dSmlcreech# Output comment and list of tags supported by the script
437636a995dSmlcreechm4_defun([_LT_LIBTOOL_TAGS],
438636a995dSmlcreech[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
439636a995dSmlcreechavailable_tags="_LT_TAGS"dnl
440636a995dSmlcreech])
441636a995dSmlcreech
442636a995dSmlcreech
443636a995dSmlcreech# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
444636a995dSmlcreech# -----------------------------------
445636a995dSmlcreech# Extract the dictionary values for VARNAME (optionally with TAG) and
446636a995dSmlcreech# expand to a commented shell variable setting:
447636a995dSmlcreech#
448636a995dSmlcreech#    # Some comment about what VAR is for.
449636a995dSmlcreech#    visible_name=$lt_internal_name
450636a995dSmlcreechm4_define([_LT_LIBTOOL_DECLARE],
451636a995dSmlcreech[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
452636a995dSmlcreech					   [description])))[]dnl
453636a995dSmlcreechm4_pushdef([_libtool_name],
454636a995dSmlcreech    m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
455636a995dSmlcreechm4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
456636a995dSmlcreech    [0], [_libtool_name=[$]$1],
457636a995dSmlcreech    [1], [_libtool_name=$lt_[]$1],
458636a995dSmlcreech    [2], [_libtool_name=$lt_[]$1],
459636a995dSmlcreech    [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
460636a995dSmlcreechm4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
461636a995dSmlcreech])
462636a995dSmlcreech
463636a995dSmlcreech
464636a995dSmlcreech# _LT_LIBTOOL_CONFIG_VARS
465636a995dSmlcreech# -----------------------
466636a995dSmlcreech# Produce commented declarations of non-tagged libtool config variables
467636a995dSmlcreech# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
468636a995dSmlcreech# script.  Tagged libtool config variables (even for the LIBTOOL CONFIG
469636a995dSmlcreech# section) are produced by _LT_LIBTOOL_TAG_VARS.
470636a995dSmlcreechm4_defun([_LT_LIBTOOL_CONFIG_VARS],
471636a995dSmlcreech[m4_foreach([_lt_var],
472636a995dSmlcreech    m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
473636a995dSmlcreech    [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
474636a995dSmlcreech
475636a995dSmlcreech
476636a995dSmlcreech# _LT_LIBTOOL_TAG_VARS(TAG)
477636a995dSmlcreech# -------------------------
478636a995dSmlcreechm4_define([_LT_LIBTOOL_TAG_VARS],
479636a995dSmlcreech[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
480636a995dSmlcreech    [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
481636a995dSmlcreech
482636a995dSmlcreech
483636a995dSmlcreech# _LT_TAGVAR(VARNAME, [TAGNAME])
484636a995dSmlcreech# ------------------------------
485636a995dSmlcreechm4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
486636a995dSmlcreech
487636a995dSmlcreech
488636a995dSmlcreech# _LT_CONFIG_COMMANDS
4899bc8b93fSa.rottmann# -------------------
490636a995dSmlcreech# Send accumulated output to $CONFIG_STATUS.  Thanks to the lists of
491636a995dSmlcreech# variables for single and double quote escaping we saved from calls
492636a995dSmlcreech# to _LT_DECL, we can put quote escaped variables declarations
493636a995dSmlcreech# into `config.status', and then the shell code to quote escape them in
494636a995dSmlcreech# for loops in `config.status'.  Finally, any additional code accumulated
495636a995dSmlcreech# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
496636a995dSmlcreechm4_defun([_LT_CONFIG_COMMANDS],
497636a995dSmlcreech[AC_PROVIDE_IFELSE([LT_OUTPUT],
498636a995dSmlcreech	dnl If the libtool generation code has been placed in $CONFIG_LT,
499636a995dSmlcreech	dnl instead of duplicating it all over again into config.status,
500636a995dSmlcreech	dnl then we will have config.status run $CONFIG_LT later, so it
501636a995dSmlcreech	dnl needs to know what name is stored there:
502636a995dSmlcreech        [AC_CONFIG_COMMANDS([libtool],
503636a995dSmlcreech            [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
504636a995dSmlcreech    dnl If the libtool generation code is destined for config.status,
505636a995dSmlcreech    dnl expand the accumulated commands and init code now:
506636a995dSmlcreech    [AC_CONFIG_COMMANDS([libtool],
507636a995dSmlcreech        [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
508636a995dSmlcreech])#_LT_CONFIG_COMMANDS
509636a995dSmlcreech
510636a995dSmlcreech
511636a995dSmlcreech# Initialize.
512636a995dSmlcreechm4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
513636a995dSmlcreech[
514636a995dSmlcreech
515636a995dSmlcreech# The HP-UX ksh and POSIX shell print the target directory to stdout
516636a995dSmlcreech# if CDPATH is set.
517636a995dSmlcreech(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
518636a995dSmlcreech
519636a995dSmlcreechsed_quote_subst='$sed_quote_subst'
520636a995dSmlcreechdouble_quote_subst='$double_quote_subst'
521636a995dSmlcreechdelay_variable_subst='$delay_variable_subst'
522636a995dSmlcreech_LT_CONFIG_STATUS_DECLARATIONS
523636a995dSmlcreechLTCC='$LTCC'
524636a995dSmlcreechLTCFLAGS='$LTCFLAGS'
525636a995dSmlcreechcompiler='$compiler_DEFAULT'
526636a995dSmlcreech
527636a995dSmlcreech# Quote evaled strings.
528636a995dSmlcreechfor var in lt_decl_all_varnames([[ \
529636a995dSmlcreech]], lt_decl_quote_varnames); do
530636a995dSmlcreech    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
531636a995dSmlcreech    *[[\\\\\\\`\\"\\\$]]*)
532636a995dSmlcreech      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
533636a995dSmlcreech      ;;
534636a995dSmlcreech    *)
535636a995dSmlcreech      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
536636a995dSmlcreech      ;;
537636a995dSmlcreech    esac
538636a995dSmlcreechdone
539636a995dSmlcreech
540636a995dSmlcreech# Double-quote double-evaled strings.
541636a995dSmlcreechfor var in lt_decl_all_varnames([[ \
542636a995dSmlcreech]], lt_decl_dquote_varnames); do
543636a995dSmlcreech    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
544636a995dSmlcreech    *[[\\\\\\\`\\"\\\$]]*)
545636a995dSmlcreech      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
546636a995dSmlcreech      ;;
547636a995dSmlcreech    *)
548636a995dSmlcreech      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
549636a995dSmlcreech      ;;
550636a995dSmlcreech    esac
551636a995dSmlcreechdone
552636a995dSmlcreech
553636a995dSmlcreech# Fix-up fallback echo if it was mangled by the above quoting rules.
554636a995dSmlcreechcase \$lt_ECHO in
555636a995dSmlcreech*'\\\[$]0 --fallback-echo"')dnl "
556636a995dSmlcreech  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
557636a995dSmlcreech  ;;
558636a995dSmlcreechesac
559636a995dSmlcreech
560636a995dSmlcreech_LT_OUTPUT_LIBTOOL_INIT
561636a995dSmlcreech])
562636a995dSmlcreech
563636a995dSmlcreech
564636a995dSmlcreech# LT_OUTPUT
565636a995dSmlcreech# ---------
566636a995dSmlcreech# This macro allows early generation of the libtool script (before
567636a995dSmlcreech# AC_OUTPUT is called), incase it is used in configure for compilation
568636a995dSmlcreech# tests.
569636a995dSmlcreechAC_DEFUN([LT_OUTPUT],
570636a995dSmlcreech[: ${CONFIG_LT=./config.lt}
571636a995dSmlcreechAC_MSG_NOTICE([creating $CONFIG_LT])
572636a995dSmlcreechcat >"$CONFIG_LT" <<_LTEOF
573636a995dSmlcreech#! $SHELL
574636a995dSmlcreech# Generated by $as_me.
575636a995dSmlcreech# Run this file to recreate a libtool stub with the current configuration.
576636a995dSmlcreech
577636a995dSmlcreechlt_cl_silent=false
578636a995dSmlcreechSHELL=\${CONFIG_SHELL-$SHELL}
579636a995dSmlcreech_LTEOF
580636a995dSmlcreech
581636a995dSmlcreechcat >>"$CONFIG_LT" <<\_LTEOF
582636a995dSmlcreechAS_SHELL_SANITIZE
583636a995dSmlcreech_AS_PREPARE
584636a995dSmlcreech
585636a995dSmlcreechexec AS_MESSAGE_FD>&1
586636a995dSmlcreechexec AS_MESSAGE_LOG_FD>>config.log
587636a995dSmlcreech{
588636a995dSmlcreech  echo
589636a995dSmlcreech  AS_BOX([Running $as_me.])
590636a995dSmlcreech} >&AS_MESSAGE_LOG_FD
591636a995dSmlcreech
592636a995dSmlcreechlt_cl_help="\
593636a995dSmlcreech\`$as_me' creates a local libtool stub from the current configuration,
594636a995dSmlcreechfor use in further configure time tests before the real libtool is
595636a995dSmlcreechgenerated.
596636a995dSmlcreech
597636a995dSmlcreechUsage: $[0] [[OPTIONS]]
598636a995dSmlcreech
599636a995dSmlcreech  -h, --help      print this help, then exit
600636a995dSmlcreech  -V, --version   print version number, then exit
601636a995dSmlcreech  -q, --quiet     do not print progress messages
602636a995dSmlcreech  -d, --debug     don't remove temporary files
603636a995dSmlcreech
604636a995dSmlcreechReport bugs to <[email protected]>."
605636a995dSmlcreech
606636a995dSmlcreechlt_cl_version="\
607636a995dSmlcreechm4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
608636a995dSmlcreechm4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
609636a995dSmlcreechconfigured by $[0], generated by m4_PACKAGE_STRING.
610636a995dSmlcreech
611636a995dSmlcreechCopyright (C) 2008 Free Software Foundation, Inc.
612636a995dSmlcreechThis config.lt script is free software; the Free Software Foundation
613636a995dSmlcreechgives unlimited permision to copy, distribute and modify it."
614636a995dSmlcreech
615636a995dSmlcreechwhile test $[#] != 0
616636a995dSmlcreechdo
617636a995dSmlcreech  case $[1] in
618636a995dSmlcreech    --version | --v* | -V )
619636a995dSmlcreech      echo "$lt_cl_version"; exit 0 ;;
620636a995dSmlcreech    --help | --h* | -h )
621636a995dSmlcreech      echo "$lt_cl_help"; exit 0 ;;
622636a995dSmlcreech    --debug | --d* | -d )
623636a995dSmlcreech      debug=: ;;
624636a995dSmlcreech    --quiet | --q* | --silent | --s* | -q )
625636a995dSmlcreech      lt_cl_silent=: ;;
626636a995dSmlcreech
627636a995dSmlcreech    -*) AC_MSG_ERROR([unrecognized option: $[1]
628636a995dSmlcreechTry \`$[0] --help' for more information.]) ;;
629636a995dSmlcreech
630636a995dSmlcreech    *) AC_MSG_ERROR([unrecognized argument: $[1]
631636a995dSmlcreechTry \`$[0] --help' for more information.]) ;;
632636a995dSmlcreech  esac
633636a995dSmlcreech  shift
634636a995dSmlcreechdone
635636a995dSmlcreech
636636a995dSmlcreechif $lt_cl_silent; then
637636a995dSmlcreech  exec AS_MESSAGE_FD>/dev/null
638636a995dSmlcreechfi
639636a995dSmlcreech_LTEOF
640636a995dSmlcreech
641636a995dSmlcreechcat >>"$CONFIG_LT" <<_LTEOF
642636a995dSmlcreech_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
643636a995dSmlcreech_LTEOF
644636a995dSmlcreech
645636a995dSmlcreechcat >>"$CONFIG_LT" <<\_LTEOF
646636a995dSmlcreechAC_MSG_NOTICE([creating $ofile])
647636a995dSmlcreech_LT_OUTPUT_LIBTOOL_COMMANDS
648636a995dSmlcreechAS_EXIT(0)
649636a995dSmlcreech_LTEOF
650636a995dSmlcreechchmod +x "$CONFIG_LT"
651636a995dSmlcreech
652636a995dSmlcreech# configure is writing to config.log, but config.lt does its own redirection,
653636a995dSmlcreech# appending to config.log, which fails on DOS, as config.log is still kept
654636a995dSmlcreech# open by configure.  Here we exec the FD to /dev/null, effectively closing
655636a995dSmlcreech# config.log, so it can be properly (re)opened and appended to by config.lt.
656636a995dSmlcreechif test "$no_create" != yes; then
657636a995dSmlcreech  lt_cl_success=:
658636a995dSmlcreech  test "$silent" = yes &&
659636a995dSmlcreech    lt_config_lt_args="$lt_config_lt_args --quiet"
660636a995dSmlcreech  exec AS_MESSAGE_LOG_FD>/dev/null
661636a995dSmlcreech  $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
662636a995dSmlcreech  exec AS_MESSAGE_LOG_FD>>config.log
663636a995dSmlcreech  $lt_cl_success || AS_EXIT(1)
664636a995dSmlcreechfi
665636a995dSmlcreech])# LT_OUTPUT
666636a995dSmlcreech
667636a995dSmlcreech
668636a995dSmlcreech# _LT_CONFIG(TAG)
669636a995dSmlcreech# ---------------
670636a995dSmlcreech# If TAG is the built-in tag, create an initial libtool script with a
671636a995dSmlcreech# default configuration from the untagged config vars.  Otherwise add code
672636a995dSmlcreech# to config.status for appending the configuration named by TAG from the
673636a995dSmlcreech# matching tagged config vars.
674636a995dSmlcreechm4_defun([_LT_CONFIG],
675636a995dSmlcreech[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
676636a995dSmlcreech_LT_CONFIG_SAVE_COMMANDS([
677636a995dSmlcreech  m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
678636a995dSmlcreech  m4_if(_LT_TAG, [C], [
679636a995dSmlcreech    # See if we are running on zsh, and set the options which allow our
680636a995dSmlcreech    # commands through without removal of \ escapes.
681636a995dSmlcreech    if test -n "${ZSH_VERSION+set}" ; then
682636a995dSmlcreech      setopt NO_GLOB_SUBST
683636a995dSmlcreech    fi
684636a995dSmlcreech
685636a995dSmlcreech    cfgfile="${ofile}T"
686636a995dSmlcreech    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
687636a995dSmlcreech    $RM "$cfgfile"
688636a995dSmlcreech
689636a995dSmlcreech    cat <<_LT_EOF >> "$cfgfile"
690636a995dSmlcreech#! $SHELL
691636a995dSmlcreech
692636a995dSmlcreech# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
693636a995dSmlcreech# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
694636a995dSmlcreech# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
695636a995dSmlcreech# NOTE: Changes made to this file will be lost: look at ltmain.sh.
696636a995dSmlcreech#
697636a995dSmlcreech_LT_COPYING
698636a995dSmlcreech_LT_LIBTOOL_TAGS
699636a995dSmlcreech
700636a995dSmlcreech# ### BEGIN LIBTOOL CONFIG
701636a995dSmlcreech_LT_LIBTOOL_CONFIG_VARS
702636a995dSmlcreech_LT_LIBTOOL_TAG_VARS
703636a995dSmlcreech# ### END LIBTOOL CONFIG
704636a995dSmlcreech
705636a995dSmlcreech_LT_EOF
706636a995dSmlcreech
707636a995dSmlcreech  case $host_os in
708636a995dSmlcreech  aix3*)
709636a995dSmlcreech    cat <<\_LT_EOF >> "$cfgfile"
710636a995dSmlcreech# AIX sometimes has problems with the GCC collect2 program.  For some
711636a995dSmlcreech# reason, if we set the COLLECT_NAMES environment variable, the problems
712636a995dSmlcreech# vanish in a puff of smoke.
713636a995dSmlcreechif test "X${COLLECT_NAMES+set}" != Xset; then
714636a995dSmlcreech  COLLECT_NAMES=
715636a995dSmlcreech  export COLLECT_NAMES
716636a995dSmlcreechfi
717636a995dSmlcreech_LT_EOF
718636a995dSmlcreech    ;;
719636a995dSmlcreech  esac
720636a995dSmlcreech
721636a995dSmlcreech  _LT_PROG_LTMAIN
722636a995dSmlcreech
723636a995dSmlcreech  # We use sed instead of cat because bash on DJGPP gets confused if
724636a995dSmlcreech  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
725636a995dSmlcreech  # text mode, it properly converts lines to CR/LF.  This bash problem
726636a995dSmlcreech  # is reportedly fixed, but why not run on old versions too?
727636a995dSmlcreech  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
728636a995dSmlcreech    || (rm -f "$cfgfile"; exit 1)
729636a995dSmlcreech
730636a995dSmlcreech  _LT_PROG_XSI_SHELLFNS
731636a995dSmlcreech
732636a995dSmlcreech  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
733636a995dSmlcreech    || (rm -f "$cfgfile"; exit 1)
734636a995dSmlcreech
735636a995dSmlcreech  mv -f "$cfgfile" "$ofile" ||
736636a995dSmlcreech    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
737636a995dSmlcreech  chmod +x "$ofile"
738636a995dSmlcreech],
739636a995dSmlcreech[cat <<_LT_EOF >> "$ofile"
740636a995dSmlcreech
741636a995dSmlcreechdnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
742636a995dSmlcreechdnl in a comment (ie after a #).
743636a995dSmlcreech# ### BEGIN LIBTOOL TAG CONFIG: $1
744636a995dSmlcreech_LT_LIBTOOL_TAG_VARS(_LT_TAG)
745636a995dSmlcreech# ### END LIBTOOL TAG CONFIG: $1
746636a995dSmlcreech_LT_EOF
747636a995dSmlcreech])dnl /m4_if
748636a995dSmlcreech],
749636a995dSmlcreech[m4_if([$1], [], [
750636a995dSmlcreech    PACKAGE='$PACKAGE'
751636a995dSmlcreech    VERSION='$VERSION'
752636a995dSmlcreech    TIMESTAMP='$TIMESTAMP'
753636a995dSmlcreech    RM='$RM'
754636a995dSmlcreech    ofile='$ofile'], [])
755636a995dSmlcreech])dnl /_LT_CONFIG_SAVE_COMMANDS
756636a995dSmlcreech])# _LT_CONFIG
757636a995dSmlcreech
758636a995dSmlcreech
759636a995dSmlcreech# LT_SUPPORTED_TAG(TAG)
760636a995dSmlcreech# ---------------------
761636a995dSmlcreech# Trace this macro to discover what tags are supported by the libtool
762636a995dSmlcreech# --tag option, using:
763636a995dSmlcreech#    autoconf --trace 'LT_SUPPORTED_TAG:$1'
764636a995dSmlcreechAC_DEFUN([LT_SUPPORTED_TAG], [])
765636a995dSmlcreech
766636a995dSmlcreech
767636a995dSmlcreech# C support is built-in for now
768636a995dSmlcreechm4_define([_LT_LANG_C_enabled], [])
769636a995dSmlcreechm4_define([_LT_TAGS], [])
770636a995dSmlcreech
771636a995dSmlcreech
772636a995dSmlcreech# LT_LANG(LANG)
773636a995dSmlcreech# -------------
774636a995dSmlcreech# Enable libtool support for the given language if not already enabled.
775636a995dSmlcreechAC_DEFUN([LT_LANG],
776636a995dSmlcreech[AC_BEFORE([$0], [LT_OUTPUT])dnl
777636a995dSmlcreechm4_case([$1],
778636a995dSmlcreech  [C],			[_LT_LANG(C)],
779636a995dSmlcreech  [C++],		[_LT_LANG(CXX)],
780636a995dSmlcreech  [Java],		[_LT_LANG(GCJ)],
781636a995dSmlcreech  [Fortran 77],		[_LT_LANG(F77)],
782636a995dSmlcreech  [Fortran],		[_LT_LANG(FC)],
783636a995dSmlcreech  [Windows Resource],	[_LT_LANG(RC)],
784636a995dSmlcreech  [m4_ifdef([_LT_LANG_]$1[_CONFIG],
785636a995dSmlcreech    [_LT_LANG($1)],
786636a995dSmlcreech    [m4_fatal([$0: unsupported language: "$1"])])])dnl
787636a995dSmlcreech])# LT_LANG
788636a995dSmlcreech
789636a995dSmlcreech
790636a995dSmlcreech# _LT_LANG(LANGNAME)
791636a995dSmlcreech# ------------------
792636a995dSmlcreechm4_defun([_LT_LANG],
793636a995dSmlcreech[m4_ifdef([_LT_LANG_]$1[_enabled], [],
794636a995dSmlcreech  [LT_SUPPORTED_TAG([$1])dnl
795636a995dSmlcreech  m4_append([_LT_TAGS], [$1 ])dnl
796636a995dSmlcreech  m4_define([_LT_LANG_]$1[_enabled], [])dnl
797636a995dSmlcreech  _LT_LANG_$1_CONFIG($1)])dnl
798636a995dSmlcreech])# _LT_LANG
799636a995dSmlcreech
800636a995dSmlcreech
801636a995dSmlcreech# _LT_LANG_DEFAULT_CONFIG
802636a995dSmlcreech# -----------------------
803636a995dSmlcreechm4_defun([_LT_LANG_DEFAULT_CONFIG],
804636a995dSmlcreech[AC_PROVIDE_IFELSE([AC_PROG_CXX],
805636a995dSmlcreech  [LT_LANG(CXX)],
806636a995dSmlcreech  [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
807636a995dSmlcreech
808636a995dSmlcreechAC_PROVIDE_IFELSE([AC_PROG_F77],
809636a995dSmlcreech  [LT_LANG(F77)],
810636a995dSmlcreech  [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
811636a995dSmlcreech
812636a995dSmlcreechAC_PROVIDE_IFELSE([AC_PROG_FC],
813636a995dSmlcreech  [LT_LANG(FC)],
814636a995dSmlcreech  [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
815636a995dSmlcreech
816636a995dSmlcreechdnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
817636a995dSmlcreechdnl pulling things in needlessly.
818636a995dSmlcreechAC_PROVIDE_IFELSE([AC_PROG_GCJ],
819636a995dSmlcreech  [LT_LANG(GCJ)],
820636a995dSmlcreech  [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
821636a995dSmlcreech    [LT_LANG(GCJ)],
822636a995dSmlcreech    [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
823636a995dSmlcreech      [LT_LANG(GCJ)],
824636a995dSmlcreech      [m4_ifdef([AC_PROG_GCJ],
825636a995dSmlcreech	[m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
826636a995dSmlcreech       m4_ifdef([A][M_PROG_GCJ],
827636a995dSmlcreech	[m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
828636a995dSmlcreech       m4_ifdef([LT_PROG_GCJ],
829636a995dSmlcreech	[m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
830636a995dSmlcreech
831636a995dSmlcreechAC_PROVIDE_IFELSE([LT_PROG_RC],
832636a995dSmlcreech  [LT_LANG(RC)],
833636a995dSmlcreech  [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
834636a995dSmlcreech])# _LT_LANG_DEFAULT_CONFIG
835636a995dSmlcreech
836636a995dSmlcreech# Obsolete macros:
837636a995dSmlcreechAU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
838636a995dSmlcreechAU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
839636a995dSmlcreechAU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
840636a995dSmlcreechAU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
841636a995dSmlcreechdnl aclocal-1.4 backwards compatibility:
842636a995dSmlcreechdnl AC_DEFUN([AC_LIBTOOL_CXX], [])
843636a995dSmlcreechdnl AC_DEFUN([AC_LIBTOOL_F77], [])
844636a995dSmlcreechdnl AC_DEFUN([AC_LIBTOOL_FC], [])
845636a995dSmlcreechdnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
846636a995dSmlcreech
847636a995dSmlcreech
848636a995dSmlcreech# _LT_TAG_COMPILER
849636a995dSmlcreech# ----------------
850636a995dSmlcreechm4_defun([_LT_TAG_COMPILER],
8519bc8b93fSa.rottmann[AC_REQUIRE([AC_PROG_CC])dnl
85271eb93eaSdrh
853636a995dSmlcreech_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
854636a995dSmlcreech_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
855636a995dSmlcreech_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
856636a995dSmlcreech_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
857636a995dSmlcreech
8589bc8b93fSa.rottmann# If no C compiler was specified, use CC.
8599bc8b93fSa.rottmannLTCC=${LTCC-"$CC"}
86071eb93eaSdrh
8617f19c02fSvapier# If no C compiler flags were specified, use CFLAGS.
8627f19c02fSvapierLTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8637f19c02fSvapier
8649bc8b93fSa.rottmann# Allow CC to be a program name with arguments.
8659bc8b93fSa.rottmanncompiler=$CC
866636a995dSmlcreech])# _LT_TAG_COMPILER
8677f19c02fSvapier
8687f19c02fSvapier
8697f19c02fSvapier# _LT_COMPILER_BOILERPLATE
8707f19c02fSvapier# ------------------------
8717f19c02fSvapier# Check for compiler boilerplate output or warnings with
8727f19c02fSvapier# the simple compiler test code.
873636a995dSmlcreechm4_defun([_LT_COMPILER_BOILERPLATE],
874636a995dSmlcreech[m4_require([_LT_DECL_SED])dnl
875636a995dSmlcreechac_outfile=conftest.$ac_objext
876636a995dSmlcreechecho "$lt_simple_compile_test_code" >conftest.$ac_ext
8777f19c02fSvapiereval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8787f19c02fSvapier_lt_compiler_boilerplate=`cat conftest.err`
879636a995dSmlcreech$RM conftest*
8807f19c02fSvapier])# _LT_COMPILER_BOILERPLATE
8817f19c02fSvapier
8827f19c02fSvapier
8837f19c02fSvapier# _LT_LINKER_BOILERPLATE
8847f19c02fSvapier# ----------------------
8857f19c02fSvapier# Check for linker boilerplate output or warnings with
8867f19c02fSvapier# the simple link test code.
887636a995dSmlcreechm4_defun([_LT_LINKER_BOILERPLATE],
888636a995dSmlcreech[m4_require([_LT_DECL_SED])dnl
889636a995dSmlcreechac_outfile=conftest.$ac_objext
890636a995dSmlcreechecho "$lt_simple_link_test_code" >conftest.$ac_ext
8917f19c02fSvapiereval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8927f19c02fSvapier_lt_linker_boilerplate=`cat conftest.err`
893636a995dSmlcreech$RM -r conftest*
8947f19c02fSvapier])# _LT_LINKER_BOILERPLATE
8957f19c02fSvapier
896636a995dSmlcreech# _LT_REQUIRED_DARWIN_CHECKS
897636a995dSmlcreech# -------------------------
898636a995dSmlcreechm4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
899636a995dSmlcreech  case $host_os in
900636a995dSmlcreech    rhapsody* | darwin*)
901636a995dSmlcreech    AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
902636a995dSmlcreech    AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
903636a995dSmlcreech    AC_CHECK_TOOL([LIPO], [lipo], [:])
904636a995dSmlcreech    AC_CHECK_TOOL([OTOOL], [otool], [:])
905636a995dSmlcreech    AC_CHECK_TOOL([OTOOL64], [otool64], [:])
906636a995dSmlcreech    _LT_DECL([], [DSYMUTIL], [1],
907636a995dSmlcreech      [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
908636a995dSmlcreech    _LT_DECL([], [NMEDIT], [1],
909636a995dSmlcreech      [Tool to change global to local symbols on Mac OS X])
910636a995dSmlcreech    _LT_DECL([], [LIPO], [1],
911636a995dSmlcreech      [Tool to manipulate fat objects and archives on Mac OS X])
912636a995dSmlcreech    _LT_DECL([], [OTOOL], [1],
913636a995dSmlcreech      [ldd/readelf like tool for Mach-O binaries on Mac OS X])
914636a995dSmlcreech    _LT_DECL([], [OTOOL64], [1],
915636a995dSmlcreech      [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
9167f19c02fSvapier
917636a995dSmlcreech    AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
918636a995dSmlcreech      [lt_cv_apple_cc_single_mod=no
919636a995dSmlcreech      if test -z "${LT_MULTI_MODULE}"; then
920636a995dSmlcreech	# By default we will add the -single_module flag. You can override
921636a995dSmlcreech	# by either setting the environment variable LT_MULTI_MODULE
922636a995dSmlcreech	# non-empty at configure time, or by adding -multi_module to the
923636a995dSmlcreech	# link flags.
924636a995dSmlcreech	rm -rf libconftest.dylib*
925636a995dSmlcreech	echo "int foo(void){return 1;}" > conftest.c
926636a995dSmlcreech	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
927636a995dSmlcreech-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
928636a995dSmlcreech	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
929636a995dSmlcreech	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
930636a995dSmlcreech        _lt_result=$?
931636a995dSmlcreech	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
932636a995dSmlcreech	  lt_cv_apple_cc_single_mod=yes
933636a995dSmlcreech	else
934636a995dSmlcreech	  cat conftest.err >&AS_MESSAGE_LOG_FD
935636a995dSmlcreech	fi
936636a995dSmlcreech	rm -rf libconftest.dylib*
937636a995dSmlcreech	rm -f conftest.*
938636a995dSmlcreech      fi])
939636a995dSmlcreech    AC_CACHE_CHECK([for -exported_symbols_list linker flag],
940636a995dSmlcreech      [lt_cv_ld_exported_symbols_list],
941636a995dSmlcreech      [lt_cv_ld_exported_symbols_list=no
942636a995dSmlcreech      save_LDFLAGS=$LDFLAGS
943636a995dSmlcreech      echo "_main" > conftest.sym
944636a995dSmlcreech      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
945636a995dSmlcreech      AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
946636a995dSmlcreech	[lt_cv_ld_exported_symbols_list=yes],
947636a995dSmlcreech	[lt_cv_ld_exported_symbols_list=no])
948636a995dSmlcreech	LDFLAGS="$save_LDFLAGS"
949636a995dSmlcreech    ])
950636a995dSmlcreech    case $host_os in
951636a995dSmlcreech    rhapsody* | darwin1.[[012]])
952636a995dSmlcreech      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
953636a995dSmlcreech    darwin1.*)
954636a995dSmlcreech      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
955636a995dSmlcreech    darwin*) # darwin 5.x on
956636a995dSmlcreech      # if running on 10.5 or later, the deployment target defaults
957636a995dSmlcreech      # to the OS version, if on x86, and 10.4, the deployment
958636a995dSmlcreech      # target defaults to 10.4. Don't you love it?
959636a995dSmlcreech      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
960636a995dSmlcreech	10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
961636a995dSmlcreech	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
962636a995dSmlcreech	10.[[012]]*)
963636a995dSmlcreech	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
964636a995dSmlcreech	10.*)
965636a995dSmlcreech	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
966636a995dSmlcreech      esac
967636a995dSmlcreech    ;;
968636a995dSmlcreech  esac
969636a995dSmlcreech    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
970636a995dSmlcreech      _lt_dar_single_mod='$single_module'
971636a995dSmlcreech    fi
972636a995dSmlcreech    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
973636a995dSmlcreech      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
974636a995dSmlcreech    else
975636a995dSmlcreech      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
976636a995dSmlcreech    fi
977636a995dSmlcreech    if test "$DSYMUTIL" != ":"; then
978636a995dSmlcreech      _lt_dsymutil='~$DSYMUTIL $lib || :'
979636a995dSmlcreech    else
980636a995dSmlcreech      _lt_dsymutil=
981636a995dSmlcreech    fi
982636a995dSmlcreech    ;;
983636a995dSmlcreech  esac
984636a995dSmlcreech])
985636a995dSmlcreech
986636a995dSmlcreech
987636a995dSmlcreech# _LT_DARWIN_LINKER_FEATURES
988636a995dSmlcreech# --------------------------
989636a995dSmlcreech# Checks for linker and compiler features on darwin
990636a995dSmlcreechm4_defun([_LT_DARWIN_LINKER_FEATURES],
991636a995dSmlcreech[
992636a995dSmlcreech  m4_require([_LT_REQUIRED_DARWIN_CHECKS])
993636a995dSmlcreech  _LT_TAGVAR(archive_cmds_need_lc, $1)=no
994636a995dSmlcreech  _LT_TAGVAR(hardcode_direct, $1)=no
995636a995dSmlcreech  _LT_TAGVAR(hardcode_automatic, $1)=yes
996636a995dSmlcreech  _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
997636a995dSmlcreech  _LT_TAGVAR(whole_archive_flag_spec, $1)=''
998636a995dSmlcreech  _LT_TAGVAR(link_all_deplibs, $1)=yes
999636a995dSmlcreech  _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
1000*6acb2cf6Svapier  case $cc_basename in
1001*6acb2cf6Svapier     ifort*) _lt_dar_can_shared=yes ;;
1002*6acb2cf6Svapier     *) _lt_dar_can_shared=$GCC ;;
1003*6acb2cf6Svapier  esac
1004*6acb2cf6Svapier  if test "$_lt_dar_can_shared" = "yes"; then
1005636a995dSmlcreech    output_verbose_link_cmd=echo
1006636a995dSmlcreech    _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
1007636a995dSmlcreech    _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
1008636a995dSmlcreech    _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
1009636a995dSmlcreech    _LT_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
1010636a995dSmlcreech    m4_if([$1], [CXX],
1011636a995dSmlcreech[   if test "$lt_cv_apple_cc_single_mod" != "yes"; then
1012636a995dSmlcreech      _LT_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${_lt_dsymutil}"
1013636a995dSmlcreech      _LT_TAGVAR(archive_expsym_cmds, $1)="sed '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${_lt_dar_export_syms}${_lt_dsymutil}"
1014636a995dSmlcreech    fi
1015636a995dSmlcreech],[])
1016636a995dSmlcreech  else
1017636a995dSmlcreech  _LT_TAGVAR(ld_shlibs, $1)=no
1018636a995dSmlcreech  fi
1019636a995dSmlcreech])
1020636a995dSmlcreech
1021636a995dSmlcreech# _LT_SYS_MODULE_PATH_AIX
1022636a995dSmlcreech# -----------------------
10239bc8b93fSa.rottmann# Links a minimal program and checks the executable
10249bc8b93fSa.rottmann# for the system default hardcoded library path. In most cases,
10259bc8b93fSa.rottmann# this is /usr/lib:/lib, but when the MPI compilers are used
10269bc8b93fSa.rottmann# the location of the communication and MPI libs are included too.
10279bc8b93fSa.rottmann# If we don't find anything, use the default library path according
10289bc8b93fSa.rottmann# to the aix ld manual.
1029636a995dSmlcreechm4_defun([_LT_SYS_MODULE_PATH_AIX],
1030636a995dSmlcreech[m4_require([_LT_DECL_SED])dnl
1031636a995dSmlcreechAC_LINK_IFELSE(AC_LANG_PROGRAM,[
1032636a995dSmlcreechlt_aix_libpath_sed='
1033636a995dSmlcreech    /Import File Strings/,/^$/ {
1034636a995dSmlcreech	/^0/ {
1035636a995dSmlcreech	    s/^0  *\(.*\)$/\1/
1036636a995dSmlcreech	    p
1037636a995dSmlcreech	}
1038636a995dSmlcreech    }'
1039636a995dSmlcreechaix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10409bc8b93fSa.rottmann# Check for a 64-bit object if we didn't find anything.
1041636a995dSmlcreechif test -z "$aix_libpath"; then
1042636a995dSmlcreech  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1043636a995dSmlcreechfi],[])
10449bc8b93fSa.rottmannif test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
1045636a995dSmlcreech])# _LT_SYS_MODULE_PATH_AIX
104671eb93eaSdrh
104762507b65Sa.rottmann
1048636a995dSmlcreech# _LT_SHELL_INIT(ARG)
1049636a995dSmlcreech# -------------------
1050636a995dSmlcreechm4_define([_LT_SHELL_INIT],
10519bc8b93fSa.rottmann[ifdef([AC_DIVERSION_NOTICE],
10529bc8b93fSa.rottmann	     [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
10539bc8b93fSa.rottmann	 [AC_DIVERT_PUSH(NOTICE)])
10549bc8b93fSa.rottmann$1
10559bc8b93fSa.rottmannAC_DIVERT_POP
1056636a995dSmlcreech])# _LT_SHELL_INIT
105762507b65Sa.rottmann
105871eb93eaSdrh
1059636a995dSmlcreech# _LT_PROG_ECHO_BACKSLASH
1060636a995dSmlcreech# -----------------------
106171eb93eaSdrh# Add some code to the start of the generated configure script which
106271eb93eaSdrh# will find an echo command which doesn't interpret backslashes.
1063636a995dSmlcreechm4_defun([_LT_PROG_ECHO_BACKSLASH],
1064636a995dSmlcreech[_LT_SHELL_INIT([
106571eb93eaSdrh# Check that we are running under the correct shell.
106671eb93eaSdrhSHELL=${CONFIG_SHELL-/bin/sh}
106771eb93eaSdrh
1068636a995dSmlcreechcase X$lt_ECHO in
106971eb93eaSdrhX*--fallback-echo)
107071eb93eaSdrh  # Remove one level of quotation (which was required for Make).
1071636a995dSmlcreech  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
107271eb93eaSdrh  ;;
107371eb93eaSdrhesac
107471eb93eaSdrh
1075636a995dSmlcreechECHO=${lt_ECHO-echo}
107671eb93eaSdrhif test "X[$]1" = X--no-reexec; then
107771eb93eaSdrh  # Discard the --no-reexec flag, and continue.
107871eb93eaSdrh  shift
107971eb93eaSdrhelif test "X[$]1" = X--fallback-echo; then
108071eb93eaSdrh  # Avoid inline document here, it may be left over
108171eb93eaSdrh  :
1082636a995dSmlcreechelif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
1083636a995dSmlcreech  # Yippee, $ECHO works!
108471eb93eaSdrh  :
108571eb93eaSdrhelse
108671eb93eaSdrh  # Restart under the correct shell.
108771eb93eaSdrh  exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
108871eb93eaSdrhfi
108971eb93eaSdrh
109071eb93eaSdrhif test "X[$]1" = X--fallback-echo; then
109171eb93eaSdrh  # used as fallback echo
109271eb93eaSdrh  shift
1093636a995dSmlcreech  cat <<_LT_EOF
10949bc8b93fSa.rottmann[$]*
1095636a995dSmlcreech_LT_EOF
109671eb93eaSdrh  exit 0
109771eb93eaSdrhfi
109871eb93eaSdrh
109971eb93eaSdrh# The HP-UX ksh and POSIX shell print the target directory to stdout
110071eb93eaSdrh# if CDPATH is set.
11017f19c02fSvapier(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
110271eb93eaSdrh
1103636a995dSmlcreechif test -z "$lt_ECHO"; then
110471eb93eaSdrh  if test "X${echo_test_string+set}" != Xset; then
110571eb93eaSdrh    # find a string as large as possible, as long as the shell can cope with it
110671eb93eaSdrh    for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
110771eb93eaSdrh      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
1108636a995dSmlcreech      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
1109636a995dSmlcreech	 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
111071eb93eaSdrh      then
111171eb93eaSdrh        break
111271eb93eaSdrh      fi
111371eb93eaSdrh    done
111471eb93eaSdrh  fi
111571eb93eaSdrh
1116636a995dSmlcreech  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
1117636a995dSmlcreech     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
111871eb93eaSdrh     test "X$echo_testing_string" = "X$echo_test_string"; then
111971eb93eaSdrh    :
112071eb93eaSdrh  else
112171eb93eaSdrh    # The Solaris, AIX, and Digital Unix default echo programs unquote
112271eb93eaSdrh    # backslashes.  This makes it impossible to quote backslashes using
112371eb93eaSdrh    #   echo "$something" | sed 's/\\/\\\\/g'
112471eb93eaSdrh    #
112571eb93eaSdrh    # So, first we look for a working echo in the user's PATH.
112671eb93eaSdrh
11279bc8b93fSa.rottmann    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
112871eb93eaSdrh    for dir in $PATH /usr/ucb; do
11299bc8b93fSa.rottmann      IFS="$lt_save_ifs"
113071eb93eaSdrh      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
113171eb93eaSdrh         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
113271eb93eaSdrh         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
113371eb93eaSdrh         test "X$echo_testing_string" = "X$echo_test_string"; then
1134636a995dSmlcreech        ECHO="$dir/echo"
113571eb93eaSdrh        break
113671eb93eaSdrh      fi
113771eb93eaSdrh    done
11389bc8b93fSa.rottmann    IFS="$lt_save_ifs"
113971eb93eaSdrh
1140636a995dSmlcreech    if test "X$ECHO" = Xecho; then
114171eb93eaSdrh      # We didn't find a better echo, so look for alternatives.
1142636a995dSmlcreech      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
1143636a995dSmlcreech         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
114471eb93eaSdrh         test "X$echo_testing_string" = "X$echo_test_string"; then
114571eb93eaSdrh        # This shell has a builtin print -r that does the trick.
1146636a995dSmlcreech        ECHO='print -r'
1147636a995dSmlcreech      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
114871eb93eaSdrh	   test "X$CONFIG_SHELL" != X/bin/ksh; then
114971eb93eaSdrh        # If we have ksh, try running configure again with it.
115071eb93eaSdrh        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
115171eb93eaSdrh        export ORIGINAL_CONFIG_SHELL
115271eb93eaSdrh        CONFIG_SHELL=/bin/ksh
115371eb93eaSdrh        export CONFIG_SHELL
115471eb93eaSdrh        exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
115571eb93eaSdrh      else
115671eb93eaSdrh        # Try using printf.
1157636a995dSmlcreech        ECHO='printf %s\n'
1158636a995dSmlcreech        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
1159636a995dSmlcreech	   echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
116071eb93eaSdrh	   test "X$echo_testing_string" = "X$echo_test_string"; then
116171eb93eaSdrh	  # Cool, printf works
116271eb93eaSdrh	  :
116371eb93eaSdrh        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
116471eb93eaSdrh	     test "X$echo_testing_string" = 'X\t' &&
116571eb93eaSdrh	     echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
116671eb93eaSdrh	     test "X$echo_testing_string" = "X$echo_test_string"; then
116771eb93eaSdrh	  CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
116871eb93eaSdrh	  export CONFIG_SHELL
116971eb93eaSdrh	  SHELL="$CONFIG_SHELL"
117071eb93eaSdrh	  export SHELL
1171636a995dSmlcreech	  ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
117271eb93eaSdrh        elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
117371eb93eaSdrh	     test "X$echo_testing_string" = 'X\t' &&
117471eb93eaSdrh	     echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
117571eb93eaSdrh	     test "X$echo_testing_string" = "X$echo_test_string"; then
1176636a995dSmlcreech	  ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
117771eb93eaSdrh        else
117871eb93eaSdrh	  # maybe with a smaller string...
117971eb93eaSdrh	  prev=:
118071eb93eaSdrh
118171eb93eaSdrh	  for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
1182636a995dSmlcreech	    if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
118371eb93eaSdrh	    then
118471eb93eaSdrh	      break
118571eb93eaSdrh	    fi
118671eb93eaSdrh	    prev="$cmd"
118771eb93eaSdrh	  done
118871eb93eaSdrh
118971eb93eaSdrh	  if test "$prev" != 'sed 50q "[$]0"'; then
119071eb93eaSdrh	    echo_test_string=`eval $prev`
119171eb93eaSdrh	    export echo_test_string
119271eb93eaSdrh	    exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
119371eb93eaSdrh	  else
119471eb93eaSdrh	    # Oops.  We lost completely, so just stick with echo.
1195636a995dSmlcreech	    ECHO=echo
119671eb93eaSdrh	  fi
119771eb93eaSdrh        fi
119871eb93eaSdrh      fi
119971eb93eaSdrh    fi
120071eb93eaSdrh  fi
120171eb93eaSdrhfi
120271eb93eaSdrh
120371eb93eaSdrh# Copy echo and quote the copy suitably for passing to libtool from
120471eb93eaSdrh# the Makefile, instead of quoting the original, which is used later.
1205636a995dSmlcreechlt_ECHO=$ECHO
1206636a995dSmlcreechif test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
1207636a995dSmlcreech   lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
120871eb93eaSdrhfi
120971eb93eaSdrh
1210636a995dSmlcreechAC_SUBST(lt_ECHO)
1211636a995dSmlcreech])
1212636a995dSmlcreech_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
1213636a995dSmlcreech_LT_DECL([], [ECHO], [1],
1214636a995dSmlcreech    [An echo program that does not interpret backslashes])
1215636a995dSmlcreech])# _LT_PROG_ECHO_BACKSLASH
12169bc8b93fSa.rottmann
12179bc8b93fSa.rottmann
1218636a995dSmlcreech# _LT_ENABLE_LOCK
1219636a995dSmlcreech# ---------------
1220636a995dSmlcreechm4_defun([_LT_ENABLE_LOCK],
12219bc8b93fSa.rottmann[AC_ARG_ENABLE([libtool-lock],
1222636a995dSmlcreech  [AS_HELP_STRING([--disable-libtool-lock],
12239bc8b93fSa.rottmann    [avoid locking (might break parallel builds)])])
12249bc8b93fSa.rottmanntest "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12259bc8b93fSa.rottmann
12269bc8b93fSa.rottmann# Some flags need to be propagated to the compiler or linker for good
12279bc8b93fSa.rottmann# libtool support.
12289bc8b93fSa.rottmanncase $host in
12299bc8b93fSa.rottmannia64-*-hpux*)
12309bc8b93fSa.rottmann  # Find out which ABI we are using.
12319bc8b93fSa.rottmann  echo 'int i;' > conftest.$ac_ext
12329bc8b93fSa.rottmann  if AC_TRY_EVAL(ac_compile); then
12339bc8b93fSa.rottmann    case `/usr/bin/file conftest.$ac_objext` in
12349bc8b93fSa.rottmann      *ELF-32*)
12359bc8b93fSa.rottmann	HPUX_IA64_MODE="32"
12369bc8b93fSa.rottmann	;;
12379bc8b93fSa.rottmann      *ELF-64*)
12389bc8b93fSa.rottmann	HPUX_IA64_MODE="64"
12399bc8b93fSa.rottmann	;;
12409bc8b93fSa.rottmann    esac
12419bc8b93fSa.rottmann  fi
12429bc8b93fSa.rottmann  rm -rf conftest*
12439bc8b93fSa.rottmann  ;;
12449bc8b93fSa.rottmann*-*-irix6*)
12459bc8b93fSa.rottmann  # Find out which ABI we are using.
12469bc8b93fSa.rottmann  echo '[#]line __oline__ "configure"' > conftest.$ac_ext
12479bc8b93fSa.rottmann  if AC_TRY_EVAL(ac_compile); then
12489bc8b93fSa.rottmann    if test "$lt_cv_prog_gnu_ld" = yes; then
12499bc8b93fSa.rottmann      case `/usr/bin/file conftest.$ac_objext` in
12509bc8b93fSa.rottmann	*32-bit*)
12519bc8b93fSa.rottmann	  LD="${LD-ld} -melf32bsmip"
12529bc8b93fSa.rottmann	  ;;
12539bc8b93fSa.rottmann	*N32*)
12549bc8b93fSa.rottmann	  LD="${LD-ld} -melf32bmipn32"
12559bc8b93fSa.rottmann	  ;;
12569bc8b93fSa.rottmann	*64-bit*)
12579bc8b93fSa.rottmann	  LD="${LD-ld} -melf64bmip"
12589bc8b93fSa.rottmann	;;
12599bc8b93fSa.rottmann      esac
12609bc8b93fSa.rottmann    else
12619bc8b93fSa.rottmann      case `/usr/bin/file conftest.$ac_objext` in
12629bc8b93fSa.rottmann	*32-bit*)
12639bc8b93fSa.rottmann	  LD="${LD-ld} -32"
12649bc8b93fSa.rottmann	  ;;
12659bc8b93fSa.rottmann	*N32*)
12669bc8b93fSa.rottmann	  LD="${LD-ld} -n32"
12679bc8b93fSa.rottmann	  ;;
12689bc8b93fSa.rottmann	*64-bit*)
12699bc8b93fSa.rottmann	  LD="${LD-ld} -64"
12709bc8b93fSa.rottmann	  ;;
12719bc8b93fSa.rottmann      esac
12729bc8b93fSa.rottmann    fi
12739bc8b93fSa.rottmann  fi
12749bc8b93fSa.rottmann  rm -rf conftest*
12759bc8b93fSa.rottmann  ;;
12769bc8b93fSa.rottmann
1277636a995dSmlcreechx86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
1278636a995dSmlcreechs390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12799bc8b93fSa.rottmann  # Find out which ABI we are using.
12809bc8b93fSa.rottmann  echo 'int i;' > conftest.$ac_ext
12819bc8b93fSa.rottmann  if AC_TRY_EVAL(ac_compile); then
12827f19c02fSvapier    case `/usr/bin/file conftest.o` in
12839bc8b93fSa.rottmann      *32-bit*)
12849bc8b93fSa.rottmann	case $host in
1285636a995dSmlcreech	  x86_64-*kfreebsd*-gnu)
1286636a995dSmlcreech	    LD="${LD-ld} -m elf_i386_fbsd"
1287636a995dSmlcreech	    ;;
12889bc8b93fSa.rottmann	  x86_64-*linux*)
12899bc8b93fSa.rottmann	    LD="${LD-ld} -m elf_i386"
12909bc8b93fSa.rottmann	    ;;
12919bc8b93fSa.rottmann	  ppc64-*linux*|powerpc64-*linux*)
12929bc8b93fSa.rottmann	    LD="${LD-ld} -m elf32ppclinux"
12939bc8b93fSa.rottmann	    ;;
12949bc8b93fSa.rottmann	  s390x-*linux*)
12959bc8b93fSa.rottmann	    LD="${LD-ld} -m elf_s390"
12969bc8b93fSa.rottmann	    ;;
12979bc8b93fSa.rottmann	  sparc64-*linux*)
12989bc8b93fSa.rottmann	    LD="${LD-ld} -m elf32_sparc"
12999bc8b93fSa.rottmann	    ;;
13009bc8b93fSa.rottmann	esac
13019bc8b93fSa.rottmann	;;
13029bc8b93fSa.rottmann      *64-bit*)
13039bc8b93fSa.rottmann	case $host in
1304636a995dSmlcreech	  x86_64-*kfreebsd*-gnu)
1305636a995dSmlcreech	    LD="${LD-ld} -m elf_x86_64_fbsd"
1306636a995dSmlcreech	    ;;
13079bc8b93fSa.rottmann	  x86_64-*linux*)
13089bc8b93fSa.rottmann	    LD="${LD-ld} -m elf_x86_64"
13099bc8b93fSa.rottmann	    ;;
13109bc8b93fSa.rottmann	  ppc*-*linux*|powerpc*-*linux*)
13119bc8b93fSa.rottmann	    LD="${LD-ld} -m elf64ppc"
13129bc8b93fSa.rottmann	    ;;
1313636a995dSmlcreech	  s390*-*linux*|s390*-*tpf*)
13149bc8b93fSa.rottmann	    LD="${LD-ld} -m elf64_s390"
13159bc8b93fSa.rottmann	    ;;
13169bc8b93fSa.rottmann	  sparc*-*linux*)
13179bc8b93fSa.rottmann	    LD="${LD-ld} -m elf64_sparc"
13189bc8b93fSa.rottmann	    ;;
13199bc8b93fSa.rottmann	esac
13209bc8b93fSa.rottmann	;;
13219bc8b93fSa.rottmann    esac
13229bc8b93fSa.rottmann  fi
13239bc8b93fSa.rottmann  rm -rf conftest*
13249bc8b93fSa.rottmann  ;;
13259bc8b93fSa.rottmann
13269bc8b93fSa.rottmann*-*-sco3.2v5*)
13279bc8b93fSa.rottmann  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13289bc8b93fSa.rottmann  SAVE_CFLAGS="$CFLAGS"
13299bc8b93fSa.rottmann  CFLAGS="$CFLAGS -belf"
13309bc8b93fSa.rottmann  AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
13319bc8b93fSa.rottmann    [AC_LANG_PUSH(C)
1332636a995dSmlcreech     AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
13339bc8b93fSa.rottmann     AC_LANG_POP])
13349bc8b93fSa.rottmann  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13359bc8b93fSa.rottmann    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13369bc8b93fSa.rottmann    CFLAGS="$SAVE_CFLAGS"
13379bc8b93fSa.rottmann  fi
13389bc8b93fSa.rottmann  ;;
13397f19c02fSvapiersparc*-*solaris*)
13407f19c02fSvapier  # Find out which ABI we are using.
13417f19c02fSvapier  echo 'int i;' > conftest.$ac_ext
13427f19c02fSvapier  if AC_TRY_EVAL(ac_compile); then
13437f19c02fSvapier    case `/usr/bin/file conftest.o` in
13447f19c02fSvapier    *64-bit*)
13457f19c02fSvapier      case $lt_cv_prog_gnu_ld in
13467f19c02fSvapier      yes*) LD="${LD-ld} -m elf64_sparc" ;;
1347636a995dSmlcreech      *)
1348636a995dSmlcreech	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
1349636a995dSmlcreech	  LD="${LD-ld} -64"
1350636a995dSmlcreech	fi
1351636a995dSmlcreech	;;
13527f19c02fSvapier      esac
13537f19c02fSvapier      ;;
13547f19c02fSvapier    esac
13557f19c02fSvapier  fi
13567f19c02fSvapier  rm -rf conftest*
13577f19c02fSvapier  ;;
13589bc8b93fSa.rottmannesac
13599bc8b93fSa.rottmann
13609bc8b93fSa.rottmannneed_locks="$enable_libtool_lock"
1361636a995dSmlcreech])# _LT_ENABLE_LOCK
13629bc8b93fSa.rottmann
13639bc8b93fSa.rottmann
1364636a995dSmlcreech# _LT_CMD_OLD_ARCHIVE
1365636a995dSmlcreech# -------------------
1366636a995dSmlcreechm4_defun([_LT_CMD_OLD_ARCHIVE],
1367636a995dSmlcreech[AC_CHECK_TOOL(AR, ar, false)
1368636a995dSmlcreechtest -z "$AR" && AR=ar
1369636a995dSmlcreechtest -z "$AR_FLAGS" && AR_FLAGS=cru
1370636a995dSmlcreech_LT_DECL([], [AR], [1], [The archiver])
1371636a995dSmlcreech_LT_DECL([], [AR_FLAGS], [1])
1372636a995dSmlcreech
1373636a995dSmlcreechAC_CHECK_TOOL(STRIP, strip, :)
1374636a995dSmlcreechtest -z "$STRIP" && STRIP=:
1375636a995dSmlcreech_LT_DECL([], [STRIP], [1], [A symbol stripping program])
1376636a995dSmlcreech
1377636a995dSmlcreechAC_CHECK_TOOL(RANLIB, ranlib, :)
1378636a995dSmlcreechtest -z "$RANLIB" && RANLIB=:
1379636a995dSmlcreech_LT_DECL([], [RANLIB], [1],
1380636a995dSmlcreech    [Commands used to install an old-style archive])
1381636a995dSmlcreech
1382636a995dSmlcreech# Determine commands to create old-style static archives.
1383636a995dSmlcreechold_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
1384636a995dSmlcreechold_postinstall_cmds='chmod 644 $oldlib'
1385636a995dSmlcreechold_postuninstall_cmds=
1386636a995dSmlcreech
1387636a995dSmlcreechif test -n "$RANLIB"; then
1388636a995dSmlcreech  case $host_os in
1389636a995dSmlcreech  openbsd*)
1390636a995dSmlcreech    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
1391636a995dSmlcreech    ;;
1392636a995dSmlcreech  *)
1393636a995dSmlcreech    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
1394636a995dSmlcreech    ;;
1395636a995dSmlcreech  esac
1396636a995dSmlcreech  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
1397636a995dSmlcreechfi
1398636a995dSmlcreech_LT_DECL([], [old_postinstall_cmds], [2])
1399636a995dSmlcreech_LT_DECL([], [old_postuninstall_cmds], [2])
1400636a995dSmlcreech_LT_TAGDECL([], [old_archive_cmds], [2],
1401636a995dSmlcreech    [Commands used to build an old-style archive])
1402636a995dSmlcreech])# _LT_CMD_OLD_ARCHIVE
1403636a995dSmlcreech
1404636a995dSmlcreech
1405636a995dSmlcreech# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
14069bc8b93fSa.rottmann#		[OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
14079bc8b93fSa.rottmann# ----------------------------------------------------------------
14089bc8b93fSa.rottmann# Check whether the given compiler option works
1409636a995dSmlcreechAC_DEFUN([_LT_COMPILER_OPTION],
1410636a995dSmlcreech[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1411636a995dSmlcreechm4_require([_LT_DECL_SED])dnl
14129bc8b93fSa.rottmannAC_CACHE_CHECK([$1], [$2],
14139bc8b93fSa.rottmann  [$2=no
1414636a995dSmlcreech   m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
1415636a995dSmlcreech   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14169bc8b93fSa.rottmann   lt_compiler_flag="$3"
14179bc8b93fSa.rottmann   # Insert the option either (1) after the last *FLAGS variable, or
14189bc8b93fSa.rottmann   # (2) before a word containing "conftest.", or (3) at the end.
14199bc8b93fSa.rottmann   # Note that $ac_compile itself does not contain backslashes and begins
14209bc8b93fSa.rottmann   # with a dollar sign (not a hyphen), so the echo should work correctly.
14219bc8b93fSa.rottmann   # The option is referenced via a variable to avoid confusing sed.
14229bc8b93fSa.rottmann   lt_compile=`echo "$ac_compile" | $SED \
14237f19c02fSvapier   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14249bc8b93fSa.rottmann   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
14259bc8b93fSa.rottmann   -e 's:$: $lt_compiler_flag:'`
14269bc8b93fSa.rottmann   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
14279bc8b93fSa.rottmann   (eval "$lt_compile" 2>conftest.err)
14289bc8b93fSa.rottmann   ac_status=$?
14299bc8b93fSa.rottmann   cat conftest.err >&AS_MESSAGE_LOG_FD
14309bc8b93fSa.rottmann   echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
14319bc8b93fSa.rottmann   if (exit $ac_status) && test -s "$ac_outfile"; then
14329bc8b93fSa.rottmann     # The compiler can only warn and ignore the option if not recognized
14337f19c02fSvapier     # So say no if there are warnings other than the usual output.
1434636a995dSmlcreech     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14357f19c02fSvapier     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14367f19c02fSvapier     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14379bc8b93fSa.rottmann       $2=yes
14389bc8b93fSa.rottmann     fi
14399bc8b93fSa.rottmann   fi
1440636a995dSmlcreech   $RM conftest*
14419bc8b93fSa.rottmann])
14429bc8b93fSa.rottmann
14439bc8b93fSa.rottmannif test x"[$]$2" = xyes; then
1444636a995dSmlcreech    m4_if([$5], , :, [$5])
14459bc8b93fSa.rottmannelse
1446636a995dSmlcreech    m4_if([$6], , :, [$6])
14479bc8b93fSa.rottmannfi
1448636a995dSmlcreech])# _LT_COMPILER_OPTION
1449636a995dSmlcreech
1450636a995dSmlcreech# Old name:
1451636a995dSmlcreechAU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
1452636a995dSmlcreechdnl aclocal-1.4 backwards compatibility:
1453636a995dSmlcreechdnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
14549bc8b93fSa.rottmann
14559bc8b93fSa.rottmann
1456636a995dSmlcreech# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
14579bc8b93fSa.rottmann#                  [ACTION-SUCCESS], [ACTION-FAILURE])
1458636a995dSmlcreech# ----------------------------------------------------
1459636a995dSmlcreech# Check whether the given linker option works
1460636a995dSmlcreechAC_DEFUN([_LT_LINKER_OPTION],
1461636a995dSmlcreech[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1462636a995dSmlcreechm4_require([_LT_DECL_SED])dnl
1463636a995dSmlcreechAC_CACHE_CHECK([$1], [$2],
14649bc8b93fSa.rottmann  [$2=no
14659bc8b93fSa.rottmann   save_LDFLAGS="$LDFLAGS"
14669bc8b93fSa.rottmann   LDFLAGS="$LDFLAGS $3"
1467636a995dSmlcreech   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14689bc8b93fSa.rottmann   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14697f19c02fSvapier     # The linker can only warn and ignore the option if not recognized
14709bc8b93fSa.rottmann     # So say no if there are warnings
14719bc8b93fSa.rottmann     if test -s conftest.err; then
14729bc8b93fSa.rottmann       # Append any errors to the config.log.
14739bc8b93fSa.rottmann       cat conftest.err 1>&AS_MESSAGE_LOG_FD
1474636a995dSmlcreech       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14757f19c02fSvapier       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14767f19c02fSvapier       if diff conftest.exp conftest.er2 >/dev/null; then
14777f19c02fSvapier         $2=yes
14787f19c02fSvapier       fi
14799bc8b93fSa.rottmann     else
14809bc8b93fSa.rottmann       $2=yes
14819bc8b93fSa.rottmann     fi
14829bc8b93fSa.rottmann   fi
1483636a995dSmlcreech   $RM -r conftest*
14849bc8b93fSa.rottmann   LDFLAGS="$save_LDFLAGS"
14859bc8b93fSa.rottmann])
14869bc8b93fSa.rottmann
14879bc8b93fSa.rottmannif test x"[$]$2" = xyes; then
1488636a995dSmlcreech    m4_if([$4], , :, [$4])
14899bc8b93fSa.rottmannelse
1490636a995dSmlcreech    m4_if([$5], , :, [$5])
14919bc8b93fSa.rottmannfi
1492636a995dSmlcreech])# _LT_LINKER_OPTION
1493636a995dSmlcreech
1494636a995dSmlcreech# Old name:
1495636a995dSmlcreechAU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
1496636a995dSmlcreechdnl aclocal-1.4 backwards compatibility:
1497636a995dSmlcreechdnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
14989bc8b93fSa.rottmann
14999bc8b93fSa.rottmann
1500636a995dSmlcreech# LT_CMD_MAX_LEN
1501636a995dSmlcreech#---------------
1502636a995dSmlcreechAC_DEFUN([LT_CMD_MAX_LEN],
1503636a995dSmlcreech[AC_REQUIRE([AC_CANONICAL_HOST])dnl
1504636a995dSmlcreech# find the maximum length of command line arguments
15059bc8b93fSa.rottmannAC_MSG_CHECKING([the maximum length of command line arguments])
15069bc8b93fSa.rottmannAC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
15079bc8b93fSa.rottmann  i=0
15087f19c02fSvapier  teststring="ABCD"
15099bc8b93fSa.rottmann
15109bc8b93fSa.rottmann  case $build_os in
15119bc8b93fSa.rottmann  msdosdjgpp*)
15129bc8b93fSa.rottmann    # On DJGPP, this test can blow up pretty badly due to problems in libc
15139bc8b93fSa.rottmann    # (any single argument exceeding 2000 bytes causes a buffer overrun
15149bc8b93fSa.rottmann    # during glob expansion).  Even if it were fixed, the result of this
15159bc8b93fSa.rottmann    # check would be larger than it should be.
15169bc8b93fSa.rottmann    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
15179bc8b93fSa.rottmann    ;;
15189bc8b93fSa.rottmann
15199bc8b93fSa.rottmann  gnu*)
15209bc8b93fSa.rottmann    # Under GNU Hurd, this test is not required because there is
15219bc8b93fSa.rottmann    # no limit to the length of command line arguments.
15229bc8b93fSa.rottmann    # Libtool will interpret -1 as no limit whatsoever
15239bc8b93fSa.rottmann    lt_cv_sys_max_cmd_len=-1;
15249bc8b93fSa.rottmann    ;;
15259bc8b93fSa.rottmann
1526*6acb2cf6Svapier  cygwin* | mingw* | cegcc*)
15279bc8b93fSa.rottmann    # On Win9x/ME, this test blows up -- it succeeds, but takes
15289bc8b93fSa.rottmann    # about 5 minutes as the teststring grows exponentially.
15299bc8b93fSa.rottmann    # Worse, since 9x/ME are not pre-emptively multitasking,
15309bc8b93fSa.rottmann    # you end up with a "frozen" computer, even though with patience
15319bc8b93fSa.rottmann    # the test eventually succeeds (with a max line length of 256k).
15329bc8b93fSa.rottmann    # Instead, let's just punt: use the minimum linelength reported by
15339bc8b93fSa.rottmann    # all of the supported platforms: 8192 (on NT/2K/XP).
15349bc8b93fSa.rottmann    lt_cv_sys_max_cmd_len=8192;
15359bc8b93fSa.rottmann    ;;
15369bc8b93fSa.rottmann
15379bc8b93fSa.rottmann  amigaos*)
15389bc8b93fSa.rottmann    # On AmigaOS with pdksh, this test takes hours, literally.
15399bc8b93fSa.rottmann    # So we just punt and use a minimum line length of 8192.
15409bc8b93fSa.rottmann    lt_cv_sys_max_cmd_len=8192;
15419bc8b93fSa.rottmann    ;;
15429bc8b93fSa.rottmann
15437f19c02fSvapier  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
15447f19c02fSvapier    # This has been around since 386BSD, at least.  Likely further.
15457f19c02fSvapier    if test -x /sbin/sysctl; then
15467f19c02fSvapier      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
15477f19c02fSvapier    elif test -x /usr/sbin/sysctl; then
15487f19c02fSvapier      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
15497f19c02fSvapier    else
15507f19c02fSvapier      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
15517f19c02fSvapier    fi
15527f19c02fSvapier    # And add a safety zone
15537f19c02fSvapier    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
15547f19c02fSvapier    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
15557f19c02fSvapier    ;;
15567f19c02fSvapier
15577f19c02fSvapier  interix*)
15587f19c02fSvapier    # We know the value 262144 and hardcode it with a safety zone (like BSD)
15597f19c02fSvapier    lt_cv_sys_max_cmd_len=196608
15607f19c02fSvapier    ;;
15617f19c02fSvapier
15627f19c02fSvapier  osf*)
15637f19c02fSvapier    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
15647f19c02fSvapier    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
15657f19c02fSvapier    # nice to cause kernel panics so lets avoid the loop below.
15667f19c02fSvapier    # First set a reasonable default.
15677f19c02fSvapier    lt_cv_sys_max_cmd_len=16384
15687f19c02fSvapier    #
15697f19c02fSvapier    if test -x /sbin/sysconfig; then
15707f19c02fSvapier      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
15717f19c02fSvapier        *1*) lt_cv_sys_max_cmd_len=-1 ;;
15727f19c02fSvapier      esac
15737f19c02fSvapier    fi
15747f19c02fSvapier    ;;
15757f19c02fSvapier  sco3.2v5*)
15767f19c02fSvapier    lt_cv_sys_max_cmd_len=102400
15777f19c02fSvapier    ;;
15787f19c02fSvapier  sysv5* | sco5v6* | sysv4.2uw2*)
15797f19c02fSvapier    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
15807f19c02fSvapier    if test -n "$kargmax"; then
15817f19c02fSvapier      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[	 ]]//'`
15827f19c02fSvapier    else
15837f19c02fSvapier      lt_cv_sys_max_cmd_len=32768
15847f19c02fSvapier    fi
15857f19c02fSvapier    ;;
15869bc8b93fSa.rottmann  *)
1587636a995dSmlcreech    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
1588636a995dSmlcreech    if test -n "$lt_cv_sys_max_cmd_len"; then
1589636a995dSmlcreech      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
1590636a995dSmlcreech      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
1591636a995dSmlcreech    else
1592636a995dSmlcreech      # Make teststring a little bigger before we do anything with it.
1593636a995dSmlcreech      # a 1K string should be a reasonable start.
1594636a995dSmlcreech      for i in 1 2 3 4 5 6 7 8 ; do
1595636a995dSmlcreech        teststring=$teststring$teststring
1596636a995dSmlcreech      done
1597636a995dSmlcreech      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
15989bc8b93fSa.rottmann      # If test is not a shell built-in, we'll probably end up computing a
15999bc8b93fSa.rottmann      # maximum length that is only half of the actual maximum length, but
16009bc8b93fSa.rottmann      # we can't tell.
1601636a995dSmlcreech      while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
1602636a995dSmlcreech	         = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
16039bc8b93fSa.rottmann	      test $i != 17 # 1/2 MB should be enough
16049bc8b93fSa.rottmann      do
16059bc8b93fSa.rottmann        i=`expr $i + 1`
16067f19c02fSvapier        teststring=$teststring$teststring
16079bc8b93fSa.rottmann      done
1608636a995dSmlcreech      # Only check the string length outside the loop.
1609636a995dSmlcreech      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
16107f19c02fSvapier      teststring=
1611636a995dSmlcreech      # Add a significant safety factor because C++ compilers can tack on
1612636a995dSmlcreech      # massive amounts of additional arguments before passing them to the
1613636a995dSmlcreech      # linker.  It appears as though 1/2 is a usable value.
16149bc8b93fSa.rottmann      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
1615636a995dSmlcreech    fi
16169bc8b93fSa.rottmann    ;;
16179bc8b93fSa.rottmann  esac
16189bc8b93fSa.rottmann])
16199bc8b93fSa.rottmannif test -n $lt_cv_sys_max_cmd_len ; then
16209bc8b93fSa.rottmann  AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
16219bc8b93fSa.rottmannelse
16229bc8b93fSa.rottmann  AC_MSG_RESULT(none)
16239bc8b93fSa.rottmannfi
1624636a995dSmlcreechmax_cmd_len=$lt_cv_sys_max_cmd_len
1625636a995dSmlcreech_LT_DECL([], [max_cmd_len], [0],
1626636a995dSmlcreech    [What is the maximum length of a command?])
1627636a995dSmlcreech])# LT_CMD_MAX_LEN
1628636a995dSmlcreech
1629636a995dSmlcreech# Old name:
1630636a995dSmlcreechAU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
1631636a995dSmlcreechdnl aclocal-1.4 backwards compatibility:
1632636a995dSmlcreechdnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
16339bc8b93fSa.rottmann
16349bc8b93fSa.rottmann
1635636a995dSmlcreech# _LT_HEADER_DLFCN
1636636a995dSmlcreech# ----------------
1637636a995dSmlcreechm4_defun([_LT_HEADER_DLFCN],
1638636a995dSmlcreech[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
1639636a995dSmlcreech])# _LT_HEADER_DLFCN
16409bc8b93fSa.rottmann
164171eb93eaSdrh
1642636a995dSmlcreech# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
164371eb93eaSdrh#                      ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
1644636a995dSmlcreech# ----------------------------------------------------------------
1645636a995dSmlcreechm4_defun([_LT_TRY_DLOPEN_SELF],
1646636a995dSmlcreech[m4_require([_LT_HEADER_DLFCN])dnl
16479bc8b93fSa.rottmannif test "$cross_compiling" = yes; then :
164871eb93eaSdrh  [$4]
164971eb93eaSdrhelse
165071eb93eaSdrh  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
165171eb93eaSdrh  lt_status=$lt_dlunknown
1652636a995dSmlcreech  cat > conftest.$ac_ext <<_LT_EOF
165371eb93eaSdrh[#line __oline__ "configure"
165471eb93eaSdrh#include "confdefs.h"
165571eb93eaSdrh
165671eb93eaSdrh#if HAVE_DLFCN_H
165771eb93eaSdrh#include <dlfcn.h>
165871eb93eaSdrh#endif
165971eb93eaSdrh
166071eb93eaSdrh#include <stdio.h>
166171eb93eaSdrh
166271eb93eaSdrh#ifdef RTLD_GLOBAL
166371eb93eaSdrh#  define LT_DLGLOBAL		RTLD_GLOBAL
166471eb93eaSdrh#else
166571eb93eaSdrh#  ifdef DL_GLOBAL
166671eb93eaSdrh#    define LT_DLGLOBAL		DL_GLOBAL
166771eb93eaSdrh#  else
166871eb93eaSdrh#    define LT_DLGLOBAL		0
166971eb93eaSdrh#  endif
167071eb93eaSdrh#endif
167171eb93eaSdrh
167271eb93eaSdrh/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
167371eb93eaSdrh   find out it does not work in some platform. */
167471eb93eaSdrh#ifndef LT_DLLAZY_OR_NOW
167571eb93eaSdrh#  ifdef RTLD_LAZY
167671eb93eaSdrh#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
167771eb93eaSdrh#  else
167871eb93eaSdrh#    ifdef DL_LAZY
167971eb93eaSdrh#      define LT_DLLAZY_OR_NOW		DL_LAZY
168071eb93eaSdrh#    else
168171eb93eaSdrh#      ifdef RTLD_NOW
168271eb93eaSdrh#        define LT_DLLAZY_OR_NOW	RTLD_NOW
168371eb93eaSdrh#      else
168471eb93eaSdrh#        ifdef DL_NOW
168571eb93eaSdrh#          define LT_DLLAZY_OR_NOW	DL_NOW
168671eb93eaSdrh#        else
168771eb93eaSdrh#          define LT_DLLAZY_OR_NOW	0
168871eb93eaSdrh#        endif
168971eb93eaSdrh#      endif
169071eb93eaSdrh#    endif
169171eb93eaSdrh#  endif
169271eb93eaSdrh#endif
169371eb93eaSdrh
169471eb93eaSdrhvoid fnord() { int i=42;}
169571eb93eaSdrhint main ()
169671eb93eaSdrh{
169771eb93eaSdrh  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
169871eb93eaSdrh  int status = $lt_dlunknown;
169971eb93eaSdrh
170071eb93eaSdrh  if (self)
170171eb93eaSdrh    {
170271eb93eaSdrh      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
170371eb93eaSdrh      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
170471eb93eaSdrh      /* dlclose (self); */
170571eb93eaSdrh    }
17067f19c02fSvapier  else
17077f19c02fSvapier    puts (dlerror ());
170871eb93eaSdrh
1709*6acb2cf6Svapier  return status;
171071eb93eaSdrh}]
1711636a995dSmlcreech_LT_EOF
171271eb93eaSdrh  if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
17137f19c02fSvapier    (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
171471eb93eaSdrh    lt_status=$?
171571eb93eaSdrh    case x$lt_status in
171671eb93eaSdrh      x$lt_dlno_uscore) $1 ;;
171771eb93eaSdrh      x$lt_dlneed_uscore) $2 ;;
17187f19c02fSvapier      x$lt_dlunknown|x*) $3 ;;
171971eb93eaSdrh    esac
172071eb93eaSdrh  else :
172171eb93eaSdrh    # compilation failed
172271eb93eaSdrh    $3
172371eb93eaSdrh  fi
172471eb93eaSdrhfi
172571eb93eaSdrhrm -fr conftest*
1726636a995dSmlcreech])# _LT_TRY_DLOPEN_SELF
172771eb93eaSdrh
17289bc8b93fSa.rottmann
1729636a995dSmlcreech# LT_SYS_DLOPEN_SELF
1730636a995dSmlcreech# ------------------
1731636a995dSmlcreechAC_DEFUN([LT_SYS_DLOPEN_SELF],
1732636a995dSmlcreech[m4_require([_LT_HEADER_DLFCN])dnl
17339bc8b93fSa.rottmannif test "x$enable_dlopen" != xyes; then
173471eb93eaSdrh  enable_dlopen=unknown
173571eb93eaSdrh  enable_dlopen_self=unknown
173671eb93eaSdrh  enable_dlopen_self_static=unknown
173771eb93eaSdrhelse
173871eb93eaSdrh  lt_cv_dlopen=no
173971eb93eaSdrh  lt_cv_dlopen_libs=
174071eb93eaSdrh
174171eb93eaSdrh  case $host_os in
174271eb93eaSdrh  beos*)
174371eb93eaSdrh    lt_cv_dlopen="load_add_on"
174471eb93eaSdrh    lt_cv_dlopen_libs=
174571eb93eaSdrh    lt_cv_dlopen_self=yes
174671eb93eaSdrh    ;;
174771eb93eaSdrh
1748*6acb2cf6Svapier  mingw* | pw32* | cegcc*)
174971eb93eaSdrh    lt_cv_dlopen="LoadLibrary"
175071eb93eaSdrh    lt_cv_dlopen_libs=
175171eb93eaSdrh    ;;
175271eb93eaSdrh
17539bc8b93fSa.rottmann  cygwin*)
17549bc8b93fSa.rottmann    lt_cv_dlopen="dlopen"
17559bc8b93fSa.rottmann    lt_cv_dlopen_libs=
17569bc8b93fSa.rottmann    ;;
17579bc8b93fSa.rottmann
17589bc8b93fSa.rottmann  darwin*)
17599bc8b93fSa.rottmann  # if libdl is installed we need to link against it
17609bc8b93fSa.rottmann    AC_CHECK_LIB([dl], [dlopen],
17619bc8b93fSa.rottmann		[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
17629bc8b93fSa.rottmann    lt_cv_dlopen="dyld"
17639bc8b93fSa.rottmann    lt_cv_dlopen_libs=
17649bc8b93fSa.rottmann    lt_cv_dlopen_self=yes
17659bc8b93fSa.rottmann    ])
17669bc8b93fSa.rottmann    ;;
17679bc8b93fSa.rottmann
176871eb93eaSdrh  *)
176962507b65Sa.rottmann    AC_CHECK_FUNC([shl_load],
177062507b65Sa.rottmann	  [lt_cv_dlopen="shl_load"],
177162507b65Sa.rottmann      [AC_CHECK_LIB([dld], [shl_load],
1772636a995dSmlcreech	    [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
177362507b65Sa.rottmann	[AC_CHECK_FUNC([dlopen],
177462507b65Sa.rottmann	      [lt_cv_dlopen="dlopen"],
177562507b65Sa.rottmann	  [AC_CHECK_LIB([dl], [dlopen],
177671eb93eaSdrh		[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
177762507b65Sa.rottmann	    [AC_CHECK_LIB([svld], [dlopen],
177862507b65Sa.rottmann		  [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
177962507b65Sa.rottmann	      [AC_CHECK_LIB([dld], [dld_link],
1780636a995dSmlcreech		    [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
178162507b65Sa.rottmann	      ])
178271eb93eaSdrh	    ])
178371eb93eaSdrh	  ])
178471eb93eaSdrh	])
178571eb93eaSdrh      ])
178671eb93eaSdrh    ;;
178771eb93eaSdrh  esac
178871eb93eaSdrh
178971eb93eaSdrh  if test "x$lt_cv_dlopen" != xno; then
179071eb93eaSdrh    enable_dlopen=yes
179171eb93eaSdrh  else
179271eb93eaSdrh    enable_dlopen=no
179371eb93eaSdrh  fi
179471eb93eaSdrh
179571eb93eaSdrh  case $lt_cv_dlopen in
179671eb93eaSdrh  dlopen)
179771eb93eaSdrh    save_CPPFLAGS="$CPPFLAGS"
179871eb93eaSdrh    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
179971eb93eaSdrh
180071eb93eaSdrh    save_LDFLAGS="$LDFLAGS"
18017f19c02fSvapier    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
180271eb93eaSdrh
180371eb93eaSdrh    save_LIBS="$LIBS"
180471eb93eaSdrh    LIBS="$lt_cv_dlopen_libs $LIBS"
180571eb93eaSdrh
180671eb93eaSdrh    AC_CACHE_CHECK([whether a program can dlopen itself],
180771eb93eaSdrh	  lt_cv_dlopen_self, [dnl
1808636a995dSmlcreech	  _LT_TRY_DLOPEN_SELF(
180971eb93eaSdrh	    lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
181071eb93eaSdrh	    lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
181171eb93eaSdrh    ])
181271eb93eaSdrh
181371eb93eaSdrh    if test "x$lt_cv_dlopen_self" = xyes; then
18147f19c02fSvapier      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
181571eb93eaSdrh      AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
181671eb93eaSdrh	  lt_cv_dlopen_self_static, [dnl
1817636a995dSmlcreech	  _LT_TRY_DLOPEN_SELF(
181871eb93eaSdrh	    lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
181971eb93eaSdrh	    lt_cv_dlopen_self_static=no,  lt_cv_dlopen_self_static=cross)
182071eb93eaSdrh      ])
182171eb93eaSdrh    fi
182271eb93eaSdrh
182371eb93eaSdrh    CPPFLAGS="$save_CPPFLAGS"
182471eb93eaSdrh    LDFLAGS="$save_LDFLAGS"
182571eb93eaSdrh    LIBS="$save_LIBS"
182671eb93eaSdrh    ;;
182771eb93eaSdrh  esac
182871eb93eaSdrh
182971eb93eaSdrh  case $lt_cv_dlopen_self in
183071eb93eaSdrh  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
183171eb93eaSdrh  *) enable_dlopen_self=unknown ;;
183271eb93eaSdrh  esac
183371eb93eaSdrh
183471eb93eaSdrh  case $lt_cv_dlopen_self_static in
183571eb93eaSdrh  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
183671eb93eaSdrh  *) enable_dlopen_self_static=unknown ;;
183771eb93eaSdrh  esac
183871eb93eaSdrhfi
1839636a995dSmlcreech_LT_DECL([dlopen_support], [enable_dlopen], [0],
1840636a995dSmlcreech	 [Whether dlopen is supported])
1841636a995dSmlcreech_LT_DECL([dlopen_self], [enable_dlopen_self], [0],
1842636a995dSmlcreech	 [Whether dlopen of programs is supported])
1843636a995dSmlcreech_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
1844636a995dSmlcreech	 [Whether dlopen of statically linked programs is supported])
1845636a995dSmlcreech])# LT_SYS_DLOPEN_SELF
1846636a995dSmlcreech
1847636a995dSmlcreech# Old name:
1848636a995dSmlcreechAU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
1849636a995dSmlcreechdnl aclocal-1.4 backwards compatibility:
1850636a995dSmlcreechdnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
185171eb93eaSdrh
185271eb93eaSdrh
1853636a995dSmlcreech# _LT_COMPILER_C_O([TAGNAME])
1854636a995dSmlcreech# ---------------------------
1855636a995dSmlcreech# Check to see if options -c and -o are simultaneously supported by compiler.
1856636a995dSmlcreech# This macro does not hard code the compiler like AC_PROG_CC_C_O.
1857636a995dSmlcreechm4_defun([_LT_COMPILER_C_O],
1858636a995dSmlcreech[m4_require([_LT_DECL_SED])dnl
1859636a995dSmlcreechm4_require([_LT_FILEUTILS_DEFAULTS])dnl
1860636a995dSmlcreechm4_require([_LT_TAG_COMPILER])dnl
18619bc8b93fSa.rottmannAC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
1862636a995dSmlcreech  [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
1863636a995dSmlcreech  [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
1864636a995dSmlcreech   $RM -r conftest 2>/dev/null
186571eb93eaSdrh   mkdir conftest
186671eb93eaSdrh   cd conftest
186771eb93eaSdrh   mkdir out
1868636a995dSmlcreech   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18699bc8b93fSa.rottmann
18709bc8b93fSa.rottmann   lt_compiler_flag="-o out/conftest2.$ac_objext"
18719bc8b93fSa.rottmann   # Insert the option either (1) after the last *FLAGS variable, or
18729bc8b93fSa.rottmann   # (2) before a word containing "conftest.", or (3) at the end.
18739bc8b93fSa.rottmann   # Note that $ac_compile itself does not contain backslashes and begins
18749bc8b93fSa.rottmann   # with a dollar sign (not a hyphen), so the echo should work correctly.
18759bc8b93fSa.rottmann   lt_compile=`echo "$ac_compile" | $SED \
18767f19c02fSvapier   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18779bc8b93fSa.rottmann   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
18789bc8b93fSa.rottmann   -e 's:$: $lt_compiler_flag:'`
18799bc8b93fSa.rottmann   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
18809bc8b93fSa.rottmann   (eval "$lt_compile" 2>out/conftest.err)
18819bc8b93fSa.rottmann   ac_status=$?
18829bc8b93fSa.rottmann   cat out/conftest.err >&AS_MESSAGE_LOG_FD
18839bc8b93fSa.rottmann   echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
18849bc8b93fSa.rottmann   if (exit $ac_status) && test -s out/conftest2.$ac_objext
18859bc8b93fSa.rottmann   then
188671eb93eaSdrh     # The compiler can only warn and ignore the option if not recognized
188771eb93eaSdrh     # So say no if there are warnings
1888636a995dSmlcreech     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18897f19c02fSvapier     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18907f19c02fSvapier     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
1891636a995dSmlcreech       _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
189271eb93eaSdrh     fi
189371eb93eaSdrh   fi
18947f19c02fSvapier   chmod u+w . 2>&AS_MESSAGE_LOG_FD
1895636a995dSmlcreech   $RM conftest*
18969bc8b93fSa.rottmann   # SGI C++ compiler will create directory out/ii_files/ for
18979bc8b93fSa.rottmann   # template instantiation
1898636a995dSmlcreech   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
1899636a995dSmlcreech   $RM out/* && rmdir out
190071eb93eaSdrh   cd ..
1901636a995dSmlcreech   $RM -r conftest
1902636a995dSmlcreech   $RM conftest*
190371eb93eaSdrh])
1904636a995dSmlcreech_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
1905636a995dSmlcreech	[Does compiler simultaneously support -c and -o options?])
1906636a995dSmlcreech])# _LT_COMPILER_C_O
190771eb93eaSdrh
190871eb93eaSdrh
1909636a995dSmlcreech# _LT_COMPILER_FILE_LOCKS([TAGNAME])
1910636a995dSmlcreech# ----------------------------------
191171eb93eaSdrh# Check to see if we can do hard links to lock some files if needed
1912636a995dSmlcreechm4_defun([_LT_COMPILER_FILE_LOCKS],
1913636a995dSmlcreech[m4_require([_LT_ENABLE_LOCK])dnl
1914636a995dSmlcreechm4_require([_LT_FILEUTILS_DEFAULTS])dnl
1915636a995dSmlcreech_LT_COMPILER_C_O([$1])
19169bc8b93fSa.rottmann
191771eb93eaSdrhhard_links="nottested"
1918636a995dSmlcreechif test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
191971eb93eaSdrh  # do not overwrite the value of need_locks provided by the user
192071eb93eaSdrh  AC_MSG_CHECKING([if we can lock with hard links])
192171eb93eaSdrh  hard_links=yes
1922636a995dSmlcreech  $RM conftest*
192371eb93eaSdrh  ln conftest.a conftest.b 2>/dev/null && hard_links=no
192471eb93eaSdrh  touch conftest.a
192571eb93eaSdrh  ln conftest.a conftest.b 2>&5 || hard_links=no
192671eb93eaSdrh  ln conftest.a conftest.b 2>/dev/null && hard_links=no
192771eb93eaSdrh  AC_MSG_RESULT([$hard_links])
192871eb93eaSdrh  if test "$hard_links" = no; then
19299bc8b93fSa.rottmann    AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
193071eb93eaSdrh    need_locks=warn
193171eb93eaSdrh  fi
193271eb93eaSdrhelse
193371eb93eaSdrh  need_locks=no
193471eb93eaSdrhfi
1935636a995dSmlcreech_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
1936636a995dSmlcreech])# _LT_COMPILER_FILE_LOCKS
193771eb93eaSdrh
19389bc8b93fSa.rottmann
1939636a995dSmlcreech# _LT_CHECK_OBJDIR
1940636a995dSmlcreech# ----------------
1941636a995dSmlcreechm4_defun([_LT_CHECK_OBJDIR],
19429bc8b93fSa.rottmann[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
19439bc8b93fSa.rottmann[rm -f .libs 2>/dev/null
19449bc8b93fSa.rottmannmkdir .libs 2>/dev/null
19459bc8b93fSa.rottmannif test -d .libs; then
19469bc8b93fSa.rottmann  lt_cv_objdir=.libs
194771eb93eaSdrhelse
19489bc8b93fSa.rottmann  # MS-DOS does not allow filenames that begin with a dot.
19499bc8b93fSa.rottmann  lt_cv_objdir=_libs
195071eb93eaSdrhfi
19519bc8b93fSa.rottmannrmdir .libs 2>/dev/null])
19529bc8b93fSa.rottmannobjdir=$lt_cv_objdir
1953636a995dSmlcreech_LT_DECL([], [objdir], [0],
1954636a995dSmlcreech         [The name of the directory that contains temporary libtool files])dnl
1955636a995dSmlcreechm4_pattern_allow([LT_OBJDIR])dnl
1956636a995dSmlcreechAC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
1957636a995dSmlcreech  [Define to the sub-directory in which libtool stores uninstalled libraries.])
1958636a995dSmlcreech])# _LT_CHECK_OBJDIR
195971eb93eaSdrh
19609bc8b93fSa.rottmann
1961636a995dSmlcreech# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
1962636a995dSmlcreech# --------------------------------------
19639bc8b93fSa.rottmann# Check hardcoding attributes.
1964636a995dSmlcreechm4_defun([_LT_LINKER_HARDCODE_LIBPATH],
19659bc8b93fSa.rottmann[AC_MSG_CHECKING([how to hardcode library paths into programs])
1966636a995dSmlcreech_LT_TAGVAR(hardcode_action, $1)=
1967636a995dSmlcreechif test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
1968636a995dSmlcreech   test -n "$_LT_TAGVAR(runpath_var, $1)" ||
1969636a995dSmlcreech   test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
19709bc8b93fSa.rottmann
1971636a995dSmlcreech  # We can hardcode non-existent directories.
1972636a995dSmlcreech  if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
19739bc8b93fSa.rottmann     # If the only mechanism to avoid hardcoding is shlibpath_var, we
19749bc8b93fSa.rottmann     # have to relink, otherwise we might link with an installed library
19759bc8b93fSa.rottmann     # when we should be linking with a yet-to-be-installed one
1976636a995dSmlcreech     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
1977636a995dSmlcreech     test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
19789bc8b93fSa.rottmann    # Linking always hardcodes the temporary library directory.
1979636a995dSmlcreech    _LT_TAGVAR(hardcode_action, $1)=relink
198062507b65Sa.rottmann  else
19819bc8b93fSa.rottmann    # We can link without hardcoding, and we can hardcode nonexisting dirs.
1982636a995dSmlcreech    _LT_TAGVAR(hardcode_action, $1)=immediate
198362507b65Sa.rottmann  fi
19849bc8b93fSa.rottmannelse
19859bc8b93fSa.rottmann  # We cannot hardcode anything, or else we can only hardcode existing
19869bc8b93fSa.rottmann  # directories.
1987636a995dSmlcreech  _LT_TAGVAR(hardcode_action, $1)=unsupported
198862507b65Sa.rottmannfi
1989636a995dSmlcreechAC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
199071eb93eaSdrh
1991636a995dSmlcreechif test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
1992636a995dSmlcreech   test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
19939bc8b93fSa.rottmann  # Fast installation is not supported
19949bc8b93fSa.rottmann  enable_fast_install=no
19959bc8b93fSa.rottmannelif test "$shlibpath_overrides_runpath" = yes ||
19969bc8b93fSa.rottmann     test "$enable_shared" = no; then
19979bc8b93fSa.rottmann  # Fast installation is not necessary
19989bc8b93fSa.rottmann  enable_fast_install=needless
19999bc8b93fSa.rottmannfi
2000636a995dSmlcreech_LT_TAGDECL([], [hardcode_action], [0],
2001636a995dSmlcreech    [How to hardcode a shared library path into an executable])
2002636a995dSmlcreech])# _LT_LINKER_HARDCODE_LIBPATH
200362507b65Sa.rottmann
200462507b65Sa.rottmann
2005636a995dSmlcreech# _LT_CMD_STRIPLIB
2006636a995dSmlcreech# ----------------
2007636a995dSmlcreechm4_defun([_LT_CMD_STRIPLIB],
2008636a995dSmlcreech[m4_require([_LT_DECL_EGREP])
2009636a995dSmlcreechstriplib=
20109bc8b93fSa.rottmannold_striplib=
20119bc8b93fSa.rottmannAC_MSG_CHECKING([whether stripping libraries is possible])
2012636a995dSmlcreechif test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
20139bc8b93fSa.rottmann  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20149bc8b93fSa.rottmann  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20159bc8b93fSa.rottmann  AC_MSG_RESULT([yes])
20169bc8b93fSa.rottmannelse
20179bc8b93fSa.rottmann# FIXME - insert some real tests, host_os isn't really good enough
201862507b65Sa.rottmann  case $host_os in
20199bc8b93fSa.rottmann  darwin*)
20209bc8b93fSa.rottmann    if test -n "$STRIP" ; then
20219bc8b93fSa.rottmann      striplib="$STRIP -x"
2022636a995dSmlcreech      old_striplib="$STRIP -S"
20239bc8b93fSa.rottmann      AC_MSG_RESULT([yes])
20249bc8b93fSa.rottmann    else
20259bc8b93fSa.rottmann      AC_MSG_RESULT([no])
202662507b65Sa.rottmann    fi
202762507b65Sa.rottmann    ;;
20289bc8b93fSa.rottmann  *)
20299bc8b93fSa.rottmann    AC_MSG_RESULT([no])
203062507b65Sa.rottmann    ;;
203162507b65Sa.rottmann  esac
20329bc8b93fSa.rottmannfi
2033636a995dSmlcreech_LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
2034636a995dSmlcreech_LT_DECL([], [striplib], [1])
2035636a995dSmlcreech])# _LT_CMD_STRIPLIB
203662507b65Sa.rottmann
203762507b65Sa.rottmann
2038636a995dSmlcreech# _LT_SYS_DYNAMIC_LINKER([TAG])
20399bc8b93fSa.rottmann# -----------------------------
20409bc8b93fSa.rottmann# PORTME Fill in your ld.so characteristics
2041636a995dSmlcreechm4_defun([_LT_SYS_DYNAMIC_LINKER],
2042636a995dSmlcreech[AC_REQUIRE([AC_CANONICAL_HOST])dnl
2043636a995dSmlcreechm4_require([_LT_DECL_EGREP])dnl
2044636a995dSmlcreechm4_require([_LT_FILEUTILS_DEFAULTS])dnl
2045*6acb2cf6Svapierm4_require([_LT_DECL_OBJDUMP])dnl
2046636a995dSmlcreechm4_require([_LT_DECL_SED])dnl
2047636a995dSmlcreechAC_MSG_CHECKING([dynamic linker characteristics])
2048636a995dSmlcreechm4_if([$1],
2049636a995dSmlcreech	[], [
2050636a995dSmlcreechif test "$GCC" = yes; then
2051636a995dSmlcreech  case $host_os in
2052636a995dSmlcreech    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
2053636a995dSmlcreech    *) lt_awk_arg="/^libraries:/" ;;
2054636a995dSmlcreech  esac
2055636a995dSmlcreech  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2056636a995dSmlcreech  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
2057636a995dSmlcreech    # if the path contains ";" then we assume it to be the separator
2058636a995dSmlcreech    # otherwise default to the standard path separator (i.e. ":") - it is
2059636a995dSmlcreech    # assumed that no part of a normal pathname contains ";" but that should
2060636a995dSmlcreech    # okay in the real world where ";" in dirpaths is itself problematic.
2061636a995dSmlcreech    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
2062636a995dSmlcreech  else
2063636a995dSmlcreech    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
2064636a995dSmlcreech  fi
2065636a995dSmlcreech  # Ok, now we have the path, separated by spaces, we can step through it
2066636a995dSmlcreech  # and add multilib dir if necessary.
2067636a995dSmlcreech  lt_tmp_lt_search_path_spec=
2068636a995dSmlcreech  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
2069636a995dSmlcreech  for lt_sys_path in $lt_search_path_spec; do
2070636a995dSmlcreech    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
2071636a995dSmlcreech      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
2072636a995dSmlcreech    else
2073636a995dSmlcreech      test -d "$lt_sys_path" && \
2074636a995dSmlcreech	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
2075636a995dSmlcreech    fi
2076636a995dSmlcreech  done
2077636a995dSmlcreech  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
2078636a995dSmlcreechBEGIN {RS=" "; FS="/|\n";} {
2079636a995dSmlcreech  lt_foo="";
2080636a995dSmlcreech  lt_count=0;
2081636a995dSmlcreech  for (lt_i = NF; lt_i > 0; lt_i--) {
2082636a995dSmlcreech    if ($lt_i != "" && $lt_i != ".") {
2083636a995dSmlcreech      if ($lt_i == "..") {
2084636a995dSmlcreech        lt_count++;
2085636a995dSmlcreech      } else {
2086636a995dSmlcreech        if (lt_count == 0) {
2087636a995dSmlcreech          lt_foo="/" $lt_i lt_foo;
2088636a995dSmlcreech        } else {
2089636a995dSmlcreech          lt_count--;
2090636a995dSmlcreech        }
2091636a995dSmlcreech      }
2092636a995dSmlcreech    }
2093636a995dSmlcreech  }
2094636a995dSmlcreech  if (lt_foo != "") { lt_freq[[lt_foo]]++; }
2095636a995dSmlcreech  if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
2096636a995dSmlcreech}'`
2097636a995dSmlcreech  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
2098636a995dSmlcreechelse
2099636a995dSmlcreech  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
2100636a995dSmlcreechfi])
21019bc8b93fSa.rottmannlibrary_names_spec=
21029bc8b93fSa.rottmannlibname_spec='lib$name'
21039bc8b93fSa.rottmannsoname_spec=
21047f19c02fSvapiershrext_cmds=".so"
21059bc8b93fSa.rottmannpostinstall_cmds=
21069bc8b93fSa.rottmannpostuninstall_cmds=
21079bc8b93fSa.rottmannfinish_cmds=
21089bc8b93fSa.rottmannfinish_eval=
21099bc8b93fSa.rottmannshlibpath_var=
21109bc8b93fSa.rottmannshlibpath_overrides_runpath=unknown
21119bc8b93fSa.rottmannversion_type=none
21129bc8b93fSa.rottmanndynamic_linker="$host_os ld.so"
21139bc8b93fSa.rottmannsys_lib_dlsearch_path_spec="/lib /usr/lib"
21149bc8b93fSa.rottmannneed_lib_prefix=unknown
21159bc8b93fSa.rottmannhardcode_into_libs=no
21169bc8b93fSa.rottmann
21179bc8b93fSa.rottmann# when you set need_version to no, make sure it does not cause -set_version
21189bc8b93fSa.rottmann# flags to be left without arguments
21199bc8b93fSa.rottmannneed_version=unknown
21209bc8b93fSa.rottmann
212162507b65Sa.rottmanncase $host_os in
21229bc8b93fSa.rottmannaix3*)
21239bc8b93fSa.rottmann  version_type=linux
21249bc8b93fSa.rottmann  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
21259bc8b93fSa.rottmann  shlibpath_var=LIBPATH
212662507b65Sa.rottmann
21279bc8b93fSa.rottmann  # AIX 3 has no versioning support, so we append a major version to the name.
21289bc8b93fSa.rottmann  soname_spec='${libname}${release}${shared_ext}$major'
21299bc8b93fSa.rottmann  ;;
213062507b65Sa.rottmann
2131636a995dSmlcreechaix[[4-9]]*)
21329bc8b93fSa.rottmann  version_type=linux
21339bc8b93fSa.rottmann  need_lib_prefix=no
21349bc8b93fSa.rottmann  need_version=no
21359bc8b93fSa.rottmann  hardcode_into_libs=yes
21369bc8b93fSa.rottmann  if test "$host_cpu" = ia64; then
21379bc8b93fSa.rottmann    # AIX 5 supports IA64
21389bc8b93fSa.rottmann    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21399bc8b93fSa.rottmann    shlibpath_var=LD_LIBRARY_PATH
21409bc8b93fSa.rottmann  else
21419bc8b93fSa.rottmann    # With GCC up to 2.95.x, collect2 would create an import file
21429bc8b93fSa.rottmann    # for dependence libraries.  The import file would start with
21439bc8b93fSa.rottmann    # the line `#! .'.  This would cause the generated library to
21449bc8b93fSa.rottmann    # depend on `.', always an invalid library.  This was fixed in
21459bc8b93fSa.rottmann    # development snapshots of GCC prior to 3.0.
21469bc8b93fSa.rottmann    case $host_os in
21479bc8b93fSa.rottmann      aix4 | aix4.[[01]] | aix4.[[01]].*)
21489bc8b93fSa.rottmann      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21499bc8b93fSa.rottmann	   echo ' yes '
2150636a995dSmlcreech	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
21519bc8b93fSa.rottmann	:
21529bc8b93fSa.rottmann      else
21539bc8b93fSa.rottmann	can_build_shared=no
21549bc8b93fSa.rottmann      fi
21559bc8b93fSa.rottmann      ;;
21569bc8b93fSa.rottmann    esac
21579bc8b93fSa.rottmann    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21589bc8b93fSa.rottmann    # soname into executable. Probably we can add versioning support to
21599bc8b93fSa.rottmann    # collect2, so additional links can be useful in future.
21609bc8b93fSa.rottmann    if test "$aix_use_runtimelinking" = yes; then
21619bc8b93fSa.rottmann      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21629bc8b93fSa.rottmann      # instead of lib<name>.a to let people know that these are not
21639bc8b93fSa.rottmann      # typical AIX shared libraries.
21649bc8b93fSa.rottmann      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21659bc8b93fSa.rottmann    else
21669bc8b93fSa.rottmann      # We preserve .a as extension for shared libraries through AIX4.2
21679bc8b93fSa.rottmann      # and later when we are not doing run time linking.
21689bc8b93fSa.rottmann      library_names_spec='${libname}${release}.a $libname.a'
21699bc8b93fSa.rottmann      soname_spec='${libname}${release}${shared_ext}$major'
21709bc8b93fSa.rottmann    fi
21719bc8b93fSa.rottmann    shlibpath_var=LIBPATH
21729bc8b93fSa.rottmann  fi
217362507b65Sa.rottmann  ;;
217462507b65Sa.rottmann
217562507b65Sa.rottmannamigaos*)
2176636a995dSmlcreech  case $host_cpu in
2177636a995dSmlcreech  powerpc)
2178636a995dSmlcreech    # Since July 2007 AmigaOS4 officially supports .so libraries.
2179636a995dSmlcreech    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
2180636a995dSmlcreech    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2181636a995dSmlcreech    ;;
2182636a995dSmlcreech  m68k)
21839bc8b93fSa.rottmann    library_names_spec='$libname.ixlibrary $libname.a'
21849bc8b93fSa.rottmann    # Create ${libname}_ixlibrary.a entries in /sys/libs.
2185636a995dSmlcreech    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'
2186636a995dSmlcreech    ;;
2187636a995dSmlcreech  esac
218862507b65Sa.rottmann  ;;
218962507b65Sa.rottmann
219062507b65Sa.rottmannbeos*)
21919bc8b93fSa.rottmann  library_names_spec='${libname}${shared_ext}'
21929bc8b93fSa.rottmann  dynamic_linker="$host_os ld.so"
21939bc8b93fSa.rottmann  shlibpath_var=LIBRARY_PATH
21949bc8b93fSa.rottmann  ;;
21959bc8b93fSa.rottmann
21967f19c02fSvapierbsdi[[45]]*)
21979bc8b93fSa.rottmann  version_type=linux
21989bc8b93fSa.rottmann  need_version=no
21999bc8b93fSa.rottmann  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22009bc8b93fSa.rottmann  soname_spec='${libname}${release}${shared_ext}$major'
22019bc8b93fSa.rottmann  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22029bc8b93fSa.rottmann  shlibpath_var=LD_LIBRARY_PATH
22039bc8b93fSa.rottmann  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22049bc8b93fSa.rottmann  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22059bc8b93fSa.rottmann  # the default ld.so.conf also contains /usr/contrib/lib and
22069bc8b93fSa.rottmann  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22079bc8b93fSa.rottmann  # libtool to hard-code these into programs
220862507b65Sa.rottmann  ;;
220962507b65Sa.rottmann
2210*6acb2cf6Svapiercygwin* | mingw* | pw32* | cegcc*)
22119bc8b93fSa.rottmann  version_type=windows
22127f19c02fSvapier  shrext_cmds=".dll"
22139bc8b93fSa.rottmann  need_version=no
22149bc8b93fSa.rottmann  need_lib_prefix=no
221562507b65Sa.rottmann
22169bc8b93fSa.rottmann  case $GCC,$host_os in
2217*6acb2cf6Svapier  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
22189bc8b93fSa.rottmann    library_names_spec='$libname.dll.a'
22199bc8b93fSa.rottmann    # DLL is installed to $(libdir)/../bin by postinstall_cmds
22209bc8b93fSa.rottmann    postinstall_cmds='base_file=`basename \${file}`~
22219bc8b93fSa.rottmann      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
22229bc8b93fSa.rottmann      dldir=$destdir/`dirname \$dlpath`~
22239bc8b93fSa.rottmann      test -d \$dldir || mkdir -p \$dldir~
22247f19c02fSvapier      $install_prog $dir/$dlname \$dldir/$dlname~
2225636a995dSmlcreech      chmod a+x \$dldir/$dlname~
2226636a995dSmlcreech      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
2227636a995dSmlcreech        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
2228636a995dSmlcreech      fi'
22299bc8b93fSa.rottmann    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22309bc8b93fSa.rottmann      dlpath=$dir/\$dldll~
2231636a995dSmlcreech       $RM \$dlpath'
22329bc8b93fSa.rottmann    shlibpath_overrides_runpath=yes
223362507b65Sa.rottmann
223462507b65Sa.rottmann    case $host_os in
22359bc8b93fSa.rottmann    cygwin*)
22369bc8b93fSa.rottmann      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22379bc8b93fSa.rottmann      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
22389bc8b93fSa.rottmann      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22399bc8b93fSa.rottmann      ;;
2240*6acb2cf6Svapier    mingw* | cegcc*)
22419bc8b93fSa.rottmann      # MinGW DLLs use traditional 'lib' prefix
22429bc8b93fSa.rottmann      soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2243636a995dSmlcreech      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2244636a995dSmlcreech      if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
22459bc8b93fSa.rottmann        # It is most probably a Windows format PATH printed by
22469bc8b93fSa.rottmann        # mingw gcc, but we are running on Cygwin. Gcc prints its search
22479bc8b93fSa.rottmann        # path with ; separators, and with drive letters. We can handle the
22489bc8b93fSa.rottmann        # drive letters (cygwin fileutils understands them), so leave them,
22499bc8b93fSa.rottmann        # especially as we might pass files found there to a mingw objdump,
22509bc8b93fSa.rottmann        # which wouldn't understand a cygwinified path. Ahh.
2251636a995dSmlcreech        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22529bc8b93fSa.rottmann      else
2253636a995dSmlcreech        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22549bc8b93fSa.rottmann      fi
22559bc8b93fSa.rottmann      ;;
22569bc8b93fSa.rottmann    pw32*)
22579bc8b93fSa.rottmann      # pw32 DLLs use 'pw' prefix rather than 'lib'
22587f19c02fSvapier      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
225962507b65Sa.rottmann      ;;
226062507b65Sa.rottmann    esac
22619bc8b93fSa.rottmann    ;;
226262507b65Sa.rottmann
22639bc8b93fSa.rottmann  *)
22649bc8b93fSa.rottmann    library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
22659bc8b93fSa.rottmann    ;;
22669bc8b93fSa.rottmann  esac
22679bc8b93fSa.rottmann  dynamic_linker='Win32 ld.exe'
22689bc8b93fSa.rottmann  # FIXME: first we should search . and the directory the executable is in
22699bc8b93fSa.rottmann  shlibpath_var=PATH
22709bc8b93fSa.rottmann  ;;
227162507b65Sa.rottmann
22729bc8b93fSa.rottmanndarwin* | rhapsody*)
22739bc8b93fSa.rottmann  dynamic_linker="$host_os dyld"
22749bc8b93fSa.rottmann  version_type=darwin
22759bc8b93fSa.rottmann  need_lib_prefix=no
22769bc8b93fSa.rottmann  need_version=no
2277636a995dSmlcreech  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22789bc8b93fSa.rottmann  soname_spec='${libname}${release}${major}$shared_ext'
22799bc8b93fSa.rottmann  shlibpath_overrides_runpath=yes
22809bc8b93fSa.rottmann  shlibpath_var=DYLD_LIBRARY_PATH
22817f19c02fSvapier  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
2282636a995dSmlcreechm4_if([$1], [],[
2283636a995dSmlcreech  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
22849bc8b93fSa.rottmann  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22859bc8b93fSa.rottmann  ;;
22869bc8b93fSa.rottmann
22879bc8b93fSa.rottmanndgux*)
22889bc8b93fSa.rottmann  version_type=linux
22899bc8b93fSa.rottmann  need_lib_prefix=no
22909bc8b93fSa.rottmann  need_version=no
22919bc8b93fSa.rottmann  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22929bc8b93fSa.rottmann  soname_spec='${libname}${release}${shared_ext}$major'
22939bc8b93fSa.rottmann  shlibpath_var=LD_LIBRARY_PATH
22949bc8b93fSa.rottmann  ;;
22959bc8b93fSa.rottmann
22969bc8b93fSa.rottmannfreebsd1*)
22979bc8b93fSa.rottmann  dynamic_linker=no
22989bc8b93fSa.rottmann  ;;
22999bc8b93fSa.rottmann
23007f19c02fSvapierfreebsd* | dragonfly*)
23017f19c02fSvapier  # DragonFly does not have aout.  When/if they implement a new
23027f19c02fSvapier  # versioning mechanism, adjust this.
23037f19c02fSvapier  if test -x /usr/bin/objformat; then
23047f19c02fSvapier    objformat=`/usr/bin/objformat`
23057f19c02fSvapier  else
23067f19c02fSvapier    case $host_os in
23077f19c02fSvapier    freebsd[[123]]*) objformat=aout ;;
23087f19c02fSvapier    *) objformat=elf ;;
23097f19c02fSvapier    esac
23107f19c02fSvapier  fi
23117f19c02fSvapier  # Handle Gentoo/FreeBSD as it was Linux
23127f19c02fSvapier  case $host_vendor in
23137f19c02fSvapier    gentoo)
23147f19c02fSvapier      version_type=linux ;;
23157f19c02fSvapier    *)
23167f19c02fSvapier      version_type=freebsd-$objformat ;;
23177f19c02fSvapier  esac
23187f19c02fSvapier
23199bc8b93fSa.rottmann  case $version_type in
23209bc8b93fSa.rottmann    freebsd-elf*)
23219bc8b93fSa.rottmann      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23229bc8b93fSa.rottmann      need_version=no
23239bc8b93fSa.rottmann      need_lib_prefix=no
23249bc8b93fSa.rottmann      ;;
23259bc8b93fSa.rottmann    freebsd-*)
23269bc8b93fSa.rottmann      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
23279bc8b93fSa.rottmann      need_version=yes
23289bc8b93fSa.rottmann      ;;
23297f19c02fSvapier    linux)
23307f19c02fSvapier      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23317f19c02fSvapier      soname_spec='${libname}${release}${shared_ext}$major'
23327f19c02fSvapier      need_lib_prefix=no
23337f19c02fSvapier      need_version=no
23347f19c02fSvapier      ;;
23359bc8b93fSa.rottmann  esac
23369bc8b93fSa.rottmann  shlibpath_var=LD_LIBRARY_PATH
23379bc8b93fSa.rottmann  case $host_os in
23389bc8b93fSa.rottmann  freebsd2*)
23399bc8b93fSa.rottmann    shlibpath_overrides_runpath=yes
23409bc8b93fSa.rottmann    ;;
23417f19c02fSvapier  freebsd3.[[01]]* | freebsdelf3.[[01]]*)
23429bc8b93fSa.rottmann    shlibpath_overrides_runpath=yes
23439bc8b93fSa.rottmann    hardcode_into_libs=yes
23449bc8b93fSa.rottmann    ;;
23457f19c02fSvapier  freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
23467f19c02fSvapier  freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
23479bc8b93fSa.rottmann    shlibpath_overrides_runpath=no
23489bc8b93fSa.rottmann    hardcode_into_libs=yes
23499bc8b93fSa.rottmann    ;;
2350636a995dSmlcreech  *) # from 4.6 on, and DragonFly
23517f19c02fSvapier    shlibpath_overrides_runpath=yes
23527f19c02fSvapier    hardcode_into_libs=yes
23537f19c02fSvapier    ;;
23549bc8b93fSa.rottmann  esac
23559bc8b93fSa.rottmann  ;;
23569bc8b93fSa.rottmann
23579bc8b93fSa.rottmanngnu*)
23589bc8b93fSa.rottmann  version_type=linux
23599bc8b93fSa.rottmann  need_lib_prefix=no
23609bc8b93fSa.rottmann  need_version=no
23619bc8b93fSa.rottmann  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
23629bc8b93fSa.rottmann  soname_spec='${libname}${release}${shared_ext}$major'
23639bc8b93fSa.rottmann  shlibpath_var=LD_LIBRARY_PATH
23649bc8b93fSa.rottmann  hardcode_into_libs=yes
23659bc8b93fSa.rottmann  ;;
23669bc8b93fSa.rottmann
23679bc8b93fSa.rottmannhpux9* | hpux10* | hpux11*)
23689bc8b93fSa.rottmann  # Give a soname corresponding to the major version so that dld.sl refuses to
23699bc8b93fSa.rottmann  # link against other versions.
23709bc8b93fSa.rottmann  version_type=sunos
23719bc8b93fSa.rottmann  need_lib_prefix=no
23729bc8b93fSa.rottmann  need_version=no
23737f19c02fSvapier  case $host_cpu in
23749bc8b93fSa.rottmann  ia64*)
23757f19c02fSvapier    shrext_cmds='.so'
23769bc8b93fSa.rottmann    hardcode_into_libs=yes
23779bc8b93fSa.rottmann    dynamic_linker="$host_os dld.so"
23789bc8b93fSa.rottmann    shlibpath_var=LD_LIBRARY_PATH
23799bc8b93fSa.rottmann    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23809bc8b93fSa.rottmann    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23819bc8b93fSa.rottmann    soname_spec='${libname}${release}${shared_ext}$major'
23829bc8b93fSa.rottmann    if test "X$HPUX_IA64_MODE" = X32; then
23839bc8b93fSa.rottmann      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
23849bc8b93fSa.rottmann    else
23859bc8b93fSa.rottmann      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
23869bc8b93fSa.rottmann    fi
23879bc8b93fSa.rottmann    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23889bc8b93fSa.rottmann    ;;
23899bc8b93fSa.rottmann  hppa*64*)
23907f19c02fSvapier    shrext_cmds='.sl'
23919bc8b93fSa.rottmann    hardcode_into_libs=yes
23929bc8b93fSa.rottmann    dynamic_linker="$host_os dld.sl"
23939bc8b93fSa.rottmann    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
23949bc8b93fSa.rottmann    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23959bc8b93fSa.rottmann    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23969bc8b93fSa.rottmann    soname_spec='${libname}${release}${shared_ext}$major'
23979bc8b93fSa.rottmann    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
23989bc8b93fSa.rottmann    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23999bc8b93fSa.rottmann    ;;
24009bc8b93fSa.rottmann  *)
24017f19c02fSvapier    shrext_cmds='.sl'
24029bc8b93fSa.rottmann    dynamic_linker="$host_os dld.sl"
24039bc8b93fSa.rottmann    shlibpath_var=SHLIB_PATH
24049bc8b93fSa.rottmann    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
24059bc8b93fSa.rottmann    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24069bc8b93fSa.rottmann    soname_spec='${libname}${release}${shared_ext}$major'
24079bc8b93fSa.rottmann    ;;
24089bc8b93fSa.rottmann  esac
24099bc8b93fSa.rottmann  # HP-UX runs *really* slowly unless shared libraries are mode 555.
24109bc8b93fSa.rottmann  postinstall_cmds='chmod 555 $lib'
24119bc8b93fSa.rottmann  ;;
24129bc8b93fSa.rottmann
2413636a995dSmlcreechinterix[[3-9]]*)
24147f19c02fSvapier  version_type=linux
24157f19c02fSvapier  need_lib_prefix=no
24167f19c02fSvapier  need_version=no
24177f19c02fSvapier  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24187f19c02fSvapier  soname_spec='${libname}${release}${shared_ext}$major'
24197f19c02fSvapier  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
24207f19c02fSvapier  shlibpath_var=LD_LIBRARY_PATH
24217f19c02fSvapier  shlibpath_overrides_runpath=no
24227f19c02fSvapier  hardcode_into_libs=yes
24237f19c02fSvapier  ;;
24247f19c02fSvapier
24259bc8b93fSa.rottmannirix5* | irix6* | nonstopux*)
24269bc8b93fSa.rottmann  case $host_os in
24279bc8b93fSa.rottmann    nonstopux*) version_type=nonstopux ;;
24289bc8b93fSa.rottmann    *)
24299bc8b93fSa.rottmann	if test "$lt_cv_prog_gnu_ld" = yes; then
24309bc8b93fSa.rottmann		version_type=linux
24319bc8b93fSa.rottmann	else
24329bc8b93fSa.rottmann		version_type=irix
24339bc8b93fSa.rottmann	fi ;;
24349bc8b93fSa.rottmann  esac
24359bc8b93fSa.rottmann  need_lib_prefix=no
24369bc8b93fSa.rottmann  need_version=no
24379bc8b93fSa.rottmann  soname_spec='${libname}${release}${shared_ext}$major'
24389bc8b93fSa.rottmann  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
24399bc8b93fSa.rottmann  case $host_os in
24409bc8b93fSa.rottmann  irix5* | nonstopux*)
24419bc8b93fSa.rottmann    libsuff= shlibsuff=
24429bc8b93fSa.rottmann    ;;
24439bc8b93fSa.rottmann  *)
24449bc8b93fSa.rottmann    case $LD in # libtool.m4 will add one of these switches to LD
24459bc8b93fSa.rottmann    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
24469bc8b93fSa.rottmann      libsuff= shlibsuff= libmagic=32-bit;;
24479bc8b93fSa.rottmann    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
24489bc8b93fSa.rottmann      libsuff=32 shlibsuff=N32 libmagic=N32;;
24499bc8b93fSa.rottmann    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
24509bc8b93fSa.rottmann      libsuff=64 shlibsuff=64 libmagic=64-bit;;
24519bc8b93fSa.rottmann    *) libsuff= shlibsuff= libmagic=never-match;;
24529bc8b93fSa.rottmann    esac
24539bc8b93fSa.rottmann    ;;
24549bc8b93fSa.rottmann  esac
24559bc8b93fSa.rottmann  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
24569bc8b93fSa.rottmann  shlibpath_overrides_runpath=no
24579bc8b93fSa.rottmann  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
24589bc8b93fSa.rottmann  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
24599bc8b93fSa.rottmann  hardcode_into_libs=yes
24609bc8b93fSa.rottmann  ;;
24619bc8b93fSa.rottmann
24629bc8b93fSa.rottmann# No shared lib support for Linux oldld, aout, or coff.
24639bc8b93fSa.rottmannlinux*oldld* | linux*aout* | linux*coff*)
24649bc8b93fSa.rottmann  dynamic_linker=no
24659bc8b93fSa.rottmann  ;;
24669bc8b93fSa.rottmann
24679bc8b93fSa.rottmann# This must be Linux ELF.
2468636a995dSmlcreechlinux* | k*bsd*-gnu)
24699bc8b93fSa.rottmann  version_type=linux
24709bc8b93fSa.rottmann  need_lib_prefix=no
24719bc8b93fSa.rottmann  need_version=no
24729bc8b93fSa.rottmann  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24739bc8b93fSa.rottmann  soname_spec='${libname}${release}${shared_ext}$major'
24749bc8b93fSa.rottmann  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
24759bc8b93fSa.rottmann  shlibpath_var=LD_LIBRARY_PATH
24769bc8b93fSa.rottmann  shlibpath_overrides_runpath=no
2477636a995dSmlcreech  # Some binutils ld are patched to set DT_RUNPATH
2478636a995dSmlcreech  save_LDFLAGS=$LDFLAGS
2479636a995dSmlcreech  save_libdir=$libdir
2480636a995dSmlcreech  eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
2481636a995dSmlcreech       LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
2482636a995dSmlcreech  AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
2483636a995dSmlcreech    [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
2484636a995dSmlcreech       [shlibpath_overrides_runpath=yes])])
2485636a995dSmlcreech  LDFLAGS=$save_LDFLAGS
2486636a995dSmlcreech  libdir=$save_libdir
2487636a995dSmlcreech
24889bc8b93fSa.rottmann  # This implies no fast_install, which is unacceptable.
24899bc8b93fSa.rottmann  # Some rework will be needed to allow for fast_install
24909bc8b93fSa.rottmann  # before this can be enabled.
24919bc8b93fSa.rottmann  hardcode_into_libs=yes
24929bc8b93fSa.rottmann
24939bc8b93fSa.rottmann  # Append ld.so.conf contents to the search path
24949bc8b93fSa.rottmann  if test -f /etc/ld.so.conf; then
2495636a995dSmlcreech    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
24967f19c02fSvapier    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
249762507b65Sa.rottmann  fi
249862507b65Sa.rottmann
24999bc8b93fSa.rottmann  # We used to test for /lib/ld.so.1 and disable shared libraries on
25009bc8b93fSa.rottmann  # powerpc, because MkLinux only supported shared libraries with the
25019bc8b93fSa.rottmann  # GNU dynamic linker.  Since this was broken with cross compilers,
25029bc8b93fSa.rottmann  # most powerpc-linux boxes support dynamic linking these days and
25039bc8b93fSa.rottmann  # people can always --disable-shared, the test was removed, and we
25049bc8b93fSa.rottmann  # assume the GNU/Linux dynamic linker is in use.
25059bc8b93fSa.rottmann  dynamic_linker='GNU/Linux ld.so'
25069bc8b93fSa.rottmann  ;;
250762507b65Sa.rottmann
250862507b65Sa.rottmannnetbsd*)
25099bc8b93fSa.rottmann  version_type=sunos
25109bc8b93fSa.rottmann  need_lib_prefix=no
25119bc8b93fSa.rottmann  need_version=no
2512636a995dSmlcreech  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
25139bc8b93fSa.rottmann    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25149bc8b93fSa.rottmann    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25159bc8b93fSa.rottmann    dynamic_linker='NetBSD (a.out) ld.so'
251662507b65Sa.rottmann  else
25179bc8b93fSa.rottmann    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25189bc8b93fSa.rottmann    soname_spec='${libname}${release}${shared_ext}$major'
25199bc8b93fSa.rottmann    dynamic_linker='NetBSD ld.elf_so'
25209bc8b93fSa.rottmann  fi
25219bc8b93fSa.rottmann  shlibpath_var=LD_LIBRARY_PATH
25229bc8b93fSa.rottmann  shlibpath_overrides_runpath=yes
25239bc8b93fSa.rottmann  hardcode_into_libs=yes
25249bc8b93fSa.rottmann  ;;
25259bc8b93fSa.rottmann
25269bc8b93fSa.rottmannnewsos6)
25279bc8b93fSa.rottmann  version_type=linux
25289bc8b93fSa.rottmann  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25299bc8b93fSa.rottmann  shlibpath_var=LD_LIBRARY_PATH
25309bc8b93fSa.rottmann  shlibpath_overrides_runpath=yes
25319bc8b93fSa.rottmann  ;;
25329bc8b93fSa.rottmann
2533636a995dSmlcreech*nto* | *qnx*)
2534636a995dSmlcreech  version_type=qnx
25359bc8b93fSa.rottmann  need_lib_prefix=no
25369bc8b93fSa.rottmann  need_version=no
25379bc8b93fSa.rottmann  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25389bc8b93fSa.rottmann  soname_spec='${libname}${release}${shared_ext}$major'
25399bc8b93fSa.rottmann  shlibpath_var=LD_LIBRARY_PATH
2540636a995dSmlcreech  shlibpath_overrides_runpath=no
2541636a995dSmlcreech  hardcode_into_libs=yes
2542636a995dSmlcreech  dynamic_linker='ldqnx.so'
25439bc8b93fSa.rottmann  ;;
25449bc8b93fSa.rottmann
25459bc8b93fSa.rottmannopenbsd*)
25469bc8b93fSa.rottmann  version_type=sunos
25477f19c02fSvapier  sys_lib_dlsearch_path_spec="/usr/lib"
25489bc8b93fSa.rottmann  need_lib_prefix=no
25497f19c02fSvapier  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25507f19c02fSvapier  case $host_os in
25517f19c02fSvapier    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
25527f19c02fSvapier    *)				need_version=no  ;;
25537f19c02fSvapier  esac
25549bc8b93fSa.rottmann  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25559bc8b93fSa.rottmann  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25569bc8b93fSa.rottmann  shlibpath_var=LD_LIBRARY_PATH
2557636a995dSmlcreech  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25589bc8b93fSa.rottmann    case $host_os in
25599bc8b93fSa.rottmann      openbsd2.[[89]] | openbsd2.[[89]].*)
25609bc8b93fSa.rottmann	shlibpath_overrides_runpath=no
25619bc8b93fSa.rottmann	;;
25629bc8b93fSa.rottmann      *)
25639bc8b93fSa.rottmann	shlibpath_overrides_runpath=yes
25649bc8b93fSa.rottmann	;;
25659bc8b93fSa.rottmann      esac
25669bc8b93fSa.rottmann  else
25679bc8b93fSa.rottmann    shlibpath_overrides_runpath=yes
256862507b65Sa.rottmann  fi
256962507b65Sa.rottmann  ;;
257062507b65Sa.rottmann
25719bc8b93fSa.rottmannos2*)
25729bc8b93fSa.rottmann  libname_spec='$name'
25737f19c02fSvapier  shrext_cmds=".dll"
25749bc8b93fSa.rottmann  need_lib_prefix=no
25759bc8b93fSa.rottmann  library_names_spec='$libname${shared_ext} $libname.a'
25769bc8b93fSa.rottmann  dynamic_linker='OS/2 ld.exe'
25779bc8b93fSa.rottmann  shlibpath_var=LIBPATH
25789bc8b93fSa.rottmann  ;;
257962507b65Sa.rottmann
25809bc8b93fSa.rottmannosf3* | osf4* | osf5*)
25819bc8b93fSa.rottmann  version_type=osf
25829bc8b93fSa.rottmann  need_lib_prefix=no
25839bc8b93fSa.rottmann  need_version=no
25849bc8b93fSa.rottmann  soname_spec='${libname}${release}${shared_ext}$major'
25859bc8b93fSa.rottmann  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25869bc8b93fSa.rottmann  shlibpath_var=LD_LIBRARY_PATH
25879bc8b93fSa.rottmann  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25889bc8b93fSa.rottmann  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25899bc8b93fSa.rottmann  ;;
259062507b65Sa.rottmann
2591636a995dSmlcreechrdos*)
2592636a995dSmlcreech  dynamic_linker=no
2593636a995dSmlcreech  ;;
2594636a995dSmlcreech
25959bc8b93fSa.rottmannsolaris*)
25969bc8b93fSa.rottmann  version_type=linux
25979bc8b93fSa.rottmann  need_lib_prefix=no
25989bc8b93fSa.rottmann  need_version=no
25999bc8b93fSa.rottmann  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26009bc8b93fSa.rottmann  soname_spec='${libname}${release}${shared_ext}$major'
26019bc8b93fSa.rottmann  shlibpath_var=LD_LIBRARY_PATH
26029bc8b93fSa.rottmann  shlibpath_overrides_runpath=yes
26039bc8b93fSa.rottmann  hardcode_into_libs=yes
26049bc8b93fSa.rottmann  # ldd complains unless libraries are executable
26059bc8b93fSa.rottmann  postinstall_cmds='chmod +x $lib'
260662507b65Sa.rottmann  ;;
260762507b65Sa.rottmann
260862507b65Sa.rottmannsunos4*)
26099bc8b93fSa.rottmann  version_type=sunos
26109bc8b93fSa.rottmann  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26119bc8b93fSa.rottmann  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
26129bc8b93fSa.rottmann  shlibpath_var=LD_LIBRARY_PATH
26139bc8b93fSa.rottmann  shlibpath_overrides_runpath=yes
26149bc8b93fSa.rottmann  if test "$with_gnu_ld" = yes; then
26159bc8b93fSa.rottmann    need_lib_prefix=no
261662507b65Sa.rottmann  fi
26179bc8b93fSa.rottmann  need_version=yes
261862507b65Sa.rottmann  ;;
261962507b65Sa.rottmann
26207f19c02fSvapiersysv4 | sysv4.3*)
26219bc8b93fSa.rottmann  version_type=linux
26229bc8b93fSa.rottmann  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26239bc8b93fSa.rottmann  soname_spec='${libname}${release}${shared_ext}$major'
26249bc8b93fSa.rottmann  shlibpath_var=LD_LIBRARY_PATH
26259bc8b93fSa.rottmann  case $host_vendor in
26269bc8b93fSa.rottmann    sni)
26279bc8b93fSa.rottmann      shlibpath_overrides_runpath=no
26289bc8b93fSa.rottmann      need_lib_prefix=no
262962507b65Sa.rottmann      runpath_var=LD_RUN_PATH
26309bc8b93fSa.rottmann      ;;
26319bc8b93fSa.rottmann    siemens)
26329bc8b93fSa.rottmann      need_lib_prefix=no
26339bc8b93fSa.rottmann      ;;
26349bc8b93fSa.rottmann    motorola)
26359bc8b93fSa.rottmann      need_lib_prefix=no
26369bc8b93fSa.rottmann      need_version=no
26379bc8b93fSa.rottmann      shlibpath_overrides_runpath=no
26389bc8b93fSa.rottmann      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
26399bc8b93fSa.rottmann      ;;
26409bc8b93fSa.rottmann  esac
26419bc8b93fSa.rottmann  ;;
26429bc8b93fSa.rottmann
26439bc8b93fSa.rottmannsysv4*MP*)
26449bc8b93fSa.rottmann  if test -d /usr/nec ;then
26459bc8b93fSa.rottmann    version_type=linux
26469bc8b93fSa.rottmann    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
26479bc8b93fSa.rottmann    soname_spec='$libname${shared_ext}.$major'
26489bc8b93fSa.rottmann    shlibpath_var=LD_LIBRARY_PATH
26499bc8b93fSa.rottmann  fi
26509bc8b93fSa.rottmann  ;;
26519bc8b93fSa.rottmann
26527f19c02fSvapiersysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
26537f19c02fSvapier  version_type=freebsd-elf
26547f19c02fSvapier  need_lib_prefix=no
26557f19c02fSvapier  need_version=no
26567f19c02fSvapier  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
26577f19c02fSvapier  soname_spec='${libname}${release}${shared_ext}$major'
26587f19c02fSvapier  shlibpath_var=LD_LIBRARY_PATH
2659636a995dSmlcreech  shlibpath_overrides_runpath=yes
26607f19c02fSvapier  hardcode_into_libs=yes
26617f19c02fSvapier  if test "$with_gnu_ld" = yes; then
26627f19c02fSvapier    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
26637f19c02fSvapier  else
26647f19c02fSvapier    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
26657f19c02fSvapier    case $host_os in
26667f19c02fSvapier      sco3.2v5*)
26677f19c02fSvapier        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
26687f19c02fSvapier	;;
26697f19c02fSvapier    esac
26707f19c02fSvapier  fi
26717f19c02fSvapier  sys_lib_dlsearch_path_spec='/usr/lib'
26727f19c02fSvapier  ;;
26737f19c02fSvapier
2674636a995dSmlcreechtpf*)
2675636a995dSmlcreech  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
2676636a995dSmlcreech  version_type=linux
2677636a995dSmlcreech  need_lib_prefix=no
2678636a995dSmlcreech  need_version=no
2679*6acb2cf6Svapier  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2680636a995dSmlcreech  shlibpath_var=LD_LIBRARY_PATH
2681636a995dSmlcreech  shlibpath_overrides_runpath=no
2682636a995dSmlcreech  hardcode_into_libs=yes
2683636a995dSmlcreech  ;;
2684636a995dSmlcreech
26859bc8b93fSa.rottmannuts4*)
26869bc8b93fSa.rottmann  version_type=linux
26879bc8b93fSa.rottmann  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26889bc8b93fSa.rottmann  soname_spec='${libname}${release}${shared_ext}$major'
26899bc8b93fSa.rottmann  shlibpath_var=LD_LIBRARY_PATH
26909bc8b93fSa.rottmann  ;;
26919bc8b93fSa.rottmann
26929bc8b93fSa.rottmann*)
26939bc8b93fSa.rottmann  dynamic_linker=no
26949bc8b93fSa.rottmann  ;;
26959bc8b93fSa.rottmannesac
26969bc8b93fSa.rottmannAC_MSG_RESULT([$dynamic_linker])
26979bc8b93fSa.rottmanntest "$dynamic_linker" = no && can_build_shared=no
26987f19c02fSvapier
26997f19c02fSvapiervariables_saved_for_relink="PATH $shlibpath_var $runpath_var"
27007f19c02fSvapierif test "$GCC" = yes; then
27017f19c02fSvapier  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
27027f19c02fSvapierfi
27039bc8b93fSa.rottmann
2704636a995dSmlcreechif test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
2705636a995dSmlcreech  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
2706636a995dSmlcreechfi
2707636a995dSmlcreechif test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
2708636a995dSmlcreech  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
27099bc8b93fSa.rottmannfi
27109bc8b93fSa.rottmann
2711636a995dSmlcreech_LT_DECL([], [variables_saved_for_relink], [1],
2712636a995dSmlcreech    [Variables whose values should be saved in libtool wrapper scripts and
2713636a995dSmlcreech    restored at link time])
2714636a995dSmlcreech_LT_DECL([], [need_lib_prefix], [0],
2715636a995dSmlcreech    [Do we need the "lib" prefix for modules?])
2716636a995dSmlcreech_LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
2717636a995dSmlcreech_LT_DECL([], [version_type], [0], [Library versioning type])
2718636a995dSmlcreech_LT_DECL([], [runpath_var], [0],  [Shared library runtime path variable])
2719636a995dSmlcreech_LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
2720636a995dSmlcreech_LT_DECL([], [shlibpath_overrides_runpath], [0],
2721636a995dSmlcreech    [Is shlibpath searched before the hard-coded library search path?])
2722636a995dSmlcreech_LT_DECL([], [libname_spec], [1], [Format of library name prefix])
2723636a995dSmlcreech_LT_DECL([], [library_names_spec], [1],
2724636a995dSmlcreech    [[List of archive names.  First name is the real one, the rest are links.
2725636a995dSmlcreech    The last name is the one that the linker finds with -lNAME]])
2726636a995dSmlcreech_LT_DECL([], [soname_spec], [1],
2727636a995dSmlcreech    [[The coded name of the library, if different from the real name]])
2728636a995dSmlcreech_LT_DECL([], [postinstall_cmds], [2],
2729636a995dSmlcreech    [Command to use after installation of a shared archive])
2730636a995dSmlcreech_LT_DECL([], [postuninstall_cmds], [2],
2731636a995dSmlcreech    [Command to use after uninstallation of a shared archive])
2732636a995dSmlcreech_LT_DECL([], [finish_cmds], [2],
2733636a995dSmlcreech    [Commands used to finish a libtool library installation in a directory])
2734636a995dSmlcreech_LT_DECL([], [finish_eval], [1],
2735636a995dSmlcreech    [[As "finish_cmds", except a single script fragment to be evaled but
2736636a995dSmlcreech    not shown]])
2737636a995dSmlcreech_LT_DECL([], [hardcode_into_libs], [0],
2738636a995dSmlcreech    [Whether we should hardcode library paths into libraries])
2739636a995dSmlcreech_LT_DECL([], [sys_lib_search_path_spec], [2],
2740636a995dSmlcreech    [Compile-time system search path for libraries])
2741636a995dSmlcreech_LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
2742636a995dSmlcreech    [Run-time system search path for libraries])
2743636a995dSmlcreech])# _LT_SYS_DYNAMIC_LINKER
27449bc8b93fSa.rottmann
27459bc8b93fSa.rottmann
2746636a995dSmlcreech# _LT_PATH_TOOL_PREFIX(TOOL)
27479bc8b93fSa.rottmann# --------------------------
2748636a995dSmlcreech# find a file program which can recognize shared library
2749636a995dSmlcreechAC_DEFUN([_LT_PATH_TOOL_PREFIX],
2750636a995dSmlcreech[m4_require([_LT_DECL_EGREP])dnl
27519bc8b93fSa.rottmannAC_MSG_CHECKING([for $1])
27529bc8b93fSa.rottmannAC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
27539bc8b93fSa.rottmann[case $MAGIC_CMD in
27549bc8b93fSa.rottmann[[\\/*] |  ?:[\\/]*])
27559bc8b93fSa.rottmann  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
275662507b65Sa.rottmann  ;;
275762507b65Sa.rottmann*)
27589bc8b93fSa.rottmann  lt_save_MAGIC_CMD="$MAGIC_CMD"
27599bc8b93fSa.rottmann  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
27609bc8b93fSa.rottmanndnl $ac_dummy forces splitting on constant user-supplied paths.
27619bc8b93fSa.rottmanndnl POSIX.2 word splitting is done only on the output of word expansions,
27629bc8b93fSa.rottmanndnl not every word.  This closes a longstanding sh security hole.
2763636a995dSmlcreech  ac_dummy="m4_if([$2], , $PATH, [$2])"
27649bc8b93fSa.rottmann  for ac_dir in $ac_dummy; do
27659bc8b93fSa.rottmann    IFS="$lt_save_ifs"
27669bc8b93fSa.rottmann    test -z "$ac_dir" && ac_dir=.
27679bc8b93fSa.rottmann    if test -f $ac_dir/$1; then
27689bc8b93fSa.rottmann      lt_cv_path_MAGIC_CMD="$ac_dir/$1"
27699bc8b93fSa.rottmann      if test -n "$file_magic_test_file"; then
27709bc8b93fSa.rottmann	case $deplibs_check_method in
27719bc8b93fSa.rottmann	"file_magic "*)
27727f19c02fSvapier	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
27739bc8b93fSa.rottmann	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
27749bc8b93fSa.rottmann	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
27759bc8b93fSa.rottmann	    $EGREP "$file_magic_regex" > /dev/null; then
27769bc8b93fSa.rottmann	    :
277762507b65Sa.rottmann	  else
2778636a995dSmlcreech	    cat <<_LT_EOF 1>&2
27799bc8b93fSa.rottmann
27809bc8b93fSa.rottmann*** Warning: the command libtool uses to detect shared libraries,
27819bc8b93fSa.rottmann*** $file_magic_cmd, produces output that libtool cannot recognize.
27829bc8b93fSa.rottmann*** The result is that libtool may fail to recognize shared libraries
27839bc8b93fSa.rottmann*** as such.  This will affect the creation of libtool libraries that
27849bc8b93fSa.rottmann*** depend on shared libraries, but programs linked with such libtool
27859bc8b93fSa.rottmann*** libraries will work regardless of this problem.  Nevertheless, you
27869bc8b93fSa.rottmann*** may want to report the problem to your system manager and/or to
27879bc8b93fSa.rottmann*** [email protected]
27889bc8b93fSa.rottmann
2789636a995dSmlcreech_LT_EOF
27909bc8b93fSa.rottmann	  fi ;;
27919bc8b93fSa.rottmann	esac
279262507b65Sa.rottmann      fi
27939bc8b93fSa.rottmann      break
27949bc8b93fSa.rottmann    fi
27959bc8b93fSa.rottmann  done
27969bc8b93fSa.rottmann  IFS="$lt_save_ifs"
27979bc8b93fSa.rottmann  MAGIC_CMD="$lt_save_MAGIC_CMD"
27989bc8b93fSa.rottmann  ;;
27999bc8b93fSa.rottmannesac])
28009bc8b93fSa.rottmannMAGIC_CMD="$lt_cv_path_MAGIC_CMD"
28019bc8b93fSa.rottmannif test -n "$MAGIC_CMD"; then
28029bc8b93fSa.rottmann  AC_MSG_RESULT($MAGIC_CMD)
28039bc8b93fSa.rottmannelse
28049bc8b93fSa.rottmann  AC_MSG_RESULT(no)
28059bc8b93fSa.rottmannfi
2806636a995dSmlcreech_LT_DECL([], [MAGIC_CMD], [0],
2807636a995dSmlcreech	 [Used to examine libraries when file_magic_cmd begins with "file"])dnl
2808636a995dSmlcreech])# _LT_PATH_TOOL_PREFIX
2809636a995dSmlcreech
2810636a995dSmlcreech# Old name:
2811636a995dSmlcreechAU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
2812636a995dSmlcreechdnl aclocal-1.4 backwards compatibility:
2813636a995dSmlcreechdnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
28149bc8b93fSa.rottmann
28159bc8b93fSa.rottmann
2816636a995dSmlcreech# _LT_PATH_MAGIC
2817636a995dSmlcreech# --------------
2818636a995dSmlcreech# find a file program which can recognize a shared library
2819636a995dSmlcreechm4_defun([_LT_PATH_MAGIC],
2820636a995dSmlcreech[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
28219bc8b93fSa.rottmannif test -z "$lt_cv_path_MAGIC_CMD"; then
28229bc8b93fSa.rottmann  if test -n "$ac_tool_prefix"; then
2823636a995dSmlcreech    _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
28249bc8b93fSa.rottmann  else
28259bc8b93fSa.rottmann    MAGIC_CMD=:
28269bc8b93fSa.rottmann  fi
28279bc8b93fSa.rottmannfi
2828636a995dSmlcreech])# _LT_PATH_MAGIC
28299bc8b93fSa.rottmann
28309bc8b93fSa.rottmann
2831636a995dSmlcreech# LT_PATH_LD
28329bc8b93fSa.rottmann# ----------
28339bc8b93fSa.rottmann# find the pathname to the GNU or non-GNU linker
2834636a995dSmlcreechAC_DEFUN([LT_PATH_LD],
2835636a995dSmlcreech[AC_REQUIRE([AC_PROG_CC])dnl
28369bc8b93fSa.rottmannAC_REQUIRE([AC_CANONICAL_HOST])dnl
28379bc8b93fSa.rottmannAC_REQUIRE([AC_CANONICAL_BUILD])dnl
2838636a995dSmlcreechm4_require([_LT_DECL_SED])dnl
2839636a995dSmlcreechm4_require([_LT_DECL_EGREP])dnl
2840636a995dSmlcreech
2841636a995dSmlcreechAC_ARG_WITH([gnu-ld],
2842636a995dSmlcreech    [AS_HELP_STRING([--with-gnu-ld],
2843636a995dSmlcreech	[assume the C compiler uses GNU ld @<:@default=no@:>@])],
2844636a995dSmlcreech    [test "$withval" = no || with_gnu_ld=yes],
2845636a995dSmlcreech    [with_gnu_ld=no])dnl
2846636a995dSmlcreech
28479bc8b93fSa.rottmannac_prog=ld
28489bc8b93fSa.rottmannif test "$GCC" = yes; then
28499bc8b93fSa.rottmann  # Check if gcc -print-prog-name=ld gives a path.
28509bc8b93fSa.rottmann  AC_MSG_CHECKING([for ld used by $CC])
28519bc8b93fSa.rottmann  case $host in
28529bc8b93fSa.rottmann  *-*-mingw*)
28539bc8b93fSa.rottmann    # gcc leaves a trailing carriage return which upsets mingw
28549bc8b93fSa.rottmann    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
28559bc8b93fSa.rottmann  *)
28569bc8b93fSa.rottmann    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
28579bc8b93fSa.rottmann  esac
28589bc8b93fSa.rottmann  case $ac_prog in
28599bc8b93fSa.rottmann    # Accept absolute paths.
28609bc8b93fSa.rottmann    [[\\/]]* | ?:[[\\/]]*)
28619bc8b93fSa.rottmann      re_direlt='/[[^/]][[^/]]*/\.\./'
28629bc8b93fSa.rottmann      # Canonicalize the pathname of ld
2863636a995dSmlcreech      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
2864636a995dSmlcreech      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
2865636a995dSmlcreech	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
28669bc8b93fSa.rottmann      done
28679bc8b93fSa.rottmann      test -z "$LD" && LD="$ac_prog"
28689bc8b93fSa.rottmann      ;;
28699bc8b93fSa.rottmann  "")
28709bc8b93fSa.rottmann    # If it fails, then pretend we aren't using GCC.
28719bc8b93fSa.rottmann    ac_prog=ld
28729bc8b93fSa.rottmann    ;;
28739bc8b93fSa.rottmann  *)
28749bc8b93fSa.rottmann    # If it is relative, then search for the first ld in PATH.
28759bc8b93fSa.rottmann    with_gnu_ld=unknown
28769bc8b93fSa.rottmann    ;;
28779bc8b93fSa.rottmann  esac
28789bc8b93fSa.rottmannelif test "$with_gnu_ld" = yes; then
28799bc8b93fSa.rottmann  AC_MSG_CHECKING([for GNU ld])
28809bc8b93fSa.rottmannelse
28819bc8b93fSa.rottmann  AC_MSG_CHECKING([for non-GNU ld])
28829bc8b93fSa.rottmannfi
28839bc8b93fSa.rottmannAC_CACHE_VAL(lt_cv_path_LD,
28849bc8b93fSa.rottmann[if test -z "$LD"; then
28859bc8b93fSa.rottmann  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
28869bc8b93fSa.rottmann  for ac_dir in $PATH; do
28879bc8b93fSa.rottmann    IFS="$lt_save_ifs"
28889bc8b93fSa.rottmann    test -z "$ac_dir" && ac_dir=.
28899bc8b93fSa.rottmann    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
28909bc8b93fSa.rottmann      lt_cv_path_LD="$ac_dir/$ac_prog"
28919bc8b93fSa.rottmann      # Check to see if the program is GNU ld.  I'd rather use --version,
28927f19c02fSvapier      # but apparently some variants of GNU ld only accept -v.
28939bc8b93fSa.rottmann      # Break only if it was the GNU/non-GNU ld that we prefer.
28949bc8b93fSa.rottmann      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
28959bc8b93fSa.rottmann      *GNU* | *'with BFD'*)
28969bc8b93fSa.rottmann	test "$with_gnu_ld" != no && break
28979bc8b93fSa.rottmann	;;
28989bc8b93fSa.rottmann      *)
28999bc8b93fSa.rottmann	test "$with_gnu_ld" != yes && break
290062507b65Sa.rottmann	;;
290162507b65Sa.rottmann      esac
290262507b65Sa.rottmann    fi
29039bc8b93fSa.rottmann  done
29049bc8b93fSa.rottmann  IFS="$lt_save_ifs"
290562507b65Sa.rottmannelse
29069bc8b93fSa.rottmann  lt_cv_path_LD="$LD" # Let the user override the test with a path.
29079bc8b93fSa.rottmannfi])
29089bc8b93fSa.rottmannLD="$lt_cv_path_LD"
29099bc8b93fSa.rottmannif test -n "$LD"; then
29109bc8b93fSa.rottmann  AC_MSG_RESULT($LD)
29119bc8b93fSa.rottmannelse
29129bc8b93fSa.rottmann  AC_MSG_RESULT(no)
29139bc8b93fSa.rottmannfi
29149bc8b93fSa.rottmanntest -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
2915636a995dSmlcreech_LT_PATH_LD_GNU
2916636a995dSmlcreechAC_SUBST([LD])
2917636a995dSmlcreech
2918636a995dSmlcreech_LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
2919636a995dSmlcreech])# LT_PATH_LD
2920636a995dSmlcreech
2921636a995dSmlcreech# Old names:
2922636a995dSmlcreechAU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
2923636a995dSmlcreechAU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
2924636a995dSmlcreechdnl aclocal-1.4 backwards compatibility:
2925636a995dSmlcreechdnl AC_DEFUN([AM_PROG_LD], [])
2926636a995dSmlcreechdnl AC_DEFUN([AC_PROG_LD], [])
29279bc8b93fSa.rottmann
29289bc8b93fSa.rottmann
2929636a995dSmlcreech# _LT_PATH_LD_GNU
2930636a995dSmlcreech#- --------------
2931636a995dSmlcreechm4_defun([_LT_PATH_LD_GNU],
2932636a995dSmlcreech[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
29337f19c02fSvapier[# I'd rather use --version here, but apparently some GNU lds only accept -v.
29349bc8b93fSa.rottmanncase `$LD -v 2>&1 </dev/null` in
29359bc8b93fSa.rottmann*GNU* | *'with BFD'*)
29369bc8b93fSa.rottmann  lt_cv_prog_gnu_ld=yes
29379bc8b93fSa.rottmann  ;;
29389bc8b93fSa.rottmann*)
29399bc8b93fSa.rottmann  lt_cv_prog_gnu_ld=no
29409bc8b93fSa.rottmann  ;;
29419bc8b93fSa.rottmannesac])
29429bc8b93fSa.rottmannwith_gnu_ld=$lt_cv_prog_gnu_ld
2943636a995dSmlcreech])# _LT_PATH_LD_GNU
29449bc8b93fSa.rottmann
29459bc8b93fSa.rottmann
2946636a995dSmlcreech# _LT_CMD_RELOAD
2947636a995dSmlcreech# --------------
29489bc8b93fSa.rottmann# find reload flag for linker
29499bc8b93fSa.rottmann#   -- PORTME Some linkers may need a different reload flag.
2950636a995dSmlcreechm4_defun([_LT_CMD_RELOAD],
29519bc8b93fSa.rottmann[AC_CACHE_CHECK([for $LD option to reload object files],
29529bc8b93fSa.rottmann  lt_cv_ld_reload_flag,
29539bc8b93fSa.rottmann  [lt_cv_ld_reload_flag='-r'])
29549bc8b93fSa.rottmannreload_flag=$lt_cv_ld_reload_flag
29559bc8b93fSa.rottmanncase $reload_flag in
29569bc8b93fSa.rottmann"" | " "*) ;;
29579bc8b93fSa.rottmann*) reload_flag=" $reload_flag" ;;
29589bc8b93fSa.rottmannesac
29599bc8b93fSa.rottmannreload_cmds='$LD$reload_flag -o $output$reload_objs'
29607f19c02fSvapiercase $host_os in
29617f19c02fSvapier  darwin*)
29627f19c02fSvapier    if test "$GCC" = yes; then
29637f19c02fSvapier      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
29647f19c02fSvapier    else
29657f19c02fSvapier      reload_cmds='$LD$reload_flag -o $output$reload_objs'
29667f19c02fSvapier    fi
29677f19c02fSvapier    ;;
29687f19c02fSvapieresac
2969636a995dSmlcreech_LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
2970636a995dSmlcreech_LT_DECL([], [reload_cmds], [2])dnl
2971636a995dSmlcreech])# _LT_CMD_RELOAD
29729bc8b93fSa.rottmann
29739bc8b93fSa.rottmann
2974636a995dSmlcreech# _LT_CHECK_MAGIC_METHOD
2975636a995dSmlcreech# ----------------------
29769bc8b93fSa.rottmann# how to check for library dependencies
29779bc8b93fSa.rottmann#  -- PORTME fill in with the dynamic library characteristics
2978636a995dSmlcreechm4_defun([_LT_CHECK_MAGIC_METHOD],
2979636a995dSmlcreech[m4_require([_LT_DECL_EGREP])
2980*6acb2cf6Svapierm4_require([_LT_DECL_OBJDUMP])
2981636a995dSmlcreechAC_CACHE_CHECK([how to recognize dependent libraries],
29829bc8b93fSa.rottmannlt_cv_deplibs_check_method,
29839bc8b93fSa.rottmann[lt_cv_file_magic_cmd='$MAGIC_CMD'
29849bc8b93fSa.rottmannlt_cv_file_magic_test_file=
29859bc8b93fSa.rottmannlt_cv_deplibs_check_method='unknown'
29869bc8b93fSa.rottmann# Need to set the preceding variable on all platforms that support
29879bc8b93fSa.rottmann# interlibrary dependencies.
29889bc8b93fSa.rottmann# 'none' -- dependencies not supported.
29899bc8b93fSa.rottmann# `unknown' -- same as none, but documents that we really don't know.
29909bc8b93fSa.rottmann# 'pass_all' -- all dependencies passed with no checks.
29919bc8b93fSa.rottmann# 'test_compile' -- check by making test program.
29929bc8b93fSa.rottmann# 'file_magic [[regex]]' -- check by looking for files in library path
29939bc8b93fSa.rottmann# which responds to the $file_magic_cmd with a given extended regex.
29949bc8b93fSa.rottmann# If you have `file' or equivalent on your system and you're not sure
29959bc8b93fSa.rottmann# whether `pass_all' will *always* work, you probably want this one.
29969bc8b93fSa.rottmann
29979bc8b93fSa.rottmanncase $host_os in
2998636a995dSmlcreechaix[[4-9]]*)
29999bc8b93fSa.rottmann  lt_cv_deplibs_check_method=pass_all
30009bc8b93fSa.rottmann  ;;
30019bc8b93fSa.rottmann
30029bc8b93fSa.rottmannbeos*)
30039bc8b93fSa.rottmann  lt_cv_deplibs_check_method=pass_all
30049bc8b93fSa.rottmann  ;;
30059bc8b93fSa.rottmann
30067f19c02fSvapierbsdi[[45]]*)
30079bc8b93fSa.rottmann  lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
30089bc8b93fSa.rottmann  lt_cv_file_magic_cmd='/usr/bin/file -L'
30099bc8b93fSa.rottmann  lt_cv_file_magic_test_file=/shlib/libc.so
30109bc8b93fSa.rottmann  ;;
30119bc8b93fSa.rottmann
30129bc8b93fSa.rottmanncygwin*)
30137f19c02fSvapier  # func_win32_libid is a shell function defined in ltmain.sh
30149bc8b93fSa.rottmann  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
30157f19c02fSvapier  lt_cv_file_magic_cmd='func_win32_libid'
30169bc8b93fSa.rottmann  ;;
30179bc8b93fSa.rottmann
30189bc8b93fSa.rottmannmingw* | pw32*)
30199bc8b93fSa.rottmann  # Base MSYS/MinGW do not provide the 'file' command needed by
3020636a995dSmlcreech  # func_win32_libid shell function, so use a weaker test based on 'objdump',
3021636a995dSmlcreech  # unless we find 'file', for example because we are cross-compiling.
3022636a995dSmlcreech  if ( file / ) >/dev/null 2>&1; then
3023636a995dSmlcreech    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3024636a995dSmlcreech    lt_cv_file_magic_cmd='func_win32_libid'
3025636a995dSmlcreech  else
30269bc8b93fSa.rottmann    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
30279bc8b93fSa.rottmann    lt_cv_file_magic_cmd='$OBJDUMP -f'
3028636a995dSmlcreech  fi
30299bc8b93fSa.rottmann  ;;
30309bc8b93fSa.rottmann
3031*6acb2cf6Svapiercegcc)
3032*6acb2cf6Svapier  # use the weaker test based on 'objdump'. See mingw*.
3033*6acb2cf6Svapier  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
3034*6acb2cf6Svapier  lt_cv_file_magic_cmd='$OBJDUMP -f'
3035*6acb2cf6Svapier  ;;
3036*6acb2cf6Svapier
30379bc8b93fSa.rottmanndarwin* | rhapsody*)
30389bc8b93fSa.rottmann  lt_cv_deplibs_check_method=pass_all
30399bc8b93fSa.rottmann  ;;
30409bc8b93fSa.rottmann
3041636a995dSmlcreechfreebsd* | dragonfly*)
3042636a995dSmlcreech  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
30439bc8b93fSa.rottmann    case $host_cpu in
30449bc8b93fSa.rottmann    i*86 )
30459bc8b93fSa.rottmann      # Not sure whether the presence of OpenBSD here was a mistake.
30469bc8b93fSa.rottmann      # Let's accept both of them until this is cleared up.
30477f19c02fSvapier      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
30489bc8b93fSa.rottmann      lt_cv_file_magic_cmd=/usr/bin/file
30499bc8b93fSa.rottmann      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
30509bc8b93fSa.rottmann      ;;
30519bc8b93fSa.rottmann    esac
30529bc8b93fSa.rottmann  else
30539bc8b93fSa.rottmann    lt_cv_deplibs_check_method=pass_all
30549bc8b93fSa.rottmann  fi
30559bc8b93fSa.rottmann  ;;
30569bc8b93fSa.rottmann
30579bc8b93fSa.rottmanngnu*)
30589bc8b93fSa.rottmann  lt_cv_deplibs_check_method=pass_all
30599bc8b93fSa.rottmann  ;;
30609bc8b93fSa.rottmann
30619bc8b93fSa.rottmannhpux10.20* | hpux11*)
30629bc8b93fSa.rottmann  lt_cv_file_magic_cmd=/usr/bin/file
30637f19c02fSvapier  case $host_cpu in
30649bc8b93fSa.rottmann  ia64*)
30659bc8b93fSa.rottmann    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
30669bc8b93fSa.rottmann    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
30679bc8b93fSa.rottmann    ;;
30689bc8b93fSa.rottmann  hppa*64*)
30699bc8b93fSa.rottmann    [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]']
30709bc8b93fSa.rottmann    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
30719bc8b93fSa.rottmann    ;;
30729bc8b93fSa.rottmann  *)
30739bc8b93fSa.rottmann    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
30749bc8b93fSa.rottmann    lt_cv_file_magic_test_file=/usr/lib/libc.sl
30759bc8b93fSa.rottmann    ;;
30769bc8b93fSa.rottmann  esac
30779bc8b93fSa.rottmann  ;;
30789bc8b93fSa.rottmann
3079636a995dSmlcreechinterix[[3-9]]*)
30807f19c02fSvapier  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
30817f19c02fSvapier  lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
30827f19c02fSvapier  ;;
30837f19c02fSvapier
30849bc8b93fSa.rottmannirix5* | irix6* | nonstopux*)
30859bc8b93fSa.rottmann  case $LD in
30869bc8b93fSa.rottmann  *-32|*"-32 ") libmagic=32-bit;;
30879bc8b93fSa.rottmann  *-n32|*"-n32 ") libmagic=N32;;
30889bc8b93fSa.rottmann  *-64|*"-64 ") libmagic=64-bit;;
30899bc8b93fSa.rottmann  *) libmagic=never-match;;
30909bc8b93fSa.rottmann  esac
30919bc8b93fSa.rottmann  lt_cv_deplibs_check_method=pass_all
30929bc8b93fSa.rottmann  ;;
30939bc8b93fSa.rottmann
30949bc8b93fSa.rottmann# This must be Linux ELF.
3095636a995dSmlcreechlinux* | k*bsd*-gnu)
30969bc8b93fSa.rottmann  lt_cv_deplibs_check_method=pass_all
30979bc8b93fSa.rottmann  ;;
30989bc8b93fSa.rottmann
30997f19c02fSvapiernetbsd*)
3100636a995dSmlcreech  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
31019bc8b93fSa.rottmann    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
31029bc8b93fSa.rottmann  else
31039bc8b93fSa.rottmann    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
31049bc8b93fSa.rottmann  fi
31059bc8b93fSa.rottmann  ;;
31069bc8b93fSa.rottmann
31079bc8b93fSa.rottmannnewos6*)
31089bc8b93fSa.rottmann  lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
31099bc8b93fSa.rottmann  lt_cv_file_magic_cmd=/usr/bin/file
31109bc8b93fSa.rottmann  lt_cv_file_magic_test_file=/usr/lib/libnls.so
31119bc8b93fSa.rottmann  ;;
31129bc8b93fSa.rottmann
3113636a995dSmlcreech*nto* | *qnx*)
3114636a995dSmlcreech  lt_cv_deplibs_check_method=pass_all
31159bc8b93fSa.rottmann  ;;
31169bc8b93fSa.rottmann
31179bc8b93fSa.rottmannopenbsd*)
3118636a995dSmlcreech  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
31197f19c02fSvapier    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
31209bc8b93fSa.rottmann  else
31217f19c02fSvapier    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
31229bc8b93fSa.rottmann  fi
31239bc8b93fSa.rottmann  ;;
31249bc8b93fSa.rottmann
31259bc8b93fSa.rottmannosf3* | osf4* | osf5*)
31269bc8b93fSa.rottmann  lt_cv_deplibs_check_method=pass_all
31279bc8b93fSa.rottmann  ;;
31289bc8b93fSa.rottmann
3129636a995dSmlcreechrdos*)
3130636a995dSmlcreech  lt_cv_deplibs_check_method=pass_all
3131636a995dSmlcreech  ;;
3132636a995dSmlcreech
31339bc8b93fSa.rottmannsolaris*)
31349bc8b93fSa.rottmann  lt_cv_deplibs_check_method=pass_all
31359bc8b93fSa.rottmann  ;;
31369bc8b93fSa.rottmann
3137636a995dSmlcreechsysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3138636a995dSmlcreech  lt_cv_deplibs_check_method=pass_all
3139636a995dSmlcreech  ;;
3140636a995dSmlcreech
31417f19c02fSvapiersysv4 | sysv4.3*)
31429bc8b93fSa.rottmann  case $host_vendor in
31439bc8b93fSa.rottmann  motorola)
31449bc8b93fSa.rottmann    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]]'
31459bc8b93fSa.rottmann    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
31469bc8b93fSa.rottmann    ;;
31479bc8b93fSa.rottmann  ncr)
31489bc8b93fSa.rottmann    lt_cv_deplibs_check_method=pass_all
31499bc8b93fSa.rottmann    ;;
31509bc8b93fSa.rottmann  sequent)
31519bc8b93fSa.rottmann    lt_cv_file_magic_cmd='/bin/file'
31529bc8b93fSa.rottmann    lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
31539bc8b93fSa.rottmann    ;;
31549bc8b93fSa.rottmann  sni)
31559bc8b93fSa.rottmann    lt_cv_file_magic_cmd='/bin/file'
31569bc8b93fSa.rottmann    lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
31579bc8b93fSa.rottmann    lt_cv_file_magic_test_file=/lib/libc.so
31589bc8b93fSa.rottmann    ;;
31599bc8b93fSa.rottmann  siemens)
31609bc8b93fSa.rottmann    lt_cv_deplibs_check_method=pass_all
31619bc8b93fSa.rottmann    ;;
31627f19c02fSvapier  pc)
31637f19c02fSvapier    lt_cv_deplibs_check_method=pass_all
31647f19c02fSvapier    ;;
31659bc8b93fSa.rottmann  esac
31669bc8b93fSa.rottmann  ;;
31679bc8b93fSa.rottmann
3168636a995dSmlcreechtpf*)
31699bc8b93fSa.rottmann  lt_cv_deplibs_check_method=pass_all
31709bc8b93fSa.rottmann  ;;
31719bc8b93fSa.rottmannesac
31729bc8b93fSa.rottmann])
31739bc8b93fSa.rottmannfile_magic_cmd=$lt_cv_file_magic_cmd
31749bc8b93fSa.rottmanndeplibs_check_method=$lt_cv_deplibs_check_method
31759bc8b93fSa.rottmanntest -z "$deplibs_check_method" && deplibs_check_method=unknown
3176636a995dSmlcreech
3177636a995dSmlcreech_LT_DECL([], [deplibs_check_method], [1],
3178636a995dSmlcreech    [Method to check whether dependent libraries are shared objects])
3179636a995dSmlcreech_LT_DECL([], [file_magic_cmd], [1],
3180636a995dSmlcreech    [Command to use when deplibs_check_method == "file_magic"])
3181636a995dSmlcreech])# _LT_CHECK_MAGIC_METHOD
31829bc8b93fSa.rottmann
31839bc8b93fSa.rottmann
3184636a995dSmlcreech# LT_PATH_NM
31859bc8b93fSa.rottmann# ----------
3186636a995dSmlcreech# find the pathname to a BSD- or MS-compatible name lister
3187636a995dSmlcreechAC_DEFUN([LT_PATH_NM],
3188636a995dSmlcreech[AC_REQUIRE([AC_PROG_CC])dnl
3189636a995dSmlcreechAC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
31909bc8b93fSa.rottmann[if test -n "$NM"; then
31919bc8b93fSa.rottmann  # Let the user override the test.
31929bc8b93fSa.rottmann  lt_cv_path_NM="$NM"
31939bc8b93fSa.rottmannelse
31947f19c02fSvapier  lt_nm_to_check="${ac_tool_prefix}nm"
31957f19c02fSvapier  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
31967f19c02fSvapier    lt_nm_to_check="$lt_nm_to_check nm"
31977f19c02fSvapier  fi
31987f19c02fSvapier  for lt_tmp_nm in $lt_nm_to_check; do
31999bc8b93fSa.rottmann    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
32007f19c02fSvapier    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
32019bc8b93fSa.rottmann      IFS="$lt_save_ifs"
32029bc8b93fSa.rottmann      test -z "$ac_dir" && ac_dir=.
32037f19c02fSvapier      tmp_nm="$ac_dir/$lt_tmp_nm"
32049bc8b93fSa.rottmann      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
32059bc8b93fSa.rottmann	# Check to see if the nm accepts a BSD-compat flag.
32069bc8b93fSa.rottmann	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
32079bc8b93fSa.rottmann	#   nm: unknown option "B" ignored
32089bc8b93fSa.rottmann	# Tru64's nm complains that /dev/null is an invalid object file
32099bc8b93fSa.rottmann	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
32109bc8b93fSa.rottmann	*/dev/null* | *'Invalid file or object type'*)
32119bc8b93fSa.rottmann	  lt_cv_path_NM="$tmp_nm -B"
32129bc8b93fSa.rottmann	  break
32139bc8b93fSa.rottmann	  ;;
32149bc8b93fSa.rottmann	*)
32159bc8b93fSa.rottmann	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
32169bc8b93fSa.rottmann	  */dev/null*)
32179bc8b93fSa.rottmann	    lt_cv_path_NM="$tmp_nm -p"
32189bc8b93fSa.rottmann	    break
32199bc8b93fSa.rottmann	    ;;
32209bc8b93fSa.rottmann	  *)
32219bc8b93fSa.rottmann	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
32229bc8b93fSa.rottmann	    continue # so that we can try to find one that supports BSD flags
32239bc8b93fSa.rottmann	    ;;
32249bc8b93fSa.rottmann	  esac
32257f19c02fSvapier	  ;;
32269bc8b93fSa.rottmann	esac
32279bc8b93fSa.rottmann      fi
32289bc8b93fSa.rottmann    done
32299bc8b93fSa.rottmann    IFS="$lt_save_ifs"
32307f19c02fSvapier  done
3231636a995dSmlcreech  : ${lt_cv_path_NM=no}
32329bc8b93fSa.rottmannfi])
3233636a995dSmlcreechif test "$lt_cv_path_NM" != "no"; then
32349bc8b93fSa.rottmann  NM="$lt_cv_path_NM"
3235636a995dSmlcreechelse
3236636a995dSmlcreech  # Didn't find any BSD compatible name lister, look for dumpbin.
3237636a995dSmlcreech  AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
3238636a995dSmlcreech  AC_SUBST([DUMPBIN])
3239636a995dSmlcreech  if test "$DUMPBIN" != ":"; then
3240636a995dSmlcreech    NM="$DUMPBIN"
3241636a995dSmlcreech  fi
3242636a995dSmlcreechfi
3243636a995dSmlcreechtest -z "$NM" && NM=nm
3244636a995dSmlcreechAC_SUBST([NM])
3245636a995dSmlcreech_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
3246636a995dSmlcreech
3247636a995dSmlcreechAC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
3248636a995dSmlcreech  [lt_cv_nm_interface="BSD nm"
3249636a995dSmlcreech  echo "int some_variable = 0;" > conftest.$ac_ext
3250636a995dSmlcreech  (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
3251636a995dSmlcreech  (eval "$ac_compile" 2>conftest.err)
3252636a995dSmlcreech  cat conftest.err >&AS_MESSAGE_LOG_FD
3253636a995dSmlcreech  (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
3254636a995dSmlcreech  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3255636a995dSmlcreech  cat conftest.err >&AS_MESSAGE_LOG_FD
3256636a995dSmlcreech  (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)
3257636a995dSmlcreech  cat conftest.out >&AS_MESSAGE_LOG_FD
3258636a995dSmlcreech  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3259636a995dSmlcreech    lt_cv_nm_interface="MS dumpbin"
3260636a995dSmlcreech  fi
3261636a995dSmlcreech  rm -f conftest*])
3262636a995dSmlcreech])# LT_PATH_NM
3263636a995dSmlcreech
3264636a995dSmlcreech# Old names:
3265636a995dSmlcreechAU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
3266636a995dSmlcreechAU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
3267636a995dSmlcreechdnl aclocal-1.4 backwards compatibility:
3268636a995dSmlcreechdnl AC_DEFUN([AM_PROG_NM], [])
3269636a995dSmlcreechdnl AC_DEFUN([AC_PROG_NM], [])
32709bc8b93fSa.rottmann
32719bc8b93fSa.rottmann
3272636a995dSmlcreech# LT_LIB_M
3273636a995dSmlcreech# --------
32749bc8b93fSa.rottmann# check for math library
3275636a995dSmlcreechAC_DEFUN([LT_LIB_M],
32769bc8b93fSa.rottmann[AC_REQUIRE([AC_CANONICAL_HOST])dnl
32779bc8b93fSa.rottmannLIBM=
32789bc8b93fSa.rottmanncase $host in
32799bc8b93fSa.rottmann*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
32809bc8b93fSa.rottmann  # These system don't have libm, or don't need it
32819bc8b93fSa.rottmann  ;;
32829bc8b93fSa.rottmann*-ncr-sysv4.3*)
32839bc8b93fSa.rottmann  AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
32849bc8b93fSa.rottmann  AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
32859bc8b93fSa.rottmann  ;;
32869bc8b93fSa.rottmann*)
32879bc8b93fSa.rottmann  AC_CHECK_LIB(m, cos, LIBM="-lm")
32889bc8b93fSa.rottmann  ;;
32899bc8b93fSa.rottmannesac
3290636a995dSmlcreechAC_SUBST([LIBM])
3291636a995dSmlcreech])# LT_LIB_M
32929bc8b93fSa.rottmann
3293636a995dSmlcreech# Old name:
3294636a995dSmlcreechAU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
3295636a995dSmlcreechdnl aclocal-1.4 backwards compatibility:
3296636a995dSmlcreechdnl AC_DEFUN([AC_CHECK_LIBM], [])
32979bc8b93fSa.rottmann
32989bc8b93fSa.rottmann
3299636a995dSmlcreech# _LT_COMPILER_NO_RTTI([TAGNAME])
3300636a995dSmlcreech# -------------------------------
3301636a995dSmlcreechm4_defun([_LT_COMPILER_NO_RTTI],
3302636a995dSmlcreech[m4_require([_LT_TAG_COMPILER])dnl
33039bc8b93fSa.rottmann
3304636a995dSmlcreech_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
33059bc8b93fSa.rottmann
33069bc8b93fSa.rottmannif test "$GCC" = yes; then
3307636a995dSmlcreech  _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
33089bc8b93fSa.rottmann
3309636a995dSmlcreech  _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
33109bc8b93fSa.rottmann    lt_cv_prog_compiler_rtti_exceptions,
33119bc8b93fSa.rottmann    [-fno-rtti -fno-exceptions], [],
3312636a995dSmlcreech    [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
33139bc8b93fSa.rottmannfi
3314636a995dSmlcreech_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
3315636a995dSmlcreech	[Compiler flag to turn off builtin functions])
3316636a995dSmlcreech])# _LT_COMPILER_NO_RTTI
33179bc8b93fSa.rottmann
33189bc8b93fSa.rottmann
3319636a995dSmlcreech# _LT_CMD_GLOBAL_SYMBOLS
3320636a995dSmlcreech# ----------------------
3321636a995dSmlcreechm4_defun([_LT_CMD_GLOBAL_SYMBOLS],
3322636a995dSmlcreech[AC_REQUIRE([AC_CANONICAL_HOST])dnl
3323636a995dSmlcreechAC_REQUIRE([AC_PROG_CC])dnl
3324636a995dSmlcreechAC_REQUIRE([LT_PATH_NM])dnl
3325636a995dSmlcreechAC_REQUIRE([LT_PATH_LD])dnl
3326636a995dSmlcreechm4_require([_LT_DECL_SED])dnl
3327636a995dSmlcreechm4_require([_LT_DECL_EGREP])dnl
3328636a995dSmlcreechm4_require([_LT_TAG_COMPILER])dnl
3329636a995dSmlcreech
33309bc8b93fSa.rottmann# Check for command to grab the raw symbol name followed by C symbol from nm.
33319bc8b93fSa.rottmannAC_MSG_CHECKING([command to parse $NM output from $compiler object])
33329bc8b93fSa.rottmannAC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
33339bc8b93fSa.rottmann[
33349bc8b93fSa.rottmann# These are sane defaults that work on at least a few old systems.
33359bc8b93fSa.rottmann# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
33369bc8b93fSa.rottmann
33379bc8b93fSa.rottmann# Character class describing NM global symbol codes.
33389bc8b93fSa.rottmannsymcode='[[BCDEGRST]]'
33399bc8b93fSa.rottmann
33409bc8b93fSa.rottmann# Regexp to match symbols that can be accessed directly from C.
33419bc8b93fSa.rottmannsympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
33429bc8b93fSa.rottmann
33439bc8b93fSa.rottmann# Define system-specific variables.
334462507b65Sa.rottmanncase $host_os in
33459bc8b93fSa.rottmannaix*)
33469bc8b93fSa.rottmann  symcode='[[BCDT]]'
33479bc8b93fSa.rottmann  ;;
3348*6acb2cf6Svapiercygwin* | mingw* | pw32* | cegcc*)
33499bc8b93fSa.rottmann  symcode='[[ABCDGISTW]]'
33509bc8b93fSa.rottmann  ;;
3351636a995dSmlcreechhpux*)
33529bc8b93fSa.rottmann  if test "$host_cpu" = ia64; then
33539bc8b93fSa.rottmann    symcode='[[ABCDEGRST]]'
33549bc8b93fSa.rottmann  fi
33557f19c02fSvapier  ;;
33569bc8b93fSa.rottmannirix* | nonstopux*)
33579bc8b93fSa.rottmann  symcode='[[BCDEGRST]]'
33589bc8b93fSa.rottmann  ;;
33599bc8b93fSa.rottmannosf*)
33609bc8b93fSa.rottmann  symcode='[[BCDEGQRST]]'
33619bc8b93fSa.rottmann  ;;
33627f19c02fSvapiersolaris*)
33639bc8b93fSa.rottmann  symcode='[[BDRT]]'
33649bc8b93fSa.rottmann  ;;
33657f19c02fSvapiersco3.2v5*)
33667f19c02fSvapier  symcode='[[DT]]'
33677f19c02fSvapier  ;;
33687f19c02fSvapiersysv4.2uw2*)
33697f19c02fSvapier  symcode='[[DT]]'
33707f19c02fSvapier  ;;
33717f19c02fSvapiersysv5* | sco5v6* | unixware* | OpenUNIX*)
33727f19c02fSvapier  symcode='[[ABDT]]'
33737f19c02fSvapier  ;;
33749bc8b93fSa.rottmannsysv4)
33759bc8b93fSa.rottmann  symcode='[[DFNSTU]]'
33769bc8b93fSa.rottmann  ;;
33779bc8b93fSa.rottmannesac
33789bc8b93fSa.rottmann
33799bc8b93fSa.rottmann# If we're using GNU nm, then use its standard symbol codes.
33809bc8b93fSa.rottmanncase `$NM -V 2>&1` in
33819bc8b93fSa.rottmann*GNU* | *'with BFD'*)
33829bc8b93fSa.rottmann  symcode='[[ABCDGIRSTW]]' ;;
33839bc8b93fSa.rottmannesac
33849bc8b93fSa.rottmann
3385636a995dSmlcreech# Transform an extracted symbol line into a proper C declaration.
3386636a995dSmlcreech# Some systems (esp. on ia64) link data and code symbols differently,
3387636a995dSmlcreech# so use this general approach.
3388636a995dSmlcreechlt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3389636a995dSmlcreech
3390636a995dSmlcreech# Transform an extracted symbol line into symbol name and symbol address
3391636a995dSmlcreechlt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (void *) \&\2},/p'"
3392636a995dSmlcreechlt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
3393636a995dSmlcreech
3394636a995dSmlcreech# Handle CRLF in mingw tool chain
3395636a995dSmlcreechopt_cr=
3396636a995dSmlcreechcase $build_os in
3397636a995dSmlcreechmingw*)
3398636a995dSmlcreech  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3399636a995dSmlcreech  ;;
3400636a995dSmlcreechesac
3401636a995dSmlcreech
3402636a995dSmlcreech# Try without a prefix underscore, then with it.
34039bc8b93fSa.rottmannfor ac_symprfx in "" "_"; do
34049bc8b93fSa.rottmann
34057f19c02fSvapier  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
34067f19c02fSvapier  symxfrm="\\1 $ac_symprfx\\2 \\2"
34077f19c02fSvapier
34089bc8b93fSa.rottmann  # Write the raw and C identifiers.
3409636a995dSmlcreech  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
3410636a995dSmlcreech    # Fake it for dumpbin and say T for any non-static function
3411636a995dSmlcreech    # and D for any global variable.
3412636a995dSmlcreech    # Also find C++ and __fastcall symbols from MSVC++,
3413636a995dSmlcreech    # which start with @ or ?.
3414636a995dSmlcreech    lt_cv_sys_global_symbol_pipe="$AWK ['"\
3415636a995dSmlcreech"     {last_section=section; section=\$ 3};"\
3416636a995dSmlcreech"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
3417636a995dSmlcreech"     \$ 0!~/External *\|/{next};"\
3418636a995dSmlcreech"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
3419636a995dSmlcreech"     {if(hide[section]) next};"\
3420636a995dSmlcreech"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
3421636a995dSmlcreech"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
3422636a995dSmlcreech"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
3423636a995dSmlcreech"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
3424636a995dSmlcreech"     ' prfx=^$ac_symprfx]"
3425636a995dSmlcreech  else
34267f19c02fSvapier    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[	 ]]\($symcode$symcode*\)[[	 ]][[	 ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
3427636a995dSmlcreech  fi
34289bc8b93fSa.rottmann
34299bc8b93fSa.rottmann  # Check to see that the pipe works correctly.
34309bc8b93fSa.rottmann  pipe_works=no
34319bc8b93fSa.rottmann
34329bc8b93fSa.rottmann  rm -f conftest*
3433636a995dSmlcreech  cat > conftest.$ac_ext <<_LT_EOF
34349bc8b93fSa.rottmann#ifdef __cplusplus
34359bc8b93fSa.rottmannextern "C" {
34369bc8b93fSa.rottmann#endif
34379bc8b93fSa.rottmannchar nm_test_var;
3438636a995dSmlcreechvoid nm_test_func(void);
3439636a995dSmlcreechvoid nm_test_func(void){}
34409bc8b93fSa.rottmann#ifdef __cplusplus
34419bc8b93fSa.rottmann}
34429bc8b93fSa.rottmann#endif
34439bc8b93fSa.rottmannint main(){nm_test_var='a';nm_test_func();return(0);}
3444636a995dSmlcreech_LT_EOF
34459bc8b93fSa.rottmann
34469bc8b93fSa.rottmann  if AC_TRY_EVAL(ac_compile); then
34479bc8b93fSa.rottmann    # Now try to grab the symbols.
34489bc8b93fSa.rottmann    nlist=conftest.nm
34499bc8b93fSa.rottmann    if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
34509bc8b93fSa.rottmann      # Try sorting and uniquifying the output.
34519bc8b93fSa.rottmann      if sort "$nlist" | uniq > "$nlist"T; then
34529bc8b93fSa.rottmann	mv -f "$nlist"T "$nlist"
34539bc8b93fSa.rottmann      else
34549bc8b93fSa.rottmann	rm -f "$nlist"T
34559bc8b93fSa.rottmann      fi
34569bc8b93fSa.rottmann
34579bc8b93fSa.rottmann      # Make sure that we snagged all the symbols we need.
3458636a995dSmlcreech      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
3459636a995dSmlcreech	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
3460636a995dSmlcreech	  cat <<_LT_EOF > conftest.$ac_ext
34619bc8b93fSa.rottmann#ifdef __cplusplus
34629bc8b93fSa.rottmannextern "C" {
34639bc8b93fSa.rottmann#endif
34649bc8b93fSa.rottmann
3465636a995dSmlcreech_LT_EOF
34669bc8b93fSa.rottmann	  # Now generate the symbol file.
3467636a995dSmlcreech	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
34689bc8b93fSa.rottmann
3469636a995dSmlcreech	  cat <<_LT_EOF >> conftest.$ac_ext
34709bc8b93fSa.rottmann
34719bc8b93fSa.rottmann/* The mapping between symbol names and symbols.  */
34729bc8b93fSa.rottmannconst struct {
34739bc8b93fSa.rottmann  const char *name;
3474636a995dSmlcreech  void       *address;
34759bc8b93fSa.rottmann}
3476636a995dSmlcreechlt__PROGRAM__LTX_preloaded_symbols[[]] =
34779bc8b93fSa.rottmann{
3478636a995dSmlcreech  { "@PROGRAM@", (void *) 0 },
3479636a995dSmlcreech_LT_EOF
3480636a995dSmlcreech	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
3481636a995dSmlcreech	  cat <<\_LT_EOF >> conftest.$ac_ext
3482636a995dSmlcreech  {0, (void *) 0}
34839bc8b93fSa.rottmann};
34849bc8b93fSa.rottmann
3485636a995dSmlcreech/* This works around a problem in FreeBSD linker */
3486636a995dSmlcreech#ifdef FREEBSD_WORKAROUND
3487636a995dSmlcreechstatic const void *lt_preloaded_setup() {
3488636a995dSmlcreech  return lt__PROGRAM__LTX_preloaded_symbols;
3489636a995dSmlcreech}
3490636a995dSmlcreech#endif
3491636a995dSmlcreech
34929bc8b93fSa.rottmann#ifdef __cplusplus
34939bc8b93fSa.rottmann}
34949bc8b93fSa.rottmann#endif
3495636a995dSmlcreech_LT_EOF
34969bc8b93fSa.rottmann	  # Now try linking the two files.
34979bc8b93fSa.rottmann	  mv conftest.$ac_objext conftstm.$ac_objext
34989bc8b93fSa.rottmann	  lt_save_LIBS="$LIBS"
34999bc8b93fSa.rottmann	  lt_save_CFLAGS="$CFLAGS"
35009bc8b93fSa.rottmann	  LIBS="conftstm.$ac_objext"
3501636a995dSmlcreech	  CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
35029bc8b93fSa.rottmann	  if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
35039bc8b93fSa.rottmann	    pipe_works=yes
35049bc8b93fSa.rottmann	  fi
35059bc8b93fSa.rottmann	  LIBS="$lt_save_LIBS"
35069bc8b93fSa.rottmann	  CFLAGS="$lt_save_CFLAGS"
35079bc8b93fSa.rottmann	else
35089bc8b93fSa.rottmann	  echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
35099bc8b93fSa.rottmann	fi
35109bc8b93fSa.rottmann      else
35119bc8b93fSa.rottmann	echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
35129bc8b93fSa.rottmann      fi
35139bc8b93fSa.rottmann    else
35149bc8b93fSa.rottmann      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
35159bc8b93fSa.rottmann    fi
35169bc8b93fSa.rottmann  else
35179bc8b93fSa.rottmann    echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
35189bc8b93fSa.rottmann    cat conftest.$ac_ext >&5
35199bc8b93fSa.rottmann  fi
3520636a995dSmlcreech  rm -rf conftest* conftst*
35219bc8b93fSa.rottmann
35229bc8b93fSa.rottmann  # Do not use the global_symbol_pipe unless it works.
35239bc8b93fSa.rottmann  if test "$pipe_works" = yes; then
35249bc8b93fSa.rottmann    break
35259bc8b93fSa.rottmann  else
35269bc8b93fSa.rottmann    lt_cv_sys_global_symbol_pipe=
35279bc8b93fSa.rottmann  fi
35289bc8b93fSa.rottmanndone
35299bc8b93fSa.rottmann])
35309bc8b93fSa.rottmannif test -z "$lt_cv_sys_global_symbol_pipe"; then
35319bc8b93fSa.rottmann  lt_cv_sys_global_symbol_to_cdecl=
35329bc8b93fSa.rottmannfi
35339bc8b93fSa.rottmannif test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
35349bc8b93fSa.rottmann  AC_MSG_RESULT(failed)
35359bc8b93fSa.rottmannelse
35369bc8b93fSa.rottmann  AC_MSG_RESULT(ok)
35379bc8b93fSa.rottmannfi
3538636a995dSmlcreech
3539636a995dSmlcreech_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
3540636a995dSmlcreech    [Take the output of nm and produce a listing of raw symbols and C names])
3541636a995dSmlcreech_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
3542636a995dSmlcreech    [Transform the output of nm in a proper C declaration])
3543636a995dSmlcreech_LT_DECL([global_symbol_to_c_name_address],
3544636a995dSmlcreech    [lt_cv_sys_global_symbol_to_c_name_address], [1],
3545636a995dSmlcreech    [Transform the output of nm in a C name address pair])
3546636a995dSmlcreech_LT_DECL([global_symbol_to_c_name_address_lib_prefix],
3547636a995dSmlcreech    [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
3548636a995dSmlcreech    [Transform the output of nm in a C name address pair when lib prefix is needed])
3549636a995dSmlcreech]) # _LT_CMD_GLOBAL_SYMBOLS
35509bc8b93fSa.rottmann
35519bc8b93fSa.rottmann
3552636a995dSmlcreech# _LT_COMPILER_PIC([TAGNAME])
3553636a995dSmlcreech# ---------------------------
3554636a995dSmlcreechm4_defun([_LT_COMPILER_PIC],
3555636a995dSmlcreech[m4_require([_LT_TAG_COMPILER])dnl
3556636a995dSmlcreech_LT_TAGVAR(lt_prog_compiler_wl, $1)=
3557636a995dSmlcreech_LT_TAGVAR(lt_prog_compiler_pic, $1)=
3558636a995dSmlcreech_LT_TAGVAR(lt_prog_compiler_static, $1)=
35599bc8b93fSa.rottmann
35609bc8b93fSa.rottmannAC_MSG_CHECKING([for $compiler option to produce PIC])
3561636a995dSmlcreechm4_if([$1], [CXX], [
35629bc8b93fSa.rottmann  # C++ specific cases for pic, static, wl, etc.
35639bc8b93fSa.rottmann  if test "$GXX" = yes; then
3564636a995dSmlcreech    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3565636a995dSmlcreech    _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
35669bc8b93fSa.rottmann
35679bc8b93fSa.rottmann    case $host_os in
35689bc8b93fSa.rottmann    aix*)
35699bc8b93fSa.rottmann      # All AIX code is PIC.
35709bc8b93fSa.rottmann      if test "$host_cpu" = ia64; then
35719bc8b93fSa.rottmann	# AIX 5 now supports IA64 processor
3572636a995dSmlcreech	_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
35739bc8b93fSa.rottmann      fi
35749bc8b93fSa.rottmann      ;;
3575636a995dSmlcreech
35769bc8b93fSa.rottmann    amigaos*)
3577636a995dSmlcreech      case $host_cpu in
3578636a995dSmlcreech      powerpc)
3579636a995dSmlcreech            # see comment about AmigaOS4 .so support
3580636a995dSmlcreech            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3581636a995dSmlcreech        ;;
3582636a995dSmlcreech      m68k)
35839bc8b93fSa.rottmann            # FIXME: we need at least 68020 code to build shared libraries, but
35849bc8b93fSa.rottmann            # adding the `-m68020' flag to GCC prevents building anything better,
35859bc8b93fSa.rottmann            # like `-m68040'.
3586636a995dSmlcreech            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
35879bc8b93fSa.rottmann        ;;
3588636a995dSmlcreech      esac
3589636a995dSmlcreech      ;;
3590636a995dSmlcreech
3591636a995dSmlcreech    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
35929bc8b93fSa.rottmann      # PIC is the default for these OSes.
35939bc8b93fSa.rottmann      ;;
3594*6acb2cf6Svapier    mingw* | cygwin* | os2* | pw32* | cegcc*)
35959bc8b93fSa.rottmann      # This hack is so that the source file can tell whether it is being
35969bc8b93fSa.rottmann      # built for inclusion in a dll (and should export symbols for example).
3597636a995dSmlcreech      # Although the cygwin gcc ignores -fPIC, still need this for old-style
3598636a995dSmlcreech      # (--disable-auto-import) libraries
3599636a995dSmlcreech      m4_if([$1], [GCJ], [],
3600636a995dSmlcreech	[_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
36019bc8b93fSa.rottmann      ;;
36029bc8b93fSa.rottmann    darwin* | rhapsody*)
36039bc8b93fSa.rottmann      # PIC is the default on this platform
36049bc8b93fSa.rottmann      # Common symbols not allowed in MH_DYLIB files
3605636a995dSmlcreech      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
36069bc8b93fSa.rottmann      ;;
36079bc8b93fSa.rottmann    *djgpp*)
36089bc8b93fSa.rottmann      # DJGPP does not support shared libraries at all
3609636a995dSmlcreech      _LT_TAGVAR(lt_prog_compiler_pic, $1)=
36109bc8b93fSa.rottmann      ;;
3611636a995dSmlcreech    interix[[3-9]]*)
36127f19c02fSvapier      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
36137f19c02fSvapier      # Instead, we relocate shared libraries at runtime.
36147f19c02fSvapier      ;;
36159bc8b93fSa.rottmann    sysv4*MP*)
36169bc8b93fSa.rottmann      if test -d /usr/nec; then
3617636a995dSmlcreech	_LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
36189bc8b93fSa.rottmann      fi
36199bc8b93fSa.rottmann      ;;
36209bc8b93fSa.rottmann    hpux*)
3621*6acb2cf6Svapier      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
3622*6acb2cf6Svapier      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
3623*6acb2cf6Svapier      # sets the default TLS model and affects inlining.
36247f19c02fSvapier      case $host_cpu in
3625*6acb2cf6Svapier      hppa*64*)
36269bc8b93fSa.rottmann	;;
36279bc8b93fSa.rottmann      *)
3628636a995dSmlcreech	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
36299bc8b93fSa.rottmann	;;
36309bc8b93fSa.rottmann      esac
36319bc8b93fSa.rottmann      ;;
3632636a995dSmlcreech    *qnx* | *nto*)
3633636a995dSmlcreech      # QNX uses GNU C++, but need to define -shared option too, otherwise
3634636a995dSmlcreech      # it will coredump.
3635636a995dSmlcreech      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
3636636a995dSmlcreech      ;;
36379bc8b93fSa.rottmann    *)
3638636a995dSmlcreech      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
36399bc8b93fSa.rottmann      ;;
36409bc8b93fSa.rottmann    esac
36419bc8b93fSa.rottmann  else
36429bc8b93fSa.rottmann    case $host_os in
3643636a995dSmlcreech      aix[[4-9]]*)
36449bc8b93fSa.rottmann	# All AIX code is PIC.
36459bc8b93fSa.rottmann	if test "$host_cpu" = ia64; then
36469bc8b93fSa.rottmann	  # AIX 5 now supports IA64 processor
3647636a995dSmlcreech	  _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
36489bc8b93fSa.rottmann	else
3649636a995dSmlcreech	  _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
36509bc8b93fSa.rottmann	fi
36519bc8b93fSa.rottmann	;;
36529bc8b93fSa.rottmann      chorus*)
36539bc8b93fSa.rottmann	case $cc_basename in
36547f19c02fSvapier	cxch68*)
36559bc8b93fSa.rottmann	  # Green Hills C++ Compiler
3656636a995dSmlcreech	  # _LT_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"
36577f19c02fSvapier	  ;;
36587f19c02fSvapier	esac
36597f19c02fSvapier	;;
36609bc8b93fSa.rottmann      dgux*)
36619bc8b93fSa.rottmann	case $cc_basename in
36627f19c02fSvapier	  ec++*)
3663636a995dSmlcreech	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
36649bc8b93fSa.rottmann	    ;;
36657f19c02fSvapier	  ghcx*)
36669bc8b93fSa.rottmann	    # Green Hills C++ Compiler
3667636a995dSmlcreech	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
36689bc8b93fSa.rottmann	    ;;
36699bc8b93fSa.rottmann	  *)
36709bc8b93fSa.rottmann	    ;;
36719bc8b93fSa.rottmann	esac
36729bc8b93fSa.rottmann	;;
3673636a995dSmlcreech      freebsd* | dragonfly*)
36749bc8b93fSa.rottmann	# FreeBSD uses GNU C++
36759bc8b93fSa.rottmann	;;
36769bc8b93fSa.rottmann      hpux9* | hpux10* | hpux11*)
36779bc8b93fSa.rottmann	case $cc_basename in
36787f19c02fSvapier	  CC*)
3679636a995dSmlcreech	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3680636a995dSmlcreech	    _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
36819bc8b93fSa.rottmann	    if test "$host_cpu" != ia64; then
3682636a995dSmlcreech	      _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
36839bc8b93fSa.rottmann	    fi
36849bc8b93fSa.rottmann	    ;;
36857f19c02fSvapier	  aCC*)
3686636a995dSmlcreech	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3687636a995dSmlcreech	    _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
36887f19c02fSvapier	    case $host_cpu in
36899bc8b93fSa.rottmann	    hppa*64*|ia64*)
36909bc8b93fSa.rottmann	      # +Z the default
36919bc8b93fSa.rottmann	      ;;
36929bc8b93fSa.rottmann	    *)
3693636a995dSmlcreech	      _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
36949bc8b93fSa.rottmann	      ;;
36959bc8b93fSa.rottmann	    esac
36969bc8b93fSa.rottmann	    ;;
36979bc8b93fSa.rottmann	  *)
36989bc8b93fSa.rottmann	    ;;
36999bc8b93fSa.rottmann	esac
37009bc8b93fSa.rottmann	;;
37017f19c02fSvapier      interix*)
37027f19c02fSvapier	# This is c89, which is MS Visual C++ (no shared libs)
37037f19c02fSvapier	# Anyone wants to do a port?
37047f19c02fSvapier	;;
37059bc8b93fSa.rottmann      irix5* | irix6* | nonstopux*)
37069bc8b93fSa.rottmann	case $cc_basename in
37077f19c02fSvapier	  CC*)
3708636a995dSmlcreech	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3709636a995dSmlcreech	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
37109bc8b93fSa.rottmann	    # CC pic flag -KPIC is the default.
37119bc8b93fSa.rottmann	    ;;
37129bc8b93fSa.rottmann	  *)
37139bc8b93fSa.rottmann	    ;;
37149bc8b93fSa.rottmann	esac
37159bc8b93fSa.rottmann	;;
3716636a995dSmlcreech      linux* | k*bsd*-gnu)
37179bc8b93fSa.rottmann	case $cc_basename in
37187f19c02fSvapier	  KCC*)
37199bc8b93fSa.rottmann	    # KAI C++ Compiler
3720636a995dSmlcreech	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
3721636a995dSmlcreech	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
37229bc8b93fSa.rottmann	    ;;
3723*6acb2cf6Svapier	  ecpc* )
3724*6acb2cf6Svapier	    # old Intel C++ for x86_64 which still supported -KPIC.
3725636a995dSmlcreech	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3726636a995dSmlcreech	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3727636a995dSmlcreech	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
37289bc8b93fSa.rottmann	    ;;
3729*6acb2cf6Svapier	  icpc* )
3730*6acb2cf6Svapier	    # Intel C++, used to be incompatible with GCC.
3731*6acb2cf6Svapier	    # ICC 10 doesn't accept -KPIC any more.
3732*6acb2cf6Svapier	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3733*6acb2cf6Svapier	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3734*6acb2cf6Svapier	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
3735*6acb2cf6Svapier	    ;;
3736636a995dSmlcreech	  pgCC* | pgcpp*)
3737636a995dSmlcreech	    # Portland Group C++ compiler
3738636a995dSmlcreech	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3739636a995dSmlcreech	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
3740636a995dSmlcreech	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
37417f19c02fSvapier	    ;;
37427f19c02fSvapier	  cxx*)
37439bc8b93fSa.rottmann	    # Compaq C++
37449bc8b93fSa.rottmann	    # Make sure the PIC flag is empty.  It appears that all Alpha
37459bc8b93fSa.rottmann	    # Linux and Compaq Tru64 Unix objects are PIC.
3746636a995dSmlcreech	    _LT_TAGVAR(lt_prog_compiler_pic, $1)=
3747636a995dSmlcreech	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
3748636a995dSmlcreech	    ;;
3749636a995dSmlcreech	  xlc* | xlC*)
3750636a995dSmlcreech	    # IBM XL 8.0 on PPC
3751636a995dSmlcreech	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3752636a995dSmlcreech	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
3753636a995dSmlcreech	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
37549bc8b93fSa.rottmann	    ;;
37559bc8b93fSa.rottmann	  *)
3756636a995dSmlcreech	    case `$CC -V 2>&1 | sed 5q` in
3757636a995dSmlcreech	    *Sun\ C*)
3758636a995dSmlcreech	      # Sun C++ 5.9
3759636a995dSmlcreech	      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3760636a995dSmlcreech	      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3761636a995dSmlcreech	      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
3762636a995dSmlcreech	      ;;
3763636a995dSmlcreech	    esac
37649bc8b93fSa.rottmann	    ;;
37659bc8b93fSa.rottmann	esac
37669bc8b93fSa.rottmann	;;
37679bc8b93fSa.rottmann      lynxos*)
37689bc8b93fSa.rottmann	;;
37699bc8b93fSa.rottmann      m88k*)
37709bc8b93fSa.rottmann	;;
37719bc8b93fSa.rottmann      mvs*)
37729bc8b93fSa.rottmann	case $cc_basename in
37737f19c02fSvapier	  cxx*)
3774636a995dSmlcreech	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
37759bc8b93fSa.rottmann	    ;;
37769bc8b93fSa.rottmann	  *)
37779bc8b93fSa.rottmann	    ;;
37789bc8b93fSa.rottmann	esac
37799bc8b93fSa.rottmann	;;
37807f19c02fSvapier      netbsd*)
37819bc8b93fSa.rottmann	;;
3782636a995dSmlcreech      *qnx* | *nto*)
3783636a995dSmlcreech        # QNX uses GNU C++, but need to define -shared option too, otherwise
3784636a995dSmlcreech        # it will coredump.
3785636a995dSmlcreech        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
3786636a995dSmlcreech        ;;
37879bc8b93fSa.rottmann      osf3* | osf4* | osf5*)
37889bc8b93fSa.rottmann	case $cc_basename in
37897f19c02fSvapier	  KCC*)
3790636a995dSmlcreech	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
37919bc8b93fSa.rottmann	    ;;
37927f19c02fSvapier	  RCC*)
37939bc8b93fSa.rottmann	    # Rational C++ 2.4.1
3794636a995dSmlcreech	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
37959bc8b93fSa.rottmann	    ;;
37967f19c02fSvapier	  cxx*)
37979bc8b93fSa.rottmann	    # Digital/Compaq C++
3798636a995dSmlcreech	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
37999bc8b93fSa.rottmann	    # Make sure the PIC flag is empty.  It appears that all Alpha
38009bc8b93fSa.rottmann	    # Linux and Compaq Tru64 Unix objects are PIC.
3801636a995dSmlcreech	    _LT_TAGVAR(lt_prog_compiler_pic, $1)=
3802636a995dSmlcreech	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
38039bc8b93fSa.rottmann	    ;;
38049bc8b93fSa.rottmann	  *)
38059bc8b93fSa.rottmann	    ;;
38069bc8b93fSa.rottmann	esac
38079bc8b93fSa.rottmann	;;
38089bc8b93fSa.rottmann      psos*)
38099bc8b93fSa.rottmann	;;
38109bc8b93fSa.rottmann      solaris*)
38119bc8b93fSa.rottmann	case $cc_basename in
38127f19c02fSvapier	  CC*)
38139bc8b93fSa.rottmann	    # Sun C++ 4.2, 5.x and Centerline C++
3814636a995dSmlcreech	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3815636a995dSmlcreech	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3816636a995dSmlcreech	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
38179bc8b93fSa.rottmann	    ;;
38187f19c02fSvapier	  gcx*)
38199bc8b93fSa.rottmann	    # Green Hills C++ Compiler
3820636a995dSmlcreech	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
38219bc8b93fSa.rottmann	    ;;
38229bc8b93fSa.rottmann	  *)
38239bc8b93fSa.rottmann	    ;;
38249bc8b93fSa.rottmann	esac
38259bc8b93fSa.rottmann	;;
38269bc8b93fSa.rottmann      sunos4*)
38279bc8b93fSa.rottmann	case $cc_basename in
38287f19c02fSvapier	  CC*)
38299bc8b93fSa.rottmann	    # Sun C++ 4.x
3830636a995dSmlcreech	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
3831636a995dSmlcreech	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
38329bc8b93fSa.rottmann	    ;;
38337f19c02fSvapier	  lcc*)
38349bc8b93fSa.rottmann	    # Lucid
3835636a995dSmlcreech	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
38369bc8b93fSa.rottmann	    ;;
38379bc8b93fSa.rottmann	  *)
38389bc8b93fSa.rottmann	    ;;
38399bc8b93fSa.rottmann	esac
38409bc8b93fSa.rottmann	;;
38417f19c02fSvapier      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
38427f19c02fSvapier	case $cc_basename in
38437f19c02fSvapier	  CC*)
3844636a995dSmlcreech	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3845636a995dSmlcreech	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3846636a995dSmlcreech	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3847636a995dSmlcreech	    ;;
3848636a995dSmlcreech	esac
3849636a995dSmlcreech	;;
3850636a995dSmlcreech      tandem*)
3851636a995dSmlcreech	case $cc_basename in
3852636a995dSmlcreech	  NCC*)
3853636a995dSmlcreech	    # NonStop-UX NCC 3.20
3854636a995dSmlcreech	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3855636a995dSmlcreech	    ;;
3856636a995dSmlcreech	  *)
38577f19c02fSvapier	    ;;
38587f19c02fSvapier	esac
38599bc8b93fSa.rottmann	;;
38609bc8b93fSa.rottmann      vxworks*)
38619bc8b93fSa.rottmann	;;
38629bc8b93fSa.rottmann      *)
3863636a995dSmlcreech	_LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
38649bc8b93fSa.rottmann	;;
38659bc8b93fSa.rottmann    esac
38669bc8b93fSa.rottmann  fi
38679bc8b93fSa.rottmann],
38689bc8b93fSa.rottmann[
38699bc8b93fSa.rottmann  if test "$GCC" = yes; then
3870636a995dSmlcreech    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3871636a995dSmlcreech    _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
38729bc8b93fSa.rottmann
38739bc8b93fSa.rottmann    case $host_os in
38749bc8b93fSa.rottmann      aix*)
38759bc8b93fSa.rottmann      # All AIX code is PIC.
38769bc8b93fSa.rottmann      if test "$host_cpu" = ia64; then
38779bc8b93fSa.rottmann	# AIX 5 now supports IA64 processor
3878636a995dSmlcreech	_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
38799bc8b93fSa.rottmann      fi
38809bc8b93fSa.rottmann      ;;
38819bc8b93fSa.rottmann
38829bc8b93fSa.rottmann    amigaos*)
3883636a995dSmlcreech      case $host_cpu in
3884636a995dSmlcreech      powerpc)
3885636a995dSmlcreech            # see comment about AmigaOS4 .so support
3886636a995dSmlcreech            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3887636a995dSmlcreech        ;;
3888636a995dSmlcreech      m68k)
38899bc8b93fSa.rottmann            # FIXME: we need at least 68020 code to build shared libraries, but
38909bc8b93fSa.rottmann            # adding the `-m68020' flag to GCC prevents building anything better,
38919bc8b93fSa.rottmann            # like `-m68040'.
3892636a995dSmlcreech            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
3893636a995dSmlcreech        ;;
3894636a995dSmlcreech      esac
38959bc8b93fSa.rottmann      ;;
38969bc8b93fSa.rottmann
3897636a995dSmlcreech    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
38989bc8b93fSa.rottmann      # PIC is the default for these OSes.
38999bc8b93fSa.rottmann      ;;
39009bc8b93fSa.rottmann
3901*6acb2cf6Svapier    mingw* | cygwin* | pw32* | os2* | cegcc*)
39029bc8b93fSa.rottmann      # This hack is so that the source file can tell whether it is being
39039bc8b93fSa.rottmann      # built for inclusion in a dll (and should export symbols for example).
3904636a995dSmlcreech      # Although the cygwin gcc ignores -fPIC, still need this for old-style
3905636a995dSmlcreech      # (--disable-auto-import) libraries
3906636a995dSmlcreech      m4_if([$1], [GCJ], [],
3907636a995dSmlcreech	[_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
39089bc8b93fSa.rottmann      ;;
39099bc8b93fSa.rottmann
39109bc8b93fSa.rottmann    darwin* | rhapsody*)
39119bc8b93fSa.rottmann      # PIC is the default on this platform
39129bc8b93fSa.rottmann      # Common symbols not allowed in MH_DYLIB files
3913636a995dSmlcreech      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
39149bc8b93fSa.rottmann      ;;
39159bc8b93fSa.rottmann
39169bc8b93fSa.rottmann    hpux*)
3917*6acb2cf6Svapier      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
3918*6acb2cf6Svapier      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
3919*6acb2cf6Svapier      # sets the default TLS model and affects inlining.
39207f19c02fSvapier      case $host_cpu in
3921*6acb2cf6Svapier      hppa*64*)
39229bc8b93fSa.rottmann	# +Z the default
39239bc8b93fSa.rottmann	;;
39249bc8b93fSa.rottmann      *)
3925636a995dSmlcreech	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
39269bc8b93fSa.rottmann	;;
39279bc8b93fSa.rottmann      esac
39289bc8b93fSa.rottmann      ;;
39299bc8b93fSa.rottmann
3930636a995dSmlcreech    interix[[3-9]]*)
3931636a995dSmlcreech      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
3932636a995dSmlcreech      # Instead, we relocate shared libraries at runtime.
3933636a995dSmlcreech      ;;
3934636a995dSmlcreech
3935636a995dSmlcreech    msdosdjgpp*)
3936636a995dSmlcreech      # Just because we use GCC doesn't mean we suddenly get shared libraries
3937636a995dSmlcreech      # on systems that don't support them.
3938636a995dSmlcreech      _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
3939636a995dSmlcreech      enable_shared=no
3940636a995dSmlcreech      ;;
3941636a995dSmlcreech
3942636a995dSmlcreech    *nto* | *qnx*)
3943636a995dSmlcreech      # QNX uses GNU C++, but need to define -shared option too, otherwise
3944636a995dSmlcreech      # it will coredump.
3945636a995dSmlcreech      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
3946636a995dSmlcreech      ;;
3947636a995dSmlcreech
3948636a995dSmlcreech    sysv4*MP*)
3949636a995dSmlcreech      if test -d /usr/nec; then
3950636a995dSmlcreech	_LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
3951636a995dSmlcreech      fi
3952636a995dSmlcreech      ;;
3953636a995dSmlcreech
39549bc8b93fSa.rottmann    *)
3955636a995dSmlcreech      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
39569bc8b93fSa.rottmann      ;;
39579bc8b93fSa.rottmann    esac
39589bc8b93fSa.rottmann  else
39599bc8b93fSa.rottmann    # PORTME Check for flag to pass linker flags through the system compiler.
39609bc8b93fSa.rottmann    case $host_os in
39619bc8b93fSa.rottmann    aix*)
3962636a995dSmlcreech      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
39639bc8b93fSa.rottmann      if test "$host_cpu" = ia64; then
39649bc8b93fSa.rottmann	# AIX 5 now supports IA64 processor
3965636a995dSmlcreech	_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
39669bc8b93fSa.rottmann      else
3967636a995dSmlcreech	_LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
39689bc8b93fSa.rottmann      fi
39699bc8b93fSa.rottmann      ;;
39709bc8b93fSa.rottmann
3971*6acb2cf6Svapier    mingw* | cygwin* | pw32* | os2* | cegcc*)
39729bc8b93fSa.rottmann      # This hack is so that the source file can tell whether it is being
39739bc8b93fSa.rottmann      # built for inclusion in a dll (and should export symbols for example).
3974636a995dSmlcreech      m4_if([$1], [GCJ], [],
3975636a995dSmlcreech	[_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
39769bc8b93fSa.rottmann      ;;
39779bc8b93fSa.rottmann
39789bc8b93fSa.rottmann    hpux9* | hpux10* | hpux11*)
3979636a995dSmlcreech      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
39809bc8b93fSa.rottmann      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
39819bc8b93fSa.rottmann      # not for PA HP-UX.
39827f19c02fSvapier      case $host_cpu in
39839bc8b93fSa.rottmann      hppa*64*|ia64*)
39849bc8b93fSa.rottmann	# +Z the default
39859bc8b93fSa.rottmann	;;
39869bc8b93fSa.rottmann      *)
3987636a995dSmlcreech	_LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
39889bc8b93fSa.rottmann	;;
39899bc8b93fSa.rottmann      esac
39909bc8b93fSa.rottmann      # Is there a better lt_prog_compiler_static that works with the bundled CC?
3991636a995dSmlcreech      _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
39929bc8b93fSa.rottmann      ;;
39939bc8b93fSa.rottmann
39949bc8b93fSa.rottmann    irix5* | irix6* | nonstopux*)
3995636a995dSmlcreech      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
39969bc8b93fSa.rottmann      # PIC (with -KPIC) is the default.
3997636a995dSmlcreech      _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
39989bc8b93fSa.rottmann      ;;
39999bc8b93fSa.rottmann
4000636a995dSmlcreech    linux* | k*bsd*-gnu)
40017f19c02fSvapier      case $cc_basename in
4002*6acb2cf6Svapier      # old Intel for x86_64 which still supported -KPIC.
4003*6acb2cf6Svapier      ecc*)
4004636a995dSmlcreech	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4005636a995dSmlcreech	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4006636a995dSmlcreech	_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
40079bc8b93fSa.rottmann        ;;
4008*6acb2cf6Svapier      # icc used to be incompatible with GCC.
4009*6acb2cf6Svapier      # ICC 10 doesn't accept -KPIC any more.
4010*6acb2cf6Svapier      icc* | ifort*)
4011*6acb2cf6Svapier	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4012*6acb2cf6Svapier	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4013*6acb2cf6Svapier	_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4014*6acb2cf6Svapier        ;;
4015*6acb2cf6Svapier      # Lahey Fortran 8.1.
4016*6acb2cf6Svapier      lf95*)
4017*6acb2cf6Svapier	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4018*6acb2cf6Svapier	_LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
4019*6acb2cf6Svapier	_LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
4020*6acb2cf6Svapier	;;
40217f19c02fSvapier      pgcc* | pgf77* | pgf90* | pgf95*)
40227f19c02fSvapier        # Portland Group compilers (*not* the Pentium gcc compiler,
40237f19c02fSvapier	# which looks to be a dead project)
4024636a995dSmlcreech	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4025636a995dSmlcreech	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4026636a995dSmlcreech	_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
40277f19c02fSvapier        ;;
40289bc8b93fSa.rottmann      ccc*)
4029636a995dSmlcreech        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
40309bc8b93fSa.rottmann        # All Alpha code is PIC.
4031636a995dSmlcreech        _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4032636a995dSmlcreech        ;;
4033636a995dSmlcreech      xl*)
4034636a995dSmlcreech	# IBM XL C 8.0/Fortran 10.1 on PPC
4035636a995dSmlcreech	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4036636a995dSmlcreech	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4037636a995dSmlcreech	_LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
4038636a995dSmlcreech	;;
4039636a995dSmlcreech      *)
4040636a995dSmlcreech	case `$CC -V 2>&1 | sed 5q` in
4041636a995dSmlcreech	*Sun\ C*)
4042636a995dSmlcreech	  # Sun C 5.9
4043636a995dSmlcreech	  _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4044636a995dSmlcreech	  _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4045636a995dSmlcreech	  _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4046636a995dSmlcreech	  ;;
4047636a995dSmlcreech	*Sun\ F*)
4048636a995dSmlcreech	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
4049636a995dSmlcreech	  _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4050636a995dSmlcreech	  _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4051636a995dSmlcreech	  _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
4052636a995dSmlcreech	  ;;
4053636a995dSmlcreech	esac
40549bc8b93fSa.rottmann	;;
40559bc8b93fSa.rottmann      esac
40569bc8b93fSa.rottmann      ;;
40579bc8b93fSa.rottmann
4058636a995dSmlcreech    newsos6)
4059636a995dSmlcreech      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4060636a995dSmlcreech      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4061636a995dSmlcreech      ;;
4062636a995dSmlcreech
4063636a995dSmlcreech    *nto* | *qnx*)
4064636a995dSmlcreech      # QNX uses GNU C++, but need to define -shared option too, otherwise
4065636a995dSmlcreech      # it will coredump.
4066636a995dSmlcreech      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4067636a995dSmlcreech      ;;
4068636a995dSmlcreech
40699bc8b93fSa.rottmann    osf3* | osf4* | osf5*)
4070636a995dSmlcreech      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
40719bc8b93fSa.rottmann      # All OSF/1 code is PIC.
4072636a995dSmlcreech      _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4073636a995dSmlcreech      ;;
4074636a995dSmlcreech
4075636a995dSmlcreech    rdos*)
4076636a995dSmlcreech      _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
40779bc8b93fSa.rottmann      ;;
40789bc8b93fSa.rottmann
40799bc8b93fSa.rottmann    solaris*)
4080636a995dSmlcreech      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4081636a995dSmlcreech      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
40827f19c02fSvapier      case $cc_basename in
40837f19c02fSvapier      f77* | f90* | f95*)
4084636a995dSmlcreech	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
40857f19c02fSvapier      *)
4086636a995dSmlcreech	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
40877f19c02fSvapier      esac
40889bc8b93fSa.rottmann      ;;
40899bc8b93fSa.rottmann
40909bc8b93fSa.rottmann    sunos4*)
4091636a995dSmlcreech      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4092636a995dSmlcreech      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4093636a995dSmlcreech      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
40949bc8b93fSa.rottmann      ;;
40959bc8b93fSa.rottmann
40967f19c02fSvapier    sysv4 | sysv4.2uw2* | sysv4.3*)
4097636a995dSmlcreech      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4098636a995dSmlcreech      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4099636a995dSmlcreech      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
41009bc8b93fSa.rottmann      ;;
41019bc8b93fSa.rottmann
41029bc8b93fSa.rottmann    sysv4*MP*)
41039bc8b93fSa.rottmann      if test -d /usr/nec ;then
4104636a995dSmlcreech	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
4105636a995dSmlcreech	_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
41069bc8b93fSa.rottmann      fi
41079bc8b93fSa.rottmann      ;;
41089bc8b93fSa.rottmann
41097f19c02fSvapier    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
4110636a995dSmlcreech      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4111636a995dSmlcreech      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4112636a995dSmlcreech      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
41137f19c02fSvapier      ;;
41147f19c02fSvapier
41157f19c02fSvapier    unicos*)
4116636a995dSmlcreech      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4117636a995dSmlcreech      _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
41187f19c02fSvapier      ;;
41197f19c02fSvapier
41209bc8b93fSa.rottmann    uts4*)
4121636a995dSmlcreech      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4122636a995dSmlcreech      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
41239bc8b93fSa.rottmann      ;;
41249bc8b93fSa.rottmann
41259bc8b93fSa.rottmann    *)
4126636a995dSmlcreech      _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
41279bc8b93fSa.rottmann      ;;
41289bc8b93fSa.rottmann    esac
41299bc8b93fSa.rottmann  fi
41309bc8b93fSa.rottmann])
4131636a995dSmlcreechcase $host_os in
4132636a995dSmlcreech  # For platforms which do not support PIC, -DPIC is meaningless:
4133636a995dSmlcreech  *djgpp*)
4134636a995dSmlcreech    _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4135636a995dSmlcreech    ;;
4136636a995dSmlcreech  *)
4137636a995dSmlcreech    _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
4138636a995dSmlcreech    ;;
4139636a995dSmlcreechesac
4140636a995dSmlcreechAC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
4141636a995dSmlcreech_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
4142636a995dSmlcreech	[How to pass a linker flag through the compiler])
41439bc8b93fSa.rottmann
41449bc8b93fSa.rottmann#
41459bc8b93fSa.rottmann# Check to make sure the PIC flag actually works.
41469bc8b93fSa.rottmann#
4147636a995dSmlcreechif test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
4148636a995dSmlcreech  _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
4149636a995dSmlcreech    [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
4150636a995dSmlcreech    [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
4151636a995dSmlcreech    [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
41529bc8b93fSa.rottmann     "" | " "*) ;;
4153636a995dSmlcreech     *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
41549bc8b93fSa.rottmann     esac],
4155636a995dSmlcreech    [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
4156636a995dSmlcreech     _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
41579bc8b93fSa.rottmannfi
4158636a995dSmlcreech_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
4159636a995dSmlcreech	[Additional compiler flags for building library objects])
41607f19c02fSvapier
41617f19c02fSvapier#
41627f19c02fSvapier# Check to make sure the static flag actually works.
41637f19c02fSvapier#
4164636a995dSmlcreechwl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
4165636a995dSmlcreech_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
4166636a995dSmlcreech  _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
41677f19c02fSvapier  $lt_tmp_static_flag,
41687f19c02fSvapier  [],
4169636a995dSmlcreech  [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
4170636a995dSmlcreech_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
4171636a995dSmlcreech	[Compiler flag to prevent dynamic linking])
4172636a995dSmlcreech])# _LT_COMPILER_PIC
41739bc8b93fSa.rottmann
41749bc8b93fSa.rottmann
4175636a995dSmlcreech# _LT_LINKER_SHLIBS([TAGNAME])
4176636a995dSmlcreech# ----------------------------
41779bc8b93fSa.rottmann# See if the linker supports building shared libraries.
4178636a995dSmlcreechm4_defun([_LT_LINKER_SHLIBS],
4179636a995dSmlcreech[AC_REQUIRE([LT_PATH_LD])dnl
4180636a995dSmlcreechAC_REQUIRE([LT_PATH_NM])dnl
4181636a995dSmlcreechm4_require([_LT_FILEUTILS_DEFAULTS])dnl
4182636a995dSmlcreechm4_require([_LT_DECL_EGREP])dnl
4183636a995dSmlcreechm4_require([_LT_DECL_SED])dnl
4184636a995dSmlcreechm4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
4185636a995dSmlcreechm4_require([_LT_TAG_COMPILER])dnl
4186636a995dSmlcreechAC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
4187636a995dSmlcreechm4_if([$1], [CXX], [
4188636a995dSmlcreech  _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
41899bc8b93fSa.rottmann  case $host_os in
4190636a995dSmlcreech  aix[[4-9]]*)
41919bc8b93fSa.rottmann    # If we're using GNU nm, then we don't want the "-C" option.
41929bc8b93fSa.rottmann    # -C means demangle to AIX nm, but means don't demangle with GNU nm
4193636a995dSmlcreech    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
4194636a995dSmlcreech      _LT_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'
41959bc8b93fSa.rottmann    else
4196636a995dSmlcreech      _LT_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'
41979bc8b93fSa.rottmann    fi
41989bc8b93fSa.rottmann    ;;
41999bc8b93fSa.rottmann  pw32*)
4200636a995dSmlcreech    _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
42019bc8b93fSa.rottmann  ;;
4202*6acb2cf6Svapier  cygwin* | mingw* | cegcc*)
4203636a995dSmlcreech    _LT_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'
42049bc8b93fSa.rottmann  ;;
42059bc8b93fSa.rottmann  *)
4206636a995dSmlcreech    _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
42079bc8b93fSa.rottmann  ;;
42089bc8b93fSa.rottmann  esac
4209636a995dSmlcreech  _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
42109bc8b93fSa.rottmann], [
42119bc8b93fSa.rottmann  runpath_var=
4212636a995dSmlcreech  _LT_TAGVAR(allow_undefined_flag, $1)=
4213636a995dSmlcreech  _LT_TAGVAR(always_export_symbols, $1)=no
4214636a995dSmlcreech  _LT_TAGVAR(archive_cmds, $1)=
4215636a995dSmlcreech  _LT_TAGVAR(archive_expsym_cmds, $1)=
4216636a995dSmlcreech  _LT_TAGVAR(compiler_needs_object, $1)=no
4217636a995dSmlcreech  _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
4218636a995dSmlcreech  _LT_TAGVAR(export_dynamic_flag_spec, $1)=
4219636a995dSmlcreech  _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4220636a995dSmlcreech  _LT_TAGVAR(hardcode_automatic, $1)=no
4221636a995dSmlcreech  _LT_TAGVAR(hardcode_direct, $1)=no
4222636a995dSmlcreech  _LT_TAGVAR(hardcode_direct_absolute, $1)=no
4223636a995dSmlcreech  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
4224636a995dSmlcreech  _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
4225636a995dSmlcreech  _LT_TAGVAR(hardcode_libdir_separator, $1)=
4226636a995dSmlcreech  _LT_TAGVAR(hardcode_minus_L, $1)=no
4227636a995dSmlcreech  _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
4228636a995dSmlcreech  _LT_TAGVAR(inherit_rpath, $1)=no
4229636a995dSmlcreech  _LT_TAGVAR(link_all_deplibs, $1)=unknown
4230636a995dSmlcreech  _LT_TAGVAR(module_cmds, $1)=
4231636a995dSmlcreech  _LT_TAGVAR(module_expsym_cmds, $1)=
4232636a995dSmlcreech  _LT_TAGVAR(old_archive_from_new_cmds, $1)=
4233636a995dSmlcreech  _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
4234636a995dSmlcreech  _LT_TAGVAR(thread_safe_flag_spec, $1)=
4235636a995dSmlcreech  _LT_TAGVAR(whole_archive_flag_spec, $1)=
42369bc8b93fSa.rottmann  # include_expsyms should be a list of space-separated symbols to be *always*
42379bc8b93fSa.rottmann  # included in the symbol list
4238636a995dSmlcreech  _LT_TAGVAR(include_expsyms, $1)=
42399bc8b93fSa.rottmann  # exclude_expsyms can be an extended regexp of symbols to exclude
42409bc8b93fSa.rottmann  # it will be wrapped by ` (' and `)$', so one must not match beginning or
42419bc8b93fSa.rottmann  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
42429bc8b93fSa.rottmann  # as well as any symbol that contains `d'.
4243636a995dSmlcreech  _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
42449bc8b93fSa.rottmann  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
42459bc8b93fSa.rottmann  # platforms (ab)use it in PIC code, but their linkers get confused if
42469bc8b93fSa.rottmann  # the symbol is explicitly referenced.  Since portable code cannot
42479bc8b93fSa.rottmann  # rely on this symbol name, it's probably fine to never include it in
42489bc8b93fSa.rottmann  # preloaded symbol tables.
4249636a995dSmlcreech  # Exclude shared library initialization/finalization symbols.
4250636a995dSmlcreechdnl Note also adjust exclude_expsyms for C++ above.
42519bc8b93fSa.rottmann  extract_expsyms_cmds=
4252636a995dSmlcreech
42539bc8b93fSa.rottmann  case $host_os in
4254*6acb2cf6Svapier  cygwin* | mingw* | pw32* | cegcc*)
42559bc8b93fSa.rottmann    # FIXME: the MSVC++ port hasn't been tested in a loooong time
42569bc8b93fSa.rottmann    # When not using gcc, we currently assume that we are using
42579bc8b93fSa.rottmann    # Microsoft Visual C++.
42589bc8b93fSa.rottmann    if test "$GCC" != yes; then
42599bc8b93fSa.rottmann      with_gnu_ld=no
42609bc8b93fSa.rottmann    fi
42619bc8b93fSa.rottmann    ;;
42627f19c02fSvapier  interix*)
42637f19c02fSvapier    # we just hope/assume this is gcc and not c89 (= MSVC++)
42647f19c02fSvapier    with_gnu_ld=yes
42657f19c02fSvapier    ;;
42669bc8b93fSa.rottmann  openbsd*)
42679bc8b93fSa.rottmann    with_gnu_ld=no
42689bc8b93fSa.rottmann    ;;
42699bc8b93fSa.rottmann  esac
42709bc8b93fSa.rottmann
4271636a995dSmlcreech  _LT_TAGVAR(ld_shlibs, $1)=yes
42729bc8b93fSa.rottmann  if test "$with_gnu_ld" = yes; then
42739bc8b93fSa.rottmann    # If archive_cmds runs LD, not CC, wlarc should be empty
42749bc8b93fSa.rottmann    wlarc='${wl}'
42759bc8b93fSa.rottmann
42767f19c02fSvapier    # Set some defaults for GNU ld with shared library support. These
42777f19c02fSvapier    # are reset later if shared libraries are not supported. Putting them
42787f19c02fSvapier    # here allows them to be overridden if necessary.
42797f19c02fSvapier    runpath_var=LD_RUN_PATH
4280636a995dSmlcreech    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4281636a995dSmlcreech    _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
42827f19c02fSvapier    # ancient GNU ld didn't support --whole-archive et. al.
4283636a995dSmlcreech    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
4284636a995dSmlcreech      _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
42857f19c02fSvapier    else
4286636a995dSmlcreech      _LT_TAGVAR(whole_archive_flag_spec, $1)=
42877f19c02fSvapier    fi
42887f19c02fSvapier    supports_anon_versioning=no
4289636a995dSmlcreech    case `$LD -v 2>&1` in
42907f19c02fSvapier      *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
42917f19c02fSvapier      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
42927f19c02fSvapier      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
42937f19c02fSvapier      *\ 2.11.*) ;; # other 2.11 versions
42947f19c02fSvapier      *) supports_anon_versioning=yes ;;
42957f19c02fSvapier    esac
42967f19c02fSvapier
42979bc8b93fSa.rottmann    # See if GNU ld supports shared libraries.
42989bc8b93fSa.rottmann    case $host_os in
4299636a995dSmlcreech    aix[[3-9]]*)
43009bc8b93fSa.rottmann      # On AIX/PPC, the GNU linker is very broken
43019bc8b93fSa.rottmann      if test "$host_cpu" != ia64; then
4302636a995dSmlcreech	_LT_TAGVAR(ld_shlibs, $1)=no
4303636a995dSmlcreech	cat <<_LT_EOF 1>&2
43049bc8b93fSa.rottmann
43059bc8b93fSa.rottmann*** Warning: the GNU linker, at least up to release 2.9.1, is reported
43069bc8b93fSa.rottmann*** to be unable to reliably create shared libraries on AIX.
43079bc8b93fSa.rottmann*** Therefore, libtool is disabling shared libraries support.  If you
43089bc8b93fSa.rottmann*** really care for shared libraries, you may want to modify your PATH
43099bc8b93fSa.rottmann*** so that a non-GNU linker is found, and then restart.
43109bc8b93fSa.rottmann
4311636a995dSmlcreech_LT_EOF
43129bc8b93fSa.rottmann      fi
43139bc8b93fSa.rottmann      ;;
43149bc8b93fSa.rottmann
43159bc8b93fSa.rottmann    amigaos*)
4316636a995dSmlcreech      case $host_cpu in
4317636a995dSmlcreech      powerpc)
4318636a995dSmlcreech            # see comment about AmigaOS4 .so support
4319636a995dSmlcreech            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4320636a995dSmlcreech            _LT_TAGVAR(archive_expsym_cmds, $1)=''
4321636a995dSmlcreech        ;;
4322636a995dSmlcreech      m68k)
4323636a995dSmlcreech            _LT_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)'
4324636a995dSmlcreech            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4325636a995dSmlcreech            _LT_TAGVAR(hardcode_minus_L, $1)=yes
4326636a995dSmlcreech        ;;
4327636a995dSmlcreech      esac
43289bc8b93fSa.rottmann      ;;
43299bc8b93fSa.rottmann
43309bc8b93fSa.rottmann    beos*)
4331636a995dSmlcreech      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4332636a995dSmlcreech	_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
43339bc8b93fSa.rottmann	# Joseph Beckenbach <[email protected]> says some releases of gcc
43349bc8b93fSa.rottmann	# support --undefined.  This deserves some investigation.  FIXME
4335636a995dSmlcreech	_LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
43369bc8b93fSa.rottmann      else
4337636a995dSmlcreech	_LT_TAGVAR(ld_shlibs, $1)=no
43389bc8b93fSa.rottmann      fi
43399bc8b93fSa.rottmann      ;;
43409bc8b93fSa.rottmann
4341*6acb2cf6Svapier    cygwin* | mingw* | pw32* | cegcc*)
4342636a995dSmlcreech      # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
43439bc8b93fSa.rottmann      # as there is no search path for DLLs.
4344636a995dSmlcreech      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4345636a995dSmlcreech      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4346636a995dSmlcreech      _LT_TAGVAR(always_export_symbols, $1)=no
4347636a995dSmlcreech      _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
4348636a995dSmlcreech      _LT_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'
43499bc8b93fSa.rottmann
4350636a995dSmlcreech      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
4351636a995dSmlcreech        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
43529bc8b93fSa.rottmann	# If the export-symbols file already is a .def file (1st line
43539bc8b93fSa.rottmann	# is EXPORTS), use it as is; otherwise, prepend...
4354636a995dSmlcreech	_LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
43559bc8b93fSa.rottmann	  cp $export_symbols $output_objdir/$soname.def;
43569bc8b93fSa.rottmann	else
43579bc8b93fSa.rottmann	  echo EXPORTS > $output_objdir/$soname.def;
43589bc8b93fSa.rottmann	  cat $export_symbols >> $output_objdir/$soname.def;
43599bc8b93fSa.rottmann	fi~
43607f19c02fSvapier	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
43619bc8b93fSa.rottmann      else
4362636a995dSmlcreech	_LT_TAGVAR(ld_shlibs, $1)=no
43639bc8b93fSa.rottmann      fi
43649bc8b93fSa.rottmann      ;;
43659bc8b93fSa.rottmann
4366636a995dSmlcreech    interix[[3-9]]*)
4367636a995dSmlcreech      _LT_TAGVAR(hardcode_direct, $1)=no
4368636a995dSmlcreech      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4369636a995dSmlcreech      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4370636a995dSmlcreech      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
43717f19c02fSvapier      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
43727f19c02fSvapier      # Instead, shared libraries are loaded at an image base (0x10000000 by
43737f19c02fSvapier      # default) and relocated if they conflict, which is a slow very memory
43747f19c02fSvapier      # consuming and fragmenting process.  To avoid this, we pick a random,
43757f19c02fSvapier      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
43767f19c02fSvapier      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
4377636a995dSmlcreech      _LT_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'
4378636a995dSmlcreech      _LT_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'
43797f19c02fSvapier      ;;
43807f19c02fSvapier
4381636a995dSmlcreech    gnu* | linux* | tpf* | k*bsd*-gnu)
4382636a995dSmlcreech      tmp_diet=no
4383636a995dSmlcreech      if test "$host_os" = linux-dietlibc; then
4384636a995dSmlcreech	case $cc_basename in
4385636a995dSmlcreech	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
4386636a995dSmlcreech	esac
4387636a995dSmlcreech      fi
4388636a995dSmlcreech      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
4389636a995dSmlcreech	 && test "$tmp_diet" = no
4390636a995dSmlcreech      then
43917f19c02fSvapier	tmp_addflag=
4392636a995dSmlcreech	tmp_sharedflag='-shared'
43937f19c02fSvapier	case $cc_basename,$host_cpu in
43947f19c02fSvapier        pgcc*)				# Portland Group C compiler
4395636a995dSmlcreech	  _LT_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'
43967f19c02fSvapier	  tmp_addflag=' $pic_flag'
43977f19c02fSvapier	  ;;
43987f19c02fSvapier	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
4399636a995dSmlcreech	  _LT_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'
44007f19c02fSvapier	  tmp_addflag=' $pic_flag -Mnomain' ;;
44017f19c02fSvapier	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
44027f19c02fSvapier	  tmp_addflag=' -i_dynamic' ;;
44037f19c02fSvapier	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
44047f19c02fSvapier	  tmp_addflag=' -i_dynamic -nofor_main' ;;
44057f19c02fSvapier	ifc* | ifort*)			# Intel Fortran compiler
44067f19c02fSvapier	  tmp_addflag=' -nofor_main' ;;
4407*6acb2cf6Svapier	lf95*)				# Lahey Fortran 8.1
4408*6acb2cf6Svapier	  _LT_TAGVAR(whole_archive_flag_spec, $1)=
4409*6acb2cf6Svapier	  tmp_sharedflag='--shared' ;;
4410636a995dSmlcreech	xl[[cC]]*)			# IBM XL C 8.0 on PPC (deal with xlf below)
4411636a995dSmlcreech	  tmp_sharedflag='-qmkshrobj'
4412636a995dSmlcreech	  tmp_addflag= ;;
44137f19c02fSvapier	esac
4414636a995dSmlcreech	case `$CC -V 2>&1 | sed 5q` in
4415636a995dSmlcreech	*Sun\ C*)			# Sun C 5.9
4416636a995dSmlcreech	  _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
4417636a995dSmlcreech	  _LT_TAGVAR(compiler_needs_object, $1)=yes
4418636a995dSmlcreech	  tmp_sharedflag='-G' ;;
4419636a995dSmlcreech	*Sun\ F*)			# Sun Fortran 8.3
4420636a995dSmlcreech	  tmp_sharedflag='-G' ;;
4421636a995dSmlcreech	esac
4422636a995dSmlcreech	_LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
44237f19c02fSvapier
4424636a995dSmlcreech        if test "x$supports_anon_versioning" = xyes; then
4425636a995dSmlcreech          _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
44267f19c02fSvapier	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
4427636a995dSmlcreech	    echo "local: *; };" >> $output_objdir/$libname.ver~
4428636a995dSmlcreech	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
44297f19c02fSvapier        fi
4430636a995dSmlcreech
4431636a995dSmlcreech	case $cc_basename in
4432636a995dSmlcreech	xlf*)
4433636a995dSmlcreech	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
4434636a995dSmlcreech	  _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
4435636a995dSmlcreech	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
4436636a995dSmlcreech	  _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
4437636a995dSmlcreech	  _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
4438636a995dSmlcreech	  if test "x$supports_anon_versioning" = xyes; then
4439636a995dSmlcreech	    _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
4440636a995dSmlcreech	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
4441636a995dSmlcreech	      echo "local: *; };" >> $output_objdir/$libname.ver~
4442636a995dSmlcreech	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
4443636a995dSmlcreech	  fi
4444636a995dSmlcreech	  ;;
4445636a995dSmlcreech	esac
44467f19c02fSvapier      else
4447636a995dSmlcreech        _LT_TAGVAR(ld_shlibs, $1)=no
44487f19c02fSvapier      fi
44497f19c02fSvapier      ;;
44507f19c02fSvapier
44517f19c02fSvapier    netbsd*)
4452636a995dSmlcreech      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
4453636a995dSmlcreech	_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
44549bc8b93fSa.rottmann	wlarc=
44559bc8b93fSa.rottmann      else
4456636a995dSmlcreech	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4457636a995dSmlcreech	_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
44589bc8b93fSa.rottmann      fi
44599bc8b93fSa.rottmann      ;;
44609bc8b93fSa.rottmann
44617f19c02fSvapier    solaris*)
4462636a995dSmlcreech      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
4463636a995dSmlcreech	_LT_TAGVAR(ld_shlibs, $1)=no
4464636a995dSmlcreech	cat <<_LT_EOF 1>&2
44659bc8b93fSa.rottmann
44669bc8b93fSa.rottmann*** Warning: The releases 2.8.* of the GNU linker cannot reliably
44679bc8b93fSa.rottmann*** create shared libraries on Solaris systems.  Therefore, libtool
44689bc8b93fSa.rottmann*** is disabling shared libraries support.  We urge you to upgrade GNU
44699bc8b93fSa.rottmann*** binutils to release 2.9.1 or newer.  Another option is to modify
44709bc8b93fSa.rottmann*** your PATH or compiler configuration so that the native linker is
44719bc8b93fSa.rottmann*** used, and then restart.
44729bc8b93fSa.rottmann
4473636a995dSmlcreech_LT_EOF
4474636a995dSmlcreech      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4475636a995dSmlcreech	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4476636a995dSmlcreech	_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
44779bc8b93fSa.rottmann      else
4478636a995dSmlcreech	_LT_TAGVAR(ld_shlibs, $1)=no
44799bc8b93fSa.rottmann      fi
44809bc8b93fSa.rottmann      ;;
44819bc8b93fSa.rottmann
44827f19c02fSvapier    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
44837f19c02fSvapier      case `$LD -v 2>&1` in
44847f19c02fSvapier        *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
4485636a995dSmlcreech	_LT_TAGVAR(ld_shlibs, $1)=no
44867f19c02fSvapier	cat <<_LT_EOF 1>&2
44877f19c02fSvapier
44887f19c02fSvapier*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
44897f19c02fSvapier*** reliably create shared libraries on SCO systems.  Therefore, libtool
44907f19c02fSvapier*** is disabling shared libraries support.  We urge you to upgrade GNU
44917f19c02fSvapier*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
44927f19c02fSvapier*** your PATH or compiler configuration so that the native linker is
44937f19c02fSvapier*** used, and then restart.
44947f19c02fSvapier
44957f19c02fSvapier_LT_EOF
44967f19c02fSvapier	;;
44977f19c02fSvapier	*)
4498636a995dSmlcreech	  # For security reasons, it is highly recommended that you always
4499636a995dSmlcreech	  # use absolute paths for naming shared libraries, and exclude the
4500636a995dSmlcreech	  # DT_RUNPATH tag from executables and libraries.  But doing so
4501636a995dSmlcreech	  # requires that you compile everything twice, which is a pain.
4502636a995dSmlcreech	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4503636a995dSmlcreech	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4504636a995dSmlcreech	    _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4505636a995dSmlcreech	    _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
45067f19c02fSvapier	  else
4507636a995dSmlcreech	    _LT_TAGVAR(ld_shlibs, $1)=no
45087f19c02fSvapier	  fi
45097f19c02fSvapier	;;
45107f19c02fSvapier      esac
45117f19c02fSvapier      ;;
45127f19c02fSvapier
45139bc8b93fSa.rottmann    sunos4*)
4514636a995dSmlcreech      _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
45159bc8b93fSa.rottmann      wlarc=
4516636a995dSmlcreech      _LT_TAGVAR(hardcode_direct, $1)=yes
4517636a995dSmlcreech      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
45189bc8b93fSa.rottmann      ;;
45199bc8b93fSa.rottmann
45209bc8b93fSa.rottmann    *)
4521636a995dSmlcreech      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4522636a995dSmlcreech	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4523636a995dSmlcreech	_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
45249bc8b93fSa.rottmann      else
4525636a995dSmlcreech	_LT_TAGVAR(ld_shlibs, $1)=no
45269bc8b93fSa.rottmann      fi
45279bc8b93fSa.rottmann      ;;
45289bc8b93fSa.rottmann    esac
45299bc8b93fSa.rottmann
4530636a995dSmlcreech    if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
45317f19c02fSvapier      runpath_var=
4532636a995dSmlcreech      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
4533636a995dSmlcreech      _LT_TAGVAR(export_dynamic_flag_spec, $1)=
4534636a995dSmlcreech      _LT_TAGVAR(whole_archive_flag_spec, $1)=
45359bc8b93fSa.rottmann    fi
45369bc8b93fSa.rottmann  else
45379bc8b93fSa.rottmann    # PORTME fill in a description of your system's linker (not GNU ld)
45389bc8b93fSa.rottmann    case $host_os in
45399bc8b93fSa.rottmann    aix3*)
4540636a995dSmlcreech      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4541636a995dSmlcreech      _LT_TAGVAR(always_export_symbols, $1)=yes
4542636a995dSmlcreech      _LT_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'
45439bc8b93fSa.rottmann      # Note: this linker hardcodes the directories in LIBPATH if there
45449bc8b93fSa.rottmann      # are no directories specified by -L.
4545636a995dSmlcreech      _LT_TAGVAR(hardcode_minus_L, $1)=yes
45467f19c02fSvapier      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
45479bc8b93fSa.rottmann	# Neither direct hardcoding nor static linking is supported with a
45489bc8b93fSa.rottmann	# broken collect2.
4549636a995dSmlcreech	_LT_TAGVAR(hardcode_direct, $1)=unsupported
45509bc8b93fSa.rottmann      fi
45519bc8b93fSa.rottmann      ;;
45529bc8b93fSa.rottmann
4553636a995dSmlcreech    aix[[4-9]]*)
45549bc8b93fSa.rottmann      if test "$host_cpu" = ia64; then
45559bc8b93fSa.rottmann	# On IA64, the linker does run time linking by default, so we don't
45569bc8b93fSa.rottmann	# have to do anything special.
45579bc8b93fSa.rottmann	aix_use_runtimelinking=no
45589bc8b93fSa.rottmann	exp_sym_flag='-Bexport'
45599bc8b93fSa.rottmann	no_entry_flag=""
45609bc8b93fSa.rottmann      else
45619bc8b93fSa.rottmann	# If we're using GNU nm, then we don't want the "-C" option.
45629bc8b93fSa.rottmann	# -C means demangle to AIX nm, but means don't demangle with GNU nm
4563636a995dSmlcreech	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
4564636a995dSmlcreech	  _LT_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'
45659bc8b93fSa.rottmann	else
4566636a995dSmlcreech	  _LT_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'
45679bc8b93fSa.rottmann	fi
45689bc8b93fSa.rottmann	aix_use_runtimelinking=no
45699bc8b93fSa.rottmann
45709bc8b93fSa.rottmann	# Test if we are trying to use run time linking or normal
45719bc8b93fSa.rottmann	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
45729bc8b93fSa.rottmann	# need to do runtime linking.
4573636a995dSmlcreech	case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
45749bc8b93fSa.rottmann	  for ld_flag in $LDFLAGS; do
45759bc8b93fSa.rottmann	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
45769bc8b93fSa.rottmann	    aix_use_runtimelinking=yes
45779bc8b93fSa.rottmann	    break
45789bc8b93fSa.rottmann	  fi
45799bc8b93fSa.rottmann	  done
45807f19c02fSvapier	  ;;
45819bc8b93fSa.rottmann	esac
45829bc8b93fSa.rottmann
45839bc8b93fSa.rottmann	exp_sym_flag='-bexport'
45849bc8b93fSa.rottmann	no_entry_flag='-bnoentry'
45859bc8b93fSa.rottmann      fi
45869bc8b93fSa.rottmann
45879bc8b93fSa.rottmann      # When large executables or shared objects are built, AIX ld can
45889bc8b93fSa.rottmann      # have problems creating the table of contents.  If linking a library
45899bc8b93fSa.rottmann      # or program results in "error TOC overflow" add -mminimal-toc to
45909bc8b93fSa.rottmann      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
45919bc8b93fSa.rottmann      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
45929bc8b93fSa.rottmann
4593636a995dSmlcreech      _LT_TAGVAR(archive_cmds, $1)=''
4594636a995dSmlcreech      _LT_TAGVAR(hardcode_direct, $1)=yes
4595636a995dSmlcreech      _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
4596636a995dSmlcreech      _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
4597636a995dSmlcreech      _LT_TAGVAR(link_all_deplibs, $1)=yes
4598636a995dSmlcreech      _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
45999bc8b93fSa.rottmann
46009bc8b93fSa.rottmann      if test "$GCC" = yes; then
46017f19c02fSvapier	case $host_os in aix4.[[012]]|aix4.[[012]].*)
46029bc8b93fSa.rottmann	# We only want to do this on AIX 4.2 and lower, the check
46039bc8b93fSa.rottmann	# below for broken collect2 doesn't work under 4.3+
46049bc8b93fSa.rottmann	  collect2name=`${CC} -print-prog-name=collect2`
4605636a995dSmlcreech	  if test -f "$collect2name" &&
4606636a995dSmlcreech	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
46079bc8b93fSa.rottmann	  then
46089bc8b93fSa.rottmann	  # We have reworked collect2
4609636a995dSmlcreech	  :
46109bc8b93fSa.rottmann	  else
46119bc8b93fSa.rottmann	  # We have old collect2
4612636a995dSmlcreech	  _LT_TAGVAR(hardcode_direct, $1)=unsupported
46139bc8b93fSa.rottmann	  # It fails to find uninstalled libraries when the uninstalled
46149bc8b93fSa.rottmann	  # path is not listed in the libpath.  Setting hardcode_minus_L
46159bc8b93fSa.rottmann	  # to unsupported forces relinking
4616636a995dSmlcreech	  _LT_TAGVAR(hardcode_minus_L, $1)=yes
4617636a995dSmlcreech	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4618636a995dSmlcreech	  _LT_TAGVAR(hardcode_libdir_separator, $1)=
46199bc8b93fSa.rottmann	  fi
46207f19c02fSvapier	  ;;
46219bc8b93fSa.rottmann	esac
46229bc8b93fSa.rottmann	shared_flag='-shared'
46237f19c02fSvapier	if test "$aix_use_runtimelinking" = yes; then
46247f19c02fSvapier	  shared_flag="$shared_flag "'${wl}-G'
46257f19c02fSvapier	fi
46269bc8b93fSa.rottmann      else
46279bc8b93fSa.rottmann	# not using gcc
46289bc8b93fSa.rottmann	if test "$host_cpu" = ia64; then
46299bc8b93fSa.rottmann	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
46309bc8b93fSa.rottmann	# chokes on -Wl,-G. The following line is correct:
46319bc8b93fSa.rottmann	  shared_flag='-G'
46329bc8b93fSa.rottmann	else
46339bc8b93fSa.rottmann	  if test "$aix_use_runtimelinking" = yes; then
46349bc8b93fSa.rottmann	    shared_flag='${wl}-G'
46359bc8b93fSa.rottmann	  else
46369bc8b93fSa.rottmann	    shared_flag='${wl}-bM:SRE'
46379bc8b93fSa.rottmann	  fi
46389bc8b93fSa.rottmann	fi
46399bc8b93fSa.rottmann      fi
46409bc8b93fSa.rottmann
4641*6acb2cf6Svapier      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
46429bc8b93fSa.rottmann      # It seems that -bexpall does not export symbols beginning with
46439bc8b93fSa.rottmann      # underscore (_), so it is better to generate a list of symbols to export.
4644636a995dSmlcreech      _LT_TAGVAR(always_export_symbols, $1)=yes
46459bc8b93fSa.rottmann      if test "$aix_use_runtimelinking" = yes; then
46469bc8b93fSa.rottmann	# Warning - without using the other runtime loading flags (-brtl),
46479bc8b93fSa.rottmann	# -berok will link without error, but may produce a broken library.
4648636a995dSmlcreech	_LT_TAGVAR(allow_undefined_flag, $1)='-berok'
4649636a995dSmlcreech        # Determine the default libpath from the value encoded in an
4650636a995dSmlcreech        # empty executable.
4651636a995dSmlcreech        _LT_SYS_MODULE_PATH_AIX
4652636a995dSmlcreech        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
4653636a995dSmlcreech        _LT_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 "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
46549bc8b93fSa.rottmann      else
46559bc8b93fSa.rottmann	if test "$host_cpu" = ia64; then
4656636a995dSmlcreech	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
4657636a995dSmlcreech	  _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
4658636a995dSmlcreech	  _LT_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"
46599bc8b93fSa.rottmann	else
4660636a995dSmlcreech	 # Determine the default libpath from the value encoded in an
4661636a995dSmlcreech	 # empty executable.
4662636a995dSmlcreech	 _LT_SYS_MODULE_PATH_AIX
4663636a995dSmlcreech	 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
46649bc8b93fSa.rottmann	  # Warning - without using the other run time loading flags,
46659bc8b93fSa.rottmann	  # -berok will link without error, but may produce a broken library.
4666636a995dSmlcreech	  _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
4667636a995dSmlcreech	  _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
46689bc8b93fSa.rottmann	  # Exported symbols can be pulled into shared objects from archives
4669636a995dSmlcreech	  _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
4670636a995dSmlcreech	  _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
46717f19c02fSvapier	  # This is similar to how AIX traditionally builds its shared libraries.
4672636a995dSmlcreech	  _LT_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'
46739bc8b93fSa.rottmann	fi
46749bc8b93fSa.rottmann      fi
46759bc8b93fSa.rottmann      ;;
46769bc8b93fSa.rottmann
46779bc8b93fSa.rottmann    amigaos*)
4678636a995dSmlcreech      case $host_cpu in
4679636a995dSmlcreech      powerpc)
4680636a995dSmlcreech            # see comment about AmigaOS4 .so support
4681636a995dSmlcreech            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4682636a995dSmlcreech            _LT_TAGVAR(archive_expsym_cmds, $1)=''
4683636a995dSmlcreech        ;;
4684636a995dSmlcreech      m68k)
4685636a995dSmlcreech            _LT_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)'
4686636a995dSmlcreech            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4687636a995dSmlcreech            _LT_TAGVAR(hardcode_minus_L, $1)=yes
4688636a995dSmlcreech        ;;
4689636a995dSmlcreech      esac
46909bc8b93fSa.rottmann      ;;
46919bc8b93fSa.rottmann
46927f19c02fSvapier    bsdi[[45]]*)
4693636a995dSmlcreech      _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
46949bc8b93fSa.rottmann      ;;
46959bc8b93fSa.rottmann
4696*6acb2cf6Svapier    cygwin* | mingw* | pw32* | cegcc*)
46979bc8b93fSa.rottmann      # When not using gcc, we currently assume that we are using
46989bc8b93fSa.rottmann      # Microsoft Visual C++.
46999bc8b93fSa.rottmann      # hardcode_libdir_flag_spec is actually meaningless, as there is
47009bc8b93fSa.rottmann      # no search path for DLLs.
4701636a995dSmlcreech      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
4702636a995dSmlcreech      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
47039bc8b93fSa.rottmann      # Tell ltmain to make .lib files, not .a files.
47049bc8b93fSa.rottmann      libext=lib
47059bc8b93fSa.rottmann      # Tell ltmain to make .dll files, not .so files.
47067f19c02fSvapier      shrext_cmds=".dll"
47079bc8b93fSa.rottmann      # FIXME: Setting linknames here is a bad hack.
4708636a995dSmlcreech      _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
47099bc8b93fSa.rottmann      # The linker will automatically build a .lib file if we build a DLL.
4710636a995dSmlcreech      _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
47119bc8b93fSa.rottmann      # FIXME: Should let the user specify the lib program.
4712636a995dSmlcreech      _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
4713636a995dSmlcreech      _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
4714636a995dSmlcreech      _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
47159bc8b93fSa.rottmann      ;;
47169bc8b93fSa.rottmann
47179bc8b93fSa.rottmann    darwin* | rhapsody*)
4718636a995dSmlcreech      _LT_DARWIN_LINKER_FEATURES($1)
47199bc8b93fSa.rottmann      ;;
47209bc8b93fSa.rottmann
47219bc8b93fSa.rottmann    dgux*)
4722636a995dSmlcreech      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4723636a995dSmlcreech      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4724636a995dSmlcreech      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
47259bc8b93fSa.rottmann      ;;
47269bc8b93fSa.rottmann
47279bc8b93fSa.rottmann    freebsd1*)
4728636a995dSmlcreech      _LT_TAGVAR(ld_shlibs, $1)=no
47299bc8b93fSa.rottmann      ;;
47309bc8b93fSa.rottmann
47319bc8b93fSa.rottmann    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
47329bc8b93fSa.rottmann    # support.  Future versions do this automatically, but an explicit c++rt0.o
47339bc8b93fSa.rottmann    # does not break anything, and helps significantly (at the cost of a little
47349bc8b93fSa.rottmann    # extra space).
47359bc8b93fSa.rottmann    freebsd2.2*)
4736636a995dSmlcreech      _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
4737636a995dSmlcreech      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4738636a995dSmlcreech      _LT_TAGVAR(hardcode_direct, $1)=yes
4739636a995dSmlcreech      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
47409bc8b93fSa.rottmann      ;;
47419bc8b93fSa.rottmann
47429bc8b93fSa.rottmann    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
47439bc8b93fSa.rottmann    freebsd2*)
4744636a995dSmlcreech      _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4745636a995dSmlcreech      _LT_TAGVAR(hardcode_direct, $1)=yes
4746636a995dSmlcreech      _LT_TAGVAR(hardcode_minus_L, $1)=yes
4747636a995dSmlcreech      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
47489bc8b93fSa.rottmann      ;;
47499bc8b93fSa.rottmann
47509bc8b93fSa.rottmann    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
4751636a995dSmlcreech    freebsd* | dragonfly*)
4752636a995dSmlcreech      _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
4753636a995dSmlcreech      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4754636a995dSmlcreech      _LT_TAGVAR(hardcode_direct, $1)=yes
4755636a995dSmlcreech      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
47569bc8b93fSa.rottmann      ;;
47579bc8b93fSa.rottmann
47589bc8b93fSa.rottmann    hpux9*)
47599bc8b93fSa.rottmann      if test "$GCC" = yes; then
4760636a995dSmlcreech	_LT_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'
47619bc8b93fSa.rottmann      else
4762636a995dSmlcreech	_LT_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'
47639bc8b93fSa.rottmann      fi
4764636a995dSmlcreech      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
4765636a995dSmlcreech      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
4766636a995dSmlcreech      _LT_TAGVAR(hardcode_direct, $1)=yes
47679bc8b93fSa.rottmann
47689bc8b93fSa.rottmann      # hardcode_minus_L: Not really in the search PATH,
47699bc8b93fSa.rottmann      # but as the default location of the library.
4770636a995dSmlcreech      _LT_TAGVAR(hardcode_minus_L, $1)=yes
4771636a995dSmlcreech      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
47729bc8b93fSa.rottmann      ;;
47739bc8b93fSa.rottmann
47747f19c02fSvapier    hpux10*)
47759bc8b93fSa.rottmann      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
4776636a995dSmlcreech	_LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
47777f19c02fSvapier      else
4778636a995dSmlcreech	_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
47797f19c02fSvapier      fi
47807f19c02fSvapier      if test "$with_gnu_ld" = no; then
4781636a995dSmlcreech	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
4782636a995dSmlcreech	_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
4783636a995dSmlcreech	_LT_TAGVAR(hardcode_libdir_separator, $1)=:
4784636a995dSmlcreech	_LT_TAGVAR(hardcode_direct, $1)=yes
4785636a995dSmlcreech	_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
4786636a995dSmlcreech	_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
47877f19c02fSvapier	# hardcode_minus_L: Not really in the search PATH,
47887f19c02fSvapier	# but as the default location of the library.
4789636a995dSmlcreech	_LT_TAGVAR(hardcode_minus_L, $1)=yes
47907f19c02fSvapier      fi
47917f19c02fSvapier      ;;
47927f19c02fSvapier
47937f19c02fSvapier    hpux11*)
47947f19c02fSvapier      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
47957f19c02fSvapier	case $host_cpu in
47967f19c02fSvapier	hppa*64*)
4797636a995dSmlcreech	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
47989bc8b93fSa.rottmann	  ;;
47997f19c02fSvapier	ia64*)
4800*6acb2cf6Svapier	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
48017f19c02fSvapier	  ;;
48029bc8b93fSa.rottmann	*)
4803636a995dSmlcreech	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
48049bc8b93fSa.rottmann	  ;;
48059bc8b93fSa.rottmann	esac
48069bc8b93fSa.rottmann      else
48077f19c02fSvapier	case $host_cpu in
48087f19c02fSvapier	hppa*64*)
4809636a995dSmlcreech	  _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
48107f19c02fSvapier	  ;;
48117f19c02fSvapier	ia64*)
4812636a995dSmlcreech	  _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
48139bc8b93fSa.rottmann	  ;;
48149bc8b93fSa.rottmann	*)
4815636a995dSmlcreech	  _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
48169bc8b93fSa.rottmann	  ;;
48179bc8b93fSa.rottmann	esac
48189bc8b93fSa.rottmann      fi
48199bc8b93fSa.rottmann      if test "$with_gnu_ld" = no; then
4820636a995dSmlcreech	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
4821636a995dSmlcreech	_LT_TAGVAR(hardcode_libdir_separator, $1)=:
48229bc8b93fSa.rottmann
48237f19c02fSvapier	case $host_cpu in
48247f19c02fSvapier	hppa*64*|ia64*)
4825636a995dSmlcreech	  _LT_TAGVAR(hardcode_direct, $1)=no
4826636a995dSmlcreech	  _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
48279bc8b93fSa.rottmann	  ;;
48289bc8b93fSa.rottmann	*)
4829636a995dSmlcreech	  _LT_TAGVAR(hardcode_direct, $1)=yes
4830636a995dSmlcreech	  _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
4831636a995dSmlcreech	  _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
48329bc8b93fSa.rottmann
48339bc8b93fSa.rottmann	  # hardcode_minus_L: Not really in the search PATH,
48349bc8b93fSa.rottmann	  # but as the default location of the library.
4835636a995dSmlcreech	  _LT_TAGVAR(hardcode_minus_L, $1)=yes
48369bc8b93fSa.rottmann	  ;;
48379bc8b93fSa.rottmann	esac
48389bc8b93fSa.rottmann      fi
48399bc8b93fSa.rottmann      ;;
48409bc8b93fSa.rottmann
48419bc8b93fSa.rottmann    irix5* | irix6* | nonstopux*)
48429bc8b93fSa.rottmann      if test "$GCC" = yes; then
4843636a995dSmlcreech	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4844636a995dSmlcreech	# Try to use the -exported_symbol ld option, if it does not
4845636a995dSmlcreech	# work, assume that -exports_file does not work either and
4846636a995dSmlcreech	# implicitly export all symbols.
4847636a995dSmlcreech        save_LDFLAGS="$LDFLAGS"
4848636a995dSmlcreech        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
4849636a995dSmlcreech        AC_LINK_IFELSE(int foo(void) {},
4850636a995dSmlcreech          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
4851636a995dSmlcreech        )
4852636a995dSmlcreech        LDFLAGS="$save_LDFLAGS"
48539bc8b93fSa.rottmann      else
4854636a995dSmlcreech	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
4855636a995dSmlcreech	_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
48569bc8b93fSa.rottmann      fi
4857636a995dSmlcreech      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
4858636a995dSmlcreech      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4859636a995dSmlcreech      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
4860636a995dSmlcreech      _LT_TAGVAR(inherit_rpath, $1)=yes
4861636a995dSmlcreech      _LT_TAGVAR(link_all_deplibs, $1)=yes
48629bc8b93fSa.rottmann      ;;
48639bc8b93fSa.rottmann
48647f19c02fSvapier    netbsd*)
4865636a995dSmlcreech      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
4866636a995dSmlcreech	_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
48679bc8b93fSa.rottmann      else
4868636a995dSmlcreech	_LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
48699bc8b93fSa.rottmann      fi
4870636a995dSmlcreech      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4871636a995dSmlcreech      _LT_TAGVAR(hardcode_direct, $1)=yes
4872636a995dSmlcreech      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
48739bc8b93fSa.rottmann      ;;
48749bc8b93fSa.rottmann
48759bc8b93fSa.rottmann    newsos6)
4876636a995dSmlcreech      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4877636a995dSmlcreech      _LT_TAGVAR(hardcode_direct, $1)=yes
4878636a995dSmlcreech      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4879636a995dSmlcreech      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
4880636a995dSmlcreech      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4881636a995dSmlcreech      ;;
4882636a995dSmlcreech
4883636a995dSmlcreech    *nto* | *qnx*)
48849bc8b93fSa.rottmann      ;;
48859bc8b93fSa.rottmann
48869bc8b93fSa.rottmann    openbsd*)
4887636a995dSmlcreech      if test -f /usr/libexec/ld.so; then
4888636a995dSmlcreech	_LT_TAGVAR(hardcode_direct, $1)=yes
4889636a995dSmlcreech	_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4890636a995dSmlcreech	_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
4891636a995dSmlcreech	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4892636a995dSmlcreech	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
4893636a995dSmlcreech	  _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
4894636a995dSmlcreech	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4895636a995dSmlcreech	  _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
48969bc8b93fSa.rottmann	else
48979bc8b93fSa.rottmann	  case $host_os in
48989bc8b93fSa.rottmann	   openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
4899636a995dSmlcreech	     _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4900636a995dSmlcreech	     _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
49019bc8b93fSa.rottmann	     ;;
49029bc8b93fSa.rottmann	   *)
4903636a995dSmlcreech	     _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
4904636a995dSmlcreech	     _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
49059bc8b93fSa.rottmann	     ;;
49069bc8b93fSa.rottmann	  esac
49079bc8b93fSa.rottmann	fi
4908636a995dSmlcreech      else
4909636a995dSmlcreech	_LT_TAGVAR(ld_shlibs, $1)=no
4910636a995dSmlcreech      fi
49119bc8b93fSa.rottmann      ;;
49129bc8b93fSa.rottmann
49139bc8b93fSa.rottmann    os2*)
4914636a995dSmlcreech      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4915636a995dSmlcreech      _LT_TAGVAR(hardcode_minus_L, $1)=yes
4916636a995dSmlcreech      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4917636a995dSmlcreech      _LT_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'
4918636a995dSmlcreech      _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
49199bc8b93fSa.rottmann      ;;
49209bc8b93fSa.rottmann
49219bc8b93fSa.rottmann    osf3*)
49229bc8b93fSa.rottmann      if test "$GCC" = yes; then
4923636a995dSmlcreech	_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4924636a995dSmlcreech	_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
49259bc8b93fSa.rottmann      else
4926636a995dSmlcreech	_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
4927636a995dSmlcreech	_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
49289bc8b93fSa.rottmann      fi
4929636a995dSmlcreech      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
4930636a995dSmlcreech      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4931636a995dSmlcreech      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
49329bc8b93fSa.rottmann      ;;
49339bc8b93fSa.rottmann
49349bc8b93fSa.rottmann    osf4* | osf5*)	# as osf3* with the addition of -msym flag
49359bc8b93fSa.rottmann      if test "$GCC" = yes; then
4936636a995dSmlcreech	_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4937636a995dSmlcreech	_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4938636a995dSmlcreech	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
49399bc8b93fSa.rottmann      else
4940636a995dSmlcreech	_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
4941636a995dSmlcreech	_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
4942636a995dSmlcreech	_LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
4943636a995dSmlcreech	$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
49449bc8b93fSa.rottmann
49459bc8b93fSa.rottmann	# Both c and cxx compiler support -rpath directly
4946636a995dSmlcreech	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
49479bc8b93fSa.rottmann      fi
4948636a995dSmlcreech      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
4949636a995dSmlcreech      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
49509bc8b93fSa.rottmann      ;;
49519bc8b93fSa.rottmann
49529bc8b93fSa.rottmann    solaris*)
4953636a995dSmlcreech      _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
49549bc8b93fSa.rottmann      if test "$GCC" = yes; then
49557f19c02fSvapier	wlarc='${wl}'
4956636a995dSmlcreech	_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
4957636a995dSmlcreech	_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
4958636a995dSmlcreech	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
49599bc8b93fSa.rottmann      else
4960636a995dSmlcreech	case `$CC -V 2>&1` in
4961636a995dSmlcreech	*"Compilers 5.0"*)
49627f19c02fSvapier	  wlarc=''
4963636a995dSmlcreech	  _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
4964636a995dSmlcreech	  _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
4965636a995dSmlcreech	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
4966636a995dSmlcreech	  ;;
4967636a995dSmlcreech	*)
4968636a995dSmlcreech	  wlarc='${wl}'
4969636a995dSmlcreech	  _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
4970636a995dSmlcreech	  _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
4971636a995dSmlcreech	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
4972636a995dSmlcreech	  ;;
4973636a995dSmlcreech	esac
49749bc8b93fSa.rottmann      fi
4975636a995dSmlcreech      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4976636a995dSmlcreech      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
49779bc8b93fSa.rottmann      case $host_os in
49789bc8b93fSa.rottmann      solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
49797f19c02fSvapier      *)
4980636a995dSmlcreech	# The compiler driver will combine and reorder linker options,
4981636a995dSmlcreech	# but understands `-z linker_flag'.  GCC discards it without `$wl',
4982636a995dSmlcreech	# but is careful enough not to reorder.
49837f19c02fSvapier	# Supported since Solaris 2.6 (maybe 2.5.1?)
4984636a995dSmlcreech	if test "$GCC" = yes; then
4985636a995dSmlcreech	  _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
4986636a995dSmlcreech	else
4987636a995dSmlcreech	  _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
4988636a995dSmlcreech	fi
4989636a995dSmlcreech	;;
49909bc8b93fSa.rottmann      esac
4991636a995dSmlcreech      _LT_TAGVAR(link_all_deplibs, $1)=yes
49929bc8b93fSa.rottmann      ;;
49939bc8b93fSa.rottmann
49949bc8b93fSa.rottmann    sunos4*)
49959bc8b93fSa.rottmann      if test "x$host_vendor" = xsequent; then
49969bc8b93fSa.rottmann	# Use $CC to link under sequent, because it throws in some extra .o
49979bc8b93fSa.rottmann	# files that make .init and .fini sections work.
4998636a995dSmlcreech	_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
49999bc8b93fSa.rottmann      else
5000636a995dSmlcreech	_LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
50019bc8b93fSa.rottmann      fi
5002636a995dSmlcreech      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5003636a995dSmlcreech      _LT_TAGVAR(hardcode_direct, $1)=yes
5004636a995dSmlcreech      _LT_TAGVAR(hardcode_minus_L, $1)=yes
5005636a995dSmlcreech      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
50069bc8b93fSa.rottmann      ;;
50079bc8b93fSa.rottmann
50089bc8b93fSa.rottmann    sysv4)
50099bc8b93fSa.rottmann      case $host_vendor in
50109bc8b93fSa.rottmann	sni)
5011636a995dSmlcreech	  _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5012636a995dSmlcreech	  _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
50139bc8b93fSa.rottmann	;;
50149bc8b93fSa.rottmann	siemens)
50159bc8b93fSa.rottmann	  ## LD is ld it makes a PLAMLIB
50169bc8b93fSa.rottmann	  ## CC just makes a GrossModule.
5017636a995dSmlcreech	  _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5018636a995dSmlcreech	  _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
5019636a995dSmlcreech	  _LT_TAGVAR(hardcode_direct, $1)=no
50209bc8b93fSa.rottmann        ;;
50219bc8b93fSa.rottmann	motorola)
5022636a995dSmlcreech	  _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5023636a995dSmlcreech	  _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
50249bc8b93fSa.rottmann	;;
50259bc8b93fSa.rottmann      esac
50269bc8b93fSa.rottmann      runpath_var='LD_RUN_PATH'
5027636a995dSmlcreech      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
50289bc8b93fSa.rottmann      ;;
50299bc8b93fSa.rottmann
50309bc8b93fSa.rottmann    sysv4.3*)
5031636a995dSmlcreech      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5032636a995dSmlcreech      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5033636a995dSmlcreech      _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
50349bc8b93fSa.rottmann      ;;
50359bc8b93fSa.rottmann
50369bc8b93fSa.rottmann    sysv4*MP*)
50379bc8b93fSa.rottmann      if test -d /usr/nec; then
5038636a995dSmlcreech	_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5039636a995dSmlcreech	_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
50409bc8b93fSa.rottmann	runpath_var=LD_RUN_PATH
50419bc8b93fSa.rottmann	hardcode_runpath_var=yes
5042636a995dSmlcreech	_LT_TAGVAR(ld_shlibs, $1)=yes
50439bc8b93fSa.rottmann      fi
50449bc8b93fSa.rottmann      ;;
50459bc8b93fSa.rottmann
5046636a995dSmlcreech    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
5047636a995dSmlcreech      _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
5048636a995dSmlcreech      _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5049636a995dSmlcreech      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
50507f19c02fSvapier      runpath_var='LD_RUN_PATH'
50519bc8b93fSa.rottmann
50529bc8b93fSa.rottmann      if test "$GCC" = yes; then
5053636a995dSmlcreech	_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5054636a995dSmlcreech	_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
50559bc8b93fSa.rottmann      else
5056636a995dSmlcreech	_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5057636a995dSmlcreech	_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
50589bc8b93fSa.rottmann      fi
50599bc8b93fSa.rottmann      ;;
50609bc8b93fSa.rottmann
50617f19c02fSvapier    sysv5* | sco3.2v5* | sco5v6*)
50627f19c02fSvapier      # Note: We can NOT use -z defs as we might desire, because we do not
50637f19c02fSvapier      # link with -lc, and that would cause any symbols used from libc to
50647f19c02fSvapier      # always be unresolved, which means just about no library would
50657f19c02fSvapier      # ever link correctly.  If we're not using GNU ld we use -z text
50667f19c02fSvapier      # though, which does catch some bad symbols but isn't as heavy-handed
50677f19c02fSvapier      # as -z defs.
5068636a995dSmlcreech      _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
5069636a995dSmlcreech      _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
5070636a995dSmlcreech      _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5071636a995dSmlcreech      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5072636a995dSmlcreech      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
5073636a995dSmlcreech      _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
5074636a995dSmlcreech      _LT_TAGVAR(link_all_deplibs, $1)=yes
5075636a995dSmlcreech      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
50769bc8b93fSa.rottmann      runpath_var='LD_RUN_PATH'
50777f19c02fSvapier
50787f19c02fSvapier      if test "$GCC" = yes; then
5079636a995dSmlcreech	_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5080636a995dSmlcreech	_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
50817f19c02fSvapier      else
5082636a995dSmlcreech	_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5083636a995dSmlcreech	_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
50847f19c02fSvapier      fi
50859bc8b93fSa.rottmann      ;;
50869bc8b93fSa.rottmann
50879bc8b93fSa.rottmann    uts4*)
5088636a995dSmlcreech      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5089636a995dSmlcreech      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5090636a995dSmlcreech      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
50919bc8b93fSa.rottmann      ;;
50929bc8b93fSa.rottmann
50939bc8b93fSa.rottmann    *)
5094636a995dSmlcreech      _LT_TAGVAR(ld_shlibs, $1)=no
5095636a995dSmlcreech      ;;
5096636a995dSmlcreech    esac
5097636a995dSmlcreech
5098636a995dSmlcreech    if test x$host_vendor = xsni; then
5099636a995dSmlcreech      case $host in
5100636a995dSmlcreech      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5101636a995dSmlcreech	_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
51029bc8b93fSa.rottmann	;;
51039bc8b93fSa.rottmann      esac
51049bc8b93fSa.rottmann    fi
5105636a995dSmlcreech  fi
51069bc8b93fSa.rottmann])
5107636a995dSmlcreechAC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
5108636a995dSmlcreechtest "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
5109636a995dSmlcreech
5110636a995dSmlcreech_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
5111636a995dSmlcreech
5112636a995dSmlcreech_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
5113636a995dSmlcreech_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
5114636a995dSmlcreech_LT_DECL([], [extract_expsyms_cmds], [2],
5115636a995dSmlcreech    [The commands to extract the exported symbol list from a shared archive])
51169bc8b93fSa.rottmann
51179bc8b93fSa.rottmann#
51189bc8b93fSa.rottmann# Do we need to explicitly link libc?
51199bc8b93fSa.rottmann#
5120636a995dSmlcreechcase "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
51219bc8b93fSa.rottmannx|xyes)
51229bc8b93fSa.rottmann  # Assume -lc should be added
5123636a995dSmlcreech  _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
51249bc8b93fSa.rottmann
51259bc8b93fSa.rottmann  if test "$enable_shared" = yes && test "$GCC" = yes; then
5126636a995dSmlcreech    case $_LT_TAGVAR(archive_cmds, $1) in
51279bc8b93fSa.rottmann    *'~'*)
51289bc8b93fSa.rottmann      # FIXME: we may have to deal with multi-command sequences.
51299bc8b93fSa.rottmann      ;;
51309bc8b93fSa.rottmann    '$CC '*)
51319bc8b93fSa.rottmann      # Test whether the compiler implicitly links with -lc since on some
51329bc8b93fSa.rottmann      # systems, -lgcc has to come before -lc. If gcc already passes -lc
51339bc8b93fSa.rottmann      # to ld, don't add -lc before -lgcc.
51349bc8b93fSa.rottmann      AC_MSG_CHECKING([whether -lc should be explicitly linked in])
5135636a995dSmlcreech      $RM conftest*
5136636a995dSmlcreech      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
51379bc8b93fSa.rottmann
51389bc8b93fSa.rottmann      if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
51399bc8b93fSa.rottmann        soname=conftest
51409bc8b93fSa.rottmann        lib=conftest
51419bc8b93fSa.rottmann        libobjs=conftest.$ac_objext
51429bc8b93fSa.rottmann        deplibs=
5143636a995dSmlcreech        wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
5144636a995dSmlcreech	pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
51459bc8b93fSa.rottmann        compiler_flags=-v
51469bc8b93fSa.rottmann        linker_flags=-v
51479bc8b93fSa.rottmann        verstring=
51489bc8b93fSa.rottmann        output_objdir=.
51499bc8b93fSa.rottmann        libname=conftest
5150636a995dSmlcreech        lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
5151636a995dSmlcreech        _LT_TAGVAR(allow_undefined_flag, $1)=
5152636a995dSmlcreech        if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
51539bc8b93fSa.rottmann        then
5154636a995dSmlcreech	  _LT_TAGVAR(archive_cmds_need_lc, $1)=no
51559bc8b93fSa.rottmann        else
5156636a995dSmlcreech	  _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
51579bc8b93fSa.rottmann        fi
5158636a995dSmlcreech        _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
51599bc8b93fSa.rottmann      else
51609bc8b93fSa.rottmann        cat conftest.err 1>&5
51619bc8b93fSa.rottmann      fi
5162636a995dSmlcreech      $RM conftest*
5163636a995dSmlcreech      AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
51649bc8b93fSa.rottmann      ;;
51659bc8b93fSa.rottmann    esac
51669bc8b93fSa.rottmann  fi
51679bc8b93fSa.rottmann  ;;
51689bc8b93fSa.rottmannesac
5169636a995dSmlcreech
5170636a995dSmlcreech_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
5171636a995dSmlcreech    [Whether or not to add -lc for building shared libraries])
5172636a995dSmlcreech_LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
5173636a995dSmlcreech    [enable_shared_with_static_runtimes], [0],
5174636a995dSmlcreech    [Whether or not to disallow shared libs when runtime libs are static])
5175636a995dSmlcreech_LT_TAGDECL([], [export_dynamic_flag_spec], [1],
5176636a995dSmlcreech    [Compiler flag to allow reflexive dlopens])
5177636a995dSmlcreech_LT_TAGDECL([], [whole_archive_flag_spec], [1],
5178636a995dSmlcreech    [Compiler flag to generate shared objects directly from archives])
5179636a995dSmlcreech_LT_TAGDECL([], [compiler_needs_object], [1],
5180636a995dSmlcreech    [Whether the compiler copes with passing no objects directly])
5181636a995dSmlcreech_LT_TAGDECL([], [old_archive_from_new_cmds], [2],
5182636a995dSmlcreech    [Create an old-style archive from a shared archive])
5183636a995dSmlcreech_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
5184636a995dSmlcreech    [Create a temporary old-style archive to link instead of a shared archive])
5185636a995dSmlcreech_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
5186636a995dSmlcreech_LT_TAGDECL([], [archive_expsym_cmds], [2])
5187636a995dSmlcreech_LT_TAGDECL([], [module_cmds], [2],
5188636a995dSmlcreech    [Commands used to build a loadable module if different from building
5189636a995dSmlcreech    a shared archive.])
5190636a995dSmlcreech_LT_TAGDECL([], [module_expsym_cmds], [2])
5191636a995dSmlcreech_LT_TAGDECL([], [with_gnu_ld], [1],
5192636a995dSmlcreech    [Whether we are building with GNU ld or not])
5193636a995dSmlcreech_LT_TAGDECL([], [allow_undefined_flag], [1],
5194636a995dSmlcreech    [Flag that allows shared libraries with undefined symbols to be built])
5195636a995dSmlcreech_LT_TAGDECL([], [no_undefined_flag], [1],
5196636a995dSmlcreech    [Flag that enforces no undefined symbols])
5197636a995dSmlcreech_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
5198636a995dSmlcreech    [Flag to hardcode $libdir into a binary during linking.
5199636a995dSmlcreech    This must work even if $libdir does not exist])
5200636a995dSmlcreech_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
5201636a995dSmlcreech    [[If ld is used when linking, flag to hardcode $libdir into a binary
5202636a995dSmlcreech    during linking.  This must work even if $libdir does not exist]])
5203636a995dSmlcreech_LT_TAGDECL([], [hardcode_libdir_separator], [1],
5204636a995dSmlcreech    [Whether we need a single "-rpath" flag with a separated argument])
5205636a995dSmlcreech_LT_TAGDECL([], [hardcode_direct], [0],
5206636a995dSmlcreech    [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
5207636a995dSmlcreech    DIR into the resulting binary])
5208636a995dSmlcreech_LT_TAGDECL([], [hardcode_direct_absolute], [0],
5209636a995dSmlcreech    [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
5210636a995dSmlcreech    DIR into the resulting binary and the resulting library dependency is
5211636a995dSmlcreech    "absolute", i.e impossible to change by setting ${shlibpath_var} if the
5212636a995dSmlcreech    library is relocated])
5213636a995dSmlcreech_LT_TAGDECL([], [hardcode_minus_L], [0],
5214636a995dSmlcreech    [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
5215636a995dSmlcreech    into the resulting binary])
5216636a995dSmlcreech_LT_TAGDECL([], [hardcode_shlibpath_var], [0],
5217636a995dSmlcreech    [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
5218636a995dSmlcreech    into the resulting binary])
5219636a995dSmlcreech_LT_TAGDECL([], [hardcode_automatic], [0],
5220636a995dSmlcreech    [Set to "yes" if building a shared library automatically hardcodes DIR
5221636a995dSmlcreech    into the library and all subsequent libraries and executables linked
5222636a995dSmlcreech    against it])
5223636a995dSmlcreech_LT_TAGDECL([], [inherit_rpath], [0],
5224636a995dSmlcreech    [Set to yes if linker adds runtime paths of dependent libraries
5225636a995dSmlcreech    to runtime path list])
5226636a995dSmlcreech_LT_TAGDECL([], [link_all_deplibs], [0],
5227636a995dSmlcreech    [Whether libtool must link a program against all its dependency libraries])
5228636a995dSmlcreech_LT_TAGDECL([], [fix_srcfile_path], [1],
5229636a995dSmlcreech    [Fix the shell variable $srcfile for the compiler])
5230636a995dSmlcreech_LT_TAGDECL([], [always_export_symbols], [0],
5231636a995dSmlcreech    [Set to "yes" if exported symbols are required])
5232636a995dSmlcreech_LT_TAGDECL([], [export_symbols_cmds], [2],
5233636a995dSmlcreech    [The commands to list exported symbols])
5234636a995dSmlcreech_LT_TAGDECL([], [exclude_expsyms], [1],
5235636a995dSmlcreech    [Symbols that should not be listed in the preloaded symbols])
5236636a995dSmlcreech_LT_TAGDECL([], [include_expsyms], [1],
5237636a995dSmlcreech    [Symbols that must always be exported])
5238636a995dSmlcreech_LT_TAGDECL([], [prelink_cmds], [2],
5239636a995dSmlcreech    [Commands necessary for linking programs (against libraries) with templates])
5240636a995dSmlcreech_LT_TAGDECL([], [file_list_spec], [1],
5241636a995dSmlcreech    [Specify filename containing input files])
5242636a995dSmlcreechdnl FIXME: Not yet implemented
5243636a995dSmlcreechdnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
5244636a995dSmlcreechdnl    [Compiler flag to generate thread safe objects])
5245636a995dSmlcreech])# _LT_LINKER_SHLIBS
52469bc8b93fSa.rottmann
52479bc8b93fSa.rottmann
5248636a995dSmlcreech# _LT_LANG_C_CONFIG([TAG])
5249636a995dSmlcreech# ------------------------
5250636a995dSmlcreech# Ensure that the configuration variables for a C compiler are suitably
5251636a995dSmlcreech# defined.  These variables are subsequently used by _LT_CONFIG to write
5252636a995dSmlcreech# the compiler configuration to `libtool'.
5253636a995dSmlcreechm4_defun([_LT_LANG_C_CONFIG],
5254636a995dSmlcreech[m4_require([_LT_DECL_EGREP])dnl
5255636a995dSmlcreechlt_save_CC="$CC"
5256636a995dSmlcreechAC_LANG_PUSH(C)
5257636a995dSmlcreech
5258636a995dSmlcreech# Source file extension for C test sources.
5259636a995dSmlcreechac_ext=c
5260636a995dSmlcreech
5261636a995dSmlcreech# Object file extension for compiled C test sources.
5262636a995dSmlcreechobjext=o
5263636a995dSmlcreech_LT_TAGVAR(objext, $1)=$objext
5264636a995dSmlcreech
5265636a995dSmlcreech# Code to be used in simple compile tests
5266636a995dSmlcreechlt_simple_compile_test_code="int some_variable = 0;"
5267636a995dSmlcreech
5268636a995dSmlcreech# Code to be used in simple link tests
5269636a995dSmlcreechlt_simple_link_test_code='int main(){return(0);}'
5270636a995dSmlcreech
5271636a995dSmlcreech_LT_TAG_COMPILER
5272636a995dSmlcreech# Save the default compiler, since it gets overwritten when the other
5273636a995dSmlcreech# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
5274636a995dSmlcreechcompiler_DEFAULT=$CC
5275636a995dSmlcreech
5276636a995dSmlcreech# save warnings/boilerplate of simple test code
5277636a995dSmlcreech_LT_COMPILER_BOILERPLATE
5278636a995dSmlcreech_LT_LINKER_BOILERPLATE
5279636a995dSmlcreech
5280636a995dSmlcreechif test -n "$compiler"; then
5281636a995dSmlcreech  _LT_COMPILER_NO_RTTI($1)
5282636a995dSmlcreech  _LT_COMPILER_PIC($1)
5283636a995dSmlcreech  _LT_COMPILER_C_O($1)
5284636a995dSmlcreech  _LT_COMPILER_FILE_LOCKS($1)
5285636a995dSmlcreech  _LT_LINKER_SHLIBS($1)
5286636a995dSmlcreech  _LT_SYS_DYNAMIC_LINKER($1)
5287636a995dSmlcreech  _LT_LINKER_HARDCODE_LIBPATH($1)
5288636a995dSmlcreech  LT_SYS_DLOPEN_SELF
5289636a995dSmlcreech  _LT_CMD_STRIPLIB
5290636a995dSmlcreech
5291636a995dSmlcreech  # Report which library types will actually be built
5292636a995dSmlcreech  AC_MSG_CHECKING([if libtool supports shared libraries])
5293636a995dSmlcreech  AC_MSG_RESULT([$can_build_shared])
5294636a995dSmlcreech
5295636a995dSmlcreech  AC_MSG_CHECKING([whether to build shared libraries])
5296636a995dSmlcreech  test "$can_build_shared" = "no" && enable_shared=no
5297636a995dSmlcreech
5298636a995dSmlcreech  # On AIX, shared libraries and static libraries use the same namespace, and
5299636a995dSmlcreech  # are all built from PIC.
5300636a995dSmlcreech  case $host_os in
5301636a995dSmlcreech  aix3*)
5302636a995dSmlcreech    test "$enable_shared" = yes && enable_static=no
5303636a995dSmlcreech    if test -n "$RANLIB"; then
5304636a995dSmlcreech      archive_cmds="$archive_cmds~\$RANLIB \$lib"
5305636a995dSmlcreech      postinstall_cmds='$RANLIB $lib'
5306636a995dSmlcreech    fi
5307636a995dSmlcreech    ;;
5308636a995dSmlcreech
5309636a995dSmlcreech  aix[[4-9]]*)
5310636a995dSmlcreech    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
5311636a995dSmlcreech      test "$enable_shared" = yes && enable_static=no
5312636a995dSmlcreech    fi
5313636a995dSmlcreech    ;;
5314636a995dSmlcreech  esac
5315636a995dSmlcreech  AC_MSG_RESULT([$enable_shared])
5316636a995dSmlcreech
5317636a995dSmlcreech  AC_MSG_CHECKING([whether to build static libraries])
5318636a995dSmlcreech  # Make sure either enable_shared or enable_static is yes.
5319636a995dSmlcreech  test "$enable_shared" = yes || enable_static=yes
5320636a995dSmlcreech  AC_MSG_RESULT([$enable_static])
5321636a995dSmlcreech
5322636a995dSmlcreech  _LT_CONFIG($1)
5323636a995dSmlcreechfi
5324636a995dSmlcreechAC_LANG_POP
5325636a995dSmlcreechCC="$lt_save_CC"
5326636a995dSmlcreech])# _LT_LANG_C_CONFIG
532762507b65Sa.rottmann
532862507b65Sa.rottmann
5329636a995dSmlcreech# _LT_PROG_CXX
5330636a995dSmlcreech# ------------
5331636a995dSmlcreech# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
5332636a995dSmlcreech# compiler, we have our own version here.
5333636a995dSmlcreechm4_defun([_LT_PROG_CXX],
5334636a995dSmlcreech[
5335636a995dSmlcreechpushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
5336636a995dSmlcreechAC_PROG_CXX
5337636a995dSmlcreechif test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5338636a995dSmlcreech    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5339636a995dSmlcreech    (test "X$CXX" != "Xg++"))) ; then
5340636a995dSmlcreech  AC_PROG_CXXCPP
5341636a995dSmlcreechelse
5342636a995dSmlcreech  _lt_caught_CXX_error=yes
5343636a995dSmlcreechfi
5344636a995dSmlcreechpopdef([AC_MSG_ERROR])
5345636a995dSmlcreech])# _LT_PROG_CXX
5346636a995dSmlcreech
5347636a995dSmlcreechdnl aclocal-1.4 backwards compatibility:
5348636a995dSmlcreechdnl AC_DEFUN([_LT_PROG_CXX], [])
5349636a995dSmlcreech
5350636a995dSmlcreech
5351636a995dSmlcreech# _LT_LANG_CXX_CONFIG([TAG])
5352636a995dSmlcreech# --------------------------
5353636a995dSmlcreech# Ensure that the configuration variables for a C++ compiler are suitably
5354636a995dSmlcreech# defined.  These variables are subsequently used by _LT_CONFIG to write
5355636a995dSmlcreech# the compiler configuration to `libtool'.
5356636a995dSmlcreechm4_defun([_LT_LANG_CXX_CONFIG],
5357636a995dSmlcreech[AC_REQUIRE([_LT_PROG_CXX])dnl
5358636a995dSmlcreechm4_require([_LT_FILEUTILS_DEFAULTS])dnl
5359636a995dSmlcreechm4_require([_LT_DECL_EGREP])dnl
5360636a995dSmlcreech
5361636a995dSmlcreechAC_LANG_PUSH(C++)
5362636a995dSmlcreech_LT_TAGVAR(archive_cmds_need_lc, $1)=no
5363636a995dSmlcreech_LT_TAGVAR(allow_undefined_flag, $1)=
5364636a995dSmlcreech_LT_TAGVAR(always_export_symbols, $1)=no
5365636a995dSmlcreech_LT_TAGVAR(archive_expsym_cmds, $1)=
5366636a995dSmlcreech_LT_TAGVAR(compiler_needs_object, $1)=no
5367636a995dSmlcreech_LT_TAGVAR(export_dynamic_flag_spec, $1)=
5368636a995dSmlcreech_LT_TAGVAR(hardcode_direct, $1)=no
5369636a995dSmlcreech_LT_TAGVAR(hardcode_direct_absolute, $1)=no
5370636a995dSmlcreech_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5371636a995dSmlcreech_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
5372636a995dSmlcreech_LT_TAGVAR(hardcode_libdir_separator, $1)=
5373636a995dSmlcreech_LT_TAGVAR(hardcode_minus_L, $1)=no
5374636a995dSmlcreech_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5375636a995dSmlcreech_LT_TAGVAR(hardcode_automatic, $1)=no
5376636a995dSmlcreech_LT_TAGVAR(inherit_rpath, $1)=no
5377636a995dSmlcreech_LT_TAGVAR(module_cmds, $1)=
5378636a995dSmlcreech_LT_TAGVAR(module_expsym_cmds, $1)=
5379636a995dSmlcreech_LT_TAGVAR(link_all_deplibs, $1)=unknown
5380636a995dSmlcreech_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
5381636a995dSmlcreech_LT_TAGVAR(no_undefined_flag, $1)=
5382636a995dSmlcreech_LT_TAGVAR(whole_archive_flag_spec, $1)=
5383636a995dSmlcreech_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
5384636a995dSmlcreech
5385636a995dSmlcreech# Source file extension for C++ test sources.
5386636a995dSmlcreechac_ext=cpp
5387636a995dSmlcreech
5388636a995dSmlcreech# Object file extension for compiled C++ test sources.
5389636a995dSmlcreechobjext=o
5390636a995dSmlcreech_LT_TAGVAR(objext, $1)=$objext
5391636a995dSmlcreech
5392636a995dSmlcreech# No sense in running all these tests if we already determined that
5393636a995dSmlcreech# the CXX compiler isn't working.  Some variables (like enable_shared)
5394636a995dSmlcreech# are currently assumed to apply to all compilers on this platform,
5395636a995dSmlcreech# and will be corrupted by setting them based on a non-working compiler.
5396636a995dSmlcreechif test "$_lt_caught_CXX_error" != yes; then
5397636a995dSmlcreech  # Code to be used in simple compile tests
5398636a995dSmlcreech  lt_simple_compile_test_code="int some_variable = 0;"
5399636a995dSmlcreech
5400636a995dSmlcreech  # Code to be used in simple link tests
5401636a995dSmlcreech  lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
5402636a995dSmlcreech
5403636a995dSmlcreech  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
5404636a995dSmlcreech  _LT_TAG_COMPILER
5405636a995dSmlcreech
5406636a995dSmlcreech  # save warnings/boilerplate of simple test code
5407636a995dSmlcreech  _LT_COMPILER_BOILERPLATE
5408636a995dSmlcreech  _LT_LINKER_BOILERPLATE
5409636a995dSmlcreech
5410636a995dSmlcreech  # Allow CC to be a program name with arguments.
5411636a995dSmlcreech  lt_save_CC=$CC
5412636a995dSmlcreech  lt_save_LD=$LD
5413636a995dSmlcreech  lt_save_GCC=$GCC
5414636a995dSmlcreech  GCC=$GXX
5415636a995dSmlcreech  lt_save_with_gnu_ld=$with_gnu_ld
5416636a995dSmlcreech  lt_save_path_LD=$lt_cv_path_LD
5417636a995dSmlcreech  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
5418636a995dSmlcreech    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
5419636a995dSmlcreech  else
5420636a995dSmlcreech    $as_unset lt_cv_prog_gnu_ld
5421636a995dSmlcreech  fi
5422636a995dSmlcreech  if test -n "${lt_cv_path_LDCXX+set}"; then
5423636a995dSmlcreech    lt_cv_path_LD=$lt_cv_path_LDCXX
5424636a995dSmlcreech  else
5425636a995dSmlcreech    $as_unset lt_cv_path_LD
5426636a995dSmlcreech  fi
5427636a995dSmlcreech  test -z "${LDCXX+set}" || LD=$LDCXX
5428636a995dSmlcreech  CC=${CXX-"c++"}
5429636a995dSmlcreech  compiler=$CC
5430636a995dSmlcreech  _LT_TAGVAR(compiler, $1)=$CC
5431636a995dSmlcreech  _LT_CC_BASENAME([$compiler])
5432636a995dSmlcreech
5433636a995dSmlcreech  if test -n "$compiler"; then
5434636a995dSmlcreech    # We don't want -fno-exception when compiling C++ code, so set the
5435636a995dSmlcreech    # no_builtin_flag separately
5436636a995dSmlcreech    if test "$GXX" = yes; then
5437636a995dSmlcreech      _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
5438636a995dSmlcreech    else
5439636a995dSmlcreech      _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
5440636a995dSmlcreech    fi
5441636a995dSmlcreech
5442636a995dSmlcreech    if test "$GXX" = yes; then
5443636a995dSmlcreech      # Set up default GNU C++ configuration
5444636a995dSmlcreech
5445636a995dSmlcreech      LT_PATH_LD
5446636a995dSmlcreech
5447636a995dSmlcreech      # Check if GNU C++ uses GNU ld as the underlying linker, since the
5448636a995dSmlcreech      # archiving commands below assume that GNU ld is being used.
5449636a995dSmlcreech      if test "$with_gnu_ld" = yes; then
5450636a995dSmlcreech        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5451636a995dSmlcreech        _LT_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'
5452636a995dSmlcreech
5453636a995dSmlcreech        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5454636a995dSmlcreech        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5455636a995dSmlcreech
5456636a995dSmlcreech        # If archive_cmds runs LD, not CC, wlarc should be empty
5457636a995dSmlcreech        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
5458636a995dSmlcreech        #     investigate it a little bit more. (MM)
5459636a995dSmlcreech        wlarc='${wl}'
5460636a995dSmlcreech
5461636a995dSmlcreech        # ancient GNU ld didn't support --whole-archive et. al.
5462636a995dSmlcreech        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
5463636a995dSmlcreech	  $GREP 'no-whole-archive' > /dev/null; then
5464636a995dSmlcreech          _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5465636a995dSmlcreech        else
5466636a995dSmlcreech          _LT_TAGVAR(whole_archive_flag_spec, $1)=
5467636a995dSmlcreech        fi
5468636a995dSmlcreech      else
5469636a995dSmlcreech        with_gnu_ld=no
5470636a995dSmlcreech        wlarc=
5471636a995dSmlcreech
5472636a995dSmlcreech        # A generic and very simple default shared library creation
5473636a995dSmlcreech        # command for GNU C++ for the case where it uses the native
5474636a995dSmlcreech        # linker, instead of GNU ld.  If possible, this setting should
5475636a995dSmlcreech        # overridden to take advantage of the native linker features on
5476636a995dSmlcreech        # the platform it is being used on.
5477636a995dSmlcreech        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
5478636a995dSmlcreech      fi
5479636a995dSmlcreech
5480636a995dSmlcreech      # Commands to make compiler produce verbose output that lists
5481636a995dSmlcreech      # what "hidden" libraries, object files and flags are used when
5482636a995dSmlcreech      # linking a shared library.
5483636a995dSmlcreech      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
5484636a995dSmlcreech
5485636a995dSmlcreech    else
5486636a995dSmlcreech      GXX=no
5487636a995dSmlcreech      with_gnu_ld=no
5488636a995dSmlcreech      wlarc=
5489636a995dSmlcreech    fi
5490636a995dSmlcreech
5491636a995dSmlcreech    # PORTME: fill in a description of your system's C++ link characteristics
5492636a995dSmlcreech    AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
5493636a995dSmlcreech    _LT_TAGVAR(ld_shlibs, $1)=yes
5494636a995dSmlcreech    case $host_os in
5495636a995dSmlcreech      aix3*)
5496636a995dSmlcreech        # FIXME: insert proper C++ library support
5497636a995dSmlcreech        _LT_TAGVAR(ld_shlibs, $1)=no
5498636a995dSmlcreech        ;;
5499636a995dSmlcreech      aix[[4-9]]*)
5500636a995dSmlcreech        if test "$host_cpu" = ia64; then
5501636a995dSmlcreech          # On IA64, the linker does run time linking by default, so we don't
5502636a995dSmlcreech          # have to do anything special.
5503636a995dSmlcreech          aix_use_runtimelinking=no
5504636a995dSmlcreech          exp_sym_flag='-Bexport'
5505636a995dSmlcreech          no_entry_flag=""
5506636a995dSmlcreech        else
5507636a995dSmlcreech          aix_use_runtimelinking=no
5508636a995dSmlcreech
5509636a995dSmlcreech          # Test if we are trying to use run time linking or normal
5510636a995dSmlcreech          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5511636a995dSmlcreech          # need to do runtime linking.
5512636a995dSmlcreech          case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
5513636a995dSmlcreech	    for ld_flag in $LDFLAGS; do
5514636a995dSmlcreech	      case $ld_flag in
5515636a995dSmlcreech	      *-brtl*)
5516636a995dSmlcreech	        aix_use_runtimelinking=yes
5517636a995dSmlcreech	        break
5518636a995dSmlcreech	        ;;
5519636a995dSmlcreech	      esac
5520636a995dSmlcreech	    done
5521636a995dSmlcreech	    ;;
5522636a995dSmlcreech          esac
5523636a995dSmlcreech
5524636a995dSmlcreech          exp_sym_flag='-bexport'
5525636a995dSmlcreech          no_entry_flag='-bnoentry'
5526636a995dSmlcreech        fi
5527636a995dSmlcreech
5528636a995dSmlcreech        # When large executables or shared objects are built, AIX ld can
5529636a995dSmlcreech        # have problems creating the table of contents.  If linking a library
5530636a995dSmlcreech        # or program results in "error TOC overflow" add -mminimal-toc to
5531636a995dSmlcreech        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
5532636a995dSmlcreech        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5533636a995dSmlcreech
5534636a995dSmlcreech        _LT_TAGVAR(archive_cmds, $1)=''
5535636a995dSmlcreech        _LT_TAGVAR(hardcode_direct, $1)=yes
5536636a995dSmlcreech        _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5537636a995dSmlcreech        _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
5538636a995dSmlcreech        _LT_TAGVAR(link_all_deplibs, $1)=yes
5539636a995dSmlcreech        _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
5540636a995dSmlcreech
5541636a995dSmlcreech        if test "$GXX" = yes; then
5542636a995dSmlcreech          case $host_os in aix4.[[012]]|aix4.[[012]].*)
5543636a995dSmlcreech          # We only want to do this on AIX 4.2 and lower, the check
5544636a995dSmlcreech          # below for broken collect2 doesn't work under 4.3+
5545636a995dSmlcreech	  collect2name=`${CC} -print-prog-name=collect2`
5546636a995dSmlcreech	  if test -f "$collect2name" &&
5547636a995dSmlcreech	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
5548636a995dSmlcreech	  then
5549636a995dSmlcreech	    # We have reworked collect2
5550636a995dSmlcreech	    :
5551636a995dSmlcreech	  else
5552636a995dSmlcreech	    # We have old collect2
5553636a995dSmlcreech	    _LT_TAGVAR(hardcode_direct, $1)=unsupported
5554636a995dSmlcreech	    # It fails to find uninstalled libraries when the uninstalled
5555636a995dSmlcreech	    # path is not listed in the libpath.  Setting hardcode_minus_L
5556636a995dSmlcreech	    # to unsupported forces relinking
5557636a995dSmlcreech	    _LT_TAGVAR(hardcode_minus_L, $1)=yes
5558636a995dSmlcreech	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5559636a995dSmlcreech	    _LT_TAGVAR(hardcode_libdir_separator, $1)=
5560636a995dSmlcreech	  fi
5561636a995dSmlcreech          esac
5562636a995dSmlcreech          shared_flag='-shared'
5563636a995dSmlcreech	  if test "$aix_use_runtimelinking" = yes; then
5564636a995dSmlcreech	    shared_flag="$shared_flag "'${wl}-G'
5565636a995dSmlcreech	  fi
5566636a995dSmlcreech        else
5567636a995dSmlcreech          # not using gcc
5568636a995dSmlcreech          if test "$host_cpu" = ia64; then
5569636a995dSmlcreech	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
5570636a995dSmlcreech	  # chokes on -Wl,-G. The following line is correct:
5571636a995dSmlcreech	  shared_flag='-G'
5572636a995dSmlcreech          else
5573636a995dSmlcreech	    if test "$aix_use_runtimelinking" = yes; then
5574636a995dSmlcreech	      shared_flag='${wl}-G'
5575636a995dSmlcreech	    else
5576636a995dSmlcreech	      shared_flag='${wl}-bM:SRE'
5577636a995dSmlcreech	    fi
5578636a995dSmlcreech          fi
5579636a995dSmlcreech        fi
5580636a995dSmlcreech
5581*6acb2cf6Svapier        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
5582636a995dSmlcreech        # It seems that -bexpall does not export symbols beginning with
5583636a995dSmlcreech        # underscore (_), so it is better to generate a list of symbols to
5584636a995dSmlcreech	# export.
5585636a995dSmlcreech        _LT_TAGVAR(always_export_symbols, $1)=yes
5586636a995dSmlcreech        if test "$aix_use_runtimelinking" = yes; then
5587636a995dSmlcreech          # Warning - without using the other runtime loading flags (-brtl),
5588636a995dSmlcreech          # -berok will link without error, but may produce a broken library.
5589636a995dSmlcreech          _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
5590636a995dSmlcreech          # Determine the default libpath from the value encoded in an empty
5591636a995dSmlcreech          # executable.
5592636a995dSmlcreech          _LT_SYS_MODULE_PATH_AIX
5593636a995dSmlcreech          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5594636a995dSmlcreech
5595636a995dSmlcreech          _LT_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 "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
5596636a995dSmlcreech        else
5597636a995dSmlcreech          if test "$host_cpu" = ia64; then
5598636a995dSmlcreech	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
5599636a995dSmlcreech	    _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
5600636a995dSmlcreech	    _LT_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"
5601636a995dSmlcreech          else
5602636a995dSmlcreech	    # Determine the default libpath from the value encoded in an
5603636a995dSmlcreech	    # empty executable.
5604636a995dSmlcreech	    _LT_SYS_MODULE_PATH_AIX
5605636a995dSmlcreech	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5606636a995dSmlcreech	    # Warning - without using the other run time loading flags,
5607636a995dSmlcreech	    # -berok will link without error, but may produce a broken library.
5608636a995dSmlcreech	    _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
5609636a995dSmlcreech	    _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
5610636a995dSmlcreech	    # Exported symbols can be pulled into shared objects from archives
5611636a995dSmlcreech	    _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
5612636a995dSmlcreech	    _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5613636a995dSmlcreech	    # This is similar to how AIX traditionally builds its shared
5614636a995dSmlcreech	    # libraries.
5615636a995dSmlcreech	    _LT_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'
5616636a995dSmlcreech          fi
5617636a995dSmlcreech        fi
5618636a995dSmlcreech        ;;
5619636a995dSmlcreech
5620636a995dSmlcreech      beos*)
5621636a995dSmlcreech	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5622636a995dSmlcreech	  _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5623636a995dSmlcreech	  # Joseph Beckenbach <[email protected]> says some releases of gcc
5624636a995dSmlcreech	  # support --undefined.  This deserves some investigation.  FIXME
5625636a995dSmlcreech	  _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5626636a995dSmlcreech	else
5627636a995dSmlcreech	  _LT_TAGVAR(ld_shlibs, $1)=no
5628636a995dSmlcreech	fi
5629636a995dSmlcreech	;;
5630636a995dSmlcreech
5631636a995dSmlcreech      chorus*)
5632636a995dSmlcreech        case $cc_basename in
5633636a995dSmlcreech          *)
5634636a995dSmlcreech	  # FIXME: insert proper C++ library support
5635636a995dSmlcreech	  _LT_TAGVAR(ld_shlibs, $1)=no
5636636a995dSmlcreech	  ;;
5637636a995dSmlcreech        esac
5638636a995dSmlcreech        ;;
5639636a995dSmlcreech
5640*6acb2cf6Svapier      cygwin* | mingw* | pw32* | cegcc*)
5641636a995dSmlcreech        # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
5642636a995dSmlcreech        # as there is no search path for DLLs.
5643636a995dSmlcreech        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5644636a995dSmlcreech        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5645636a995dSmlcreech        _LT_TAGVAR(always_export_symbols, $1)=no
5646636a995dSmlcreech        _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5647636a995dSmlcreech
5648636a995dSmlcreech        if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
5649636a995dSmlcreech          _LT_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'
5650636a995dSmlcreech          # If the export-symbols file already is a .def file (1st line
5651636a995dSmlcreech          # is EXPORTS), use it as is; otherwise, prepend...
5652636a995dSmlcreech          _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5653636a995dSmlcreech	    cp $export_symbols $output_objdir/$soname.def;
5654636a995dSmlcreech          else
5655636a995dSmlcreech	    echo EXPORTS > $output_objdir/$soname.def;
5656636a995dSmlcreech	    cat $export_symbols >> $output_objdir/$soname.def;
5657636a995dSmlcreech          fi~
5658636a995dSmlcreech          $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'
5659636a995dSmlcreech        else
5660636a995dSmlcreech          _LT_TAGVAR(ld_shlibs, $1)=no
5661636a995dSmlcreech        fi
5662636a995dSmlcreech        ;;
5663636a995dSmlcreech      darwin* | rhapsody*)
5664636a995dSmlcreech        _LT_DARWIN_LINKER_FEATURES($1)
5665636a995dSmlcreech	;;
5666636a995dSmlcreech
5667636a995dSmlcreech      dgux*)
5668636a995dSmlcreech        case $cc_basename in
5669636a995dSmlcreech          ec++*)
5670636a995dSmlcreech	    # FIXME: insert proper C++ library support
5671636a995dSmlcreech	    _LT_TAGVAR(ld_shlibs, $1)=no
5672636a995dSmlcreech	    ;;
5673636a995dSmlcreech          ghcx*)
5674636a995dSmlcreech	    # Green Hills C++ Compiler
5675636a995dSmlcreech	    # FIXME: insert proper C++ library support
5676636a995dSmlcreech	    _LT_TAGVAR(ld_shlibs, $1)=no
5677636a995dSmlcreech	    ;;
5678636a995dSmlcreech          *)
5679636a995dSmlcreech	    # FIXME: insert proper C++ library support
5680636a995dSmlcreech	    _LT_TAGVAR(ld_shlibs, $1)=no
5681636a995dSmlcreech	    ;;
5682636a995dSmlcreech        esac
5683636a995dSmlcreech        ;;
5684636a995dSmlcreech
5685636a995dSmlcreech      freebsd[[12]]*)
5686636a995dSmlcreech        # C++ shared libraries reported to be fairly broken before
5687636a995dSmlcreech	# switch to ELF
5688636a995dSmlcreech        _LT_TAGVAR(ld_shlibs, $1)=no
5689636a995dSmlcreech        ;;
5690636a995dSmlcreech
5691636a995dSmlcreech      freebsd-elf*)
5692636a995dSmlcreech        _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5693636a995dSmlcreech        ;;
5694636a995dSmlcreech
5695636a995dSmlcreech      freebsd* | dragonfly*)
5696636a995dSmlcreech        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
5697636a995dSmlcreech        # conventions
5698636a995dSmlcreech        _LT_TAGVAR(ld_shlibs, $1)=yes
5699636a995dSmlcreech        ;;
5700636a995dSmlcreech
5701636a995dSmlcreech      gnu*)
5702636a995dSmlcreech        ;;
5703636a995dSmlcreech
5704636a995dSmlcreech      hpux9*)
5705636a995dSmlcreech        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5706636a995dSmlcreech        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5707636a995dSmlcreech        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5708636a995dSmlcreech        _LT_TAGVAR(hardcode_direct, $1)=yes
5709636a995dSmlcreech        _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
5710636a995dSmlcreech				             # but as the default
5711636a995dSmlcreech				             # location of the library.
5712636a995dSmlcreech
5713636a995dSmlcreech        case $cc_basename in
5714636a995dSmlcreech          CC*)
5715636a995dSmlcreech            # FIXME: insert proper C++ library support
5716636a995dSmlcreech            _LT_TAGVAR(ld_shlibs, $1)=no
5717636a995dSmlcreech            ;;
5718636a995dSmlcreech          aCC*)
5719636a995dSmlcreech            _LT_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'
5720636a995dSmlcreech            # Commands to make compiler produce verbose output that lists
5721636a995dSmlcreech            # what "hidden" libraries, object files and flags are used when
5722636a995dSmlcreech            # linking a shared library.
5723636a995dSmlcreech            #
5724636a995dSmlcreech            # There doesn't appear to be a way to prevent this compiler from
5725636a995dSmlcreech            # explicitly linking system object files so we need to strip them
5726636a995dSmlcreech            # from the output so that they don't get included in the library
5727636a995dSmlcreech            # dependencies.
5728636a995dSmlcreech            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
5729636a995dSmlcreech            ;;
5730636a995dSmlcreech          *)
5731636a995dSmlcreech            if test "$GXX" = yes; then
5732636a995dSmlcreech              _LT_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'
5733636a995dSmlcreech            else
5734636a995dSmlcreech              # FIXME: insert proper C++ library support
5735636a995dSmlcreech              _LT_TAGVAR(ld_shlibs, $1)=no
5736636a995dSmlcreech            fi
5737636a995dSmlcreech            ;;
5738636a995dSmlcreech        esac
5739636a995dSmlcreech        ;;
5740636a995dSmlcreech
5741636a995dSmlcreech      hpux10*|hpux11*)
5742636a995dSmlcreech        if test $with_gnu_ld = no; then
5743636a995dSmlcreech	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5744636a995dSmlcreech	  _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5745636a995dSmlcreech
5746636a995dSmlcreech          case $host_cpu in
5747636a995dSmlcreech            hppa*64*|ia64*)
5748636a995dSmlcreech              ;;
5749636a995dSmlcreech            *)
5750636a995dSmlcreech	      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5751636a995dSmlcreech              ;;
5752636a995dSmlcreech          esac
5753636a995dSmlcreech        fi
5754636a995dSmlcreech        case $host_cpu in
5755636a995dSmlcreech          hppa*64*|ia64*)
5756636a995dSmlcreech            _LT_TAGVAR(hardcode_direct, $1)=no
5757636a995dSmlcreech            _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5758636a995dSmlcreech            ;;
5759636a995dSmlcreech          *)
5760636a995dSmlcreech            _LT_TAGVAR(hardcode_direct, $1)=yes
5761636a995dSmlcreech            _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5762636a995dSmlcreech            _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
5763636a995dSmlcreech					         # but as the default
5764636a995dSmlcreech					         # location of the library.
5765636a995dSmlcreech            ;;
5766636a995dSmlcreech        esac
5767636a995dSmlcreech
5768636a995dSmlcreech        case $cc_basename in
5769636a995dSmlcreech          CC*)
5770636a995dSmlcreech	    # FIXME: insert proper C++ library support
5771636a995dSmlcreech	    _LT_TAGVAR(ld_shlibs, $1)=no
5772636a995dSmlcreech	    ;;
5773636a995dSmlcreech          aCC*)
5774636a995dSmlcreech	    case $host_cpu in
5775636a995dSmlcreech	      hppa*64*)
5776636a995dSmlcreech	        _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5777636a995dSmlcreech	        ;;
5778636a995dSmlcreech	      ia64*)
5779636a995dSmlcreech	        _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5780636a995dSmlcreech	        ;;
5781636a995dSmlcreech	      *)
5782636a995dSmlcreech	        _LT_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'
5783636a995dSmlcreech	        ;;
5784636a995dSmlcreech	    esac
5785636a995dSmlcreech	    # Commands to make compiler produce verbose output that lists
5786636a995dSmlcreech	    # what "hidden" libraries, object files and flags are used when
5787636a995dSmlcreech	    # linking a shared library.
5788636a995dSmlcreech	    #
5789636a995dSmlcreech	    # There doesn't appear to be a way to prevent this compiler from
5790636a995dSmlcreech	    # explicitly linking system object files so we need to strip them
5791636a995dSmlcreech	    # from the output so that they don't get included in the library
5792636a995dSmlcreech	    # dependencies.
5793636a995dSmlcreech	    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 "X$list" | $Xsed'
5794636a995dSmlcreech	    ;;
5795636a995dSmlcreech          *)
5796636a995dSmlcreech	    if test "$GXX" = yes; then
5797636a995dSmlcreech	      if test $with_gnu_ld = no; then
5798636a995dSmlcreech	        case $host_cpu in
5799636a995dSmlcreech	          hppa*64*)
5800636a995dSmlcreech	            _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5801636a995dSmlcreech	            ;;
5802636a995dSmlcreech	          ia64*)
5803636a995dSmlcreech	            _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5804636a995dSmlcreech	            ;;
5805636a995dSmlcreech	          *)
5806636a995dSmlcreech	            _LT_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'
5807636a995dSmlcreech	            ;;
5808636a995dSmlcreech	        esac
5809636a995dSmlcreech	      fi
5810636a995dSmlcreech	    else
5811636a995dSmlcreech	      # FIXME: insert proper C++ library support
5812636a995dSmlcreech	      _LT_TAGVAR(ld_shlibs, $1)=no
5813636a995dSmlcreech	    fi
5814636a995dSmlcreech	    ;;
5815636a995dSmlcreech        esac
5816636a995dSmlcreech        ;;
5817636a995dSmlcreech
5818636a995dSmlcreech      interix[[3-9]]*)
5819636a995dSmlcreech	_LT_TAGVAR(hardcode_direct, $1)=no
5820636a995dSmlcreech	_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5821636a995dSmlcreech	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5822636a995dSmlcreech	_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5823636a995dSmlcreech	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
5824636a995dSmlcreech	# Instead, shared libraries are loaded at an image base (0x10000000 by
5825636a995dSmlcreech	# default) and relocated if they conflict, which is a slow very memory
5826636a995dSmlcreech	# consuming and fragmenting process.  To avoid this, we pick a random,
5827636a995dSmlcreech	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
5828636a995dSmlcreech	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
5829636a995dSmlcreech	_LT_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'
5830636a995dSmlcreech	_LT_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'
5831636a995dSmlcreech	;;
5832636a995dSmlcreech      irix5* | irix6*)
5833636a995dSmlcreech        case $cc_basename in
5834636a995dSmlcreech          CC*)
5835636a995dSmlcreech	    # SGI C++
5836636a995dSmlcreech	    _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
5837636a995dSmlcreech
5838636a995dSmlcreech	    # Archives containing C++ object files must be created using
5839636a995dSmlcreech	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
5840636a995dSmlcreech	    # necessary to make sure instantiated templates are included
5841636a995dSmlcreech	    # in the archive.
5842636a995dSmlcreech	    _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
5843636a995dSmlcreech	    ;;
5844636a995dSmlcreech          *)
5845636a995dSmlcreech	    if test "$GXX" = yes; then
5846636a995dSmlcreech	      if test "$with_gnu_ld" = no; then
5847636a995dSmlcreech	        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5848636a995dSmlcreech	      else
5849636a995dSmlcreech	        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
5850636a995dSmlcreech	      fi
5851636a995dSmlcreech	    fi
5852636a995dSmlcreech	    _LT_TAGVAR(link_all_deplibs, $1)=yes
5853636a995dSmlcreech	    ;;
5854636a995dSmlcreech        esac
5855636a995dSmlcreech        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5856636a995dSmlcreech        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5857636a995dSmlcreech        _LT_TAGVAR(inherit_rpath, $1)=yes
5858636a995dSmlcreech        ;;
5859636a995dSmlcreech
5860636a995dSmlcreech      linux* | k*bsd*-gnu)
5861636a995dSmlcreech        case $cc_basename in
5862636a995dSmlcreech          KCC*)
5863636a995dSmlcreech	    # Kuck and Associates, Inc. (KAI) C++ Compiler
5864636a995dSmlcreech
5865636a995dSmlcreech	    # KCC will only create a shared library if the output file
5866636a995dSmlcreech	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
5867636a995dSmlcreech	    # to its proper name (with version) after linking.
5868636a995dSmlcreech	    _LT_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'
5869636a995dSmlcreech	    _LT_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'
5870636a995dSmlcreech	    # Commands to make compiler produce verbose output that lists
5871636a995dSmlcreech	    # what "hidden" libraries, object files and flags are used when
5872636a995dSmlcreech	    # linking a shared library.
5873636a995dSmlcreech	    #
5874636a995dSmlcreech	    # There doesn't appear to be a way to prevent this compiler from
5875636a995dSmlcreech	    # explicitly linking system object files so we need to strip them
5876636a995dSmlcreech	    # from the output so that they don't get included in the library
5877636a995dSmlcreech	    # dependencies.
5878636a995dSmlcreech	    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 "X$list" | $Xsed'
5879636a995dSmlcreech
5880636a995dSmlcreech	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5881636a995dSmlcreech	    _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5882636a995dSmlcreech
5883636a995dSmlcreech	    # Archives containing C++ object files must be created using
5884636a995dSmlcreech	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
5885636a995dSmlcreech	    _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
5886636a995dSmlcreech	    ;;
5887636a995dSmlcreech	  icpc* | ecpc* )
5888636a995dSmlcreech	    # Intel C++
5889636a995dSmlcreech	    with_gnu_ld=yes
5890636a995dSmlcreech	    # version 8.0 and above of icpc choke on multiply defined symbols
5891636a995dSmlcreech	    # if we add $predep_objects and $postdep_objects, however 7.1 and
5892636a995dSmlcreech	    # earlier do not add the objects themselves.
5893636a995dSmlcreech	    case `$CC -V 2>&1` in
5894636a995dSmlcreech	      *"Version 7."*)
5895636a995dSmlcreech	        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5896636a995dSmlcreech		_LT_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'
5897636a995dSmlcreech		;;
5898636a995dSmlcreech	      *)  # Version 8.0 or newer
5899636a995dSmlcreech	        tmp_idyn=
5900636a995dSmlcreech	        case $host_cpu in
5901636a995dSmlcreech		  ia64*) tmp_idyn=' -i_dynamic';;
5902636a995dSmlcreech		esac
5903636a995dSmlcreech	        _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5904636a995dSmlcreech		_LT_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'
5905636a995dSmlcreech		;;
5906636a995dSmlcreech	    esac
5907636a995dSmlcreech	    _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5908636a995dSmlcreech	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5909636a995dSmlcreech	    _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5910636a995dSmlcreech	    _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
5911636a995dSmlcreech	    ;;
5912636a995dSmlcreech          pgCC* | pgcpp*)
5913636a995dSmlcreech            # Portland Group C++ compiler
5914636a995dSmlcreech	    case `$CC -V` in
5915636a995dSmlcreech	    *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
5916636a995dSmlcreech	      _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
5917636a995dSmlcreech		rm -rf $tpldir~
5918636a995dSmlcreech		$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
5919636a995dSmlcreech		compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
5920636a995dSmlcreech	      _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
5921636a995dSmlcreech		rm -rf $tpldir~
5922636a995dSmlcreech		$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
5923636a995dSmlcreech		$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
5924636a995dSmlcreech		$RANLIB $oldlib'
5925636a995dSmlcreech	      _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
5926636a995dSmlcreech		rm -rf $tpldir~
5927636a995dSmlcreech		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
5928636a995dSmlcreech		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
5929636a995dSmlcreech	      _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
5930636a995dSmlcreech		rm -rf $tpldir~
5931636a995dSmlcreech		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
5932636a995dSmlcreech		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
5933636a995dSmlcreech	      ;;
5934636a995dSmlcreech	    *) # Version 6 will use weak symbols
5935636a995dSmlcreech	      _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
5936636a995dSmlcreech	      _LT_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'
5937636a995dSmlcreech	      ;;
5938636a995dSmlcreech	    esac
5939636a995dSmlcreech
5940636a995dSmlcreech	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
5941636a995dSmlcreech	    _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5942636a995dSmlcreech	    _LT_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'
5943636a995dSmlcreech            ;;
5944636a995dSmlcreech	  cxx*)
5945636a995dSmlcreech	    # Compaq C++
5946636a995dSmlcreech	    _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5947636a995dSmlcreech	    _LT_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'
5948636a995dSmlcreech
5949636a995dSmlcreech	    runpath_var=LD_RUN_PATH
5950636a995dSmlcreech	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
5951636a995dSmlcreech	    _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5952636a995dSmlcreech
5953636a995dSmlcreech	    # Commands to make compiler produce verbose output that lists
5954636a995dSmlcreech	    # what "hidden" libraries, object files and flags are used when
5955636a995dSmlcreech	    # linking a shared library.
5956636a995dSmlcreech	    #
5957636a995dSmlcreech	    # There doesn't appear to be a way to prevent this compiler from
5958636a995dSmlcreech	    # explicitly linking system object files so we need to strip them
5959636a995dSmlcreech	    # from the output so that they don't get included in the library
5960636a995dSmlcreech	    # dependencies.
5961636a995dSmlcreech	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "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 "X$list" | $Xsed'
5962636a995dSmlcreech	    ;;
5963636a995dSmlcreech	  xl*)
5964636a995dSmlcreech	    # IBM XL 8.0 on PPC, with GNU ld
5965636a995dSmlcreech	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5966636a995dSmlcreech	    _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5967636a995dSmlcreech	    _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5968636a995dSmlcreech	    if test "x$supports_anon_versioning" = xyes; then
5969636a995dSmlcreech	      _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
5970636a995dSmlcreech		cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5971636a995dSmlcreech		echo "local: *; };" >> $output_objdir/$libname.ver~
5972636a995dSmlcreech		$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5973636a995dSmlcreech	    fi
5974636a995dSmlcreech	    ;;
5975636a995dSmlcreech	  *)
5976636a995dSmlcreech	    case `$CC -V 2>&1 | sed 5q` in
5977636a995dSmlcreech	    *Sun\ C*)
5978636a995dSmlcreech	      # Sun C++ 5.9
5979636a995dSmlcreech	      _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
5980636a995dSmlcreech	      _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5981636a995dSmlcreech	      _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
5982636a995dSmlcreech	      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5983636a995dSmlcreech	      _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
5984636a995dSmlcreech	      _LT_TAGVAR(compiler_needs_object, $1)=yes
5985636a995dSmlcreech
5986636a995dSmlcreech	      # Not sure whether something based on
5987636a995dSmlcreech	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
5988636a995dSmlcreech	      # would be better.
5989636a995dSmlcreech	      output_verbose_link_cmd='echo'
5990636a995dSmlcreech
5991636a995dSmlcreech	      # Archives containing C++ object files must be created using
5992636a995dSmlcreech	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
5993636a995dSmlcreech	      # necessary to make sure instantiated templates are included
5994636a995dSmlcreech	      # in the archive.
5995636a995dSmlcreech	      _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
5996636a995dSmlcreech	      ;;
5997636a995dSmlcreech	    esac
5998636a995dSmlcreech	    ;;
5999636a995dSmlcreech	esac
6000636a995dSmlcreech	;;
6001636a995dSmlcreech
6002636a995dSmlcreech      lynxos*)
6003636a995dSmlcreech        # FIXME: insert proper C++ library support
6004636a995dSmlcreech	_LT_TAGVAR(ld_shlibs, $1)=no
6005636a995dSmlcreech	;;
6006636a995dSmlcreech
6007636a995dSmlcreech      m88k*)
6008636a995dSmlcreech        # FIXME: insert proper C++ library support
6009636a995dSmlcreech        _LT_TAGVAR(ld_shlibs, $1)=no
6010636a995dSmlcreech	;;
6011636a995dSmlcreech
6012636a995dSmlcreech      mvs*)
6013636a995dSmlcreech        case $cc_basename in
6014636a995dSmlcreech          cxx*)
6015636a995dSmlcreech	    # FIXME: insert proper C++ library support
6016636a995dSmlcreech	    _LT_TAGVAR(ld_shlibs, $1)=no
6017636a995dSmlcreech	    ;;
6018636a995dSmlcreech	  *)
6019636a995dSmlcreech	    # FIXME: insert proper C++ library support
6020636a995dSmlcreech	    _LT_TAGVAR(ld_shlibs, $1)=no
6021636a995dSmlcreech	    ;;
6022636a995dSmlcreech	esac
6023636a995dSmlcreech	;;
6024636a995dSmlcreech
6025636a995dSmlcreech      netbsd*)
6026636a995dSmlcreech        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
6027636a995dSmlcreech	  _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
6028636a995dSmlcreech	  wlarc=
6029636a995dSmlcreech	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6030636a995dSmlcreech	  _LT_TAGVAR(hardcode_direct, $1)=yes
6031636a995dSmlcreech	  _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6032636a995dSmlcreech	fi
6033636a995dSmlcreech	# Workaround some broken pre-1.5 toolchains
6034636a995dSmlcreech	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
6035636a995dSmlcreech	;;
6036636a995dSmlcreech
6037636a995dSmlcreech      *nto* | *qnx*)
6038636a995dSmlcreech        _LT_TAGVAR(ld_shlibs, $1)=yes
6039636a995dSmlcreech	;;
6040636a995dSmlcreech
6041636a995dSmlcreech      openbsd2*)
6042636a995dSmlcreech        # C++ shared libraries are fairly broken
6043636a995dSmlcreech	_LT_TAGVAR(ld_shlibs, $1)=no
6044636a995dSmlcreech	;;
6045636a995dSmlcreech
6046636a995dSmlcreech      openbsd*)
6047636a995dSmlcreech	if test -f /usr/libexec/ld.so; then
6048636a995dSmlcreech	  _LT_TAGVAR(hardcode_direct, $1)=yes
6049636a995dSmlcreech	  _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6050636a995dSmlcreech	  _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6051636a995dSmlcreech	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
6052636a995dSmlcreech	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6053636a995dSmlcreech	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6054636a995dSmlcreech	    _LT_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'
6055636a995dSmlcreech	    _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6056636a995dSmlcreech	    _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6057636a995dSmlcreech	  fi
6058636a995dSmlcreech	  output_verbose_link_cmd=echo
6059636a995dSmlcreech	else
6060636a995dSmlcreech	  _LT_TAGVAR(ld_shlibs, $1)=no
6061636a995dSmlcreech	fi
6062636a995dSmlcreech	;;
6063636a995dSmlcreech
6064636a995dSmlcreech      osf3* | osf4* | osf5*)
6065636a995dSmlcreech        case $cc_basename in
6066636a995dSmlcreech          KCC*)
6067636a995dSmlcreech	    # Kuck and Associates, Inc. (KAI) C++ Compiler
6068636a995dSmlcreech
6069636a995dSmlcreech	    # KCC will only create a shared library if the output file
6070636a995dSmlcreech	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
6071636a995dSmlcreech	    # to its proper name (with version) after linking.
6072636a995dSmlcreech	    _LT_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'
6073636a995dSmlcreech
6074636a995dSmlcreech	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6075636a995dSmlcreech	    _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6076636a995dSmlcreech
6077636a995dSmlcreech	    # Archives containing C++ object files must be created using
6078636a995dSmlcreech	    # the KAI C++ compiler.
6079636a995dSmlcreech	    case $host in
6080636a995dSmlcreech	      osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
6081636a995dSmlcreech	      *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
6082636a995dSmlcreech	    esac
6083636a995dSmlcreech	    ;;
6084636a995dSmlcreech          RCC*)
6085636a995dSmlcreech	    # Rational C++ 2.4.1
6086636a995dSmlcreech	    # FIXME: insert proper C++ library support
6087636a995dSmlcreech	    _LT_TAGVAR(ld_shlibs, $1)=no
6088636a995dSmlcreech	    ;;
6089636a995dSmlcreech          cxx*)
6090636a995dSmlcreech	    case $host in
6091636a995dSmlcreech	      osf3*)
6092636a995dSmlcreech	        _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6093636a995dSmlcreech	        _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
6094636a995dSmlcreech	        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6095636a995dSmlcreech		;;
6096636a995dSmlcreech	      *)
6097636a995dSmlcreech	        _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6098636a995dSmlcreech	        _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
6099636a995dSmlcreech	        _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
6100636a995dSmlcreech	          echo "-hidden">> $lib.exp~
6101636a995dSmlcreech	          $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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
6102636a995dSmlcreech	          $RM $lib.exp'
6103636a995dSmlcreech	        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6104636a995dSmlcreech		;;
6105636a995dSmlcreech	    esac
6106636a995dSmlcreech
6107636a995dSmlcreech	    _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6108636a995dSmlcreech
6109636a995dSmlcreech	    # Commands to make compiler produce verbose output that lists
6110636a995dSmlcreech	    # what "hidden" libraries, object files and flags are used when
6111636a995dSmlcreech	    # linking a shared library.
6112636a995dSmlcreech	    #
6113636a995dSmlcreech	    # There doesn't appear to be a way to prevent this compiler from
6114636a995dSmlcreech	    # explicitly linking system object files so we need to strip them
6115636a995dSmlcreech	    # from the output so that they don't get included in the library
6116636a995dSmlcreech	    # dependencies.
6117636a995dSmlcreech	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "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 "X$list" | $Xsed'
6118636a995dSmlcreech	    ;;
6119636a995dSmlcreech	  *)
6120636a995dSmlcreech	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6121636a995dSmlcreech	      _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6122636a995dSmlcreech	      case $host in
6123636a995dSmlcreech	        osf3*)
6124636a995dSmlcreech	          _LT_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 "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6125636a995dSmlcreech		  ;;
6126636a995dSmlcreech	        *)
6127636a995dSmlcreech	          _LT_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" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6128636a995dSmlcreech		  ;;
6129636a995dSmlcreech	      esac
6130636a995dSmlcreech
6131636a995dSmlcreech	      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6132636a995dSmlcreech	      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6133636a995dSmlcreech
6134636a995dSmlcreech	      # Commands to make compiler produce verbose output that lists
6135636a995dSmlcreech	      # what "hidden" libraries, object files and flags are used when
6136636a995dSmlcreech	      # linking a shared library.
6137636a995dSmlcreech	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6138636a995dSmlcreech
6139636a995dSmlcreech	    else
6140636a995dSmlcreech	      # FIXME: insert proper C++ library support
6141636a995dSmlcreech	      _LT_TAGVAR(ld_shlibs, $1)=no
6142636a995dSmlcreech	    fi
6143636a995dSmlcreech	    ;;
6144636a995dSmlcreech        esac
6145636a995dSmlcreech        ;;
6146636a995dSmlcreech
6147636a995dSmlcreech      psos*)
6148636a995dSmlcreech        # FIXME: insert proper C++ library support
6149636a995dSmlcreech        _LT_TAGVAR(ld_shlibs, $1)=no
6150636a995dSmlcreech        ;;
6151636a995dSmlcreech
6152636a995dSmlcreech      sunos4*)
6153636a995dSmlcreech        case $cc_basename in
6154636a995dSmlcreech          CC*)
6155636a995dSmlcreech	    # Sun C++ 4.x
6156636a995dSmlcreech	    # FIXME: insert proper C++ library support
6157636a995dSmlcreech	    _LT_TAGVAR(ld_shlibs, $1)=no
6158636a995dSmlcreech	    ;;
6159636a995dSmlcreech          lcc*)
6160636a995dSmlcreech	    # Lucid
6161636a995dSmlcreech	    # FIXME: insert proper C++ library support
6162636a995dSmlcreech	    _LT_TAGVAR(ld_shlibs, $1)=no
6163636a995dSmlcreech	    ;;
6164636a995dSmlcreech          *)
6165636a995dSmlcreech	    # FIXME: insert proper C++ library support
6166636a995dSmlcreech	    _LT_TAGVAR(ld_shlibs, $1)=no
6167636a995dSmlcreech	    ;;
6168636a995dSmlcreech        esac
6169636a995dSmlcreech        ;;
6170636a995dSmlcreech
6171636a995dSmlcreech      solaris*)
6172636a995dSmlcreech        case $cc_basename in
6173636a995dSmlcreech          CC*)
6174636a995dSmlcreech	    # Sun C++ 4.2, 5.x and Centerline C++
6175636a995dSmlcreech            _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
6176636a995dSmlcreech	    _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
6177636a995dSmlcreech	    _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6178636a995dSmlcreech	    _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6179636a995dSmlcreech	      $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'
6180636a995dSmlcreech
6181636a995dSmlcreech	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6182636a995dSmlcreech	    _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6183636a995dSmlcreech	    case $host_os in
6184636a995dSmlcreech	      solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6185636a995dSmlcreech	      *)
6186636a995dSmlcreech		# The compiler driver will combine and reorder linker options,
6187636a995dSmlcreech		# but understands `-z linker_flag'.
6188636a995dSmlcreech	        # Supported since Solaris 2.6 (maybe 2.5.1?)
6189636a995dSmlcreech		_LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
6190636a995dSmlcreech	        ;;
6191636a995dSmlcreech	    esac
6192636a995dSmlcreech	    _LT_TAGVAR(link_all_deplibs, $1)=yes
6193636a995dSmlcreech
6194636a995dSmlcreech	    output_verbose_link_cmd='echo'
6195636a995dSmlcreech
6196636a995dSmlcreech	    # Archives containing C++ object files must be created using
6197636a995dSmlcreech	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
6198636a995dSmlcreech	    # necessary to make sure instantiated templates are included
6199636a995dSmlcreech	    # in the archive.
6200636a995dSmlcreech	    _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
6201636a995dSmlcreech	    ;;
6202636a995dSmlcreech          gcx*)
6203636a995dSmlcreech	    # Green Hills C++ Compiler
6204636a995dSmlcreech	    _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6205636a995dSmlcreech
6206636a995dSmlcreech	    # The C++ compiler must be used to create the archive.
6207636a995dSmlcreech	    _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
6208636a995dSmlcreech	    ;;
6209636a995dSmlcreech          *)
6210636a995dSmlcreech	    # GNU C++ compiler with Solaris linker
6211636a995dSmlcreech	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6212636a995dSmlcreech	      _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
6213636a995dSmlcreech	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
6214636a995dSmlcreech	        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6215636a995dSmlcreech	        _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6216636a995dSmlcreech		  $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
6217636a995dSmlcreech
6218636a995dSmlcreech	        # Commands to make compiler produce verbose output that lists
6219636a995dSmlcreech	        # what "hidden" libraries, object files and flags are used when
6220636a995dSmlcreech	        # linking a shared library.
6221636a995dSmlcreech	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6222636a995dSmlcreech	      else
6223636a995dSmlcreech	        # g++ 2.7 appears to require `-G' NOT `-shared' on this
6224636a995dSmlcreech	        # platform.
6225636a995dSmlcreech	        _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6226636a995dSmlcreech	        _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6227636a995dSmlcreech		  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
6228636a995dSmlcreech
6229636a995dSmlcreech	        # Commands to make compiler produce verbose output that lists
6230636a995dSmlcreech	        # what "hidden" libraries, object files and flags are used when
6231636a995dSmlcreech	        # linking a shared library.
6232636a995dSmlcreech	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6233636a995dSmlcreech	      fi
6234636a995dSmlcreech
6235636a995dSmlcreech	      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
6236636a995dSmlcreech	      case $host_os in
6237636a995dSmlcreech		solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6238636a995dSmlcreech		*)
6239636a995dSmlcreech		  _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
6240636a995dSmlcreech		  ;;
6241636a995dSmlcreech	      esac
6242636a995dSmlcreech	    fi
6243636a995dSmlcreech	    ;;
6244636a995dSmlcreech        esac
6245636a995dSmlcreech        ;;
6246636a995dSmlcreech
6247636a995dSmlcreech    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
6248636a995dSmlcreech      _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6249636a995dSmlcreech      _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6250636a995dSmlcreech      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6251636a995dSmlcreech      runpath_var='LD_RUN_PATH'
6252636a995dSmlcreech
6253636a995dSmlcreech      case $cc_basename in
6254636a995dSmlcreech        CC*)
6255636a995dSmlcreech	  _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6256636a995dSmlcreech	  _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6257636a995dSmlcreech	  ;;
6258636a995dSmlcreech	*)
6259636a995dSmlcreech	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6260636a995dSmlcreech	  _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6261636a995dSmlcreech	  ;;
6262636a995dSmlcreech      esac
6263636a995dSmlcreech      ;;
6264636a995dSmlcreech
6265636a995dSmlcreech      sysv5* | sco3.2v5* | sco5v6*)
6266636a995dSmlcreech	# Note: We can NOT use -z defs as we might desire, because we do not
6267636a995dSmlcreech	# link with -lc, and that would cause any symbols used from libc to
6268636a995dSmlcreech	# always be unresolved, which means just about no library would
6269636a995dSmlcreech	# ever link correctly.  If we're not using GNU ld we use -z text
6270636a995dSmlcreech	# though, which does catch some bad symbols but isn't as heavy-handed
6271636a995dSmlcreech	# as -z defs.
6272636a995dSmlcreech	_LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6273636a995dSmlcreech	_LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
6274636a995dSmlcreech	_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6275636a995dSmlcreech	_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6276636a995dSmlcreech	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
6277636a995dSmlcreech	_LT_TAGVAR(hardcode_libdir_separator, $1)=':'
6278636a995dSmlcreech	_LT_TAGVAR(link_all_deplibs, $1)=yes
6279636a995dSmlcreech	_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
6280636a995dSmlcreech	runpath_var='LD_RUN_PATH'
6281636a995dSmlcreech
6282636a995dSmlcreech	case $cc_basename in
6283636a995dSmlcreech          CC*)
6284636a995dSmlcreech	    _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6285636a995dSmlcreech	    _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6286636a995dSmlcreech	    ;;
6287636a995dSmlcreech	  *)
6288636a995dSmlcreech	    _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6289636a995dSmlcreech	    _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6290636a995dSmlcreech	    ;;
6291636a995dSmlcreech	esac
6292636a995dSmlcreech      ;;
6293636a995dSmlcreech
6294636a995dSmlcreech      tandem*)
6295636a995dSmlcreech        case $cc_basename in
6296636a995dSmlcreech          NCC*)
6297636a995dSmlcreech	    # NonStop-UX NCC 3.20
6298636a995dSmlcreech	    # FIXME: insert proper C++ library support
6299636a995dSmlcreech	    _LT_TAGVAR(ld_shlibs, $1)=no
6300636a995dSmlcreech	    ;;
6301636a995dSmlcreech          *)
6302636a995dSmlcreech	    # FIXME: insert proper C++ library support
6303636a995dSmlcreech	    _LT_TAGVAR(ld_shlibs, $1)=no
6304636a995dSmlcreech	    ;;
6305636a995dSmlcreech        esac
6306636a995dSmlcreech        ;;
6307636a995dSmlcreech
6308636a995dSmlcreech      vxworks*)
6309636a995dSmlcreech        # FIXME: insert proper C++ library support
6310636a995dSmlcreech        _LT_TAGVAR(ld_shlibs, $1)=no
6311636a995dSmlcreech        ;;
6312636a995dSmlcreech
6313636a995dSmlcreech      *)
6314636a995dSmlcreech        # FIXME: insert proper C++ library support
6315636a995dSmlcreech        _LT_TAGVAR(ld_shlibs, $1)=no
6316636a995dSmlcreech        ;;
6317636a995dSmlcreech    esac
6318636a995dSmlcreech
6319636a995dSmlcreech    AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
6320636a995dSmlcreech    test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
6321636a995dSmlcreech
6322636a995dSmlcreech    _LT_TAGVAR(GCC, $1)="$GXX"
6323636a995dSmlcreech    _LT_TAGVAR(LD, $1)="$LD"
6324636a995dSmlcreech
6325636a995dSmlcreech    ## CAVEAT EMPTOR:
6326636a995dSmlcreech    ## There is no encapsulation within the following macros, do not change
6327636a995dSmlcreech    ## the running order or otherwise move them around unless you know exactly
6328636a995dSmlcreech    ## what you are doing...
6329636a995dSmlcreech    _LT_SYS_HIDDEN_LIBDEPS($1)
6330636a995dSmlcreech    _LT_COMPILER_PIC($1)
6331636a995dSmlcreech    _LT_COMPILER_C_O($1)
6332636a995dSmlcreech    _LT_COMPILER_FILE_LOCKS($1)
6333636a995dSmlcreech    _LT_LINKER_SHLIBS($1)
6334636a995dSmlcreech    _LT_SYS_DYNAMIC_LINKER($1)
6335636a995dSmlcreech    _LT_LINKER_HARDCODE_LIBPATH($1)
6336636a995dSmlcreech
6337636a995dSmlcreech    _LT_CONFIG($1)
6338636a995dSmlcreech  fi # test -n "$compiler"
6339636a995dSmlcreech
6340636a995dSmlcreech  CC=$lt_save_CC
6341636a995dSmlcreech  LDCXX=$LD
6342636a995dSmlcreech  LD=$lt_save_LD
6343636a995dSmlcreech  GCC=$lt_save_GCC
6344636a995dSmlcreech  with_gnu_ld=$lt_save_with_gnu_ld
6345636a995dSmlcreech  lt_cv_path_LDCXX=$lt_cv_path_LD
6346636a995dSmlcreech  lt_cv_path_LD=$lt_save_path_LD
6347636a995dSmlcreech  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
6348636a995dSmlcreech  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
6349636a995dSmlcreechfi # test "$_lt_caught_CXX_error" != yes
6350636a995dSmlcreech
6351636a995dSmlcreechAC_LANG_POP
6352636a995dSmlcreech])# _LT_LANG_CXX_CONFIG
6353636a995dSmlcreech
6354636a995dSmlcreech
6355636a995dSmlcreech# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
63569bc8b93fSa.rottmann# ---------------------------------
6357636a995dSmlcreech# Figure out "hidden" library dependencies from verbose
6358636a995dSmlcreech# compiler output when linking a shared library.
6359636a995dSmlcreech# Parse the compiler output and extract the necessary
6360636a995dSmlcreech# objects, libraries and library flags.
6361636a995dSmlcreechm4_defun([_LT_SYS_HIDDEN_LIBDEPS],
6362636a995dSmlcreech[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
6363636a995dSmlcreech# Dependencies to place before and after the object being linked:
6364636a995dSmlcreech_LT_TAGVAR(predep_objects, $1)=
6365636a995dSmlcreech_LT_TAGVAR(postdep_objects, $1)=
6366636a995dSmlcreech_LT_TAGVAR(predeps, $1)=
6367636a995dSmlcreech_LT_TAGVAR(postdeps, $1)=
6368636a995dSmlcreech_LT_TAGVAR(compiler_lib_search_path, $1)=
6369636a995dSmlcreech
6370636a995dSmlcreechdnl we can't use the lt_simple_compile_test_code here,
6371636a995dSmlcreechdnl because it contains code intended for an executable,
6372636a995dSmlcreechdnl not a library.  It's possible we should let each
6373636a995dSmlcreechdnl tag define a new lt_????_link_test_code variable,
6374636a995dSmlcreechdnl but it's only used here...
6375636a995dSmlcreechm4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
6376636a995dSmlcreechint a;
6377636a995dSmlcreechvoid foo (void) { a = 0; }
6378636a995dSmlcreech_LT_EOF
6379636a995dSmlcreech], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
6380636a995dSmlcreechclass Foo
6381636a995dSmlcreech{
6382636a995dSmlcreechpublic:
6383636a995dSmlcreech  Foo (void) { a = 0; }
6384636a995dSmlcreechprivate:
6385636a995dSmlcreech  int a;
6386636a995dSmlcreech};
6387636a995dSmlcreech_LT_EOF
6388636a995dSmlcreech], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
6389636a995dSmlcreech      subroutine foo
6390636a995dSmlcreech      implicit none
6391636a995dSmlcreech      integer*4 a
6392636a995dSmlcreech      a=0
6393636a995dSmlcreech      return
6394636a995dSmlcreech      end
6395636a995dSmlcreech_LT_EOF
6396636a995dSmlcreech], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
6397636a995dSmlcreech      subroutine foo
6398636a995dSmlcreech      implicit none
6399636a995dSmlcreech      integer a
6400636a995dSmlcreech      a=0
6401636a995dSmlcreech      return
6402636a995dSmlcreech      end
6403636a995dSmlcreech_LT_EOF
6404636a995dSmlcreech], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
6405636a995dSmlcreechpublic class foo {
6406636a995dSmlcreech  private int a;
6407636a995dSmlcreech  public void bar (void) {
6408636a995dSmlcreech    a = 0;
6409636a995dSmlcreech  }
6410636a995dSmlcreech};
6411636a995dSmlcreech_LT_EOF
6412636a995dSmlcreech])
6413636a995dSmlcreechdnl Parse the compiler output and extract the necessary
6414636a995dSmlcreechdnl objects, libraries and library flags.
6415636a995dSmlcreechif AC_TRY_EVAL(ac_compile); then
6416636a995dSmlcreech  # Parse the compiler output and extract the necessary
6417636a995dSmlcreech  # objects, libraries and library flags.
6418636a995dSmlcreech
6419636a995dSmlcreech  # Sentinel used to keep track of whether or not we are before
6420636a995dSmlcreech  # the conftest object file.
6421636a995dSmlcreech  pre_test_object_deps_done=no
6422636a995dSmlcreech
6423636a995dSmlcreech  for p in `eval "$output_verbose_link_cmd"`; do
6424636a995dSmlcreech    case $p in
6425636a995dSmlcreech
6426636a995dSmlcreech    -L* | -R* | -l*)
6427636a995dSmlcreech       # Some compilers place space between "-{L,R}" and the path.
6428636a995dSmlcreech       # Remove the space.
6429636a995dSmlcreech       if test $p = "-L" ||
6430636a995dSmlcreech          test $p = "-R"; then
6431636a995dSmlcreech	 prev=$p
6432636a995dSmlcreech	 continue
6433636a995dSmlcreech       else
6434636a995dSmlcreech	 prev=
6435636a995dSmlcreech       fi
6436636a995dSmlcreech
6437636a995dSmlcreech       if test "$pre_test_object_deps_done" = no; then
6438636a995dSmlcreech	 case $p in
6439636a995dSmlcreech	 -L* | -R*)
6440636a995dSmlcreech	   # Internal compiler library paths should come after those
6441636a995dSmlcreech	   # provided the user.  The postdeps already come after the
6442636a995dSmlcreech	   # user supplied libs so there is no need to process them.
6443636a995dSmlcreech	   if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
6444636a995dSmlcreech	     _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
6445636a995dSmlcreech	   else
6446636a995dSmlcreech	     _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
6447636a995dSmlcreech	   fi
6448636a995dSmlcreech	   ;;
6449636a995dSmlcreech	 # The "-l" case would never come before the object being
6450636a995dSmlcreech	 # linked, so don't bother handling this case.
6451636a995dSmlcreech	 esac
6452636a995dSmlcreech       else
6453636a995dSmlcreech	 if test -z "$_LT_TAGVAR(postdeps, $1)"; then
6454636a995dSmlcreech	   _LT_TAGVAR(postdeps, $1)="${prev}${p}"
6455636a995dSmlcreech	 else
6456636a995dSmlcreech	   _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
6457636a995dSmlcreech	 fi
6458636a995dSmlcreech       fi
6459636a995dSmlcreech       ;;
6460636a995dSmlcreech
6461636a995dSmlcreech    *.$objext)
6462636a995dSmlcreech       # This assumes that the test object file only shows up
6463636a995dSmlcreech       # once in the compiler output.
6464636a995dSmlcreech       if test "$p" = "conftest.$objext"; then
6465636a995dSmlcreech	 pre_test_object_deps_done=yes
6466636a995dSmlcreech	 continue
6467636a995dSmlcreech       fi
6468636a995dSmlcreech
6469636a995dSmlcreech       if test "$pre_test_object_deps_done" = no; then
6470636a995dSmlcreech	 if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
6471636a995dSmlcreech	   _LT_TAGVAR(predep_objects, $1)="$p"
6472636a995dSmlcreech	 else
6473636a995dSmlcreech	   _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
6474636a995dSmlcreech	 fi
6475636a995dSmlcreech       else
6476636a995dSmlcreech	 if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
6477636a995dSmlcreech	   _LT_TAGVAR(postdep_objects, $1)="$p"
6478636a995dSmlcreech	 else
6479636a995dSmlcreech	   _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
6480636a995dSmlcreech	 fi
6481636a995dSmlcreech       fi
6482636a995dSmlcreech       ;;
6483636a995dSmlcreech
6484636a995dSmlcreech    *) ;; # Ignore the rest.
6485636a995dSmlcreech
6486636a995dSmlcreech    esac
6487636a995dSmlcreech  done
6488636a995dSmlcreech
6489636a995dSmlcreech  # Clean up.
6490636a995dSmlcreech  rm -f a.out a.exe
6491636a995dSmlcreechelse
6492636a995dSmlcreech  echo "libtool.m4: error: problem compiling $1 test program"
6493636a995dSmlcreechfi
6494636a995dSmlcreech
6495636a995dSmlcreech$RM -f confest.$objext
6496636a995dSmlcreech
6497636a995dSmlcreech# PORTME: override above test on systems where it is broken
6498636a995dSmlcreechm4_if([$1], [CXX],
6499636a995dSmlcreech[case $host_os in
6500636a995dSmlcreechinterix[[3-9]]*)
6501636a995dSmlcreech  # Interix 3.5 installs completely hosed .la files for C++, so rather than
6502636a995dSmlcreech  # hack all around it, let's just trust "g++" to DTRT.
6503636a995dSmlcreech  _LT_TAGVAR(predep_objects,$1)=
6504636a995dSmlcreech  _LT_TAGVAR(postdep_objects,$1)=
6505636a995dSmlcreech  _LT_TAGVAR(postdeps,$1)=
6506636a995dSmlcreech  ;;
6507636a995dSmlcreech
6508636a995dSmlcreechlinux*)
6509636a995dSmlcreech  case `$CC -V 2>&1 | sed 5q` in
6510636a995dSmlcreech  *Sun\ C*)
6511636a995dSmlcreech    # Sun C++ 5.9
6512636a995dSmlcreech
6513636a995dSmlcreech    # The more standards-conforming stlport4 library is
6514636a995dSmlcreech    # incompatible with the Cstd library. Avoid specifying
6515636a995dSmlcreech    # it if it's in CXXFLAGS. Ignore libCrun as
6516636a995dSmlcreech    # -library=stlport4 depends on it.
6517636a995dSmlcreech    case " $CXX $CXXFLAGS " in
6518636a995dSmlcreech    *" -library=stlport4 "*)
6519636a995dSmlcreech      solaris_use_stlport4=yes
6520636a995dSmlcreech      ;;
6521636a995dSmlcreech    esac
6522636a995dSmlcreech
6523636a995dSmlcreech    if test "$solaris_use_stlport4" != yes; then
6524636a995dSmlcreech      _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
6525636a995dSmlcreech    fi
6526636a995dSmlcreech    ;;
6527636a995dSmlcreech  esac
6528636a995dSmlcreech  ;;
6529636a995dSmlcreech
6530636a995dSmlcreechsolaris*)
6531636a995dSmlcreech  case $cc_basename in
6532636a995dSmlcreech  CC*)
6533636a995dSmlcreech    # The more standards-conforming stlport4 library is
6534636a995dSmlcreech    # incompatible with the Cstd library. Avoid specifying
6535636a995dSmlcreech    # it if it's in CXXFLAGS. Ignore libCrun as
6536636a995dSmlcreech    # -library=stlport4 depends on it.
6537636a995dSmlcreech    case " $CXX $CXXFLAGS " in
6538636a995dSmlcreech    *" -library=stlport4 "*)
6539636a995dSmlcreech      solaris_use_stlport4=yes
6540636a995dSmlcreech      ;;
6541636a995dSmlcreech    esac
6542636a995dSmlcreech
6543636a995dSmlcreech    # Adding this requires a known-good setup of shared libraries for
6544636a995dSmlcreech    # Sun compiler versions before 5.6, else PIC objects from an old
6545636a995dSmlcreech    # archive will be linked into the output, leading to subtle bugs.
6546636a995dSmlcreech    if test "$solaris_use_stlport4" != yes; then
6547636a995dSmlcreech      _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
6548636a995dSmlcreech    fi
6549636a995dSmlcreech    ;;
6550636a995dSmlcreech  esac
6551636a995dSmlcreech  ;;
6552636a995dSmlcreechesac
6553636a995dSmlcreech])
6554636a995dSmlcreech
6555636a995dSmlcreechcase " $_LT_TAGVAR(postdeps, $1) " in
6556636a995dSmlcreech*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
6557636a995dSmlcreechesac
6558636a995dSmlcreech _LT_TAGVAR(compiler_lib_search_dirs, $1)=
6559636a995dSmlcreechif test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
6560636a995dSmlcreech _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
6561636a995dSmlcreechfi
6562636a995dSmlcreech_LT_TAGDECL([], [compiler_lib_search_dirs], [1],
6563636a995dSmlcreech    [The directories searched by this compiler when creating a shared library])
6564636a995dSmlcreech_LT_TAGDECL([], [predep_objects], [1],
6565636a995dSmlcreech    [Dependencies to place before and after the objects being linked to
6566636a995dSmlcreech    create a shared library])
6567636a995dSmlcreech_LT_TAGDECL([], [postdep_objects], [1])
6568636a995dSmlcreech_LT_TAGDECL([], [predeps], [1])
6569636a995dSmlcreech_LT_TAGDECL([], [postdeps], [1])
6570636a995dSmlcreech_LT_TAGDECL([], [compiler_lib_search_path], [1],
6571636a995dSmlcreech    [The library search path used internally by the compiler when linking
6572636a995dSmlcreech    a shared library])
6573636a995dSmlcreech])# _LT_SYS_HIDDEN_LIBDEPS
657462507b65Sa.rottmann
657571eb93eaSdrh
6576636a995dSmlcreech# _LT_PROG_F77
6577636a995dSmlcreech# ------------
6578636a995dSmlcreech# Since AC_PROG_F77 is broken, in that it returns the empty string
6579636a995dSmlcreech# if there is no fortran compiler, we have our own version here.
6580636a995dSmlcreechm4_defun([_LT_PROG_F77],
6581636a995dSmlcreech[
6582636a995dSmlcreechpushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
6583636a995dSmlcreechAC_PROG_F77
6584636a995dSmlcreechif test -z "$F77" || test "X$F77" = "Xno"; then
6585636a995dSmlcreech  _lt_disable_F77=yes
6586636a995dSmlcreechfi
6587636a995dSmlcreechpopdef([AC_MSG_ERROR])
6588636a995dSmlcreech])# _LT_PROG_F77
658971eb93eaSdrh
6590636a995dSmlcreechdnl aclocal-1.4 backwards compatibility:
6591636a995dSmlcreechdnl AC_DEFUN([_LT_PROG_F77], [])
659271eb93eaSdrh
6593636a995dSmlcreech
6594636a995dSmlcreech# _LT_LANG_F77_CONFIG([TAG])
6595636a995dSmlcreech# --------------------------
6596636a995dSmlcreech# Ensure that the configuration variables for a Fortran 77 compiler are
6597636a995dSmlcreech# suitably defined.  These variables are subsequently used by _LT_CONFIG
6598636a995dSmlcreech# to write the compiler configuration to `libtool'.
6599636a995dSmlcreechm4_defun([_LT_LANG_F77_CONFIG],
6600636a995dSmlcreech[AC_REQUIRE([_LT_PROG_F77])dnl
6601636a995dSmlcreechAC_LANG_PUSH(Fortran 77)
6602636a995dSmlcreech
6603636a995dSmlcreech_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6604636a995dSmlcreech_LT_TAGVAR(allow_undefined_flag, $1)=
6605636a995dSmlcreech_LT_TAGVAR(always_export_symbols, $1)=no
6606636a995dSmlcreech_LT_TAGVAR(archive_expsym_cmds, $1)=
6607636a995dSmlcreech_LT_TAGVAR(export_dynamic_flag_spec, $1)=
6608636a995dSmlcreech_LT_TAGVAR(hardcode_direct, $1)=no
6609636a995dSmlcreech_LT_TAGVAR(hardcode_direct_absolute, $1)=no
6610636a995dSmlcreech_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
6611636a995dSmlcreech_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
6612636a995dSmlcreech_LT_TAGVAR(hardcode_libdir_separator, $1)=
6613636a995dSmlcreech_LT_TAGVAR(hardcode_minus_L, $1)=no
6614636a995dSmlcreech_LT_TAGVAR(hardcode_automatic, $1)=no
6615636a995dSmlcreech_LT_TAGVAR(inherit_rpath, $1)=no
6616636a995dSmlcreech_LT_TAGVAR(module_cmds, $1)=
6617636a995dSmlcreech_LT_TAGVAR(module_expsym_cmds, $1)=
6618636a995dSmlcreech_LT_TAGVAR(link_all_deplibs, $1)=unknown
6619636a995dSmlcreech_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
6620636a995dSmlcreech_LT_TAGVAR(no_undefined_flag, $1)=
6621636a995dSmlcreech_LT_TAGVAR(whole_archive_flag_spec, $1)=
6622636a995dSmlcreech_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6623636a995dSmlcreech
6624636a995dSmlcreech# Source file extension for f77 test sources.
6625636a995dSmlcreechac_ext=f
6626636a995dSmlcreech
6627636a995dSmlcreech# Object file extension for compiled f77 test sources.
6628636a995dSmlcreechobjext=o
6629636a995dSmlcreech_LT_TAGVAR(objext, $1)=$objext
6630636a995dSmlcreech
6631636a995dSmlcreech# No sense in running all these tests if we already determined that
6632636a995dSmlcreech# the F77 compiler isn't working.  Some variables (like enable_shared)
6633636a995dSmlcreech# are currently assumed to apply to all compilers on this platform,
6634636a995dSmlcreech# and will be corrupted by setting them based on a non-working compiler.
6635636a995dSmlcreechif test "$_lt_disable_F77" != yes; then
6636636a995dSmlcreech  # Code to be used in simple compile tests
6637636a995dSmlcreech  lt_simple_compile_test_code="\
6638636a995dSmlcreech      subroutine t
6639636a995dSmlcreech      return
6640636a995dSmlcreech      end
6641636a995dSmlcreech"
6642636a995dSmlcreech
6643636a995dSmlcreech  # Code to be used in simple link tests
6644636a995dSmlcreech  lt_simple_link_test_code="\
6645636a995dSmlcreech      program t
6646636a995dSmlcreech      end
6647636a995dSmlcreech"
6648636a995dSmlcreech
6649636a995dSmlcreech  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
6650636a995dSmlcreech  _LT_TAG_COMPILER
6651636a995dSmlcreech
6652636a995dSmlcreech  # save warnings/boilerplate of simple test code
6653636a995dSmlcreech  _LT_COMPILER_BOILERPLATE
6654636a995dSmlcreech  _LT_LINKER_BOILERPLATE
6655636a995dSmlcreech
6656636a995dSmlcreech  # Allow CC to be a program name with arguments.
6657636a995dSmlcreech  lt_save_CC="$CC"
6658636a995dSmlcreech  lt_save_GCC=$GCC
6659636a995dSmlcreech  CC=${F77-"f77"}
6660636a995dSmlcreech  compiler=$CC
6661636a995dSmlcreech  _LT_TAGVAR(compiler, $1)=$CC
6662636a995dSmlcreech  _LT_CC_BASENAME([$compiler])
6663636a995dSmlcreech  GCC=$G77
6664636a995dSmlcreech  if test -n "$compiler"; then
6665636a995dSmlcreech    AC_MSG_CHECKING([if libtool supports shared libraries])
6666636a995dSmlcreech    AC_MSG_RESULT([$can_build_shared])
6667636a995dSmlcreech
6668636a995dSmlcreech    AC_MSG_CHECKING([whether to build shared libraries])
6669636a995dSmlcreech    test "$can_build_shared" = "no" && enable_shared=no
6670636a995dSmlcreech
6671636a995dSmlcreech    # On AIX, shared libraries and static libraries use the same namespace, and
6672636a995dSmlcreech    # are all built from PIC.
6673636a995dSmlcreech    case $host_os in
6674636a995dSmlcreech      aix3*)
6675636a995dSmlcreech        test "$enable_shared" = yes && enable_static=no
6676636a995dSmlcreech        if test -n "$RANLIB"; then
6677636a995dSmlcreech          archive_cmds="$archive_cmds~\$RANLIB \$lib"
6678636a995dSmlcreech          postinstall_cmds='$RANLIB $lib'
6679636a995dSmlcreech        fi
6680636a995dSmlcreech        ;;
6681636a995dSmlcreech      aix[[4-9]]*)
6682636a995dSmlcreech	if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6683636a995dSmlcreech	  test "$enable_shared" = yes && enable_static=no
6684636a995dSmlcreech	fi
6685636a995dSmlcreech        ;;
6686636a995dSmlcreech    esac
6687636a995dSmlcreech    AC_MSG_RESULT([$enable_shared])
6688636a995dSmlcreech
6689636a995dSmlcreech    AC_MSG_CHECKING([whether to build static libraries])
6690636a995dSmlcreech    # Make sure either enable_shared or enable_static is yes.
6691636a995dSmlcreech    test "$enable_shared" = yes || enable_static=yes
6692636a995dSmlcreech    AC_MSG_RESULT([$enable_static])
6693636a995dSmlcreech
6694636a995dSmlcreech    _LT_TAGVAR(GCC, $1)="$G77"
6695636a995dSmlcreech    _LT_TAGVAR(LD, $1)="$LD"
6696636a995dSmlcreech
6697636a995dSmlcreech    ## CAVEAT EMPTOR:
6698636a995dSmlcreech    ## There is no encapsulation within the following macros, do not change
6699636a995dSmlcreech    ## the running order or otherwise move them around unless you know exactly
6700636a995dSmlcreech    ## what you are doing...
6701636a995dSmlcreech    _LT_COMPILER_PIC($1)
6702636a995dSmlcreech    _LT_COMPILER_C_O($1)
6703636a995dSmlcreech    _LT_COMPILER_FILE_LOCKS($1)
6704636a995dSmlcreech    _LT_LINKER_SHLIBS($1)
6705636a995dSmlcreech    _LT_SYS_DYNAMIC_LINKER($1)
6706636a995dSmlcreech    _LT_LINKER_HARDCODE_LIBPATH($1)
6707636a995dSmlcreech
6708636a995dSmlcreech    _LT_CONFIG($1)
6709636a995dSmlcreech  fi # test -n "$compiler"
6710636a995dSmlcreech
6711636a995dSmlcreech  GCC=$lt_save_GCC
6712636a995dSmlcreech  CC="$lt_save_CC"
6713636a995dSmlcreechfi # test "$_lt_disable_F77" != yes
6714636a995dSmlcreech
6715636a995dSmlcreechAC_LANG_POP
6716636a995dSmlcreech])# _LT_LANG_F77_CONFIG
6717636a995dSmlcreech
6718636a995dSmlcreech
6719636a995dSmlcreech# _LT_PROG_FC
6720636a995dSmlcreech# -----------
6721636a995dSmlcreech# Since AC_PROG_FC is broken, in that it returns the empty string
6722636a995dSmlcreech# if there is no fortran compiler, we have our own version here.
6723636a995dSmlcreechm4_defun([_LT_PROG_FC],
6724636a995dSmlcreech[
6725636a995dSmlcreechpushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
6726636a995dSmlcreechAC_PROG_FC
6727636a995dSmlcreechif test -z "$FC" || test "X$FC" = "Xno"; then
6728636a995dSmlcreech  _lt_disable_FC=yes
6729636a995dSmlcreechfi
6730636a995dSmlcreechpopdef([AC_MSG_ERROR])
6731636a995dSmlcreech])# _LT_PROG_FC
6732636a995dSmlcreech
6733636a995dSmlcreechdnl aclocal-1.4 backwards compatibility:
6734636a995dSmlcreechdnl AC_DEFUN([_LT_PROG_FC], [])
6735636a995dSmlcreech
6736636a995dSmlcreech
6737636a995dSmlcreech# _LT_LANG_FC_CONFIG([TAG])
6738636a995dSmlcreech# -------------------------
6739636a995dSmlcreech# Ensure that the configuration variables for a Fortran compiler are
6740636a995dSmlcreech# suitably defined.  These variables are subsequently used by _LT_CONFIG
6741636a995dSmlcreech# to write the compiler configuration to `libtool'.
6742636a995dSmlcreechm4_defun([_LT_LANG_FC_CONFIG],
6743636a995dSmlcreech[AC_REQUIRE([_LT_PROG_FC])dnl
6744636a995dSmlcreechAC_LANG_PUSH(Fortran)
6745636a995dSmlcreech
6746636a995dSmlcreech_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6747636a995dSmlcreech_LT_TAGVAR(allow_undefined_flag, $1)=
6748636a995dSmlcreech_LT_TAGVAR(always_export_symbols, $1)=no
6749636a995dSmlcreech_LT_TAGVAR(archive_expsym_cmds, $1)=
6750636a995dSmlcreech_LT_TAGVAR(export_dynamic_flag_spec, $1)=
6751636a995dSmlcreech_LT_TAGVAR(hardcode_direct, $1)=no
6752636a995dSmlcreech_LT_TAGVAR(hardcode_direct_absolute, $1)=no
6753636a995dSmlcreech_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
6754636a995dSmlcreech_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
6755636a995dSmlcreech_LT_TAGVAR(hardcode_libdir_separator, $1)=
6756636a995dSmlcreech_LT_TAGVAR(hardcode_minus_L, $1)=no
6757636a995dSmlcreech_LT_TAGVAR(hardcode_automatic, $1)=no
6758636a995dSmlcreech_LT_TAGVAR(inherit_rpath, $1)=no
6759636a995dSmlcreech_LT_TAGVAR(module_cmds, $1)=
6760636a995dSmlcreech_LT_TAGVAR(module_expsym_cmds, $1)=
6761636a995dSmlcreech_LT_TAGVAR(link_all_deplibs, $1)=unknown
6762636a995dSmlcreech_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
6763636a995dSmlcreech_LT_TAGVAR(no_undefined_flag, $1)=
6764636a995dSmlcreech_LT_TAGVAR(whole_archive_flag_spec, $1)=
6765636a995dSmlcreech_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6766636a995dSmlcreech
6767636a995dSmlcreech# Source file extension for fc test sources.
6768636a995dSmlcreechac_ext=${ac_fc_srcext-f}
6769636a995dSmlcreech
6770636a995dSmlcreech# Object file extension for compiled fc test sources.
6771636a995dSmlcreechobjext=o
6772636a995dSmlcreech_LT_TAGVAR(objext, $1)=$objext
6773636a995dSmlcreech
6774636a995dSmlcreech# No sense in running all these tests if we already determined that
6775636a995dSmlcreech# the FC compiler isn't working.  Some variables (like enable_shared)
6776636a995dSmlcreech# are currently assumed to apply to all compilers on this platform,
6777636a995dSmlcreech# and will be corrupted by setting them based on a non-working compiler.
6778636a995dSmlcreechif test "$_lt_disable_FC" != yes; then
6779636a995dSmlcreech  # Code to be used in simple compile tests
6780636a995dSmlcreech  lt_simple_compile_test_code="\
6781636a995dSmlcreech      subroutine t
6782636a995dSmlcreech      return
6783636a995dSmlcreech      end
6784636a995dSmlcreech"
6785636a995dSmlcreech
6786636a995dSmlcreech  # Code to be used in simple link tests
6787636a995dSmlcreech  lt_simple_link_test_code="\
6788636a995dSmlcreech      program t
6789636a995dSmlcreech      end
6790636a995dSmlcreech"
6791636a995dSmlcreech
6792636a995dSmlcreech  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
6793636a995dSmlcreech  _LT_TAG_COMPILER
6794636a995dSmlcreech
6795636a995dSmlcreech  # save warnings/boilerplate of simple test code
6796636a995dSmlcreech  _LT_COMPILER_BOILERPLATE
6797636a995dSmlcreech  _LT_LINKER_BOILERPLATE
6798636a995dSmlcreech
6799636a995dSmlcreech  # Allow CC to be a program name with arguments.
6800636a995dSmlcreech  lt_save_CC="$CC"
6801636a995dSmlcreech  lt_save_GCC=$GCC
6802636a995dSmlcreech  CC=${FC-"f95"}
6803636a995dSmlcreech  compiler=$CC
6804636a995dSmlcreech  GCC=$ac_cv_fc_compiler_gnu
6805636a995dSmlcreech
6806636a995dSmlcreech  _LT_TAGVAR(compiler, $1)=$CC
6807636a995dSmlcreech  _LT_CC_BASENAME([$compiler])
6808636a995dSmlcreech
6809636a995dSmlcreech  if test -n "$compiler"; then
6810636a995dSmlcreech    AC_MSG_CHECKING([if libtool supports shared libraries])
6811636a995dSmlcreech    AC_MSG_RESULT([$can_build_shared])
6812636a995dSmlcreech
6813636a995dSmlcreech    AC_MSG_CHECKING([whether to build shared libraries])
6814636a995dSmlcreech    test "$can_build_shared" = "no" && enable_shared=no
6815636a995dSmlcreech
6816636a995dSmlcreech    # On AIX, shared libraries and static libraries use the same namespace, and
6817636a995dSmlcreech    # are all built from PIC.
6818636a995dSmlcreech    case $host_os in
6819636a995dSmlcreech      aix3*)
6820636a995dSmlcreech        test "$enable_shared" = yes && enable_static=no
6821636a995dSmlcreech        if test -n "$RANLIB"; then
6822636a995dSmlcreech          archive_cmds="$archive_cmds~\$RANLIB \$lib"
6823636a995dSmlcreech          postinstall_cmds='$RANLIB $lib'
6824636a995dSmlcreech        fi
6825636a995dSmlcreech        ;;
6826636a995dSmlcreech      aix[[4-9]]*)
6827636a995dSmlcreech	if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6828636a995dSmlcreech	  test "$enable_shared" = yes && enable_static=no
6829636a995dSmlcreech	fi
6830636a995dSmlcreech        ;;
6831636a995dSmlcreech    esac
6832636a995dSmlcreech    AC_MSG_RESULT([$enable_shared])
6833636a995dSmlcreech
6834636a995dSmlcreech    AC_MSG_CHECKING([whether to build static libraries])
6835636a995dSmlcreech    # Make sure either enable_shared or enable_static is yes.
6836636a995dSmlcreech    test "$enable_shared" = yes || enable_static=yes
6837636a995dSmlcreech    AC_MSG_RESULT([$enable_static])
6838636a995dSmlcreech
6839636a995dSmlcreech    _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
6840636a995dSmlcreech    _LT_TAGVAR(LD, $1)="$LD"
6841636a995dSmlcreech
6842636a995dSmlcreech    ## CAVEAT EMPTOR:
6843636a995dSmlcreech    ## There is no encapsulation within the following macros, do not change
6844636a995dSmlcreech    ## the running order or otherwise move them around unless you know exactly
6845636a995dSmlcreech    ## what you are doing...
6846636a995dSmlcreech    _LT_SYS_HIDDEN_LIBDEPS($1)
6847636a995dSmlcreech    _LT_COMPILER_PIC($1)
6848636a995dSmlcreech    _LT_COMPILER_C_O($1)
6849636a995dSmlcreech    _LT_COMPILER_FILE_LOCKS($1)
6850636a995dSmlcreech    _LT_LINKER_SHLIBS($1)
6851636a995dSmlcreech    _LT_SYS_DYNAMIC_LINKER($1)
6852636a995dSmlcreech    _LT_LINKER_HARDCODE_LIBPATH($1)
6853636a995dSmlcreech
6854636a995dSmlcreech    _LT_CONFIG($1)
6855636a995dSmlcreech  fi # test -n "$compiler"
6856636a995dSmlcreech
6857636a995dSmlcreech  GCC=$lt_save_GCC
6858636a995dSmlcreech  CC="$lt_save_CC"
6859636a995dSmlcreechfi # test "$_lt_disable_FC" != yes
6860636a995dSmlcreech
6861636a995dSmlcreechAC_LANG_POP
6862636a995dSmlcreech])# _LT_LANG_FC_CONFIG
6863636a995dSmlcreech
6864636a995dSmlcreech
6865636a995dSmlcreech# _LT_LANG_GCJ_CONFIG([TAG])
6866636a995dSmlcreech# --------------------------
6867636a995dSmlcreech# Ensure that the configuration variables for the GNU Java Compiler compiler
6868636a995dSmlcreech# are suitably defined.  These variables are subsequently used by _LT_CONFIG
6869636a995dSmlcreech# to write the compiler configuration to `libtool'.
6870636a995dSmlcreechm4_defun([_LT_LANG_GCJ_CONFIG],
6871636a995dSmlcreech[AC_REQUIRE([LT_PROG_GCJ])dnl
6872636a995dSmlcreechAC_LANG_SAVE
6873636a995dSmlcreech
6874636a995dSmlcreech# Source file extension for Java test sources.
6875636a995dSmlcreechac_ext=java
6876636a995dSmlcreech
6877636a995dSmlcreech# Object file extension for compiled Java test sources.
6878636a995dSmlcreechobjext=o
6879636a995dSmlcreech_LT_TAGVAR(objext, $1)=$objext
6880636a995dSmlcreech
6881636a995dSmlcreech# Code to be used in simple compile tests
6882636a995dSmlcreechlt_simple_compile_test_code="class foo {}"
6883636a995dSmlcreech
6884636a995dSmlcreech# Code to be used in simple link tests
6885636a995dSmlcreechlt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
6886636a995dSmlcreech
6887636a995dSmlcreech# ltmain only uses $CC for tagged configurations so make sure $CC is set.
6888636a995dSmlcreech_LT_TAG_COMPILER
6889636a995dSmlcreech
6890636a995dSmlcreech# save warnings/boilerplate of simple test code
6891636a995dSmlcreech_LT_COMPILER_BOILERPLATE
6892636a995dSmlcreech_LT_LINKER_BOILERPLATE
6893636a995dSmlcreech
6894636a995dSmlcreech# Allow CC to be a program name with arguments.
6895636a995dSmlcreechlt_save_CC="$CC"
6896636a995dSmlcreechlt_save_GCC=$GCC
6897636a995dSmlcreechGCC=yes
6898636a995dSmlcreechCC=${GCJ-"gcj"}
6899636a995dSmlcreechcompiler=$CC
6900636a995dSmlcreech_LT_TAGVAR(compiler, $1)=$CC
6901636a995dSmlcreech_LT_TAGVAR(LD, $1)="$LD"
6902636a995dSmlcreech_LT_CC_BASENAME([$compiler])
6903636a995dSmlcreech
6904636a995dSmlcreech# GCJ did not exist at the time GCC didn't implicitly link libc in.
6905636a995dSmlcreech_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6906636a995dSmlcreech
6907636a995dSmlcreech_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
6908636a995dSmlcreech
6909636a995dSmlcreechif test -n "$compiler"; then
6910636a995dSmlcreech  _LT_COMPILER_NO_RTTI($1)
6911636a995dSmlcreech  _LT_COMPILER_PIC($1)
6912636a995dSmlcreech  _LT_COMPILER_C_O($1)
6913636a995dSmlcreech  _LT_COMPILER_FILE_LOCKS($1)
6914636a995dSmlcreech  _LT_LINKER_SHLIBS($1)
6915636a995dSmlcreech  _LT_LINKER_HARDCODE_LIBPATH($1)
6916636a995dSmlcreech
6917636a995dSmlcreech  _LT_CONFIG($1)
6918636a995dSmlcreechfi
6919636a995dSmlcreech
6920636a995dSmlcreechAC_LANG_RESTORE
6921636a995dSmlcreech
6922636a995dSmlcreechGCC=$lt_save_GCC
6923636a995dSmlcreechCC="$lt_save_CC"
6924636a995dSmlcreech])# _LT_LANG_GCJ_CONFIG
6925636a995dSmlcreech
6926636a995dSmlcreech
6927636a995dSmlcreech# _LT_LANG_RC_CONFIG([TAG])
6928636a995dSmlcreech# -------------------------
6929636a995dSmlcreech# Ensure that the configuration variables for the Windows resource compiler
6930636a995dSmlcreech# are suitably defined.  These variables are subsequently used by _LT_CONFIG
6931636a995dSmlcreech# to write the compiler configuration to `libtool'.
6932636a995dSmlcreechm4_defun([_LT_LANG_RC_CONFIG],
6933636a995dSmlcreech[AC_REQUIRE([LT_PROG_RC])dnl
6934636a995dSmlcreechAC_LANG_SAVE
6935636a995dSmlcreech
6936636a995dSmlcreech# Source file extension for RC test sources.
6937636a995dSmlcreechac_ext=rc
6938636a995dSmlcreech
6939636a995dSmlcreech# Object file extension for compiled RC test sources.
6940636a995dSmlcreechobjext=o
6941636a995dSmlcreech_LT_TAGVAR(objext, $1)=$objext
6942636a995dSmlcreech
6943636a995dSmlcreech# Code to be used in simple compile tests
6944636a995dSmlcreechlt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
6945636a995dSmlcreech
6946636a995dSmlcreech# Code to be used in simple link tests
6947636a995dSmlcreechlt_simple_link_test_code="$lt_simple_compile_test_code"
6948636a995dSmlcreech
6949636a995dSmlcreech# ltmain only uses $CC for tagged configurations so make sure $CC is set.
6950636a995dSmlcreech_LT_TAG_COMPILER
6951636a995dSmlcreech
6952636a995dSmlcreech# save warnings/boilerplate of simple test code
6953636a995dSmlcreech_LT_COMPILER_BOILERPLATE
6954636a995dSmlcreech_LT_LINKER_BOILERPLATE
6955636a995dSmlcreech
6956636a995dSmlcreech# Allow CC to be a program name with arguments.
6957636a995dSmlcreechlt_save_CC="$CC"
6958636a995dSmlcreechlt_save_GCC=$GCC
6959636a995dSmlcreechGCC=
6960636a995dSmlcreechCC=${RC-"windres"}
6961636a995dSmlcreechcompiler=$CC
6962636a995dSmlcreech_LT_TAGVAR(compiler, $1)=$CC
6963636a995dSmlcreech_LT_CC_BASENAME([$compiler])
6964636a995dSmlcreech_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
6965636a995dSmlcreech
6966636a995dSmlcreechif test -n "$compiler"; then
6967636a995dSmlcreech  :
6968636a995dSmlcreech  _LT_CONFIG($1)
6969636a995dSmlcreechfi
6970636a995dSmlcreech
6971636a995dSmlcreechGCC=$lt_save_GCC
6972636a995dSmlcreechAC_LANG_RESTORE
6973636a995dSmlcreechCC="$lt_save_CC"
6974636a995dSmlcreech])# _LT_LANG_RC_CONFIG
6975636a995dSmlcreech
6976636a995dSmlcreech
6977636a995dSmlcreech# LT_PROG_GCJ
6978636a995dSmlcreech# -----------
6979636a995dSmlcreechAC_DEFUN([LT_PROG_GCJ],
6980636a995dSmlcreech[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
6981636a995dSmlcreech  [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
6982636a995dSmlcreech    [AC_CHECK_TOOL(GCJ, gcj,)
69839bc8b93fSa.rottmann      test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
6984636a995dSmlcreech      AC_SUBST(GCJFLAGS)])])[]dnl
69859bc8b93fSa.rottmann])
69869bc8b93fSa.rottmann
6987636a995dSmlcreech# Old name:
6988636a995dSmlcreechAU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
6989636a995dSmlcreechdnl aclocal-1.4 backwards compatibility:
6990636a995dSmlcreechdnl AC_DEFUN([LT_AC_PROG_GCJ], [])
6991636a995dSmlcreech
6992636a995dSmlcreech
6993636a995dSmlcreech# LT_PROG_RC
6994636a995dSmlcreech# ----------
6995636a995dSmlcreechAC_DEFUN([LT_PROG_RC],
6996636a995dSmlcreech[AC_CHECK_TOOL(RC, windres,)
69979bc8b93fSa.rottmann])
69989bc8b93fSa.rottmann
6999636a995dSmlcreech# Old name:
7000636a995dSmlcreechAU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
7001636a995dSmlcreechdnl aclocal-1.4 backwards compatibility:
7002636a995dSmlcreechdnl AC_DEFUN([LT_AC_PROG_RC], [])
7003636a995dSmlcreech
7004636a995dSmlcreech
7005636a995dSmlcreech# _LT_DECL_EGREP
7006636a995dSmlcreech# --------------
7007636a995dSmlcreech# If we don't have a new enough Autoconf to choose the best grep
7008636a995dSmlcreech# available, choose the one first in the user's PATH.
7009636a995dSmlcreechm4_defun([_LT_DECL_EGREP],
7010636a995dSmlcreech[AC_REQUIRE([AC_PROG_EGREP])dnl
7011636a995dSmlcreechAC_REQUIRE([AC_PROG_FGREP])dnl
7012636a995dSmlcreechtest -z "$GREP" && GREP=grep
7013636a995dSmlcreech_LT_DECL([], [GREP], [1], [A grep program that handles long lines])
7014636a995dSmlcreech_LT_DECL([], [EGREP], [1], [An ERE matcher])
7015636a995dSmlcreech_LT_DECL([], [FGREP], [1], [A literal string matcher])
7016636a995dSmlcreechdnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
7017636a995dSmlcreechAC_SUBST([GREP])
7018636a995dSmlcreech])
7019636a995dSmlcreech
7020636a995dSmlcreech
7021*6acb2cf6Svapier# _LT_DECL_OBJDUMP
7022*6acb2cf6Svapier# --------------
7023*6acb2cf6Svapier# If we don't have a new enough Autoconf to choose the best objdump
7024*6acb2cf6Svapier# available, choose the one first in the user's PATH.
7025*6acb2cf6Svapierm4_defun([_LT_DECL_OBJDUMP],
7026*6acb2cf6Svapier[AC_CHECK_TOOL(OBJDUMP, objdump, false)
7027*6acb2cf6Svapiertest -z "$OBJDUMP" && OBJDUMP=objdump
7028*6acb2cf6Svapier_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
7029*6acb2cf6SvapierAC_SUBST([OBJDUMP])
7030*6acb2cf6Svapier])
7031*6acb2cf6Svapier
7032*6acb2cf6Svapier
7033636a995dSmlcreech# _LT_DECL_SED
7034636a995dSmlcreech# ------------
7035636a995dSmlcreech# Check for a fully-functional sed program, that truncates
7036636a995dSmlcreech# as few characters as possible.  Prefer GNU sed if found.
7037636a995dSmlcreechm4_defun([_LT_DECL_SED],
7038636a995dSmlcreech[AC_PROG_SED
7039636a995dSmlcreechtest -z "$SED" && SED=sed
7040636a995dSmlcreechXsed="$SED -e 1s/^X//"
7041636a995dSmlcreech_LT_DECL([], [SED], [1], [A sed program that does not truncate output])
7042636a995dSmlcreech_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
7043636a995dSmlcreech    [Sed that helps us avoid accidentally triggering echo(1) options like -n])
7044636a995dSmlcreech])# _LT_DECL_SED
7045636a995dSmlcreech
7046636a995dSmlcreechm4_ifndef([AC_PROG_SED], [
704762507b65Sa.rottmann# NOTE: This macro has been submitted for inclusion into   #
704862507b65Sa.rottmann#  GNU Autoconf as AC_PROG_SED.  When it is available in   #
704962507b65Sa.rottmann#  a released version of Autoconf we should remove this    #
705062507b65Sa.rottmann#  macro and use it instead.                               #
7051636a995dSmlcreech
7052636a995dSmlcreechm4_defun([AC_PROG_SED],
705362507b65Sa.rottmann[AC_MSG_CHECKING([for a sed that does not truncate output])
705462507b65Sa.rottmannAC_CACHE_VAL(lt_cv_path_SED,
705562507b65Sa.rottmann[# Loop through the user's path and test for sed and gsed.
705662507b65Sa.rottmann# Then use that list of sed's as ones to test for truncation.
705762507b65Sa.rottmannas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
705862507b65Sa.rottmannfor as_dir in $PATH
705962507b65Sa.rottmanndo
706062507b65Sa.rottmann  IFS=$as_save_IFS
706162507b65Sa.rottmann  test -z "$as_dir" && as_dir=.
70629bc8b93fSa.rottmann  for lt_ac_prog in sed gsed; do
706362507b65Sa.rottmann    for ac_exec_ext in '' $ac_executable_extensions; do
70649bc8b93fSa.rottmann      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
70659bc8b93fSa.rottmann        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
706662507b65Sa.rottmann      fi
706762507b65Sa.rottmann    done
706862507b65Sa.rottmann  done
706962507b65Sa.rottmanndone
7070636a995dSmlcreechIFS=$as_save_IFS
70719bc8b93fSa.rottmannlt_ac_max=0
70729bc8b93fSa.rottmannlt_ac_count=0
707362507b65Sa.rottmann# Add /usr/xpg4/bin/sed as it is typically found on Solaris
707462507b65Sa.rottmann# along with /bin/sed that truncates output.
70759bc8b93fSa.rottmannfor lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
70767f19c02fSvapier  test ! -f $lt_ac_sed && continue
70779bc8b93fSa.rottmann  cat /dev/null > conftest.in
70789bc8b93fSa.rottmann  lt_ac_count=0
70799bc8b93fSa.rottmann  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
708062507b65Sa.rottmann  # Check for GNU sed and select it if it is found.
70819bc8b93fSa.rottmann  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
70829bc8b93fSa.rottmann    lt_cv_path_SED=$lt_ac_sed
708362507b65Sa.rottmann    break
708462507b65Sa.rottmann  fi
708562507b65Sa.rottmann  while true; do
70869bc8b93fSa.rottmann    cat conftest.in conftest.in >conftest.tmp
70879bc8b93fSa.rottmann    mv conftest.tmp conftest.in
70889bc8b93fSa.rottmann    cp conftest.in conftest.nl
70899bc8b93fSa.rottmann    echo >>conftest.nl
70909bc8b93fSa.rottmann    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
70919bc8b93fSa.rottmann    cmp -s conftest.out conftest.nl || break
70929bc8b93fSa.rottmann    # 10000 chars as input seems more than enough
70939bc8b93fSa.rottmann    test $lt_ac_count -gt 10 && break
70949bc8b93fSa.rottmann    lt_ac_count=`expr $lt_ac_count + 1`
70959bc8b93fSa.rottmann    if test $lt_ac_count -gt $lt_ac_max; then
70969bc8b93fSa.rottmann      lt_ac_max=$lt_ac_count
70979bc8b93fSa.rottmann      lt_cv_path_SED=$lt_ac_sed
709862507b65Sa.rottmann    fi
709962507b65Sa.rottmann  done
710062507b65Sa.rottmanndone
71019bc8b93fSa.rottmann])
71027f19c02fSvapierSED=$lt_cv_path_SED
7103636a995dSmlcreechAC_SUBST([SED])
710462507b65Sa.rottmannAC_MSG_RESULT([$SED])
7105636a995dSmlcreech])#AC_PROG_SED
7106636a995dSmlcreech])#m4_ifndef
7107636a995dSmlcreech
7108636a995dSmlcreech# Old name:
7109636a995dSmlcreechAU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
7110636a995dSmlcreechdnl aclocal-1.4 backwards compatibility:
7111636a995dSmlcreechdnl AC_DEFUN([LT_AC_PROG_SED], [])
7112636a995dSmlcreech
7113636a995dSmlcreech
7114636a995dSmlcreech# _LT_CHECK_SHELL_FEATURES
7115636a995dSmlcreech# ------------------------
7116636a995dSmlcreech# Find out whether the shell is Bourne or XSI compatible,
7117636a995dSmlcreech# or has some other useful features.
7118636a995dSmlcreechm4_defun([_LT_CHECK_SHELL_FEATURES],
7119636a995dSmlcreech[AC_MSG_CHECKING([whether the shell understands some XSI constructs])
7120636a995dSmlcreech# Try some XSI features
7121636a995dSmlcreechxsi_shell=no
7122636a995dSmlcreech( _lt_dummy="a/b/c"
7123636a995dSmlcreech  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7124636a995dSmlcreech      = c,a/b,, \
7125636a995dSmlcreech    && eval 'test $(( 1 + 1 )) -eq 2 \
7126636a995dSmlcreech    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7127636a995dSmlcreech  && xsi_shell=yes
7128636a995dSmlcreechAC_MSG_RESULT([$xsi_shell])
7129636a995dSmlcreech_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
7130636a995dSmlcreech
7131636a995dSmlcreechAC_MSG_CHECKING([whether the shell understands "+="])
7132636a995dSmlcreechlt_shell_append=no
7133636a995dSmlcreech( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
7134636a995dSmlcreech    >/dev/null 2>&1 \
7135636a995dSmlcreech  && lt_shell_append=yes
7136636a995dSmlcreechAC_MSG_RESULT([$lt_shell_append])
7137636a995dSmlcreech_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
7138636a995dSmlcreech
7139636a995dSmlcreechif ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7140636a995dSmlcreech  lt_unset=unset
7141636a995dSmlcreechelse
7142636a995dSmlcreech  lt_unset=false
7143636a995dSmlcreechfi
7144636a995dSmlcreech_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
7145636a995dSmlcreech
7146636a995dSmlcreech# test EBCDIC or ASCII
7147636a995dSmlcreechcase `echo X|tr X '\101'` in
7148636a995dSmlcreech A) # ASCII based system
7149636a995dSmlcreech    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7150636a995dSmlcreech  lt_SP2NL='tr \040 \012'
7151636a995dSmlcreech  lt_NL2SP='tr \015\012 \040\040'
7152636a995dSmlcreech  ;;
7153636a995dSmlcreech *) # EBCDIC based system
7154636a995dSmlcreech  lt_SP2NL='tr \100 \n'
7155636a995dSmlcreech  lt_NL2SP='tr \r\n \100\100'
7156636a995dSmlcreech  ;;
7157636a995dSmlcreechesac
7158636a995dSmlcreech_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
7159636a995dSmlcreech_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
7160636a995dSmlcreech])# _LT_CHECK_SHELL_FEATURES
7161636a995dSmlcreech
7162636a995dSmlcreech
7163636a995dSmlcreech# _LT_PROG_XSI_SHELLFNS
7164636a995dSmlcreech# ---------------------
7165636a995dSmlcreech# Bourne and XSI compatible variants of some useful shell functions.
7166636a995dSmlcreechm4_defun([_LT_PROG_XSI_SHELLFNS],
7167636a995dSmlcreech[case $xsi_shell in
7168636a995dSmlcreech  yes)
7169636a995dSmlcreech    cat << \_LT_EOF >> "$cfgfile"
7170636a995dSmlcreech
7171636a995dSmlcreech# func_dirname file append nondir_replacement
7172636a995dSmlcreech# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
7173636a995dSmlcreech# otherwise set result to NONDIR_REPLACEMENT.
7174636a995dSmlcreechfunc_dirname ()
7175636a995dSmlcreech{
7176636a995dSmlcreech  case ${1} in
7177636a995dSmlcreech    */*) func_dirname_result="${1%/*}${2}" ;;
7178636a995dSmlcreech    *  ) func_dirname_result="${3}" ;;
7179636a995dSmlcreech  esac
7180636a995dSmlcreech}
7181636a995dSmlcreech
7182636a995dSmlcreech# func_basename file
7183636a995dSmlcreechfunc_basename ()
7184636a995dSmlcreech{
7185636a995dSmlcreech  func_basename_result="${1##*/}"
7186636a995dSmlcreech}
7187636a995dSmlcreech
7188636a995dSmlcreech# func_dirname_and_basename file append nondir_replacement
7189636a995dSmlcreech# perform func_basename and func_dirname in a single function
7190636a995dSmlcreech# call:
7191636a995dSmlcreech#   dirname:  Compute the dirname of FILE.  If nonempty,
7192636a995dSmlcreech#             add APPEND to the result, otherwise set result
7193636a995dSmlcreech#             to NONDIR_REPLACEMENT.
7194636a995dSmlcreech#             value returned in "$func_dirname_result"
7195636a995dSmlcreech#   basename: Compute filename of FILE.
7196636a995dSmlcreech#             value retuned in "$func_basename_result"
7197636a995dSmlcreech# Implementation must be kept synchronized with func_dirname
7198636a995dSmlcreech# and func_basename. For efficiency, we do not delegate to
7199636a995dSmlcreech# those functions but instead duplicate the functionality here.
7200636a995dSmlcreechfunc_dirname_and_basename ()
7201636a995dSmlcreech{
7202636a995dSmlcreech  case ${1} in
7203636a995dSmlcreech    */*) func_dirname_result="${1%/*}${2}" ;;
7204636a995dSmlcreech    *  ) func_dirname_result="${3}" ;;
7205636a995dSmlcreech  esac
7206636a995dSmlcreech  func_basename_result="${1##*/}"
7207636a995dSmlcreech}
7208636a995dSmlcreech
7209636a995dSmlcreech# func_stripname prefix suffix name
7210636a995dSmlcreech# strip PREFIX and SUFFIX off of NAME.
7211636a995dSmlcreech# PREFIX and SUFFIX must not contain globbing or regex special
7212636a995dSmlcreech# characters, hashes, percent signs, but SUFFIX may contain a leading
7213636a995dSmlcreech# dot (in which case that matches only a dot).
7214636a995dSmlcreechfunc_stripname ()
7215636a995dSmlcreech{
7216636a995dSmlcreech  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
7217636a995dSmlcreech  # positional parameters, so assign one to ordinary parameter first.
7218636a995dSmlcreech  func_stripname_result=${3}
7219636a995dSmlcreech  func_stripname_result=${func_stripname_result#"${1}"}
7220636a995dSmlcreech  func_stripname_result=${func_stripname_result%"${2}"}
7221636a995dSmlcreech}
7222636a995dSmlcreech
7223636a995dSmlcreech# func_opt_split
7224636a995dSmlcreechfunc_opt_split ()
7225636a995dSmlcreech{
7226636a995dSmlcreech  func_opt_split_opt=${1%%=*}
7227636a995dSmlcreech  func_opt_split_arg=${1#*=}
7228636a995dSmlcreech}
7229636a995dSmlcreech
7230636a995dSmlcreech# func_lo2o object
7231636a995dSmlcreechfunc_lo2o ()
7232636a995dSmlcreech{
7233636a995dSmlcreech  case ${1} in
7234636a995dSmlcreech    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
7235636a995dSmlcreech    *)    func_lo2o_result=${1} ;;
7236636a995dSmlcreech  esac
7237636a995dSmlcreech}
7238636a995dSmlcreech
7239636a995dSmlcreech# func_xform libobj-or-source
7240636a995dSmlcreechfunc_xform ()
7241636a995dSmlcreech{
7242636a995dSmlcreech  func_xform_result=${1%.*}.lo
7243636a995dSmlcreech}
7244636a995dSmlcreech
7245636a995dSmlcreech# func_arith arithmetic-term...
7246636a995dSmlcreechfunc_arith ()
7247636a995dSmlcreech{
7248636a995dSmlcreech  func_arith_result=$(( $[*] ))
7249636a995dSmlcreech}
7250636a995dSmlcreech
7251636a995dSmlcreech# func_len string
7252636a995dSmlcreech# STRING may not start with a hyphen.
7253636a995dSmlcreechfunc_len ()
7254636a995dSmlcreech{
7255636a995dSmlcreech  func_len_result=${#1}
7256636a995dSmlcreech}
7257636a995dSmlcreech
7258636a995dSmlcreech_LT_EOF
7259636a995dSmlcreech    ;;
7260636a995dSmlcreech  *) # Bourne compatible functions.
7261636a995dSmlcreech    cat << \_LT_EOF >> "$cfgfile"
7262636a995dSmlcreech
7263636a995dSmlcreech# func_dirname file append nondir_replacement
7264636a995dSmlcreech# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
7265636a995dSmlcreech# otherwise set result to NONDIR_REPLACEMENT.
7266636a995dSmlcreechfunc_dirname ()
7267636a995dSmlcreech{
7268636a995dSmlcreech  # Extract subdirectory from the argument.
7269636a995dSmlcreech  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
7270636a995dSmlcreech  if test "X$func_dirname_result" = "X${1}"; then
7271636a995dSmlcreech    func_dirname_result="${3}"
7272636a995dSmlcreech  else
7273636a995dSmlcreech    func_dirname_result="$func_dirname_result${2}"
7274636a995dSmlcreech  fi
7275636a995dSmlcreech}
7276636a995dSmlcreech
7277636a995dSmlcreech# func_basename file
7278636a995dSmlcreechfunc_basename ()
7279636a995dSmlcreech{
7280636a995dSmlcreech  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
7281636a995dSmlcreech}
7282636a995dSmlcreech
7283636a995dSmlcreechdnl func_dirname_and_basename
7284636a995dSmlcreechdnl A portable version of this function is already defined in general.m4sh
7285636a995dSmlcreechdnl so there is no need for it here.
7286636a995dSmlcreech
7287636a995dSmlcreech# func_stripname prefix suffix name
7288636a995dSmlcreech# strip PREFIX and SUFFIX off of NAME.
7289636a995dSmlcreech# PREFIX and SUFFIX must not contain globbing or regex special
7290636a995dSmlcreech# characters, hashes, percent signs, but SUFFIX may contain a leading
7291636a995dSmlcreech# dot (in which case that matches only a dot).
7292636a995dSmlcreech# func_strip_suffix prefix name
7293636a995dSmlcreechfunc_stripname ()
7294636a995dSmlcreech{
7295636a995dSmlcreech  case ${2} in
7296636a995dSmlcreech    .*) func_stripname_result=`$ECHO "X${3}" \
7297636a995dSmlcreech           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
7298636a995dSmlcreech    *)  func_stripname_result=`$ECHO "X${3}" \
7299636a995dSmlcreech           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
7300636a995dSmlcreech  esac
7301636a995dSmlcreech}
7302636a995dSmlcreech
7303636a995dSmlcreech# sed scripts:
7304636a995dSmlcreechmy_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
7305636a995dSmlcreechmy_sed_long_arg='1s/^-[[^=]]*=//'
7306636a995dSmlcreech
7307636a995dSmlcreech# func_opt_split
7308636a995dSmlcreechfunc_opt_split ()
7309636a995dSmlcreech{
7310636a995dSmlcreech  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
7311636a995dSmlcreech  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
7312636a995dSmlcreech}
7313636a995dSmlcreech
7314636a995dSmlcreech# func_lo2o object
7315636a995dSmlcreechfunc_lo2o ()
7316636a995dSmlcreech{
7317636a995dSmlcreech  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
7318636a995dSmlcreech}
7319636a995dSmlcreech
7320636a995dSmlcreech# func_xform libobj-or-source
7321636a995dSmlcreechfunc_xform ()
7322636a995dSmlcreech{
7323636a995dSmlcreech  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
7324636a995dSmlcreech}
7325636a995dSmlcreech
7326636a995dSmlcreech# func_arith arithmetic-term...
7327636a995dSmlcreechfunc_arith ()
7328636a995dSmlcreech{
7329636a995dSmlcreech  func_arith_result=`expr "$[@]"`
7330636a995dSmlcreech}
7331636a995dSmlcreech
7332636a995dSmlcreech# func_len string
7333636a995dSmlcreech# STRING may not start with a hyphen.
7334636a995dSmlcreechfunc_len ()
7335636a995dSmlcreech{
7336636a995dSmlcreech  func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
7337636a995dSmlcreech}
7338636a995dSmlcreech
7339636a995dSmlcreech_LT_EOF
7340636a995dSmlcreechesac
7341636a995dSmlcreech
7342636a995dSmlcreechcase $lt_shell_append in
7343636a995dSmlcreech  yes)
7344636a995dSmlcreech    cat << \_LT_EOF >> "$cfgfile"
7345636a995dSmlcreech
7346636a995dSmlcreech# func_append var value
7347636a995dSmlcreech# Append VALUE to the end of shell variable VAR.
7348636a995dSmlcreechfunc_append ()
7349636a995dSmlcreech{
7350636a995dSmlcreech  eval "$[1]+=\$[2]"
7351636a995dSmlcreech}
7352636a995dSmlcreech_LT_EOF
7353636a995dSmlcreech    ;;
7354636a995dSmlcreech  *)
7355636a995dSmlcreech    cat << \_LT_EOF >> "$cfgfile"
7356636a995dSmlcreech
7357636a995dSmlcreech# func_append var value
7358636a995dSmlcreech# Append VALUE to the end of shell variable VAR.
7359636a995dSmlcreechfunc_append ()
7360636a995dSmlcreech{
7361636a995dSmlcreech  eval "$[1]=\$$[1]\$[2]"
7362636a995dSmlcreech}
7363636a995dSmlcreech
7364636a995dSmlcreech_LT_EOF
7365636a995dSmlcreech    ;;
7366636a995dSmlcreech  esac
736771eb93eaSdrh])
736871eb93eaSdrh
7369636a995dSmlcreech# Helper functions for option handling.                    -*- Autoconf -*-
7370636a995dSmlcreech#
7371636a995dSmlcreech#   Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
7372636a995dSmlcreech#   Written by Gary V. Vaughan, 2004
7373636a995dSmlcreech#
7374636a995dSmlcreech# This file is free software; the Free Software Foundation gives
7375636a995dSmlcreech# unlimited permission to copy and/or distribute it, with or without
7376636a995dSmlcreech# modifications, as long as this notice is preserved.
7377636a995dSmlcreech
7378636a995dSmlcreech# serial 6 ltoptions.m4
7379636a995dSmlcreech
7380636a995dSmlcreech# This is to help aclocal find these macros, as it can't see m4_define.
7381636a995dSmlcreechAC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
7382636a995dSmlcreech
7383636a995dSmlcreech
7384636a995dSmlcreech# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
7385636a995dSmlcreech# ------------------------------------------
7386636a995dSmlcreechm4_define([_LT_MANGLE_OPTION],
7387636a995dSmlcreech[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
7388636a995dSmlcreech
7389636a995dSmlcreech
7390636a995dSmlcreech# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
7391636a995dSmlcreech# ---------------------------------------
7392636a995dSmlcreech# Set option OPTION-NAME for macro MACRO-NAME, and if there is a
7393636a995dSmlcreech# matching handler defined, dispatch to it.  Other OPTION-NAMEs are
7394636a995dSmlcreech# saved as a flag.
7395636a995dSmlcreechm4_define([_LT_SET_OPTION],
7396636a995dSmlcreech[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
7397636a995dSmlcreechm4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
7398636a995dSmlcreech        _LT_MANGLE_DEFUN([$1], [$2]),
7399636a995dSmlcreech    [m4_warning([Unknown $1 option `$2'])])[]dnl
7400636a995dSmlcreech])
7401636a995dSmlcreech
7402636a995dSmlcreech
7403636a995dSmlcreech# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
7404636a995dSmlcreech# ------------------------------------------------------------
7405636a995dSmlcreech# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
7406636a995dSmlcreechm4_define([_LT_IF_OPTION],
7407636a995dSmlcreech[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
7408636a995dSmlcreech
7409636a995dSmlcreech
7410636a995dSmlcreech# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
7411636a995dSmlcreech# -------------------------------------------------------
7412636a995dSmlcreech# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
7413636a995dSmlcreech# are set.
7414636a995dSmlcreechm4_define([_LT_UNLESS_OPTIONS],
7415636a995dSmlcreech[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
7416636a995dSmlcreech	    [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
7417636a995dSmlcreech		      [m4_define([$0_found])])])[]dnl
7418636a995dSmlcreechm4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
7419636a995dSmlcreech])[]dnl
7420636a995dSmlcreech])
7421636a995dSmlcreech
7422636a995dSmlcreech
7423636a995dSmlcreech# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
7424636a995dSmlcreech# ----------------------------------------
7425636a995dSmlcreech# OPTION-LIST is a space-separated list of Libtool options associated
7426636a995dSmlcreech# with MACRO-NAME.  If any OPTION has a matching handler declared with
7427636a995dSmlcreech# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
7428636a995dSmlcreech# the unknown option and exit.
7429636a995dSmlcreechm4_defun([_LT_SET_OPTIONS],
7430636a995dSmlcreech[# Set options
7431636a995dSmlcreechm4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
7432636a995dSmlcreech    [_LT_SET_OPTION([$1], _LT_Option)])
7433636a995dSmlcreech
7434636a995dSmlcreechm4_if([$1],[LT_INIT],[
7435636a995dSmlcreech  dnl
7436636a995dSmlcreech  dnl Simply set some default values (i.e off) if boolean options were not
7437636a995dSmlcreech  dnl specified:
7438636a995dSmlcreech  _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
7439636a995dSmlcreech  ])
7440636a995dSmlcreech  _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
7441636a995dSmlcreech  ])
7442636a995dSmlcreech  dnl
7443636a995dSmlcreech  dnl If no reference was made to various pairs of opposing options, then
7444636a995dSmlcreech  dnl we run the default mode handler for the pair.  For example, if neither
7445636a995dSmlcreech  dnl `shared' nor `disable-shared' was passed, we enable building of shared
7446636a995dSmlcreech  dnl archives by default:
7447636a995dSmlcreech  _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
7448636a995dSmlcreech  _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
7449636a995dSmlcreech  _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
7450636a995dSmlcreech  _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
7451636a995dSmlcreech  		   [_LT_ENABLE_FAST_INSTALL])
7452636a995dSmlcreech  ])
7453636a995dSmlcreech])# _LT_SET_OPTIONS
7454636a995dSmlcreech
7455636a995dSmlcreech
7456636a995dSmlcreech
7457636a995dSmlcreech# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
7458636a995dSmlcreech# -----------------------------------------
7459636a995dSmlcreechm4_define([_LT_MANGLE_DEFUN],
7460636a995dSmlcreech[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
7461636a995dSmlcreech
7462636a995dSmlcreech
7463636a995dSmlcreech# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
7464636a995dSmlcreech# -----------------------------------------------
7465636a995dSmlcreechm4_define([LT_OPTION_DEFINE],
7466636a995dSmlcreech[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
7467636a995dSmlcreech])# LT_OPTION_DEFINE
7468636a995dSmlcreech
7469636a995dSmlcreech
7470636a995dSmlcreech# dlopen
7471636a995dSmlcreech# ------
7472636a995dSmlcreechLT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
7473636a995dSmlcreech])
7474636a995dSmlcreech
7475636a995dSmlcreechAU_DEFUN([AC_LIBTOOL_DLOPEN],
7476636a995dSmlcreech[_LT_SET_OPTION([LT_INIT], [dlopen])
7477636a995dSmlcreechAC_DIAGNOSE([obsolete],
7478636a995dSmlcreech[$0: Remove this warning and the call to _LT_SET_OPTION when you
7479636a995dSmlcreechput the `dlopen' option into LT_INIT's first parameter.])
7480636a995dSmlcreech])
7481636a995dSmlcreech
7482636a995dSmlcreechdnl aclocal-1.4 backwards compatibility:
7483636a995dSmlcreechdnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
7484636a995dSmlcreech
7485636a995dSmlcreech
7486636a995dSmlcreech# win32-dll
7487636a995dSmlcreech# ---------
7488636a995dSmlcreech# Declare package support for building win32 dll's.
7489636a995dSmlcreechLT_OPTION_DEFINE([LT_INIT], [win32-dll],
7490636a995dSmlcreech[enable_win32_dll=yes
7491636a995dSmlcreech
7492636a995dSmlcreechcase $host in
7493*6acb2cf6Svapier*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
7494636a995dSmlcreech  AC_CHECK_TOOL(AS, as, false)
7495636a995dSmlcreech  AC_CHECK_TOOL(DLLTOOL, dlltool, false)
7496636a995dSmlcreech  AC_CHECK_TOOL(OBJDUMP, objdump, false)
7497636a995dSmlcreech  ;;
7498636a995dSmlcreechesac
7499636a995dSmlcreech
7500636a995dSmlcreechtest -z "$AS" && AS=as
7501636a995dSmlcreech_LT_DECL([], [AS],      [0], [Assembler program])dnl
7502636a995dSmlcreech
7503636a995dSmlcreechtest -z "$DLLTOOL" && DLLTOOL=dlltool
7504636a995dSmlcreech_LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl
7505636a995dSmlcreech
7506636a995dSmlcreechtest -z "$OBJDUMP" && OBJDUMP=objdump
7507636a995dSmlcreech_LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl
7508636a995dSmlcreech])# win32-dll
7509636a995dSmlcreech
7510636a995dSmlcreechAU_DEFUN([AC_LIBTOOL_WIN32_DLL],
7511636a995dSmlcreech[AC_REQUIRE([AC_CANONICAL_HOST])dnl
7512636a995dSmlcreech_LT_SET_OPTION([LT_INIT], [win32-dll])
7513636a995dSmlcreechAC_DIAGNOSE([obsolete],
7514636a995dSmlcreech[$0: Remove this warning and the call to _LT_SET_OPTION when you
7515636a995dSmlcreechput the `win32-dll' option into LT_INIT's first parameter.])
7516636a995dSmlcreech])
7517636a995dSmlcreech
7518636a995dSmlcreechdnl aclocal-1.4 backwards compatibility:
7519636a995dSmlcreechdnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
7520636a995dSmlcreech
7521636a995dSmlcreech
7522636a995dSmlcreech# _LT_ENABLE_SHARED([DEFAULT])
7523636a995dSmlcreech# ----------------------------
7524636a995dSmlcreech# implement the --enable-shared flag, and supports the `shared' and
7525636a995dSmlcreech# `disable-shared' LT_INIT options.
7526636a995dSmlcreech# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
7527636a995dSmlcreechm4_define([_LT_ENABLE_SHARED],
7528636a995dSmlcreech[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
7529636a995dSmlcreechAC_ARG_ENABLE([shared],
7530636a995dSmlcreech    [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
7531636a995dSmlcreech	[build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
7532636a995dSmlcreech    [p=${PACKAGE-default}
7533636a995dSmlcreech    case $enableval in
7534636a995dSmlcreech    yes) enable_shared=yes ;;
7535636a995dSmlcreech    no) enable_shared=no ;;
7536636a995dSmlcreech    *)
7537636a995dSmlcreech      enable_shared=no
7538636a995dSmlcreech      # Look at the argument we got.  We use all the common list separators.
7539636a995dSmlcreech      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7540636a995dSmlcreech      for pkg in $enableval; do
7541636a995dSmlcreech	IFS="$lt_save_ifs"
7542636a995dSmlcreech	if test "X$pkg" = "X$p"; then
7543636a995dSmlcreech	  enable_shared=yes
7544636a995dSmlcreech	fi
7545636a995dSmlcreech      done
7546636a995dSmlcreech      IFS="$lt_save_ifs"
7547636a995dSmlcreech      ;;
7548636a995dSmlcreech    esac],
7549636a995dSmlcreech    [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
7550636a995dSmlcreech
7551636a995dSmlcreech    _LT_DECL([build_libtool_libs], [enable_shared], [0],
7552636a995dSmlcreech	[Whether or not to build shared libraries])
7553636a995dSmlcreech])# _LT_ENABLE_SHARED
7554636a995dSmlcreech
7555636a995dSmlcreechLT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
7556636a995dSmlcreechLT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
7557636a995dSmlcreech
7558636a995dSmlcreech# Old names:
7559636a995dSmlcreechAC_DEFUN([AC_ENABLE_SHARED],
7560636a995dSmlcreech[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
7561636a995dSmlcreech])
7562636a995dSmlcreech
7563636a995dSmlcreechAC_DEFUN([AC_DISABLE_SHARED],
7564636a995dSmlcreech[_LT_SET_OPTION([LT_INIT], [disable-shared])
7565636a995dSmlcreech])
7566636a995dSmlcreech
7567636a995dSmlcreechAU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
7568636a995dSmlcreechAU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
7569636a995dSmlcreech
7570636a995dSmlcreechdnl aclocal-1.4 backwards compatibility:
7571636a995dSmlcreechdnl AC_DEFUN([AM_ENABLE_SHARED], [])
7572636a995dSmlcreechdnl AC_DEFUN([AM_DISABLE_SHARED], [])
7573636a995dSmlcreech
7574636a995dSmlcreech
7575636a995dSmlcreech
7576636a995dSmlcreech# _LT_ENABLE_STATIC([DEFAULT])
7577636a995dSmlcreech# ----------------------------
7578636a995dSmlcreech# implement the --enable-static flag, and support the `static' and
7579636a995dSmlcreech# `disable-static' LT_INIT options.
7580636a995dSmlcreech# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
7581636a995dSmlcreechm4_define([_LT_ENABLE_STATIC],
7582636a995dSmlcreech[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
7583636a995dSmlcreechAC_ARG_ENABLE([static],
7584636a995dSmlcreech    [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
7585636a995dSmlcreech	[build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
7586636a995dSmlcreech    [p=${PACKAGE-default}
7587636a995dSmlcreech    case $enableval in
7588636a995dSmlcreech    yes) enable_static=yes ;;
7589636a995dSmlcreech    no) enable_static=no ;;
7590636a995dSmlcreech    *)
7591636a995dSmlcreech     enable_static=no
7592636a995dSmlcreech      # Look at the argument we got.  We use all the common list separators.
7593636a995dSmlcreech      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7594636a995dSmlcreech      for pkg in $enableval; do
7595636a995dSmlcreech	IFS="$lt_save_ifs"
7596636a995dSmlcreech	if test "X$pkg" = "X$p"; then
7597636a995dSmlcreech	  enable_static=yes
7598636a995dSmlcreech	fi
7599636a995dSmlcreech      done
7600636a995dSmlcreech      IFS="$lt_save_ifs"
7601636a995dSmlcreech      ;;
7602636a995dSmlcreech    esac],
7603636a995dSmlcreech    [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
7604636a995dSmlcreech
7605636a995dSmlcreech    _LT_DECL([build_old_libs], [enable_static], [0],
7606636a995dSmlcreech	[Whether or not to build static libraries])
7607636a995dSmlcreech])# _LT_ENABLE_STATIC
7608636a995dSmlcreech
7609636a995dSmlcreechLT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
7610636a995dSmlcreechLT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
7611636a995dSmlcreech
7612636a995dSmlcreech# Old names:
7613636a995dSmlcreechAC_DEFUN([AC_ENABLE_STATIC],
7614636a995dSmlcreech[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
7615636a995dSmlcreech])
7616636a995dSmlcreech
7617636a995dSmlcreechAC_DEFUN([AC_DISABLE_STATIC],
7618636a995dSmlcreech[_LT_SET_OPTION([LT_INIT], [disable-static])
7619636a995dSmlcreech])
7620636a995dSmlcreech
7621636a995dSmlcreechAU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
7622636a995dSmlcreechAU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
7623636a995dSmlcreech
7624636a995dSmlcreechdnl aclocal-1.4 backwards compatibility:
7625636a995dSmlcreechdnl AC_DEFUN([AM_ENABLE_STATIC], [])
7626636a995dSmlcreechdnl AC_DEFUN([AM_DISABLE_STATIC], [])
7627636a995dSmlcreech
7628636a995dSmlcreech
7629636a995dSmlcreech
7630636a995dSmlcreech# _LT_ENABLE_FAST_INSTALL([DEFAULT])
7631636a995dSmlcreech# ----------------------------------
7632636a995dSmlcreech# implement the --enable-fast-install flag, and support the `fast-install'
7633636a995dSmlcreech# and `disable-fast-install' LT_INIT options.
7634636a995dSmlcreech# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
7635636a995dSmlcreechm4_define([_LT_ENABLE_FAST_INSTALL],
7636636a995dSmlcreech[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
7637636a995dSmlcreechAC_ARG_ENABLE([fast-install],
7638636a995dSmlcreech    [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
7639636a995dSmlcreech    [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
7640636a995dSmlcreech    [p=${PACKAGE-default}
7641636a995dSmlcreech    case $enableval in
7642636a995dSmlcreech    yes) enable_fast_install=yes ;;
7643636a995dSmlcreech    no) enable_fast_install=no ;;
7644636a995dSmlcreech    *)
7645636a995dSmlcreech      enable_fast_install=no
7646636a995dSmlcreech      # Look at the argument we got.  We use all the common list separators.
7647636a995dSmlcreech      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7648636a995dSmlcreech      for pkg in $enableval; do
7649636a995dSmlcreech	IFS="$lt_save_ifs"
7650636a995dSmlcreech	if test "X$pkg" = "X$p"; then
7651636a995dSmlcreech	  enable_fast_install=yes
7652636a995dSmlcreech	fi
7653636a995dSmlcreech      done
7654636a995dSmlcreech      IFS="$lt_save_ifs"
7655636a995dSmlcreech      ;;
7656636a995dSmlcreech    esac],
7657636a995dSmlcreech    [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
7658636a995dSmlcreech
7659636a995dSmlcreech_LT_DECL([fast_install], [enable_fast_install], [0],
7660636a995dSmlcreech	 [Whether or not to optimize for fast installation])dnl
7661636a995dSmlcreech])# _LT_ENABLE_FAST_INSTALL
7662636a995dSmlcreech
7663636a995dSmlcreechLT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
7664636a995dSmlcreechLT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
7665636a995dSmlcreech
7666636a995dSmlcreech# Old names:
7667636a995dSmlcreechAU_DEFUN([AC_ENABLE_FAST_INSTALL],
7668636a995dSmlcreech[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
7669636a995dSmlcreechAC_DIAGNOSE([obsolete],
7670636a995dSmlcreech[$0: Remove this warning and the call to _LT_SET_OPTION when you put
7671636a995dSmlcreechthe `fast-install' option into LT_INIT's first parameter.])
7672636a995dSmlcreech])
7673636a995dSmlcreech
7674636a995dSmlcreechAU_DEFUN([AC_DISABLE_FAST_INSTALL],
7675636a995dSmlcreech[_LT_SET_OPTION([LT_INIT], [disable-fast-install])
7676636a995dSmlcreechAC_DIAGNOSE([obsolete],
7677636a995dSmlcreech[$0: Remove this warning and the call to _LT_SET_OPTION when you put
7678636a995dSmlcreechthe `disable-fast-install' option into LT_INIT's first parameter.])
7679636a995dSmlcreech])
7680636a995dSmlcreech
7681636a995dSmlcreechdnl aclocal-1.4 backwards compatibility:
7682636a995dSmlcreechdnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
7683636a995dSmlcreechdnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
7684636a995dSmlcreech
7685636a995dSmlcreech
7686636a995dSmlcreech# _LT_WITH_PIC([MODE])
7687636a995dSmlcreech# --------------------
7688636a995dSmlcreech# implement the --with-pic flag, and support the `pic-only' and `no-pic'
7689636a995dSmlcreech# LT_INIT options.
7690636a995dSmlcreech# MODE is either `yes' or `no'.  If omitted, it defaults to `both'.
7691636a995dSmlcreechm4_define([_LT_WITH_PIC],
7692636a995dSmlcreech[AC_ARG_WITH([pic],
7693636a995dSmlcreech    [AS_HELP_STRING([--with-pic],
7694636a995dSmlcreech	[try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
7695636a995dSmlcreech    [pic_mode="$withval"],
7696636a995dSmlcreech    [pic_mode=default])
7697636a995dSmlcreech
7698636a995dSmlcreechtest -z "$pic_mode" && pic_mode=m4_default([$1], [default])
7699636a995dSmlcreech
7700636a995dSmlcreech_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
7701636a995dSmlcreech])# _LT_WITH_PIC
7702636a995dSmlcreech
7703636a995dSmlcreechLT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
7704636a995dSmlcreechLT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
7705636a995dSmlcreech
7706636a995dSmlcreech# Old name:
7707636a995dSmlcreechAU_DEFUN([AC_LIBTOOL_PICMODE],
7708636a995dSmlcreech[_LT_SET_OPTION([LT_INIT], [pic-only])
7709636a995dSmlcreechAC_DIAGNOSE([obsolete],
7710636a995dSmlcreech[$0: Remove this warning and the call to _LT_SET_OPTION when you
7711636a995dSmlcreechput the `pic-only' option into LT_INIT's first parameter.])
7712636a995dSmlcreech])
7713636a995dSmlcreech
7714636a995dSmlcreechdnl aclocal-1.4 backwards compatibility:
7715636a995dSmlcreechdnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
7716636a995dSmlcreech
7717636a995dSmlcreech
7718636a995dSmlcreechm4_define([_LTDL_MODE], [])
7719636a995dSmlcreechLT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
7720636a995dSmlcreech		 [m4_define([_LTDL_MODE], [nonrecursive])])
7721636a995dSmlcreechLT_OPTION_DEFINE([LTDL_INIT], [recursive],
7722636a995dSmlcreech		 [m4_define([_LTDL_MODE], [recursive])])
7723636a995dSmlcreechLT_OPTION_DEFINE([LTDL_INIT], [subproject],
7724636a995dSmlcreech		 [m4_define([_LTDL_MODE], [subproject])])
7725636a995dSmlcreech
7726636a995dSmlcreechm4_define([_LTDL_TYPE], [])
7727636a995dSmlcreechLT_OPTION_DEFINE([LTDL_INIT], [installable],
7728636a995dSmlcreech		 [m4_define([_LTDL_TYPE], [installable])])
7729636a995dSmlcreechLT_OPTION_DEFINE([LTDL_INIT], [convenience],
7730636a995dSmlcreech		 [m4_define([_LTDL_TYPE], [convenience])])
7731636a995dSmlcreech
7732636a995dSmlcreech# ltsugar.m4 -- libtool m4 base layer.                         -*-Autoconf-*-
7733636a995dSmlcreech#
7734*6acb2cf6Svapier# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
7735636a995dSmlcreech# Written by Gary V. Vaughan, 2004
7736636a995dSmlcreech#
7737636a995dSmlcreech# This file is free software; the Free Software Foundation gives
7738636a995dSmlcreech# unlimited permission to copy and/or distribute it, with or without
7739636a995dSmlcreech# modifications, as long as this notice is preserved.
7740636a995dSmlcreech
7741*6acb2cf6Svapier# serial 6 ltsugar.m4
7742636a995dSmlcreech
7743636a995dSmlcreech# This is to help aclocal find these macros, as it can't see m4_define.
7744636a995dSmlcreechAC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
7745636a995dSmlcreech
7746636a995dSmlcreech
7747636a995dSmlcreech# lt_join(SEP, ARG1, [ARG2...])
7748636a995dSmlcreech# -----------------------------
7749636a995dSmlcreech# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
7750636a995dSmlcreech# associated separator.
7751636a995dSmlcreech# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
7752636a995dSmlcreech# versions in m4sugar had bugs.
7753636a995dSmlcreechm4_define([lt_join],
7754636a995dSmlcreech[m4_if([$#], [1], [],
7755636a995dSmlcreech       [$#], [2], [[$2]],
7756636a995dSmlcreech       [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
7757636a995dSmlcreechm4_define([_lt_join],
7758636a995dSmlcreech[m4_if([$#$2], [2], [],
7759636a995dSmlcreech       [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
7760636a995dSmlcreech
7761636a995dSmlcreech
7762636a995dSmlcreech# lt_car(LIST)
7763636a995dSmlcreech# lt_cdr(LIST)
7764636a995dSmlcreech# ------------
7765636a995dSmlcreech# Manipulate m4 lists.
7766636a995dSmlcreech# These macros are necessary as long as will still need to support
7767636a995dSmlcreech# Autoconf-2.59 which quotes differently.
7768636a995dSmlcreechm4_define([lt_car], [[$1]])
7769636a995dSmlcreechm4_define([lt_cdr],
7770636a995dSmlcreech[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
7771636a995dSmlcreech       [$#], 1, [],
7772636a995dSmlcreech       [m4_dquote(m4_shift($@))])])
7773636a995dSmlcreechm4_define([lt_unquote], $1)
7774636a995dSmlcreech
7775636a995dSmlcreech
7776636a995dSmlcreech# lt_append(MACRO-NAME, STRING, [SEPARATOR])
7777636a995dSmlcreech# ------------------------------------------
7778636a995dSmlcreech# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
7779636a995dSmlcreech# Note that neither SEPARATOR nor STRING are expanded; they are appended
7780636a995dSmlcreech# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
7781636a995dSmlcreech# No SEPARATOR is output if MACRO-NAME was previously undefined (different
7782636a995dSmlcreech# than defined and empty).
7783636a995dSmlcreech#
7784636a995dSmlcreech# This macro is needed until we can rely on Autoconf 2.62, since earlier
7785636a995dSmlcreech# versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
7786636a995dSmlcreechm4_define([lt_append],
7787636a995dSmlcreech[m4_define([$1],
7788636a995dSmlcreech	   m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
7789636a995dSmlcreech
7790636a995dSmlcreech
7791636a995dSmlcreech
7792636a995dSmlcreech# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
7793636a995dSmlcreech# ----------------------------------------------------------
7794636a995dSmlcreech# Produce a SEP delimited list of all paired combinations of elements of
7795636a995dSmlcreech# PREFIX-LIST with SUFFIX1 through SUFFIXn.  Each element of the list
7796636a995dSmlcreech# has the form PREFIXmINFIXSUFFIXn.
7797*6acb2cf6Svapier# Needed until we can rely on m4_combine added in Autoconf 2.62.
7798636a995dSmlcreechm4_define([lt_combine],
7799*6acb2cf6Svapier[m4_if(m4_eval([$# > 3]), [1],
7800*6acb2cf6Svapier       [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
7801*6acb2cf6Svapier[[m4_foreach([_Lt_prefix], [$2],
7802*6acb2cf6Svapier	     [m4_foreach([_Lt_suffix],
7803*6acb2cf6Svapier		]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
7804*6acb2cf6Svapier	[_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
7805636a995dSmlcreech
7806636a995dSmlcreech
7807636a995dSmlcreech# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
7808636a995dSmlcreech# -----------------------------------------------------------------------
7809636a995dSmlcreech# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
7810636a995dSmlcreech# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
7811636a995dSmlcreechm4_define([lt_if_append_uniq],
7812636a995dSmlcreech[m4_ifdef([$1],
7813636a995dSmlcreech	  [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
7814636a995dSmlcreech		 [lt_append([$1], [$2], [$3])$4],
7815636a995dSmlcreech		 [$5])],
7816636a995dSmlcreech	  [lt_append([$1], [$2], [$3])$4])])
7817636a995dSmlcreech
7818636a995dSmlcreech
7819636a995dSmlcreech# lt_dict_add(DICT, KEY, VALUE)
7820636a995dSmlcreech# -----------------------------
7821636a995dSmlcreechm4_define([lt_dict_add],
7822636a995dSmlcreech[m4_define([$1($2)], [$3])])
7823636a995dSmlcreech
7824636a995dSmlcreech
7825636a995dSmlcreech# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
7826636a995dSmlcreech# --------------------------------------------
7827636a995dSmlcreechm4_define([lt_dict_add_subkey],
7828636a995dSmlcreech[m4_define([$1($2:$3)], [$4])])
7829636a995dSmlcreech
7830636a995dSmlcreech
7831636a995dSmlcreech# lt_dict_fetch(DICT, KEY, [SUBKEY])
7832636a995dSmlcreech# ----------------------------------
7833636a995dSmlcreechm4_define([lt_dict_fetch],
7834636a995dSmlcreech[m4_ifval([$3],
7835636a995dSmlcreech	m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
7836636a995dSmlcreech    m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
7837636a995dSmlcreech
7838636a995dSmlcreech
7839636a995dSmlcreech# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
7840636a995dSmlcreech# -----------------------------------------------------------------
7841636a995dSmlcreechm4_define([lt_if_dict_fetch],
7842636a995dSmlcreech[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
7843636a995dSmlcreech	[$5],
7844636a995dSmlcreech    [$6])])
7845636a995dSmlcreech
7846636a995dSmlcreech
7847636a995dSmlcreech# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
7848636a995dSmlcreech# --------------------------------------------------------------
7849636a995dSmlcreechm4_define([lt_dict_filter],
7850636a995dSmlcreech[m4_if([$5], [], [],
7851636a995dSmlcreech  [lt_join(m4_quote(m4_default([$4], [[, ]])),
7852636a995dSmlcreech           lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
7853636a995dSmlcreech		      [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
7854636a995dSmlcreech])
7855636a995dSmlcreech
7856636a995dSmlcreech# ltversion.m4 -- version numbers			-*- Autoconf -*-
7857636a995dSmlcreech#
7858636a995dSmlcreech#   Copyright (C) 2004 Free Software Foundation, Inc.
7859636a995dSmlcreech#   Written by Scott James Remnant, 2004
7860636a995dSmlcreech#
7861636a995dSmlcreech# This file is free software; the Free Software Foundation gives
7862636a995dSmlcreech# unlimited permission to copy and/or distribute it, with or without
7863636a995dSmlcreech# modifications, as long as this notice is preserved.
7864636a995dSmlcreech
7865636a995dSmlcreech# Generated from ltversion.in.
7866636a995dSmlcreech
7867*6acb2cf6Svapier# serial 3012 ltversion.m4
7868636a995dSmlcreech# This file is part of GNU Libtool
7869636a995dSmlcreech
7870*6acb2cf6Svapierm4_define([LT_PACKAGE_VERSION], [2.2.6])
7871*6acb2cf6Svapierm4_define([LT_PACKAGE_REVISION], [1.3012])
7872636a995dSmlcreech
7873636a995dSmlcreechAC_DEFUN([LTVERSION_VERSION],
7874*6acb2cf6Svapier[macro_version='2.2.6'
7875*6acb2cf6Svapiermacro_revision='1.3012'
7876636a995dSmlcreech_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
7877636a995dSmlcreech_LT_DECL(, macro_revision, 0)
7878636a995dSmlcreech])
7879636a995dSmlcreech
7880636a995dSmlcreech# lt~obsolete.m4 -- aclocal satisfying obsolete definitions.    -*-Autoconf-*-
7881636a995dSmlcreech#
7882636a995dSmlcreech#   Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
7883636a995dSmlcreech#   Written by Scott James Remnant, 2004.
7884636a995dSmlcreech#
7885636a995dSmlcreech# This file is free software; the Free Software Foundation gives
7886636a995dSmlcreech# unlimited permission to copy and/or distribute it, with or without
7887636a995dSmlcreech# modifications, as long as this notice is preserved.
7888636a995dSmlcreech
7889636a995dSmlcreech# serial 4 lt~obsolete.m4
7890636a995dSmlcreech
7891636a995dSmlcreech# These exist entirely to fool aclocal when bootstrapping libtool.
7892636a995dSmlcreech#
7893636a995dSmlcreech# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
7894636a995dSmlcreech# which have later been changed to m4_define as they aren't part of the
7895636a995dSmlcreech# exported API, or moved to Autoconf or Automake where they belong.
7896636a995dSmlcreech#
7897636a995dSmlcreech# The trouble is, aclocal is a bit thick.  It'll see the old AC_DEFUN
7898636a995dSmlcreech# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
7899636a995dSmlcreech# using a macro with the same name in our local m4/libtool.m4 it'll
7900636a995dSmlcreech# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
7901636a995dSmlcreech# and doesn't know about Autoconf macros at all.)
7902636a995dSmlcreech#
7903636a995dSmlcreech# So we provide this file, which has a silly filename so it's always
7904636a995dSmlcreech# included after everything else.  This provides aclocal with the
7905636a995dSmlcreech# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
7906636a995dSmlcreech# because those macros already exist, or will be overwritten later.
7907636a995dSmlcreech# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
7908636a995dSmlcreech#
7909636a995dSmlcreech# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
7910636a995dSmlcreech# Yes, that means every name once taken will need to remain here until
7911636a995dSmlcreech# we give up compatibility with versions before 1.7, at which point
7912636a995dSmlcreech# we need to keep only those names which we still refer to.
7913636a995dSmlcreech
7914636a995dSmlcreech# This is to help aclocal find these macros, as it can't see m4_define.
7915636a995dSmlcreechAC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
7916636a995dSmlcreech
7917636a995dSmlcreechm4_ifndef([AC_LIBTOOL_LINKER_OPTION],	[AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
7918636a995dSmlcreechm4_ifndef([AC_PROG_EGREP],		[AC_DEFUN([AC_PROG_EGREP])])
7919636a995dSmlcreechm4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH],	[AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
7920636a995dSmlcreechm4_ifndef([_LT_AC_SHELL_INIT],		[AC_DEFUN([_LT_AC_SHELL_INIT])])
7921636a995dSmlcreechm4_ifndef([_LT_AC_SYS_LIBPATH_AIX],	[AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
7922636a995dSmlcreechm4_ifndef([_LT_PROG_LTMAIN],		[AC_DEFUN([_LT_PROG_LTMAIN])])
7923636a995dSmlcreechm4_ifndef([_LT_AC_TAGVAR],		[AC_DEFUN([_LT_AC_TAGVAR])])
7924636a995dSmlcreechm4_ifndef([AC_LTDL_ENABLE_INSTALL],	[AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
7925636a995dSmlcreechm4_ifndef([AC_LTDL_PREOPEN],		[AC_DEFUN([AC_LTDL_PREOPEN])])
7926636a995dSmlcreechm4_ifndef([_LT_AC_SYS_COMPILER],	[AC_DEFUN([_LT_AC_SYS_COMPILER])])
7927636a995dSmlcreechm4_ifndef([_LT_AC_LOCK],		[AC_DEFUN([_LT_AC_LOCK])])
7928636a995dSmlcreechm4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE],	[AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
7929636a995dSmlcreechm4_ifndef([_LT_AC_TRY_DLOPEN_SELF],	[AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
7930636a995dSmlcreechm4_ifndef([AC_LIBTOOL_PROG_CC_C_O],	[AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
7931636a995dSmlcreechm4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
7932636a995dSmlcreechm4_ifndef([AC_LIBTOOL_OBJDIR],		[AC_DEFUN([AC_LIBTOOL_OBJDIR])])
7933636a995dSmlcreechm4_ifndef([AC_LTDL_OBJDIR],		[AC_DEFUN([AC_LTDL_OBJDIR])])
7934636a995dSmlcreechm4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
7935636a995dSmlcreechm4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP],	[AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
7936636a995dSmlcreechm4_ifndef([AC_PATH_MAGIC],		[AC_DEFUN([AC_PATH_MAGIC])])
7937636a995dSmlcreechm4_ifndef([AC_PROG_LD_GNU],		[AC_DEFUN([AC_PROG_LD_GNU])])
7938636a995dSmlcreechm4_ifndef([AC_PROG_LD_RELOAD_FLAG],	[AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
7939636a995dSmlcreechm4_ifndef([AC_DEPLIBS_CHECK_METHOD],	[AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
7940636a995dSmlcreechm4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
7941636a995dSmlcreechm4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
7942636a995dSmlcreechm4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
7943636a995dSmlcreechm4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS],	[AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
7944636a995dSmlcreechm4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP],	[AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
7945636a995dSmlcreechm4_ifndef([LT_AC_PROG_EGREP],		[AC_DEFUN([LT_AC_PROG_EGREP])])
7946636a995dSmlcreechm4_ifndef([LT_AC_PROG_SED],		[AC_DEFUN([LT_AC_PROG_SED])])
7947636a995dSmlcreechm4_ifndef([_LT_CC_BASENAME],		[AC_DEFUN([_LT_CC_BASENAME])])
7948636a995dSmlcreechm4_ifndef([_LT_COMPILER_BOILERPLATE],	[AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
7949636a995dSmlcreechm4_ifndef([_LT_LINKER_BOILERPLATE],	[AC_DEFUN([_LT_LINKER_BOILERPLATE])])
7950636a995dSmlcreechm4_ifndef([_AC_PROG_LIBTOOL],		[AC_DEFUN([_AC_PROG_LIBTOOL])])
7951636a995dSmlcreechm4_ifndef([AC_LIBTOOL_SETUP],		[AC_DEFUN([AC_LIBTOOL_SETUP])])
7952636a995dSmlcreechm4_ifndef([_LT_AC_CHECK_DLFCN],		[AC_DEFUN([_LT_AC_CHECK_DLFCN])])
7953636a995dSmlcreechm4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER],	[AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
7954636a995dSmlcreechm4_ifndef([_LT_AC_TAGCONFIG],		[AC_DEFUN([_LT_AC_TAGCONFIG])])
7955636a995dSmlcreechm4_ifndef([AC_DISABLE_FAST_INSTALL],	[AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
7956636a995dSmlcreechm4_ifndef([_LT_AC_LANG_CXX],		[AC_DEFUN([_LT_AC_LANG_CXX])])
7957636a995dSmlcreechm4_ifndef([_LT_AC_LANG_F77],		[AC_DEFUN([_LT_AC_LANG_F77])])
7958636a995dSmlcreechm4_ifndef([_LT_AC_LANG_GCJ],		[AC_DEFUN([_LT_AC_LANG_GCJ])])
7959636a995dSmlcreechm4_ifndef([AC_LIBTOOL_RC],		[AC_DEFUN([AC_LIBTOOL_RC])])
7960636a995dSmlcreechm4_ifndef([AC_LIBTOOL_LANG_C_CONFIG],	[AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
7961636a995dSmlcreechm4_ifndef([_LT_AC_LANG_C_CONFIG],	[AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
7962636a995dSmlcreechm4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG],	[AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
7963636a995dSmlcreechm4_ifndef([_LT_AC_LANG_CXX_CONFIG],	[AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
7964636a995dSmlcreechm4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG],	[AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
7965636a995dSmlcreechm4_ifndef([_LT_AC_LANG_F77_CONFIG],	[AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
7966636a995dSmlcreechm4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG],	[AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
7967636a995dSmlcreechm4_ifndef([_LT_AC_LANG_GCJ_CONFIG],	[AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
7968636a995dSmlcreechm4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG],	[AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
7969636a995dSmlcreechm4_ifndef([_LT_AC_LANG_RC_CONFIG],	[AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
7970636a995dSmlcreechm4_ifndef([AC_LIBTOOL_CONFIG],		[AC_DEFUN([AC_LIBTOOL_CONFIG])])
7971636a995dSmlcreechm4_ifndef([_LT_AC_FILE_LTDLL_C],	[AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
7972636a995dSmlcreech
7973