1 Index: libiconv-1.12/libcharset/configure.ac
2 ===================================================================
3 --- libiconv-1.12.orig/libcharset/configure.ac 2007-03-05 01:56:23.000000000 +0100
4 +++ libiconv-1.12/libcharset/configure.ac 2008-06-06 22:59:25.487260530 +0200
6 dnl write to the Free Software Foundation, Inc., 51 Franklin Street,
7 dnl Fifth Floor, Boston, MA 02110-1301, USA.
11 +AC_INIT([libcharset],[1.4] )
12 +AC_CONFIG_SRCDIR([lib/localcharset.c])
17 -AC_INIT(lib/localcharset.c)
18 AC_CONFIG_AUX_DIR(build-aux)
19 AC_CONFIG_HEADER(config.h)
23 +dnl AC_SUBST(PACKAGE)
24 +dnl AC_SUBST(VERSION)
26 +AC_CONFIG_MACRO_DIR([m4])
28 dnl checks for basic programs
30 Index: libiconv-1.12/configure.ac
31 ===================================================================
32 --- libiconv-1.12.orig/configure.ac 2007-10-24 01:32:52.000000000 +0200
33 +++ libiconv-1.12/configure.ac 2008-06-06 22:59:25.487260530 +0200
35 AC_CONFIG_HEADERS(config.h lib/config.h)
38 +AC_CONFIG_MACRO_DIR([m4])
40 dnl checks for basic programs
43 Index: libiconv-1.12/libcharset/m4/libtool.m4
44 ===================================================================
45 --- libiconv-1.12.orig/libcharset/m4/libtool.m4 2007-10-27 02:46:10.000000000 +0200
46 +++ libiconv-1.12/libcharset/m4/libtool.m4 2008-06-06 23:00:06.407256379 +0200
48 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
49 -## Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006
50 -## Free Software Foundation, Inc.
51 -## Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
53 -## This file is free software; the Free Software Foundation gives
54 -## unlimited permission to copy and/or distribute it, with or without
55 -## modifications, as long as this notice is preserved.
57 -# serial 48 AC_PROG_LIBTOOL
60 -# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
61 -# -----------------------------------------------------------
62 -# If this macro is not defined by Autoconf, define it here.
63 -m4_ifdef([AC_PROVIDE_IFELSE],
65 - [m4_define([AC_PROVIDE_IFELSE],
66 - [m4_ifdef([AC_PROVIDE_$1],
69 +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
70 +# 2006, 2007, 2008 Free Software Foundation, Inc.
71 +# Written by Gordon Matzigkeit, 1996
73 +# This file is free software; the Free Software Foundation gives
74 +# unlimited permission to copy and/or distribute it, with or without
75 +# modifications, as long as this notice is preserved.
77 +m4_define([_LT_COPYING], [dnl
78 +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
79 +# 2006, 2007, 2008 Free Software Foundation, Inc.
80 +# Written by Gordon Matzigkeit, 1996
82 +# This file is part of GNU Libtool.
84 +# GNU Libtool is free software; you can redistribute it and/or
85 +# modify it under the terms of the GNU General Public License as
86 +# published by the Free Software Foundation; either version 2 of
87 +# the License, or (at your option) any later version.
89 +# As a special exception to the GNU General Public License,
90 +# if you distribute this file as part of a program or library that
91 +# is built using GNU Libtool, you may include this file under the
92 +# same distribution terms that you use for the rest of that program.
94 +# GNU Libtool is distributed in the hope that it will be useful,
95 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
96 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
97 +# GNU General Public License for more details.
99 +# You should have received a copy of the GNU General Public License
100 +# along with GNU Libtool; see the file COPYING. If not, a copy
101 +# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
102 +# obtained by writing to the Free Software Foundation, Inc.,
103 +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
110 -AC_DEFUN([AC_PROG_LIBTOOL],
111 -[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
112 -dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
113 -dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
114 - AC_PROVIDE_IFELSE([AC_PROG_CXX],
116 - [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
118 -dnl And a similar setup for Fortran 77 support
119 - AC_PROVIDE_IFELSE([AC_PROG_F77],
121 - [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
124 -dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
125 -dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
126 -dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
127 - AC_PROVIDE_IFELSE([AC_PROG_GCJ],
129 - [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
131 - [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
133 - [ifdef([AC_PROG_GCJ],
134 - [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
135 - ifdef([A][M_PROG_GCJ],
136 - [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
137 - ifdef([LT_AC_PROG_GCJ],
138 - [define([LT_AC_PROG_GCJ],
139 - defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
140 -])])# AC_PROG_LIBTOOL
142 +# LT_PREREQ(VERSION)
143 +# ------------------
144 +# Complain and exit if this libtool version is less that VERSION.
145 +m4_defun([LT_PREREQ],
146 +[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
148 + [m4_fatal([Libtool version $1 or higher is required],
154 -AC_DEFUN([_AC_PROG_LIBTOOL],
155 -[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
156 -AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
157 -AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
158 -AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
160 +# _LT_CHECK_BUILDDIR
161 +# ------------------
162 +# Complain if the absolute build directory name contains unusual characters
163 +m4_defun([_LT_CHECK_BUILDDIR],
166 + AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
171 +# LT_INIT([OPTIONS])
172 +# ------------------
174 +[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
175 +AC_BEFORE([$0], [LT_LANG])dnl
176 +AC_BEFORE([$0], [LT_OUTPUT])dnl
177 +AC_BEFORE([$0], [LTDL_INIT])dnl
178 +m4_require([_LT_CHECK_BUILDDIR])dnl
180 +dnl Autoconf doesn't catch unexpanded LT_ macros by default:
181 +m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
182 +m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
183 +dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
184 +dnl unless we require an AC_DEFUNed macro:
185 +AC_REQUIRE([LTOPTIONS_VERSION])dnl
186 +AC_REQUIRE([LTSUGAR_VERSION])dnl
187 +AC_REQUIRE([LTVERSION_VERSION])dnl
188 +AC_REQUIRE([LTOBSOLETE_VERSION])dnl
189 +m4_require([_LT_PROG_LTMAIN])dnl
192 +_LT_SET_OPTIONS([$0], [$1])
194 # This can be used to rebuild libtool when needed
195 -LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
196 +LIBTOOL_DEPS="$ltmain"
198 # Always use our own libtool.
199 -LIBTOOL='$(SHELL) $(top_builddir)/libtool'
200 +LIBTOOL='$(SHELL) $(top_builddir)'
201 +LIBTOOL="$LIBTOOL/$host_alias-libtool"
204 -# Prevent multiple expansion
205 -define([AC_PROG_LIBTOOL], [])
206 -])# _AC_PROG_LIBTOOL
210 +m4_define([LT_INIT])
214 +AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
215 +AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
216 +dnl aclocal-1.4 backwards compatibility:
217 +dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
218 +dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
222 -AC_DEFUN([AC_LIBTOOL_SETUP],
224 -AC_REQUIRE([AC_ENABLE_SHARED])dnl
225 -AC_REQUIRE([AC_ENABLE_STATIC])dnl
226 -AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
227 -AC_REQUIRE([AC_CANONICAL_HOST])dnl
229 +# _LT_CC_BASENAME(CC)
230 +# -------------------
231 +# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
232 +m4_defun([_LT_CC_BASENAME],
233 +[for cc_temp in $1""; do
235 + compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
236 + distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
241 +cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
245 +# _LT_FILEUTILS_DEFAULTS
246 +# ----------------------
247 +# It is okay to use these file commands and assume they have been set
248 +# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
249 +m4_defun([_LT_FILEUTILS_DEFAULTS],
253 +])# _LT_FILEUTILS_DEFAULTS
258 +m4_defun([_LT_SETUP],
259 +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
260 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
261 +_LT_DECL([], [host_alias], [0], [The host system])dnl
262 +_LT_DECL([], [host], [0])dnl
263 +_LT_DECL([], [host_os], [0])dnl
265 +_LT_DECL([], [build_alias], [0], [The build system])dnl
266 +_LT_DECL([], [build], [0])dnl
267 +_LT_DECL([], [build_os], [0])dnl
269 AC_REQUIRE([AC_PROG_CC])dnl
270 -AC_REQUIRE([AC_PROG_LD])dnl
271 -AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
272 -AC_REQUIRE([AC_PROG_NM])dnl
274 +AC_REQUIRE([LT_PATH_LD])dnl
275 +AC_REQUIRE([LT_PATH_NM])dnl
277 AC_REQUIRE([AC_PROG_LN_S])dnl
278 -AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
279 -# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
280 -AC_REQUIRE([AC_OBJEXT])dnl
281 -AC_REQUIRE([AC_EXEEXT])dnl
282 +test -z "$LN_S" && LN_S="ln -s"
283 +_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
285 +AC_REQUIRE([LT_CMD_MAX_LEN])dnl
286 +_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
287 +_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
289 +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
290 +m4_require([_LT_CHECK_SHELL_FEATURES])dnl
291 +m4_require([_LT_CMD_RELOAD])dnl
292 +m4_require([_LT_CHECK_MAGIC_METHOD])dnl
293 +m4_require([_LT_CMD_OLD_ARCHIVE])dnl
294 +m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
296 +_LT_CONFIG_LIBTOOL_INIT([
297 +# See if we are running on zsh, and set the options which allow our
298 +# commands through without removal of \ escapes INIT.
299 +if test -n "\${ZSH_VERSION+set}" ; then
300 + setopt NO_GLOB_SUBST
303 +if test -n "${ZSH_VERSION+set}" ; then
304 + setopt NO_GLOB_SUBST
307 -AC_LIBTOOL_SYS_MAX_CMD_LEN
308 -AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
312 -AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
313 -_LT_AC_PROG_ECHO_BACKSLASH
314 +m4_require([_LT_TAG_COMPILER])dnl
315 +_LT_PROG_ECHO_BACKSLASH
319 @@ -117,6307 +196,6803 @@ esac
321 # Sed substitution that helps us do robust quoting. It backslashifies
322 # metacharacters that are still active within double-quoted strings.
323 -Xsed='sed -e 1s/^X//'
324 -[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
325 +sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
327 # Same as above, but do not quote variable references.
328 -[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
329 +double_quote_subst='s/\([["`\\]]\)/\\\1/g'
331 # Sed substitution to delay expansion of an escaped shell variable in a
332 # double_quote_subst'ed string.
333 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
335 +# Sed substitution to delay expansion of an escaped single quote.
336 +delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
338 # Sed substitution to avoid accidental globbing in evaled expressions
339 no_glob_subst='s/\*/\\\*/g'
345 -default_ofile=libtool
346 +ofile=${host_alias}-libtool
349 # All known linkers require a `.a' archive for static linking (except MSVC,
350 # which needs '.lib').
352 -ltmain="$ac_aux_dir/ltmain.sh"
353 -ofile="$default_ofile"
354 -with_gnu_ld="$lt_cv_prog_gnu_ld"
356 -AC_CHECK_TOOL(AR, ar, false)
357 -AC_CHECK_TOOL(RANLIB, ranlib, :)
358 -AC_CHECK_TOOL(STRIP, strip, :)
359 +with_gnu_ld="$lt_cv_prog_gnu_ld"
364 # Set sane defaults for various variables
365 -test -z "$AR" && AR=ar
366 -test -z "$AR_FLAGS" && AR_FLAGS=cru
367 -test -z "$AS" && AS=as
368 test -z "$CC" && CC=cc
369 test -z "$LTCC" && LTCC=$CC
370 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
371 -test -z "$DLLTOOL" && DLLTOOL=dlltool
372 test -z "$LD" && LD=ld
373 -test -z "$LN_S" && LN_S="ln -s"
374 -test -z "$MAGIC_CMD" && MAGIC_CMD=file
375 -test -z "$NM" && NM=nm
376 -test -z "$SED" && SED=sed
377 -test -z "$OBJDUMP" && OBJDUMP=objdump
378 -test -z "$RANLIB" && RANLIB=:
379 -test -z "$STRIP" && STRIP=:
380 test -z "$ac_objext" && ac_objext=o
382 -# Determine commands to create old-style static archives.
383 -old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
384 -old_postinstall_cmds='chmod 644 $oldlib'
385 -old_postuninstall_cmds=
387 -if test -n "$RANLIB"; then
390 - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
393 - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
396 - old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
399 _LT_CC_BASENAME([$compiler])
401 # Only perform the check for file, if the check method requires it
402 +test -z "$MAGIC_CMD" && MAGIC_CMD=file
403 case $deplibs_check_method in
405 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
412 -AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
413 -AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
414 -enable_win32_dll=yes, enable_win32_dll=no)
416 -AC_ARG_ENABLE([libtool-lock],
417 - [AC_HELP_STRING([--disable-libtool-lock],
418 - [avoid locking (might break parallel builds)])])
419 -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
420 +# Use C for the default configuration in the libtool script
421 +LT_SUPPORTED_TAG([CC])
423 +_LT_LANG_DEFAULT_CONFIG
428 - [AC_HELP_STRING([--with-pic],
429 - [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
430 - [pic_mode="$withval"],
431 - [pic_mode=default])
432 -test -z "$pic_mode" && pic_mode=default
434 -# Use C for the default configuration in the libtool script
436 -AC_LIBTOOL_LANG_C_CONFIG
438 -])# AC_LIBTOOL_SETUP
441 +# Note that this code is called both from `configure', and `config.status'
442 +# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
443 +# `config.status' has no value for ac_aux_dir unless we are using Automake,
444 +# so we pass a copy along to make sure it has a sensible value anyway.
445 +m4_defun([_LT_PROG_LTMAIN],
446 +[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
447 +_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
448 +ltmain="$ac_aux_dir/ltmain.sh"
452 -# _LT_AC_SYS_COMPILER
453 -# -------------------
454 -AC_DEFUN([_LT_AC_SYS_COMPILER],
455 -[AC_REQUIRE([AC_PROG_CC])dnl
456 +## ------------------------------------- ##
457 +## Accumulate code for creating libtool. ##
458 +## ------------------------------------- ##
460 +# So that we can recreate a full libtool script including additional
461 +# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
462 +# in macros and then make a single call at the end using the `libtool'
466 +# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
467 +# ----------------------------------------
468 +# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
469 +m4_define([_LT_CONFIG_LIBTOOL_INIT],
471 + [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
476 +m4_define([_LT_OUTPUT_LIBTOOL_INIT])
479 +# _LT_CONFIG_LIBTOOL([COMMANDS])
480 +# ------------------------------
481 +# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
482 +m4_define([_LT_CONFIG_LIBTOOL],
484 + [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
489 +m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
492 +# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
493 +# -----------------------------------------------------
494 +m4_defun([_LT_CONFIG_SAVE_COMMANDS],
495 +[_LT_CONFIG_LIBTOOL([$1])
496 +_LT_CONFIG_LIBTOOL_INIT([$2])
499 -# If no C compiler was specified, use CC.
502 -# If no C compiler flags were specified, use CFLAGS.
503 -LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
504 +# _LT_FORMAT_COMMENT([COMMENT])
505 +# -----------------------------
506 +# Add leading comment marks to the start of each line, and a trailing
507 +# full-stop to the whole comment if one is not present already.
508 +m4_define([_LT_FORMAT_COMMENT],
510 +m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
511 + [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
514 -# Allow CC to be a program name with arguments.
516 -])# _LT_AC_SYS_COMPILER
519 -# _LT_CC_BASENAME(CC)
520 -# -------------------
521 -# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
522 -AC_DEFUN([_LT_CC_BASENAME],
523 -[for cc_temp in $1""; do
525 - compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
526 - distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
531 -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
532 +## ------------------------ ##
533 +## FIXME: Eliminate VARNAME ##
534 +## ------------------------ ##
537 +# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
538 +# -------------------------------------------------------------------
539 +# CONFIGNAME is the name given to the value in the libtool script.
540 +# VARNAME is the (base) name used in the configure script.
541 +# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
542 +# VARNAME. Any other value will be used directly.
543 +m4_define([_LT_DECL],
544 +[lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
545 + [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
546 + [m4_ifval([$1], [$1], [$2])])
547 + lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
549 + [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
550 + lt_dict_add_subkey([lt_decl_dict], [$2],
551 + [tagged?], [m4_ifval([$5], [yes], [no])])])
555 -# _LT_COMPILER_BOILERPLATE
556 -# ------------------------
557 -# Check for compiler boilerplate output or warnings with
558 -# the simple compiler test code.
559 -AC_DEFUN([_LT_COMPILER_BOILERPLATE],
560 -[ac_outfile=conftest.$ac_objext
561 -printf "$lt_simple_compile_test_code" >conftest.$ac_ext
562 -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
563 -_lt_compiler_boilerplate=`cat conftest.err`
565 -])# _LT_COMPILER_BOILERPLATE
567 +# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
568 +# --------------------------------------------------------
569 +m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
572 +# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
573 +# ------------------------------------------------
574 +m4_define([lt_decl_tag_varnames],
575 +[_lt_decl_filter([tagged?], [yes], $@)])
578 +# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
579 +# ---------------------------------------------------------
580 +m4_define([_lt_decl_filter],
582 + [0], [m4_fatal([$0: too few arguments: $#])],
583 + [1], [m4_fatal([$0: too few arguments: $#: $1])],
584 + [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
585 + [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
586 + [lt_dict_filter([lt_decl_dict], $@)])[]dnl
589 -# _LT_LINKER_BOILERPLATE
590 -# ----------------------
591 -# Check for linker boilerplate output or warnings with
592 -# the simple link test code.
593 -AC_DEFUN([_LT_LINKER_BOILERPLATE],
594 -[ac_outfile=conftest.$ac_objext
595 -printf "$lt_simple_link_test_code" >conftest.$ac_ext
596 -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
597 -_lt_linker_boilerplate=`cat conftest.err`
599 -])# _LT_LINKER_BOILERPLATE
601 +# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
602 +# --------------------------------------------------
603 +m4_define([lt_decl_quote_varnames],
604 +[_lt_decl_filter([value], [1], $@)])
607 +# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
608 +# ---------------------------------------------------
609 +m4_define([lt_decl_dquote_varnames],
610 +[_lt_decl_filter([value], [2], $@)])
613 +# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
614 +# ---------------------------------------------------
615 +m4_define([lt_decl_varnames_tagged],
616 +[_$0(m4_quote(m4_default([$1], [[, ]])),
617 + m4_quote(m4_if([$2], [],
618 + m4_quote(lt_decl_tag_varnames),
619 + m4_quote(m4_shift($@)))),
620 + m4_split(m4_normalize(m4_quote(_LT_TAGS))))])
621 +m4_define([_lt_decl_varnames_tagged], [lt_combine([$1], [$2], [_], $3)])
624 +# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
625 +# ------------------------------------------------
626 +m4_define([lt_decl_all_varnames],
627 +[_$0(m4_quote(m4_default([$1], [[, ]])),
629 + m4_quote(lt_decl_varnames),
630 + m4_quote(m4_shift($@))))[]dnl
632 +m4_define([_lt_decl_all_varnames],
633 +[lt_join($@, lt_decl_varnames_tagged([$1],
634 + lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
637 -# _LT_AC_SYS_LIBPATH_AIX
638 -# ----------------------
639 -# Links a minimal program and checks the executable
640 -# for the system default hardcoded library path. In most cases,
641 -# this is /usr/lib:/lib, but when the MPI compilers are used
642 -# the location of the communication and MPI libs are included too.
643 -# If we don't find anything, use the default library path according
644 -# to the aix ld manual.
645 -AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
646 -[AC_LINK_IFELSE(AC_LANG_PROGRAM,[
647 -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
649 -# Check for a 64-bit object if we didn't find anything.
650 -if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
652 -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
653 -])# _LT_AC_SYS_LIBPATH_AIX
655 +# _LT_CONFIG_STATUS_DECLARE([VARNAME])
656 +# ------------------------------------
657 +# Quote a variable value, and forward it to `config.status' so that its
658 +# declaration there will have the same value as in `configure'. VARNAME
659 +# must have a single quote delimited value for this to work.
660 +m4_define([_LT_CONFIG_STATUS_DECLARE],
661 +[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
663 -# _LT_AC_SHELL_INIT(ARG)
664 -# ----------------------
665 -AC_DEFUN([_LT_AC_SHELL_INIT],
666 -[ifdef([AC_DIVERSION_NOTICE],
667 - [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
668 - [AC_DIVERT_PUSH(NOTICE)])
671 -])# _LT_AC_SHELL_INIT
673 +# _LT_CONFIG_STATUS_DECLARATIONS
674 +# ------------------------------
675 +# We delimit libtool config variables with single quotes, so when
676 +# we write them to config.status, we have to be sure to quote all
677 +# embedded single quotes properly. In configure, this macro expands
678 +# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
680 +# <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
681 +m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
682 +[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
683 + [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
685 -# _LT_AC_PROG_ECHO_BACKSLASH
686 -# --------------------------
687 -# Add some code to the start of the generated configure script which
688 -# will find an echo command which doesn't interpret backslashes.
689 -AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
690 -[_LT_AC_SHELL_INIT([
691 -# Check that we are running under the correct shell.
692 -SHELL=${CONFIG_SHELL-/bin/sh}
696 - # Remove one level of quotation (which was required for Make).
697 - ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
702 +# Output comment and list of tags supported by the script
703 +m4_defun([_LT_LIBTOOL_TAGS],
704 +[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
705 +available_tags="_LT_TAGS"dnl
709 -if test "X[$]1" = X--no-reexec; then
710 - # Discard the --no-reexec flag, and continue.
712 -elif test "X[$]1" = X--fallback-echo; then
713 - # Avoid inline document here, it may be left over
715 -elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
716 - # Yippee, $echo works!
719 - # Restart under the correct shell.
720 - exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
723 -if test "X[$]1" = X--fallback-echo; then
724 - # used as fallback echo
731 +# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
732 +# -----------------------------------
733 +# Extract the dictionary values for VARNAME (optionally with TAG) and
734 +# expand to a commented shell variable setting:
736 +# # Some comment about what VAR is for.
737 +# visible_name=$lt_internal_name
738 +m4_define([_LT_LIBTOOL_DECLARE],
739 +[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
740 + [description])))[]dnl
741 +m4_pushdef([_libtool_name],
742 + m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
743 +m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
744 + [0], [_libtool_name=[$]$1],
745 + [1], [_libtool_name=$lt_[]$1],
746 + [2], [_libtool_name=$lt_[]$1],
747 + [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
748 +m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
751 -# The HP-UX ksh and POSIX shell print the target directory to stdout
753 -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
755 -if test -z "$ECHO"; then
756 -if test "X${echo_test_string+set}" != Xset; then
757 -# find a string as large as possible, as long as the shell can cope with it
758 - for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
759 - # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
760 - if (echo_test_string=`eval $cmd`) 2>/dev/null &&
761 - echo_test_string=`eval $cmd` &&
762 - (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
768 +# _LT_LIBTOOL_CONFIG_VARS
769 +# -----------------------
770 +# Produce commented declarations of non-tagged libtool config variables
771 +# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
772 +# script. Tagged libtool config variables (even for the LIBTOOL CONFIG
773 +# section) are produced by _LT_LIBTOOL_TAG_VARS.
774 +m4_defun([_LT_LIBTOOL_CONFIG_VARS],
775 +[m4_foreach([_lt_var],
776 + m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
777 + [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
779 -if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
780 - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
781 - test "X$echo_testing_string" = "X$echo_test_string"; then
784 - # The Solaris, AIX, and Digital Unix default echo programs unquote
785 - # backslashes. This makes it impossible to quote backslashes using
786 - # echo "$something" | sed 's/\\/\\\\/g'
788 - # So, first we look for a working echo in the user's PATH.
790 - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
791 - for dir in $PATH /usr/ucb; do
793 - if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
794 - test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
795 - echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
796 - test "X$echo_testing_string" = "X$echo_test_string"; then
802 +# _LT_LIBTOOL_TAG_VARS(TAG)
803 +# -------------------------
804 +m4_define([_LT_LIBTOOL_TAG_VARS],
805 +[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
806 + [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
808 - if test "X$echo" = Xecho; then
809 - # We didn't find a better echo, so look for alternatives.
810 - if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
811 - echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
812 - test "X$echo_testing_string" = "X$echo_test_string"; then
813 - # This shell has a builtin print -r that does the trick.
815 - elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
816 - test "X$CONFIG_SHELL" != X/bin/ksh; then
817 - # If we have ksh, try running configure again with it.
818 - ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
819 - export ORIGINAL_CONFIG_SHELL
820 - CONFIG_SHELL=/bin/ksh
821 - export CONFIG_SHELL
822 - exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
824 - # Try using printf.
826 - if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
827 - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
828 - test "X$echo_testing_string" = "X$echo_test_string"; then
829 - # Cool, printf works
831 - elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
832 - test "X$echo_testing_string" = 'X\t' &&
833 - echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
834 - test "X$echo_testing_string" = "X$echo_test_string"; then
835 - CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
836 - export CONFIG_SHELL
837 - SHELL="$CONFIG_SHELL"
839 - echo="$CONFIG_SHELL [$]0 --fallback-echo"
840 - elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
841 - test "X$echo_testing_string" = 'X\t' &&
842 - echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
843 - test "X$echo_testing_string" = "X$echo_test_string"; then
844 - echo="$CONFIG_SHELL [$]0 --fallback-echo"
846 - # maybe with a smaller string...
849 - for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
850 - if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
856 +# _LT_TAGVAR(VARNAME, [TAGNAME])
857 +# ------------------------------
858 +m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
860 - if test "$prev" != 'sed 50q "[$]0"'; then
861 - echo_test_string=`eval $prev`
862 - export echo_test_string
863 - exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
865 - # Oops. We lost completely, so just stick with echo.
874 -# Copy echo and quote the copy suitably for passing to libtool from
875 -# the Makefile, instead of quoting the original, which is used later.
877 -if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
878 - ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
880 +# _LT_CONFIG_COMMANDS
881 +# -------------------
882 +# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
883 +# variables for single and double quote escaping we saved from calls
884 +# to _LT_DECL, we can put quote escaped variables declarations
885 +# into `config.status', and then the shell code to quote escape them in
886 +# for loops in `config.status'. Finally, any additional code accumulated
887 +# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
888 +m4_defun([_LT_CONFIG_COMMANDS],
889 +[AC_PROVIDE_IFELSE([LT_OUTPUT],
890 + dnl If the libtool generation code has been placed in $CONFIG_LT,
891 + dnl instead of duplicating it all over again into config.status,
892 + dnl then we will have config.status run $CONFIG_LT later, so it
893 + dnl needs to know what name is stored there:
894 + [AC_CONFIG_COMMANDS([libtool],
895 + [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
896 + dnl If the libtool generation code is destined for config.status,
897 + dnl expand the accumulated commands and init code now:
898 + [AC_CONFIG_COMMANDS([libtool],
899 + [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
900 +])#_LT_CONFIG_COMMANDS
903 -])])# _LT_AC_PROG_ECHO_BACKSLASH
906 +m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
911 -AC_DEFUN([_LT_AC_LOCK],
912 -[AC_ARG_ENABLE([libtool-lock],
913 - [AC_HELP_STRING([--disable-libtool-lock],
914 - [avoid locking (might break parallel builds)])])
915 -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
916 +# The HP-UX ksh and POSIX shell print the target directory to stdout
918 +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
920 -# Some flags need to be propagated to the compiler or linker for good
924 - # Find out which ABI we are using.
925 - echo 'int i;' > conftest.$ac_ext
926 - if AC_TRY_EVAL(ac_compile); then
927 - case `/usr/bin/file conftest.$ac_objext` in
929 - HPUX_IA64_MODE="32"
932 - HPUX_IA64_MODE="64"
939 - # Find out which ABI we are using.
940 - echo '[#]line __oline__ "configure"' > conftest.$ac_ext
941 - if AC_TRY_EVAL(ac_compile); then
942 - if test "$lt_cv_prog_gnu_ld" = yes; then
943 - case `/usr/bin/file conftest.$ac_objext` in
945 - LD="${LD-ld} -melf32bsmip"
948 - LD="${LD-ld} -melf32bmipn32"
949 +sed_quote_subst='$sed_quote_subst'
950 +double_quote_subst='$double_quote_subst'
951 +delay_variable_subst='$delay_variable_subst'
952 +_LT_CONFIG_STATUS_DECLARATIONS
954 +LTCFLAGS='$LTCFLAGS'
955 +compiler='$compiler_DEFAULT'
957 +# Quote evaled strings.
958 +for var in lt_decl_all_varnames([[ \
959 +]], lt_decl_quote_varnames); do
960 + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
961 + *[[\\\\\\\`\\"\\\$]]*)
962 + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
965 - LD="${LD-ld} -melf64bmip"
967 + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
971 - case `/usr/bin/file conftest.$ac_objext` in
979 +# Double-quote double-evaled strings.
980 +for var in lt_decl_all_varnames([[ \
981 +]], lt_decl_dquote_varnames); do
982 + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
983 + *[[\\\\\\\`\\"\\\$]]*)
984 + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
989 + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
997 +# Fix-up fallback echo if it was mangled by the above quoting rules.
999 +*'\\\[$]0 --fallback-echo"')dnl "
1000 + lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
1004 -x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
1005 - # Find out which ABI we are using.
1006 - echo 'int i;' > conftest.$ac_ext
1007 - if AC_TRY_EVAL(ac_compile); then
1008 - case `/usr/bin/file conftest.o` in
1012 - LD="${LD-ld} -m elf_i386"
1014 - ppc64-*linux*|powerpc64-*linux*)
1015 - LD="${LD-ld} -m elf32ppclinux"
1018 - LD="${LD-ld} -m elf_s390"
1021 - LD="${LD-ld} -m elf32_sparc"
1028 - LD="${LD-ld} -m elf_x86_64"
1030 - ppc*-*linux*|powerpc*-*linux*)
1031 - LD="${LD-ld} -m elf64ppc"
1034 - LD="${LD-ld} -m elf64_s390"
1037 - LD="${LD-ld} -m elf64_sparc"
1045 +_LT_OUTPUT_LIBTOOL_INIT
1049 - # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1050 - SAVE_CFLAGS="$CFLAGS"
1051 - CFLAGS="$CFLAGS -belf"
1052 - AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
1054 - AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
1056 - if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1057 - # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1058 - CFLAGS="$SAVE_CFLAGS"
1062 - # Find out which ABI we are using.
1063 - echo 'int i;' > conftest.$ac_ext
1064 - if AC_TRY_EVAL(ac_compile); then
1065 - case `/usr/bin/file conftest.o` in
1067 - case $lt_cv_prog_gnu_ld in
1068 - yes*) LD="${LD-ld} -m elf64_sparc" ;;
1069 - *) LD="${LD-ld} -64" ;;
1077 -AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
1078 -[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
1079 - AC_CHECK_TOOL(DLLTOOL, dlltool, false)
1080 - AC_CHECK_TOOL(AS, as, false)
1081 - AC_CHECK_TOOL(OBJDUMP, objdump, false)
1087 +# This macro allows early generation of the libtool script (before
1088 +# AC_OUTPUT is called), incase it is used in configure for compilation
1090 +AC_DEFUN([LT_OUTPUT],
1091 +[: ${CONFIG_LT=./config.lt}
1092 +AC_MSG_NOTICE([creating $CONFIG_LT])
1093 +cat >"$CONFIG_LT" <<_LTEOF
1095 +# Generated by $as_me.
1096 +# Run this file to recreate a libtool stub with the current configuration.
1099 +SHELL=\${CONFIG_SHELL-$SHELL}
1102 +cat >>"$CONFIG_LT" <<\_LTEOF
1106 -need_locks="$enable_libtool_lock"
1107 +exec AS_MESSAGE_FD>&1
1108 +exec AS_MESSAGE_LOG_FD>>config.log
1111 + AS_BOX([Running $as_me.])
1112 +} >&AS_MESSAGE_LOG_FD
1115 +\`$as_me' creates a local libtool stub from the current configuration,
1116 +for use in further configure time tests before the real libtool is
1119 +Usage: $[0] [[OPTIONS]]
1121 + -h, --help print this help, then exit
1122 + -V, --version print version number, then exit
1123 + -q, --quiet do not print progress messages
1124 + -d, --debug don't remove temporary files
1126 +Report bugs to <bug-libtool@gnu.org>."
1129 +m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
1130 +m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
1131 +configured by $[0], generated by m4_PACKAGE_STRING.
1133 +Copyright (C) 2008 Free Software Foundation, Inc.
1134 +This config.lt script is free software; the Free Software Foundation
1135 +gives unlimited permision to copy, distribute and modify it."
1138 +while test $[#] != 0
1141 + --version | --v* | -V )
1142 + echo "$lt_cl_version"; exit 0 ;;
1143 + --help | --h* | -h )
1144 + echo "$lt_cl_help"; exit 0 ;;
1145 + --debug | --d* | -d )
1147 + --quiet | --q* | --silent | --s* | -q )
1150 + -*) AC_MSG_ERROR([unrecognized option: $[1]
1151 +Try \`$[0] --help' for more information.]) ;;
1153 -# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1154 -# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
1155 -# ----------------------------------------------------------------
1156 -# Check whether the given compiler option works
1157 -AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
1158 -[AC_REQUIRE([LT_AC_PROG_SED])
1159 -AC_CACHE_CHECK([$1], [$2],
1161 - ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
1162 - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
1163 - lt_compiler_flag="$3"
1164 - # Insert the option either (1) after the last *FLAGS variable, or
1165 - # (2) before a word containing "conftest.", or (3) at the end.
1166 - # Note that $ac_compile itself does not contain backslashes and begins
1167 - # with a dollar sign (not a hyphen), so the echo should work correctly.
1168 - # The option is referenced via a variable to avoid confusing sed.
1169 - lt_compile=`echo "$ac_compile" | $SED \
1170 - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1171 - -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1172 - -e 's:$: $lt_compiler_flag:'`
1173 - (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1174 - (eval "$lt_compile" 2>conftest.err)
1176 - cat conftest.err >&AS_MESSAGE_LOG_FD
1177 - echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1178 - if (exit $ac_status) && test -s "$ac_outfile"; then
1179 - # The compiler can only warn and ignore the option if not recognized
1180 - # So say no if there are warnings other than the usual output.
1181 - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
1182 - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1183 - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
1189 + *) AC_MSG_ERROR([unrecognized argument: $[1]
1190 +Try \`$[0] --help' for more information.]) ;;
1195 -if test x"[$]$2" = xyes; then
1196 - ifelse([$5], , :, [$5])
1198 - ifelse([$6], , :, [$6])
1199 +if $lt_cl_silent; then
1200 + exec AS_MESSAGE_FD>/dev/null
1202 -])# AC_LIBTOOL_COMPILER_OPTION
1205 -# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1206 -# [ACTION-SUCCESS], [ACTION-FAILURE])
1207 -# ------------------------------------------------------------
1208 -# Check whether the given compiler option works
1209 -AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
1210 -[AC_CACHE_CHECK([$1], [$2],
1212 - save_LDFLAGS="$LDFLAGS"
1213 - LDFLAGS="$LDFLAGS $3"
1214 - printf "$lt_simple_link_test_code" > conftest.$ac_ext
1215 - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
1216 - # The linker can only warn and ignore the option if not recognized
1217 - # So say no if there are warnings
1218 - if test -s conftest.err; then
1219 - # Append any errors to the config.log.
1220 - cat conftest.err 1>&AS_MESSAGE_LOG_FD
1221 - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
1222 - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1223 - if diff conftest.exp conftest.er2 >/dev/null; then
1231 - LDFLAGS="$save_LDFLAGS"
1235 -if test x"[$]$2" = xyes; then
1236 - ifelse([$4], , :, [$4])
1238 - ifelse([$5], , :, [$5])
1239 +cat >>"$CONFIG_LT" <<_LTEOF
1240 +_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
1243 +cat >>"$CONFIG_LT" <<\_LTEOF
1244 +AC_MSG_NOTICE([creating $ofile])
1245 +_LT_OUTPUT_LIBTOOL_COMMANDS
1248 +chmod +x "$CONFIG_LT"
1250 +# configure is writing to config.log, but config.lt does its own redirection,
1251 +# appending to config.log, which fails on DOS, as config.log is still kept
1252 +# open by configure. Here we exec the FD to /dev/null, effectively closing
1253 +# config.log, so it can be properly (re)opened and appended to by config.lt.
1254 +if test "$no_create" != yes; then
1256 + test "$silent" = yes &&
1257 + lt_config_lt_args="$lt_config_lt_args --quiet"
1258 + exec AS_MESSAGE_LOG_FD>/dev/null
1259 + $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
1260 + exec AS_MESSAGE_LOG_FD>>config.log
1261 + $lt_cl_success || AS_EXIT(1)
1263 -])# AC_LIBTOOL_LINKER_OPTION
1267 -# AC_LIBTOOL_SYS_MAX_CMD_LEN
1268 -# --------------------------
1269 -AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
1270 -[# find the maximum length of command line arguments
1271 -AC_MSG_CHECKING([the maximum length of command line arguments])
1272 -AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
1278 - # On DJGPP, this test can blow up pretty badly due to problems in libc
1279 - # (any single argument exceeding 2000 bytes causes a buffer overrun
1280 - # during glob expansion). Even if it were fixed, the result of this
1281 - # check would be larger than it should be.
1282 - lt_cv_sys_max_cmd_len=12288; # 12K is about right
1286 +# If TAG is the built-in tag, create an initial libtool script with a
1287 +# default configuration from the untagged config vars. Otherwise add code
1288 +# to config.status for appending the configuration named by TAG from the
1289 +# matching tagged config vars.
1290 +m4_defun([_LT_CONFIG],
1291 +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1292 +_LT_CONFIG_SAVE_COMMANDS([
1293 + m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
1294 + m4_if(_LT_TAG, [C], [
1295 + # See if we are running on zsh, and set the options which allow our
1296 + # commands through without removal of \ escapes.
1297 + if test -n "${ZSH_VERSION+set}" ; then
1298 + setopt NO_GLOB_SUBST
1302 - # Under GNU Hurd, this test is not required because there is
1303 - # no limit to the length of command line arguments.
1304 - # Libtool will interpret -1 as no limit whatsoever
1305 - lt_cv_sys_max_cmd_len=-1;
1307 + cfgfile="${ofile}T"
1308 + trap "$RM \"$cfgfile\"; exit 1" 1 2 15
1312 - # On Win9x/ME, this test blows up -- it succeeds, but takes
1313 - # about 5 minutes as the teststring grows exponentially.
1314 - # Worse, since 9x/ME are not pre-emptively multitasking,
1315 - # you end up with a "frozen" computer, even though with patience
1316 - # the test eventually succeeds (with a max line length of 256k).
1317 - # Instead, let's just punt: use the minimum linelength reported by
1318 - # all of the supported platforms: 8192 (on NT/2K/XP).
1319 - lt_cv_sys_max_cmd_len=8192;
1321 + cat <<_LT_EOF >> "$cfgfile"
1325 - # On AmigaOS with pdksh, this test takes hours, literally.
1326 - # So we just punt and use a minimum line length of 8192.
1327 - lt_cv_sys_max_cmd_len=8192;
1329 +# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
1330 +# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
1331 +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1332 +# NOTE: Changes made to this file will be lost: look at ltmain.sh.
1337 - netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
1338 - # This has been around since 386BSD, at least. Likely further.
1339 - if test -x /sbin/sysctl; then
1340 - lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
1341 - elif test -x /usr/sbin/sysctl; then
1342 - lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
1344 - lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
1346 - # And add a safety zone
1347 - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
1348 - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
1350 +# ### BEGIN LIBTOOL CONFIG
1351 +_LT_LIBTOOL_CONFIG_VARS
1352 +_LT_LIBTOOL_TAG_VARS
1353 +# ### END LIBTOOL CONFIG
1356 - # We know the value 262144 and hardcode it with a safety zone (like BSD)
1357 - lt_cv_sys_max_cmd_len=196608
1362 - # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
1363 - # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
1364 - # nice to cause kernel panics so lets avoid the loop below.
1365 - # First set a reasonable default.
1366 - lt_cv_sys_max_cmd_len=16384
1368 - if test -x /sbin/sysconfig; then
1369 - case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
1370 - *1*) lt_cv_sys_max_cmd_len=-1 ;;
1375 - lt_cv_sys_max_cmd_len=102400
1377 - sysv5* | sco5v6* | sysv4.2uw2*)
1378 - kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
1379 - if test -n "$kargmax"; then
1380 - lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
1382 - lt_cv_sys_max_cmd_len=32768
1386 - # If test is not a shell built-in, we'll probably end up computing a
1387 - # maximum length that is only half of the actual maximum length, but
1389 - SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
1390 - while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
1391 - = "XX$teststring") >/dev/null 2>&1 &&
1392 - new_result=`expr "X$teststring" : ".*" 2>&1` &&
1393 - lt_cv_sys_max_cmd_len=$new_result &&
1394 - test $i != 17 # 1/2 MB should be enough
1397 - teststring=$teststring$teststring
1400 - # Add a significant safety factor because C++ compilers can tack on massive
1401 - # amounts of additional arguments before passing them to the linker.
1402 - # It appears as though 1/2 is a usable value.
1403 - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
1406 + cat <<\_LT_EOF >> "$cfgfile"
1407 +# AIX sometimes has problems with the GCC collect2 program. For some
1408 +# reason, if we set the COLLECT_NAMES environment variable, the problems
1409 +# vanish in a puff of smoke.
1410 +if test "X${COLLECT_NAMES+set}" != Xset; then
1412 + export COLLECT_NAMES
1418 -if test -n $lt_cv_sys_max_cmd_len ; then
1419 - AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
1421 - AC_MSG_RESULT(none)
1423 -])# AC_LIBTOOL_SYS_MAX_CMD_LEN
1427 -# _LT_AC_CHECK_DLFCN
1428 -# ------------------
1429 -AC_DEFUN([_LT_AC_CHECK_DLFCN],
1430 -[AC_CHECK_HEADERS(dlfcn.h)dnl
1431 -])# _LT_AC_CHECK_DLFCN
1432 + # We use sed instead of cat because bash on DJGPP gets confused if
1433 + # if finds mixed CR/LF and LF-only lines. Since sed operates in
1434 + # text mode, it properly converts lines to CR/LF. This bash problem
1435 + # is reportedly fixed, but why not run on old versions too?
1436 + sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
1437 + || (rm -f "$cfgfile"; exit 1)
1439 + _LT_PROG_XSI_SHELLFNS
1441 -# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
1442 -# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
1443 -# ---------------------------------------------------------------------
1444 -AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
1445 -[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
1446 -if test "$cross_compiling" = yes; then :
1449 - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1450 - lt_status=$lt_dlunknown
1451 - cat > conftest.$ac_ext <<EOF
1452 -[#line __oline__ "configure"
1453 -#include "confdefs.h"
1454 + sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
1455 + || (rm -f "$cfgfile"; exit 1)
1460 + mv -f "$cfgfile" "$ofile" ||
1461 + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
1464 +[cat <<_LT_EOF >> "$ofile"
1467 +dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
1468 +dnl in a comment (ie after a #).
1469 +# ### BEGIN LIBTOOL TAG CONFIG: $1
1470 +_LT_LIBTOOL_TAG_VARS(_LT_TAG)
1471 +# ### END LIBTOOL TAG CONFIG: $1
1476 + PACKAGE='$PACKAGE'
1477 + VERSION='$VERSION'
1478 + TIMESTAMP='$TIMESTAMP'
1480 + ofile='$ofile'], [])
1481 +])dnl /_LT_CONFIG_SAVE_COMMANDS
1485 +# LT_SUPPORTED_TAG(TAG)
1486 +# ---------------------
1487 +# Trace this macro to discover what tags are supported by the libtool
1488 +# --tag option, using:
1489 +# autoconf --trace 'LT_SUPPORTED_TAG:$1'
1490 +AC_DEFUN([LT_SUPPORTED_TAG], [])
1493 +# C support is built-in for now
1494 +m4_define([_LT_LANG_C_enabled], [])
1495 +m4_define([_LT_TAGS], [])
1498 -# define LT_DLGLOBAL RTLD_GLOBAL
1501 -# define LT_DLGLOBAL DL_GLOBAL
1503 -# define LT_DLGLOBAL 0
1507 -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
1508 - find out it does not work in some platform. */
1509 -#ifndef LT_DLLAZY_OR_NOW
1511 -# define LT_DLLAZY_OR_NOW RTLD_LAZY
1514 -# define LT_DLLAZY_OR_NOW DL_LAZY
1517 -# define LT_DLLAZY_OR_NOW RTLD_NOW
1520 -# define LT_DLLAZY_OR_NOW DL_NOW
1522 -# define LT_DLLAZY_OR_NOW 0
1530 +# Enable libtool support for the given language if not already enabled.
1531 +AC_DEFUN([LT_LANG],
1532 +[AC_BEFORE([$0], [LT_OUTPUT])dnl
1534 + [C], [_LT_LANG(C)],
1535 + [C++], [_LT_LANG(CXX)],
1536 + [Java], [_LT_LANG(GCJ)],
1537 + [Fortran 77], [_LT_LANG(F77)],
1538 + [Fortran], [_LT_LANG(FC)],
1539 + [Windows Resource], [_LT_LANG(RC)],
1540 + [m4_ifdef([_LT_LANG_]$1[_CONFIG],
1542 + [m4_fatal([$0: unsupported language: "$1"])])])dnl
1546 -extern "C" void exit (int);
1549 -void fnord() { int i=42;}
1552 - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
1553 - int status = $lt_dlunknown;
1557 - if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
1558 - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
1559 - /* dlclose (self); */
1562 - puts (dlerror ());
1563 +# _LT_LANG(LANGNAME)
1564 +# ------------------
1565 +m4_defun([_LT_LANG],
1566 +[m4_ifdef([_LT_LANG_]$1[_enabled], [],
1567 + [LT_SUPPORTED_TAG([$1])dnl
1568 + m4_append([_LT_TAGS], [$1 ])dnl
1569 + m4_define([_LT_LANG_]$1[_enabled], [])dnl
1570 + _LT_LANG_$1_CONFIG($1)])dnl
1576 - if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
1577 - (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
1579 - case x$lt_status in
1580 - x$lt_dlno_uscore) $1 ;;
1581 - x$lt_dlneed_uscore) $2 ;;
1582 - x$lt_dlunknown|x*) $3 ;;
1585 - # compilation failed
1590 -])# _LT_AC_TRY_DLOPEN_SELF
1592 +# _LT_LANG_DEFAULT_CONFIG
1593 +# -----------------------
1594 +m4_defun([_LT_LANG_DEFAULT_CONFIG],
1595 +[AC_PROVIDE_IFELSE([AC_PROG_CXX],
1597 + [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
1599 +AC_PROVIDE_IFELSE([AC_PROG_F77],
1601 + [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
1603 +AC_PROVIDE_IFELSE([AC_PROG_FC],
1605 + [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
1607 +dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
1608 +dnl pulling things in needlessly.
1609 +AC_PROVIDE_IFELSE([AC_PROG_GCJ],
1611 + [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
1613 + [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
1615 + [m4_ifdef([AC_PROG_GCJ],
1616 + [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
1617 + m4_ifdef([A][M_PROG_GCJ],
1618 + [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
1619 + m4_ifdef([LT_PROG_GCJ],
1620 + [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
1622 +AC_PROVIDE_IFELSE([LT_PROG_RC],
1624 + [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
1625 +])# _LT_LANG_DEFAULT_CONFIG
1628 +AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
1629 +AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
1630 +AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
1631 +AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
1632 +dnl aclocal-1.4 backwards compatibility:
1633 +dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
1634 +dnl AC_DEFUN([AC_LIBTOOL_F77], [])
1635 +dnl AC_DEFUN([AC_LIBTOOL_FC], [])
1636 +dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
1638 -# AC_LIBTOOL_DLOPEN_SELF
1639 -# ----------------------
1640 -AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
1641 -[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
1642 -if test "x$enable_dlopen" != xyes; then
1643 - enable_dlopen=unknown
1644 - enable_dlopen_self=unknown
1645 - enable_dlopen_self_static=unknown
1648 - lt_cv_dlopen_libs=
1652 - lt_cv_dlopen="load_add_on"
1653 - lt_cv_dlopen_libs=
1654 - lt_cv_dlopen_self=yes
1658 +m4_defun([_LT_TAG_COMPILER],
1659 +[AC_REQUIRE([AC_PROG_CC])dnl
1662 - lt_cv_dlopen="LoadLibrary"
1663 - lt_cv_dlopen_libs=
1665 +_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
1666 +_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
1667 +_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
1668 +_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
1671 - lt_cv_dlopen="dlopen"
1672 - lt_cv_dlopen_libs=
1674 +# If no C compiler was specified, use CC.
1678 - # if libdl is installed we need to link against it
1679 - AC_CHECK_LIB([dl], [dlopen],
1680 - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
1681 - lt_cv_dlopen="dyld"
1682 - lt_cv_dlopen_libs=
1683 - lt_cv_dlopen_self=yes
1686 +# If no C compiler flags were specified, use CFLAGS.
1687 +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
1690 - AC_CHECK_FUNC([shl_load],
1691 - [lt_cv_dlopen="shl_load"],
1692 - [AC_CHECK_LIB([dld], [shl_load],
1693 - [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
1694 - [AC_CHECK_FUNC([dlopen],
1695 - [lt_cv_dlopen="dlopen"],
1696 - [AC_CHECK_LIB([dl], [dlopen],
1697 - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
1698 - [AC_CHECK_LIB([svld], [dlopen],
1699 - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
1700 - [AC_CHECK_LIB([dld], [dld_link],
1701 - [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
1709 +# Allow CC to be a program name with arguments.
1711 +])# _LT_TAG_COMPILER
1713 - if test "x$lt_cv_dlopen" != xno; then
1719 - case $lt_cv_dlopen in
1721 - save_CPPFLAGS="$CPPFLAGS"
1722 - test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
1723 +# _LT_COMPILER_BOILERPLATE
1724 +# ------------------------
1725 +# Check for compiler boilerplate output or warnings with
1726 +# the simple compiler test code.
1727 +m4_defun([_LT_COMPILER_BOILERPLATE],
1728 +[m4_require([_LT_DECL_SED])dnl
1729 +ac_outfile=conftest.$ac_objext
1730 +echo "$lt_simple_compile_test_code" >conftest.$ac_ext
1731 +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1732 +_lt_compiler_boilerplate=`cat conftest.err`
1734 +])# _LT_COMPILER_BOILERPLATE
1736 - save_LDFLAGS="$LDFLAGS"
1737 - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
1740 - LIBS="$lt_cv_dlopen_libs $LIBS"
1741 +# _LT_LINKER_BOILERPLATE
1742 +# ----------------------
1743 +# Check for linker boilerplate output or warnings with
1744 +# the simple link test code.
1745 +m4_defun([_LT_LINKER_BOILERPLATE],
1746 +[m4_require([_LT_DECL_SED])dnl
1747 +ac_outfile=conftest.$ac_objext
1748 +echo "$lt_simple_link_test_code" >conftest.$ac_ext
1749 +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1750 +_lt_linker_boilerplate=`cat conftest.err`
1752 +])# _LT_LINKER_BOILERPLATE
1754 - AC_CACHE_CHECK([whether a program can dlopen itself],
1755 - lt_cv_dlopen_self, [dnl
1756 - _LT_AC_TRY_DLOPEN_SELF(
1757 - lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
1758 - lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
1759 +# _LT_REQUIRED_DARWIN_CHECKS
1760 +# -------------------------
1761 +m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
1763 + rhapsody* | darwin*)
1764 + AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
1765 + AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
1766 + AC_CHECK_TOOL([LIPO], [lipo], [:])
1767 + AC_CHECK_TOOL([OTOOL], [otool], [:])
1768 + AC_CHECK_TOOL([OTOOL64], [otool64], [:])
1769 + _LT_DECL([], [DSYMUTIL], [1],
1770 + [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
1771 + _LT_DECL([], [NMEDIT], [1],
1772 + [Tool to change global to local symbols on Mac OS X])
1773 + _LT_DECL([], [LIPO], [1],
1774 + [Tool to manipulate fat objects and archives on Mac OS X])
1775 + _LT_DECL([], [OTOOL], [1],
1776 + [ldd/readelf like tool for Mach-O binaries on Mac OS X])
1777 + _LT_DECL([], [OTOOL64], [1],
1778 + [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
1780 + AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
1781 + [lt_cv_apple_cc_single_mod=no
1782 + if test -z "${LT_MULTI_MODULE}"; then
1783 + # By default we will add the -single_module flag. You can override
1784 + # by either setting the environment variable LT_MULTI_MODULE
1785 + # non-empty at configure time, or by adding -multi_module to the
1787 + rm -rf libconftest.dylib*
1788 + echo "int foo(void){return 1;}" > conftest.c
1789 + echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
1790 +-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
1791 + $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
1792 + -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
1794 + if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
1795 + lt_cv_apple_cc_single_mod=yes
1797 + cat conftest.err >&AS_MESSAGE_LOG_FD
1799 + rm -rf libconftest.dylib*
1802 + AC_CACHE_CHECK([for -exported_symbols_list linker flag],
1803 + [lt_cv_ld_exported_symbols_list],
1804 + [lt_cv_ld_exported_symbols_list=no
1805 + save_LDFLAGS=$LDFLAGS
1806 + echo "_main" > conftest.sym
1807 + LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
1808 + AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
1809 + [lt_cv_ld_exported_symbols_list=yes],
1810 + [lt_cv_ld_exported_symbols_list=no])
1811 + LDFLAGS="$save_LDFLAGS"
1814 - if test "x$lt_cv_dlopen_self" = xyes; then
1815 - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
1816 - AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
1817 - lt_cv_dlopen_self_static, [dnl
1818 - _LT_AC_TRY_DLOPEN_SELF(
1819 - lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
1820 - lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
1823 + rhapsody* | darwin1.[[012]])
1824 + _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
1826 + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
1827 + darwin*) # darwin 5.x on
1828 + # if running on 10.5 or later, the deployment target defaults
1829 + # to the OS version, if on x86, and 10.4, the deployment
1830 + # target defaults to 10.4. Don't you love it?
1831 + case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
1832 + 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
1833 + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
1835 + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
1837 + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
1841 + if test "$lt_cv_apple_cc_single_mod" = "yes"; then
1842 + _lt_dar_single_mod='$single_module'
1844 + if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
1845 + _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
1847 + _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
1849 + if test "$DSYMUTIL" != ":"; then
1850 + _lt_dsymutil='~$DSYMUTIL $lib || :'
1855 - CPPFLAGS="$save_CPPFLAGS"
1856 - LDFLAGS="$save_LDFLAGS"
1862 - case $lt_cv_dlopen_self in
1863 - yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
1864 - *) enable_dlopen_self=unknown ;;
1867 - case $lt_cv_dlopen_self_static in
1868 - yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
1869 - *) enable_dlopen_self_static=unknown ;;
1872 -])# AC_LIBTOOL_DLOPEN_SELF
1873 +# _LT_DARWIN_LINKER_FEATURES
1874 +# --------------------------
1875 +# Checks for linker and compiler features on darwin
1876 +m4_defun([_LT_DARWIN_LINKER_FEATURES],
1878 + m4_require([_LT_REQUIRED_DARWIN_CHECKS])
1879 + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
1880 + _LT_TAGVAR(hardcode_direct, $1)=no
1881 + _LT_TAGVAR(hardcode_automatic, $1)=yes
1882 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
1883 + _LT_TAGVAR(whole_archive_flag_spec, $1)=''
1884 + _LT_TAGVAR(link_all_deplibs, $1)=yes
1885 + _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
1886 + if test "$GCC" = "yes"; then
1887 + output_verbose_link_cmd=echo
1888 + _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}"
1889 + _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
1890 + _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}"
1891 + _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}"
1892 + m4_if([$1], [CXX],
1893 +[ if test "$lt_cv_apple_cc_single_mod" != "yes"; then
1894 + _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}"
1895 + _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}"
1899 + _LT_TAGVAR(ld_shlibs, $1)=no
1903 +# _LT_SYS_MODULE_PATH_AIX
1904 +# -----------------------
1905 +# Links a minimal program and checks the executable
1906 +# for the system default hardcoded library path. In most cases,
1907 +# this is /usr/lib:/lib, but when the MPI compilers are used
1908 +# the location of the communication and MPI libs are included too.
1909 +# If we don't find anything, use the default library path according
1910 +# to the aix ld manual.
1911 +m4_defun([_LT_SYS_MODULE_PATH_AIX],
1912 +[m4_require([_LT_DECL_SED])dnl
1913 +AC_LINK_IFELSE(AC_LANG_PROGRAM,[
1914 +lt_aix_libpath_sed='
1915 + /Import File Strings/,/^$/ {
1921 +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1922 +# Check for a 64-bit object if we didn't find anything.
1923 +if test -z "$aix_libpath"; then
1924 + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1926 +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
1927 +])# _LT_SYS_MODULE_PATH_AIX
1929 -# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
1930 -# ---------------------------------
1931 -# Check to see if options -c and -o are simultaneously supported by compiler
1932 -AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
1933 -[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
1934 -AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
1935 - [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
1936 - [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
1937 - $rm -r conftest 2>/dev/null
1941 - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
1943 - lt_compiler_flag="-o out/conftest2.$ac_objext"
1944 - # Insert the option either (1) after the last *FLAGS variable, or
1945 - # (2) before a word containing "conftest.", or (3) at the end.
1946 - # Note that $ac_compile itself does not contain backslashes and begins
1947 - # with a dollar sign (not a hyphen), so the echo should work correctly.
1948 - lt_compile=`echo "$ac_compile" | $SED \
1949 - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1950 - -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1951 - -e 's:$: $lt_compiler_flag:'`
1952 - (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1953 - (eval "$lt_compile" 2>out/conftest.err)
1955 - cat out/conftest.err >&AS_MESSAGE_LOG_FD
1956 - echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1957 - if (exit $ac_status) && test -s out/conftest2.$ac_objext
1959 - # The compiler can only warn and ignore the option if not recognized
1960 - # So say no if there are warnings
1961 - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
1962 - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
1963 - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
1964 - _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
1967 - chmod u+w . 2>&AS_MESSAGE_LOG_FD
1969 - # SGI C++ compiler will create directory out/ii_files/ for
1970 - # template instantiation
1971 - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
1972 - $rm out/* && rmdir out
1977 -])# AC_LIBTOOL_PROG_CC_C_O
1978 +# _LT_SHELL_INIT(ARG)
1979 +# -------------------
1980 +m4_define([_LT_SHELL_INIT],
1981 +[ifdef([AC_DIVERSION_NOTICE],
1982 + [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
1983 + [AC_DIVERT_PUSH(NOTICE)])
1989 -# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
1990 -# -----------------------------------------
1991 -# Check to see if we can do hard links to lock some files if needed
1992 -AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
1993 -[AC_REQUIRE([_LT_AC_LOCK])dnl
1994 +# _LT_PROG_ECHO_BACKSLASH
1995 +# -----------------------
1996 +# Add some code to the start of the generated configure script which
1997 +# will find an echo command which doesn't interpret backslashes.
1998 +m4_defun([_LT_PROG_ECHO_BACKSLASH],
2000 +# Check that we are running under the correct shell.
2001 +SHELL=${CONFIG_SHELL-/bin/sh}
2003 -hard_links="nottested"
2004 -if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
2005 - # do not overwrite the value of need_locks provided by the user
2006 - AC_MSG_CHECKING([if we can lock with hard links])
2009 - ln conftest.a conftest.b 2>/dev/null && hard_links=no
2011 - ln conftest.a conftest.b 2>&5 || hard_links=no
2012 - ln conftest.a conftest.b 2>/dev/null && hard_links=no
2013 - AC_MSG_RESULT([$hard_links])
2014 - if test "$hard_links" = no; then
2015 - AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
2020 + # Remove one level of quotation (which was required for Make).
2021 + ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
2025 +ECHO=${lt_ECHO-echo}
2026 +if test "X[$]1" = X--no-reexec; then
2027 + # Discard the --no-reexec flag, and continue.
2029 +elif test "X[$]1" = X--fallback-echo; then
2030 + # Avoid inline document here, it may be left over
2032 +elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
2033 + # Yippee, $ECHO works!
2037 + # Restart under the correct shell.
2038 + exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
2040 -])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
2043 -# AC_LIBTOOL_OBJDIR
2044 -# -----------------
2045 -AC_DEFUN([AC_LIBTOOL_OBJDIR],
2046 -[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
2047 -[rm -f .libs 2>/dev/null
2048 -mkdir .libs 2>/dev/null
2049 -if test -d .libs; then
2050 - lt_cv_objdir=.libs
2052 - # MS-DOS does not allow filenames that begin with a dot.
2053 - lt_cv_objdir=_libs
2054 +if test "X[$]1" = X--fallback-echo; then
2055 + # used as fallback echo
2062 -rmdir .libs 2>/dev/null])
2063 -objdir=$lt_cv_objdir
2064 -])# AC_LIBTOOL_OBJDIR
2066 +# The HP-UX ksh and POSIX shell print the target directory to stdout
2067 +# if CDPATH is set.
2068 +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
2070 -# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
2071 -# ----------------------------------------------
2072 -# Check hardcoding attributes.
2073 -AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
2074 -[AC_MSG_CHECKING([how to hardcode library paths into programs])
2075 -_LT_AC_TAGVAR(hardcode_action, $1)=
2076 -if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
2077 - test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
2078 - test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
2080 - # We can hardcode non-existant directories.
2081 - if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
2082 - # If the only mechanism to avoid hardcoding is shlibpath_var, we
2083 - # have to relink, otherwise we might link with an installed library
2084 - # when we should be linking with a yet-to-be-installed one
2085 - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
2086 - test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
2087 - # Linking always hardcodes the temporary library directory.
2088 - _LT_AC_TAGVAR(hardcode_action, $1)=relink
2090 - # We can link without hardcoding, and we can hardcode nonexisting dirs.
2091 - _LT_AC_TAGVAR(hardcode_action, $1)=immediate
2092 +if test -z "$lt_ECHO"; then
2093 + if test "X${echo_test_string+set}" != Xset; then
2094 + # find a string as large as possible, as long as the shell can cope with it
2095 + for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
2096 + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
2097 + if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
2098 + { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
2105 - # We cannot hardcode anything, or else we can only hardcode existing
2107 - _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
2109 -AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
2111 -if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
2112 - # Fast installation is not supported
2113 - enable_fast_install=no
2114 -elif test "$shlibpath_overrides_runpath" = yes ||
2115 - test "$enable_shared" = no; then
2116 - # Fast installation is not necessary
2117 - enable_fast_install=needless
2119 -])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
2120 + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
2121 + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
2122 + test "X$echo_testing_string" = "X$echo_test_string"; then
2125 + # The Solaris, AIX, and Digital Unix default echo programs unquote
2126 + # backslashes. This makes it impossible to quote backslashes using
2127 + # echo "$something" | sed 's/\\/\\\\/g'
2129 + # So, first we look for a working echo in the user's PATH.
2131 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2132 + for dir in $PATH /usr/ucb; do
2133 + IFS="$lt_save_ifs"
2134 + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
2135 + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
2136 + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
2137 + test "X$echo_testing_string" = "X$echo_test_string"; then
2142 + IFS="$lt_save_ifs"
2144 -# AC_LIBTOOL_SYS_LIB_STRIP
2145 -# ------------------------
2146 -AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
2149 -AC_MSG_CHECKING([whether stripping libraries is possible])
2150 -if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
2151 - test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
2152 - test -z "$striplib" && striplib="$STRIP --strip-unneeded"
2153 - AC_MSG_RESULT([yes])
2155 -# FIXME - insert some real tests, host_os isn't really good enough
2158 - if test -n "$STRIP" ; then
2159 - striplib="$STRIP -x"
2160 - AC_MSG_RESULT([yes])
2162 - AC_MSG_RESULT([no])
2166 - AC_MSG_RESULT([no])
2170 -])# AC_LIBTOOL_SYS_LIB_STRIP
2171 + if test "X$ECHO" = Xecho; then
2172 + # We didn't find a better echo, so look for alternatives.
2173 + if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
2174 + echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
2175 + test "X$echo_testing_string" = "X$echo_test_string"; then
2176 + # This shell has a builtin print -r that does the trick.
2178 + elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
2179 + test "X$CONFIG_SHELL" != X/bin/ksh; then
2180 + # If we have ksh, try running configure again with it.
2181 + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
2182 + export ORIGINAL_CONFIG_SHELL
2183 + CONFIG_SHELL=/bin/ksh
2184 + export CONFIG_SHELL
2185 + exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
2187 + # Try using printf.
2188 + ECHO='printf %s\n'
2189 + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
2190 + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
2191 + test "X$echo_testing_string" = "X$echo_test_string"; then
2192 + # Cool, printf works
2194 + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
2195 + test "X$echo_testing_string" = 'X\t' &&
2196 + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
2197 + test "X$echo_testing_string" = "X$echo_test_string"; then
2198 + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
2199 + export CONFIG_SHELL
2200 + SHELL="$CONFIG_SHELL"
2202 + ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
2203 + elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
2204 + test "X$echo_testing_string" = 'X\t' &&
2205 + echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
2206 + test "X$echo_testing_string" = "X$echo_test_string"; then
2207 + ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
2209 + # maybe with a smaller string...
2212 + for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
2213 + if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
2220 -# AC_LIBTOOL_SYS_DYNAMIC_LINKER
2221 -# -----------------------------
2222 -# PORTME Fill in your ld.so characteristics
2223 -AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
2224 -[AC_MSG_CHECKING([dynamic linker characteristics])
2225 -library_names_spec=
2226 -libname_spec='lib$name'
2230 -postuninstall_cmds=
2234 -shlibpath_overrides_runpath=unknown
2236 -dynamic_linker="$host_os ld.so"
2237 -sys_lib_dlsearch_path_spec="/lib /usr/lib"
2238 -if test "$GCC" = yes; then
2239 - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2240 - if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
2241 - # if the path contains ";" then we assume it to be the separator
2242 - # otherwise default to the standard path separator (i.e. ":") - it is
2243 - # assumed that no part of a normal pathname contains ";" but that should
2244 - # okay in the real world where ";" in dirpaths is itself problematic.
2245 - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2247 - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2248 + if test "$prev" != 'sed 50q "[$]0"'; then
2249 + echo_test_string=`eval $prev`
2250 + export echo_test_string
2251 + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
2253 + # Oops. We lost completely, so just stick with echo.
2261 - sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
2263 -need_lib_prefix=unknown
2264 -hardcode_into_libs=no
2266 -# when you set need_version to no, make sure it does not cause -set_version
2267 -# flags to be left without arguments
2268 -need_version=unknown
2269 +# Copy echo and quote the copy suitably for passing to libtool from
2270 +# the Makefile, instead of quoting the original, which is used later.
2272 +if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
2273 + lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
2278 - version_type=linux
2279 - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
2280 - shlibpath_var=LIBPATH
2283 +_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
2284 +_LT_DECL([], [ECHO], [1],
2285 + [An echo program that does not interpret backslashes])
2286 +])# _LT_PROG_ECHO_BACKSLASH
2288 - # AIX 3 has no versioning support, so we append a major version to the name.
2289 - soname_spec='${libname}${release}${shared_ext}$major'
2293 - version_type=linux
2294 - need_lib_prefix=no
2296 - hardcode_into_libs=yes
2297 - if test "$host_cpu" = ia64; then
2298 - # AIX 5 supports IA64
2299 - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
2300 - shlibpath_var=LD_LIBRARY_PATH
2302 - # With GCC up to 2.95.x, collect2 would create an import file
2303 - # for dependence libraries. The import file would start with
2304 - # the line `#! .'. This would cause the generated library to
2305 - # depend on `.', always an invalid library. This was fixed in
2306 - # development snapshots of GCC prior to 3.0.
2308 - aix4 | aix4.[[01]] | aix4.[[01]].*)
2309 - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
2311 - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
2314 - can_build_shared=no
2319 +m4_defun([_LT_ENABLE_LOCK],
2320 +[AC_ARG_ENABLE([libtool-lock],
2321 + [AS_HELP_STRING([--disable-libtool-lock],
2322 + [avoid locking (might break parallel builds)])])
2323 +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
2325 +# Some flags need to be propagated to the compiler or linker for good
2329 + # Find out which ABI we are using.
2330 + echo 'int i;' > conftest.$ac_ext
2331 + if AC_TRY_EVAL(ac_compile); then
2332 + case `/usr/bin/file conftest.$ac_objext` in
2334 + HPUX_IA64_MODE="32"
2337 + HPUX_IA64_MODE="64"
2340 - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
2341 - # soname into executable. Probably we can add versioning support to
2342 - # collect2, so additional links can be useful in future.
2343 - if test "$aix_use_runtimelinking" = yes; then
2344 - # If using run time linking (on AIX 4.2 or later) use lib<name>.so
2345 - # instead of lib<name>.a to let people know that these are not
2346 - # typical AIX shared libraries.
2347 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2352 + # Find out which ABI we are using.
2353 + echo '[#]line __oline__ "configure"' > conftest.$ac_ext
2354 + if AC_TRY_EVAL(ac_compile); then
2355 + if test "$lt_cv_prog_gnu_ld" = yes; then
2356 + case `/usr/bin/file conftest.$ac_objext` in
2358 + LD="${LD-ld} -melf32bsmip"
2361 + LD="${LD-ld} -melf32bmipn32"
2364 + LD="${LD-ld} -melf64bmip"
2368 - # We preserve .a as extension for shared libraries through AIX4.2
2369 - # and later when we are not doing run time linking.
2370 - library_names_spec='${libname}${release}.a $libname.a'
2371 - soname_spec='${libname}${release}${shared_ext}$major'
2372 + case `/usr/bin/file conftest.$ac_objext` in
2377 + LD="${LD-ld} -n32"
2384 - shlibpath_var=LIBPATH
2390 - library_names_spec='$libname.ixlibrary $libname.a'
2391 - # Create ${libname}_ixlibrary.a entries in /sys/libs.
2392 - 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'
2393 +x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
2394 +s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
2395 + # Find out which ABI we are using.
2396 + echo 'int i;' > conftest.$ac_ext
2397 + if AC_TRY_EVAL(ac_compile); then
2398 + case `/usr/bin/file conftest.o` in
2401 + x86_64-*kfreebsd*-gnu)
2402 + LD="${LD-ld} -m elf_i386_fbsd"
2405 + LD="${LD-ld} -m elf_i386"
2407 + ppc64-*linux*|powerpc64-*linux*)
2408 + LD="${LD-ld} -m elf32ppclinux"
2411 + LD="${LD-ld} -m elf_s390"
2414 + LD="${LD-ld} -m elf32_sparc"
2420 + x86_64-*kfreebsd*-gnu)
2421 + LD="${LD-ld} -m elf_x86_64_fbsd"
2424 + LD="${LD-ld} -m elf_x86_64"
2426 + ppc*-*linux*|powerpc*-*linux*)
2427 + LD="${LD-ld} -m elf64ppc"
2429 + s390*-*linux*|s390*-*tpf*)
2430 + LD="${LD-ld} -m elf64_s390"
2433 + LD="${LD-ld} -m elf64_sparc"
2443 - library_names_spec='${libname}${shared_ext}'
2444 - dynamic_linker="$host_os ld.so"
2445 - shlibpath_var=LIBRARY_PATH
2447 + # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2448 + SAVE_CFLAGS="$CFLAGS"
2449 + CFLAGS="$CFLAGS -belf"
2450 + AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
2452 + AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
2454 + if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2455 + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2456 + CFLAGS="$SAVE_CFLAGS"
2461 - version_type=linux
2463 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2464 - soname_spec='${libname}${release}${shared_ext}$major'
2465 - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
2466 - shlibpath_var=LD_LIBRARY_PATH
2467 - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
2468 - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
2469 - # the default ld.so.conf also contains /usr/contrib/lib and
2470 - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
2471 - # libtool to hard-code these into programs
2473 + # Find out which ABI we are using.
2474 + echo 'int i;' > conftest.$ac_ext
2475 + if AC_TRY_EVAL(ac_compile); then
2476 + case `/usr/bin/file conftest.o` in
2478 + case $lt_cv_prog_gnu_ld in
2479 + yes*) LD="${LD-ld} -m elf64_sparc" ;;
2481 + if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
2493 -cygwin* | mingw* | pw32*)
2494 - version_type=windows
2495 - shrext_cmds=".dll"
2497 - need_lib_prefix=no
2498 +need_locks="$enable_libtool_lock"
2499 +])# _LT_ENABLE_LOCK
2501 - case $GCC,$host_os in
2502 - yes,cygwin* | yes,mingw* | yes,pw32*)
2503 - library_names_spec='$libname.dll.a'
2504 - # DLL is installed to $(libdir)/../bin by postinstall_cmds
2505 - postinstall_cmds='base_file=`basename \${file}`~
2506 - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
2507 - dldir=$destdir/`dirname \$dlpath`~
2508 - test -d \$dldir || mkdir -p \$dldir~
2509 - $install_prog $dir/$dlname \$dldir/$dlname~
2510 - chmod a+x \$dldir/$dlname'
2511 - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2512 - dlpath=$dir/\$dldll~
2514 - shlibpath_overrides_runpath=yes
2518 - # Cygwin DLLs use 'cyg' prefix rather than 'lib'
2519 - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2520 - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
2523 - # MinGW DLLs use traditional 'lib' prefix
2524 - soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2525 - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2526 - if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
2527 - # It is most probably a Windows format PATH printed by
2528 - # mingw gcc, but we are running on Cygwin. Gcc prints its search
2529 - # path with ; separators, and with drive letters. We can handle the
2530 - # drive letters (cygwin fileutils understands them), so leave them,
2531 - # especially as we might pass files found there to a mingw objdump,
2532 - # which wouldn't understand a cygwinified path. Ahh.
2533 - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2535 - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2539 - # pw32 DLLs use 'pw' prefix rather than 'lib'
2540 - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2544 +# _LT_CMD_OLD_ARCHIVE
2545 +# -------------------
2546 +m4_defun([_LT_CMD_OLD_ARCHIVE],
2547 +[AC_CHECK_TOOL(AR, ar, false)
2548 +test -z "$AR" && AR=ar
2549 +test -z "$AR_FLAGS" && AR_FLAGS=cru
2550 +_LT_DECL([], [AR], [1], [The archiver])
2551 +_LT_DECL([], [AR_FLAGS], [1])
2553 +AC_CHECK_TOOL(STRIP, strip, :)
2554 +test -z "$STRIP" && STRIP=:
2555 +_LT_DECL([], [STRIP], [1], [A symbol stripping program])
2557 +AC_CHECK_TOOL(RANLIB, ranlib, :)
2558 +test -z "$RANLIB" && RANLIB=:
2559 +_LT_DECL([], [RANLIB], [1],
2560 + [Commands used to install an old-style archive])
2562 +# Determine commands to create old-style static archives.
2563 +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
2564 +old_postinstall_cmds='chmod 644 $oldlib'
2565 +old_postuninstall_cmds=
2567 +if test -n "$RANLIB"; then
2570 + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
2573 - library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
2574 + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
2577 - dynamic_linker='Win32 ld.exe'
2578 - # FIXME: first we should search . and the directory the executable is in
2579 - shlibpath_var=PATH
2581 + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
2583 +_LT_DECL([], [old_postinstall_cmds], [2])
2584 +_LT_DECL([], [old_postuninstall_cmds], [2])
2585 +_LT_TAGDECL([], [old_archive_cmds], [2],
2586 + [Commands used to build an old-style archive])
2587 +])# _LT_CMD_OLD_ARCHIVE
2589 -darwin* | rhapsody*)
2590 - dynamic_linker="$host_os dyld"
2591 - version_type=darwin
2592 - need_lib_prefix=no
2594 - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
2595 - soname_spec='${libname}${release}${major}$shared_ext'
2596 - shlibpath_overrides_runpath=yes
2597 - shlibpath_var=DYLD_LIBRARY_PATH
2598 - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
2599 - # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
2600 - if test "$GCC" = yes; then
2601 - sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
2603 - sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
2605 - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
2609 - version_type=linux
2610 - need_lib_prefix=no
2612 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
2613 - soname_spec='${libname}${release}${shared_ext}$major'
2614 - shlibpath_var=LD_LIBRARY_PATH
2616 +# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
2617 +# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
2618 +# ----------------------------------------------------------------
2619 +# Check whether the given compiler option works
2620 +AC_DEFUN([_LT_COMPILER_OPTION],
2621 +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2622 +m4_require([_LT_DECL_SED])dnl
2623 +AC_CACHE_CHECK([$1], [$2],
2625 + m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
2626 + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
2627 + lt_compiler_flag="$3"
2628 + # Insert the option either (1) after the last *FLAGS variable, or
2629 + # (2) before a word containing "conftest.", or (3) at the end.
2630 + # Note that $ac_compile itself does not contain backslashes and begins
2631 + # with a dollar sign (not a hyphen), so the echo should work correctly.
2632 + # The option is referenced via a variable to avoid confusing sed.
2633 + lt_compile=`echo "$ac_compile" | $SED \
2634 + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2635 + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
2636 + -e 's:$: $lt_compiler_flag:'`
2637 + (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
2638 + (eval "$lt_compile" 2>conftest.err)
2640 + cat conftest.err >&AS_MESSAGE_LOG_FD
2641 + echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
2642 + if (exit $ac_status) && test -s "$ac_outfile"; then
2643 + # The compiler can only warn and ignore the option if not recognized
2644 + # So say no if there are warnings other than the usual output.
2645 + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
2646 + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
2647 + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
2657 +if test x"[$]$2" = xyes; then
2658 + m4_if([$5], , :, [$5])
2660 + m4_if([$6], , :, [$6])
2662 +])# _LT_COMPILER_OPTION
2665 - version_type=linux
2666 - need_lib_prefix=no
2668 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2669 - soname_spec='${libname}${release}${shared_ext}$major'
2670 - shlibpath_var=LD_LIBRARY_PATH
2671 - shlibpath_overrides_runpath=no
2672 - hardcode_into_libs=yes
2673 - dynamic_linker='GNU ld.so'
2676 +AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
2677 +dnl aclocal-1.4 backwards compatibility:
2678 +dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
2680 -freebsd* | dragonfly*)
2681 - # DragonFly does not have aout. When/if they implement a new
2682 - # versioning mechanism, adjust this.
2683 - if test -x /usr/bin/objformat; then
2684 - objformat=`/usr/bin/objformat`
2687 - freebsd[[123]]*) objformat=aout ;;
2688 - *) objformat=elf ;;
2691 - version_type=freebsd-$objformat
2692 - case $version_type in
2694 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
2696 - need_lib_prefix=no
2699 - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
2703 - shlibpath_var=LD_LIBRARY_PATH
2706 - shlibpath_overrides_runpath=yes
2708 - freebsd3.[[01]]* | freebsdelf3.[[01]]*)
2709 - shlibpath_overrides_runpath=yes
2710 - hardcode_into_libs=yes
2712 +# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
2713 +# [ACTION-SUCCESS], [ACTION-FAILURE])
2714 +# ----------------------------------------------------
2715 +# Check whether the given linker option works
2716 +AC_DEFUN([_LT_LINKER_OPTION],
2717 +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2718 +m4_require([_LT_DECL_SED])dnl
2719 +AC_CACHE_CHECK([$1], [$2],
2721 + save_LDFLAGS="$LDFLAGS"
2722 + LDFLAGS="$LDFLAGS $3"
2723 + echo "$lt_simple_link_test_code" > conftest.$ac_ext
2724 + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
2725 + # The linker can only warn and ignore the option if not recognized
2726 + # So say no if there are warnings
2727 + if test -s conftest.err; then
2728 + # Append any errors to the config.log.
2729 + cat conftest.err 1>&AS_MESSAGE_LOG_FD
2730 + $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
2731 + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
2732 + if diff conftest.exp conftest.er2 >/dev/null; then
2740 + LDFLAGS="$save_LDFLAGS"
2743 +if test x"[$]$2" = xyes; then
2744 + m4_if([$4], , :, [$4])
2746 + m4_if([$5], , :, [$5])
2748 +])# _LT_LINKER_OPTION
2751 +AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
2752 +dnl aclocal-1.4 backwards compatibility:
2753 +dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
2758 +AC_DEFUN([LT_CMD_MAX_LEN],
2759 +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
2760 +# find the maximum length of command line arguments
2761 +AC_MSG_CHECKING([the maximum length of command line arguments])
2762 +AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
2768 + # On DJGPP, this test can blow up pretty badly due to problems in libc
2769 + # (any single argument exceeding 2000 bytes causes a buffer overrun
2770 + # during glob expansion). Even if it were fixed, the result of this
2771 + # check would be larger than it should be.
2772 + lt_cv_sys_max_cmd_len=12288; # 12K is about right
2774 - freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
2775 - freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
2776 - shlibpath_overrides_runpath=no
2777 - hardcode_into_libs=yes
2780 + # Under GNU Hurd, this test is not required because there is
2781 + # no limit to the length of command line arguments.
2782 + # Libtool will interpret -1 as no limit whatsoever
2783 + lt_cv_sys_max_cmd_len=-1;
2785 - freebsd*) # from 4.6 on
2786 - shlibpath_overrides_runpath=yes
2787 - hardcode_into_libs=yes
2790 + # On Win9x/ME, this test blows up -- it succeeds, but takes
2791 + # about 5 minutes as the teststring grows exponentially.
2792 + # Worse, since 9x/ME are not pre-emptively multitasking,
2793 + # you end up with a "frozen" computer, even though with patience
2794 + # the test eventually succeeds (with a max line length of 256k).
2795 + # Instead, let's just punt: use the minimum linelength reported by
2796 + # all of the supported platforms: 8192 (on NT/2K/XP).
2797 + lt_cv_sys_max_cmd_len=8192;
2803 - version_type=linux
2804 - need_lib_prefix=no
2806 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
2807 - soname_spec='${libname}${release}${shared_ext}$major'
2808 - shlibpath_var=LD_LIBRARY_PATH
2809 - hardcode_into_libs=yes
2812 + # On AmigaOS with pdksh, this test takes hours, literally.
2813 + # So we just punt and use a minimum line length of 8192.
2814 + lt_cv_sys_max_cmd_len=8192;
2817 -hpux9* | hpux10* | hpux11*)
2818 - # Give a soname corresponding to the major version so that dld.sl refuses to
2819 - # link against other versions.
2820 - version_type=sunos
2821 - need_lib_prefix=no
2826 - hardcode_into_libs=yes
2827 - dynamic_linker="$host_os dld.so"
2828 - shlibpath_var=LD_LIBRARY_PATH
2829 - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2830 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2831 - soname_spec='${libname}${release}${shared_ext}$major'
2832 - if test "X$HPUX_IA64_MODE" = X32; then
2833 - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
2834 + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
2835 + # This has been around since 386BSD, at least. Likely further.
2836 + if test -x /sbin/sysctl; then
2837 + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
2838 + elif test -x /usr/sbin/sysctl; then
2839 + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
2841 - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
2842 + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
2844 - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2848 - hardcode_into_libs=yes
2849 - dynamic_linker="$host_os dld.sl"
2850 - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
2851 - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2852 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2853 - soname_spec='${libname}${release}${shared_ext}$major'
2854 - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
2855 - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2859 - dynamic_linker="$host_os dld.sl"
2860 - shlibpath_var=SHLIB_PATH
2861 - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
2862 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2863 - soname_spec='${libname}${release}${shared_ext}$major'
2864 + # And add a safety zone
2865 + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
2866 + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
2869 - # HP-UX runs *really* slowly unless shared libraries are mode 555.
2870 - postinstall_cmds='chmod 555 $lib'
2874 - version_type=linux
2875 - need_lib_prefix=no
2877 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2878 - soname_spec='${libname}${release}${shared_ext}$major'
2879 - dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
2880 - shlibpath_var=LD_LIBRARY_PATH
2881 - shlibpath_overrides_runpath=no
2882 - hardcode_into_libs=yes
2885 + # We know the value 262144 and hardcode it with a safety zone (like BSD)
2886 + lt_cv_sys_max_cmd_len=196608
2889 -irix5* | irix6* | nonstopux*)
2891 - nonstopux*) version_type=nonstopux ;;
2893 - if test "$lt_cv_prog_gnu_ld" = yes; then
2894 - version_type=linux
2899 - need_lib_prefix=no
2901 - soname_spec='${libname}${release}${shared_ext}$major'
2902 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
2904 - irix5* | nonstopux*)
2905 - libsuff= shlibsuff=
2907 + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
2908 + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
2909 + # nice to cause kernel panics so lets avoid the loop below.
2910 + # First set a reasonable default.
2911 + lt_cv_sys_max_cmd_len=16384
2913 + if test -x /sbin/sysconfig; then
2914 + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
2915 + *1*) lt_cv_sys_max_cmd_len=-1 ;;
2920 + lt_cv_sys_max_cmd_len=102400
2922 + sysv5* | sco5v6* | sysv4.2uw2*)
2923 + kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
2924 + if test -n "$kargmax"; then
2925 + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
2927 + lt_cv_sys_max_cmd_len=32768
2931 - case $LD in # libtool.m4 will add one of these switches to LD
2932 - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
2933 - libsuff= shlibsuff= libmagic=32-bit;;
2934 - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
2935 - libsuff=32 shlibsuff=N32 libmagic=N32;;
2936 - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
2937 - libsuff=64 shlibsuff=64 libmagic=64-bit;;
2938 - *) libsuff= shlibsuff= libmagic=never-match;;
2940 + lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
2941 + if test -n "$lt_cv_sys_max_cmd_len"; then
2942 + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
2943 + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
2945 + # Make teststring a little bigger before we do anything with it.
2946 + # a 1K string should be a reasonable start.
2947 + for i in 1 2 3 4 5 6 7 8 ; do
2948 + teststring=$teststring$teststring
2950 + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
2951 + # If test is not a shell built-in, we'll probably end up computing a
2952 + # maximum length that is only half of the actual maximum length, but
2954 + while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
2955 + = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
2956 + test $i != 17 # 1/2 MB should be enough
2959 + teststring=$teststring$teststring
2961 + # Only check the string length outside the loop.
2962 + lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
2964 + # Add a significant safety factor because C++ compilers can tack on
2965 + # massive amounts of additional arguments before passing them to the
2966 + # linker. It appears as though 1/2 is a usable value.
2967 + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
2971 - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
2972 - shlibpath_overrides_runpath=no
2973 - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
2974 - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
2975 - hardcode_into_libs=yes
2978 +if test -n $lt_cv_sys_max_cmd_len ; then
2979 + AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
2981 + AC_MSG_RESULT(none)
2983 +max_cmd_len=$lt_cv_sys_max_cmd_len
2984 +_LT_DECL([], [max_cmd_len], [0],
2985 + [What is the maximum length of a command?])
2988 -# No shared lib support for Linux oldld, aout, or coff.
2989 -linux*oldld* | linux*aout* | linux*coff*)
2993 +AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
2994 +dnl aclocal-1.4 backwards compatibility:
2995 +dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
2997 -# This must be Linux ELF.
2999 - version_type=linux
3000 - need_lib_prefix=no
3002 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3003 - soname_spec='${libname}${release}${shared_ext}$major'
3004 - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
3005 - shlibpath_var=LD_LIBRARY_PATH
3006 - shlibpath_overrides_runpath=no
3007 - # This implies no fast_install, which is unacceptable.
3008 - # Some rework will be needed to allow for fast_install
3009 - # before this can be enabled.
3010 - hardcode_into_libs=yes
3012 - # Append ld.so.conf contents to the search path
3013 - if test -f /etc/ld.so.conf; then
3014 - 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/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
3015 - sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
3019 +m4_defun([_LT_HEADER_DLFCN],
3020 +[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
3021 +])# _LT_HEADER_DLFCN
3023 - # We used to test for /lib/ld.so.1 and disable shared libraries on
3024 - # powerpc, because MkLinux only supported shared libraries with the
3025 - # GNU dynamic linker. Since this was broken with cross compilers,
3026 - # most powerpc-linux boxes support dynamic linking these days and
3027 - # people can always --disable-shared, the test was removed, and we
3028 - # assume the GNU/Linux dynamic linker is in use.
3029 - dynamic_linker='GNU/Linux ld.so'
3033 - version_type=linux
3034 - need_lib_prefix=no
3036 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
3037 - soname_spec='${libname}${release}${shared_ext}$major'
3038 - shlibpath_var=LD_LIBRARY_PATH
3039 - shlibpath_overrides_runpath=no
3040 - hardcode_into_libs=yes
3041 - dynamic_linker='GNU ld.so'
3043 +# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
3044 +# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
3045 +# ----------------------------------------------------------------
3046 +m4_defun([_LT_TRY_DLOPEN_SELF],
3047 +[m4_require([_LT_HEADER_DLFCN])dnl
3048 +if test "$cross_compiling" = yes; then :
3051 + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
3052 + lt_status=$lt_dlunknown
3053 + cat > conftest.$ac_ext <<_LT_EOF
3054 +[#line __oline__ "configure"
3055 +#include "confdefs.h"
3058 - version_type=sunos
3059 - need_lib_prefix=no
3061 - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3062 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
3063 - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
3064 - dynamic_linker='NetBSD (a.out) ld.so'
3066 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
3067 - soname_spec='${libname}${release}${shared_ext}$major'
3068 - dynamic_linker='NetBSD ld.elf_so'
3070 - shlibpath_var=LD_LIBRARY_PATH
3071 - shlibpath_overrides_runpath=yes
3072 - hardcode_into_libs=yes
3079 - version_type=linux
3080 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3081 - shlibpath_var=LD_LIBRARY_PATH
3082 - shlibpath_overrides_runpath=yes
3087 - version_type=linux
3088 - need_lib_prefix=no
3090 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3091 - soname_spec='${libname}${release}${shared_ext}$major'
3092 - shlibpath_var=LD_LIBRARY_PATH
3093 - shlibpath_overrides_runpath=yes
3096 +# define LT_DLGLOBAL RTLD_GLOBAL
3099 +# define LT_DLGLOBAL DL_GLOBAL
3101 +# define LT_DLGLOBAL 0
3106 - version_type=sunos
3107 - sys_lib_dlsearch_path_spec="/usr/lib"
3108 - need_lib_prefix=no
3109 - # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
3111 - openbsd3.3 | openbsd3.3.*) need_version=yes ;;
3112 - *) need_version=no ;;
3114 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
3115 - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
3116 - shlibpath_var=LD_LIBRARY_PATH
3117 - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3119 - openbsd2.[[89]] | openbsd2.[[89]].*)
3120 - shlibpath_overrides_runpath=no
3123 - shlibpath_overrides_runpath=yes
3126 +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
3127 + find out it does not work in some platform. */
3128 +#ifndef LT_DLLAZY_OR_NOW
3130 +# define LT_DLLAZY_OR_NOW RTLD_LAZY
3133 +# define LT_DLLAZY_OR_NOW DL_LAZY
3136 +# define LT_DLLAZY_OR_NOW RTLD_NOW
3139 +# define LT_DLLAZY_OR_NOW DL_NOW
3141 +# define LT_DLLAZY_OR_NOW 0
3149 +extern "C" void exit (int);
3152 +void fnord() { int i=42;}
3155 + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
3156 + int status = $lt_dlunknown;
3160 + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
3161 + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
3162 + /* dlclose (self); */
3165 - shlibpath_overrides_runpath=yes
3166 + puts (dlerror ());
3171 + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
3172 + (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
3174 + case x$lt_status in
3175 + x$lt_dlno_uscore) $1 ;;
3176 + x$lt_dlneed_uscore) $2 ;;
3177 + x$lt_dlunknown|x*) $3 ;;
3180 + # compilation failed
3186 +])# _LT_TRY_DLOPEN_SELF
3189 - libname_spec='$name'
3190 - shrext_cmds=".dll"
3191 - need_lib_prefix=no
3192 - library_names_spec='$libname${shared_ext} $libname.a'
3193 - dynamic_linker='OS/2 ld.exe'
3194 - shlibpath_var=LIBPATH
3197 -osf3* | osf4* | osf5*)
3199 - need_lib_prefix=no
3201 - soname_spec='${libname}${release}${shared_ext}$major'
3202 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3203 - shlibpath_var=LD_LIBRARY_PATH
3204 - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
3205 - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
3207 +# LT_SYS_DLOPEN_SELF
3208 +# ------------------
3209 +AC_DEFUN([LT_SYS_DLOPEN_SELF],
3210 +[m4_require([_LT_HEADER_DLFCN])dnl
3211 +if test "x$enable_dlopen" != xyes; then
3212 + enable_dlopen=unknown
3213 + enable_dlopen_self=unknown
3214 + enable_dlopen_self_static=unknown
3217 + lt_cv_dlopen_libs=
3220 - version_type=linux
3221 - need_lib_prefix=no
3223 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3224 - soname_spec='${libname}${release}${shared_ext}$major'
3225 - shlibpath_var=LD_LIBRARY_PATH
3226 - shlibpath_overrides_runpath=yes
3227 - hardcode_into_libs=yes
3228 - # ldd complains unless libraries are executable
3229 - postinstall_cmds='chmod +x $lib'
3233 + lt_cv_dlopen="load_add_on"
3234 + lt_cv_dlopen_libs=
3235 + lt_cv_dlopen_self=yes
3239 - version_type=sunos
3240 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
3241 - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
3242 - shlibpath_var=LD_LIBRARY_PATH
3243 - shlibpath_overrides_runpath=yes
3244 - if test "$with_gnu_ld" = yes; then
3245 - need_lib_prefix=no
3250 + lt_cv_dlopen="LoadLibrary"
3251 + lt_cv_dlopen_libs=
3255 - version_type=linux
3256 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3257 - soname_spec='${libname}${release}${shared_ext}$major'
3258 - shlibpath_var=LD_LIBRARY_PATH
3259 - case $host_vendor in
3261 - shlibpath_overrides_runpath=no
3262 - need_lib_prefix=no
3263 - export_dynamic_flag_spec='${wl}-Blargedynsym'
3264 - runpath_var=LD_RUN_PATH
3267 - need_lib_prefix=no
3270 - need_lib_prefix=no
3272 - shlibpath_overrides_runpath=no
3273 - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
3278 + lt_cv_dlopen="dlopen"
3279 + lt_cv_dlopen_libs=
3283 - if test -d /usr/nec ;then
3284 - version_type=linux
3285 - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
3286 - soname_spec='$libname${shared_ext}.$major'
3287 - shlibpath_var=LD_LIBRARY_PATH
3291 + # if libdl is installed we need to link against it
3292 + AC_CHECK_LIB([dl], [dlopen],
3293 + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
3294 + lt_cv_dlopen="dyld"
3295 + lt_cv_dlopen_libs=
3296 + lt_cv_dlopen_self=yes
3300 -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3301 - version_type=freebsd-elf
3302 - need_lib_prefix=no
3304 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
3305 - soname_spec='${libname}${release}${shared_ext}$major'
3306 - shlibpath_var=LD_LIBRARY_PATH
3307 - hardcode_into_libs=yes
3308 - if test "$with_gnu_ld" = yes; then
3309 - sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
3310 - shlibpath_overrides_runpath=no
3312 + AC_CHECK_FUNC([shl_load],
3313 + [lt_cv_dlopen="shl_load"],
3314 + [AC_CHECK_LIB([dld], [shl_load],
3315 + [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
3316 + [AC_CHECK_FUNC([dlopen],
3317 + [lt_cv_dlopen="dlopen"],
3318 + [AC_CHECK_LIB([dl], [dlopen],
3319 + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
3320 + [AC_CHECK_LIB([svld], [dlopen],
3321 + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
3322 + [AC_CHECK_LIB([dld], [dld_link],
3323 + [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
3332 + if test "x$lt_cv_dlopen" != xno; then
3335 - sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
3336 - shlibpath_overrides_runpath=yes
3339 - sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
3344 - sys_lib_dlsearch_path_spec='/usr/lib'
3348 - version_type=linux
3349 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3350 - soname_spec='${libname}${release}${shared_ext}$major'
3351 - shlibpath_var=LD_LIBRARY_PATH
3358 -AC_MSG_RESULT([$dynamic_linker])
3359 -test "$dynamic_linker" = no && can_build_shared=no
3361 -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
3362 -if test "$GCC" = yes; then
3363 - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
3365 -])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
3370 -AC_DEFUN([_LT_AC_TAGCONFIG],
3371 -[AC_ARG_WITH([tags],
3372 - [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
3373 - [include additional configurations @<:@automatic@:>@])],
3374 - [tagnames="$withval"])
3376 -if test -f "$ltmain" && test -n "$tagnames"; then
3377 - if test ! -f "${ofile}"; then
3378 - AC_MSG_WARN([output file `$ofile' does not exist])
3380 + case $lt_cv_dlopen in
3382 + save_CPPFLAGS="$CPPFLAGS"
3383 + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
3385 - if test -z "$LTCC"; then
3386 - eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
3387 - if test -z "$LTCC"; then
3388 - AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
3390 - AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
3393 - if test -z "$LTCFLAGS"; then
3394 - eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
3396 + save_LDFLAGS="$LDFLAGS"
3397 + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
3399 - # Extract list of available tagged configurations in $ofile.
3400 - # Note that this assumes the entire list is on one line.
3401 - available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
3403 + LIBS="$lt_cv_dlopen_libs $LIBS"
3405 - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3406 - for tagname in $tagnames; do
3407 - IFS="$lt_save_ifs"
3408 - # Check whether tagname contains only valid characters
3409 - case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
3411 - *) AC_MSG_ERROR([invalid tag name: $tagname])
3414 + AC_CACHE_CHECK([whether a program can dlopen itself],
3415 + lt_cv_dlopen_self, [dnl
3416 + _LT_TRY_DLOPEN_SELF(
3417 + lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
3418 + lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
3421 - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
3423 - AC_MSG_ERROR([tag name \"$tagname\" already exists])
3424 + if test "x$lt_cv_dlopen_self" = xyes; then
3425 + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
3426 + AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
3427 + lt_cv_dlopen_self_static, [dnl
3428 + _LT_TRY_DLOPEN_SELF(
3429 + lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
3430 + lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
3434 - # Update the list of available tags.
3435 - if test -n "$tagname"; then
3436 - echo appending configuration tag \"$tagname\" to $ofile
3440 - if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
3441 - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
3442 - (test "X$CXX" != "Xg++"))) ; then
3443 - AC_LIBTOOL_LANG_CXX_CONFIG
3450 - if test -n "$F77" && test "X$F77" != "Xno"; then
3451 - AC_LIBTOOL_LANG_F77_CONFIG
3458 - if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
3459 - AC_LIBTOOL_LANG_GCJ_CONFIG
3466 - AC_LIBTOOL_LANG_RC_CONFIG
3470 - AC_MSG_ERROR([Unsupported tag name: $tagname])
3473 + CPPFLAGS="$save_CPPFLAGS"
3474 + LDFLAGS="$save_LDFLAGS"
3479 - # Append the new tag name to the list of available tags.
3480 - if test -n "$tagname" ; then
3481 - available_tags="$available_tags $tagname"
3485 - IFS="$lt_save_ifs"
3486 + case $lt_cv_dlopen_self in
3487 + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
3488 + *) enable_dlopen_self=unknown ;;
3491 - # Now substitute the updated list of available tags.
3492 - if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
3493 - mv "${ofile}T" "$ofile"
3497 - AC_MSG_ERROR([unable to update list of available tagged configurations.])
3499 + case $lt_cv_dlopen_self_static in
3500 + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
3501 + *) enable_dlopen_self_static=unknown ;;
3504 -])# _LT_AC_TAGCONFIG
3505 +_LT_DECL([dlopen_support], [enable_dlopen], [0],
3506 + [Whether dlopen is supported])
3507 +_LT_DECL([dlopen_self], [enable_dlopen_self], [0],
3508 + [Whether dlopen of programs is supported])
3509 +_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
3510 + [Whether dlopen of statically linked programs is supported])
3511 +])# LT_SYS_DLOPEN_SELF
3514 +AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
3515 +dnl aclocal-1.4 backwards compatibility:
3516 +dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
3519 -# AC_LIBTOOL_DLOPEN
3520 -# -----------------
3521 -# enable checks for dlopen support
3522 -AC_DEFUN([AC_LIBTOOL_DLOPEN],
3523 - [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
3524 -])# AC_LIBTOOL_DLOPEN
3525 +# _LT_COMPILER_C_O([TAGNAME])
3526 +# ---------------------------
3527 +# Check to see if options -c and -o are simultaneously supported by compiler.
3528 +# This macro does not hard code the compiler like AC_PROG_CC_C_O.
3529 +m4_defun([_LT_COMPILER_C_O],
3530 +[m4_require([_LT_DECL_SED])dnl
3531 +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
3532 +m4_require([_LT_TAG_COMPILER])dnl
3533 +AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
3534 + [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
3535 + [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
3536 + $RM -r conftest 2>/dev/null
3540 + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
3542 + lt_compiler_flag="-o out/conftest2.$ac_objext"
3543 + # Insert the option either (1) after the last *FLAGS variable, or
3544 + # (2) before a word containing "conftest.", or (3) at the end.
3545 + # Note that $ac_compile itself does not contain backslashes and begins
3546 + # with a dollar sign (not a hyphen), so the echo should work correctly.
3547 + lt_compile=`echo "$ac_compile" | $SED \
3548 + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
3549 + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
3550 + -e 's:$: $lt_compiler_flag:'`
3551 + (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
3552 + (eval "$lt_compile" 2>out/conftest.err)
3554 + cat out/conftest.err >&AS_MESSAGE_LOG_FD
3555 + echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
3556 + if (exit $ac_status) && test -s out/conftest2.$ac_objext
3558 + # The compiler can only warn and ignore the option if not recognized
3559 + # So say no if there are warnings
3560 + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
3561 + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
3562 + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
3563 + _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
3566 + chmod u+w . 2>&AS_MESSAGE_LOG_FD
3568 + # SGI C++ compiler will create directory out/ii_files/ for
3569 + # template instantiation
3570 + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
3571 + $RM out/* && rmdir out
3576 +_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
3577 + [Does compiler simultaneously support -c and -o options?])
3578 +])# _LT_COMPILER_C_O
3580 -# AC_LIBTOOL_WIN32_DLL
3581 -# --------------------
3582 -# declare package support for building win32 DLLs
3583 -AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
3584 -[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
3585 -])# AC_LIBTOOL_WIN32_DLL
3587 +# _LT_COMPILER_FILE_LOCKS([TAGNAME])
3588 +# ----------------------------------
3589 +# Check to see if we can do hard links to lock some files if needed
3590 +m4_defun([_LT_COMPILER_FILE_LOCKS],
3591 +[m4_require([_LT_ENABLE_LOCK])dnl
3592 +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
3593 +_LT_COMPILER_C_O([$1])
3595 -# AC_ENABLE_SHARED([DEFAULT])
3596 -# ---------------------------
3597 -# implement the --enable-shared flag
3598 -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
3599 -AC_DEFUN([AC_ENABLE_SHARED],
3600 -[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
3601 -AC_ARG_ENABLE([shared],
3602 - [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
3603 - [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
3604 - [p=${PACKAGE-default}
3605 - case $enableval in
3606 - yes) enable_shared=yes ;;
3607 - no) enable_shared=no ;;
3610 - # Look at the argument we got. We use all the common list separators.
3611 - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3612 - for pkg in $enableval; do
3613 - IFS="$lt_save_ifs"
3614 - if test "X$pkg" = "X$p"; then
3618 - IFS="$lt_save_ifs"
3621 - [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
3622 -])# AC_ENABLE_SHARED
3625 -# AC_DISABLE_SHARED
3626 -# -----------------
3627 -# set the default shared flag to --disable-shared
3628 -AC_DEFUN([AC_DISABLE_SHARED],
3629 -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3630 -AC_ENABLE_SHARED(no)
3631 -])# AC_DISABLE_SHARED
3634 -# AC_ENABLE_STATIC([DEFAULT])
3635 -# ---------------------------
3636 -# implement the --enable-static flag
3637 -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
3638 -AC_DEFUN([AC_ENABLE_STATIC],
3639 -[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
3640 -AC_ARG_ENABLE([static],
3641 - [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
3642 - [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
3643 - [p=${PACKAGE-default}
3644 - case $enableval in
3645 - yes) enable_static=yes ;;
3646 - no) enable_static=no ;;
3649 - # Look at the argument we got. We use all the common list separators.
3650 - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3651 - for pkg in $enableval; do
3652 - IFS="$lt_save_ifs"
3653 - if test "X$pkg" = "X$p"; then
3657 - IFS="$lt_save_ifs"
3660 - [enable_static=]AC_ENABLE_STATIC_DEFAULT)
3661 -])# AC_ENABLE_STATIC
3664 -# AC_DISABLE_STATIC
3665 -# -----------------
3666 -# set the default static flag to --disable-static
3667 -AC_DEFUN([AC_DISABLE_STATIC],
3668 -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3669 -AC_ENABLE_STATIC(no)
3670 -])# AC_DISABLE_STATIC
3673 -# AC_ENABLE_FAST_INSTALL([DEFAULT])
3674 -# ---------------------------------
3675 -# implement the --enable-fast-install flag
3676 -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
3677 -AC_DEFUN([AC_ENABLE_FAST_INSTALL],
3678 -[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
3679 -AC_ARG_ENABLE([fast-install],
3680 - [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
3681 - [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
3682 - [p=${PACKAGE-default}
3683 - case $enableval in
3684 - yes) enable_fast_install=yes ;;
3685 - no) enable_fast_install=no ;;
3687 - enable_fast_install=no
3688 - # Look at the argument we got. We use all the common list separators.
3689 - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3690 - for pkg in $enableval; do
3691 - IFS="$lt_save_ifs"
3692 - if test "X$pkg" = "X$p"; then
3693 - enable_fast_install=yes
3696 - IFS="$lt_save_ifs"
3699 - [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
3700 -])# AC_ENABLE_FAST_INSTALL
3703 -# AC_DISABLE_FAST_INSTALL
3704 -# -----------------------
3705 -# set the default to --disable-fast-install
3706 -AC_DEFUN([AC_DISABLE_FAST_INSTALL],
3707 -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3708 -AC_ENABLE_FAST_INSTALL(no)
3709 -])# AC_DISABLE_FAST_INSTALL
3712 -# AC_LIBTOOL_PICMODE([MODE])
3713 -# --------------------------
3714 -# implement the --with-pic flag
3715 -# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
3716 -AC_DEFUN([AC_LIBTOOL_PICMODE],
3717 -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3718 -pic_mode=ifelse($#,1,$1,default)
3719 -])# AC_LIBTOOL_PICMODE
3724 -# This is predefined starting with Autoconf 2.54, so this conditional
3725 -# definition can be removed once we require Autoconf 2.54 or later.
3726 -m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
3727 -[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
3728 - [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3729 - then ac_cv_prog_egrep='grep -E'
3730 - else ac_cv_prog_egrep='egrep'
3732 - EGREP=$ac_cv_prog_egrep
3737 -# AC_PATH_TOOL_PREFIX
3738 -# -------------------
3739 -# find a file program which can recognise shared library
3740 -AC_DEFUN([AC_PATH_TOOL_PREFIX],
3741 -[AC_REQUIRE([AC_PROG_EGREP])dnl
3742 -AC_MSG_CHECKING([for $1])
3743 -AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
3744 -[case $MAGIC_CMD in
3745 -[[\\/*] | ?:[\\/]*])
3746 - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3749 - lt_save_MAGIC_CMD="$MAGIC_CMD"
3750 - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3751 -dnl $ac_dummy forces splitting on constant user-supplied paths.
3752 -dnl POSIX.2 word splitting is done only on the output of word expansions,
3753 -dnl not every word. This closes a longstanding sh security hole.
3754 - ac_dummy="ifelse([$2], , $PATH, [$2])"
3755 - for ac_dir in $ac_dummy; do
3756 - IFS="$lt_save_ifs"
3757 - test -z "$ac_dir" && ac_dir=.
3758 - if test -f $ac_dir/$1; then
3759 - lt_cv_path_MAGIC_CMD="$ac_dir/$1"
3760 - if test -n "$file_magic_test_file"; then
3761 - case $deplibs_check_method in
3763 - file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
3764 - MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3765 - if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3766 - $EGREP "$file_magic_regex" > /dev/null; then
3770 +hard_links="nottested"
3771 +if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
3772 + # do not overwrite the value of need_locks provided by the user
3773 + AC_MSG_CHECKING([if we can lock with hard links])
3776 + ln conftest.a conftest.b 2>/dev/null && hard_links=no
3778 + ln conftest.a conftest.b 2>&5 || hard_links=no
3779 + ln conftest.a conftest.b 2>/dev/null && hard_links=no
3780 + AC_MSG_RESULT([$hard_links])
3781 + if test "$hard_links" = no; then
3782 + AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
3788 +_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
3789 +])# _LT_COMPILER_FILE_LOCKS
3791 -*** Warning: the command libtool uses to detect shared libraries,
3792 -*** $file_magic_cmd, produces output that libtool cannot recognize.
3793 -*** The result is that libtool may fail to recognize shared libraries
3794 -*** as such. This will affect the creation of libtool libraries that
3795 -*** depend on shared libraries, but programs linked with such libtool
3796 -*** libraries will work regardless of this problem. Nevertheless, you
3797 -*** may want to report the problem to your system manager and/or to
3798 -*** bug-libtool@gnu.org
3807 - IFS="$lt_save_ifs"
3808 - MAGIC_CMD="$lt_save_MAGIC_CMD"
3811 -MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3812 -if test -n "$MAGIC_CMD"; then
3813 - AC_MSG_RESULT($MAGIC_CMD)
3816 +m4_defun([_LT_CHECK_OBJDIR],
3817 +[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
3818 +[rm -f .libs 2>/dev/null
3819 +mkdir .libs 2>/dev/null
3820 +if test -d .libs; then
3821 + lt_cv_objdir=.libs
3824 + # MS-DOS does not allow filenames that begin with a dot.
3825 + lt_cv_objdir=_libs
3827 -])# AC_PATH_TOOL_PREFIX
3828 +rmdir .libs 2>/dev/null])
3829 +objdir=$lt_cv_objdir
3830 +_LT_DECL([], [objdir], [0],
3831 + [The name of the directory that contains temporary libtool files])dnl
3832 +m4_pattern_allow([LT_OBJDIR])dnl
3833 +AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
3834 + [Define to the sub-directory in which libtool stores uninstalled libraries.])
3835 +])# _LT_CHECK_OBJDIR
3840 -# find a file program which can recognise a shared library
3841 -AC_DEFUN([AC_PATH_MAGIC],
3842 -[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
3843 -if test -z "$lt_cv_path_MAGIC_CMD"; then
3844 - if test -n "$ac_tool_prefix"; then
3845 - AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
3846 +# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
3847 +# --------------------------------------
3848 +# Check hardcoding attributes.
3849 +m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
3850 +[AC_MSG_CHECKING([how to hardcode library paths into programs])
3851 +_LT_TAGVAR(hardcode_action, $1)=
3852 +if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
3853 + test -n "$_LT_TAGVAR(runpath_var, $1)" ||
3854 + test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
3856 + # We can hardcode non-existent directories.
3857 + if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
3858 + # If the only mechanism to avoid hardcoding is shlibpath_var, we
3859 + # have to relink, otherwise we might link with an installed library
3860 + # when we should be linking with a yet-to-be-installed one
3861 + ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
3862 + test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
3863 + # Linking always hardcodes the temporary library directory.
3864 + _LT_TAGVAR(hardcode_action, $1)=relink
3867 + # We can link without hardcoding, and we can hardcode nonexisting dirs.
3868 + _LT_TAGVAR(hardcode_action, $1)=immediate
3871 + # We cannot hardcode anything, or else we can only hardcode existing
3873 + _LT_TAGVAR(hardcode_action, $1)=unsupported
3875 +AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
3877 +if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
3878 + test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
3879 + # Fast installation is not supported
3880 + enable_fast_install=no
3881 +elif test "$shlibpath_overrides_runpath" = yes ||
3882 + test "$enable_shared" = no; then
3883 + # Fast installation is not necessary
3884 + enable_fast_install=needless
3887 +_LT_TAGDECL([], [hardcode_action], [0],
3888 + [How to hardcode a shared library path into an executable])
3889 +])# _LT_LINKER_HARDCODE_LIBPATH
3894 -# find the pathname to the GNU or non-GNU linker
3895 -AC_DEFUN([AC_PROG_LD],
3896 -[AC_ARG_WITH([gnu-ld],
3897 - [AC_HELP_STRING([--with-gnu-ld],
3898 - [assume the C compiler uses GNU ld @<:@default=no@:>@])],
3899 - [test "$withval" = no || with_gnu_ld=yes],
3901 -AC_REQUIRE([LT_AC_PROG_SED])dnl
3902 -AC_REQUIRE([AC_PROG_CC])dnl
3903 -AC_REQUIRE([AC_CANONICAL_HOST])dnl
3904 -AC_REQUIRE([AC_CANONICAL_BUILD])dnl
3906 -if test "$GCC" = yes; then
3907 - # Check if gcc -print-prog-name=ld gives a path.
3908 - AC_MSG_CHECKING([for ld used by $CC])
3911 - # gcc leaves a trailing carriage return which upsets mingw
3912 - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3914 - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3917 - # Accept absolute paths.
3918 - [[\\/]]* | ?:[[\\/]]*)
3919 - re_direlt='/[[^/]][[^/]]*/\.\./'
3920 - # Canonicalize the pathname of ld
3921 - ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3922 - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3923 - ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3925 - test -z "$LD" && LD="$ac_prog"
3928 - # If it fails, then pretend we aren't using GCC.
3932 +m4_defun([_LT_CMD_STRIPLIB],
3933 +[m4_require([_LT_DECL_EGREP])
3936 +AC_MSG_CHECKING([whether stripping libraries is possible])
3937 +if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
3938 + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
3939 + test -z "$striplib" && striplib="$STRIP --strip-unneeded"
3940 + AC_MSG_RESULT([yes])
3942 +# FIXME - insert some real tests, host_os isn't really good enough
3945 + if test -n "$STRIP" ; then
3946 + striplib="$STRIP -x"
3947 + old_striplib="$STRIP -S"
3948 + AC_MSG_RESULT([yes])
3950 + AC_MSG_RESULT([no])
3954 - # If it is relative, then search for the first ld in PATH.
3955 - with_gnu_ld=unknown
3956 + AC_MSG_RESULT([no])
3959 -elif test "$with_gnu_ld" = yes; then
3960 - AC_MSG_CHECKING([for GNU ld])
3962 - AC_MSG_CHECKING([for non-GNU ld])
3964 -AC_CACHE_VAL(lt_cv_path_LD,
3965 -[if test -z "$LD"; then
3966 - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3967 - for ac_dir in $PATH; do
3968 - IFS="$lt_save_ifs"
3969 - test -z "$ac_dir" && ac_dir=.
3970 - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3971 - lt_cv_path_LD="$ac_dir/$ac_prog"
3972 - # Check to see if the program is GNU ld. I'd rather use --version,
3973 - # but apparently some variants of GNU ld only accept -v.
3974 - # Break only if it was the GNU/non-GNU ld that we prefer.
3975 - case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3976 - *GNU* | *'with BFD'*)
3977 - test "$with_gnu_ld" != no && break
3980 - test "$with_gnu_ld" != yes && break
3983 +_LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
3984 +_LT_DECL([], [striplib], [1])
3985 +])# _LT_CMD_STRIPLIB
3988 +# _LT_SYS_DYNAMIC_LINKER([TAG])
3989 +# -----------------------------
3990 +# PORTME Fill in your ld.so characteristics
3991 +m4_defun([_LT_SYS_DYNAMIC_LINKER],
3992 +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
3993 +m4_require([_LT_DECL_EGREP])dnl
3994 +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
3995 +m4_require([_LT_DECL_SED])dnl
3996 +AC_MSG_CHECKING([dynamic linker characteristics])
3999 +if test "$GCC" = yes; then
4001 + darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
4002 + *) lt_awk_arg="/^libraries:/" ;;
4004 + lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
4005 + if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
4006 + # if the path contains ";" then we assume it to be the separator
4007 + # otherwise default to the standard path separator (i.e. ":") - it is
4008 + # assumed that no part of a normal pathname contains ";" but that should
4009 + # okay in the real world where ";" in dirpaths is itself problematic.
4010 + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
4012 + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
4014 + # Ok, now we have the path, separated by spaces, we can step through it
4015 + # and add multilib dir if necessary.
4016 + lt_tmp_lt_search_path_spec=
4017 + lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
4018 + for lt_sys_path in $lt_search_path_spec; do
4019 + if test -d "$lt_sys_path/$lt_multi_os_dir"; then
4020 + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
4022 + test -d "$lt_sys_path" && \
4023 + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
4026 - IFS="$lt_save_ifs"
4027 + lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
4028 +BEGIN {RS=" "; FS="/|\n";} {
4031 + for (lt_i = NF; lt_i > 0; lt_i--) {
4032 + if ($lt_i != "" && $lt_i != ".") {
4033 + if ($lt_i == "..") {
4036 + if (lt_count == 0) {
4037 + lt_foo="/" $lt_i lt_foo;
4044 + if (lt_foo != "") { lt_freq[[lt_foo]]++; }
4045 + if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
4047 + sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
4049 - lt_cv_path_LD="$LD" # Let the user override the test with a path.
4050 + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
4052 -LD="$lt_cv_path_LD"
4053 -if test -n "$LD"; then
4054 - AC_MSG_RESULT($LD)
4058 -test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
4061 +library_names_spec=
4062 +libname_spec='lib$name'
4066 +postuninstall_cmds=
4070 +shlibpath_overrides_runpath=unknown
4072 +dynamic_linker="$host_os ld.so"
4073 +sys_lib_dlsearch_path_spec="/lib /usr/lib"
4074 +need_lib_prefix=unknown
4075 +hardcode_into_libs=no
4077 +# when you set need_version to no, make sure it does not cause -set_version
4078 +# flags to be left without arguments
4079 +need_version=unknown
4083 + version_type=linux
4084 + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
4085 + shlibpath_var=LIBPATH
4089 -AC_DEFUN([AC_PROG_LD_GNU],
4090 -[AC_REQUIRE([AC_PROG_EGREP])dnl
4091 -AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
4092 -[# I'd rather use --version here, but apparently some GNU lds only accept -v.
4093 -case `$LD -v 2>&1 </dev/null` in
4094 -*GNU* | *'with BFD'*)
4095 - lt_cv_prog_gnu_ld=yes
4096 + # AIX 3 has no versioning support, so we append a major version to the name.
4097 + soname_spec='${libname}${release}${shared_ext}$major'
4100 - lt_cv_prog_gnu_ld=no
4103 -with_gnu_ld=$lt_cv_prog_gnu_ld
4107 -# AC_PROG_LD_RELOAD_FLAG
4108 -# ----------------------
4109 -# find reload flag for linker
4110 -# -- PORTME Some linkers may need a different reload flag.
4111 -AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
4112 -[AC_CACHE_CHECK([for $LD option to reload object files],
4113 - lt_cv_ld_reload_flag,
4114 - [lt_cv_ld_reload_flag='-r'])
4115 -reload_flag=$lt_cv_ld_reload_flag
4116 -case $reload_flag in
4118 -*) reload_flag=" $reload_flag" ;;
4120 -reload_cmds='$LD$reload_flag -o $output$reload_objs'
4123 - if test "$GCC" = yes; then
4124 - reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4126 + version_type=linux
4127 + need_lib_prefix=no
4129 + hardcode_into_libs=yes
4130 + if test "$host_cpu" = ia64; then
4131 + # AIX 5 supports IA64
4132 + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
4133 + shlibpath_var=LD_LIBRARY_PATH
4135 + # With GCC up to 2.95.x, collect2 would create an import file
4136 + # for dependence libraries. The import file would start with
4137 + # the line `#! .'. This would cause the generated library to
4138 + # depend on `.', always an invalid library. This was fixed in
4139 + # development snapshots of GCC prior to 3.0.
4141 + aix4 | aix4.[[01]] | aix4.[[01]].*)
4142 + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
4144 + echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
4147 + can_build_shared=no
4151 + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
4152 + # soname into executable. Probably we can add versioning support to
4153 + # collect2, so additional links can be useful in future.
4154 + if test "$aix_use_runtimelinking" = yes; then
4155 + # If using run time linking (on AIX 4.2 or later) use lib<name>.so
4156 + # instead of lib<name>.a to let people know that these are not
4157 + # typical AIX shared libraries.
4158 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4160 - reload_cmds='$LD$reload_flag -o $output$reload_objs'
4161 + # We preserve .a as extension for shared libraries through AIX4.2
4162 + # and later when we are not doing run time linking.
4163 + library_names_spec='${libname}${release}.a $libname.a'
4164 + soname_spec='${libname}${release}${shared_ext}$major'
4168 -])# AC_PROG_LD_RELOAD_FLAG
4171 -# AC_DEPLIBS_CHECK_METHOD
4172 -# -----------------------
4173 -# how to check for library dependencies
4174 -# -- PORTME fill in with the dynamic library characteristics
4175 -AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
4176 -[AC_CACHE_CHECK([how to recognise dependent libraries],
4177 -lt_cv_deplibs_check_method,
4178 -[lt_cv_file_magic_cmd='$MAGIC_CMD'
4179 -lt_cv_file_magic_test_file=
4180 -lt_cv_deplibs_check_method='unknown'
4181 -# Need to set the preceding variable on all platforms that support
4182 -# interlibrary dependencies.
4183 -# 'none' -- dependencies not supported.
4184 -# `unknown' -- same as none, but documents that we really don't know.
4185 -# 'pass_all' -- all dependencies passed with no checks.
4186 -# 'test_compile' -- check by making test program.
4187 -# 'file_magic [[regex]]' -- check by looking for files in library path
4188 -# which responds to the $file_magic_cmd with a given extended regex.
4189 -# If you have `file' or equivalent on your system and you're not sure
4190 -# whether `pass_all' will *always* work, you probably want this one.
4191 + shlibpath_var=LIBPATH
4197 - lt_cv_deplibs_check_method=pass_all
4201 + # Since July 2007 AmigaOS4 officially supports .so libraries.
4202 + # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
4203 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4206 + library_names_spec='$libname.ixlibrary $libname.a'
4207 + # Create ${libname}_ixlibrary.a entries in /sys/libs.
4208 + 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'
4214 - lt_cv_deplibs_check_method=pass_all
4215 + library_names_spec='${libname}${shared_ext}'
4216 + dynamic_linker="$host_os ld.so"
4217 + shlibpath_var=LIBRARY_PATH
4221 - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
4222 - lt_cv_file_magic_cmd='/usr/bin/file -L'
4223 - lt_cv_file_magic_test_file=/shlib/libc.so
4227 - # func_win32_libid is a shell function defined in ltmain.sh
4228 - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4229 - lt_cv_file_magic_cmd='func_win32_libid'
4230 + version_type=linux
4232 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4233 + soname_spec='${libname}${release}${shared_ext}$major'
4234 + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
4235 + shlibpath_var=LD_LIBRARY_PATH
4236 + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
4237 + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
4238 + # the default ld.so.conf also contains /usr/contrib/lib and
4239 + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
4240 + # libtool to hard-code these into programs
4244 - # Base MSYS/MinGW do not provide the 'file' command needed by
4245 - # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4246 - lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4247 - lt_cv_file_magic_cmd='$OBJDUMP -f'
4249 +cygwin* | mingw* | pw32*)
4250 + version_type=windows
4251 + shrext_cmds=".dll"
4253 + need_lib_prefix=no
4255 -darwin* | rhapsody*)
4256 - lt_cv_deplibs_check_method=pass_all
4258 + case $GCC,$host_os in
4259 + yes,cygwin* | yes,mingw* | yes,pw32*)
4260 + library_names_spec='$libname.dll.a'
4261 + # DLL is installed to $(libdir)/../bin by postinstall_cmds
4262 + postinstall_cmds='base_file=`basename \${file}`~
4263 + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
4264 + dldir=$destdir/`dirname \$dlpath`~
4265 + test -d \$dldir || mkdir -p \$dldir~
4266 + $install_prog $dir/$dlname \$dldir/$dlname~
4267 + chmod a+x \$dldir/$dlname~
4268 + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
4269 + eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
4271 + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
4272 + dlpath=$dir/\$dldll~
4274 + shlibpath_overrides_runpath=yes
4276 -freebsd* | kfreebsd*-gnu | dragonfly*)
4277 - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4280 - # Not sure whether the presence of OpenBSD here was a mistake.
4281 - # Let's accept both of them until this is cleared up.
4282 - lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
4283 - lt_cv_file_magic_cmd=/usr/bin/file
4284 - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4287 + # Cygwin DLLs use 'cyg' prefix rather than 'lib'
4288 + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
4289 + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
4292 + # MinGW DLLs use traditional 'lib' prefix
4293 + soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
4294 + sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
4295 + if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
4296 + # It is most probably a Windows format PATH printed by
4297 + # mingw gcc, but we are running on Cygwin. Gcc prints its search
4298 + # path with ; separators, and with drive letters. We can handle the
4299 + # drive letters (cygwin fileutils understands them), so leave them,
4300 + # especially as we might pass files found there to a mingw objdump,
4301 + # which wouldn't understand a cygwinified path. Ahh.
4302 + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
4304 + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
4308 + # pw32 DLLs use 'pw' prefix rather than 'lib'
4309 + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
4313 - lt_cv_deplibs_check_method=pass_all
4318 - lt_cv_deplibs_check_method=pass_all
4321 -hpux10.20* | hpux11*)
4322 - lt_cv_file_magic_cmd=/usr/bin/file
4325 - lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
4326 - lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4329 - [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]']
4330 - lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4334 - lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
4335 - lt_cv_file_magic_test_file=/usr/lib/libc.sl
4336 + library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
4339 + dynamic_linker='Win32 ld.exe'
4340 + # FIXME: first we should search . and the directory the executable is in
4341 + shlibpath_var=PATH
4345 - # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4346 - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
4349 -irix5* | irix6* | nonstopux*)
4351 - *-32|*"-32 ") libmagic=32-bit;;
4352 - *-n32|*"-n32 ") libmagic=N32;;
4353 - *-64|*"-64 ") libmagic=64-bit;;
4354 - *) libmagic=never-match;;
4356 - lt_cv_deplibs_check_method=pass_all
4359 -# This must be Linux ELF.
4361 - lt_cv_deplibs_check_method=pass_all
4365 - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4366 - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
4368 - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
4370 +darwin* | rhapsody*)
4371 + dynamic_linker="$host_os dyld"
4372 + version_type=darwin
4373 + need_lib_prefix=no
4375 + library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
4376 + soname_spec='${libname}${release}${major}$shared_ext'
4377 + shlibpath_overrides_runpath=yes
4378 + shlibpath_var=DYLD_LIBRARY_PATH
4379 + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
4381 + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
4382 + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
4386 - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
4387 - lt_cv_file_magic_cmd=/usr/bin/file
4388 - lt_cv_file_magic_test_file=/usr/lib/libnls.so
4390 + version_type=linux
4391 + need_lib_prefix=no
4393 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
4394 + soname_spec='${libname}${release}${shared_ext}$major'
4395 + shlibpath_var=LD_LIBRARY_PATH
4399 - lt_cv_deplibs_check_method=unknown
4405 - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4406 - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
4407 +freebsd* | dragonfly*)
4408 + # DragonFly does not have aout. When/if they implement a new
4409 + # versioning mechanism, adjust this.
4410 + if test -x /usr/bin/objformat; then
4411 + objformat=`/usr/bin/objformat`
4413 - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
4415 + freebsd[[123]]*) objformat=aout ;;
4416 + *) objformat=elf ;;
4421 -osf3* | osf4* | osf5*)
4422 - lt_cv_deplibs_check_method=pass_all
4426 - lt_cv_deplibs_check_method=pass_all
4430 - case $host_vendor in
4432 - 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]]'
4433 - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4436 - lt_cv_deplibs_check_method=pass_all
4439 - lt_cv_file_magic_cmd='/bin/file'
4440 - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
4441 + version_type=freebsd-$objformat
4442 + case $version_type in
4444 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
4446 + need_lib_prefix=no
4449 + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
4453 + shlibpath_var=LD_LIBRARY_PATH
4456 + shlibpath_overrides_runpath=yes
4459 - lt_cv_file_magic_cmd='/bin/file'
4460 - lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
4461 - lt_cv_file_magic_test_file=/lib/libc.so
4462 + freebsd3.[[01]]* | freebsdelf3.[[01]]*)
4463 + shlibpath_overrides_runpath=yes
4464 + hardcode_into_libs=yes
4467 - lt_cv_deplibs_check_method=pass_all
4468 + freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
4469 + freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
4470 + shlibpath_overrides_runpath=no
4471 + hardcode_into_libs=yes
4474 - lt_cv_deplibs_check_method=pass_all
4475 + *) # from 4.6 on, and DragonFly
4476 + shlibpath_overrides_runpath=yes
4477 + hardcode_into_libs=yes
4482 -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4483 - lt_cv_deplibs_check_method=pass_all
4485 + version_type=linux
4486 + need_lib_prefix=no
4488 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
4489 + soname_spec='${libname}${release}${shared_ext}$major'
4490 + shlibpath_var=LD_LIBRARY_PATH
4491 + hardcode_into_libs=yes
4495 -file_magic_cmd=$lt_cv_file_magic_cmd
4496 -deplibs_check_method=$lt_cv_deplibs_check_method
4497 -test -z "$deplibs_check_method" && deplibs_check_method=unknown
4498 -])# AC_DEPLIBS_CHECK_METHOD
4503 -# find the pathname to a BSD-compatible name lister
4504 -AC_DEFUN([AC_PROG_NM],
4505 -[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
4506 -[if test -n "$NM"; then
4507 - # Let the user override the test.
4508 - lt_cv_path_NM="$NM"
4510 - lt_nm_to_check="${ac_tool_prefix}nm"
4511 - if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4512 - lt_nm_to_check="$lt_nm_to_check nm"
4514 - for lt_tmp_nm in $lt_nm_to_check; do
4515 - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4516 - for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4517 - IFS="$lt_save_ifs"
4518 - test -z "$ac_dir" && ac_dir=.
4519 - tmp_nm="$ac_dir/$lt_tmp_nm"
4520 - if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4521 - # Check to see if the nm accepts a BSD-compat flag.
4522 - # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4523 - # nm: unknown option "B" ignored
4524 - # Tru64's nm complains that /dev/null is an invalid object file
4525 - case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4526 - */dev/null* | *'Invalid file or object type'*)
4527 - lt_cv_path_NM="$tmp_nm -B"
4531 - case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4533 - lt_cv_path_NM="$tmp_nm -p"
4537 - lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4538 - continue # so that we can try to find one that supports BSD flags
4545 - IFS="$lt_save_ifs"
4547 - test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4549 -NM="$lt_cv_path_NM"
4555 -# check for math library
4556 -AC_DEFUN([AC_CHECK_LIBM],
4557 -[AC_REQUIRE([AC_CANONICAL_HOST])dnl
4560 -*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
4561 - # These system don't have libm, or don't need it
4564 - AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
4565 - AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
4568 - AC_CHECK_LIB(m, cos, LIBM="-lm")
4569 +hpux9* | hpux10* | hpux11*)
4570 + # Give a soname corresponding to the major version so that dld.sl refuses to
4571 + # link against other versions.
4572 + version_type=sunos
4573 + need_lib_prefix=no
4578 + hardcode_into_libs=yes
4579 + dynamic_linker="$host_os dld.so"
4580 + shlibpath_var=LD_LIBRARY_PATH
4581 + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
4582 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4583 + soname_spec='${libname}${release}${shared_ext}$major'
4584 + if test "X$HPUX_IA64_MODE" = X32; then
4585 + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
4587 + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
4589 + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
4593 + hardcode_into_libs=yes
4594 + dynamic_linker="$host_os dld.sl"
4595 + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
4596 + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
4597 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4598 + soname_spec='${libname}${release}${shared_ext}$major'
4599 + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
4600 + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
4604 + dynamic_linker="$host_os dld.sl"
4605 + shlibpath_var=SHLIB_PATH
4606 + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
4607 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4608 + soname_spec='${libname}${release}${shared_ext}$major'
4611 + # HP-UX runs *really* slowly unless shared libraries are mode 555.
4612 + postinstall_cmds='chmod 555 $lib'
4618 + version_type=linux
4619 + need_lib_prefix=no
4621 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
4622 + soname_spec='${libname}${release}${shared_ext}$major'
4623 + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
4624 + shlibpath_var=LD_LIBRARY_PATH
4625 + shlibpath_overrides_runpath=no
4626 + hardcode_into_libs=yes
4629 -# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
4630 -# -----------------------------------
4631 -# sets LIBLTDL to the link flags for the libltdl convenience library and
4632 -# LTDLINCL to the include flags for the libltdl header and adds
4633 -# --enable-ltdl-convenience to the configure arguments. Note that
4634 -# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
4635 -# it is assumed to be `libltdl'. LIBLTDL will be prefixed with
4636 -# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
4637 -# (note the single quotes!). If your package is not flat and you're not
4638 -# using automake, define top_builddir and top_srcdir appropriately in
4640 -AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
4641 -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
4642 - case $enable_ltdl_convenience in
4643 - no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
4644 - "") enable_ltdl_convenience=yes
4645 - ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
4646 +irix5* | irix6* | nonstopux*)
4648 + nonstopux*) version_type=nonstopux ;;
4650 + if test "$lt_cv_prog_gnu_ld" = yes; then
4651 + version_type=linux
4656 - LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
4657 - LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
4658 - # For backwards non-gettext consistent compatibility...
4659 - INCLTDL="$LTDLINCL"
4660 -])# AC_LIBLTDL_CONVENIENCE
4663 -# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
4664 -# -----------------------------------
4665 -# sets LIBLTDL to the link flags for the libltdl installable library and
4666 -# LTDLINCL to the include flags for the libltdl header and adds
4667 -# --enable-ltdl-install to the configure arguments. Note that
4668 -# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
4669 -# and an installed libltdl is not found, it is assumed to be `libltdl'.
4670 -# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
4671 -# '${top_srcdir}/' (note the single quotes!). If your package is not
4672 -# flat and you're not using automake, define top_builddir and top_srcdir
4673 -# appropriately in the Makefiles.
4674 -# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
4675 -AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
4676 -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
4677 - AC_CHECK_LIB(ltdl, lt_dlinit,
4678 - [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
4679 - [if test x"$enable_ltdl_install" = xno; then
4680 - AC_MSG_WARN([libltdl not installed, but installation disabled])
4682 - enable_ltdl_install=yes
4685 - if test x"$enable_ltdl_install" = x"yes"; then
4686 - ac_configure_args="$ac_configure_args --enable-ltdl-install"
4687 - LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
4688 - LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
4690 - ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
4694 - # For backwards non-gettext consistent compatibility...
4695 - INCLTDL="$LTDLINCL"
4696 -])# AC_LIBLTDL_INSTALLABLE
4697 + need_lib_prefix=no
4699 + soname_spec='${libname}${release}${shared_ext}$major'
4700 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
4702 + irix5* | nonstopux*)
4703 + libsuff= shlibsuff=
4706 + case $LD in # libtool.m4 will add one of these switches to LD
4707 + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
4708 + libsuff= shlibsuff= libmagic=32-bit;;
4709 + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
4710 + libsuff=32 shlibsuff=N32 libmagic=N32;;
4711 + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
4712 + libsuff=64 shlibsuff=64 libmagic=64-bit;;
4713 + *) libsuff= shlibsuff= libmagic=never-match;;
4717 + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
4718 + shlibpath_overrides_runpath=no
4719 + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
4720 + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
4721 + hardcode_into_libs=yes
4724 +# No shared lib support for Linux oldld, aout, or coff.
4725 +linux*oldld* | linux*aout* | linux*coff*)
4731 -# enable support for C++ libraries
4732 -AC_DEFUN([AC_LIBTOOL_CXX],
4733 -[AC_REQUIRE([_LT_AC_LANG_CXX])
4735 +# This must be Linux ELF.
4736 +linux* | k*bsd*-gnu)
4737 + version_type=linux
4738 + need_lib_prefix=no
4740 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4741 + soname_spec='${libname}${release}${shared_ext}$major'
4742 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
4743 + shlibpath_var=LD_LIBRARY_PATH
4744 + shlibpath_overrides_runpath=no
4745 + # Some binutils ld are patched to set DT_RUNPATH
4746 + save_LDFLAGS=$LDFLAGS
4747 + save_libdir=$libdir
4748 + eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
4749 + LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
4750 + AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
4751 + [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
4752 + [shlibpath_overrides_runpath=yes])])
4753 + LDFLAGS=$save_LDFLAGS
4754 + libdir=$save_libdir
4756 + # This implies no fast_install, which is unacceptable.
4757 + # Some rework will be needed to allow for fast_install
4758 + # before this can be enabled.
4759 + hardcode_into_libs=yes
4763 -AC_DEFUN([_LT_AC_LANG_CXX],
4764 -[AC_REQUIRE([AC_PROG_CXX])
4765 -AC_REQUIRE([_LT_AC_PROG_CXXCPP])
4766 -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
4767 -])# _LT_AC_LANG_CXX
4768 + # Append ld.so.conf contents to the search path
4769 + if test -f /etc/ld.so.conf; then
4770 + 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' ' '`
4771 + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
4774 -# _LT_AC_PROG_CXXCPP
4775 -# ------------------
4776 -AC_DEFUN([_LT_AC_PROG_CXXCPP],
4778 -AC_REQUIRE([AC_PROG_CXX])
4779 -if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4780 - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4781 - (test "X$CXX" != "Xg++"))) ; then
4784 -])# _LT_AC_PROG_CXXCPP
4788 -# enable support for Fortran 77 libraries
4789 -AC_DEFUN([AC_LIBTOOL_F77],
4790 -[AC_REQUIRE([_LT_AC_LANG_F77])
4796 -AC_DEFUN([_LT_AC_LANG_F77],
4797 -[AC_REQUIRE([AC_PROG_F77])
4798 -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
4799 -])# _LT_AC_LANG_F77
4804 -# enable support for GCJ libraries
4805 -AC_DEFUN([AC_LIBTOOL_GCJ],
4806 -[AC_REQUIRE([_LT_AC_LANG_GCJ])
4812 -AC_DEFUN([_LT_AC_LANG_GCJ],
4813 -[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
4814 - [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
4815 - [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
4816 - [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
4817 - [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
4818 - [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
4819 -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
4820 -])# _LT_AC_LANG_GCJ
4825 -# enable support for Windows resource files
4826 -AC_DEFUN([AC_LIBTOOL_RC],
4827 -[AC_REQUIRE([LT_AC_PROG_RC])
4828 -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
4830 + # We used to test for /lib/ld.so.1 and disable shared libraries on
4831 + # powerpc, because MkLinux only supported shared libraries with the
4832 + # GNU dynamic linker. Since this was broken with cross compilers,
4833 + # most powerpc-linux boxes support dynamic linking these days and
4834 + # people can always --disable-shared, the test was removed, and we
4835 + # assume the GNU/Linux dynamic linker is in use.
4836 + dynamic_linker='GNU/Linux ld.so'
4840 + version_type=sunos
4841 + need_lib_prefix=no
4843 + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
4844 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4845 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4846 + dynamic_linker='NetBSD (a.out) ld.so'
4848 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
4849 + soname_spec='${libname}${release}${shared_ext}$major'
4850 + dynamic_linker='NetBSD ld.elf_so'
4852 + shlibpath_var=LD_LIBRARY_PATH
4853 + shlibpath_overrides_runpath=yes
4854 + hardcode_into_libs=yes
4857 -# AC_LIBTOOL_LANG_C_CONFIG
4858 -# ------------------------
4859 -# Ensure that the configuration vars for the C compiler are
4860 -# suitably defined. Those variables are subsequently used by
4861 -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4862 -AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
4863 -AC_DEFUN([_LT_AC_LANG_C_CONFIG],
4867 + version_type=linux
4868 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4869 + shlibpath_var=LD_LIBRARY_PATH
4870 + shlibpath_overrides_runpath=yes
4873 -# Source file extension for C test sources.
4877 + need_lib_prefix=no
4879 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4880 + soname_spec='${libname}${release}${shared_ext}$major'
4881 + shlibpath_var=LD_LIBRARY_PATH
4882 + shlibpath_overrides_runpath=no
4883 + hardcode_into_libs=yes
4884 + dynamic_linker='ldqnx.so'
4887 -# Object file extension for compiled C test sources.
4889 -_LT_AC_TAGVAR(objext, $1)=$objext
4891 + version_type=sunos
4892 + sys_lib_dlsearch_path_spec="/usr/lib"
4893 + need_lib_prefix=no
4894 + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
4896 + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
4897 + *) need_version=no ;;
4899 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4900 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4901 + shlibpath_var=LD_LIBRARY_PATH
4902 + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4904 + openbsd2.[[89]] | openbsd2.[[89]].*)
4905 + shlibpath_overrides_runpath=no
4908 + shlibpath_overrides_runpath=yes
4912 + shlibpath_overrides_runpath=yes
4916 -# Code to be used in simple compile tests
4917 -lt_simple_compile_test_code="int some_variable = 0;\n"
4919 + libname_spec='$name'
4920 + shrext_cmds=".dll"
4921 + need_lib_prefix=no
4922 + library_names_spec='$libname${shared_ext} $libname.a'
4923 + dynamic_linker='OS/2 ld.exe'
4924 + shlibpath_var=LIBPATH
4927 -# Code to be used in simple link tests
4928 -lt_simple_link_test_code='int main(){return(0);}\n'
4929 +osf3* | osf4* | osf5*)
4931 + need_lib_prefix=no
4933 + soname_spec='${libname}${release}${shared_ext}$major'
4934 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4935 + shlibpath_var=LD_LIBRARY_PATH
4936 + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
4937 + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
4940 -_LT_AC_SYS_COMPILER
4945 -# save warnings/boilerplate of simple test code
4946 -_LT_COMPILER_BOILERPLATE
4947 -_LT_LINKER_BOILERPLATE
4949 + version_type=linux
4950 + need_lib_prefix=no
4952 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4953 + soname_spec='${libname}${release}${shared_ext}$major'
4954 + shlibpath_var=LD_LIBRARY_PATH
4955 + shlibpath_overrides_runpath=yes
4956 + hardcode_into_libs=yes
4957 + # ldd complains unless libraries are executable
4958 + postinstall_cmds='chmod +x $lib'
4962 -## There is no encapsulation within the following macros, do not change
4963 -## the running order or otherwise move them around unless you know exactly
4964 -## what you are doing...
4965 -AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
4966 -AC_LIBTOOL_PROG_COMPILER_PIC($1)
4967 -AC_LIBTOOL_PROG_CC_C_O($1)
4968 -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4969 -AC_LIBTOOL_PROG_LD_SHLIBS($1)
4970 -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4971 -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4972 -AC_LIBTOOL_SYS_LIB_STRIP
4973 -AC_LIBTOOL_DLOPEN_SELF
4975 -# Report which library types will actually be built
4976 -AC_MSG_CHECKING([if libtool supports shared libraries])
4977 -AC_MSG_RESULT([$can_build_shared])
4979 + version_type=sunos
4980 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4981 + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
4982 + shlibpath_var=LD_LIBRARY_PATH
4983 + shlibpath_overrides_runpath=yes
4984 + if test "$with_gnu_ld" = yes; then
4985 + need_lib_prefix=no
4990 -AC_MSG_CHECKING([whether to build shared libraries])
4991 -test "$can_build_shared" = "no" && enable_shared=no
4993 + version_type=linux
4994 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4995 + soname_spec='${libname}${release}${shared_ext}$major'
4996 + shlibpath_var=LD_LIBRARY_PATH
4997 + case $host_vendor in
4999 + shlibpath_overrides_runpath=no
5000 + need_lib_prefix=no
5001 + runpath_var=LD_RUN_PATH
5004 + need_lib_prefix=no
5007 + need_lib_prefix=no
5009 + shlibpath_overrides_runpath=no
5010 + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
5015 -# On AIX, shared libraries and static libraries use the same namespace, and
5016 -# are all built from PIC.
5019 - test "$enable_shared" = yes && enable_static=no
5020 - if test -n "$RANLIB"; then
5021 - archive_cmds="$archive_cmds~\$RANLIB \$lib"
5022 - postinstall_cmds='$RANLIB $lib'
5024 + if test -d /usr/nec ;then
5025 + version_type=linux
5026 + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
5027 + soname_spec='$libname${shared_ext}.$major'
5028 + shlibpath_var=LD_LIBRARY_PATH
5033 - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
5034 - test "$enable_shared" = yes && enable_static=no
5035 +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5036 + version_type=freebsd-elf
5037 + need_lib_prefix=no
5039 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
5040 + soname_spec='${libname}${release}${shared_ext}$major'
5041 + shlibpath_var=LD_LIBRARY_PATH
5042 + shlibpath_overrides_runpath=yes
5043 + hardcode_into_libs=yes
5044 + if test "$with_gnu_ld" = yes; then
5045 + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
5047 + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
5050 + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
5056 -AC_MSG_RESULT([$enable_shared])
5058 -AC_MSG_CHECKING([whether to build static libraries])
5059 -# Make sure either enable_shared or enable_static is yes.
5060 -test "$enable_shared" = yes || enable_static=yes
5061 -AC_MSG_RESULT([$enable_static])
5063 -AC_LIBTOOL_CONFIG($1)
5067 -])# AC_LIBTOOL_LANG_C_CONFIG
5070 -# AC_LIBTOOL_LANG_CXX_CONFIG
5071 -# --------------------------
5072 -# Ensure that the configuration vars for the C compiler are
5073 -# suitably defined. Those variables are subsequently used by
5074 -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
5075 -AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
5076 -AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
5078 -AC_REQUIRE([AC_PROG_CXX])
5079 -AC_REQUIRE([_LT_AC_PROG_CXXCPP])
5081 -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5082 -_LT_AC_TAGVAR(allow_undefined_flag, $1)=
5083 -_LT_AC_TAGVAR(always_export_symbols, $1)=no
5084 -_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
5085 -_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
5086 -_LT_AC_TAGVAR(hardcode_direct, $1)=no
5087 -_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
5088 -_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
5089 -_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
5090 -_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
5091 -_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5092 -_LT_AC_TAGVAR(hardcode_automatic, $1)=no
5093 -_LT_AC_TAGVAR(module_cmds, $1)=
5094 -_LT_AC_TAGVAR(module_expsym_cmds, $1)=
5095 -_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
5096 -_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
5097 -_LT_AC_TAGVAR(no_undefined_flag, $1)=
5098 -_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5099 -_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
5101 -# Dependencies to place before and after the object being linked:
5102 -_LT_AC_TAGVAR(predep_objects, $1)=
5103 -_LT_AC_TAGVAR(postdep_objects, $1)=
5104 -_LT_AC_TAGVAR(predeps, $1)=
5105 -_LT_AC_TAGVAR(postdeps, $1)=
5106 -_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
5108 -# Source file extension for C++ test sources.
5111 -# Object file extension for compiled C++ test sources.
5113 -_LT_AC_TAGVAR(objext, $1)=$objext
5115 -# Code to be used in simple compile tests
5116 -lt_simple_compile_test_code="int some_variable = 0;\n"
5117 + sys_lib_dlsearch_path_spec='/usr/lib'
5120 -# Code to be used in simple link tests
5121 -lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n'
5123 + # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
5124 + version_type=linux
5125 + need_lib_prefix=no
5127 + library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5128 + shlibpath_var=LD_LIBRARY_PATH
5129 + shlibpath_overrides_runpath=no
5130 + hardcode_into_libs=yes
5133 -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
5134 -_LT_AC_SYS_COMPILER
5136 + version_type=linux
5137 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5138 + soname_spec='${libname}${release}${shared_ext}$major'
5139 + shlibpath_var=LD_LIBRARY_PATH
5142 -# save warnings/boilerplate of simple test code
5143 -_LT_COMPILER_BOILERPLATE
5144 -_LT_LINKER_BOILERPLATE
5149 +AC_MSG_RESULT([$dynamic_linker])
5150 +test "$dynamic_linker" = no && can_build_shared=no
5152 -# Allow CC to be a program name with arguments.
5157 -lt_save_with_gnu_ld=$with_gnu_ld
5158 -lt_save_path_LD=$lt_cv_path_LD
5159 -if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
5160 - lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
5162 - $as_unset lt_cv_prog_gnu_ld
5163 +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
5164 +if test "$GCC" = yes; then
5165 + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
5167 -if test -n "${lt_cv_path_LDCXX+set}"; then
5168 - lt_cv_path_LD=$lt_cv_path_LDCXX
5170 - $as_unset lt_cv_path_LD
5172 +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
5173 + sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
5175 -test -z "${LDCXX+set}" || LD=$LDCXX
5178 -_LT_AC_TAGVAR(compiler, $1)=$CC
5179 -_LT_CC_BASENAME([$compiler])
5181 -# We don't want -fno-exception wen compiling C++ code, so set the
5182 -# no_builtin_flag separately
5183 -if test "$GXX" = yes; then
5184 - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
5186 - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
5187 +if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
5188 + sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
5191 -if test "$GXX" = yes; then
5192 - # Set up default GNU C++ configuration
5196 - # Check if GNU C++ uses GNU ld as the underlying linker, since the
5197 - # archiving commands below assume that GNU ld is being used.
5198 - if test "$with_gnu_ld" = yes; then
5199 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5200 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5202 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
5203 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5205 - # If archive_cmds runs LD, not CC, wlarc should be empty
5206 - # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
5207 - # investigate it a little bit more. (MM)
5210 - # ancient GNU ld didn't support --whole-archive et. al.
5211 - if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
5212 - grep 'no-whole-archive' > /dev/null; then
5213 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5215 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5221 - # A generic and very simple default shared library creation
5222 - # command for GNU C++ for the case where it uses the native
5223 - # linker, instead of GNU ld. If possible, this setting should
5224 - # overridden to take advantage of the native linker features on
5225 - # the platform it is being used on.
5226 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
5229 - # Commands to make compiler produce verbose output that lists
5230 - # what "hidden" libraries, object files and flags are used when
5231 - # linking a shared library.
5232 - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
5239 +_LT_DECL([], [variables_saved_for_relink], [1],
5240 + [Variables whose values should be saved in libtool wrapper scripts and
5241 + restored at link time])
5242 +_LT_DECL([], [need_lib_prefix], [0],
5243 + [Do we need the "lib" prefix for modules?])
5244 +_LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
5245 +_LT_DECL([], [version_type], [0], [Library versioning type])
5246 +_LT_DECL([], [runpath_var], [0], [Shared library runtime path variable])
5247 +_LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
5248 +_LT_DECL([], [shlibpath_overrides_runpath], [0],
5249 + [Is shlibpath searched before the hard-coded library search path?])
5250 +_LT_DECL([], [libname_spec], [1], [Format of library name prefix])
5251 +_LT_DECL([], [library_names_spec], [1],
5252 + [[List of archive names. First name is the real one, the rest are links.
5253 + The last name is the one that the linker finds with -lNAME]])
5254 +_LT_DECL([], [soname_spec], [1],
5255 + [[The coded name of the library, if different from the real name]])
5256 +_LT_DECL([], [postinstall_cmds], [2],
5257 + [Command to use after installation of a shared archive])
5258 +_LT_DECL([], [postuninstall_cmds], [2],
5259 + [Command to use after uninstallation of a shared archive])
5260 +_LT_DECL([], [finish_cmds], [2],
5261 + [Commands used to finish a libtool library installation in a directory])
5262 +_LT_DECL([], [finish_eval], [1],
5263 + [[As "finish_cmds", except a single script fragment to be evaled but
5265 +_LT_DECL([], [hardcode_into_libs], [0],
5266 + [Whether we should hardcode library paths into libraries])
5267 +_LT_DECL([], [sys_lib_search_path_spec], [2],
5268 + [Compile-time system search path for libraries])
5269 +_LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
5270 + [Run-time system search path for libraries])
5271 +])# _LT_SYS_DYNAMIC_LINKER
5273 -# PORTME: fill in a description of your system's C++ link characteristics
5274 -AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
5275 -_LT_AC_TAGVAR(ld_shlibs, $1)=yes
5278 - # FIXME: insert proper C++ library support
5279 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
5282 - if test "$host_cpu" = ia64; then
5283 - # On IA64, the linker does run time linking by default, so we don't
5284 - # have to do anything special.
5285 - aix_use_runtimelinking=no
5286 - exp_sym_flag='-Bexport'
5289 - aix_use_runtimelinking=no
5291 - # Test if we are trying to use run time linking or normal
5292 - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5293 - # need to do runtime linking.
5294 - case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
5295 - for ld_flag in $LDFLAGS; do
5298 - aix_use_runtimelinking=yes
5306 - exp_sym_flag='-bexport'
5307 - no_entry_flag='-bnoentry'
5309 +# _LT_PATH_TOOL_PREFIX(TOOL)
5310 +# --------------------------
5311 +# find a file program which can recognize shared library
5312 +AC_DEFUN([_LT_PATH_TOOL_PREFIX],
5313 +[m4_require([_LT_DECL_EGREP])dnl
5314 +AC_MSG_CHECKING([for $1])
5315 +AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
5316 +[case $MAGIC_CMD in
5317 +[[\\/*] | ?:[\\/]*])
5318 + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5321 + lt_save_MAGIC_CMD="$MAGIC_CMD"
5322 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5323 +dnl $ac_dummy forces splitting on constant user-supplied paths.
5324 +dnl POSIX.2 word splitting is done only on the output of word expansions,
5325 +dnl not every word. This closes a longstanding sh security hole.
5326 + ac_dummy="m4_if([$2], , $PATH, [$2])"
5327 + for ac_dir in $ac_dummy; do
5328 + IFS="$lt_save_ifs"
5329 + test -z "$ac_dir" && ac_dir=.
5330 + if test -f $ac_dir/$1; then
5331 + lt_cv_path_MAGIC_CMD="$ac_dir/$1"
5332 + if test -n "$file_magic_test_file"; then
5333 + case $deplibs_check_method in
5335 + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
5336 + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5337 + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5338 + $EGREP "$file_magic_regex" > /dev/null; then
5341 + cat <<_LT_EOF 1>&2
5343 - # When large executables or shared objects are built, AIX ld can
5344 - # have problems creating the table of contents. If linking a library
5345 - # or program results in "error TOC overflow" add -mminimal-toc to
5346 - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5347 - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5349 - _LT_AC_TAGVAR(archive_cmds, $1)=''
5350 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5351 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
5352 - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5353 +*** Warning: the command libtool uses to detect shared libraries,
5354 +*** $file_magic_cmd, produces output that libtool cannot recognize.
5355 +*** The result is that libtool may fail to recognize shared libraries
5356 +*** as such. This will affect the creation of libtool libraries that
5357 +*** depend on shared libraries, but programs linked with such libtool
5358 +*** libraries will work regardless of this problem. Nevertheless, you
5359 +*** may want to report the problem to your system manager and/or to
5360 +*** bug-libtool@gnu.org
5362 - if test "$GXX" = yes; then
5363 - case $host_os in aix4.[[012]]|aix4.[[012]].*)
5364 - # We only want to do this on AIX 4.2 and lower, the check
5365 - # below for broken collect2 doesn't work under 4.3+
5366 - collect2name=`${CC} -print-prog-name=collect2`
5367 - if test -f "$collect2name" && \
5368 - strings "$collect2name" | grep resolve_lib_name >/dev/null
5370 - # We have reworked collect2
5371 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5373 - # We have old collect2
5374 - _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
5375 - # It fails to find uninstalled libraries when the uninstalled
5376 - # path is not listed in the libpath. Setting hardcode_minus_L
5377 - # to unsupported forces relinking
5378 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5379 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5380 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
5384 - shared_flag='-shared'
5385 - if test "$aix_use_runtimelinking" = yes; then
5386 - shared_flag="$shared_flag "'${wl}-G'
5390 - if test "$host_cpu" = ia64; then
5391 - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
5392 - # chokes on -Wl,-G. The following line is correct:
5395 - if test "$aix_use_runtimelinking" = yes; then
5396 - shared_flag='${wl}-G'
5398 - shared_flag='${wl}-bM:SRE'
5407 + IFS="$lt_save_ifs"
5408 + MAGIC_CMD="$lt_save_MAGIC_CMD"
5411 +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5412 +if test -n "$MAGIC_CMD"; then
5413 + AC_MSG_RESULT($MAGIC_CMD)
5417 +_LT_DECL([], [MAGIC_CMD], [0],
5418 + [Used to examine libraries when file_magic_cmd begins with "file"])dnl
5419 +])# _LT_PATH_TOOL_PREFIX
5421 - # It seems that -bexpall does not export symbols beginning with
5422 - # underscore (_), so it is better to generate a list of symbols to export.
5423 - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
5424 - if test "$aix_use_runtimelinking" = yes; then
5425 - # Warning - without using the other runtime loading flags (-brtl),
5426 - # -berok will link without error, but may produce a broken library.
5427 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
5428 - # Determine the default libpath from the value encoded in an empty executable.
5429 - _LT_AC_SYS_LIBPATH_AIX
5430 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5432 +AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
5433 +dnl aclocal-1.4 backwards compatibility:
5434 +dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
5436 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
5438 - if test "$host_cpu" = ia64; then
5439 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
5440 - _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
5441 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
5443 - # Determine the default libpath from the value encoded in an empty executable.
5444 - _LT_AC_SYS_LIBPATH_AIX
5445 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5446 - # Warning - without using the other run time loading flags,
5447 - # -berok will link without error, but may produce a broken library.
5448 - _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
5449 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
5450 - # Exported symbols can be pulled into shared objects from archives
5451 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
5452 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
5453 - # This is similar to how AIX traditionally builds its shared libraries.
5454 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
5460 - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5461 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5462 - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5463 - # support --undefined. This deserves some investigation. FIXME
5464 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5466 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
5471 +# find a file program which can recognize a shared library
5472 +m4_defun([_LT_PATH_MAGIC],
5473 +[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
5474 +if test -z "$lt_cv_path_MAGIC_CMD"; then
5475 + if test -n "$ac_tool_prefix"; then
5476 + _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
5484 - case $cc_basename in
5486 - # FIXME: insert proper C++ library support
5487 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
5492 - cygwin* | mingw* | pw32*)
5493 - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
5494 - # as there is no search path for DLLs.
5495 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5496 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5497 - _LT_AC_TAGVAR(always_export_symbols, $1)=no
5498 - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5500 - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
5501 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5502 - # If the export-symbols file already is a .def file (1st line
5503 - # is EXPORTS), use it as is; otherwise, prepend...
5504 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5505 - cp $export_symbols $output_objdir/$soname.def;
5507 - echo EXPORTS > $output_objdir/$soname.def;
5508 - cat $export_symbols >> $output_objdir/$soname.def;
5510 - $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'
5512 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
5515 - darwin* | rhapsody*)
5517 - rhapsody* | darwin1.[[012]])
5518 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
5520 - *) # Darwin 1.3 on
5521 - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
5522 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
5524 - case ${MACOSX_DEPLOYMENT_TARGET} in
5526 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
5529 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
5535 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5536 - _LT_AC_TAGVAR(hardcode_direct, $1)=no
5537 - _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
5538 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5539 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
5540 - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5542 - if test "$GXX" = yes ; then
5543 - lt_int_apple_cc_single_mod=no
5544 - output_verbose_link_cmd='echo'
5545 - if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
5546 - lt_int_apple_cc_single_mod=yes
5548 - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
5549 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
5551 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
5553 - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
5554 - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
5555 - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
5556 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5558 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5560 - _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5562 - case $cc_basename in
5564 - output_verbose_link_cmd='echo'
5565 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
5566 - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
5567 - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
5568 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5569 - _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5572 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
5579 +# find the pathname to the GNU or non-GNU linker
5580 +AC_DEFUN([LT_PATH_LD],
5581 +[AC_REQUIRE([AC_PROG_CC])dnl
5582 +AC_REQUIRE([AC_CANONICAL_HOST])dnl
5583 +AC_REQUIRE([AC_CANONICAL_BUILD])dnl
5584 +m4_require([_LT_DECL_SED])dnl
5585 +m4_require([_LT_DECL_EGREP])dnl
5588 - case $cc_basename in
5590 - # FIXME: insert proper C++ library support
5591 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
5594 - # Green Hills C++ Compiler
5595 - # FIXME: insert proper C++ library support
5596 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
5599 - # FIXME: insert proper C++ library support
5600 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
5605 - # C++ shared libraries reported to be fairly broken before switch to ELF
5606 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
5609 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5611 - freebsd* | kfreebsd*-gnu | dragonfly*)
5612 - # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
5614 - _LT_AC_TAGVAR(ld_shlibs, $1)=yes
5619 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5620 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5621 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5622 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5623 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
5624 - # but as the default
5625 - # location of the library.
5627 - case $cc_basename in
5629 - # FIXME: insert proper C++ library support
5630 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
5633 - _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
5634 - # Commands to make compiler produce verbose output that lists
5635 - # what "hidden" libraries, object files and flags are used when
5636 - # linking a shared library.
5638 - # There doesn't appear to be a way to prevent this compiler from
5639 - # explicitly linking system object files so we need to strip them
5640 - # from the output so that they don't get included in the library
5642 - output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[[-]]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
5645 - if test "$GXX" = yes; then
5646 - _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
5648 - # FIXME: insert proper C++ library support
5649 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
5655 - if test $with_gnu_ld = no; then
5656 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5657 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5658 +AC_ARG_WITH([gnu-ld],
5659 + [AS_HELP_STRING([--with-gnu-ld],
5660 + [assume the C compiler uses GNU ld @<:@default=no@:>@])],
5661 + [test "$withval" = no || with_gnu_ld=yes],
5662 + [with_gnu_ld=no])dnl
5666 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
5669 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5675 - _LT_AC_TAGVAR(hardcode_direct, $1)=no
5676 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5679 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5680 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
5681 - # but as the default
5682 - # location of the library.
5684 +if test "$GCC" = yes; then
5685 + # Check if gcc -print-prog-name=ld gives a path.
5686 + AC_MSG_CHECKING([for ld used by $CC])
5689 + # gcc leaves a trailing carriage return which upsets mingw
5690 + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5692 + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5695 + # Accept absolute paths.
5696 + [[\\/]]* | ?:[[\\/]]*)
5697 + re_direlt='/[[^/]][[^/]]*/\.\./'
5698 + # Canonicalize the pathname of ld
5699 + ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5700 + while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5701 + ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5703 + test -z "$LD" && LD="$ac_prog"
5707 - case $cc_basename in
5709 - # FIXME: insert proper C++ library support
5710 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
5715 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5718 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5721 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5724 - # Commands to make compiler produce verbose output that lists
5725 - # what "hidden" libraries, object files and flags are used when
5726 - # linking a shared library.
5728 - # There doesn't appear to be a way to prevent this compiler from
5729 - # explicitly linking system object files so we need to strip them
5730 - # from the output so that they don't get included in the library
5732 - output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
5735 - if test "$GXX" = yes; then
5736 - if test $with_gnu_ld = no; then
5739 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5742 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5745 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5750 - # FIXME: insert proper C++ library support
5751 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
5757 - _LT_AC_TAGVAR(hardcode_direct, $1)=no
5758 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5759 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5760 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5761 - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
5762 - # Instead, shared libraries are loaded at an image base (0x10000000 by
5763 - # default) and relocated if they conflict, which is a slow very memory
5764 - # consuming and fragmenting process. To avoid this, we pick a random,
5765 - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
5766 - # time. Moving up from 0x10000000 also allows more sbrk(2) space.
5767 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
5768 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
5771 - case $cc_basename in
5774 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
5776 - # Archives containing C++ object files must be created using
5777 - # "CC -ar", where "CC" is the IRIX C++ compiler. This is
5778 - # necessary to make sure instantiated templates are included
5780 - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
5783 - if test "$GXX" = yes; then
5784 - if test "$with_gnu_ld" = no; then
5785 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5787 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
5790 - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5793 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5794 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5796 + # If it fails, then pretend we aren't using GCC.
5800 - case $cc_basename in
5802 - # Kuck and Associates, Inc. (KAI) C++ Compiler
5804 - # KCC will only create a shared library if the output file
5805 - # ends with ".so" (or ".sl" for HP-UX), so rename the library
5806 - # to its proper name (with version) after linking.
5807 - _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
5808 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
5809 - # Commands to make compiler produce verbose output that lists
5810 - # what "hidden" libraries, object files and flags are used when
5811 - # linking a shared library.
5813 - # There doesn't appear to be a way to prevent this compiler from
5814 - # explicitly linking system object files so we need to strip them
5815 - # from the output so that they don't get included in the library
5817 - output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
5819 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
5820 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5822 - # Archives containing C++ object files must be created using
5823 - # "CC -Bstatic", where "CC" is the KAI C++ compiler.
5824 - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
5829 - # version 8.0 and above of icpc choke on multiply defined symbols
5830 - # if we add $predep_objects and $postdep_objects, however 7.1 and
5831 - # earlier do not add the objects themselves.
5832 - case `$CC -V 2>&1` in
5834 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5835 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5837 - *) # Version 8.0 or newer
5840 - ia64*) tmp_idyn=' -i_dynamic';;
5842 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5843 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5846 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5847 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5848 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5849 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
5852 - # Portland Group C++ compiler
5853 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
5854 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
5856 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
5857 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5858 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
5862 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5863 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
5865 - runpath_var=LD_RUN_PATH
5866 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
5867 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5869 - # Commands to make compiler produce verbose output that lists
5870 - # what "hidden" libraries, object files and flags are used when
5871 - # linking a shared library.
5873 - # There doesn't appear to be a way to prevent this compiler from
5874 - # explicitly linking system object files so we need to strip them
5875 - # from the output so that they don't get included in the library
5877 - output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
5880 - case `$CC -V 2>&1 | sed 5q` in
5883 - _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
5884 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5885 - _LT_AC_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'
5886 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5887 - _LT_AC_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'
5889 - # Not sure whether something based on
5890 - # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
5891 - # would be better.
5892 - output_verbose_link_cmd='echo'
5894 - # Archives containing C++ object files must be created using
5895 - # "CC -xar", where "CC" is the Sun C++ compiler. This is
5896 - # necessary to make sure instantiated templates are included
5898 - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
5904 + # If it is relative, then search for the first ld in PATH.
5905 + with_gnu_ld=unknown
5908 - # FIXME: insert proper C++ library support
5909 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
5912 - # FIXME: insert proper C++ library support
5913 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
5916 - case $cc_basename in
5918 - # FIXME: insert proper C++ library support
5919 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
5921 +elif test "$with_gnu_ld" = yes; then
5922 + AC_MSG_CHECKING([for GNU ld])
5924 + AC_MSG_CHECKING([for non-GNU ld])
5926 +AC_CACHE_VAL(lt_cv_path_LD,
5927 +[if test -z "$LD"; then
5928 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5929 + for ac_dir in $PATH; do
5930 + IFS="$lt_save_ifs"
5931 + test -z "$ac_dir" && ac_dir=.
5932 + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5933 + lt_cv_path_LD="$ac_dir/$ac_prog"
5934 + # Check to see if the program is GNU ld. I'd rather use --version,
5935 + # but apparently some variants of GNU ld only accept -v.
5936 + # Break only if it was the GNU/non-GNU ld that we prefer.
5937 + case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5938 + *GNU* | *'with BFD'*)
5939 + test "$with_gnu_ld" != no && break
5942 - # FIXME: insert proper C++ library support
5943 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
5944 + test "$with_gnu_ld" != yes && break
5949 - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5950 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
5952 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5953 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5954 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5956 - # Workaround some broken pre-1.5 toolchains
5957 - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
5960 - # C++ shared libraries are fairly broken
5961 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
5964 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5965 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5966 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
5967 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5968 - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5969 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
5970 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5971 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5974 - output_verbose_link_cmd='echo'
5977 - case $cc_basename in
5979 - # Kuck and Associates, Inc. (KAI) C++ Compiler
5981 - # KCC will only create a shared library if the output file
5982 - # ends with ".so" (or ".sl" for HP-UX), so rename the library
5983 - # to its proper name (with version) after linking.
5984 - _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
5986 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5987 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5989 - # Archives containing C++ object files must be created using
5990 - # "CC -Bstatic", where "CC" is the KAI C++ compiler.
5991 - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
5995 - # Rational C++ 2.4.1
5996 - # FIXME: insert proper C++ library support
5997 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
6000 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6001 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6003 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6004 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6006 - # Commands to make compiler produce verbose output that lists
6007 - # what "hidden" libraries, object files and flags are used when
6008 - # linking a shared library.
6010 - # There doesn't appear to be a way to prevent this compiler from
6011 - # explicitly linking system object files so we need to strip them
6012 - # from the output so that they don't get included in the library
6014 - output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
6017 - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6018 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6019 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6021 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6022 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6024 - # Commands to make compiler produce verbose output that lists
6025 - # what "hidden" libraries, object files and flags are used when
6026 - # linking a shared library.
6027 - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
6029 + IFS="$lt_save_ifs"
6031 + lt_cv_path_LD="$LD" # Let the user override the test with a path.
6033 +LD="$lt_cv_path_LD"
6034 +if test -n "$LD"; then
6035 + AC_MSG_RESULT($LD)
6039 +test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
6044 - # FIXME: insert proper C++ library support
6045 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
6051 - case $cc_basename in
6053 - # Kuck and Associates, Inc. (KAI) C++ Compiler
6055 - # KCC will only create a shared library if the output file
6056 - # ends with ".so" (or ".sl" for HP-UX), so rename the library
6057 - # to its proper name (with version) after linking.
6058 - _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
6060 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6061 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6063 - # Archives containing C++ object files must be created using
6064 - # the KAI C++ compiler.
6065 - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
6068 - # Rational C++ 2.4.1
6069 - # FIXME: insert proper C++ library support
6070 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
6073 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6074 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6075 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
6076 - echo "-hidden">> $lib.exp~
6077 - $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
6080 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6081 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6083 - # Commands to make compiler produce verbose output that lists
6084 - # what "hidden" libraries, object files and flags are used when
6085 - # linking a shared library.
6087 - # There doesn't appear to be a way to prevent this compiler from
6088 - # explicitly linking system object files so we need to strip them
6089 - # from the output so that they don't get included in the library
6091 - output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
6094 - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6095 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6096 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6098 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6099 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6101 - # Commands to make compiler produce verbose output that lists
6102 - # what "hidden" libraries, object files and flags are used when
6103 - # linking a shared library.
6104 - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
6105 +_LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
6109 - # FIXME: insert proper C++ library support
6110 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
6116 - # FIXME: insert proper C++ library support
6117 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
6120 - case $cc_basename in
6123 - # FIXME: insert proper C++ library support
6124 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
6128 - # FIXME: insert proper C++ library support
6129 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
6132 - # FIXME: insert proper C++ library support
6133 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
6137 +AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
6138 +AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
6139 +dnl aclocal-1.4 backwards compatibility:
6140 +dnl AC_DEFUN([AM_PROG_LD], [])
6141 +dnl AC_DEFUN([AC_PROG_LD], [])
6146 +m4_defun([_LT_PATH_LD_GNU],
6147 +[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
6148 +[# I'd rather use --version here, but apparently some GNU lds only accept -v.
6149 +case `$LD -v 2>&1 </dev/null` in
6150 +*GNU* | *'with BFD'*)
6151 + lt_cv_prog_gnu_ld=yes
6154 + lt_cv_prog_gnu_ld=no
6157 +with_gnu_ld=$lt_cv_prog_gnu_ld
6158 +])# _LT_PATH_LD_GNU
6163 +# find reload flag for linker
6164 +# -- PORTME Some linkers may need a different reload flag.
6165 +m4_defun([_LT_CMD_RELOAD],
6166 +[AC_CACHE_CHECK([for $LD option to reload object files],
6167 + lt_cv_ld_reload_flag,
6168 + [lt_cv_ld_reload_flag='-r'])
6169 +reload_flag=$lt_cv_ld_reload_flag
6170 +case $reload_flag in
6172 +*) reload_flag=" $reload_flag" ;;
6174 +reload_cmds='$LD$reload_flag -o $output$reload_objs'
6177 + if test "$GCC" = yes; then
6178 + reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6180 + reload_cmds='$LD$reload_flag -o $output$reload_objs'
6184 - case $cc_basename in
6186 - # Sun C++ 4.2, 5.x and Centerline C++
6187 - _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
6188 - _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
6189 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6190 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6191 - $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'
6193 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6194 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6196 - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6198 - # The C++ compiler is used as linker so we must use $wl
6199 - # flag to pass the commands to the underlying system
6200 - # linker. We must also pass each convience library through
6201 - # to the system linker between allextract/defaultextract.
6202 - # The C++ compiler will combine linker options so we
6203 - # cannot just pass the convience library names through
6205 - # Supported since Solaris 2.6 (maybe 2.5.1?)
6206 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
6209 - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6211 +_LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
6212 +_LT_DECL([], [reload_cmds], [2])dnl
6215 - output_verbose_link_cmd='echo'
6217 - # Archives containing C++ object files must be created using
6218 - # "CC -xar", where "CC" is the Sun C++ compiler. This is
6219 - # necessary to make sure instantiated templates are included
6221 - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
6224 - # Green Hills C++ Compiler
6225 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6226 +# _LT_CHECK_MAGIC_METHOD
6227 +# ----------------------
6228 +# how to check for library dependencies
6229 +# -- PORTME fill in with the dynamic library characteristics
6230 +m4_defun([_LT_CHECK_MAGIC_METHOD],
6231 +[m4_require([_LT_DECL_EGREP])
6232 +AC_CACHE_CHECK([how to recognize dependent libraries],
6233 +lt_cv_deplibs_check_method,
6234 +[lt_cv_file_magic_cmd='$MAGIC_CMD'
6235 +lt_cv_file_magic_test_file=
6236 +lt_cv_deplibs_check_method='unknown'
6237 +# Need to set the preceding variable on all platforms that support
6238 +# interlibrary dependencies.
6239 +# 'none' -- dependencies not supported.
6240 +# `unknown' -- same as none, but documents that we really don't know.
6241 +# 'pass_all' -- all dependencies passed with no checks.
6242 +# 'test_compile' -- check by making test program.
6243 +# 'file_magic [[regex]]' -- check by looking for files in library path
6244 +# which responds to the $file_magic_cmd with a given extended regex.
6245 +# If you have `file' or equivalent on your system and you're not sure
6246 +# whether `pass_all' will *always* work, you probably want this one.
6248 - # The C++ compiler must be used to create the archive.
6249 - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
6252 - # GNU C++ compiler with Solaris linker
6253 - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6254 - _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
6255 - if $CC --version | grep -v '^2\.7' > /dev/null; then
6256 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6257 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6258 - $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
6261 + lt_cv_deplibs_check_method=pass_all
6264 - # Commands to make compiler produce verbose output that lists
6265 - # what "hidden" libraries, object files and flags are used when
6266 - # linking a shared library.
6267 - output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
6269 - # g++ 2.7 appears to require `-G' NOT `-shared' on this
6271 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6272 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6273 - $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
6275 + lt_cv_deplibs_check_method=pass_all
6278 - # Commands to make compiler produce verbose output that lists
6279 - # what "hidden" libraries, object files and flags are used when
6280 - # linking a shared library.
6281 - output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
6284 + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
6285 + lt_cv_file_magic_cmd='/usr/bin/file -L'
6286 + lt_cv_file_magic_test_file=/shlib/libc.so
6289 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
6294 - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
6295 - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6296 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6297 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6298 - runpath_var='LD_RUN_PATH'
6300 - case $cc_basename in
6302 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6303 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6306 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6307 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6311 - sysv5* | sco3.2v5* | sco5v6*)
6312 - # Note: We can NOT use -z defs as we might desire, because we do not
6313 - # link with -lc, and that would cause any symbols used from libc to
6314 - # always be unresolved, which means just about no library would
6315 - # ever link correctly. If we're not using GNU ld we use -z text
6316 - # though, which does catch some bad symbols but isn't as heavy-handed
6318 - # For security reasons, it is highly recommended that you always
6319 - # use absolute paths for naming shared libraries, and exclude the
6320 - # DT_RUNPATH tag from executables and libraries. But doing so
6321 - # requires that you compile everything twice, which is a pain.
6322 - # So that behaviour is only enabled if SCOABSPATH is set to a
6323 - # non-empty value in the environment. Most likely only useful for
6324 - # creating official distributions of packages.
6325 - # This is a hack until libtool officially supports absolute path
6326 - # names for shared libraries.
6327 - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6328 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
6329 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6330 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6331 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
6332 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
6333 - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6334 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
6335 - runpath_var='LD_RUN_PATH'
6337 - case $cc_basename in
6339 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6340 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6343 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6344 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6349 - case $cc_basename in
6351 - # NonStop-UX NCC 3.20
6352 - # FIXME: insert proper C++ library support
6353 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
6356 - # FIXME: insert proper C++ library support
6357 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
6360 + # func_win32_libid is a shell function defined in ltmain.sh
6361 + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6362 + lt_cv_file_magic_cmd='func_win32_libid'
6366 + # Base MSYS/MinGW do not provide the 'file' command needed by
6367 + # func_win32_libid shell function, so use a weaker test based on 'objdump',
6368 + # unless we find 'file', for example because we are cross-compiling.
6369 + if ( file / ) >/dev/null 2>&1; then
6370 + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6371 + lt_cv_file_magic_cmd='func_win32_libid'
6373 + lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6374 + lt_cv_file_magic_cmd='$OBJDUMP -f'
6378 +darwin* | rhapsody*)
6379 + lt_cv_deplibs_check_method=pass_all
6382 +freebsd* | dragonfly*)
6383 + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6386 + # Not sure whether the presence of OpenBSD here was a mistake.
6387 + # Let's accept both of them until this is cleared up.
6388 + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
6389 + lt_cv_file_magic_cmd=/usr/bin/file
6390 + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6394 + lt_cv_deplibs_check_method=pass_all
6399 + lt_cv_deplibs_check_method=pass_all
6402 +hpux10.20* | hpux11*)
6403 + lt_cv_file_magic_cmd=/usr/bin/file
6406 + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
6407 + lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6410 - # FIXME: insert proper C++ library support
6411 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
6413 + [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]']
6414 + lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6417 - # FIXME: insert proper C++ library support
6418 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
6419 + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
6420 + lt_cv_file_magic_test_file=/usr/lib/libc.sl
6423 -AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
6424 -test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
6428 -_LT_AC_TAGVAR(GCC, $1)="$GXX"
6429 -_LT_AC_TAGVAR(LD, $1)="$LD"
6431 + # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6432 + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
6436 -## There is no encapsulation within the following macros, do not change
6437 -## the running order or otherwise move them around unless you know exactly
6438 -## what you are doing...
6439 -AC_LIBTOOL_POSTDEP_PREDEP($1)
6440 -AC_LIBTOOL_PROG_COMPILER_PIC($1)
6441 -AC_LIBTOOL_PROG_CC_C_O($1)
6442 -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
6443 -AC_LIBTOOL_PROG_LD_SHLIBS($1)
6444 -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
6445 -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
6446 +irix5* | irix6* | nonstopux*)
6448 + *-32|*"-32 ") libmagic=32-bit;;
6449 + *-n32|*"-n32 ") libmagic=N32;;
6450 + *-64|*"-64 ") libmagic=64-bit;;
6451 + *) libmagic=never-match;;
6453 + lt_cv_deplibs_check_method=pass_all
6456 -AC_LIBTOOL_CONFIG($1)
6457 +# This must be Linux ELF.
6458 +linux* | k*bsd*-gnu)
6459 + lt_cv_deplibs_check_method=pass_all
6467 -with_gnu_ldcxx=$with_gnu_ld
6468 -with_gnu_ld=$lt_save_with_gnu_ld
6469 -lt_cv_path_LDCXX=$lt_cv_path_LD
6470 -lt_cv_path_LD=$lt_save_path_LD
6471 -lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
6472 -lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
6473 -])# AC_LIBTOOL_LANG_CXX_CONFIG
6475 + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6476 + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
6478 + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
6482 -# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
6483 -# ------------------------------------
6484 -# Figure out "hidden" library dependencies from verbose
6485 -# compiler output when linking a shared library.
6486 -# Parse the compiler output and extract the necessary
6487 -# objects, libraries and library flags.
6488 -AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
6489 -dnl we can't use the lt_simple_compile_test_code here,
6490 -dnl because it contains code intended for an executable,
6491 -dnl not a library. It's possible we should let each
6492 -dnl tag define a new lt_????_link_test_code variable,
6493 -dnl but it's only used here...
6494 -ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
6496 -void foo (void) { a = 0; }
6498 -],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
6502 - Foo (void) { a = 0; }
6507 -],[$1],[F77],[cat > conftest.$ac_ext <<EOF
6515 -],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
6518 - public void bar (void) {
6524 -dnl Parse the compiler output and extract the necessary
6525 -dnl objects, libraries and library flags.
6526 -if AC_TRY_EVAL(ac_compile); then
6527 - # Parse the compiler output and extract the necessary
6528 - # objects, libraries and library flags.
6530 + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
6531 + lt_cv_file_magic_cmd=/usr/bin/file
6532 + lt_cv_file_magic_test_file=/usr/lib/libnls.so
6535 - # Sentinel used to keep track of whether or not we are before
6536 - # the conftest object file.
6537 - pre_test_object_deps_done=no
6539 + lt_cv_deplibs_check_method=pass_all
6542 - # The `*' in the case matches for architectures that use `case' in
6543 - # $output_verbose_cmd can trigger glob expansion during the loop
6544 - # eval without this substitution.
6545 - output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
6547 + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6548 + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
6550 + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
6554 - for p in `eval $output_verbose_link_cmd`; do
6556 +osf3* | osf4* | osf5*)
6557 + lt_cv_deplibs_check_method=pass_all
6561 - # Some compilers place space between "-{L,R}" and the path.
6562 - # Remove the space.
6563 - if test $p = "-L" \
6564 - || test $p = "-R"; then
6571 + lt_cv_deplibs_check_method=pass_all
6575 + lt_cv_deplibs_check_method=pass_all
6578 +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6579 + lt_cv_deplibs_check_method=pass_all
6583 + case $host_vendor in
6585 + 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]]'
6586 + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6589 + lt_cv_deplibs_check_method=pass_all
6592 + lt_cv_file_magic_cmd='/bin/file'
6593 + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
6596 + lt_cv_file_magic_cmd='/bin/file'
6597 + lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
6598 + lt_cv_file_magic_test_file=/lib/libc.so
6601 + lt_cv_deplibs_check_method=pass_all
6604 + lt_cv_deplibs_check_method=pass_all
6610 + lt_cv_deplibs_check_method=pass_all
6614 +file_magic_cmd=$lt_cv_file_magic_cmd
6615 +deplibs_check_method=$lt_cv_deplibs_check_method
6616 +test -z "$deplibs_check_method" && deplibs_check_method=unknown
6618 +_LT_DECL([], [deplibs_check_method], [1],
6619 + [Method to check whether dependent libraries are shared objects])
6620 +_LT_DECL([], [file_magic_cmd], [1],
6621 + [Command to use when deplibs_check_method == "file_magic"])
6622 +])# _LT_CHECK_MAGIC_METHOD
6627 +# find the pathname to a BSD- or MS-compatible name lister
6628 +AC_DEFUN([LT_PATH_NM],
6629 +[AC_REQUIRE([AC_PROG_CC])dnl
6630 +AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
6631 +[if test -n "$NM"; then
6632 + # Let the user override the test.
6633 + lt_cv_path_NM="$NM"
6635 + lt_nm_to_check="${ac_tool_prefix}nm"
6636 + if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6637 + lt_nm_to_check="$lt_nm_to_check nm"
6639 + for lt_tmp_nm in $lt_nm_to_check; do
6640 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6641 + for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6642 + IFS="$lt_save_ifs"
6643 + test -z "$ac_dir" && ac_dir=.
6644 + tmp_nm="$ac_dir/$lt_tmp_nm"
6645 + if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6646 + # Check to see if the nm accepts a BSD-compat flag.
6647 + # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6648 + # nm: unknown option "B" ignored
6649 + # Tru64's nm complains that /dev/null is an invalid object file
6650 + case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6651 + */dev/null* | *'Invalid file or object type'*)
6652 + lt_cv_path_NM="$tmp_nm -B"
6656 + case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6658 + lt_cv_path_NM="$tmp_nm -p"
6662 + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6663 + continue # so that we can try to find one that supports BSD flags
6670 + IFS="$lt_save_ifs"
6672 + : ${lt_cv_path_NM=no}
6674 +if test "$lt_cv_path_NM" != "no"; then
6675 + NM="$lt_cv_path_NM"
6677 + # Didn't find any BSD compatible name lister, look for dumpbin.
6678 + AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
6679 + AC_SUBST([DUMPBIN])
6680 + if test "$DUMPBIN" != ":"; then
6684 +test -z "$NM" && NM=nm
6686 +_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
6688 +AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
6689 + [lt_cv_nm_interface="BSD nm"
6690 + echo "int some_variable = 0;" > conftest.$ac_ext
6691 + (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
6692 + (eval "$ac_compile" 2>conftest.err)
6693 + cat conftest.err >&AS_MESSAGE_LOG_FD
6694 + (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
6695 + (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6696 + cat conftest.err >&AS_MESSAGE_LOG_FD
6697 + (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)
6698 + cat conftest.out >&AS_MESSAGE_LOG_FD
6699 + if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6700 + lt_cv_nm_interface="MS dumpbin"
6706 +AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
6707 +AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
6708 +dnl aclocal-1.4 backwards compatibility:
6709 +dnl AC_DEFUN([AM_PROG_NM], [])
6710 +dnl AC_DEFUN([AC_PROG_NM], [])
6715 +# check for math library
6716 +AC_DEFUN([LT_LIB_M],
6717 +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
6720 +*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
6721 + # These system don't have libm, or don't need it
6724 + AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
6725 + AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
6728 + AC_CHECK_LIB(m, cos, LIBM="-lm")
6735 +AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
6736 +dnl aclocal-1.4 backwards compatibility:
6737 +dnl AC_DEFUN([AC_CHECK_LIBM], [])
6740 +# _LT_COMPILER_NO_RTTI([TAGNAME])
6741 +# -------------------------------
6742 +m4_defun([_LT_COMPILER_NO_RTTI],
6743 +[m4_require([_LT_TAG_COMPILER])dnl
6745 +_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
6747 +if test "$GCC" = yes; then
6748 + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
6750 + _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
6751 + lt_cv_prog_compiler_rtti_exceptions,
6752 + [-fno-rtti -fno-exceptions], [],
6753 + [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
6755 +_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
6756 + [Compiler flag to turn off builtin functions])
6757 +])# _LT_COMPILER_NO_RTTI
6760 +# _LT_CMD_GLOBAL_SYMBOLS
6761 +# ----------------------
6762 +m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
6763 +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
6764 +AC_REQUIRE([AC_PROG_CC])dnl
6765 +AC_REQUIRE([LT_PATH_NM])dnl
6766 +AC_REQUIRE([LT_PATH_LD])dnl
6767 +m4_require([_LT_DECL_SED])dnl
6768 +m4_require([_LT_DECL_EGREP])dnl
6769 +m4_require([_LT_TAG_COMPILER])dnl
6771 +# Check for command to grab the raw symbol name followed by C symbol from nm.
6772 +AC_MSG_CHECKING([command to parse $NM output from $compiler object])
6773 +AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
6775 +# These are sane defaults that work on at least a few old systems.
6776 +# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6778 +# Character class describing NM global symbol codes.
6779 +symcode='[[BCDEGRST]]'
6781 +# Regexp to match symbols that can be accessed directly from C.
6782 +sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
6784 +# Define system-specific variables.
6787 + symcode='[[BCDT]]'
6789 +cygwin* | mingw* | pw32*)
6790 + symcode='[[ABCDGISTW]]'
6793 + if test "$host_cpu" = ia64; then
6794 + symcode='[[ABCDEGRST]]'
6797 +irix* | nonstopux*)
6798 + symcode='[[BCDEGRST]]'
6801 + symcode='[[BCDEGQRST]]'
6804 + symcode='[[BDRT]]'
6812 +sysv5* | sco5v6* | unixware* | OpenUNIX*)
6813 + symcode='[[ABDT]]'
6816 + symcode='[[DFNSTU]]'
6820 +# If we're using GNU nm, then use its standard symbol codes.
6821 +case `$NM -V 2>&1` in
6822 +*GNU* | *'with BFD'*)
6823 + symcode='[[ABCDGIRSTW]]' ;;
6826 +# Transform an extracted symbol line into a proper C declaration.
6827 +# Some systems (esp. on ia64) link data and code symbols differently,
6828 +# so use this general approach.
6829 +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6831 +# Transform an extracted symbol line into symbol name and symbol address
6832 +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
6833 +lt_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'"
6835 +# Handle CRLF in mingw tool chain
6839 + opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6843 +# Try without a prefix underscore, then with it.
6844 +for ac_symprfx in "" "_"; do
6846 + # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6847 + symxfrm="\\1 $ac_symprfx\\2 \\2"
6849 + # Write the raw and C identifiers.
6850 + if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6851 + # Fake it for dumpbin and say T for any non-static function
6852 + # and D for any global variable.
6853 + # Also find C++ and __fastcall symbols from MSVC++,
6854 + # which start with @ or ?.
6855 + lt_cv_sys_global_symbol_pipe="$AWK ['"\
6856 +" {last_section=section; section=\$ 3};"\
6857 +" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6858 +" \$ 0!~/External *\|/{next};"\
6859 +" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6860 +" {if(hide[section]) next};"\
6861 +" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6862 +" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6863 +" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6864 +" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6865 +" ' prfx=^$ac_symprfx]"
6867 + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6870 + # Check to see that the pipe works correctly.
6874 + cat > conftest.$ac_ext <<_LT_EOF
6879 +void nm_test_func(void);
6880 +void nm_test_func(void){}
6884 +int main(){nm_test_var='a';nm_test_func();return(0);}
6887 + if AC_TRY_EVAL(ac_compile); then
6888 + # Now try to grab the symbols.
6890 + if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
6891 + # Try sorting and uniquifying the output.
6892 + if sort "$nlist" | uniq > "$nlist"T; then
6893 + mv -f "$nlist"T "$nlist"
6898 + # Make sure that we snagged all the symbols we need.
6899 + if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6900 + if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6901 + cat <<_LT_EOF > conftest.$ac_ext
6907 + # Now generate the symbol file.
6908 + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6910 + cat <<_LT_EOF >> conftest.$ac_ext
6912 +/* The mapping between symbol names and symbols. */
6917 +lt__PROGRAM__LTX_preloaded_symbols[[]] =
6919 + { "@PROGRAM@", (void *) 0 },
6921 + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6922 + cat <<\_LT_EOF >> conftest.$ac_ext
6926 +/* This works around a problem in FreeBSD linker */
6927 +#ifdef FREEBSD_WORKAROUND
6928 +static const void *lt_preloaded_setup() {
6929 + return lt__PROGRAM__LTX_preloaded_symbols;
6937 + # Now try linking the two files.
6938 + mv conftest.$ac_objext conftstm.$ac_objext
6939 + lt_save_LIBS="$LIBS"
6940 + lt_save_CFLAGS="$CFLAGS"
6941 + LIBS="conftstm.$ac_objext"
6942 + CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
6943 + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
6946 + LIBS="$lt_save_LIBS"
6947 + CFLAGS="$lt_save_CFLAGS"
6949 + echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
6952 + echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
6955 + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
6958 + echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
6959 + cat conftest.$ac_ext >&5
6961 + rm -rf conftest* conftst*
6963 - if test "$pre_test_object_deps_done" = no; then
6966 - # Internal compiler library paths should come after those
6967 - # provided the user. The postdeps already come after the
6968 - # user supplied libs so there is no need to process them.
6969 - if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
6970 - _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
6972 - _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
6975 - # The "-l" case would never come before the object being
6976 - # linked, so don't bother handling this case.
6979 - if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
6980 - _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
6982 - _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
6986 + # Do not use the global_symbol_pipe unless it works.
6987 + if test "$pipe_works" = yes; then
6990 + lt_cv_sys_global_symbol_pipe=
6994 +if test -z "$lt_cv_sys_global_symbol_pipe"; then
6995 + lt_cv_sys_global_symbol_to_cdecl=
6997 +if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6998 + AC_MSG_RESULT(failed)
7004 - # This assumes that the test object file only shows up
7005 - # once in the compiler output.
7006 - if test "$p" = "conftest.$objext"; then
7007 - pre_test_object_deps_done=yes
7010 +_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
7011 + [Take the output of nm and produce a listing of raw symbols and C names])
7012 +_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
7013 + [Transform the output of nm in a proper C declaration])
7014 +_LT_DECL([global_symbol_to_c_name_address],
7015 + [lt_cv_sys_global_symbol_to_c_name_address], [1],
7016 + [Transform the output of nm in a C name address pair])
7017 +_LT_DECL([global_symbol_to_c_name_address_lib_prefix],
7018 + [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
7019 + [Transform the output of nm in a C name address pair when lib prefix is needed])
7020 +]) # _LT_CMD_GLOBAL_SYMBOLS
7022 - if test "$pre_test_object_deps_done" = no; then
7023 - if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
7024 - _LT_AC_TAGVAR(predep_objects, $1)="$p"
7026 - _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
7029 - if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
7030 - _LT_AC_TAGVAR(postdep_objects, $1)="$p"
7032 - _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
7037 - *) ;; # Ignore the rest.
7038 +# _LT_COMPILER_PIC([TAGNAME])
7039 +# ---------------------------
7040 +m4_defun([_LT_COMPILER_PIC],
7041 +[m4_require([_LT_TAG_COMPILER])dnl
7042 +_LT_TAGVAR(lt_prog_compiler_wl, $1)=
7043 +_LT_TAGVAR(lt_prog_compiler_pic, $1)=
7044 +_LT_TAGVAR(lt_prog_compiler_static, $1)=
7046 +AC_MSG_CHECKING([for $compiler option to produce PIC])
7047 +m4_if([$1], [CXX], [
7048 + # C++ specific cases for pic, static, wl, etc.
7049 + if test "$GXX" = yes; then
7050 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7051 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
7055 + # All AIX code is PIC.
7056 + if test "$host_cpu" = ia64; then
7057 + # AIX 5 now supports IA64 processor
7058 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7065 + # see comment about AmigaOS4 .so support
7066 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
7069 + # FIXME: we need at least 68020 code to build shared libraries, but
7070 + # adding the `-m68020' flag to GCC prevents building anything better,
7072 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
7077 + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7078 + # PIC is the default for these OSes.
7080 + mingw* | cygwin* | os2* | pw32*)
7081 + # This hack is so that the source file can tell whether it is being
7082 + # built for inclusion in a dll (and should export symbols for example).
7083 + # Although the cygwin gcc ignores -fPIC, still need this for old-style
7084 + # (--disable-auto-import) libraries
7085 + m4_if([$1], [GCJ], [],
7086 + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
7088 + darwin* | rhapsody*)
7089 + # PIC is the default on this platform
7090 + # Common symbols not allowed in MH_DYLIB files
7091 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
7094 + # DJGPP does not support shared libraries at all
7095 + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
7098 + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7099 + # Instead, we relocate shared libraries at runtime.
7102 + if test -d /usr/nec; then
7103 + _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
7107 + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7108 + # not for PA HP-UX.
7113 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
7118 + # QNX uses GNU C++, but need to define -shared option too, otherwise
7119 + # it will coredump.
7120 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
7123 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
7129 + # All AIX code is PIC.
7130 + if test "$host_cpu" = ia64; then
7131 + # AIX 5 now supports IA64 processor
7132 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7134 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
7138 + case $cc_basename in
7140 + # Green Hills C++ Compiler
7141 + # _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"
7146 + case $cc_basename in
7148 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
7151 + # Green Hills C++ Compiler
7152 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
7158 + freebsd* | dragonfly*)
7159 + # FreeBSD uses GNU C++
7161 + hpux9* | hpux10* | hpux11*)
7162 + case $cc_basename in
7164 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7165 + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
7166 + if test "$host_cpu" != ia64; then
7167 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
7171 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7172 + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
7178 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
7187 + # This is c89, which is MS Visual C++ (no shared libs)
7188 + # Anyone wants to do a port?
7190 + irix5* | irix6* | nonstopux*)
7191 + case $cc_basename in
7193 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7194 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
7195 + # CC pic flag -KPIC is the default.
7201 + linux* | k*bsd*-gnu)
7202 + case $cc_basename in
7204 + # KAI C++ Compiler
7205 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
7206 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
7210 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7211 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
7212 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
7215 + # Portland Group C++ compiler
7216 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7217 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
7218 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7222 + # Make sure the PIC flag is empty. It appears that all Alpha
7223 + # Linux and Compaq Tru64 Unix objects are PIC.
7224 + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
7225 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
7228 + # IBM XL 8.0 on PPC
7229 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7230 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
7231 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
7234 + case `$CC -V 2>&1 | sed 5q` in
7237 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
7238 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7239 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
7250 + case $cc_basename in
7252 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
7261 + # QNX uses GNU C++, but need to define -shared option too, otherwise
7262 + # it will coredump.
7263 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
7265 + osf3* | osf4* | osf5*)
7266 + case $cc_basename in
7268 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
7271 + # Rational C++ 2.4.1
7272 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
7275 + # Digital/Compaq C++
7276 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7277 + # Make sure the PIC flag is empty. It appears that all Alpha
7278 + # Linux and Compaq Tru64 Unix objects are PIC.
7279 + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
7280 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
7289 + case $cc_basename in
7291 + # Sun C++ 4.2, 5.x and Centerline C++
7292 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
7293 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7294 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
7297 + # Green Hills C++ Compiler
7298 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
7305 + case $cc_basename in
7308 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
7309 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7313 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
7319 + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7320 + case $cc_basename in
7322 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7323 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
7324 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7329 + case $cc_basename in
7331 + # NonStop-UX NCC 3.20
7332 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
7341 + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
7349 - echo "libtool.m4: error: problem compiling $1 test program"
7352 -$rm -f confest.$objext
7354 -# PORTME: override above test on systems where it is broken
7358 - # Interix 3.5 installs completely hosed .la files for C++, so rather than
7359 - # hack all around it, let's just trust "g++" to DTRT.
7360 - _LT_AC_TAGVAR(predep_objects,$1)=
7361 - _LT_AC_TAGVAR(postdep_objects,$1)=
7362 - _LT_AC_TAGVAR(postdeps,$1)=
7366 - case `$CC -V 2>&1 | sed 5q` in
7369 - _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
7375 - case $cc_basename in
7377 - # Adding this requires a known-good setup of shared libraries for
7378 - # Sun compiler versions before 5.6, else PIC objects from an old
7379 - # archive will be linked into the output, leading to subtle bugs.
7380 - _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
7387 -case " $_LT_AC_TAGVAR(postdeps, $1) " in
7388 -*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
7390 -])# AC_LIBTOOL_POSTDEP_PREDEP
7392 -# AC_LIBTOOL_LANG_F77_CONFIG
7393 -# --------------------------
7394 -# Ensure that the configuration vars for the C compiler are
7395 -# suitably defined. Those variables are subsequently used by
7396 -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
7397 -AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
7398 -AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
7399 -[AC_REQUIRE([AC_PROG_F77])
7400 -AC_LANG_PUSH(Fortran 77)
7402 -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
7403 -_LT_AC_TAGVAR(allow_undefined_flag, $1)=
7404 -_LT_AC_TAGVAR(always_export_symbols, $1)=no
7405 -_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
7406 -_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
7407 -_LT_AC_TAGVAR(hardcode_direct, $1)=no
7408 -_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
7409 -_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
7410 -_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
7411 -_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
7412 -_LT_AC_TAGVAR(hardcode_automatic, $1)=no
7413 -_LT_AC_TAGVAR(module_cmds, $1)=
7414 -_LT_AC_TAGVAR(module_expsym_cmds, $1)=
7415 -_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
7416 -_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7417 -_LT_AC_TAGVAR(no_undefined_flag, $1)=
7418 -_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
7419 -_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7421 -# Source file extension for f77 test sources.
7424 -# Object file extension for compiled f77 test sources.
7426 -_LT_AC_TAGVAR(objext, $1)=$objext
7428 -# Code to be used in simple compile tests
7429 -lt_simple_compile_test_code=" subroutine t\n return\n end\n"
7431 -# Code to be used in simple link tests
7432 -lt_simple_link_test_code=" program t\n end\n"
7434 -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
7435 -_LT_AC_SYS_COMPILER
7437 -# save warnings/boilerplate of simple test code
7438 -_LT_COMPILER_BOILERPLATE
7439 -_LT_LINKER_BOILERPLATE
7441 -# Allow CC to be a program name with arguments.
7445 -_LT_AC_TAGVAR(compiler, $1)=$CC
7446 -_LT_CC_BASENAME([$compiler])
7448 -AC_MSG_CHECKING([if libtool supports shared libraries])
7449 -AC_MSG_RESULT([$can_build_shared])
7451 -AC_MSG_CHECKING([whether to build shared libraries])
7452 -test "$can_build_shared" = "no" && enable_shared=no
7454 -# On AIX, shared libraries and static libraries use the same namespace, and
7455 -# are all built from PIC.
7458 - test "$enable_shared" = yes && enable_static=no
7459 - if test -n "$RANLIB"; then
7460 - archive_cmds="$archive_cmds~\$RANLIB \$lib"
7461 - postinstall_cmds='$RANLIB $lib'
7465 - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7466 - test "$enable_shared" = yes && enable_static=no
7470 -AC_MSG_RESULT([$enable_shared])
7472 -AC_MSG_CHECKING([whether to build static libraries])
7473 -# Make sure either enable_shared or enable_static is yes.
7474 -test "$enable_shared" = yes || enable_static=yes
7475 -AC_MSG_RESULT([$enable_static])
7477 -_LT_AC_TAGVAR(GCC, $1)="$G77"
7478 -_LT_AC_TAGVAR(LD, $1)="$LD"
7480 -AC_LIBTOOL_PROG_COMPILER_PIC($1)
7481 -AC_LIBTOOL_PROG_CC_C_O($1)
7482 -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
7483 -AC_LIBTOOL_PROG_LD_SHLIBS($1)
7484 -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
7485 -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
7487 -AC_LIBTOOL_CONFIG($1)
7491 -])# AC_LIBTOOL_LANG_F77_CONFIG
7494 -# AC_LIBTOOL_LANG_GCJ_CONFIG
7495 -# --------------------------
7496 -# Ensure that the configuration vars for the C compiler are
7497 -# suitably defined. Those variables are subsequently used by
7498 -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
7499 -AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
7500 -AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
7503 -# Source file extension for Java test sources.
7507 + if test "$GCC" = yes; then
7508 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7509 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
7511 -# Object file extension for compiled Java test sources.
7513 -_LT_AC_TAGVAR(objext, $1)=$objext
7516 + # All AIX code is PIC.
7517 + if test "$host_cpu" = ia64; then
7518 + # AIX 5 now supports IA64 processor
7519 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7523 -# Code to be used in simple compile tests
7524 -lt_simple_compile_test_code="class foo {}\n"
7528 + # see comment about AmigaOS4 .so support
7529 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
7532 + # FIXME: we need at least 68020 code to build shared libraries, but
7533 + # adding the `-m68020' flag to GCC prevents building anything better,
7535 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
7540 -# Code to be used in simple link tests
7541 -lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n'
7542 + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7543 + # PIC is the default for these OSes.
7546 -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
7547 -_LT_AC_SYS_COMPILER
7548 + mingw* | cygwin* | pw32* | os2*)
7549 + # This hack is so that the source file can tell whether it is being
7550 + # built for inclusion in a dll (and should export symbols for example).
7551 + # Although the cygwin gcc ignores -fPIC, still need this for old-style
7552 + # (--disable-auto-import) libraries
7553 + m4_if([$1], [GCJ], [],
7554 + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
7557 -# save warnings/boilerplate of simple test code
7558 -_LT_COMPILER_BOILERPLATE
7559 -_LT_LINKER_BOILERPLATE
7560 + darwin* | rhapsody*)
7561 + # PIC is the default on this platform
7562 + # Common symbols not allowed in MH_DYLIB files
7563 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
7566 -# Allow CC to be a program name with arguments.
7570 -_LT_AC_TAGVAR(compiler, $1)=$CC
7571 -_LT_CC_BASENAME([$compiler])
7573 + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7574 + # not for PA HP-UX.
7580 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
7585 -# GCJ did not exist at the time GCC didn't implicitly link libc in.
7586 -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
7588 + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7589 + # Instead, we relocate shared libraries at runtime.
7592 -_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7594 + # Just because we use GCC doesn't mean we suddenly get shared libraries
7595 + # on systems that don't support them.
7596 + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
7601 -## There is no encapsulation within the following macros, do not change
7602 -## the running order or otherwise move them around unless you know exactly
7603 -## what you are doing...
7604 -AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
7605 -AC_LIBTOOL_PROG_COMPILER_PIC($1)
7606 -AC_LIBTOOL_PROG_CC_C_O($1)
7607 -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
7608 -AC_LIBTOOL_PROG_LD_SHLIBS($1)
7609 -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
7610 -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
7612 + # QNX uses GNU C++, but need to define -shared option too, otherwise
7613 + # it will coredump.
7614 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
7617 -AC_LIBTOOL_CONFIG($1)
7619 + if test -d /usr/nec; then
7620 + _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
7626 -])# AC_LIBTOOL_LANG_GCJ_CONFIG
7628 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
7632 + # PORTME Check for flag to pass linker flags through the system compiler.
7635 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7636 + if test "$host_cpu" = ia64; then
7637 + # AIX 5 now supports IA64 processor
7638 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7640 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
7644 + mingw* | cygwin* | pw32* | os2*)
7645 + # This hack is so that the source file can tell whether it is being
7646 + # built for inclusion in a dll (and should export symbols for example).
7647 + m4_if([$1], [GCJ], [],
7648 + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
7651 -# AC_LIBTOOL_LANG_RC_CONFIG
7652 -# -------------------------
7653 -# Ensure that the configuration vars for the Windows resource compiler are
7654 -# suitably defined. Those variables are subsequently used by
7655 -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
7656 -AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
7657 -AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
7659 + hpux9* | hpux10* | hpux11*)
7660 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7661 + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7662 + # not for PA HP-UX.
7668 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
7671 + # Is there a better lt_prog_compiler_static that works with the bundled CC?
7672 + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
7675 -# Source file extension for RC test sources.
7677 + irix5* | irix6* | nonstopux*)
7678 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7679 + # PIC (with -KPIC) is the default.
7680 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
7683 -# Object file extension for compiled RC test sources.
7685 -_LT_AC_TAGVAR(objext, $1)=$objext
7686 + linux* | k*bsd*-gnu)
7687 + case $cc_basename in
7688 + icc* | ecc* | ifort*)
7689 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7690 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
7691 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
7693 + pgcc* | pgf77* | pgf90* | pgf95*)
7694 + # Portland Group compilers (*not* the Pentium gcc compiler,
7695 + # which looks to be a dead project)
7696 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7697 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
7698 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7701 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7702 + # All Alpha code is PIC.
7703 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
7706 + # IBM XL C 8.0/Fortran 10.1 on PPC
7707 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7708 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
7709 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
7712 + case `$CC -V 2>&1 | sed 5q` in
7715 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
7716 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7717 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7720 + # Sun Fortran 8.3 passes all unrecognized flags to the linker
7721 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
7722 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7723 + _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
7730 -# Code to be used in simple compile tests
7731 -lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
7733 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
7734 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7737 -# Code to be used in simple link tests
7738 -lt_simple_link_test_code="$lt_simple_compile_test_code"
7740 + # QNX uses GNU C++, but need to define -shared option too, otherwise
7741 + # it will coredump.
7742 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
7745 -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
7746 -_LT_AC_SYS_COMPILER
7747 + osf3* | osf4* | osf5*)
7748 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7749 + # All OSF/1 code is PIC.
7750 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
7753 -# save warnings/boilerplate of simple test code
7754 -_LT_COMPILER_BOILERPLATE
7755 -_LT_LINKER_BOILERPLATE
7757 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
7760 -# Allow CC to be a program name with arguments.
7764 -_LT_AC_TAGVAR(compiler, $1)=$CC
7765 -_LT_CC_BASENAME([$compiler])
7766 -_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
7768 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
7769 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7770 + case $cc_basename in
7771 + f77* | f90* | f95*)
7772 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
7774 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
7778 -AC_LIBTOOL_CONFIG($1)
7780 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
7781 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
7782 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7787 -])# AC_LIBTOOL_LANG_RC_CONFIG
7788 + sysv4 | sysv4.2uw2* | sysv4.3*)
7789 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7790 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
7791 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7795 + if test -d /usr/nec ;then
7796 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
7797 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7801 + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7802 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7803 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
7804 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7807 -# AC_LIBTOOL_CONFIG([TAGNAME])
7808 -# ----------------------------
7809 -# If TAGNAME is not passed, then create an initial libtool script
7810 -# with a default configuration from the untagged config vars. Otherwise
7811 -# add code to config.status for appending the configuration named by
7812 -# TAGNAME from the matching tagged config vars.
7813 -AC_DEFUN([AC_LIBTOOL_CONFIG],
7814 -[# The else clause should only fire when bootstrapping the
7815 -# libtool distribution, otherwise you forgot to ship ltmain.sh
7816 -# with your package, and you will get complaints that there are
7817 -# no rules to generate ltmain.sh.
7818 -if test -f "$ltmain"; then
7819 - # See if we are running on zsh, and set the options which allow our commands through
7820 - # without removal of \ escapes.
7821 - if test -n "${ZSH_VERSION+set}" ; then
7822 - setopt NO_GLOB_SUBST
7824 - # Now quote all the things that may contain metacharacters while being
7825 - # careful not to overquote the AC_SUBSTed values. We take copies of the
7826 - # variables and quote the copies for generation of the libtool script.
7827 - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
7829 - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
7830 - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
7831 - deplibs_check_method reload_flag reload_cmds need_locks \
7832 - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
7833 - lt_cv_sys_global_symbol_to_c_name_address \
7834 - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7835 - old_postinstall_cmds old_postuninstall_cmds \
7836 - _LT_AC_TAGVAR(compiler, $1) \
7837 - _LT_AC_TAGVAR(CC, $1) \
7838 - _LT_AC_TAGVAR(LD, $1) \
7839 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
7840 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
7841 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
7842 - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
7843 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
7844 - _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
7845 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
7846 - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
7847 - _LT_AC_TAGVAR(old_archive_cmds, $1) \
7848 - _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
7849 - _LT_AC_TAGVAR(predep_objects, $1) \
7850 - _LT_AC_TAGVAR(postdep_objects, $1) \
7851 - _LT_AC_TAGVAR(predeps, $1) \
7852 - _LT_AC_TAGVAR(postdeps, $1) \
7853 - _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
7854 - _LT_AC_TAGVAR(archive_cmds, $1) \
7855 - _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
7856 - _LT_AC_TAGVAR(postinstall_cmds, $1) \
7857 - _LT_AC_TAGVAR(postuninstall_cmds, $1) \
7858 - _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
7859 - _LT_AC_TAGVAR(allow_undefined_flag, $1) \
7860 - _LT_AC_TAGVAR(no_undefined_flag, $1) \
7861 - _LT_AC_TAGVAR(export_symbols_cmds, $1) \
7862 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
7863 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
7864 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
7865 - _LT_AC_TAGVAR(hardcode_automatic, $1) \
7866 - _LT_AC_TAGVAR(module_cmds, $1) \
7867 - _LT_AC_TAGVAR(module_expsym_cmds, $1) \
7868 - _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
7869 - _LT_AC_TAGVAR(exclude_expsyms, $1) \
7870 - _LT_AC_TAGVAR(include_expsyms, $1); do
7873 - _LT_AC_TAGVAR(old_archive_cmds, $1) | \
7874 - _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
7875 - _LT_AC_TAGVAR(archive_cmds, $1) | \
7876 - _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
7877 - _LT_AC_TAGVAR(module_cmds, $1) | \
7878 - _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
7879 - _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
7880 - _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
7881 - extract_expsyms_cmds | reload_cmds | finish_cmds | \
7882 - postinstall_cmds | postuninstall_cmds | \
7883 - old_postinstall_cmds | old_postuninstall_cmds | \
7884 - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7885 - # Double-quote double-evaled strings.
7886 - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7888 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7889 + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
7893 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
7894 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7898 - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7899 + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
7905 - *'\[$]0 --fallback-echo"')
7906 - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
7910 + # For platforms which do not support PIC, -DPIC is meaningless:
7912 + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
7917 - [cfgfile="${ofile}T"
7918 - trap "$rm \"$cfgfile\"; exit 1" 1 2 15
7920 - AC_MSG_NOTICE([creating $ofile])],
7921 - [cfgfile="$ofile"])
7923 - cat <<__EOF__ >> "$cfgfile"
7927 + _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
7930 +AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
7931 +_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
7932 + [How to pass a linker flag through the compiler])
7934 -# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7935 -# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7936 -# NOTE: Changes made to this file will be lost: look at ltmain.sh.
7938 -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
7939 -# Free Software Foundation, Inc.
7941 -# This file is part of GNU Libtool:
7942 -# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7944 -# This program is free software; you can redistribute it and/or modify
7945 -# it under the terms of the GNU General Public License as published by
7946 -# the Free Software Foundation; either version 2 of the License, or
7947 -# (at your option) any later version.
7948 +# Check to make sure the PIC flag actually works.
7950 -# This program is distributed in the hope that it will be useful, but
7951 -# WITHOUT ANY WARRANTY; without even the implied warranty of
7952 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7953 -# General Public License for more details.
7954 +if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
7955 + _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
7956 + [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
7957 + [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
7958 + [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
7960 + *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
7962 + [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
7963 + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
7965 +_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
7966 + [Additional compiler flags for building library objects])
7969 -# You should have received a copy of the GNU General Public License
7970 -# along with this program; if not, write to the Free Software
7971 -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
7972 +# Check to make sure the static flag actually works.
7974 -# As a special exception to the GNU General Public License, if you
7975 -# distribute this file as part of a program that contains a
7976 -# configuration script generated by Autoconf, you may include it under
7977 -# the same distribution terms that you use for the rest of that program.
7979 -# A sed program that does not truncate output.
7982 -# Sed that helps us avoid accidentally triggering echo(1) options like -n.
7983 -Xsed="$SED -e 1s/^X//"
7985 -# The HP-UX ksh and POSIX shell print the target directory to stdout
7986 -# if CDPATH is set.
7987 -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7989 -# The names of the tagged configurations supported by this script.
7992 -# ### BEGIN LIBTOOL CONFIG],
7993 -[# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
7995 -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7997 -# Shell to use when invoking shell scripts.
8000 -# Whether or not to build shared libraries.
8001 -build_libtool_libs=$enable_shared
8003 -# Whether or not to build static libraries.
8004 -build_old_libs=$enable_static
8006 -# Whether or not to add -lc for building shared libraries.
8007 -build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
8009 -# Whether or not to disallow shared libs when runtime libs are static
8010 -allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
8012 -# Whether or not to optimize for fast installation.
8013 -fast_install=$enable_fast_install
8016 -host_alias=$host_alias
8019 +wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
8020 +_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
8021 + _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
8022 + $lt_tmp_static_flag,
8024 + [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
8025 +_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
8026 + [Compiler flag to prevent dynamic linking])
8027 +])# _LT_COMPILER_PIC
8029 -# The build system.
8030 -build_alias=$build_alias
8034 -# An echo program that does not interpret backslashes.
8036 +# _LT_LINKER_SHLIBS([TAGNAME])
8037 +# ----------------------------
8038 +# See if the linker supports building shared libraries.
8039 +m4_defun([_LT_LINKER_SHLIBS],
8040 +[AC_REQUIRE([LT_PATH_LD])dnl
8041 +AC_REQUIRE([LT_PATH_NM])dnl
8042 +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
8043 +m4_require([_LT_DECL_EGREP])dnl
8044 +m4_require([_LT_DECL_SED])dnl
8045 +m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
8046 +m4_require([_LT_TAG_COMPILER])dnl
8047 +AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
8048 +m4_if([$1], [CXX], [
8049 + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8052 + # If we're using GNU nm, then we don't want the "-C" option.
8053 + # -C means demangle to AIX nm, but means don't demangle with GNU nm
8054 + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8055 + _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'
8057 + _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'
8061 + _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
8064 + _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'
8067 + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8070 + _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
8073 + _LT_TAGVAR(allow_undefined_flag, $1)=
8074 + _LT_TAGVAR(always_export_symbols, $1)=no
8075 + _LT_TAGVAR(archive_cmds, $1)=
8076 + _LT_TAGVAR(archive_expsym_cmds, $1)=
8077 + _LT_TAGVAR(compiler_needs_object, $1)=no
8078 + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
8079 + _LT_TAGVAR(export_dynamic_flag_spec, $1)=
8080 + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8081 + _LT_TAGVAR(hardcode_automatic, $1)=no
8082 + _LT_TAGVAR(hardcode_direct, $1)=no
8083 + _LT_TAGVAR(hardcode_direct_absolute, $1)=no
8084 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
8085 + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
8086 + _LT_TAGVAR(hardcode_libdir_separator, $1)=
8087 + _LT_TAGVAR(hardcode_minus_L, $1)=no
8088 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
8089 + _LT_TAGVAR(inherit_rpath, $1)=no
8090 + _LT_TAGVAR(link_all_deplibs, $1)=unknown
8091 + _LT_TAGVAR(module_cmds, $1)=
8092 + _LT_TAGVAR(module_expsym_cmds, $1)=
8093 + _LT_TAGVAR(old_archive_from_new_cmds, $1)=
8094 + _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
8095 + _LT_TAGVAR(thread_safe_flag_spec, $1)=
8096 + _LT_TAGVAR(whole_archive_flag_spec, $1)=
8097 + # include_expsyms should be a list of space-separated symbols to be *always*
8098 + # included in the symbol list
8099 + _LT_TAGVAR(include_expsyms, $1)=
8100 + # exclude_expsyms can be an extended regexp of symbols to exclude
8101 + # it will be wrapped by ` (' and `)$', so one must not match beginning or
8102 + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8103 + # as well as any symbol that contains `d'.
8104 + _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
8105 + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8106 + # platforms (ab)use it in PIC code, but their linkers get confused if
8107 + # the symbol is explicitly referenced. Since portable code cannot
8108 + # rely on this symbol name, it's probably fine to never include it in
8109 + # preloaded symbol tables.
8110 + # Exclude shared library initialization/finalization symbols.
8111 +dnl Note also adjust exclude_expsyms for C++ above.
8112 + extract_expsyms_cmds=
8116 -AR_FLAGS=$lt_AR_FLAGS
8118 + cygwin* | mingw* | pw32*)
8119 + # FIXME: the MSVC++ port hasn't been tested in a loooong time
8120 + # When not using gcc, we currently assume that we are using
8121 + # Microsoft Visual C++.
8122 + if test "$GCC" != yes; then
8127 + # we just hope/assume this is gcc and not c89 (= MSVC++)
8137 + _LT_TAGVAR(ld_shlibs, $1)=yes
8138 + if test "$with_gnu_ld" = yes; then
8139 + # If archive_cmds runs LD, not CC, wlarc should be empty
8142 -# LTCC compiler flags.
8143 -LTCFLAGS=$lt_LTCFLAGS
8144 + # Set some defaults for GNU ld with shared library support. These
8145 + # are reset later if shared libraries are not supported. Putting them
8146 + # here allows them to be overridden if necessary.
8147 + runpath_var=LD_RUN_PATH
8148 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
8149 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
8150 + # ancient GNU ld didn't support --whole-archive et. al.
8151 + if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8152 + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8154 + _LT_TAGVAR(whole_archive_flag_spec, $1)=
8156 + supports_anon_versioning=no
8157 + case `$LD -v 2>&1` in
8158 + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
8159 + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8160 + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8161 + *\ 2.11.*) ;; # other 2.11 versions
8162 + *) supports_anon_versioning=yes ;;
8165 -# A language-specific compiler.
8166 -CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
8167 + # See if GNU ld supports shared libraries.
8170 + # On AIX/PPC, the GNU linker is very broken
8171 + if test "$host_cpu" != ia64; then
8172 + _LT_TAGVAR(ld_shlibs, $1)=no
8173 + cat <<_LT_EOF 1>&2
8175 -# Is the compiler the GNU C compiler?
8176 -with_gcc=$_LT_AC_TAGVAR(GCC, $1)
8177 +*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8178 +*** to be unable to reliably create shared libraries on AIX.
8179 +*** Therefore, libtool is disabling shared libraries support. If you
8180 +*** really care for shared libraries, you may want to modify your PATH
8181 +*** so that a non-GNU linker is found, and then restart.
8189 -# The linker used to build libraries.
8190 -LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
8194 + # see comment about AmigaOS4 .so support
8195 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8196 + _LT_TAGVAR(archive_expsym_cmds, $1)=''
8199 + _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)'
8200 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
8201 + _LT_TAGVAR(hardcode_minus_L, $1)=yes
8206 -# Whether we need hard or soft links.
8209 + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8210 + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
8211 + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8212 + # support --undefined. This deserves some investigation. FIXME
8213 + _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8215 + _LT_TAGVAR(ld_shlibs, $1)=no
8219 -# A BSD-compatible nm program.
8221 + cygwin* | mingw* | pw32*)
8222 + # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
8223 + # as there is no search path for DLLs.
8224 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
8225 + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
8226 + _LT_TAGVAR(always_export_symbols, $1)=no
8227 + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
8228 + _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'
8230 -# A symbol stripping program
8232 + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8233 + _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'
8234 + # If the export-symbols file already is a .def file (1st line
8235 + # is EXPORTS), use it as is; otherwise, prepend...
8236 + _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8237 + cp $export_symbols $output_objdir/$soname.def;
8239 + echo EXPORTS > $output_objdir/$soname.def;
8240 + cat $export_symbols >> $output_objdir/$soname.def;
8242 + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8244 + _LT_TAGVAR(ld_shlibs, $1)=no
8248 -# Used to examine libraries when file_magic_cmd begins "file"
8249 -MAGIC_CMD=$MAGIC_CMD
8251 + _LT_TAGVAR(hardcode_direct, $1)=no
8252 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8253 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
8254 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
8255 + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8256 + # Instead, shared libraries are loaded at an image base (0x10000000 by
8257 + # default) and relocated if they conflict, which is a slow very memory
8258 + # consuming and fragmenting process. To avoid this, we pick a random,
8259 + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8260 + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8261 + _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'
8262 + _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'
8265 -# Used on cygwin: DLL creation program.
8267 + gnu* | linux* | tpf* | k*bsd*-gnu)
8269 + if test "$host_os" = linux-dietlibc; then
8270 + case $cc_basename in
8271 + diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8274 + if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8275 + && test "$tmp_diet" = no
8278 + tmp_sharedflag='-shared'
8279 + case $cc_basename,$host_cpu in
8280 + pgcc*) # Portland Group C compiler
8281 + _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'
8282 + tmp_addflag=' $pic_flag'
8284 + pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8285 + _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'
8286 + tmp_addflag=' $pic_flag -Mnomain' ;;
8287 + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8288 + tmp_addflag=' -i_dynamic' ;;
8289 + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8290 + tmp_addflag=' -i_dynamic -nofor_main' ;;
8291 + ifc* | ifort*) # Intel Fortran compiler
8292 + tmp_addflag=' -nofor_main' ;;
8293 + xl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8294 + tmp_sharedflag='-qmkshrobj'
8297 + case `$CC -V 2>&1 | sed 5q` in
8298 + *Sun\ C*) # Sun C 5.9
8299 + _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'
8300 + _LT_TAGVAR(compiler_needs_object, $1)=yes
8301 + tmp_sharedflag='-G' ;;
8302 + *Sun\ F*) # Sun Fortran 8.3
8303 + tmp_sharedflag='-G' ;;
8305 + _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8307 -# Used on cygwin: object dumper.
8309 + if test "x$supports_anon_versioning" = xyes; then
8310 + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
8311 + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8312 + echo "local: *; };" >> $output_objdir/$libname.ver~
8313 + $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8316 -# Used on cygwin: assembler.
8318 + case $cc_basename in
8320 + # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8321 + _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
8322 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
8323 + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
8324 + _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8325 + if test "x$supports_anon_versioning" = xyes; then
8326 + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
8327 + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8328 + echo "local: *; };" >> $output_objdir/$libname.ver~
8329 + $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8334 + _LT_TAGVAR(ld_shlibs, $1)=no
8338 -# The name of the directory that contains temporary libtool files.
8341 + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8342 + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8345 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8346 + _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'
8350 -# How to create reloadable object files.
8351 -reload_flag=$lt_reload_flag
8352 -reload_cmds=$lt_reload_cmds
8354 + if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8355 + _LT_TAGVAR(ld_shlibs, $1)=no
8356 + cat <<_LT_EOF 1>&2
8358 -# How to pass a linker flag through the compiler.
8359 -wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
8360 +*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8361 +*** create shared libraries on Solaris systems. Therefore, libtool
8362 +*** is disabling shared libraries support. We urge you to upgrade GNU
8363 +*** binutils to release 2.9.1 or newer. Another option is to modify
8364 +*** your PATH or compiler configuration so that the native linker is
8365 +*** used, and then restart.
8367 -# Object file suffix (normally "o").
8368 -objext="$ac_objext"
8370 + elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8371 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8372 + _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'
8374 + _LT_TAGVAR(ld_shlibs, $1)=no
8378 -# Old archive suffix (normally "a").
8380 + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8381 + case `$LD -v 2>&1` in
8382 + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
8383 + _LT_TAGVAR(ld_shlibs, $1)=no
8384 + cat <<_LT_EOF 1>&2
8386 -# Shared library suffix (normally ".so").
8387 -shrext_cmds='$shrext_cmds'
8388 +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8389 +*** reliably create shared libraries on SCO systems. Therefore, libtool
8390 +*** is disabling shared libraries support. We urge you to upgrade GNU
8391 +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8392 +*** your PATH or compiler configuration so that the native linker is
8393 +*** used, and then restart.
8395 -# Executable file suffix (normally "").
8400 + # For security reasons, it is highly recommended that you always
8401 + # use absolute paths for naming shared libraries, and exclude the
8402 + # DT_RUNPATH tag from executables and libraries. But doing so
8403 + # requires that you compile everything twice, which is a pain.
8404 + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8405 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
8406 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8407 + _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'
8409 + _LT_TAGVAR(ld_shlibs, $1)=no
8415 -# Additional compiler flags for building library objects.
8416 -pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
8419 + _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8421 + _LT_TAGVAR(hardcode_direct, $1)=yes
8422 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8425 -# What is the maximum length of a command?
8426 -max_cmd_len=$lt_cv_sys_max_cmd_len
8428 + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8429 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8430 + _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'
8432 + _LT_TAGVAR(ld_shlibs, $1)=no
8437 -# Does compiler simultaneously support -c and -o options?
8438 -compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
8439 + if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
8441 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
8442 + _LT_TAGVAR(export_dynamic_flag_spec, $1)=
8443 + _LT_TAGVAR(whole_archive_flag_spec, $1)=
8446 + # PORTME fill in a description of your system's linker (not GNU ld)
8449 + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
8450 + _LT_TAGVAR(always_export_symbols, $1)=yes
8451 + _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'
8452 + # Note: this linker hardcodes the directories in LIBPATH if there
8453 + # are no directories specified by -L.
8454 + _LT_TAGVAR(hardcode_minus_L, $1)=yes
8455 + if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8456 + # Neither direct hardcoding nor static linking is supported with a
8457 + # broken collect2.
8458 + _LT_TAGVAR(hardcode_direct, $1)=unsupported
8462 -# Must we lock files when doing compilation?
8463 -need_locks=$lt_need_locks
8465 + if test "$host_cpu" = ia64; then
8466 + # On IA64, the linker does run time linking by default, so we don't
8467 + # have to do anything special.
8468 + aix_use_runtimelinking=no
8469 + exp_sym_flag='-Bexport'
8472 + # If we're using GNU nm, then we don't want the "-C" option.
8473 + # -C means demangle to AIX nm, but means don't demangle with GNU nm
8474 + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8475 + _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'
8477 + _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'
8479 + aix_use_runtimelinking=no
8481 -# Do we need the lib prefix for modules?
8482 -need_lib_prefix=$need_lib_prefix
8483 + # Test if we are trying to use run time linking or normal
8484 + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8485 + # need to do runtime linking.
8486 + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
8487 + for ld_flag in $LDFLAGS; do
8488 + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8489 + aix_use_runtimelinking=yes
8496 -# Do we need a version for libraries?
8497 -need_version=$need_version
8498 + exp_sym_flag='-bexport'
8499 + no_entry_flag='-bnoentry'
8502 -# Whether dlopen is supported.
8503 -dlopen_support=$enable_dlopen
8504 + # When large executables or shared objects are built, AIX ld can
8505 + # have problems creating the table of contents. If linking a library
8506 + # or program results in "error TOC overflow" add -mminimal-toc to
8507 + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8508 + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8510 -# Whether dlopen of programs is supported.
8511 -dlopen_self=$enable_dlopen_self
8512 + _LT_TAGVAR(archive_cmds, $1)=''
8513 + _LT_TAGVAR(hardcode_direct, $1)=yes
8514 + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
8515 + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
8516 + _LT_TAGVAR(link_all_deplibs, $1)=yes
8517 + _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
8519 -# Whether dlopen of statically linked programs is supported.
8520 -dlopen_self_static=$enable_dlopen_self_static
8521 + if test "$GCC" = yes; then
8522 + case $host_os in aix4.[[012]]|aix4.[[012]].*)
8523 + # We only want to do this on AIX 4.2 and lower, the check
8524 + # below for broken collect2 doesn't work under 4.3+
8525 + collect2name=`${CC} -print-prog-name=collect2`
8526 + if test -f "$collect2name" &&
8527 + strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8529 + # We have reworked collect2
8532 + # We have old collect2
8533 + _LT_TAGVAR(hardcode_direct, $1)=unsupported
8534 + # It fails to find uninstalled libraries when the uninstalled
8535 + # path is not listed in the libpath. Setting hardcode_minus_L
8536 + # to unsupported forces relinking
8537 + _LT_TAGVAR(hardcode_minus_L, $1)=yes
8538 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
8539 + _LT_TAGVAR(hardcode_libdir_separator, $1)=
8543 + shared_flag='-shared'
8544 + if test "$aix_use_runtimelinking" = yes; then
8545 + shared_flag="$shared_flag "'${wl}-G'
8549 + if test "$host_cpu" = ia64; then
8550 + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8551 + # chokes on -Wl,-G. The following line is correct:
8554 + if test "$aix_use_runtimelinking" = yes; then
8555 + shared_flag='${wl}-G'
8557 + shared_flag='${wl}-bM:SRE'
8562 -# Compiler flag to prevent dynamic linking.
8563 -link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
8564 + # It seems that -bexpall does not export symbols beginning with
8565 + # underscore (_), so it is better to generate a list of symbols to export.
8566 + _LT_TAGVAR(always_export_symbols, $1)=yes
8567 + if test "$aix_use_runtimelinking" = yes; then
8568 + # Warning - without using the other runtime loading flags (-brtl),
8569 + # -berok will link without error, but may produce a broken library.
8570 + _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
8571 + # Determine the default libpath from the value encoded in an
8572 + # empty executable.
8573 + _LT_SYS_MODULE_PATH_AIX
8574 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
8575 + _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"
8577 + if test "$host_cpu" = ia64; then
8578 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
8579 + _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
8580 + _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"
8582 + # Determine the default libpath from the value encoded in an
8583 + # empty executable.
8584 + _LT_SYS_MODULE_PATH_AIX
8585 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
8586 + # Warning - without using the other run time loading flags,
8587 + # -berok will link without error, but may produce a broken library.
8588 + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
8589 + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
8590 + # Exported symbols can be pulled into shared objects from archives
8591 + _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
8592 + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
8593 + # This is similar to how AIX traditionally builds its shared libraries.
8594 + _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'
8599 -# Compiler flag to turn off builtin functions.
8600 -no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
8604 + # see comment about AmigaOS4 .so support
8605 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8606 + _LT_TAGVAR(archive_expsym_cmds, $1)=''
8609 + _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)'
8610 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
8611 + _LT_TAGVAR(hardcode_minus_L, $1)=yes
8616 -# Compiler flag to allow reflexive dlopens.
8617 -export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
8619 + _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
8622 -# Compiler flag to generate shared objects directly from archives.
8623 -whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
8624 + cygwin* | mingw* | pw32*)
8625 + # When not using gcc, we currently assume that we are using
8626 + # Microsoft Visual C++.
8627 + # hardcode_libdir_flag_spec is actually meaningless, as there is
8628 + # no search path for DLLs.
8629 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
8630 + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
8631 + # Tell ltmain to make .lib files, not .a files.
8633 + # Tell ltmain to make .dll files, not .so files.
8634 + shrext_cmds=".dll"
8635 + # FIXME: Setting linknames here is a bad hack.
8636 + _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8637 + # The linker will automatically build a .lib file if we build a DLL.
8638 + _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
8639 + # FIXME: Should let the user specify the lib program.
8640 + _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
8641 + _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
8642 + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
8645 -# Compiler flag to generate thread-safe objects.
8646 -thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
8647 + darwin* | rhapsody*)
8648 + _LT_DARWIN_LINKER_FEATURES($1)
8651 -# Library versioning type.
8652 -version_type=$version_type
8654 + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8655 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
8656 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8659 -# Format of library name prefix.
8660 -libname_spec=$lt_libname_spec
8662 + _LT_TAGVAR(ld_shlibs, $1)=no
8665 -# List of archive names. First name is the real one, the rest are links.
8666 -# The last name is the one that the linker finds with -lNAME.
8667 -library_names_spec=$lt_library_names_spec
8668 + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8669 + # support. Future versions do this automatically, but an explicit c++rt0.o
8670 + # does not break anything, and helps significantly (at the cost of a little
8673 + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8674 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
8675 + _LT_TAGVAR(hardcode_direct, $1)=yes
8676 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8679 -# The coded name of the library, if different from the real name.
8680 -soname_spec=$lt_soname_spec
8681 + # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8683 + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8684 + _LT_TAGVAR(hardcode_direct, $1)=yes
8685 + _LT_TAGVAR(hardcode_minus_L, $1)=yes
8686 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8689 -# Commands used to build and install an old-style archive.
8691 -old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
8692 -old_postinstall_cmds=$lt_old_postinstall_cmds
8693 -old_postuninstall_cmds=$lt_old_postuninstall_cmds
8694 + # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8695 + freebsd* | dragonfly*)
8696 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8697 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
8698 + _LT_TAGVAR(hardcode_direct, $1)=yes
8699 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8702 -# Create an old-style archive from a shared archive.
8703 -old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
8705 + if test "$GCC" = yes; then
8706 + _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'
8708 + _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'
8710 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
8711 + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
8712 + _LT_TAGVAR(hardcode_direct, $1)=yes
8714 -# Create a temporary old-style archive to link instead of a shared archive.
8715 -old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
8716 + # hardcode_minus_L: Not really in the search PATH,
8717 + # but as the default location of the library.
8718 + _LT_TAGVAR(hardcode_minus_L, $1)=yes
8719 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
8722 -# Commands used to build and install a shared archive.
8723 -archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
8724 -archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
8725 -postinstall_cmds=$lt_postinstall_cmds
8726 -postuninstall_cmds=$lt_postuninstall_cmds
8728 + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8729 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8731 + _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8733 + if test "$with_gnu_ld" = no; then
8734 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
8735 + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
8736 + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
8737 + _LT_TAGVAR(hardcode_direct, $1)=yes
8738 + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
8739 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
8740 + # hardcode_minus_L: Not really in the search PATH,
8741 + # but as the default location of the library.
8742 + _LT_TAGVAR(hardcode_minus_L, $1)=yes
8746 -# Commands used to build a loadable module (assumed same as above if empty)
8747 -module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
8748 -module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
8750 + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8753 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8756 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8759 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8765 + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8768 + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8771 + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8775 + if test "$with_gnu_ld" = no; then
8776 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
8777 + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
8779 -# Commands to strip libraries.
8780 -old_striplib=$lt_old_striplib
8781 -striplib=$lt_striplib
8784 + _LT_TAGVAR(hardcode_direct, $1)=no
8785 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8788 + _LT_TAGVAR(hardcode_direct, $1)=yes
8789 + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
8790 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
8792 -# Dependencies to place before the objects being linked to create a
8794 -predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
8795 + # hardcode_minus_L: Not really in the search PATH,
8796 + # but as the default location of the library.
8797 + _LT_TAGVAR(hardcode_minus_L, $1)=yes
8803 -# Dependencies to place after the objects being linked to create a
8805 -postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
8806 + irix5* | irix6* | nonstopux*)
8807 + if test "$GCC" = yes; then
8808 + _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'
8809 + # Try to use the -exported_symbol ld option, if it does not
8810 + # work, assume that -exports_file does not work either and
8811 + # implicitly export all symbols.
8812 + save_LDFLAGS="$LDFLAGS"
8813 + LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8814 + AC_LINK_IFELSE(int foo(void) {},
8815 + _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'
8817 + LDFLAGS="$save_LDFLAGS"
8819 + _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'
8820 + _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'
8822 + _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
8823 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
8824 + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
8825 + _LT_TAGVAR(inherit_rpath, $1)=yes
8826 + _LT_TAGVAR(link_all_deplibs, $1)=yes
8829 -# Dependencies to place before the objects being linked to create a
8831 -predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
8833 + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8834 + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8836 + _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8838 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
8839 + _LT_TAGVAR(hardcode_direct, $1)=yes
8840 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8843 -# Dependencies to place after the objects being linked to create a
8845 -postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
8847 + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8848 + _LT_TAGVAR(hardcode_direct, $1)=yes
8849 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
8850 + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
8851 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8854 -# The library search path used internally by the compiler when linking
8855 -# a shared library.
8856 -compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
8860 -# Method to check whether dependent libraries are shared objects.
8861 -deplibs_check_method=$lt_deplibs_check_method
8863 + if test -f /usr/libexec/ld.so; then
8864 + _LT_TAGVAR(hardcode_direct, $1)=yes
8865 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8866 + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
8867 + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8868 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8869 + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8870 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
8871 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
8874 + openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
8875 + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8876 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
8879 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8880 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
8885 + _LT_TAGVAR(ld_shlibs, $1)=no
8889 -# Command to use when deplibs_check_method == file_magic.
8890 -file_magic_cmd=$lt_file_magic_cmd
8892 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
8893 + _LT_TAGVAR(hardcode_minus_L, $1)=yes
8894 + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
8895 + _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'
8896 + _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8899 -# Flag that allows shared libraries with undefined symbols to be built.
8900 -allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
8902 + if test "$GCC" = yes; then
8903 + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
8904 + _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'
8906 + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
8907 + _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'
8909 + _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
8910 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
8911 + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
8914 -# Flag that forces no undefined symbols.
8915 -no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
8916 + osf4* | osf5*) # as osf3* with the addition of -msym flag
8917 + if test "$GCC" = yes; then
8918 + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
8919 + _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'
8920 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
8922 + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
8923 + _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'
8924 + _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~
8925 + $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'
8927 -# Commands used to finish a libtool library installation in a directory.
8928 -finish_cmds=$lt_finish_cmds
8929 + # Both c and cxx compiler support -rpath directly
8930 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
8932 + _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
8933 + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
8936 -# Same as above, but a single script fragment to be evaled but not shown.
8937 -finish_eval=$lt_finish_eval
8939 + _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
8940 + if test "$GCC" = yes; then
8942 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8943 + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8944 + $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8946 + case `$CC -V 2>&1` in
8947 + *"Compilers 5.0"*)
8949 + _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8950 + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8951 + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8955 + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8956 + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8957 + $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8961 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
8962 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8964 + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
8966 + # The compiler driver will combine and reorder linker options,
8967 + # but understands `-z linker_flag'. GCC discards it without `$wl',
8968 + # but is careful enough not to reorder.
8969 + # Supported since Solaris 2.6 (maybe 2.5.1?)
8970 + if test "$GCC" = yes; then
8971 + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8973 + _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
8977 + _LT_TAGVAR(link_all_deplibs, $1)=yes
8980 -# Take the output of nm and produce a listing of raw symbols and C names.
8981 -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
8983 + if test "x$host_vendor" = xsequent; then
8984 + # Use $CC to link under sequent, because it throws in some extra .o
8985 + # files that make .init and .fini sections work.
8986 + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8988 + _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8990 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
8991 + _LT_TAGVAR(hardcode_direct, $1)=yes
8992 + _LT_TAGVAR(hardcode_minus_L, $1)=yes
8993 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8996 -# Transform the output of nm in a proper C declaration
8997 -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
8999 + case $host_vendor in
9001 + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9002 + _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
9005 + ## LD is ld it makes a PLAMLIB
9006 + ## CC just makes a GrossModule.
9007 + _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9008 + _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
9009 + _LT_TAGVAR(hardcode_direct, $1)=no
9012 + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9013 + _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
9016 + runpath_var='LD_RUN_PATH'
9017 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
9020 -# Transform the output of nm in a C name address pair
9021 -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9023 + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9024 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
9025 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
9028 -# This is the shared library runtime path variable.
9029 -runpath_var=$runpath_var
9031 + if test -d /usr/nec; then
9032 + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9033 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
9034 + runpath_var=LD_RUN_PATH
9035 + hardcode_runpath_var=yes
9036 + _LT_TAGVAR(ld_shlibs, $1)=yes
9040 -# This is the shared library path variable.
9041 -shlibpath_var=$shlibpath_var
9042 + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
9043 + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
9044 + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
9045 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
9046 + runpath_var='LD_RUN_PATH'
9048 -# Is shlibpath searched before the hard-coded library search path?
9049 -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9050 + if test "$GCC" = yes; then
9051 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9052 + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9054 + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9055 + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9059 -# How to hardcode a shared library path into an executable.
9060 -hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
9061 + sysv5* | sco3.2v5* | sco5v6*)
9062 + # Note: We can NOT use -z defs as we might desire, because we do not
9063 + # link with -lc, and that would cause any symbols used from libc to
9064 + # always be unresolved, which means just about no library would
9065 + # ever link correctly. If we're not using GNU ld we use -z text
9066 + # though, which does catch some bad symbols but isn't as heavy-handed
9068 + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
9069 + _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
9070 + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
9071 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
9072 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
9073 + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
9074 + _LT_TAGVAR(link_all_deplibs, $1)=yes
9075 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
9076 + runpath_var='LD_RUN_PATH'
9078 -# Whether we should hardcode library paths into libraries.
9079 -hardcode_into_libs=$hardcode_into_libs
9080 + if test "$GCC" = yes; then
9081 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9082 + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9084 + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9085 + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9089 -# Flag to hardcode \$libdir into a binary during linking.
9090 -# This must work even if \$libdir does not exist.
9091 -hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
9093 + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9094 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
9095 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
9098 -# If ld is used when linking, flag to hardcode \$libdir into
9099 -# a binary during linking. This must work even if \$libdir does
9101 -hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
9103 + _LT_TAGVAR(ld_shlibs, $1)=no
9107 -# Whether we need a single -rpath flag with a separated argument.
9108 -hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
9109 + if test x$host_vendor = xsni; then
9111 + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9112 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
9118 +AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
9119 +test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
9121 -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9122 -# resulting binary.
9123 -hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
9124 +_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
9126 -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9127 -# resulting binary.
9128 -hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
9129 +_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
9130 +_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
9131 +_LT_DECL([], [extract_expsyms_cmds], [2],
9132 + [The commands to extract the exported symbol list from a shared archive])
9134 -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9135 -# the resulting binary.
9136 -hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
9138 +# Do we need to explicitly link libc?
9140 +case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
9142 + # Assume -lc should be added
9143 + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
9145 -# Set to yes if building a shared library automatically hardcodes DIR into the library
9146 -# and all subsequent libraries and executables linked against it.
9147 -hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
9148 + if test "$enable_shared" = yes && test "$GCC" = yes; then
9149 + case $_LT_TAGVAR(archive_cmds, $1) in
9151 + # FIXME: we may have to deal with multi-command sequences.
9154 + # Test whether the compiler implicitly links with -lc since on some
9155 + # systems, -lgcc has to come before -lc. If gcc already passes -lc
9156 + # to ld, don't add -lc before -lgcc.
9157 + AC_MSG_CHECKING([whether -lc should be explicitly linked in])
9159 + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9161 -# Variables whose values should be saved in libtool wrapper scripts and
9162 -# restored at relink time.
9163 -variables_saved_for_relink="$variables_saved_for_relink"
9164 + if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
9167 + libobjs=conftest.$ac_objext
9169 + wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
9170 + pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
9176 + lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
9177 + _LT_TAGVAR(allow_undefined_flag, $1)=
9178 + if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
9180 + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
9182 + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
9184 + _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
9186 + cat conftest.err 1>&5
9189 + AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
9196 -# Whether libtool must link a program against all its dependency libraries.
9197 -link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
9198 +_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
9199 + [Whether or not to add -lc for building shared libraries])
9200 +_LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
9201 + [enable_shared_with_static_runtimes], [0],
9202 + [Whether or not to disallow shared libs when runtime libs are static])
9203 +_LT_TAGDECL([], [export_dynamic_flag_spec], [1],
9204 + [Compiler flag to allow reflexive dlopens])
9205 +_LT_TAGDECL([], [whole_archive_flag_spec], [1],
9206 + [Compiler flag to generate shared objects directly from archives])
9207 +_LT_TAGDECL([], [compiler_needs_object], [1],
9208 + [Whether the compiler copes with passing no objects directly])
9209 +_LT_TAGDECL([], [old_archive_from_new_cmds], [2],
9210 + [Create an old-style archive from a shared archive])
9211 +_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
9212 + [Create a temporary old-style archive to link instead of a shared archive])
9213 +_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
9214 +_LT_TAGDECL([], [archive_expsym_cmds], [2])
9215 +_LT_TAGDECL([], [module_cmds], [2],
9216 + [Commands used to build a loadable module if different from building
9217 + a shared archive.])
9218 +_LT_TAGDECL([], [module_expsym_cmds], [2])
9219 +_LT_TAGDECL([], [with_gnu_ld], [1],
9220 + [Whether we are building with GNU ld or not])
9221 +_LT_TAGDECL([], [allow_undefined_flag], [1],
9222 + [Flag that allows shared libraries with undefined symbols to be built])
9223 +_LT_TAGDECL([], [no_undefined_flag], [1],
9224 + [Flag that enforces no undefined symbols])
9225 +_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
9226 + [Flag to hardcode $libdir into a binary during linking.
9227 + This must work even if $libdir does not exist])
9228 +_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
9229 + [[If ld is used when linking, flag to hardcode $libdir into a binary
9230 + during linking. This must work even if $libdir does not exist]])
9231 +_LT_TAGDECL([], [hardcode_libdir_separator], [1],
9232 + [Whether we need a single "-rpath" flag with a separated argument])
9233 +_LT_TAGDECL([], [hardcode_direct], [0],
9234 + [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
9235 + DIR into the resulting binary])
9236 +_LT_TAGDECL([], [hardcode_direct_absolute], [0],
9237 + [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
9238 + DIR into the resulting binary and the resulting library dependency is
9239 + "absolute", i.e impossible to change by setting ${shlibpath_var} if the
9240 + library is relocated])
9241 +_LT_TAGDECL([], [hardcode_minus_L], [0],
9242 + [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
9243 + into the resulting binary])
9244 +_LT_TAGDECL([], [hardcode_shlibpath_var], [0],
9245 + [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
9246 + into the resulting binary])
9247 +_LT_TAGDECL([], [hardcode_automatic], [0],
9248 + [Set to "yes" if building a shared library automatically hardcodes DIR
9249 + into the library and all subsequent libraries and executables linked
9251 +_LT_TAGDECL([], [inherit_rpath], [0],
9252 + [Set to yes if linker adds runtime paths of dependent libraries
9253 + to runtime path list])
9254 +_LT_TAGDECL([], [link_all_deplibs], [0],
9255 + [Whether libtool must link a program against all its dependency libraries])
9256 +_LT_TAGDECL([], [fix_srcfile_path], [1],
9257 + [Fix the shell variable $srcfile for the compiler])
9258 +_LT_TAGDECL([], [always_export_symbols], [0],
9259 + [Set to "yes" if exported symbols are required])
9260 +_LT_TAGDECL([], [export_symbols_cmds], [2],
9261 + [The commands to list exported symbols])
9262 +_LT_TAGDECL([], [exclude_expsyms], [1],
9263 + [Symbols that should not be listed in the preloaded symbols])
9264 +_LT_TAGDECL([], [include_expsyms], [1],
9265 + [Symbols that must always be exported])
9266 +_LT_TAGDECL([], [prelink_cmds], [2],
9267 + [Commands necessary for linking programs (against libraries) with templates])
9268 +_LT_TAGDECL([], [file_list_spec], [1],
9269 + [Specify filename containing input files])
9270 +dnl FIXME: Not yet implemented
9271 +dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
9272 +dnl [Compiler flag to generate thread safe objects])
9273 +])# _LT_LINKER_SHLIBS
9275 -# Compile-time system search path for libraries
9276 -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9278 -# Run-time system search path for libraries
9279 -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9280 +# _LT_LANG_C_CONFIG([TAG])
9281 +# ------------------------
9282 +# Ensure that the configuration variables for a C compiler are suitably
9283 +# defined. These variables are subsequently used by _LT_CONFIG to write
9284 +# the compiler configuration to `libtool'.
9285 +m4_defun([_LT_LANG_C_CONFIG],
9286 +[m4_require([_LT_DECL_EGREP])dnl
9290 -# Fix the shell variable \$srcfile for the compiler.
9291 -fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
9292 +# Source file extension for C test sources.
9295 -# Set to yes if exported symbols are required.
9296 -always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
9297 +# Object file extension for compiled C test sources.
9299 +_LT_TAGVAR(objext, $1)=$objext
9301 -# The commands to list exported symbols.
9302 -export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
9303 +# Code to be used in simple compile tests
9304 +lt_simple_compile_test_code="int some_variable = 0;"
9306 -# The commands to extract the exported symbol list from a shared archive.
9307 -extract_expsyms_cmds=$lt_extract_expsyms_cmds
9308 +# Code to be used in simple link tests
9309 +lt_simple_link_test_code='int main(){return(0);}'
9311 -# Symbols that should not be listed in the preloaded symbols.
9312 -exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
9314 +# Save the default compiler, since it gets overwritten when the other
9315 +# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9316 +compiler_DEFAULT=$CC
9318 -# Symbols that must always be exported.
9319 -include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
9320 +# save warnings/boilerplate of simple test code
9321 +_LT_COMPILER_BOILERPLATE
9322 +_LT_LINKER_BOILERPLATE
9325 -[# ### END LIBTOOL CONFIG],
9326 -[# ### END LIBTOOL TAG CONFIG: $tagname])
9328 +## There is no encapsulation within the following macros, do not change
9329 +## the running order or otherwise move them around unless you know exactly
9330 +## what you are doing...
9331 +if test -n "$compiler"; then
9332 + _LT_COMPILER_NO_RTTI($1)
9333 + _LT_COMPILER_PIC($1)
9334 + _LT_COMPILER_C_O($1)
9335 + _LT_COMPILER_FILE_LOCKS($1)
9336 + _LT_LINKER_SHLIBS($1)
9337 + _LT_SYS_DYNAMIC_LINKER($1)
9338 + _LT_LINKER_HARDCODE_LIBPATH($1)
9339 + LT_SYS_DLOPEN_SELF
9342 + # Report which library types will actually be built
9343 + AC_MSG_CHECKING([if libtool supports shared libraries])
9344 + AC_MSG_RESULT([$can_build_shared])
9347 + AC_MSG_CHECKING([whether to build shared libraries])
9348 + test "$can_build_shared" = "no" && enable_shared=no
9351 + # On AIX, shared libraries and static libraries use the same namespace, and
9352 + # are all built from PIC.
9355 - cat <<\EOF >> "$cfgfile"
9356 + test "$enable_shared" = yes && enable_static=no
9357 + if test -n "$RANLIB"; then
9358 + archive_cmds="$archive_cmds~\$RANLIB \$lib"
9359 + postinstall_cmds='$RANLIB $lib'
9363 -# AIX sometimes has problems with the GCC collect2 program. For some
9364 -# reason, if we set the COLLECT_NAMES environment variable, the problems
9365 -# vanish in a puff of smoke.
9366 -if test "X${COLLECT_NAMES+set}" != Xset; then
9368 - export COLLECT_NAMES
9372 + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9373 + test "$enable_shared" = yes && enable_static=no
9377 + AC_MSG_RESULT([$enable_shared])
9379 - # We use sed instead of cat because bash on DJGPP gets confused if
9380 - # if finds mixed CR/LF and LF-only lines. Since sed operates in
9381 - # text mode, it properly converts lines to CR/LF. This bash problem
9382 - # is reportedly fixed, but why not run on old versions too?
9383 - sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9384 + AC_MSG_CHECKING([whether to build static libraries])
9385 + # Make sure either enable_shared or enable_static is yes.
9386 + test "$enable_shared" = yes || enable_static=yes
9387 + AC_MSG_RESULT([$enable_static])
9389 - mv -f "$cfgfile" "$ofile" || \
9390 - (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9394 - # If there is no Makefile yet, we rely on a make rule to execute
9395 - # `config.status --recheck' to rerun these tests and create the
9396 - # libtool script then.
9397 - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9398 - if test -f "$ltmain_in"; then
9399 - test -f Makefile && make "$ltmain"
9403 -])# AC_LIBTOOL_CONFIG
9406 -# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
9407 -# -------------------------------------------
9408 -AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
9409 -[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
9411 -_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
9414 +])# _LT_LANG_C_CONFIG
9416 -if test "$GCC" = yes; then
9417 - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
9419 - AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
9420 - lt_cv_prog_compiler_rtti_exceptions,
9421 - [-fno-rtti -fno-exceptions], [],
9422 - [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
9425 +# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
9426 +# compiler, we have our own version here.
9427 +m4_defun([_LT_PROG_CXX],
9429 +pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
9431 +if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9432 + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9433 + (test "X$CXX" != "Xg++"))) ; then
9436 + _lt_caught_CXX_error=yes
9438 -])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
9439 +popdef([AC_MSG_ERROR])
9442 +dnl aclocal-1.4 backwards compatibility:
9443 +dnl AC_DEFUN([_LT_PROG_CXX], [])
9445 -# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
9446 -# ---------------------------------
9447 -AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
9448 -[AC_REQUIRE([AC_CANONICAL_HOST])
9449 -AC_REQUIRE([AC_PROG_NM])
9450 -AC_REQUIRE([AC_OBJEXT])
9451 -# Check for command to grab the raw symbol name followed by C symbol from nm.
9452 -AC_MSG_CHECKING([command to parse $NM output from $compiler object])
9453 -AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
9455 -# These are sane defaults that work on at least a few old systems.
9456 -# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9458 -# Character class describing NM global symbol codes.
9459 -symcode='[[BCDEGRST]]'
9461 -# Regexp to match symbols that can be accessed directly from C.
9462 -sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
9463 +# _LT_LANG_CXX_CONFIG([TAG])
9464 +# --------------------------
9465 +# Ensure that the configuration variables for a C++ compiler are suitably
9466 +# defined. These variables are subsequently used by _LT_CONFIG to write
9467 +# the compiler configuration to `libtool'.
9468 +m4_defun([_LT_LANG_CXX_CONFIG],
9469 +[AC_REQUIRE([_LT_PROG_CXX])dnl
9470 +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
9471 +m4_require([_LT_DECL_EGREP])dnl
9474 +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
9475 +_LT_TAGVAR(allow_undefined_flag, $1)=
9476 +_LT_TAGVAR(always_export_symbols, $1)=no
9477 +_LT_TAGVAR(archive_expsym_cmds, $1)=
9478 +_LT_TAGVAR(compiler_needs_object, $1)=no
9479 +_LT_TAGVAR(export_dynamic_flag_spec, $1)=
9480 +_LT_TAGVAR(hardcode_direct, $1)=no
9481 +_LT_TAGVAR(hardcode_direct_absolute, $1)=no
9482 +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
9483 +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
9484 +_LT_TAGVAR(hardcode_libdir_separator, $1)=
9485 +_LT_TAGVAR(hardcode_minus_L, $1)=no
9486 +_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
9487 +_LT_TAGVAR(hardcode_automatic, $1)=no
9488 +_LT_TAGVAR(inherit_rpath, $1)=no
9489 +_LT_TAGVAR(module_cmds, $1)=
9490 +_LT_TAGVAR(module_expsym_cmds, $1)=
9491 +_LT_TAGVAR(link_all_deplibs, $1)=unknown
9492 +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
9493 +_LT_TAGVAR(no_undefined_flag, $1)=
9494 +_LT_TAGVAR(whole_archive_flag_spec, $1)=
9495 +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
9497 -# Transform an extracted symbol line into a proper C declaration
9498 -lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9499 +# Source file extension for C++ test sources.
9502 -# Transform an extracted symbol line into symbol name and symbol address
9503 -lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
9504 +# Object file extension for compiled C++ test sources.
9506 +_LT_TAGVAR(objext, $1)=$objext
9508 -# Define system-specific variables.
9511 - symcode='[[BCDT]]'
9513 -cygwin* | mingw* | pw32*)
9514 - symcode='[[ABCDGISTW]]'
9516 -hpux*) # Its linker distinguishes data from code symbols
9517 - if test "$host_cpu" = ia64; then
9518 - symcode='[[ABCDEGRST]]'
9519 +# No sense in running all these tests if we already determined that
9520 +# the CXX compiler isn't working. Some variables (like enable_shared)
9521 +# are currently assumed to apply to all compilers on this platform,
9522 +# and will be corrupted by setting them based on a non-working compiler.
9523 +if test "$_lt_caught_CXX_error" != yes; then
9524 + # Code to be used in simple compile tests
9525 + lt_simple_compile_test_code="int some_variable = 0;"
9527 + # Code to be used in simple link tests
9528 + lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
9530 + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9533 + # save warnings/boilerplate of simple test code
9534 + _LT_COMPILER_BOILERPLATE
9535 + _LT_LINKER_BOILERPLATE
9537 + # Allow CC to be a program name with arguments.
9542 + lt_save_with_gnu_ld=$with_gnu_ld
9543 + lt_save_path_LD=$lt_cv_path_LD
9544 + if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9545 + lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9547 + $as_unset lt_cv_prog_gnu_ld
9549 - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9550 - lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
9553 - if test "$host_cpu" = ia64; then
9554 - symcode='[[ABCDGIRSTW]]'
9555 - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9556 - lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
9557 + if test -n "${lt_cv_path_LDCXX+set}"; then
9558 + lt_cv_path_LD=$lt_cv_path_LDCXX
9560 + $as_unset lt_cv_path_LD
9563 -irix* | nonstopux*)
9564 - symcode='[[BCDEGRST]]'
9567 - symcode='[[BCDEGQRST]]'
9570 - symcode='[[BDRT]]'
9578 -sysv5* | sco5v6* | unixware* | OpenUNIX*)
9579 - symcode='[[ABDT]]'
9582 - symcode='[[DFNSTU]]'
9586 -# Handle CRLF in mingw tool chain
9590 - opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9594 -# If we're using GNU nm, then use its standard symbol codes.
9595 -case `$NM -V 2>&1` in
9596 -*GNU* | *'with BFD'*)
9597 - symcode='[[ABCDGIRSTW]]' ;;
9600 -# Try without a prefix undercore, then with it.
9601 -for ac_symprfx in "" "_"; do
9603 - # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9604 - symxfrm="\\1 $ac_symprfx\\2 \\2"
9606 - # Write the raw and C identifiers.
9607 - lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9609 - # Check to see that the pipe works correctly.
9613 - cat > conftest.$ac_ext <<EOF
9618 -void nm_test_func(){}
9622 -int main(){nm_test_var='a';nm_test_func();return(0);}
9625 - if AC_TRY_EVAL(ac_compile); then
9626 - # Now try to grab the symbols.
9628 - if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
9629 - # Try sorting and uniquifying the output.
9630 - if sort "$nlist" | uniq > "$nlist"T; then
9631 - mv -f "$nlist"T "$nlist"
9636 - # Make sure that we snagged all the symbols we need.
9637 - if grep ' nm_test_var$' "$nlist" >/dev/null; then
9638 - if grep ' nm_test_func$' "$nlist" >/dev/null; then
9639 - cat <<EOF > conftest.$ac_ext
9645 - # Now generate the symbol file.
9646 - eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9648 - cat <<EOF >> conftest.$ac_ext
9649 -#if defined (__STDC__) && __STDC__
9650 -# define lt_ptr_t void *
9652 -# define lt_ptr_t char *
9656 -/* The mapping between symbol names and symbols. */
9661 -lt_preloaded_symbols[[]] =
9664 - $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9665 - cat <<\EOF >> conftest.$ac_ext
9668 + test -z "${LDCXX+set}" || LD=$LDCXX
9671 + _LT_TAGVAR(compiler, $1)=$CC
9672 + _LT_CC_BASENAME([$compiler])
9678 - # Now try linking the two files.
9679 - mv conftest.$ac_objext conftstm.$ac_objext
9680 - lt_save_LIBS="$LIBS"
9681 - lt_save_CFLAGS="$CFLAGS"
9682 - LIBS="conftstm.$ac_objext"
9683 - CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
9684 - if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
9687 - LIBS="$lt_save_LIBS"
9688 - CFLAGS="$lt_save_CFLAGS"
9690 - echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
9693 - echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
9695 + if test -n "$compiler"; then
9696 + # We don't want -fno-exception when compiling C++ code, so set the
9697 + # no_builtin_flag separately
9698 + if test "$GXX" = yes; then
9699 + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
9701 - echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
9702 + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
9705 - echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
9706 - cat conftest.$ac_ext >&5
9708 - rm -f conftest* conftst*
9710 - # Do not use the global_symbol_pipe unless it works.
9711 - if test "$pipe_works" = yes; then
9714 - lt_cv_sys_global_symbol_pipe=
9718 -if test -z "$lt_cv_sys_global_symbol_pipe"; then
9719 - lt_cv_sys_global_symbol_to_cdecl=
9721 -if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9722 - AC_MSG_RESULT(failed)
9726 -]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
9728 + if test "$GXX" = yes; then
9729 + # Set up default GNU C++ configuration
9731 -# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
9732 -# ---------------------------------------
9733 -AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
9734 -[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
9735 -_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
9736 -_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
9739 -AC_MSG_CHECKING([for $compiler option to produce PIC])
9740 - ifelse([$1],[CXX],[
9741 - # C++ specific cases for pic, static, wl, etc.
9742 - if test "$GXX" = yes; then
9743 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
9744 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
9745 + # Check if GNU C++ uses GNU ld as the underlying linker, since the
9746 + # archiving commands below assume that GNU ld is being used.
9747 + if test "$with_gnu_ld" = yes; then
9748 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9749 + _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'
9751 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
9752 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
9754 + # If archive_cmds runs LD, not CC, wlarc should be empty
9755 + # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9756 + # investigate it a little bit more. (MM)
9759 + # ancient GNU ld didn't support --whole-archive et. al.
9760 + if eval "`$CC -print-prog-name=ld` --help 2>&1" |
9761 + $GREP 'no-whole-archive' > /dev/null; then
9762 + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9764 + _LT_TAGVAR(whole_archive_flag_spec, $1)=
9772 - # All AIX code is PIC.
9773 - if test "$host_cpu" = ia64; then
9774 - # AIX 5 now supports IA64 processor
9775 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
9779 - # FIXME: we need at least 68020 code to build shared libraries, but
9780 - # adding the `-m68020' flag to GCC prevents building anything better,
9782 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
9784 - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9785 - # PIC is the default for these OSes.
9787 - mingw* | cygwin* | os2* | pw32*)
9788 - # This hack is so that the source file can tell whether it is being
9789 - # built for inclusion in a dll (and should export symbols for example).
9790 - # Although the cygwin gcc ignores -fPIC, still need this for old-style
9791 - # (--disable-auto-import) libraries
9792 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
9794 - darwin* | rhapsody*)
9795 - # PIC is the default on this platform
9796 - # Common symbols not allowed in MH_DYLIB files
9797 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
9800 - # DJGPP does not support shared libraries at all
9801 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
9804 - # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9805 - # Instead, we relocate shared libraries at runtime.
9808 - if test -d /usr/nec; then
9809 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
9810 + # A generic and very simple default shared library creation
9811 + # command for GNU C++ for the case where it uses the native
9812 + # linker, instead of GNU ld. If possible, this setting should
9813 + # overridden to take advantage of the native linker features on
9814 + # the platform it is being used on.
9815 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9819 - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9820 - # not for PA HP-UX.
9825 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
9830 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
9835 + # Commands to make compiler produce verbose output that lists
9836 + # what "hidden" libraries, object files and flags are used when
9837 + # linking a shared library.
9838 + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
9846 + # PORTME: fill in a description of your system's C++ link characteristics
9847 + AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
9848 + _LT_TAGVAR(ld_shlibs, $1)=yes
9851 - # All AIX code is PIC.
9852 - if test "$host_cpu" = ia64; then
9853 - # AIX 5 now supports IA64 processor
9854 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
9856 + # FIXME: insert proper C++ library support
9857 + _LT_TAGVAR(ld_shlibs, $1)=no
9860 + if test "$host_cpu" = ia64; then
9861 + # On IA64, the linker does run time linking by default, so we don't
9862 + # have to do anything special.
9863 + aix_use_runtimelinking=no
9864 + exp_sym_flag='-Bexport'
9867 + aix_use_runtimelinking=no
9869 + # Test if we are trying to use run time linking or normal
9870 + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9871 + # need to do runtime linking.
9872 + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
9873 + for ld_flag in $LDFLAGS; do
9876 + aix_use_runtimelinking=yes
9884 + exp_sym_flag='-bexport'
9885 + no_entry_flag='-bnoentry'
9888 + # When large executables or shared objects are built, AIX ld can
9889 + # have problems creating the table of contents. If linking a library
9890 + # or program results in "error TOC overflow" add -mminimal-toc to
9891 + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9892 + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9894 + _LT_TAGVAR(archive_cmds, $1)=''
9895 + _LT_TAGVAR(hardcode_direct, $1)=yes
9896 + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
9897 + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
9898 + _LT_TAGVAR(link_all_deplibs, $1)=yes
9899 + _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
9901 + if test "$GXX" = yes; then
9902 + case $host_os in aix4.[[012]]|aix4.[[012]].*)
9903 + # We only want to do this on AIX 4.2 and lower, the check
9904 + # below for broken collect2 doesn't work under 4.3+
9905 + collect2name=`${CC} -print-prog-name=collect2`
9906 + if test -f "$collect2name" &&
9907 + strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9909 + # We have reworked collect2
9912 + # We have old collect2
9913 + _LT_TAGVAR(hardcode_direct, $1)=unsupported
9914 + # It fails to find uninstalled libraries when the uninstalled
9915 + # path is not listed in the libpath. Setting hardcode_minus_L
9916 + # to unsupported forces relinking
9917 + _LT_TAGVAR(hardcode_minus_L, $1)=yes
9918 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
9919 + _LT_TAGVAR(hardcode_libdir_separator, $1)=
9922 + shared_flag='-shared'
9923 + if test "$aix_use_runtimelinking" = yes; then
9924 + shared_flag="$shared_flag "'${wl}-G'
9928 + if test "$host_cpu" = ia64; then
9929 + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9930 + # chokes on -Wl,-G. The following line is correct:
9933 + if test "$aix_use_runtimelinking" = yes; then
9934 + shared_flag='${wl}-G'
9936 + shared_flag='${wl}-bM:SRE'
9941 + # It seems that -bexpall does not export symbols beginning with
9942 + # underscore (_), so it is better to generate a list of symbols to
9944 + _LT_TAGVAR(always_export_symbols, $1)=yes
9945 + if test "$aix_use_runtimelinking" = yes; then
9946 + # Warning - without using the other runtime loading flags (-brtl),
9947 + # -berok will link without error, but may produce a broken library.
9948 + _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
9949 + # Determine the default libpath from the value encoded in an empty
9951 + _LT_SYS_MODULE_PATH_AIX
9952 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
9954 + _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"
9956 + if test "$host_cpu" = ia64; then
9957 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
9958 + _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
9959 + _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"
9961 + # Determine the default libpath from the value encoded in an
9962 + # empty executable.
9963 + _LT_SYS_MODULE_PATH_AIX
9964 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
9965 + # Warning - without using the other run time loading flags,
9966 + # -berok will link without error, but may produce a broken library.
9967 + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
9968 + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
9969 + # Exported symbols can be pulled into shared objects from archives
9970 + _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
9971 + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
9972 + # This is similar to how AIX traditionally builds its shared
9974 + _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'
9980 + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9981 + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
9982 + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9983 + # support --undefined. This deserves some investigation. FIXME
9984 + _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9986 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
9987 + _LT_TAGVAR(ld_shlibs, $1)=no
9992 - case $cc_basename in
9994 - # Green Hills C++ Compiler
9995 - # _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
9996 + case $cc_basename in
9998 + # FIXME: insert proper C++ library support
9999 + _LT_TAGVAR(ld_shlibs, $1)=no
10005 + cygwin* | mingw* | pw32*)
10006 + # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
10007 + # as there is no search path for DLLs.
10008 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
10009 + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
10010 + _LT_TAGVAR(always_export_symbols, $1)=no
10011 + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
10013 + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10014 + _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'
10015 + # If the export-symbols file already is a .def file (1st line
10016 + # is EXPORTS), use it as is; otherwise, prepend...
10017 + _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10018 + cp $export_symbols $output_objdir/$soname.def;
10020 + echo EXPORTS > $output_objdir/$soname.def;
10021 + cat $export_symbols >> $output_objdir/$soname.def;
10023 + $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'
10025 + _LT_TAGVAR(ld_shlibs, $1)=no
10028 + darwin* | rhapsody*)
10029 + _LT_DARWIN_LINKER_FEATURES($1)
10032 - # PIC is the default on this platform
10033 - # Common symbols not allowed in MH_DYLIB files
10034 - case $cc_basename in
10036 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
10037 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
10043 - case $cc_basename in
10045 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
10046 + case $cc_basename in
10048 + # FIXME: insert proper C++ library support
10049 + _LT_TAGVAR(ld_shlibs, $1)=no
10053 # Green Hills C++ Compiler
10054 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
10055 + # FIXME: insert proper C++ library support
10056 + _LT_TAGVAR(ld_shlibs, $1)=no
10060 + # FIXME: insert proper C++ library support
10061 + _LT_TAGVAR(ld_shlibs, $1)=no
10065 - freebsd* | kfreebsd*-gnu | dragonfly*)
10066 - # FreeBSD uses GNU C++
10068 - hpux9* | hpux10* | hpux11*)
10069 - case $cc_basename in
10071 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
10072 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
10073 - if test "$host_cpu" != ia64; then
10074 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
10080 + # C++ shared libraries reported to be fairly broken before
10082 + _LT_TAGVAR(ld_shlibs, $1)=no
10086 + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
10089 + freebsd* | dragonfly*)
10090 + # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10092 + _LT_TAGVAR(ld_shlibs, $1)=yes
10099 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
10100 + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
10101 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
10102 + _LT_TAGVAR(hardcode_direct, $1)=yes
10103 + _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
10104 + # but as the default
10105 + # location of the library.
10107 + case $cc_basename in
10109 + # FIXME: insert proper C++ library support
10110 + _LT_TAGVAR(ld_shlibs, $1)=no
10113 + _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'
10114 + # Commands to make compiler produce verbose output that lists
10115 + # what "hidden" libraries, object files and flags are used when
10116 + # linking a shared library.
10118 + # There doesn't appear to be a way to prevent this compiler from
10119 + # explicitly linking system object files so we need to strip them
10120 + # from the output so that they don't get included in the library
10122 + 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'
10125 + if test "$GXX" = yes; then
10126 + _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'
10128 + # FIXME: insert proper C++ library support
10129 + _LT_TAGVAR(ld_shlibs, $1)=no
10136 + if test $with_gnu_ld = no; then
10137 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
10138 + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
10140 + case $host_cpu in
10144 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
10148 + case $host_cpu in
10150 + _LT_TAGVAR(hardcode_direct, $1)=no
10151 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
10154 + _LT_TAGVAR(hardcode_direct, $1)=yes
10155 + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
10156 + _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
10157 + # but as the default
10158 + # location of the library.
10162 + case $cc_basename in
10164 + # FIXME: insert proper C++ library support
10165 + _LT_TAGVAR(ld_shlibs, $1)=no
10168 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
10169 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
10176 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
10179 + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10182 + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10185 + _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'
10188 + # Commands to make compiler produce verbose output that lists
10189 + # what "hidden" libraries, object files and flags are used when
10190 + # linking a shared library.
10192 + # There doesn't appear to be a way to prevent this compiler from
10193 + # explicitly linking system object files so we need to strip them
10194 + # from the output so that they don't get included in the library
10196 + 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'
10200 + if test "$GXX" = yes; then
10201 + if test $with_gnu_ld = no; then
10202 + case $host_cpu in
10204 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10207 + _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'
10210 + _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'
10215 + # FIXME: insert proper C++ library support
10216 + _LT_TAGVAR(ld_shlibs, $1)=no
10222 - # This is c89, which is MS Visual C++ (no shared libs)
10223 - # Anyone wants to do a port?
10225 - irix5* | irix6* | nonstopux*)
10226 - case $cc_basename in
10228 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
10229 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
10230 - # CC pic flag -KPIC is the default.
10235 + _LT_TAGVAR(hardcode_direct, $1)=no
10236 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
10237 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
10238 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
10239 + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10240 + # Instead, shared libraries are loaded at an image base (0x10000000 by
10241 + # default) and relocated if they conflict, which is a slow very memory
10242 + # consuming and fragmenting process. To avoid this, we pick a random,
10243 + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10244 + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10245 + _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'
10246 + _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'
10249 + case $cc_basename in
10252 + _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'
10254 + # Archives containing C++ object files must be created using
10255 + # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10256 + # necessary to make sure instantiated templates are included
10257 + # in the archive.
10258 + _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
10262 + if test "$GXX" = yes; then
10263 + if test "$with_gnu_ld" = no; then
10264 + _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'
10266 + _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'
10269 + _LT_TAGVAR(link_all_deplibs, $1)=yes
10274 - case $cc_basename in
10276 - # KAI C++ Compiler
10277 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
10278 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
10280 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
10281 + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
10282 + _LT_TAGVAR(inherit_rpath, $1)=yes
10285 + linux* | k*bsd*-gnu)
10286 + case $cc_basename in
10288 + # Kuck and Associates, Inc. (KAI) C++ Compiler
10290 + # KCC will only create a shared library if the output file
10291 + # ends with ".so" (or ".sl" for HP-UX), so rename the library
10292 + # to its proper name (with version) after linking.
10293 + _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'
10294 + _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'
10295 + # Commands to make compiler produce verbose output that lists
10296 + # what "hidden" libraries, object files and flags are used when
10297 + # linking a shared library.
10299 + # There doesn't appear to be a way to prevent this compiler from
10300 + # explicitly linking system object files so we need to strip them
10301 + # from the output so that they don't get included in the library
10303 + 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'
10305 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
10306 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
10308 + # Archives containing C++ object files must be created using
10309 + # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10310 + _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
10315 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
10316 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
10317 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
10320 - # Portland Group C++ compiler.
10321 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
10322 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
10323 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
10327 - # Make sure the PIC flag is empty. It appears that all Alpha
10328 - # Linux and Compaq Tru64 Unix objects are PIC.
10329 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
10330 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
10332 + # version 8.0 and above of icpc choke on multiply defined symbols
10333 + # if we add $predep_objects and $postdep_objects, however 7.1 and
10334 + # earlier do not add the objects themselves.
10335 + case `$CC -V 2>&1` in
10337 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10338 + _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'
10340 + *) # Version 8.0 or newer
10342 + case $host_cpu in
10343 + ia64*) tmp_idyn=' -i_dynamic';;
10345 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10346 + _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'
10349 + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
10350 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
10351 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
10352 + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10355 - case `$CC -V 2>&1 | sed 5q` in
10358 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
10359 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
10360 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
10362 + # Portland Group C++ compiler
10364 + *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
10365 + _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
10367 + $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
10368 + compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
10369 + _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
10371 + $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
10372 + $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
10374 + _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
10376 + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
10377 + $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10378 + _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
10380 + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
10381 + $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'
10383 + *) # Version 6 will use weak symbols
10384 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10385 + _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'
10396 - case $cc_basename in
10398 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
10406 - osf3* | osf4* | osf5*)
10407 - case $cc_basename in
10409 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
10412 - # Rational C++ 2.4.1
10413 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
10416 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
10417 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
10418 + _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'
10421 - # Digital/Compaq C++
10422 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
10423 - # Make sure the PIC flag is empty. It appears that all Alpha
10424 - # Linux and Compaq Tru64 Unix objects are PIC.
10425 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
10426 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
10435 - case $cc_basename in
10437 - # Sun C++ 4.2, 5.x and Centerline C++
10438 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
10439 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
10440 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
10443 - # Green Hills C++ Compiler
10444 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
10451 - case $cc_basename in
10454 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
10455 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
10459 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
10463 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10464 + _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'
10466 + runpath_var=LD_RUN_PATH
10467 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
10468 + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
10470 + # Commands to make compiler produce verbose output that lists
10471 + # what "hidden" libraries, object files and flags are used when
10472 + # linking a shared library.
10474 + # There doesn't appear to be a way to prevent this compiler from
10475 + # explicitly linking system object files so we need to strip them
10476 + # from the output so that they don't get included in the library
10478 + 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'
10483 - case $cc_basename in
10485 - # NonStop-UX NCC 3.20
10486 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
10488 + # IBM XL 8.0 on PPC, with GNU ld
10489 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
10490 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
10491 + _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10492 + if test "x$supports_anon_versioning" = xyes; then
10493 + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
10494 + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10495 + echo "local: *; };" >> $output_objdir/$libname.ver~
10496 + $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10500 + case `$CC -V 2>&1 | sed 5q` in
10503 + _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
10504 + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10505 + _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'
10506 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
10507 + _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'
10508 + _LT_TAGVAR(compiler_needs_object, $1)=yes
10510 + # Not sure whether something based on
10511 + # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
10512 + # would be better.
10513 + output_verbose_link_cmd='echo'
10515 + # Archives containing C++ object files must be created using
10516 + # "CC -xar", where "CC" is the Sun C++ compiler. This is
10517 + # necessary to make sure instantiated templates are included
10518 + # in the archive.
10519 + _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
10525 - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10526 - case $cc_basename in
10528 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
10529 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
10530 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
10533 + # FIXME: insert proper C++ library support
10534 + _LT_TAGVAR(ld_shlibs, $1)=no
10538 + # FIXME: insert proper C++ library support
10539 + _LT_TAGVAR(ld_shlibs, $1)=no
10543 + case $cc_basename in
10545 + # FIXME: insert proper C++ library support
10546 + _LT_TAGVAR(ld_shlibs, $1)=no
10549 + # FIXME: insert proper C++ library support
10550 + _LT_TAGVAR(ld_shlibs, $1)=no
10557 + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10558 + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10560 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
10561 + _LT_TAGVAR(hardcode_direct, $1)=yes
10562 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
10564 + # Workaround some broken pre-1.5 toolchains
10565 + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10568 - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
10571 + _LT_TAGVAR(ld_shlibs, $1)=yes
10577 - if test "$GCC" = yes; then
10578 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
10579 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
10583 - # All AIX code is PIC.
10584 - if test "$host_cpu" = ia64; then
10585 - # AIX 5 now supports IA64 processor
10586 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
10590 + # C++ shared libraries are fairly broken
10591 + _LT_TAGVAR(ld_shlibs, $1)=no
10595 + if test -f /usr/libexec/ld.so; then
10596 + _LT_TAGVAR(hardcode_direct, $1)=yes
10597 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
10598 + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
10599 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10600 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
10601 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10602 + _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'
10603 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
10604 + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10606 + output_verbose_link_cmd=echo
10608 + _LT_TAGVAR(ld_shlibs, $1)=no
10613 - # FIXME: we need at least 68020 code to build shared libraries, but
10614 - # adding the `-m68020' flag to GCC prevents building anything better,
10615 - # like `-m68040'.
10616 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
10618 + osf3* | osf4* | osf5*)
10619 + case $cc_basename in
10621 + # Kuck and Associates, Inc. (KAI) C++ Compiler
10623 + # KCC will only create a shared library if the output file
10624 + # ends with ".so" (or ".sl" for HP-UX), so rename the library
10625 + # to its proper name (with version) after linking.
10626 + _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'
10628 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
10629 + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
10631 + # Archives containing C++ object files must be created using
10632 + # the KAI C++ compiler.
10634 + osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
10635 + *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
10639 + # Rational C++ 2.4.1
10640 + # FIXME: insert proper C++ library support
10641 + _LT_TAGVAR(ld_shlibs, $1)=no
10646 + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
10647 + _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'
10648 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
10651 + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
10652 + _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'
10653 + _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10654 + echo "-hidden">> $lib.exp~
10655 + $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~
10657 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
10661 - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10662 - # PIC is the default for these OSes.
10664 + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
10666 - mingw* | cygwin* | pw32* | os2*)
10667 - # This hack is so that the source file can tell whether it is being
10668 - # built for inclusion in a dll (and should export symbols for example).
10669 - # Although the cygwin gcc ignores -fPIC, still need this for old-style
10670 - # (--disable-auto-import) libraries
10671 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
10673 + # Commands to make compiler produce verbose output that lists
10674 + # what "hidden" libraries, object files and flags are used when
10675 + # linking a shared library.
10677 + # There doesn't appear to be a way to prevent this compiler from
10678 + # explicitly linking system object files so we need to strip them
10679 + # from the output so that they don't get included in the library
10681 + 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'
10684 + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10685 + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
10688 + _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'
10691 + _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'
10695 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
10696 + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
10698 + # Commands to make compiler produce verbose output that lists
10699 + # what "hidden" libraries, object files and flags are used when
10700 + # linking a shared library.
10701 + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
10704 + # FIXME: insert proper C++ library support
10705 + _LT_TAGVAR(ld_shlibs, $1)=no
10711 - darwin* | rhapsody*)
10712 - # PIC is the default on this platform
10713 - # Common symbols not allowed in MH_DYLIB files
10714 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
10717 + # FIXME: insert proper C++ library support
10718 + _LT_TAGVAR(ld_shlibs, $1)=no
10722 - # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10723 - # Instead, we relocate shared libraries at runtime.
10726 + case $cc_basename in
10729 + # FIXME: insert proper C++ library support
10730 + _LT_TAGVAR(ld_shlibs, $1)=no
10734 + # FIXME: insert proper C++ library support
10735 + _LT_TAGVAR(ld_shlibs, $1)=no
10738 + # FIXME: insert proper C++ library support
10739 + _LT_TAGVAR(ld_shlibs, $1)=no
10745 - # Just because we use GCC doesn't mean we suddenly get shared libraries
10746 - # on systems that don't support them.
10747 - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
10751 + case $cc_basename in
10753 + # Sun C++ 4.2, 5.x and Centerline C++
10754 + _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
10755 + _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
10756 + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10757 + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10758 + $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'
10760 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
10761 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
10763 + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
10765 + # The compiler driver will combine and reorder linker options,
10766 + # but understands `-z linker_flag'.
10767 + # Supported since Solaris 2.6 (maybe 2.5.1?)
10768 + _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
10771 + _LT_TAGVAR(link_all_deplibs, $1)=yes
10774 - if test -d /usr/nec; then
10775 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
10778 + output_verbose_link_cmd='echo'
10781 - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10782 - # not for PA HP-UX.
10783 - case $host_cpu in
10788 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
10792 + # Archives containing C++ object files must be created using
10793 + # "CC -xar", where "CC" is the Sun C++ compiler. This is
10794 + # necessary to make sure instantiated templates are included
10795 + # in the archive.
10796 + _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
10799 + # Green Hills C++ Compiler
10800 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10803 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
10807 - # PORTME Check for flag to pass linker flags through the system compiler.
10810 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
10811 - if test "$host_cpu" = ia64; then
10812 - # AIX 5 now supports IA64 processor
10813 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
10815 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
10819 - # PIC is the default on this platform
10820 - # Common symbols not allowed in MH_DYLIB files
10821 - case $cc_basename in
10823 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
10824 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
10828 + # The C++ compiler must be used to create the archive.
10829 + _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10832 + # GNU C++ compiler with Solaris linker
10833 + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10834 + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
10835 + if $CC --version | $GREP -v '^2\.7' > /dev/null; then
10836 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10837 + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10838 + $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
10840 + # Commands to make compiler produce verbose output that lists
10841 + # what "hidden" libraries, object files and flags are used when
10842 + # linking a shared library.
10843 + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
10845 + # g++ 2.7 appears to require `-G' NOT `-shared' on this
10847 + _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10848 + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10849 + $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
10851 + # Commands to make compiler produce verbose output that lists
10852 + # what "hidden" libraries, object files and flags are used when
10853 + # linking a shared library.
10854 + output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
10857 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
10859 + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
10861 + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10869 - mingw* | cygwin* | pw32* | os2*)
10870 - # This hack is so that the source file can tell whether it is being
10871 - # built for inclusion in a dll (and should export symbols for example).
10872 - # Although the cygwin gcc ignores -fPIC, still need this for old-style
10873 - # (--disable-auto-import) libraries
10874 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
10876 + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
10877 + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
10878 + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
10879 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
10880 + runpath_var='LD_RUN_PATH'
10882 - hpux9* | hpux10* | hpux11*)
10883 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
10884 - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10885 - # not for PA HP-UX.
10886 - case $host_cpu in
10891 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
10893 + case $cc_basename in
10895 + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10896 + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10899 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10900 + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10903 - # Is there a better lt_prog_compiler_static that works with the bundled CC?
10904 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
10907 - irix5* | irix6* | nonstopux*)
10908 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
10909 - # PIC (with -KPIC) is the default.
10910 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
10912 + sysv5* | sco3.2v5* | sco5v6*)
10913 + # Note: We can NOT use -z defs as we might desire, because we do not
10914 + # link with -lc, and that would cause any symbols used from libc to
10915 + # always be unresolved, which means just about no library would
10916 + # ever link correctly. If we're not using GNU ld we use -z text
10917 + # though, which does catch some bad symbols but isn't as heavy-handed
10919 + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
10920 + _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
10921 + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
10922 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
10923 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
10924 + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
10925 + _LT_TAGVAR(link_all_deplibs, $1)=yes
10926 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
10927 + runpath_var='LD_RUN_PATH'
10930 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
10931 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
10932 + case $cc_basename in
10934 + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10935 + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10938 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10939 + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10945 - case $cc_basename in
10947 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
10948 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
10949 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
10951 - pgcc* | pgf77* | pgf90* | pgf95*)
10952 - # Portland Group compilers (*not* the Pentium gcc compiler,
10953 - # which looks to be a dead project)
10954 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
10955 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
10956 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
10959 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
10960 - # All Alpha code is PIC.
10961 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
10963 + case $cc_basename in
10965 + # NonStop-UX NCC 3.20
10966 + # FIXME: insert proper C++ library support
10967 + _LT_TAGVAR(ld_shlibs, $1)=no
10970 + # FIXME: insert proper C++ library support
10971 + _LT_TAGVAR(ld_shlibs, $1)=no
10976 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-lopt='
10979 + # FIXME: insert proper C++ library support
10980 + _LT_TAGVAR(ld_shlibs, $1)=no
10984 - case `$CC -V 2>&1 | sed 5q` in
10987 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
10988 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
10989 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
10992 - # Sun Fortran 8.3 passes all unrecognized flags to the linker
10993 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
10994 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
10995 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=''
11001 + # FIXME: insert proper C++ library support
11002 + _LT_TAGVAR(ld_shlibs, $1)=no
11006 - osf3* | osf4* | osf5*)
11007 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
11008 - # All OSF/1 code is PIC.
11009 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
11011 + AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
11012 + test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
11015 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
11016 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
11017 - case $cc_basename in
11018 - f77* | f90* | f95*)
11019 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
11021 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
11024 + _LT_TAGVAR(GCC, $1)="$GXX"
11025 + _LT_TAGVAR(LD, $1)="$LD"
11027 + ## CAVEAT EMPTOR:
11028 + ## There is no encapsulation within the following macros, do not change
11029 + ## the running order or otherwise move them around unless you know exactly
11030 + ## what you are doing...
11031 + _LT_SYS_HIDDEN_LIBDEPS($1)
11032 + _LT_COMPILER_PIC($1)
11033 + _LT_COMPILER_C_O($1)
11034 + _LT_COMPILER_FILE_LOCKS($1)
11035 + _LT_LINKER_SHLIBS($1)
11036 + _LT_SYS_DYNAMIC_LINKER($1)
11037 + _LT_LINKER_HARDCODE_LIBPATH($1)
11040 + fi # test -n "$compiler"
11046 + with_gnu_ld=$lt_save_with_gnu_ld
11047 + lt_cv_path_LDCXX=$lt_cv_path_LD
11048 + lt_cv_path_LD=$lt_save_path_LD
11049 + lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
11050 + lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
11051 +fi # test "$_lt_caught_CXX_error" != yes
11054 +])# _LT_LANG_CXX_CONFIG
11057 +# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
11058 +# ---------------------------------
11059 +# Figure out "hidden" library dependencies from verbose
11060 +# compiler output when linking a shared library.
11061 +# Parse the compiler output and extract the necessary
11062 +# objects, libraries and library flags.
11063 +m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
11064 +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
11065 +# Dependencies to place before and after the object being linked:
11066 +_LT_TAGVAR(predep_objects, $1)=
11067 +_LT_TAGVAR(postdep_objects, $1)=
11068 +_LT_TAGVAR(predeps, $1)=
11069 +_LT_TAGVAR(postdeps, $1)=
11070 +_LT_TAGVAR(compiler_lib_search_path, $1)=
11072 +dnl we can't use the lt_simple_compile_test_code here,
11073 +dnl because it contains code intended for an executable,
11074 +dnl not a library. It's possible we should let each
11075 +dnl tag define a new lt_????_link_test_code variable,
11076 +dnl but it's only used here...
11077 +m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
11079 +void foo (void) { a = 0; }
11081 +], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
11085 + Foo (void) { a = 0; }
11090 +], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
11098 +], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
11106 +], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
11107 +public class foo {
11109 + public void bar (void) {
11115 +dnl Parse the compiler output and extract the necessary
11116 +dnl objects, libraries and library flags.
11117 +if AC_TRY_EVAL(ac_compile); then
11118 + # Parse the compiler output and extract the necessary
11119 + # objects, libraries and library flags.
11121 + # Sentinel used to keep track of whether or not we are before
11122 + # the conftest object file.
11123 + pre_test_object_deps_done=no
11126 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
11127 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
11128 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
11130 + for p in `eval "$output_verbose_link_cmd"`; do
11133 - sysv4 | sysv4.2uw2* | sysv4.3*)
11134 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
11135 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
11136 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
11139 + # Some compilers place space between "-{L,R}" and the path.
11140 + # Remove the space.
11141 + if test $p = "-L" ||
11142 + test $p = "-R"; then
11150 - if test -d /usr/nec ;then
11151 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
11152 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
11155 + if test "$pre_test_object_deps_done" = no; then
11158 + # Internal compiler library paths should come after those
11159 + # provided the user. The postdeps already come after the
11160 + # user supplied libs so there is no need to process them.
11161 + if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
11162 + _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
11164 + _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
11167 + # The "-l" case would never come before the object being
11168 + # linked, so don't bother handling this case.
11171 + if test -z "$_LT_TAGVAR(postdeps, $1)"; then
11172 + _LT_TAGVAR(postdeps, $1)="${prev}${p}"
11174 + _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
11179 - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11180 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
11181 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
11182 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
11185 + # This assumes that the test object file only shows up
11186 + # once in the compiler output.
11187 + if test "$p" = "conftest.$objext"; then
11188 + pre_test_object_deps_done=yes
11193 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
11194 - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
11196 + if test "$pre_test_object_deps_done" = no; then
11197 + if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
11198 + _LT_TAGVAR(predep_objects, $1)="$p"
11200 + _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
11203 + if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
11204 + _LT_TAGVAR(postdep_objects, $1)="$p"
11206 + _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
11212 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
11213 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
11215 + *) ;; # Ignore the rest.
11218 - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
11223 -AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
11227 -# Check to make sure the PIC flag actually works.
11229 -if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
11230 - AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
11231 - _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
11232 - [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
11233 - [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
11235 - *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
11237 - [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
11238 - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
11240 + rm -f a.out a.exe
11242 + echo "libtool.m4: error: problem compiling $1 test program"
11245 - # For platforms which do not support PIC, -DPIC is meaningless:
11247 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
11250 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
11255 -# Check to make sure the static flag actually works.
11257 -wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
11258 -AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
11259 - _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
11260 - $lt_tmp_static_flag,
11262 - [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
11265 +$RM -f confest.$objext
11267 -# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
11268 -# ------------------------------------
11269 -# See if the linker supports building shared libraries.
11270 -AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
11271 -[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
11272 -ifelse([$1],[CXX],[
11273 - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11276 - # If we're using GNU nm, then we don't want the "-C" option.
11277 - # -C means demangle to AIX nm, but means don't demangle with GNU nm
11278 - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11279 - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
11281 - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
11285 - _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
11287 - cygwin* | mingw*)
11288 - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([[^ ]]*\) [[^ ]]*/\1 DATA/;/^I /d;/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
11291 - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11292 +# PORTME: override above test on systems where it is broken
11293 +m4_if([$1], [CXX],
11296 + # Interix 3.5 installs completely hosed .la files for C++, so rather than
11297 + # hack all around it, let's just trust "g++" to DTRT.
11298 + _LT_TAGVAR(predep_objects,$1)=
11299 + _LT_TAGVAR(postdep_objects,$1)=
11300 + _LT_TAGVAR(postdeps,$1)=
11305 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=
11306 - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
11307 - _LT_AC_TAGVAR(archive_cmds, $1)=
11308 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
11309 - _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
11310 - _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
11311 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
11312 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
11313 - _LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
11314 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
11315 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
11316 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
11317 - _LT_AC_TAGVAR(hardcode_direct, $1)=no
11318 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
11319 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
11320 - _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
11321 - _LT_AC_TAGVAR(hardcode_automatic, $1)=no
11322 - _LT_AC_TAGVAR(module_cmds, $1)=
11323 - _LT_AC_TAGVAR(module_expsym_cmds, $1)=
11324 - _LT_AC_TAGVAR(always_export_symbols, $1)=no
11325 - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11326 - # include_expsyms should be a list of space-separated symbols to be *always*
11327 - # included in the symbol list
11328 - _LT_AC_TAGVAR(include_expsyms, $1)=
11329 - # exclude_expsyms can be an extended regexp of symbols to exclude
11330 - # it will be wrapped by ` (' and `)$', so one must not match beginning or
11331 - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
11332 - # as well as any symbol that contains `d'.
11333 - _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
11334 - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11335 - # platforms (ab)use it in PIC code, but their linkers get confused if
11336 - # the symbol is explicitly referenced. Since portable code cannot
11337 - # rely on this symbol name, it's probably fine to never include it in
11338 - # preloaded symbol tables.
11339 - extract_expsyms_cmds=
11340 - # Just being paranoid about ensuring that cc_basename is set.
11341 - _LT_CC_BASENAME([$compiler])
11343 - cygwin* | mingw* | pw32*)
11344 - # FIXME: the MSVC++ port hasn't been tested in a loooong time
11345 - # When not using gcc, we currently assume that we are using
11346 - # Microsoft Visual C++.
11347 - if test "$GCC" != yes; then
11352 - # we just hope/assume this is gcc and not c89 (= MSVC++)
11360 - _LT_AC_TAGVAR(ld_shlibs, $1)=yes
11361 - if test "$with_gnu_ld" = yes; then
11362 - # If archive_cmds runs LD, not CC, wlarc should be empty
11365 - # Set some defaults for GNU ld with shared library support. These
11366 - # are reset later if shared libraries are not supported. Putting them
11367 - # here allows them to be overridden if necessary.
11368 - runpath_var=LD_RUN_PATH
11369 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
11370 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
11371 - # ancient GNU ld didn't support --whole-archive et. al.
11372 - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
11373 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11375 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
11377 - supports_anon_versioning=no
11378 - case `$LD -v 2>/dev/null` in
11379 - *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
11380 - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11381 - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11382 - *\ 2.11.*) ;; # other 2.11 versions
11383 - *) supports_anon_versioning=yes ;;
11386 - # See if GNU ld supports shared libraries.
11388 - aix3* | aix4* | aix5*)
11389 - # On AIX/PPC, the GNU linker is very broken
11390 - if test "$host_cpu" != ia64; then
11391 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
11394 -*** Warning: the GNU linker, at least up to release 2.9.1, is reported
11395 -*** to be unable to reliably create shared libraries on AIX.
11396 -*** Therefore, libtool is disabling shared libraries support. If you
11397 -*** really care for shared libraries, you may want to modify your PATH
11398 -*** so that a non-GNU linker is found, and then restart.
11405 - _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
11406 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
11407 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
11409 - # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
11410 - # that the semantics of dynamic libraries on AmigaOS, at least up
11411 - # to version 4, is to share data among multiple programs linked
11412 - # with the same dynamic library. Since this doesn't match the
11413 - # behavior of shared libraries on other platforms, we can't use
11415 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
11418 + case `$CC -V 2>&1 | sed 5q` in
11423 - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11424 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
11425 - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11426 - # support --undefined. This deserves some investigation. FIXME
11427 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11429 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
11431 + # The more standards-conforming stlport4 library is
11432 + # incompatible with the Cstd library. Avoid specifying
11433 + # it if it's in CXXFLAGS. Ignore libCrun as
11434 + # -library=stlport4 depends on it.
11435 + case " $CXX $CXXFLAGS " in
11436 + *" -library=stlport4 "*)
11437 + solaris_use_stlport4=yes
11441 - cygwin* | mingw* | pw32*)
11442 - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
11443 - # as there is no search path for DLLs.
11444 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
11445 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
11446 - _LT_AC_TAGVAR(always_export_symbols, $1)=no
11447 - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
11448 - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
11450 - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11451 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11452 - # If the export-symbols file already is a .def file (1st line
11453 - # is EXPORTS), use it as is; otherwise, prepend...
11454 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11455 - cp $export_symbols $output_objdir/$soname.def;
11457 - echo EXPORTS > $output_objdir/$soname.def;
11458 - cat $export_symbols >> $output_objdir/$soname.def;
11460 - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11462 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
11465 + if test "$solaris_use_stlport4" != yes; then
11466 + _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
11473 - _LT_AC_TAGVAR(hardcode_direct, $1)=no
11474 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
11475 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
11476 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
11477 - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11478 - # Instead, shared libraries are loaded at an image base (0x10000000 by
11479 - # default) and relocated if they conflict, which is a slow very memory
11480 - # consuming and fragmenting process. To avoid this, we pick a random,
11481 - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11482 - # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11483 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11484 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11486 + case $cc_basename in
11488 + # The more standards-conforming stlport4 library is
11489 + # incompatible with the Cstd library. Avoid specifying
11490 + # it if it's in CXXFLAGS. Ignore libCrun as
11491 + # -library=stlport4 depends on it.
11492 + case " $CXX $CXXFLAGS " in
11493 + *" -library=stlport4 "*)
11494 + solaris_use_stlport4=yes
11499 - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11501 - case $cc_basename,$host_cpu in
11502 - pgcc*) # Portland Group C compiler
11503 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11504 - tmp_addflag=' $pic_flag'
11506 - pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
11507 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11508 - tmp_addflag=' $pic_flag -Mnomain' ;;
11509 - ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11510 - tmp_addflag=' -i_dynamic' ;;
11511 - efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11512 - tmp_addflag=' -i_dynamic -nofor_main' ;;
11513 - ifc* | ifort*) # Intel Fortran compiler
11514 - tmp_addflag=' -nofor_main' ;;
11516 - case `$CC -V 2>&1 | sed 5q` in
11517 - *Sun\ C*) # Sun C 5.9
11518 - _LT_AC_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 /dev/null'
11519 - tmp_sharedflag='-G' ;;
11520 - *Sun\ F*) # Sun Fortran 8.3
11521 - tmp_sharedflag='-G' ;;
11523 - tmp_sharedflag='-shared' ;;
11525 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11526 + # Adding this requires a known-good setup of shared libraries for
11527 + # Sun compiler versions before 5.6, else PIC objects from an old
11528 + # archive will be linked into the output, leading to subtle bugs.
11529 + if test "$solaris_use_stlport4" != yes; then
11530 + _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
11538 - if test $supports_anon_versioning = yes; then
11539 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
11540 - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11541 - $echo "local: *; };" >> $output_objdir/$libname.ver~
11542 - $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11545 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
11548 +case " $_LT_TAGVAR(postdeps, $1) " in
11549 +*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
11551 + _LT_TAGVAR(compiler_lib_search_dirs, $1)=
11552 +if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
11553 + _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
11555 +_LT_TAGDECL([], [compiler_lib_search_dirs], [1],
11556 + [The directories searched by this compiler when creating a shared library])
11557 +_LT_TAGDECL([], [predep_objects], [1],
11558 + [Dependencies to place before and after the objects being linked to
11559 + create a shared library])
11560 +_LT_TAGDECL([], [postdep_objects], [1])
11561 +_LT_TAGDECL([], [predeps], [1])
11562 +_LT_TAGDECL([], [postdeps], [1])
11563 +_LT_TAGDECL([], [compiler_lib_search_path], [1],
11564 + [The library search path used internally by the compiler when linking
11565 + a shared library])
11566 +])# _LT_SYS_HIDDEN_LIBDEPS
11571 +# Since AC_PROG_F77 is broken, in that it returns the empty string
11572 +# if there is no fortran compiler, we have our own version here.
11573 +m4_defun([_LT_PROG_F77],
11575 +pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
11577 +if test -z "$F77" || test "X$F77" = "Xno"; then
11578 + _lt_disable_F77=yes
11580 +popdef([AC_MSG_ERROR])
11584 - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11585 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11588 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11589 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11592 +dnl aclocal-1.4 backwards compatibility:
11593 +dnl AC_DEFUN([_LT_PROG_F77], [])
11596 - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
11597 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
11600 -*** Warning: The releases 2.8.* of the GNU linker cannot reliably
11601 -*** create shared libraries on Solaris systems. Therefore, libtool
11602 -*** is disabling shared libraries support. We urge you to upgrade GNU
11603 -*** binutils to release 2.9.1 or newer. Another option is to modify
11604 -*** your PATH or compiler configuration so that the native linker is
11605 -*** used, and then restart.
11606 +# _LT_LANG_F77_CONFIG([TAG])
11607 +# --------------------------
11608 +# Ensure that the configuration variables for a Fortran 77 compiler are
11609 +# suitably defined. These variables are subsequently used by _LT_CONFIG
11610 +# to write the compiler configuration to `libtool'.
11611 +m4_defun([_LT_LANG_F77_CONFIG],
11612 +[AC_REQUIRE([_LT_PROG_F77])dnl
11613 +AC_LANG_PUSH(Fortran 77)
11616 - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11617 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11618 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11620 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
11623 +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
11624 +_LT_TAGVAR(allow_undefined_flag, $1)=
11625 +_LT_TAGVAR(always_export_symbols, $1)=no
11626 +_LT_TAGVAR(archive_expsym_cmds, $1)=
11627 +_LT_TAGVAR(export_dynamic_flag_spec, $1)=
11628 +_LT_TAGVAR(hardcode_direct, $1)=no
11629 +_LT_TAGVAR(hardcode_direct_absolute, $1)=no
11630 +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
11631 +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
11632 +_LT_TAGVAR(hardcode_libdir_separator, $1)=
11633 +_LT_TAGVAR(hardcode_minus_L, $1)=no
11634 +_LT_TAGVAR(hardcode_automatic, $1)=no
11635 +_LT_TAGVAR(inherit_rpath, $1)=no
11636 +_LT_TAGVAR(module_cmds, $1)=
11637 +_LT_TAGVAR(module_expsym_cmds, $1)=
11638 +_LT_TAGVAR(link_all_deplibs, $1)=unknown
11639 +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
11640 +_LT_TAGVAR(no_undefined_flag, $1)=
11641 +_LT_TAGVAR(whole_archive_flag_spec, $1)=
11642 +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
11644 - sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11645 - case `$LD -v 2>&1` in
11646 - *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
11647 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
11648 - cat <<_LT_EOF 1>&2
11649 +# Source file extension for f77 test sources.
11652 -*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11653 -*** reliably create shared libraries on SCO systems. Therefore, libtool
11654 -*** is disabling shared libraries support. We urge you to upgrade GNU
11655 -*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11656 -*** your PATH or compiler configuration so that the native linker is
11657 -*** used, and then restart.
11658 +# Object file extension for compiled f77 test sources.
11660 +_LT_TAGVAR(objext, $1)=$objext
11665 - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11666 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
11667 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
11668 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
11670 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
11675 +# No sense in running all these tests if we already determined that
11676 +# the F77 compiler isn't working. Some variables (like enable_shared)
11677 +# are currently assumed to apply to all compilers on this platform,
11678 +# and will be corrupted by setting them based on a non-working compiler.
11679 +if test "$_lt_disable_F77" != yes; then
11680 + # Code to be used in simple compile tests
11681 + lt_simple_compile_test_code="\
11688 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11690 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
11691 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
11693 + # Code to be used in simple link tests
11694 + lt_simple_link_test_code="\
11700 - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11701 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11702 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11704 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
11708 + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11711 - if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
11713 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
11714 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
11715 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
11718 - # PORTME fill in a description of your system's linker (not GNU ld)
11721 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
11722 - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
11723 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
11724 - # Note: this linker hardcodes the directories in LIBPATH if there
11725 - # are no directories specified by -L.
11726 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
11727 - if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11728 - # Neither direct hardcoding nor static linking is supported with a
11729 - # broken collect2.
11730 - _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
11733 + # save warnings/boilerplate of simple test code
11734 + _LT_COMPILER_BOILERPLATE
11735 + _LT_LINKER_BOILERPLATE
11737 + # Allow CC to be a program name with arguments.
11742 + _LT_TAGVAR(compiler, $1)=$CC
11743 + _LT_CC_BASENAME([$compiler])
11745 + if test -n "$compiler"; then
11746 + AC_MSG_CHECKING([if libtool supports shared libraries])
11747 + AC_MSG_RESULT([$can_build_shared])
11750 - if test "$host_cpu" = ia64; then
11751 - # On IA64, the linker does run time linking by default, so we don't
11752 - # have to do anything special.
11753 - aix_use_runtimelinking=no
11754 - exp_sym_flag='-Bexport'
11757 - # If we're using GNU nm, then we don't want the "-C" option.
11758 - # -C means demangle to AIX nm, but means don't demangle with GNU nm
11759 - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11760 - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
11762 - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
11763 + AC_MSG_CHECKING([whether to build shared libraries])
11764 + test "$can_build_shared" = "no" && enable_shared=no
11766 + # On AIX, shared libraries and static libraries use the same namespace, and
11767 + # are all built from PIC.
11770 + test "$enable_shared" = yes && enable_static=no
11771 + if test -n "$RANLIB"; then
11772 + archive_cmds="$archive_cmds~\$RANLIB \$lib"
11773 + postinstall_cmds='$RANLIB $lib'
11777 + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11778 + test "$enable_shared" = yes && enable_static=no
11780 - aix_use_runtimelinking=no
11783 + AC_MSG_RESULT([$enable_shared])
11785 - # Test if we are trying to use run time linking or normal
11786 - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11787 - # need to do runtime linking.
11788 - case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
11789 - for ld_flag in $LDFLAGS; do
11790 - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11791 - aix_use_runtimelinking=yes
11797 + AC_MSG_CHECKING([whether to build static libraries])
11798 + # Make sure either enable_shared or enable_static is yes.
11799 + test "$enable_shared" = yes || enable_static=yes
11800 + AC_MSG_RESULT([$enable_static])
11802 + _LT_TAGVAR(GCC, $1)="$G77"
11803 + _LT_TAGVAR(LD, $1)="$LD"
11805 + ## CAVEAT EMPTOR:
11806 + ## There is no encapsulation within the following macros, do not change
11807 + ## the running order or otherwise move them around unless you know exactly
11808 + ## what you are doing...
11809 + _LT_COMPILER_PIC($1)
11810 + _LT_COMPILER_C_O($1)
11811 + _LT_COMPILER_FILE_LOCKS($1)
11812 + _LT_LINKER_SHLIBS($1)
11813 + _LT_SYS_DYNAMIC_LINKER($1)
11814 + _LT_LINKER_HARDCODE_LIBPATH($1)
11817 + fi # test -n "$compiler"
11821 +fi # test "$_lt_disable_F77" != yes
11823 - exp_sym_flag='-bexport'
11824 - no_entry_flag='-bnoentry'
11827 +])# _LT_LANG_F77_CONFIG
11829 - # When large executables or shared objects are built, AIX ld can
11830 - # have problems creating the table of contents. If linking a library
11831 - # or program results in "error TOC overflow" add -mminimal-toc to
11832 - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11833 - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11835 - _LT_AC_TAGVAR(archive_cmds, $1)=''
11836 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
11837 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
11838 - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
11841 +# Since AC_PROG_FC is broken, in that it returns the empty string
11842 +# if there is no fortran compiler, we have our own version here.
11843 +m4_defun([_LT_PROG_FC],
11845 +pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
11847 +if test -z "$FC" || test "X$FC" = "Xno"; then
11848 + _lt_disable_FC=yes
11850 +popdef([AC_MSG_ERROR])
11853 - if test "$GCC" = yes; then
11854 - case $host_os in aix4.[[012]]|aix4.[[012]].*)
11855 - # We only want to do this on AIX 4.2 and lower, the check
11856 - # below for broken collect2 doesn't work under 4.3+
11857 - collect2name=`${CC} -print-prog-name=collect2`
11858 - if test -f "$collect2name" && \
11859 - strings "$collect2name" | grep resolve_lib_name >/dev/null
11861 - # We have reworked collect2
11862 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
11864 - # We have old collect2
11865 - _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
11866 - # It fails to find uninstalled libraries when the uninstalled
11867 - # path is not listed in the libpath. Setting hardcode_minus_L
11868 - # to unsupported forces relinking
11869 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
11870 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
11871 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
11875 - shared_flag='-shared'
11876 - if test "$aix_use_runtimelinking" = yes; then
11877 - shared_flag="$shared_flag "'${wl}-G'
11881 - if test "$host_cpu" = ia64; then
11882 - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11883 - # chokes on -Wl,-G. The following line is correct:
11886 - if test "$aix_use_runtimelinking" = yes; then
11887 - shared_flag='${wl}-G'
11889 - shared_flag='${wl}-bM:SRE'
11893 +dnl aclocal-1.4 backwards compatibility:
11894 +dnl AC_DEFUN([_LT_PROG_FC], [])
11896 - # It seems that -bexpall does not export symbols beginning with
11897 - # underscore (_), so it is better to generate a list of symbols to export.
11898 - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
11899 - if test "$aix_use_runtimelinking" = yes; then
11900 - # Warning - without using the other runtime loading flags (-brtl),
11901 - # -berok will link without error, but may produce a broken library.
11902 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
11903 - # Determine the default libpath from the value encoded in an empty executable.
11904 - _LT_AC_SYS_LIBPATH_AIX
11905 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
11906 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11908 - if test "$host_cpu" = ia64; then
11909 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
11910 - _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
11911 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
11913 - # Determine the default libpath from the value encoded in an empty executable.
11914 - _LT_AC_SYS_LIBPATH_AIX
11915 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
11916 - # Warning - without using the other run time loading flags,
11917 - # -berok will link without error, but may produce a broken library.
11918 - _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
11919 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
11920 - # Exported symbols can be pulled into shared objects from archives
11921 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
11922 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
11923 - # This is similar to how AIX traditionally builds its shared libraries.
11924 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11930 - _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
11931 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
11932 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
11933 - # see comment about different semantics on the GNU ld section
11934 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
11936 +# _LT_LANG_FC_CONFIG([TAG])
11937 +# -------------------------
11938 +# Ensure that the configuration variables for a Fortran compiler are
11939 +# suitably defined. These variables are subsequently used by _LT_CONFIG
11940 +# to write the compiler configuration to `libtool'.
11941 +m4_defun([_LT_LANG_FC_CONFIG],
11942 +[AC_REQUIRE([_LT_PROG_FC])dnl
11943 +AC_LANG_PUSH(Fortran)
11945 +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
11946 +_LT_TAGVAR(allow_undefined_flag, $1)=
11947 +_LT_TAGVAR(always_export_symbols, $1)=no
11948 +_LT_TAGVAR(archive_expsym_cmds, $1)=
11949 +_LT_TAGVAR(export_dynamic_flag_spec, $1)=
11950 +_LT_TAGVAR(hardcode_direct, $1)=no
11951 +_LT_TAGVAR(hardcode_direct_absolute, $1)=no
11952 +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
11953 +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
11954 +_LT_TAGVAR(hardcode_libdir_separator, $1)=
11955 +_LT_TAGVAR(hardcode_minus_L, $1)=no
11956 +_LT_TAGVAR(hardcode_automatic, $1)=no
11957 +_LT_TAGVAR(inherit_rpath, $1)=no
11958 +_LT_TAGVAR(module_cmds, $1)=
11959 +_LT_TAGVAR(module_expsym_cmds, $1)=
11960 +_LT_TAGVAR(link_all_deplibs, $1)=unknown
11961 +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
11962 +_LT_TAGVAR(no_undefined_flag, $1)=
11963 +_LT_TAGVAR(whole_archive_flag_spec, $1)=
11964 +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
11967 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
11969 +# Source file extension for fc test sources.
11970 +ac_ext=${ac_fc_srcext-f}
11972 - cygwin* | mingw* | pw32*)
11973 - # When not using gcc, we currently assume that we are using
11974 - # Microsoft Visual C++.
11975 - # hardcode_libdir_flag_spec is actually meaningless, as there is
11976 - # no search path for DLLs.
11977 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
11978 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
11979 - # Tell ltmain to make .lib files, not .a files.
11981 - # Tell ltmain to make .dll files, not .so files.
11982 - shrext_cmds=".dll"
11983 - # FIXME: Setting linknames here is a bad hack.
11984 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
11985 - # The linker will automatically build a .lib file if we build a DLL.
11986 - _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
11987 - # FIXME: Should let the user specify the lib program.
11988 - _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
11989 - _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
11990 - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
11992 +# Object file extension for compiled fc test sources.
11994 +_LT_TAGVAR(objext, $1)=$objext
11996 - darwin* | rhapsody*)
11998 - rhapsody* | darwin1.[[012]])
11999 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
12001 - *) # Darwin 1.3 on
12002 - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12003 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12005 - case ${MACOSX_DEPLOYMENT_TARGET} in
12007 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12010 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
12016 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
12017 - _LT_AC_TAGVAR(hardcode_direct, $1)=no
12018 - _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
12019 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
12020 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
12021 - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
12022 - if test "$GCC" = yes ; then
12023 - output_verbose_link_cmd='echo'
12024 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12025 - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12026 - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12027 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12028 - _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12030 - case $cc_basename in
12032 - output_verbose_link_cmd='echo'
12033 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12034 - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12035 - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12036 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12037 - _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12040 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
12045 +# No sense in running all these tests if we already determined that
12046 +# the FC compiler isn't working. Some variables (like enable_shared)
12047 +# are currently assumed to apply to all compilers on this platform,
12048 +# and will be corrupted by setting them based on a non-working compiler.
12049 +if test "$_lt_disable_FC" != yes; then
12050 + # Code to be used in simple compile tests
12051 + lt_simple_compile_test_code="\
12058 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12059 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
12060 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
12062 + # Code to be used in simple link tests
12063 + lt_simple_link_test_code="\
12069 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
12071 + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12074 - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12075 - # support. Future versions do this automatically, but an explicit c++rt0.o
12076 - # does not break anything, and helps significantly (at the cost of a little
12079 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12080 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
12081 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
12082 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
12084 + # save warnings/boilerplate of simple test code
12085 + _LT_COMPILER_BOILERPLATE
12086 + _LT_LINKER_BOILERPLATE
12088 + # Allow CC to be a program name with arguments.
12093 + GCC=$ac_cv_fc_compiler_gnu
12095 - # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12097 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12098 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
12099 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
12100 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
12102 + _LT_TAGVAR(compiler, $1)=$CC
12103 + _LT_CC_BASENAME([$compiler])
12105 - # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12106 - freebsd* | kfreebsd*-gnu | dragonfly*)
12107 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12108 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
12109 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
12110 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
12112 + if test -n "$compiler"; then
12113 + AC_MSG_CHECKING([if libtool supports shared libraries])
12114 + AC_MSG_RESULT([$can_build_shared])
12117 - if test "$GCC" = yes; then
12118 - _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12120 - _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12122 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
12123 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
12124 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
12125 + AC_MSG_CHECKING([whether to build shared libraries])
12126 + test "$can_build_shared" = "no" && enable_shared=no
12128 - # hardcode_minus_L: Not really in the search PATH,
12129 - # but as the default location of the library.
12130 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
12131 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
12133 + # On AIX, shared libraries and static libraries use the same namespace, and
12134 + # are all built from PIC.
12137 + test "$enable_shared" = yes && enable_static=no
12138 + if test -n "$RANLIB"; then
12139 + archive_cmds="$archive_cmds~\$RANLIB \$lib"
12140 + postinstall_cmds='$RANLIB $lib'
12144 + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12145 + test "$enable_shared" = yes && enable_static=no
12149 + AC_MSG_RESULT([$enable_shared])
12152 - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12153 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12155 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12157 - if test "$with_gnu_ld" = no; then
12158 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
12159 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
12160 + AC_MSG_CHECKING([whether to build static libraries])
12161 + # Make sure either enable_shared or enable_static is yes.
12162 + test "$enable_shared" = yes || enable_static=yes
12163 + AC_MSG_RESULT([$enable_static])
12165 + _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
12166 + _LT_TAGVAR(LD, $1)="$LD"
12168 + ## CAVEAT EMPTOR:
12169 + ## There is no encapsulation within the following macros, do not change
12170 + ## the running order or otherwise move them around unless you know exactly
12171 + ## what you are doing...
12172 + _LT_SYS_HIDDEN_LIBDEPS($1)
12173 + _LT_COMPILER_PIC($1)
12174 + _LT_COMPILER_C_O($1)
12175 + _LT_COMPILER_FILE_LOCKS($1)
12176 + _LT_LINKER_SHLIBS($1)
12177 + _LT_SYS_DYNAMIC_LINKER($1)
12178 + _LT_LINKER_HARDCODE_LIBPATH($1)
12181 + fi # test -n "$compiler"
12185 +fi # test "$_lt_disable_FC" != yes
12187 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
12188 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
12190 +])# _LT_LANG_FC_CONFIG
12192 - # hardcode_minus_L: Not really in the search PATH,
12193 - # but as the default location of the library.
12194 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
12199 - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12200 - case $host_cpu in
12202 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12205 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12208 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12212 - case $host_cpu in
12214 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12217 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12220 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12224 - if test "$with_gnu_ld" = no; then
12225 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
12226 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
12227 +# _LT_LANG_GCJ_CONFIG([TAG])
12228 +# --------------------------
12229 +# Ensure that the configuration variables for the GNU Java Compiler compiler
12230 +# are suitably defined. These variables are subsequently used by _LT_CONFIG
12231 +# to write the compiler configuration to `libtool'.
12232 +m4_defun([_LT_LANG_GCJ_CONFIG],
12233 +[AC_REQUIRE([LT_PROG_GCJ])dnl
12236 - case $host_cpu in
12238 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
12239 - _LT_AC_TAGVAR(hardcode_direct, $1)=no
12240 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
12243 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
12244 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
12245 +# Source file extension for Java test sources.
12248 - # hardcode_minus_L: Not really in the search PATH,
12249 - # but as the default location of the library.
12250 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
12255 +# Object file extension for compiled Java test sources.
12257 +_LT_TAGVAR(objext, $1)=$objext
12259 - irix5* | irix6* | nonstopux*)
12260 - if test "$GCC" = yes; then
12261 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12263 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12264 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
12266 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
12267 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
12268 - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
12270 +# Code to be used in simple compile tests
12271 +lt_simple_compile_test_code="class foo {}"
12274 - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12275 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12277 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12279 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
12280 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
12281 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
12283 +# Code to be used in simple link tests
12284 +lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
12287 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12288 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
12289 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
12290 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
12291 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
12293 +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12296 +# save warnings/boilerplate of simple test code
12297 +_LT_COMPILER_BOILERPLATE
12298 +_LT_LINKER_BOILERPLATE
12300 +# Allow CC to be a program name with arguments.
12306 +_LT_TAGVAR(compiler, $1)=$CC
12307 +_LT_TAGVAR(LD, $1)="$LD"
12308 +_LT_CC_BASENAME([$compiler])
12311 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
12312 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
12313 - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12314 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12315 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12316 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
12317 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
12320 - openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
12321 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12322 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
12325 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12326 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
12331 +# GCJ did not exist at the time GCC didn't implicitly link libc in.
12332 +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
12335 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
12336 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
12337 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
12338 - _LT_AC_TAGVAR(archive_cmds, $1)='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
12339 - _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12341 +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
12344 - if test "$GCC" = yes; then
12345 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
12346 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12348 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
12349 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12351 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
12352 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
12355 +## There is no encapsulation within the following macros, do not change
12356 +## the running order or otherwise move them around unless you know exactly
12357 +## what you are doing...
12358 +if test -n "$compiler"; then
12359 + _LT_COMPILER_NO_RTTI($1)
12360 + _LT_COMPILER_PIC($1)
12361 + _LT_COMPILER_C_O($1)
12362 + _LT_COMPILER_FILE_LOCKS($1)
12363 + _LT_LINKER_SHLIBS($1)
12364 + _LT_LINKER_HARDCODE_LIBPATH($1)
12366 - osf4* | osf5*) # as osf3* with the addition of -msym flag
12367 - if test "$GCC" = yes; then
12368 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
12369 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12370 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
12372 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
12373 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12374 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
12375 - $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
12379 - # Both c and cxx compiler support -rpath directly
12380 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
12382 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
12387 - _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
12388 - if test "$GCC" = yes; then
12390 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12391 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12392 - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
12395 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12396 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12397 - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
12399 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
12400 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
12402 - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
12404 - # The compiler driver will combine linker options so we
12405 - # cannot just pass the convience library names through
12406 - # without $wl, iff we do not link with $LD.
12407 - # Luckily, gcc supports the same syntax we need for Sun Studio.
12408 - # Supported since Solaris 2.6 (maybe 2.5.1?)
12411 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
12413 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
12416 - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
12420 +])# _LT_LANG_GCJ_CONFIG
12423 - if test "x$host_vendor" = xsequent; then
12424 - # Use $CC to link under sequent, because it throws in some extra .o
12425 - # files that make .init and .fini sections work.
12426 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12428 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12430 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
12431 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
12432 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
12433 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
12437 - case $host_vendor in
12439 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12440 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
12443 - ## LD is ld it makes a PLAMLIB
12444 - ## CC just makes a GrossModule.
12445 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12446 - _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
12447 - _LT_AC_TAGVAR(hardcode_direct, $1)=no
12450 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12451 - _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
12454 - runpath_var='LD_RUN_PATH'
12455 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
12457 +# _LT_LANG_RC_CONFIG([TAG])
12458 +# -------------------------
12459 +# Ensure that the configuration variables for the Windows resource compiler
12460 +# are suitably defined. These variables are subsequently used by _LT_CONFIG
12461 +# to write the compiler configuration to `libtool'.
12462 +m4_defun([_LT_LANG_RC_CONFIG],
12463 +[AC_REQUIRE([LT_PROG_RC])dnl
12467 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12468 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
12469 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
12471 +# Source file extension for RC test sources.
12475 - if test -d /usr/nec; then
12476 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12477 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
12478 - runpath_var=LD_RUN_PATH
12479 - hardcode_runpath_var=yes
12480 - _LT_AC_TAGVAR(ld_shlibs, $1)=yes
12483 +# Object file extension for compiled RC test sources.
12485 +_LT_TAGVAR(objext, $1)=$objext
12487 - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7*)
12488 - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
12489 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
12490 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
12491 - runpath_var='LD_RUN_PATH'
12492 +# Code to be used in simple compile tests
12493 +lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
12495 - if test "$GCC" = yes; then
12496 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12497 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12499 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12500 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12503 +# Code to be used in simple link tests
12504 +lt_simple_link_test_code="$lt_simple_compile_test_code"
12506 - sysv5* | sco3.2v5* | sco5v6*)
12507 - # Note: We can NOT use -z defs as we might desire, because we do not
12508 - # link with -lc, and that would cause any symbols used from libc to
12509 - # always be unresolved, which means just about no library would
12510 - # ever link correctly. If we're not using GNU ld we use -z text
12511 - # though, which does catch some bad symbols but isn't as heavy-handed
12513 - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
12514 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
12515 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
12516 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
12517 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12518 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
12519 - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
12520 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
12521 - runpath_var='LD_RUN_PATH'
12522 +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12525 - if test "$GCC" = yes; then
12526 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12527 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12529 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12530 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12533 +# save warnings/boilerplate of simple test code
12534 +_LT_COMPILER_BOILERPLATE
12535 +_LT_LINKER_BOILERPLATE
12538 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12539 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
12540 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
12542 +# Allow CC to be a program name with arguments.
12546 +CC=${RC-"windres"}
12548 +_LT_TAGVAR(compiler, $1)=$CC
12549 +_LT_CC_BASENAME([$compiler])
12550 +_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
12553 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
12558 -AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
12559 -test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
12560 +if test -n "$compiler"; then
12566 -# Do we need to explicitly link libc?
12568 -case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
12570 - # Assume -lc should be added
12571 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
12575 +])# _LT_LANG_RC_CONFIG
12577 - if test "$enable_shared" = yes && test "$GCC" = yes; then
12578 - case $_LT_AC_TAGVAR(archive_cmds, $1) in
12580 - # FIXME: we may have to deal with multi-command sequences.
12583 - # Test whether the compiler implicitly links with -lc since on some
12584 - # systems, -lgcc has to come before -lc. If gcc already passes -lc
12585 - # to ld, don't add -lc before -lgcc.
12586 - AC_MSG_CHECKING([whether -lc should be explicitly linked in])
12588 - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12590 - if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
12593 - libobjs=conftest.$ac_objext
12595 - wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
12596 - pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
12597 - compiler_flags=-v
12602 - lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
12603 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=
12604 - if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
12606 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
12608 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
12610 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
12612 - cat conftest.err 1>&5
12615 - AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
12621 -])# AC_LIBTOOL_PROG_LD_SHLIBS
12624 +AC_DEFUN([LT_PROG_GCJ],
12625 +[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
12626 + [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
12627 + [AC_CHECK_TOOL(GCJ, gcj,)
12628 + test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
12629 + AC_SUBST(GCJFLAGS)])])[]dnl
12633 +AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
12634 +dnl aclocal-1.4 backwards compatibility:
12635 +dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
12637 -# _LT_AC_FILE_LTDLL_C
12638 -# -------------------
12639 -# Be careful that the start marker always follows a newline.
12640 -AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
12641 -# /* ltdll.c starts here */
12642 -# #define WIN32_LEAN_AND_MEAN
12643 -# #include <windows.h>
12644 -# #undef WIN32_LEAN_AND_MEAN
12645 -# #include <stdio.h>
12647 -# #ifndef __CYGWIN__
12648 -# # ifdef __CYGWIN32__
12649 -# # define __CYGWIN__ __CYGWIN32__
12653 -# #ifdef __cplusplus
12656 -# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
12657 -# #ifdef __cplusplus
12661 -# #ifdef __CYGWIN__
12662 -# #include <cygwin/cygwin_dll.h>
12663 -# DECLARE_CYGWIN_DLL( DllMain );
12665 -# HINSTANCE __hDllInstance_base;
12668 -# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
12670 -# __hDllInstance_base = hInst;
12673 -# /* ltdll.c ends here */
12674 -])# _LT_AC_FILE_LTDLL_C
12678 +AC_DEFUN([LT_PROG_RC],
12679 +[AC_CHECK_TOOL(RC, windres,)
12682 -# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
12683 -# ---------------------------------
12684 -AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
12686 +AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
12687 +dnl aclocal-1.4 backwards compatibility:
12688 +dnl AC_DEFUN([LT_AC_PROG_RC], [])
12692 -AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
12693 -AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
12694 -AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
12695 -AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
12696 -AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
12697 -AC_DEFUN([AM_PROG_LD], [AC_PROG_LD])
12698 -AC_DEFUN([AM_PROG_NM], [AC_PROG_NM])
12700 -# This is just to silence aclocal about the macro not being used
12701 -ifelse([AC_DISABLE_FAST_INSTALL])
12703 -AC_DEFUN([LT_AC_PROG_GCJ],
12704 -[AC_CHECK_TOOL(GCJ, gcj, no)
12705 - test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
12706 - AC_SUBST(GCJFLAGS)
12709 +# If we don't have a new enough Autoconf to choose the best grep
12710 +# available, choose the one first in the user's PATH.
12711 +m4_defun([_LT_DECL_EGREP],
12712 +[AC_REQUIRE([AC_PROG_EGREP])dnl
12713 +AC_REQUIRE([AC_PROG_FGREP])dnl
12714 +test -z "$GREP" && GREP=grep
12715 +_LT_DECL([], [GREP], [1], [A grep program that handles long lines])
12716 +_LT_DECL([], [EGREP], [1], [An ERE matcher])
12717 +_LT_DECL([], [FGREP], [1], [A literal string matcher])
12718 +dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
12722 -AC_DEFUN([LT_AC_PROG_RC],
12723 -[AC_CHECK_TOOL(RC, windres, no)
12728 +# Check for a fully-functional sed program, that truncates
12729 +# as few characters as possible. Prefer GNU sed if found.
12730 +m4_defun([_LT_DECL_SED],
12732 +test -z "$SED" && SED=sed
12733 +Xsed="$SED -e 1s/^X//"
12734 +_LT_DECL([], [SED], [1], [A sed program that does not truncate output])
12735 +_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
12736 + [Sed that helps us avoid accidentally triggering echo(1) options like -n])
12739 +m4_ifndef([AC_PROG_SED], [
12740 ############################################################
12741 # NOTE: This macro has been submitted for inclusion into #
12742 # GNU Autoconf as AC_PROG_SED. When it is available in #
12743 # a released version of Autoconf we should remove this #
12744 # macro and use it instead. #
12745 ############################################################
12748 -# Check for a fully-functional sed program, that truncates
12749 -# as few characters as possible. Prefer GNU sed if found.
12750 -AC_DEFUN([LT_AC_PROG_SED],
12752 +m4_defun([AC_PROG_SED],
12753 [AC_MSG_CHECKING([for a sed that does not truncate output])
12754 AC_CACHE_VAL(lt_cv_path_SED,
12755 [# Loop through the user's path and test for sed and gsed.
12756 @@ -6435,6 +7010,7 @@ do
12763 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
12764 @@ -6467,5 +7043,268 @@ for lt_ac_sed in $lt_ac_sed_list /usr/xp
12767 SED=$lt_cv_path_SED
12769 AC_MSG_RESULT([$SED])
12774 +AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
12775 +dnl aclocal-1.4 backwards compatibility:
12776 +dnl AC_DEFUN([LT_AC_PROG_SED], [])
12779 +# _LT_CHECK_SHELL_FEATURES
12780 +# ------------------------
12781 +# Find out whether the shell is Bourne or XSI compatible,
12782 +# or has some other useful features.
12783 +m4_defun([_LT_CHECK_SHELL_FEATURES],
12784 +[AC_MSG_CHECKING([whether the shell understands some XSI constructs])
12785 +# Try some XSI features
12787 +( _lt_dummy="a/b/c"
12788 + test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12790 + && eval 'test $(( 1 + 1 )) -eq 2 \
12791 + && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12793 +AC_MSG_RESULT([$xsi_shell])
12794 +_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
12796 +AC_MSG_CHECKING([whether the shell understands "+="])
12797 +lt_shell_append=no
12798 +( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
12799 + >/dev/null 2>&1 \
12800 + && lt_shell_append=yes
12801 +AC_MSG_RESULT([$lt_shell_append])
12802 +_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
12804 +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12809 +_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
12811 +# test EBCDIC or ASCII
12812 +case `echo X|tr X '\101'` in
12813 + A) # ASCII based system
12814 + # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12815 + lt_SP2NL='tr \040 \012'
12816 + lt_NL2SP='tr \015\012 \040\040'
12818 + *) # EBCDIC based system
12819 + lt_SP2NL='tr \100 \n'
12820 + lt_NL2SP='tr \r\n \100\100'
12823 +_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
12824 +_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
12825 +])# _LT_CHECK_SHELL_FEATURES
12828 +# _LT_PROG_XSI_SHELLFNS
12829 +# ---------------------
12830 +# Bourne and XSI compatible variants of some useful shell functions.
12831 +m4_defun([_LT_PROG_XSI_SHELLFNS],
12832 +[case $xsi_shell in
12834 + cat << \_LT_EOF >> "$cfgfile"
12836 +# func_dirname file append nondir_replacement
12837 +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
12838 +# otherwise set result to NONDIR_REPLACEMENT.
12842 + */*) func_dirname_result="${1%/*}${2}" ;;
12843 + * ) func_dirname_result="${3}" ;;
12847 +# func_basename file
12850 + func_basename_result="${1##*/}"
12853 +# func_dirname_and_basename file append nondir_replacement
12854 +# perform func_basename and func_dirname in a single function
12856 +# dirname: Compute the dirname of FILE. If nonempty,
12857 +# add APPEND to the result, otherwise set result
12858 +# to NONDIR_REPLACEMENT.
12859 +# value returned in "$func_dirname_result"
12860 +# basename: Compute filename of FILE.
12861 +# value retuned in "$func_basename_result"
12862 +# Implementation must be kept synchronized with func_dirname
12863 +# and func_basename. For efficiency, we do not delegate to
12864 +# those functions but instead duplicate the functionality here.
12865 +func_dirname_and_basename ()
12868 + */*) func_dirname_result="${1%/*}${2}" ;;
12869 + * ) func_dirname_result="${3}" ;;
12871 + func_basename_result="${1##*/}"
12874 +# func_stripname prefix suffix name
12875 +# strip PREFIX and SUFFIX off of NAME.
12876 +# PREFIX and SUFFIX must not contain globbing or regex special
12877 +# characters, hashes, percent signs, but SUFFIX may contain a leading
12878 +# dot (in which case that matches only a dot).
12881 + # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
12882 + # positional parameters, so assign one to ordinary parameter first.
12883 + func_stripname_result=${3}
12884 + func_stripname_result=${func_stripname_result#"${1}"}
12885 + func_stripname_result=${func_stripname_result%"${2}"}
12891 + func_opt_split_opt=${1%%=*}
12892 + func_opt_split_arg=${1#*=}
12895 +# func_lo2o object
12899 + *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
12900 + *) func_lo2o_result=${1} ;;
12904 +# func_xform libobj-or-source
12907 + func_xform_result=${1%.*}.lo
12910 +# func_arith arithmetic-term...
12913 + func_arith_result=$(( $[*] ))
12917 +# STRING may not start with a hyphen.
12920 + func_len_result=${#1}
12925 + *) # Bourne compatible functions.
12926 + cat << \_LT_EOF >> "$cfgfile"
12928 +# func_dirname file append nondir_replacement
12929 +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
12930 +# otherwise set result to NONDIR_REPLACEMENT.
12933 + # Extract subdirectory from the argument.
12934 + func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
12935 + if test "X$func_dirname_result" = "X${1}"; then
12936 + func_dirname_result="${3}"
12938 + func_dirname_result="$func_dirname_result${2}"
12942 +# func_basename file
12945 + func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
12948 +dnl func_dirname_and_basename
12949 +dnl A portable version of this function is already defined in general.m4sh
12950 +dnl so there is no need for it here.
12952 +# func_stripname prefix suffix name
12953 +# strip PREFIX and SUFFIX off of NAME.
12954 +# PREFIX and SUFFIX must not contain globbing or regex special
12955 +# characters, hashes, percent signs, but SUFFIX may contain a leading
12956 +# dot (in which case that matches only a dot).
12957 +# func_strip_suffix prefix name
12961 + .*) func_stripname_result=`$ECHO "X${3}" \
12962 + | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
12963 + *) func_stripname_result=`$ECHO "X${3}" \
12964 + | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
12969 +my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
12970 +my_sed_long_arg='1s/^-[[^=]]*=//'
12975 + func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
12976 + func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
12979 +# func_lo2o object
12982 + func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
12985 +# func_xform libobj-or-source
12988 + func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
12991 +# func_arith arithmetic-term...
12994 + func_arith_result=`expr "$[@]"`
12998 +# STRING may not start with a hyphen.
13001 + func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
13007 +case $lt_shell_append in
13009 + cat << \_LT_EOF >> "$cfgfile"
13011 +# func_append var value
13012 +# Append VALUE to the end of shell variable VAR.
13015 + eval "$[1]+=\$[2]"
13020 + cat << \_LT_EOF >> "$cfgfile"
13022 +# func_append var value
13023 +# Append VALUE to the end of shell variable VAR.
13026 + eval "$[1]=\$$[1]\$[2]"
13033 Index: libiconv-1.12/m4/libtool.m4
13034 ===================================================================
13035 --- libiconv-1.12.orig/m4/libtool.m4 2007-10-27 02:46:10.000000000 +0200
13036 +++ libiconv-1.12/m4/libtool.m4 2008-06-06 23:00:22.883921710 +0200
13037 @@ -1,107 +1,186 @@
13038 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
13039 -## Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006
13040 -## Free Software Foundation, Inc.
13041 -## Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
13043 -## This file is free software; the Free Software Foundation gives
13044 -## unlimited permission to copy and/or distribute it, with or without
13045 -## modifications, as long as this notice is preserved.
13047 -# serial 48 AC_PROG_LIBTOOL
13050 -# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
13051 -# -----------------------------------------------------------
13052 -# If this macro is not defined by Autoconf, define it here.
13053 -m4_ifdef([AC_PROVIDE_IFELSE],
13055 - [m4_define([AC_PROVIDE_IFELSE],
13056 - [m4_ifdef([AC_PROVIDE_$1],
13059 +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13060 +# 2006, 2007, 2008 Free Software Foundation, Inc.
13061 +# Written by Gordon Matzigkeit, 1996
13063 +# This file is free software; the Free Software Foundation gives
13064 +# unlimited permission to copy and/or distribute it, with or without
13065 +# modifications, as long as this notice is preserved.
13067 +m4_define([_LT_COPYING], [dnl
13068 +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13069 +# 2006, 2007, 2008 Free Software Foundation, Inc.
13070 +# Written by Gordon Matzigkeit, 1996
13072 +# This file is part of GNU Libtool.
13074 +# GNU Libtool is free software; you can redistribute it and/or
13075 +# modify it under the terms of the GNU General Public License as
13076 +# published by the Free Software Foundation; either version 2 of
13077 +# the License, or (at your option) any later version.
13079 +# As a special exception to the GNU General Public License,
13080 +# if you distribute this file as part of a program or library that
13081 +# is built using GNU Libtool, you may include this file under the
13082 +# same distribution terms that you use for the rest of that program.
13084 +# GNU Libtool is distributed in the hope that it will be useful,
13085 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
13086 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13087 +# GNU General Public License for more details.
13089 +# You should have received a copy of the GNU General Public License
13090 +# along with GNU Libtool; see the file COPYING. If not, a copy
13091 +# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13092 +# obtained by writing to the Free Software Foundation, Inc.,
13093 +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13096 +# serial 56 LT_INIT
13100 -AC_DEFUN([AC_PROG_LIBTOOL],
13101 -[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
13102 -dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
13103 -dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
13104 - AC_PROVIDE_IFELSE([AC_PROG_CXX],
13105 - [AC_LIBTOOL_CXX],
13106 - [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
13108 -dnl And a similar setup for Fortran 77 support
13109 - AC_PROVIDE_IFELSE([AC_PROG_F77],
13110 - [AC_LIBTOOL_F77],
13111 - [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
13114 -dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
13115 -dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
13116 -dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
13117 - AC_PROVIDE_IFELSE([AC_PROG_GCJ],
13118 - [AC_LIBTOOL_GCJ],
13119 - [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
13120 - [AC_LIBTOOL_GCJ],
13121 - [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
13122 - [AC_LIBTOOL_GCJ],
13123 - [ifdef([AC_PROG_GCJ],
13124 - [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
13125 - ifdef([A][M_PROG_GCJ],
13126 - [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
13127 - ifdef([LT_AC_PROG_GCJ],
13128 - [define([LT_AC_PROG_GCJ],
13129 - defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
13130 -])])# AC_PROG_LIBTOOL
13132 +# LT_PREREQ(VERSION)
13133 +# ------------------
13134 +# Complain and exit if this libtool version is less that VERSION.
13135 +m4_defun([LT_PREREQ],
13136 +[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
13137 + [m4_default([$3],
13138 + [m4_fatal([Libtool version $1 or higher is required],
13142 -# _AC_PROG_LIBTOOL
13143 -# ----------------
13144 -AC_DEFUN([_AC_PROG_LIBTOOL],
13145 -[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
13146 -AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
13147 -AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
13148 -AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
13150 +# _LT_CHECK_BUILDDIR
13151 +# ------------------
13152 +# Complain if the absolute build directory name contains unusual characters
13153 +m4_defun([_LT_CHECK_BUILDDIR],
13156 + AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
13161 +# LT_INIT([OPTIONS])
13162 +# ------------------
13163 +AC_DEFUN([LT_INIT],
13164 +[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
13165 +AC_BEFORE([$0], [LT_LANG])dnl
13166 +AC_BEFORE([$0], [LT_OUTPUT])dnl
13167 +AC_BEFORE([$0], [LTDL_INIT])dnl
13168 +m4_require([_LT_CHECK_BUILDDIR])dnl
13170 +dnl Autoconf doesn't catch unexpanded LT_ macros by default:
13171 +m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
13172 +m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
13173 +dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
13174 +dnl unless we require an AC_DEFUNed macro:
13175 +AC_REQUIRE([LTOPTIONS_VERSION])dnl
13176 +AC_REQUIRE([LTSUGAR_VERSION])dnl
13177 +AC_REQUIRE([LTVERSION_VERSION])dnl
13178 +AC_REQUIRE([LTOBSOLETE_VERSION])dnl
13179 +m4_require([_LT_PROG_LTMAIN])dnl
13182 +_LT_SET_OPTIONS([$0], [$1])
13184 # This can be used to rebuild libtool when needed
13185 -LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
13186 +LIBTOOL_DEPS="$ltmain"
13188 # Always use our own libtool.
13189 -LIBTOOL='$(SHELL) $(top_builddir)/libtool'
13190 +LIBTOOL='$(SHELL) $(top_builddir)'
13191 +LIBTOOL="$LIBTOOL/$host_alias-libtool"
13192 AC_SUBST(LIBTOOL)dnl
13194 -# Prevent multiple expansion
13195 -define([AC_PROG_LIBTOOL], [])
13196 -])# _AC_PROG_LIBTOOL
13199 +# Only expand once:
13200 +m4_define([LT_INIT])
13204 +AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
13205 +AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
13206 +dnl aclocal-1.4 backwards compatibility:
13207 +dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
13208 +dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
13210 -# AC_LIBTOOL_SETUP
13211 -# ----------------
13212 -AC_DEFUN([AC_LIBTOOL_SETUP],
13213 -[AC_PREREQ(2.50)dnl
13214 -AC_REQUIRE([AC_ENABLE_SHARED])dnl
13215 -AC_REQUIRE([AC_ENABLE_STATIC])dnl
13216 -AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
13217 -AC_REQUIRE([AC_CANONICAL_HOST])dnl
13219 +# _LT_CC_BASENAME(CC)
13220 +# -------------------
13221 +# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
13222 +m4_defun([_LT_CC_BASENAME],
13223 +[for cc_temp in $1""; do
13225 + compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
13226 + distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
13231 +cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13235 +# _LT_FILEUTILS_DEFAULTS
13236 +# ----------------------
13237 +# It is okay to use these file commands and assume they have been set
13238 +# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
13239 +m4_defun([_LT_FILEUTILS_DEFAULTS],
13243 +])# _LT_FILEUTILS_DEFAULTS
13248 +m4_defun([_LT_SETUP],
13249 +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
13250 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
13251 +_LT_DECL([], [host_alias], [0], [The host system])dnl
13252 +_LT_DECL([], [host], [0])dnl
13253 +_LT_DECL([], [host_os], [0])dnl
13255 +_LT_DECL([], [build_alias], [0], [The build system])dnl
13256 +_LT_DECL([], [build], [0])dnl
13257 +_LT_DECL([], [build_os], [0])dnl
13259 AC_REQUIRE([AC_PROG_CC])dnl
13260 -AC_REQUIRE([AC_PROG_LD])dnl
13261 -AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
13262 -AC_REQUIRE([AC_PROG_NM])dnl
13264 +AC_REQUIRE([LT_PATH_LD])dnl
13265 +AC_REQUIRE([LT_PATH_NM])dnl
13267 AC_REQUIRE([AC_PROG_LN_S])dnl
13268 -AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
13269 -# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13270 -AC_REQUIRE([AC_OBJEXT])dnl
13271 -AC_REQUIRE([AC_EXEEXT])dnl
13272 +test -z "$LN_S" && LN_S="ln -s"
13273 +_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
13275 +AC_REQUIRE([LT_CMD_MAX_LEN])dnl
13276 +_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
13277 +_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
13279 +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
13280 +m4_require([_LT_CHECK_SHELL_FEATURES])dnl
13281 +m4_require([_LT_CMD_RELOAD])dnl
13282 +m4_require([_LT_CHECK_MAGIC_METHOD])dnl
13283 +m4_require([_LT_CMD_OLD_ARCHIVE])dnl
13284 +m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
13286 +_LT_CONFIG_LIBTOOL_INIT([
13287 +# See if we are running on zsh, and set the options which allow our
13288 +# commands through without removal of \ escapes INIT.
13289 +if test -n "\${ZSH_VERSION+set}" ; then
13290 + setopt NO_GLOB_SUBST
13293 +if test -n "${ZSH_VERSION+set}" ; then
13294 + setopt NO_GLOB_SUBST
13297 -AC_LIBTOOL_SYS_MAX_CMD_LEN
13298 -AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
13302 -AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
13303 -_LT_AC_PROG_ECHO_BACKSLASH
13304 +m4_require([_LT_TAG_COMPILER])dnl
13305 +_LT_PROG_ECHO_BACKSLASH
13309 @@ -117,6307 +196,6803 @@ esac
13311 # Sed substitution that helps us do robust quoting. It backslashifies
13312 # metacharacters that are still active within double-quoted strings.
13313 -Xsed='sed -e 1s/^X//'
13314 -[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
13315 +sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
13317 # Same as above, but do not quote variable references.
13318 -[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
13319 +double_quote_subst='s/\([["`\\]]\)/\\\1/g'
13321 # Sed substitution to delay expansion of an escaped shell variable in a
13322 # double_quote_subst'ed string.
13323 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13325 +# Sed substitution to delay expansion of an escaped single quote.
13326 +delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
13328 # Sed substitution to avoid accidental globbing in evaled expressions
13329 no_glob_subst='s/\*/\\\*/g'
13334 # Global variables:
13335 -default_ofile=libtool
13336 +ofile=${host_alias}-libtool
13337 can_build_shared=yes
13339 # All known linkers require a `.a' archive for static linking (except MSVC,
13340 # which needs '.lib').
13342 -ltmain="$ac_aux_dir/ltmain.sh"
13343 -ofile="$default_ofile"
13344 -with_gnu_ld="$lt_cv_prog_gnu_ld"
13346 -AC_CHECK_TOOL(AR, ar, false)
13347 -AC_CHECK_TOOL(RANLIB, ranlib, :)
13348 -AC_CHECK_TOOL(STRIP, strip, :)
13349 +with_gnu_ld="$lt_cv_prog_gnu_ld"
13352 old_CFLAGS="$CFLAGS"
13354 # Set sane defaults for various variables
13355 -test -z "$AR" && AR=ar
13356 -test -z "$AR_FLAGS" && AR_FLAGS=cru
13357 -test -z "$AS" && AS=as
13358 test -z "$CC" && CC=cc
13359 test -z "$LTCC" && LTCC=$CC
13360 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13361 -test -z "$DLLTOOL" && DLLTOOL=dlltool
13362 test -z "$LD" && LD=ld
13363 -test -z "$LN_S" && LN_S="ln -s"
13364 -test -z "$MAGIC_CMD" && MAGIC_CMD=file
13365 -test -z "$NM" && NM=nm
13366 -test -z "$SED" && SED=sed
13367 -test -z "$OBJDUMP" && OBJDUMP=objdump
13368 -test -z "$RANLIB" && RANLIB=:
13369 -test -z "$STRIP" && STRIP=:
13370 test -z "$ac_objext" && ac_objext=o
13372 -# Determine commands to create old-style static archives.
13373 -old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
13374 -old_postinstall_cmds='chmod 644 $oldlib'
13375 -old_postuninstall_cmds=
13377 -if test -n "$RANLIB"; then
13380 - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13383 - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13386 - old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13389 _LT_CC_BASENAME([$compiler])
13391 # Only perform the check for file, if the check method requires it
13392 +test -z "$MAGIC_CMD" && MAGIC_CMD=file
13393 case $deplibs_check_method in
13395 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13402 -AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
13403 -AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
13404 -enable_win32_dll=yes, enable_win32_dll=no)
13406 -AC_ARG_ENABLE([libtool-lock],
13407 - [AC_HELP_STRING([--disable-libtool-lock],
13408 - [avoid locking (might break parallel builds)])])
13409 -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13410 +# Use C for the default configuration in the libtool script
13411 +LT_SUPPORTED_TAG([CC])
13413 +_LT_LANG_DEFAULT_CONFIG
13414 +_LT_CONFIG_COMMANDS
13417 -AC_ARG_WITH([pic],
13418 - [AC_HELP_STRING([--with-pic],
13419 - [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
13420 - [pic_mode="$withval"],
13421 - [pic_mode=default])
13422 -test -z "$pic_mode" && pic_mode=default
13424 -# Use C for the default configuration in the libtool script
13426 -AC_LIBTOOL_LANG_C_CONFIG
13428 -])# AC_LIBTOOL_SETUP
13431 +# Note that this code is called both from `configure', and `config.status'
13432 +# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
13433 +# `config.status' has no value for ac_aux_dir unless we are using Automake,
13434 +# so we pass a copy along to make sure it has a sensible value anyway.
13435 +m4_defun([_LT_PROG_LTMAIN],
13436 +[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
13437 +_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
13438 +ltmain="$ac_aux_dir/ltmain.sh"
13439 +])# _LT_PROG_LTMAIN
13442 -# _LT_AC_SYS_COMPILER
13443 -# -------------------
13444 -AC_DEFUN([_LT_AC_SYS_COMPILER],
13445 -[AC_REQUIRE([AC_PROG_CC])dnl
13446 +## ------------------------------------- ##
13447 +## Accumulate code for creating libtool. ##
13448 +## ------------------------------------- ##
13450 +# So that we can recreate a full libtool script including additional
13451 +# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
13452 +# in macros and then make a single call at the end using the `libtool'
13456 +# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
13457 +# ----------------------------------------
13458 +# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
13459 +m4_define([_LT_CONFIG_LIBTOOL_INIT],
13461 + [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
13466 +m4_define([_LT_OUTPUT_LIBTOOL_INIT])
13469 +# _LT_CONFIG_LIBTOOL([COMMANDS])
13470 +# ------------------------------
13471 +# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
13472 +m4_define([_LT_CONFIG_LIBTOOL],
13474 + [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
13479 +m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
13482 +# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
13483 +# -----------------------------------------------------
13484 +m4_defun([_LT_CONFIG_SAVE_COMMANDS],
13485 +[_LT_CONFIG_LIBTOOL([$1])
13486 +_LT_CONFIG_LIBTOOL_INIT([$2])
13489 -# If no C compiler was specified, use CC.
13490 -LTCC=${LTCC-"$CC"}
13492 -# If no C compiler flags were specified, use CFLAGS.
13493 -LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13494 +# _LT_FORMAT_COMMENT([COMMENT])
13495 +# -----------------------------
13496 +# Add leading comment marks to the start of each line, and a trailing
13497 +# full-stop to the whole comment if one is not present already.
13498 +m4_define([_LT_FORMAT_COMMENT],
13500 +m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
13501 + [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
13504 -# Allow CC to be a program name with arguments.
13506 -])# _LT_AC_SYS_COMPILER
13509 -# _LT_CC_BASENAME(CC)
13510 -# -------------------
13511 -# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
13512 -AC_DEFUN([_LT_CC_BASENAME],
13513 -[for cc_temp in $1""; do
13515 - compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
13516 - distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
13521 -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13522 +## ------------------------ ##
13523 +## FIXME: Eliminate VARNAME ##
13524 +## ------------------------ ##
13527 +# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
13528 +# -------------------------------------------------------------------
13529 +# CONFIGNAME is the name given to the value in the libtool script.
13530 +# VARNAME is the (base) name used in the configure script.
13531 +# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
13532 +# VARNAME. Any other value will be used directly.
13533 +m4_define([_LT_DECL],
13534 +[lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
13535 + [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
13536 + [m4_ifval([$1], [$1], [$2])])
13537 + lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
13539 + [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
13540 + lt_dict_add_subkey([lt_decl_dict], [$2],
13541 + [tagged?], [m4_ifval([$5], [yes], [no])])])
13545 -# _LT_COMPILER_BOILERPLATE
13546 -# ------------------------
13547 -# Check for compiler boilerplate output or warnings with
13548 -# the simple compiler test code.
13549 -AC_DEFUN([_LT_COMPILER_BOILERPLATE],
13550 -[ac_outfile=conftest.$ac_objext
13551 -printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13552 -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13553 -_lt_compiler_boilerplate=`cat conftest.err`
13555 -])# _LT_COMPILER_BOILERPLATE
13557 +# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
13558 +# --------------------------------------------------------
13559 +m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
13562 +# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
13563 +# ------------------------------------------------
13564 +m4_define([lt_decl_tag_varnames],
13565 +[_lt_decl_filter([tagged?], [yes], $@)])
13568 +# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
13569 +# ---------------------------------------------------------
13570 +m4_define([_lt_decl_filter],
13572 + [0], [m4_fatal([$0: too few arguments: $#])],
13573 + [1], [m4_fatal([$0: too few arguments: $#: $1])],
13574 + [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
13575 + [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
13576 + [lt_dict_filter([lt_decl_dict], $@)])[]dnl
13579 -# _LT_LINKER_BOILERPLATE
13580 -# ----------------------
13581 -# Check for linker boilerplate output or warnings with
13582 -# the simple link test code.
13583 -AC_DEFUN([_LT_LINKER_BOILERPLATE],
13584 -[ac_outfile=conftest.$ac_objext
13585 -printf "$lt_simple_link_test_code" >conftest.$ac_ext
13586 -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13587 -_lt_linker_boilerplate=`cat conftest.err`
13589 -])# _LT_LINKER_BOILERPLATE
13591 +# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
13592 +# --------------------------------------------------
13593 +m4_define([lt_decl_quote_varnames],
13594 +[_lt_decl_filter([value], [1], $@)])
13597 +# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
13598 +# ---------------------------------------------------
13599 +m4_define([lt_decl_dquote_varnames],
13600 +[_lt_decl_filter([value], [2], $@)])
13603 +# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
13604 +# ---------------------------------------------------
13605 +m4_define([lt_decl_varnames_tagged],
13606 +[_$0(m4_quote(m4_default([$1], [[, ]])),
13607 + m4_quote(m4_if([$2], [],
13608 + m4_quote(lt_decl_tag_varnames),
13609 + m4_quote(m4_shift($@)))),
13610 + m4_split(m4_normalize(m4_quote(_LT_TAGS))))])
13611 +m4_define([_lt_decl_varnames_tagged], [lt_combine([$1], [$2], [_], $3)])
13614 +# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
13615 +# ------------------------------------------------
13616 +m4_define([lt_decl_all_varnames],
13617 +[_$0(m4_quote(m4_default([$1], [[, ]])),
13619 + m4_quote(lt_decl_varnames),
13620 + m4_quote(m4_shift($@))))[]dnl
13622 +m4_define([_lt_decl_all_varnames],
13623 +[lt_join($@, lt_decl_varnames_tagged([$1],
13624 + lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
13627 -# _LT_AC_SYS_LIBPATH_AIX
13628 -# ----------------------
13629 -# Links a minimal program and checks the executable
13630 -# for the system default hardcoded library path. In most cases,
13631 -# this is /usr/lib:/lib, but when the MPI compilers are used
13632 -# the location of the communication and MPI libs are included too.
13633 -# If we don't find anything, use the default library path according
13634 -# to the aix ld manual.
13635 -AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
13636 -[AC_LINK_IFELSE(AC_LANG_PROGRAM,[
13637 -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13639 -# Check for a 64-bit object if we didn't find anything.
13640 -if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13642 -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13643 -])# _LT_AC_SYS_LIBPATH_AIX
13645 +# _LT_CONFIG_STATUS_DECLARE([VARNAME])
13646 +# ------------------------------------
13647 +# Quote a variable value, and forward it to `config.status' so that its
13648 +# declaration there will have the same value as in `configure'. VARNAME
13649 +# must have a single quote delimited value for this to work.
13650 +m4_define([_LT_CONFIG_STATUS_DECLARE],
13651 +[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
13653 -# _LT_AC_SHELL_INIT(ARG)
13654 -# ----------------------
13655 -AC_DEFUN([_LT_AC_SHELL_INIT],
13656 -[ifdef([AC_DIVERSION_NOTICE],
13657 - [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
13658 - [AC_DIVERT_PUSH(NOTICE)])
13661 -])# _LT_AC_SHELL_INIT
13663 +# _LT_CONFIG_STATUS_DECLARATIONS
13664 +# ------------------------------
13665 +# We delimit libtool config variables with single quotes, so when
13666 +# we write them to config.status, we have to be sure to quote all
13667 +# embedded single quotes properly. In configure, this macro expands
13668 +# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
13670 +# <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
13671 +m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
13672 +[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
13673 + [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
13675 -# _LT_AC_PROG_ECHO_BACKSLASH
13676 -# --------------------------
13677 -# Add some code to the start of the generated configure script which
13678 -# will find an echo command which doesn't interpret backslashes.
13679 -AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
13680 -[_LT_AC_SHELL_INIT([
13681 -# Check that we are running under the correct shell.
13682 -SHELL=${CONFIG_SHELL-/bin/sh}
13685 -X*--fallback-echo)
13686 - # Remove one level of quotation (which was required for Make).
13687 - ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
13690 +# _LT_LIBTOOL_TAGS
13691 +# ----------------
13692 +# Output comment and list of tags supported by the script
13693 +m4_defun([_LT_LIBTOOL_TAGS],
13694 +[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
13695 +available_tags="_LT_TAGS"dnl
13699 -if test "X[$]1" = X--no-reexec; then
13700 - # Discard the --no-reexec flag, and continue.
13702 -elif test "X[$]1" = X--fallback-echo; then
13703 - # Avoid inline document here, it may be left over
13705 -elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
13706 - # Yippee, $echo works!
13709 - # Restart under the correct shell.
13710 - exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
13713 -if test "X[$]1" = X--fallback-echo; then
13714 - # used as fallback echo
13721 +# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
13722 +# -----------------------------------
13723 +# Extract the dictionary values for VARNAME (optionally with TAG) and
13724 +# expand to a commented shell variable setting:
13726 +# # Some comment about what VAR is for.
13727 +# visible_name=$lt_internal_name
13728 +m4_define([_LT_LIBTOOL_DECLARE],
13729 +[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
13730 + [description])))[]dnl
13731 +m4_pushdef([_libtool_name],
13732 + m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
13733 +m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
13734 + [0], [_libtool_name=[$]$1],
13735 + [1], [_libtool_name=$lt_[]$1],
13736 + [2], [_libtool_name=$lt_[]$1],
13737 + [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
13738 +m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
13741 -# The HP-UX ksh and POSIX shell print the target directory to stdout
13742 -# if CDPATH is set.
13743 -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13745 -if test -z "$ECHO"; then
13746 -if test "X${echo_test_string+set}" != Xset; then
13747 -# find a string as large as possible, as long as the shell can cope with it
13748 - for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
13749 - # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
13750 - if (echo_test_string=`eval $cmd`) 2>/dev/null &&
13751 - echo_test_string=`eval $cmd` &&
13752 - (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
13758 +# _LT_LIBTOOL_CONFIG_VARS
13759 +# -----------------------
13760 +# Produce commented declarations of non-tagged libtool config variables
13761 +# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
13762 +# script. Tagged libtool config variables (even for the LIBTOOL CONFIG
13763 +# section) are produced by _LT_LIBTOOL_TAG_VARS.
13764 +m4_defun([_LT_LIBTOOL_CONFIG_VARS],
13765 +[m4_foreach([_lt_var],
13766 + m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
13767 + [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
13769 -if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
13770 - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
13771 - test "X$echo_testing_string" = "X$echo_test_string"; then
13774 - # The Solaris, AIX, and Digital Unix default echo programs unquote
13775 - # backslashes. This makes it impossible to quote backslashes using
13776 - # echo "$something" | sed 's/\\/\\\\/g'
13778 - # So, first we look for a working echo in the user's PATH.
13780 - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13781 - for dir in $PATH /usr/ucb; do
13782 - IFS="$lt_save_ifs"
13783 - if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
13784 - test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
13785 - echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
13786 - test "X$echo_testing_string" = "X$echo_test_string"; then
13791 - IFS="$lt_save_ifs"
13792 +# _LT_LIBTOOL_TAG_VARS(TAG)
13793 +# -------------------------
13794 +m4_define([_LT_LIBTOOL_TAG_VARS],
13795 +[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
13796 + [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
13798 - if test "X$echo" = Xecho; then
13799 - # We didn't find a better echo, so look for alternatives.
13800 - if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
13801 - echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
13802 - test "X$echo_testing_string" = "X$echo_test_string"; then
13803 - # This shell has a builtin print -r that does the trick.
13805 - elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
13806 - test "X$CONFIG_SHELL" != X/bin/ksh; then
13807 - # If we have ksh, try running configure again with it.
13808 - ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
13809 - export ORIGINAL_CONFIG_SHELL
13810 - CONFIG_SHELL=/bin/ksh
13811 - export CONFIG_SHELL
13812 - exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
13814 - # Try using printf.
13815 - echo='printf %s\n'
13816 - if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
13817 - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
13818 - test "X$echo_testing_string" = "X$echo_test_string"; then
13819 - # Cool, printf works
13821 - elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
13822 - test "X$echo_testing_string" = 'X\t' &&
13823 - echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
13824 - test "X$echo_testing_string" = "X$echo_test_string"; then
13825 - CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
13826 - export CONFIG_SHELL
13827 - SHELL="$CONFIG_SHELL"
13829 - echo="$CONFIG_SHELL [$]0 --fallback-echo"
13830 - elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
13831 - test "X$echo_testing_string" = 'X\t' &&
13832 - echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
13833 - test "X$echo_testing_string" = "X$echo_test_string"; then
13834 - echo="$CONFIG_SHELL [$]0 --fallback-echo"
13836 - # maybe with a smaller string...
13839 - for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
13840 - if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
13846 +# _LT_TAGVAR(VARNAME, [TAGNAME])
13847 +# ------------------------------
13848 +m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
13850 - if test "$prev" != 'sed 50q "[$]0"'; then
13851 - echo_test_string=`eval $prev`
13852 - export echo_test_string
13853 - exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
13855 - # Oops. We lost completely, so just stick with echo.
13864 -# Copy echo and quote the copy suitably for passing to libtool from
13865 -# the Makefile, instead of quoting the original, which is used later.
13867 -if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
13868 - ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
13870 +# _LT_CONFIG_COMMANDS
13871 +# -------------------
13872 +# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
13873 +# variables for single and double quote escaping we saved from calls
13874 +# to _LT_DECL, we can put quote escaped variables declarations
13875 +# into `config.status', and then the shell code to quote escape them in
13876 +# for loops in `config.status'. Finally, any additional code accumulated
13877 +# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
13878 +m4_defun([_LT_CONFIG_COMMANDS],
13879 +[AC_PROVIDE_IFELSE([LT_OUTPUT],
13880 + dnl If the libtool generation code has been placed in $CONFIG_LT,
13881 + dnl instead of duplicating it all over again into config.status,
13882 + dnl then we will have config.status run $CONFIG_LT later, so it
13883 + dnl needs to know what name is stored there:
13884 + [AC_CONFIG_COMMANDS([libtool],
13885 + [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
13886 + dnl If the libtool generation code is destined for config.status,
13887 + dnl expand the accumulated commands and init code now:
13888 + [AC_CONFIG_COMMANDS([libtool],
13889 + [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
13890 +])#_LT_CONFIG_COMMANDS
13893 -])])# _LT_AC_PROG_ECHO_BACKSLASH
13896 +m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
13901 -AC_DEFUN([_LT_AC_LOCK],
13902 -[AC_ARG_ENABLE([libtool-lock],
13903 - [AC_HELP_STRING([--disable-libtool-lock],
13904 - [avoid locking (might break parallel builds)])])
13905 -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13906 +# The HP-UX ksh and POSIX shell print the target directory to stdout
13907 +# if CDPATH is set.
13908 +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13910 -# Some flags need to be propagated to the compiler or linker for good
13911 -# libtool support.
13914 - # Find out which ABI we are using.
13915 - echo 'int i;' > conftest.$ac_ext
13916 - if AC_TRY_EVAL(ac_compile); then
13917 - case `/usr/bin/file conftest.$ac_objext` in
13919 - HPUX_IA64_MODE="32"
13922 - HPUX_IA64_MODE="64"
13929 - # Find out which ABI we are using.
13930 - echo '[#]line __oline__ "configure"' > conftest.$ac_ext
13931 - if AC_TRY_EVAL(ac_compile); then
13932 - if test "$lt_cv_prog_gnu_ld" = yes; then
13933 - case `/usr/bin/file conftest.$ac_objext` in
13935 - LD="${LD-ld} -melf32bsmip"
13938 - LD="${LD-ld} -melf32bmipn32"
13939 +sed_quote_subst='$sed_quote_subst'
13940 +double_quote_subst='$double_quote_subst'
13941 +delay_variable_subst='$delay_variable_subst'
13942 +_LT_CONFIG_STATUS_DECLARATIONS
13944 +LTCFLAGS='$LTCFLAGS'
13945 +compiler='$compiler_DEFAULT'
13947 +# Quote evaled strings.
13948 +for var in lt_decl_all_varnames([[ \
13949 +]], lt_decl_quote_varnames); do
13950 + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13951 + *[[\\\\\\\`\\"\\\$]]*)
13952 + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13955 - LD="${LD-ld} -melf64bmip"
13957 + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13961 - case `/usr/bin/file conftest.$ac_objext` in
13963 - LD="${LD-ld} -32"
13966 - LD="${LD-ld} -n32"
13969 +# Double-quote double-evaled strings.
13970 +for var in lt_decl_all_varnames([[ \
13971 +]], lt_decl_dquote_varnames); do
13972 + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13973 + *[[\\\\\\\`\\"\\\$]]*)
13974 + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13977 - LD="${LD-ld} -64"
13979 + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13987 +# Fix-up fallback echo if it was mangled by the above quoting rules.
13989 +*'\\\[$]0 --fallback-echo"')dnl "
13990 + lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
13994 -x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
13995 - # Find out which ABI we are using.
13996 - echo 'int i;' > conftest.$ac_ext
13997 - if AC_TRY_EVAL(ac_compile); then
13998 - case `/usr/bin/file conftest.o` in
14002 - LD="${LD-ld} -m elf_i386"
14004 - ppc64-*linux*|powerpc64-*linux*)
14005 - LD="${LD-ld} -m elf32ppclinux"
14008 - LD="${LD-ld} -m elf_s390"
14011 - LD="${LD-ld} -m elf32_sparc"
14018 - LD="${LD-ld} -m elf_x86_64"
14020 - ppc*-*linux*|powerpc*-*linux*)
14021 - LD="${LD-ld} -m elf64ppc"
14024 - LD="${LD-ld} -m elf64_s390"
14027 - LD="${LD-ld} -m elf64_sparc"
14035 +_LT_OUTPUT_LIBTOOL_INIT
14039 - # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14040 - SAVE_CFLAGS="$CFLAGS"
14041 - CFLAGS="$CFLAGS -belf"
14042 - AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
14044 - AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
14046 - if test x"$lt_cv_cc_needs_belf" != x"yes"; then
14047 - # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14048 - CFLAGS="$SAVE_CFLAGS"
14052 - # Find out which ABI we are using.
14053 - echo 'int i;' > conftest.$ac_ext
14054 - if AC_TRY_EVAL(ac_compile); then
14055 - case `/usr/bin/file conftest.o` in
14057 - case $lt_cv_prog_gnu_ld in
14058 - yes*) LD="${LD-ld} -m elf64_sparc" ;;
14059 - *) LD="${LD-ld} -64" ;;
14067 -AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
14068 -[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
14069 - AC_CHECK_TOOL(DLLTOOL, dlltool, false)
14070 - AC_CHECK_TOOL(AS, as, false)
14071 - AC_CHECK_TOOL(OBJDUMP, objdump, false)
14077 +# This macro allows early generation of the libtool script (before
14078 +# AC_OUTPUT is called), incase it is used in configure for compilation
14080 +AC_DEFUN([LT_OUTPUT],
14081 +[: ${CONFIG_LT=./config.lt}
14082 +AC_MSG_NOTICE([creating $CONFIG_LT])
14083 +cat >"$CONFIG_LT" <<_LTEOF
14085 +# Generated by $as_me.
14086 +# Run this file to recreate a libtool stub with the current configuration.
14088 +lt_cl_silent=false
14089 +SHELL=\${CONFIG_SHELL-$SHELL}
14092 +cat >>"$CONFIG_LT" <<\_LTEOF
14096 -need_locks="$enable_libtool_lock"
14097 +exec AS_MESSAGE_FD>&1
14098 +exec AS_MESSAGE_LOG_FD>>config.log
14101 + AS_BOX([Running $as_me.])
14102 +} >&AS_MESSAGE_LOG_FD
14105 +\`$as_me' creates a local libtool stub from the current configuration,
14106 +for use in further configure time tests before the real libtool is
14109 +Usage: $[0] [[OPTIONS]]
14111 + -h, --help print this help, then exit
14112 + -V, --version print version number, then exit
14113 + -q, --quiet do not print progress messages
14114 + -d, --debug don't remove temporary files
14116 +Report bugs to <bug-libtool@gnu.org>."
14119 +m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
14120 +m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
14121 +configured by $[0], generated by m4_PACKAGE_STRING.
14123 +Copyright (C) 2008 Free Software Foundation, Inc.
14124 +This config.lt script is free software; the Free Software Foundation
14125 +gives unlimited permision to copy, distribute and modify it."
14128 +while test $[#] != 0
14131 + --version | --v* | -V )
14132 + echo "$lt_cl_version"; exit 0 ;;
14133 + --help | --h* | -h )
14134 + echo "$lt_cl_help"; exit 0 ;;
14135 + --debug | --d* | -d )
14137 + --quiet | --q* | --silent | --s* | -q )
14138 + lt_cl_silent=: ;;
14140 + -*) AC_MSG_ERROR([unrecognized option: $[1]
14141 +Try \`$[0] --help' for more information.]) ;;
14143 -# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
14144 -# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
14145 -# ----------------------------------------------------------------
14146 -# Check whether the given compiler option works
14147 -AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
14148 -[AC_REQUIRE([LT_AC_PROG_SED])
14149 -AC_CACHE_CHECK([$1], [$2],
14151 - ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
14152 - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14153 - lt_compiler_flag="$3"
14154 - # Insert the option either (1) after the last *FLAGS variable, or
14155 - # (2) before a word containing "conftest.", or (3) at the end.
14156 - # Note that $ac_compile itself does not contain backslashes and begins
14157 - # with a dollar sign (not a hyphen), so the echo should work correctly.
14158 - # The option is referenced via a variable to avoid confusing sed.
14159 - lt_compile=`echo "$ac_compile" | $SED \
14160 - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14161 - -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
14162 - -e 's:$: $lt_compiler_flag:'`
14163 - (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
14164 - (eval "$lt_compile" 2>conftest.err)
14166 - cat conftest.err >&AS_MESSAGE_LOG_FD
14167 - echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
14168 - if (exit $ac_status) && test -s "$ac_outfile"; then
14169 - # The compiler can only warn and ignore the option if not recognized
14170 - # So say no if there are warnings other than the usual output.
14171 - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14172 - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14173 - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14179 + *) AC_MSG_ERROR([unrecognized argument: $[1]
14180 +Try \`$[0] --help' for more information.]) ;;
14185 -if test x"[$]$2" = xyes; then
14186 - ifelse([$5], , :, [$5])
14188 - ifelse([$6], , :, [$6])
14189 +if $lt_cl_silent; then
14190 + exec AS_MESSAGE_FD>/dev/null
14192 -])# AC_LIBTOOL_COMPILER_OPTION
14195 -# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
14196 -# [ACTION-SUCCESS], [ACTION-FAILURE])
14197 -# ------------------------------------------------------------
14198 -# Check whether the given compiler option works
14199 -AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
14200 -[AC_CACHE_CHECK([$1], [$2],
14202 - save_LDFLAGS="$LDFLAGS"
14203 - LDFLAGS="$LDFLAGS $3"
14204 - printf "$lt_simple_link_test_code" > conftest.$ac_ext
14205 - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14206 - # The linker can only warn and ignore the option if not recognized
14207 - # So say no if there are warnings
14208 - if test -s conftest.err; then
14209 - # Append any errors to the config.log.
14210 - cat conftest.err 1>&AS_MESSAGE_LOG_FD
14211 - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14212 - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14213 - if diff conftest.exp conftest.er2 >/dev/null; then
14221 - LDFLAGS="$save_LDFLAGS"
14225 -if test x"[$]$2" = xyes; then
14226 - ifelse([$4], , :, [$4])
14228 - ifelse([$5], , :, [$5])
14229 +cat >>"$CONFIG_LT" <<_LTEOF
14230 +_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
14233 +cat >>"$CONFIG_LT" <<\_LTEOF
14234 +AC_MSG_NOTICE([creating $ofile])
14235 +_LT_OUTPUT_LIBTOOL_COMMANDS
14238 +chmod +x "$CONFIG_LT"
14240 +# configure is writing to config.log, but config.lt does its own redirection,
14241 +# appending to config.log, which fails on DOS, as config.log is still kept
14242 +# open by configure. Here we exec the FD to /dev/null, effectively closing
14243 +# config.log, so it can be properly (re)opened and appended to by config.lt.
14244 +if test "$no_create" != yes; then
14246 + test "$silent" = yes &&
14247 + lt_config_lt_args="$lt_config_lt_args --quiet"
14248 + exec AS_MESSAGE_LOG_FD>/dev/null
14249 + $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
14250 + exec AS_MESSAGE_LOG_FD>>config.log
14251 + $lt_cl_success || AS_EXIT(1)
14253 -])# AC_LIBTOOL_LINKER_OPTION
14257 -# AC_LIBTOOL_SYS_MAX_CMD_LEN
14258 -# --------------------------
14259 -AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
14260 -[# find the maximum length of command line arguments
14261 -AC_MSG_CHECKING([the maximum length of command line arguments])
14262 -AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
14264 - teststring="ABCD"
14266 - case $build_os in
14268 - # On DJGPP, this test can blow up pretty badly due to problems in libc
14269 - # (any single argument exceeding 2000 bytes causes a buffer overrun
14270 - # during glob expansion). Even if it were fixed, the result of this
14271 - # check would be larger than it should be.
14272 - lt_cv_sys_max_cmd_len=12288; # 12K is about right
14276 +# If TAG is the built-in tag, create an initial libtool script with a
14277 +# default configuration from the untagged config vars. Otherwise add code
14278 +# to config.status for appending the configuration named by TAG from the
14279 +# matching tagged config vars.
14280 +m4_defun([_LT_CONFIG],
14281 +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
14282 +_LT_CONFIG_SAVE_COMMANDS([
14283 + m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
14284 + m4_if(_LT_TAG, [C], [
14285 + # See if we are running on zsh, and set the options which allow our
14286 + # commands through without removal of \ escapes.
14287 + if test -n "${ZSH_VERSION+set}" ; then
14288 + setopt NO_GLOB_SUBST
14292 - # Under GNU Hurd, this test is not required because there is
14293 - # no limit to the length of command line arguments.
14294 - # Libtool will interpret -1 as no limit whatsoever
14295 - lt_cv_sys_max_cmd_len=-1;
14297 + cfgfile="${ofile}T"
14298 + trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14301 - cygwin* | mingw*)
14302 - # On Win9x/ME, this test blows up -- it succeeds, but takes
14303 - # about 5 minutes as the teststring grows exponentially.
14304 - # Worse, since 9x/ME are not pre-emptively multitasking,
14305 - # you end up with a "frozen" computer, even though with patience
14306 - # the test eventually succeeds (with a max line length of 256k).
14307 - # Instead, let's just punt: use the minimum linelength reported by
14308 - # all of the supported platforms: 8192 (on NT/2K/XP).
14309 - lt_cv_sys_max_cmd_len=8192;
14311 + cat <<_LT_EOF >> "$cfgfile"
14315 - # On AmigaOS with pdksh, this test takes hours, literally.
14316 - # So we just punt and use a minimum line length of 8192.
14317 - lt_cv_sys_max_cmd_len=8192;
14319 +# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14320 +# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14321 +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14322 +# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14327 - netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
14328 - # This has been around since 386BSD, at least. Likely further.
14329 - if test -x /sbin/sysctl; then
14330 - lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
14331 - elif test -x /usr/sbin/sysctl; then
14332 - lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
14334 - lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
14336 - # And add a safety zone
14337 - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
14338 - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
14340 +# ### BEGIN LIBTOOL CONFIG
14341 +_LT_LIBTOOL_CONFIG_VARS
14342 +_LT_LIBTOOL_TAG_VARS
14343 +# ### END LIBTOOL CONFIG
14346 - # We know the value 262144 and hardcode it with a safety zone (like BSD)
14347 - lt_cv_sys_max_cmd_len=196608
14352 - # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
14353 - # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
14354 - # nice to cause kernel panics so lets avoid the loop below.
14355 - # First set a reasonable default.
14356 - lt_cv_sys_max_cmd_len=16384
14358 - if test -x /sbin/sysconfig; then
14359 - case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
14360 - *1*) lt_cv_sys_max_cmd_len=-1 ;;
14365 - lt_cv_sys_max_cmd_len=102400
14367 - sysv5* | sco5v6* | sysv4.2uw2*)
14368 - kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
14369 - if test -n "$kargmax"; then
14370 - lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
14372 - lt_cv_sys_max_cmd_len=32768
14376 - # If test is not a shell built-in, we'll probably end up computing a
14377 - # maximum length that is only half of the actual maximum length, but
14379 - SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
14380 - while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
14381 - = "XX$teststring") >/dev/null 2>&1 &&
14382 - new_result=`expr "X$teststring" : ".*" 2>&1` &&
14383 - lt_cv_sys_max_cmd_len=$new_result &&
14384 - test $i != 17 # 1/2 MB should be enough
14387 - teststring=$teststring$teststring
14390 - # Add a significant safety factor because C++ compilers can tack on massive
14391 - # amounts of additional arguments before passing them to the linker.
14392 - # It appears as though 1/2 is a usable value.
14393 - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
14396 + cat <<\_LT_EOF >> "$cfgfile"
14397 +# AIX sometimes has problems with the GCC collect2 program. For some
14398 +# reason, if we set the COLLECT_NAMES environment variable, the problems
14399 +# vanish in a puff of smoke.
14400 +if test "X${COLLECT_NAMES+set}" != Xset; then
14402 + export COLLECT_NAMES
14408 -if test -n $lt_cv_sys_max_cmd_len ; then
14409 - AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
14411 - AC_MSG_RESULT(none)
14413 -])# AC_LIBTOOL_SYS_MAX_CMD_LEN
14417 -# _LT_AC_CHECK_DLFCN
14418 -# ------------------
14419 -AC_DEFUN([_LT_AC_CHECK_DLFCN],
14420 -[AC_CHECK_HEADERS(dlfcn.h)dnl
14421 -])# _LT_AC_CHECK_DLFCN
14422 + # We use sed instead of cat because bash on DJGPP gets confused if
14423 + # if finds mixed CR/LF and LF-only lines. Since sed operates in
14424 + # text mode, it properly converts lines to CR/LF. This bash problem
14425 + # is reportedly fixed, but why not run on old versions too?
14426 + sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14427 + || (rm -f "$cfgfile"; exit 1)
14429 + _LT_PROG_XSI_SHELLFNS
14431 -# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
14432 -# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
14433 -# ---------------------------------------------------------------------
14434 -AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
14435 -[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
14436 -if test "$cross_compiling" = yes; then :
14439 - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14440 - lt_status=$lt_dlunknown
14441 - cat > conftest.$ac_ext <<EOF
14442 -[#line __oline__ "configure"
14443 -#include "confdefs.h"
14444 + sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14445 + || (rm -f "$cfgfile"; exit 1)
14448 -#include <dlfcn.h>
14450 + mv -f "$cfgfile" "$ofile" ||
14451 + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14452 + chmod +x "$ofile"
14454 +[cat <<_LT_EOF >> "$ofile"
14456 -#include <stdio.h>
14457 +dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
14458 +dnl in a comment (ie after a #).
14459 +# ### BEGIN LIBTOOL TAG CONFIG: $1
14460 +_LT_LIBTOOL_TAG_VARS(_LT_TAG)
14461 +# ### END LIBTOOL TAG CONFIG: $1
14465 +[m4_if([$1], [], [
14466 + PACKAGE='$PACKAGE'
14467 + VERSION='$VERSION'
14468 + TIMESTAMP='$TIMESTAMP'
14470 + ofile='$ofile'], [])
14471 +])dnl /_LT_CONFIG_SAVE_COMMANDS
14475 +# LT_SUPPORTED_TAG(TAG)
14476 +# ---------------------
14477 +# Trace this macro to discover what tags are supported by the libtool
14478 +# --tag option, using:
14479 +# autoconf --trace 'LT_SUPPORTED_TAG:$1'
14480 +AC_DEFUN([LT_SUPPORTED_TAG], [])
14483 +# C support is built-in for now
14484 +m4_define([_LT_LANG_C_enabled], [])
14485 +m4_define([_LT_TAGS], [])
14487 -#ifdef RTLD_GLOBAL
14488 -# define LT_DLGLOBAL RTLD_GLOBAL
14491 -# define LT_DLGLOBAL DL_GLOBAL
14493 -# define LT_DLGLOBAL 0
14497 -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14498 - find out it does not work in some platform. */
14499 -#ifndef LT_DLLAZY_OR_NOW
14501 -# define LT_DLLAZY_OR_NOW RTLD_LAZY
14504 -# define LT_DLLAZY_OR_NOW DL_LAZY
14507 -# define LT_DLLAZY_OR_NOW RTLD_NOW
14510 -# define LT_DLLAZY_OR_NOW DL_NOW
14512 -# define LT_DLLAZY_OR_NOW 0
14520 +# Enable libtool support for the given language if not already enabled.
14521 +AC_DEFUN([LT_LANG],
14522 +[AC_BEFORE([$0], [LT_OUTPUT])dnl
14524 + [C], [_LT_LANG(C)],
14525 + [C++], [_LT_LANG(CXX)],
14526 + [Java], [_LT_LANG(GCJ)],
14527 + [Fortran 77], [_LT_LANG(F77)],
14528 + [Fortran], [_LT_LANG(FC)],
14529 + [Windows Resource], [_LT_LANG(RC)],
14530 + [m4_ifdef([_LT_LANG_]$1[_CONFIG],
14532 + [m4_fatal([$0: unsupported language: "$1"])])])dnl
14535 -#ifdef __cplusplus
14536 -extern "C" void exit (int);
14539 -void fnord() { int i=42;}
14542 - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14543 - int status = $lt_dlunknown;
14547 - if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14548 - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14549 - /* dlclose (self); */
14552 - puts (dlerror ());
14553 +# _LT_LANG(LANGNAME)
14554 +# ------------------
14555 +m4_defun([_LT_LANG],
14556 +[m4_ifdef([_LT_LANG_]$1[_enabled], [],
14557 + [LT_SUPPORTED_TAG([$1])dnl
14558 + m4_append([_LT_TAGS], [$1 ])dnl
14559 + m4_define([_LT_LANG_]$1[_enabled], [])dnl
14560 + _LT_LANG_$1_CONFIG($1)])dnl
14566 - if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
14567 - (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
14569 - case x$lt_status in
14570 - x$lt_dlno_uscore) $1 ;;
14571 - x$lt_dlneed_uscore) $2 ;;
14572 - x$lt_dlunknown|x*) $3 ;;
14575 - # compilation failed
14580 -])# _LT_AC_TRY_DLOPEN_SELF
14582 +# _LT_LANG_DEFAULT_CONFIG
14583 +# -----------------------
14584 +m4_defun([_LT_LANG_DEFAULT_CONFIG],
14585 +[AC_PROVIDE_IFELSE([AC_PROG_CXX],
14587 + [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
14589 +AC_PROVIDE_IFELSE([AC_PROG_F77],
14591 + [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
14593 +AC_PROVIDE_IFELSE([AC_PROG_FC],
14595 + [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
14597 +dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
14598 +dnl pulling things in needlessly.
14599 +AC_PROVIDE_IFELSE([AC_PROG_GCJ],
14601 + [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
14603 + [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
14605 + [m4_ifdef([AC_PROG_GCJ],
14606 + [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
14607 + m4_ifdef([A][M_PROG_GCJ],
14608 + [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
14609 + m4_ifdef([LT_PROG_GCJ],
14610 + [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
14612 +AC_PROVIDE_IFELSE([LT_PROG_RC],
14614 + [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
14615 +])# _LT_LANG_DEFAULT_CONFIG
14617 +# Obsolete macros:
14618 +AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
14619 +AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
14620 +AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
14621 +AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
14622 +dnl aclocal-1.4 backwards compatibility:
14623 +dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
14624 +dnl AC_DEFUN([AC_LIBTOOL_F77], [])
14625 +dnl AC_DEFUN([AC_LIBTOOL_FC], [])
14626 +dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
14628 -# AC_LIBTOOL_DLOPEN_SELF
14629 -# ----------------------
14630 -AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
14631 -[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
14632 -if test "x$enable_dlopen" != xyes; then
14633 - enable_dlopen=unknown
14634 - enable_dlopen_self=unknown
14635 - enable_dlopen_self_static=unknown
14638 - lt_cv_dlopen_libs=
14642 - lt_cv_dlopen="load_add_on"
14643 - lt_cv_dlopen_libs=
14644 - lt_cv_dlopen_self=yes
14646 +# _LT_TAG_COMPILER
14647 +# ----------------
14648 +m4_defun([_LT_TAG_COMPILER],
14649 +[AC_REQUIRE([AC_PROG_CC])dnl
14652 - lt_cv_dlopen="LoadLibrary"
14653 - lt_cv_dlopen_libs=
14655 +_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
14656 +_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
14657 +_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
14658 +_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
14661 - lt_cv_dlopen="dlopen"
14662 - lt_cv_dlopen_libs=
14664 +# If no C compiler was specified, use CC.
14665 +LTCC=${LTCC-"$CC"}
14668 - # if libdl is installed we need to link against it
14669 - AC_CHECK_LIB([dl], [dlopen],
14670 - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
14671 - lt_cv_dlopen="dyld"
14672 - lt_cv_dlopen_libs=
14673 - lt_cv_dlopen_self=yes
14676 +# If no C compiler flags were specified, use CFLAGS.
14677 +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14680 - AC_CHECK_FUNC([shl_load],
14681 - [lt_cv_dlopen="shl_load"],
14682 - [AC_CHECK_LIB([dld], [shl_load],
14683 - [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
14684 - [AC_CHECK_FUNC([dlopen],
14685 - [lt_cv_dlopen="dlopen"],
14686 - [AC_CHECK_LIB([dl], [dlopen],
14687 - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
14688 - [AC_CHECK_LIB([svld], [dlopen],
14689 - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
14690 - [AC_CHECK_LIB([dld], [dld_link],
14691 - [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
14699 +# Allow CC to be a program name with arguments.
14701 +])# _LT_TAG_COMPILER
14703 - if test "x$lt_cv_dlopen" != xno; then
14704 - enable_dlopen=yes
14709 - case $lt_cv_dlopen in
14711 - save_CPPFLAGS="$CPPFLAGS"
14712 - test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14713 +# _LT_COMPILER_BOILERPLATE
14714 +# ------------------------
14715 +# Check for compiler boilerplate output or warnings with
14716 +# the simple compiler test code.
14717 +m4_defun([_LT_COMPILER_BOILERPLATE],
14718 +[m4_require([_LT_DECL_SED])dnl
14719 +ac_outfile=conftest.$ac_objext
14720 +echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14721 +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14722 +_lt_compiler_boilerplate=`cat conftest.err`
14724 +])# _LT_COMPILER_BOILERPLATE
14726 - save_LDFLAGS="$LDFLAGS"
14727 - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14729 - save_LIBS="$LIBS"
14730 - LIBS="$lt_cv_dlopen_libs $LIBS"
14731 +# _LT_LINKER_BOILERPLATE
14732 +# ----------------------
14733 +# Check for linker boilerplate output or warnings with
14734 +# the simple link test code.
14735 +m4_defun([_LT_LINKER_BOILERPLATE],
14736 +[m4_require([_LT_DECL_SED])dnl
14737 +ac_outfile=conftest.$ac_objext
14738 +echo "$lt_simple_link_test_code" >conftest.$ac_ext
14739 +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14740 +_lt_linker_boilerplate=`cat conftest.err`
14742 +])# _LT_LINKER_BOILERPLATE
14744 - AC_CACHE_CHECK([whether a program can dlopen itself],
14745 - lt_cv_dlopen_self, [dnl
14746 - _LT_AC_TRY_DLOPEN_SELF(
14747 - lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
14748 - lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
14749 +# _LT_REQUIRED_DARWIN_CHECKS
14750 +# -------------------------
14751 +m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
14753 + rhapsody* | darwin*)
14754 + AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
14755 + AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
14756 + AC_CHECK_TOOL([LIPO], [lipo], [:])
14757 + AC_CHECK_TOOL([OTOOL], [otool], [:])
14758 + AC_CHECK_TOOL([OTOOL64], [otool64], [:])
14759 + _LT_DECL([], [DSYMUTIL], [1],
14760 + [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
14761 + _LT_DECL([], [NMEDIT], [1],
14762 + [Tool to change global to local symbols on Mac OS X])
14763 + _LT_DECL([], [LIPO], [1],
14764 + [Tool to manipulate fat objects and archives on Mac OS X])
14765 + _LT_DECL([], [OTOOL], [1],
14766 + [ldd/readelf like tool for Mach-O binaries on Mac OS X])
14767 + _LT_DECL([], [OTOOL64], [1],
14768 + [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
14770 + AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
14771 + [lt_cv_apple_cc_single_mod=no
14772 + if test -z "${LT_MULTI_MODULE}"; then
14773 + # By default we will add the -single_module flag. You can override
14774 + # by either setting the environment variable LT_MULTI_MODULE
14775 + # non-empty at configure time, or by adding -multi_module to the
14777 + rm -rf libconftest.dylib*
14778 + echo "int foo(void){return 1;}" > conftest.c
14779 + echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14780 +-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
14781 + $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14782 + -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14784 + if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14785 + lt_cv_apple_cc_single_mod=yes
14787 + cat conftest.err >&AS_MESSAGE_LOG_FD
14789 + rm -rf libconftest.dylib*
14792 + AC_CACHE_CHECK([for -exported_symbols_list linker flag],
14793 + [lt_cv_ld_exported_symbols_list],
14794 + [lt_cv_ld_exported_symbols_list=no
14795 + save_LDFLAGS=$LDFLAGS
14796 + echo "_main" > conftest.sym
14797 + LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14798 + AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
14799 + [lt_cv_ld_exported_symbols_list=yes],
14800 + [lt_cv_ld_exported_symbols_list=no])
14801 + LDFLAGS="$save_LDFLAGS"
14804 - if test "x$lt_cv_dlopen_self" = xyes; then
14805 - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14806 - AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
14807 - lt_cv_dlopen_self_static, [dnl
14808 - _LT_AC_TRY_DLOPEN_SELF(
14809 - lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
14810 - lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
14813 + rhapsody* | darwin1.[[012]])
14814 + _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14816 + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14817 + darwin*) # darwin 5.x on
14818 + # if running on 10.5 or later, the deployment target defaults
14819 + # to the OS version, if on x86, and 10.4, the deployment
14820 + # target defaults to 10.4. Don't you love it?
14821 + case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14822 + 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
14823 + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14825 + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14827 + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14831 + if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14832 + _lt_dar_single_mod='$single_module'
14834 + if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14835 + _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14837 + _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14839 + if test "$DSYMUTIL" != ":"; then
14840 + _lt_dsymutil='~$DSYMUTIL $lib || :'
14845 - CPPFLAGS="$save_CPPFLAGS"
14846 - LDFLAGS="$save_LDFLAGS"
14847 - LIBS="$save_LIBS"
14852 - case $lt_cv_dlopen_self in
14853 - yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14854 - *) enable_dlopen_self=unknown ;;
14857 - case $lt_cv_dlopen_self_static in
14858 - yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14859 - *) enable_dlopen_self_static=unknown ;;
14862 -])# AC_LIBTOOL_DLOPEN_SELF
14863 +# _LT_DARWIN_LINKER_FEATURES
14864 +# --------------------------
14865 +# Checks for linker and compiler features on darwin
14866 +m4_defun([_LT_DARWIN_LINKER_FEATURES],
14868 + m4_require([_LT_REQUIRED_DARWIN_CHECKS])
14869 + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
14870 + _LT_TAGVAR(hardcode_direct, $1)=no
14871 + _LT_TAGVAR(hardcode_automatic, $1)=yes
14872 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
14873 + _LT_TAGVAR(whole_archive_flag_spec, $1)=''
14874 + _LT_TAGVAR(link_all_deplibs, $1)=yes
14875 + _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
14876 + if test "$GCC" = "yes"; then
14877 + output_verbose_link_cmd=echo
14878 + _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}"
14879 + _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14880 + _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}"
14881 + _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}"
14882 + m4_if([$1], [CXX],
14883 +[ if test "$lt_cv_apple_cc_single_mod" != "yes"; then
14884 + _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}"
14885 + _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}"
14889 + _LT_TAGVAR(ld_shlibs, $1)=no
14893 +# _LT_SYS_MODULE_PATH_AIX
14894 +# -----------------------
14895 +# Links a minimal program and checks the executable
14896 +# for the system default hardcoded library path. In most cases,
14897 +# this is /usr/lib:/lib, but when the MPI compilers are used
14898 +# the location of the communication and MPI libs are included too.
14899 +# If we don't find anything, use the default library path according
14900 +# to the aix ld manual.
14901 +m4_defun([_LT_SYS_MODULE_PATH_AIX],
14902 +[m4_require([_LT_DECL_SED])dnl
14903 +AC_LINK_IFELSE(AC_LANG_PROGRAM,[
14904 +lt_aix_libpath_sed='
14905 + /Import File Strings/,/^$/ {
14907 + s/^0 *\(.*\)$/\1/
14911 +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14912 +# Check for a 64-bit object if we didn't find anything.
14913 +if test -z "$aix_libpath"; then
14914 + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14916 +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14917 +])# _LT_SYS_MODULE_PATH_AIX
14919 -# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
14920 -# ---------------------------------
14921 -# Check to see if options -c and -o are simultaneously supported by compiler
14922 -AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
14923 -[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
14924 -AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
14925 - [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
14926 - [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
14927 - $rm -r conftest 2>/dev/null
14931 - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14933 - lt_compiler_flag="-o out/conftest2.$ac_objext"
14934 - # Insert the option either (1) after the last *FLAGS variable, or
14935 - # (2) before a word containing "conftest.", or (3) at the end.
14936 - # Note that $ac_compile itself does not contain backslashes and begins
14937 - # with a dollar sign (not a hyphen), so the echo should work correctly.
14938 - lt_compile=`echo "$ac_compile" | $SED \
14939 - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14940 - -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
14941 - -e 's:$: $lt_compiler_flag:'`
14942 - (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
14943 - (eval "$lt_compile" 2>out/conftest.err)
14945 - cat out/conftest.err >&AS_MESSAGE_LOG_FD
14946 - echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
14947 - if (exit $ac_status) && test -s out/conftest2.$ac_objext
14949 - # The compiler can only warn and ignore the option if not recognized
14950 - # So say no if there are warnings
14951 - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14952 - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14953 - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14954 - _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
14957 - chmod u+w . 2>&AS_MESSAGE_LOG_FD
14959 - # SGI C++ compiler will create directory out/ii_files/ for
14960 - # template instantiation
14961 - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14962 - $rm out/* && rmdir out
14967 -])# AC_LIBTOOL_PROG_CC_C_O
14968 +# _LT_SHELL_INIT(ARG)
14969 +# -------------------
14970 +m4_define([_LT_SHELL_INIT],
14971 +[ifdef([AC_DIVERSION_NOTICE],
14972 + [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
14973 + [AC_DIVERT_PUSH(NOTICE)])
14976 +])# _LT_SHELL_INIT
14979 -# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
14980 -# -----------------------------------------
14981 -# Check to see if we can do hard links to lock some files if needed
14982 -AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
14983 -[AC_REQUIRE([_LT_AC_LOCK])dnl
14984 +# _LT_PROG_ECHO_BACKSLASH
14985 +# -----------------------
14986 +# Add some code to the start of the generated configure script which
14987 +# will find an echo command which doesn't interpret backslashes.
14988 +m4_defun([_LT_PROG_ECHO_BACKSLASH],
14990 +# Check that we are running under the correct shell.
14991 +SHELL=${CONFIG_SHELL-/bin/sh}
14993 -hard_links="nottested"
14994 -if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
14995 - # do not overwrite the value of need_locks provided by the user
14996 - AC_MSG_CHECKING([if we can lock with hard links])
14999 - ln conftest.a conftest.b 2>/dev/null && hard_links=no
15001 - ln conftest.a conftest.b 2>&5 || hard_links=no
15002 - ln conftest.a conftest.b 2>/dev/null && hard_links=no
15003 - AC_MSG_RESULT([$hard_links])
15004 - if test "$hard_links" = no; then
15005 - AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
15009 +X*--fallback-echo)
15010 + # Remove one level of quotation (which was required for Make).
15011 + ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
15015 +ECHO=${lt_ECHO-echo}
15016 +if test "X[$]1" = X--no-reexec; then
15017 + # Discard the --no-reexec flag, and continue.
15019 +elif test "X[$]1" = X--fallback-echo; then
15020 + # Avoid inline document here, it may be left over
15022 +elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
15023 + # Yippee, $ECHO works!
15027 + # Restart under the correct shell.
15028 + exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
15030 -])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
15033 -# AC_LIBTOOL_OBJDIR
15034 -# -----------------
15035 -AC_DEFUN([AC_LIBTOOL_OBJDIR],
15036 -[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
15037 -[rm -f .libs 2>/dev/null
15038 -mkdir .libs 2>/dev/null
15039 -if test -d .libs; then
15040 - lt_cv_objdir=.libs
15042 - # MS-DOS does not allow filenames that begin with a dot.
15043 - lt_cv_objdir=_libs
15044 +if test "X[$]1" = X--fallback-echo; then
15045 + # used as fallback echo
15052 -rmdir .libs 2>/dev/null])
15053 -objdir=$lt_cv_objdir
15054 -])# AC_LIBTOOL_OBJDIR
15056 +# The HP-UX ksh and POSIX shell print the target directory to stdout
15057 +# if CDPATH is set.
15058 +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15060 -# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
15061 -# ----------------------------------------------
15062 -# Check hardcoding attributes.
15063 -AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
15064 -[AC_MSG_CHECKING([how to hardcode library paths into programs])
15065 -_LT_AC_TAGVAR(hardcode_action, $1)=
15066 -if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
15067 - test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
15068 - test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
15070 - # We can hardcode non-existant directories.
15071 - if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
15072 - # If the only mechanism to avoid hardcoding is shlibpath_var, we
15073 - # have to relink, otherwise we might link with an installed library
15074 - # when we should be linking with a yet-to-be-installed one
15075 - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
15076 - test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
15077 - # Linking always hardcodes the temporary library directory.
15078 - _LT_AC_TAGVAR(hardcode_action, $1)=relink
15080 - # We can link without hardcoding, and we can hardcode nonexisting dirs.
15081 - _LT_AC_TAGVAR(hardcode_action, $1)=immediate
15082 +if test -z "$lt_ECHO"; then
15083 + if test "X${echo_test_string+set}" != Xset; then
15084 + # find a string as large as possible, as long as the shell can cope with it
15085 + for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
15086 + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
15087 + if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
15088 + { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
15095 - # We cannot hardcode anything, or else we can only hardcode existing
15097 - _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
15099 -AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
15101 -if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
15102 - # Fast installation is not supported
15103 - enable_fast_install=no
15104 -elif test "$shlibpath_overrides_runpath" = yes ||
15105 - test "$enable_shared" = no; then
15106 - # Fast installation is not necessary
15107 - enable_fast_install=needless
15109 -])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
15110 + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
15111 + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
15112 + test "X$echo_testing_string" = "X$echo_test_string"; then
15115 + # The Solaris, AIX, and Digital Unix default echo programs unquote
15116 + # backslashes. This makes it impossible to quote backslashes using
15117 + # echo "$something" | sed 's/\\/\\\\/g'
15119 + # So, first we look for a working echo in the user's PATH.
15121 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15122 + for dir in $PATH /usr/ucb; do
15123 + IFS="$lt_save_ifs"
15124 + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
15125 + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
15126 + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
15127 + test "X$echo_testing_string" = "X$echo_test_string"; then
15132 + IFS="$lt_save_ifs"
15134 -# AC_LIBTOOL_SYS_LIB_STRIP
15135 -# ------------------------
15136 -AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
15139 -AC_MSG_CHECKING([whether stripping libraries is possible])
15140 -if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15141 - test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15142 - test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15143 - AC_MSG_RESULT([yes])
15145 -# FIXME - insert some real tests, host_os isn't really good enough
15148 - if test -n "$STRIP" ; then
15149 - striplib="$STRIP -x"
15150 - AC_MSG_RESULT([yes])
15152 - AC_MSG_RESULT([no])
15156 - AC_MSG_RESULT([no])
15160 -])# AC_LIBTOOL_SYS_LIB_STRIP
15161 + if test "X$ECHO" = Xecho; then
15162 + # We didn't find a better echo, so look for alternatives.
15163 + if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
15164 + echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
15165 + test "X$echo_testing_string" = "X$echo_test_string"; then
15166 + # This shell has a builtin print -r that does the trick.
15168 + elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
15169 + test "X$CONFIG_SHELL" != X/bin/ksh; then
15170 + # If we have ksh, try running configure again with it.
15171 + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
15172 + export ORIGINAL_CONFIG_SHELL
15173 + CONFIG_SHELL=/bin/ksh
15174 + export CONFIG_SHELL
15175 + exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
15177 + # Try using printf.
15178 + ECHO='printf %s\n'
15179 + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
15180 + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
15181 + test "X$echo_testing_string" = "X$echo_test_string"; then
15182 + # Cool, printf works
15184 + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
15185 + test "X$echo_testing_string" = 'X\t' &&
15186 + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
15187 + test "X$echo_testing_string" = "X$echo_test_string"; then
15188 + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
15189 + export CONFIG_SHELL
15190 + SHELL="$CONFIG_SHELL"
15192 + ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
15193 + elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
15194 + test "X$echo_testing_string" = 'X\t' &&
15195 + echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
15196 + test "X$echo_testing_string" = "X$echo_test_string"; then
15197 + ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
15199 + # maybe with a smaller string...
15202 + for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
15203 + if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
15210 -# AC_LIBTOOL_SYS_DYNAMIC_LINKER
15211 -# -----------------------------
15212 -# PORTME Fill in your ld.so characteristics
15213 -AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
15214 -[AC_MSG_CHECKING([dynamic linker characteristics])
15215 -library_names_spec=
15216 -libname_spec='lib$name'
15220 -postuninstall_cmds=
15224 -shlibpath_overrides_runpath=unknown
15226 -dynamic_linker="$host_os ld.so"
15227 -sys_lib_dlsearch_path_spec="/lib /usr/lib"
15228 -if test "$GCC" = yes; then
15229 - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15230 - if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15231 - # if the path contains ";" then we assume it to be the separator
15232 - # otherwise default to the standard path separator (i.e. ":") - it is
15233 - # assumed that no part of a normal pathname contains ";" but that should
15234 - # okay in the real world where ";" in dirpaths is itself problematic.
15235 - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15237 - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15238 + if test "$prev" != 'sed 50q "[$]0"'; then
15239 + echo_test_string=`eval $prev`
15240 + export echo_test_string
15241 + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
15243 + # Oops. We lost completely, so just stick with echo.
15251 - sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15253 -need_lib_prefix=unknown
15254 -hardcode_into_libs=no
15256 -# when you set need_version to no, make sure it does not cause -set_version
15257 -# flags to be left without arguments
15258 -need_version=unknown
15259 +# Copy echo and quote the copy suitably for passing to libtool from
15260 +# the Makefile, instead of quoting the original, which is used later.
15262 +if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
15263 + lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
15268 - version_type=linux
15269 - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15270 - shlibpath_var=LIBPATH
15273 +_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
15274 +_LT_DECL([], [ECHO], [1],
15275 + [An echo program that does not interpret backslashes])
15276 +])# _LT_PROG_ECHO_BACKSLASH
15278 - # AIX 3 has no versioning support, so we append a major version to the name.
15279 - soname_spec='${libname}${release}${shared_ext}$major'
15283 - version_type=linux
15284 - need_lib_prefix=no
15286 - hardcode_into_libs=yes
15287 - if test "$host_cpu" = ia64; then
15288 - # AIX 5 supports IA64
15289 - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15290 - shlibpath_var=LD_LIBRARY_PATH
15292 - # With GCC up to 2.95.x, collect2 would create an import file
15293 - # for dependence libraries. The import file would start with
15294 - # the line `#! .'. This would cause the generated library to
15295 - # depend on `.', always an invalid library. This was fixed in
15296 - # development snapshots of GCC prior to 3.0.
15298 - aix4 | aix4.[[01]] | aix4.[[01]].*)
15299 - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15301 - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15304 - can_build_shared=no
15309 +m4_defun([_LT_ENABLE_LOCK],
15310 +[AC_ARG_ENABLE([libtool-lock],
15311 + [AS_HELP_STRING([--disable-libtool-lock],
15312 + [avoid locking (might break parallel builds)])])
15313 +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
15315 +# Some flags need to be propagated to the compiler or linker for good
15316 +# libtool support.
15319 + # Find out which ABI we are using.
15320 + echo 'int i;' > conftest.$ac_ext
15321 + if AC_TRY_EVAL(ac_compile); then
15322 + case `/usr/bin/file conftest.$ac_objext` in
15324 + HPUX_IA64_MODE="32"
15327 + HPUX_IA64_MODE="64"
15330 - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15331 - # soname into executable. Probably we can add versioning support to
15332 - # collect2, so additional links can be useful in future.
15333 - if test "$aix_use_runtimelinking" = yes; then
15334 - # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15335 - # instead of lib<name>.a to let people know that these are not
15336 - # typical AIX shared libraries.
15337 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15342 + # Find out which ABI we are using.
15343 + echo '[#]line __oline__ "configure"' > conftest.$ac_ext
15344 + if AC_TRY_EVAL(ac_compile); then
15345 + if test "$lt_cv_prog_gnu_ld" = yes; then
15346 + case `/usr/bin/file conftest.$ac_objext` in
15348 + LD="${LD-ld} -melf32bsmip"
15351 + LD="${LD-ld} -melf32bmipn32"
15354 + LD="${LD-ld} -melf64bmip"
15358 - # We preserve .a as extension for shared libraries through AIX4.2
15359 - # and later when we are not doing run time linking.
15360 - library_names_spec='${libname}${release}.a $libname.a'
15361 - soname_spec='${libname}${release}${shared_ext}$major'
15362 + case `/usr/bin/file conftest.$ac_objext` in
15364 + LD="${LD-ld} -32"
15367 + LD="${LD-ld} -n32"
15370 + LD="${LD-ld} -64"
15374 - shlibpath_var=LIBPATH
15380 - library_names_spec='$libname.ixlibrary $libname.a'
15381 - # Create ${libname}_ixlibrary.a entries in /sys/libs.
15382 - 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'
15383 +x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
15384 +s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
15385 + # Find out which ABI we are using.
15386 + echo 'int i;' > conftest.$ac_ext
15387 + if AC_TRY_EVAL(ac_compile); then
15388 + case `/usr/bin/file conftest.o` in
15391 + x86_64-*kfreebsd*-gnu)
15392 + LD="${LD-ld} -m elf_i386_fbsd"
15395 + LD="${LD-ld} -m elf_i386"
15397 + ppc64-*linux*|powerpc64-*linux*)
15398 + LD="${LD-ld} -m elf32ppclinux"
15401 + LD="${LD-ld} -m elf_s390"
15404 + LD="${LD-ld} -m elf32_sparc"
15410 + x86_64-*kfreebsd*-gnu)
15411 + LD="${LD-ld} -m elf_x86_64_fbsd"
15414 + LD="${LD-ld} -m elf_x86_64"
15416 + ppc*-*linux*|powerpc*-*linux*)
15417 + LD="${LD-ld} -m elf64ppc"
15419 + s390*-*linux*|s390*-*tpf*)
15420 + LD="${LD-ld} -m elf64_s390"
15423 + LD="${LD-ld} -m elf64_sparc"
15433 - library_names_spec='${libname}${shared_ext}'
15434 - dynamic_linker="$host_os ld.so"
15435 - shlibpath_var=LIBRARY_PATH
15437 + # On SCO OpenServer 5, we need -belf to get full-featured binaries.
15438 + SAVE_CFLAGS="$CFLAGS"
15439 + CFLAGS="$CFLAGS -belf"
15440 + AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
15442 + AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
15444 + if test x"$lt_cv_cc_needs_belf" != x"yes"; then
15445 + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
15446 + CFLAGS="$SAVE_CFLAGS"
15451 - version_type=linux
15453 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15454 - soname_spec='${libname}${release}${shared_ext}$major'
15455 - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15456 - shlibpath_var=LD_LIBRARY_PATH
15457 - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15458 - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15459 - # the default ld.so.conf also contains /usr/contrib/lib and
15460 - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15461 - # libtool to hard-code these into programs
15463 + # Find out which ABI we are using.
15464 + echo 'int i;' > conftest.$ac_ext
15465 + if AC_TRY_EVAL(ac_compile); then
15466 + case `/usr/bin/file conftest.o` in
15468 + case $lt_cv_prog_gnu_ld in
15469 + yes*) LD="${LD-ld} -m elf64_sparc" ;;
15471 + if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
15472 + LD="${LD-ld} -64"
15483 -cygwin* | mingw* | pw32*)
15484 - version_type=windows
15485 - shrext_cmds=".dll"
15487 - need_lib_prefix=no
15488 +need_locks="$enable_libtool_lock"
15489 +])# _LT_ENABLE_LOCK
15491 - case $GCC,$host_os in
15492 - yes,cygwin* | yes,mingw* | yes,pw32*)
15493 - library_names_spec='$libname.dll.a'
15494 - # DLL is installed to $(libdir)/../bin by postinstall_cmds
15495 - postinstall_cmds='base_file=`basename \${file}`~
15496 - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15497 - dldir=$destdir/`dirname \$dlpath`~
15498 - test -d \$dldir || mkdir -p \$dldir~
15499 - $install_prog $dir/$dlname \$dldir/$dlname~
15500 - chmod a+x \$dldir/$dlname'
15501 - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15502 - dlpath=$dir/\$dldll~
15504 - shlibpath_overrides_runpath=yes
15508 - # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15509 - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
15510 - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15513 - # MinGW DLLs use traditional 'lib' prefix
15514 - soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
15515 - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15516 - if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
15517 - # It is most probably a Windows format PATH printed by
15518 - # mingw gcc, but we are running on Cygwin. Gcc prints its search
15519 - # path with ; separators, and with drive letters. We can handle the
15520 - # drive letters (cygwin fileutils understands them), so leave them,
15521 - # especially as we might pass files found there to a mingw objdump,
15522 - # which wouldn't understand a cygwinified path. Ahh.
15523 - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15525 - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15529 - # pw32 DLLs use 'pw' prefix rather than 'lib'
15530 - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
15534 +# _LT_CMD_OLD_ARCHIVE
15535 +# -------------------
15536 +m4_defun([_LT_CMD_OLD_ARCHIVE],
15537 +[AC_CHECK_TOOL(AR, ar, false)
15538 +test -z "$AR" && AR=ar
15539 +test -z "$AR_FLAGS" && AR_FLAGS=cru
15540 +_LT_DECL([], [AR], [1], [The archiver])
15541 +_LT_DECL([], [AR_FLAGS], [1])
15543 +AC_CHECK_TOOL(STRIP, strip, :)
15544 +test -z "$STRIP" && STRIP=:
15545 +_LT_DECL([], [STRIP], [1], [A symbol stripping program])
15547 +AC_CHECK_TOOL(RANLIB, ranlib, :)
15548 +test -z "$RANLIB" && RANLIB=:
15549 +_LT_DECL([], [RANLIB], [1],
15550 + [Commands used to install an old-style archive])
15552 +# Determine commands to create old-style static archives.
15553 +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
15554 +old_postinstall_cmds='chmod 644 $oldlib'
15555 +old_postuninstall_cmds=
15557 +if test -n "$RANLIB"; then
15560 + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
15563 - library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
15564 + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
15567 - dynamic_linker='Win32 ld.exe'
15568 - # FIXME: first we should search . and the directory the executable is in
15569 - shlibpath_var=PATH
15571 + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
15573 +_LT_DECL([], [old_postinstall_cmds], [2])
15574 +_LT_DECL([], [old_postuninstall_cmds], [2])
15575 +_LT_TAGDECL([], [old_archive_cmds], [2],
15576 + [Commands used to build an old-style archive])
15577 +])# _LT_CMD_OLD_ARCHIVE
15579 -darwin* | rhapsody*)
15580 - dynamic_linker="$host_os dyld"
15581 - version_type=darwin
15582 - need_lib_prefix=no
15584 - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15585 - soname_spec='${libname}${release}${major}$shared_ext'
15586 - shlibpath_overrides_runpath=yes
15587 - shlibpath_var=DYLD_LIBRARY_PATH
15588 - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15589 - # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15590 - if test "$GCC" = yes; then
15591 - sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
15593 - sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15595 - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15599 - version_type=linux
15600 - need_lib_prefix=no
15602 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15603 - soname_spec='${libname}${release}${shared_ext}$major'
15604 - shlibpath_var=LD_LIBRARY_PATH
15606 +# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
15607 +# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
15608 +# ----------------------------------------------------------------
15609 +# Check whether the given compiler option works
15610 +AC_DEFUN([_LT_COMPILER_OPTION],
15611 +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
15612 +m4_require([_LT_DECL_SED])dnl
15613 +AC_CACHE_CHECK([$1], [$2],
15615 + m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
15616 + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15617 + lt_compiler_flag="$3"
15618 + # Insert the option either (1) after the last *FLAGS variable, or
15619 + # (2) before a word containing "conftest.", or (3) at the end.
15620 + # Note that $ac_compile itself does not contain backslashes and begins
15621 + # with a dollar sign (not a hyphen), so the echo should work correctly.
15622 + # The option is referenced via a variable to avoid confusing sed.
15623 + lt_compile=`echo "$ac_compile" | $SED \
15624 + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15625 + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
15626 + -e 's:$: $lt_compiler_flag:'`
15627 + (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
15628 + (eval "$lt_compile" 2>conftest.err)
15630 + cat conftest.err >&AS_MESSAGE_LOG_FD
15631 + echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
15632 + if (exit $ac_status) && test -s "$ac_outfile"; then
15633 + # The compiler can only warn and ignore the option if not recognized
15634 + # So say no if there are warnings other than the usual output.
15635 + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15636 + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15637 + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15645 - dynamic_linker=no
15647 +if test x"[$]$2" = xyes; then
15648 + m4_if([$5], , :, [$5])
15650 + m4_if([$6], , :, [$6])
15652 +])# _LT_COMPILER_OPTION
15655 - version_type=linux
15656 - need_lib_prefix=no
15658 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15659 - soname_spec='${libname}${release}${shared_ext}$major'
15660 - shlibpath_var=LD_LIBRARY_PATH
15661 - shlibpath_overrides_runpath=no
15662 - hardcode_into_libs=yes
15663 - dynamic_linker='GNU ld.so'
15666 +AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
15667 +dnl aclocal-1.4 backwards compatibility:
15668 +dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
15670 -freebsd* | dragonfly*)
15671 - # DragonFly does not have aout. When/if they implement a new
15672 - # versioning mechanism, adjust this.
15673 - if test -x /usr/bin/objformat; then
15674 - objformat=`/usr/bin/objformat`
15677 - freebsd[[123]]*) objformat=aout ;;
15678 - *) objformat=elf ;;
15681 - version_type=freebsd-$objformat
15682 - case $version_type in
15684 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15686 - need_lib_prefix=no
15689 - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15693 - shlibpath_var=LD_LIBRARY_PATH
15696 - shlibpath_overrides_runpath=yes
15698 - freebsd3.[[01]]* | freebsdelf3.[[01]]*)
15699 - shlibpath_overrides_runpath=yes
15700 - hardcode_into_libs=yes
15702 +# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
15703 +# [ACTION-SUCCESS], [ACTION-FAILURE])
15704 +# ----------------------------------------------------
15705 +# Check whether the given linker option works
15706 +AC_DEFUN([_LT_LINKER_OPTION],
15707 +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
15708 +m4_require([_LT_DECL_SED])dnl
15709 +AC_CACHE_CHECK([$1], [$2],
15711 + save_LDFLAGS="$LDFLAGS"
15712 + LDFLAGS="$LDFLAGS $3"
15713 + echo "$lt_simple_link_test_code" > conftest.$ac_ext
15714 + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15715 + # The linker can only warn and ignore the option if not recognized
15716 + # So say no if there are warnings
15717 + if test -s conftest.err; then
15718 + # Append any errors to the config.log.
15719 + cat conftest.err 1>&AS_MESSAGE_LOG_FD
15720 + $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15721 + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15722 + if diff conftest.exp conftest.er2 >/dev/null; then
15730 + LDFLAGS="$save_LDFLAGS"
15733 +if test x"[$]$2" = xyes; then
15734 + m4_if([$4], , :, [$4])
15736 + m4_if([$5], , :, [$5])
15738 +])# _LT_LINKER_OPTION
15741 +AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
15742 +dnl aclocal-1.4 backwards compatibility:
15743 +dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
15748 +AC_DEFUN([LT_CMD_MAX_LEN],
15749 +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
15750 +# find the maximum length of command line arguments
15751 +AC_MSG_CHECKING([the maximum length of command line arguments])
15752 +AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
15754 + teststring="ABCD"
15756 + case $build_os in
15758 + # On DJGPP, this test can blow up pretty badly due to problems in libc
15759 + # (any single argument exceeding 2000 bytes causes a buffer overrun
15760 + # during glob expansion). Even if it were fixed, the result of this
15761 + # check would be larger than it should be.
15762 + lt_cv_sys_max_cmd_len=12288; # 12K is about right
15764 - freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
15765 - freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
15766 - shlibpath_overrides_runpath=no
15767 - hardcode_into_libs=yes
15770 + # Under GNU Hurd, this test is not required because there is
15771 + # no limit to the length of command line arguments.
15772 + # Libtool will interpret -1 as no limit whatsoever
15773 + lt_cv_sys_max_cmd_len=-1;
15775 - freebsd*) # from 4.6 on
15776 - shlibpath_overrides_runpath=yes
15777 - hardcode_into_libs=yes
15779 + cygwin* | mingw*)
15780 + # On Win9x/ME, this test blows up -- it succeeds, but takes
15781 + # about 5 minutes as the teststring grows exponentially.
15782 + # Worse, since 9x/ME are not pre-emptively multitasking,
15783 + # you end up with a "frozen" computer, even though with patience
15784 + # the test eventually succeeds (with a max line length of 256k).
15785 + # Instead, let's just punt: use the minimum linelength reported by
15786 + # all of the supported platforms: 8192 (on NT/2K/XP).
15787 + lt_cv_sys_max_cmd_len=8192;
15793 - version_type=linux
15794 - need_lib_prefix=no
15796 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15797 - soname_spec='${libname}${release}${shared_ext}$major'
15798 - shlibpath_var=LD_LIBRARY_PATH
15799 - hardcode_into_libs=yes
15802 + # On AmigaOS with pdksh, this test takes hours, literally.
15803 + # So we just punt and use a minimum line length of 8192.
15804 + lt_cv_sys_max_cmd_len=8192;
15807 -hpux9* | hpux10* | hpux11*)
15808 - # Give a soname corresponding to the major version so that dld.sl refuses to
15809 - # link against other versions.
15810 - version_type=sunos
15811 - need_lib_prefix=no
15813 - case $host_cpu in
15815 - shrext_cmds='.so'
15816 - hardcode_into_libs=yes
15817 - dynamic_linker="$host_os dld.so"
15818 - shlibpath_var=LD_LIBRARY_PATH
15819 - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15820 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15821 - soname_spec='${libname}${release}${shared_ext}$major'
15822 - if test "X$HPUX_IA64_MODE" = X32; then
15823 - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15824 + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
15825 + # This has been around since 386BSD, at least. Likely further.
15826 + if test -x /sbin/sysctl; then
15827 + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
15828 + elif test -x /usr/sbin/sysctl; then
15829 + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
15831 - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15832 + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
15834 - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15837 - shrext_cmds='.sl'
15838 - hardcode_into_libs=yes
15839 - dynamic_linker="$host_os dld.sl"
15840 - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15841 - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15842 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15843 - soname_spec='${libname}${release}${shared_ext}$major'
15844 - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15845 - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15848 - shrext_cmds='.sl'
15849 - dynamic_linker="$host_os dld.sl"
15850 - shlibpath_var=SHLIB_PATH
15851 - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15852 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15853 - soname_spec='${libname}${release}${shared_ext}$major'
15854 + # And add a safety zone
15855 + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
15856 + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
15859 - # HP-UX runs *really* slowly unless shared libraries are mode 555.
15860 - postinstall_cmds='chmod 555 $lib'
15864 - version_type=linux
15865 - need_lib_prefix=no
15867 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15868 - soname_spec='${libname}${release}${shared_ext}$major'
15869 - dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15870 - shlibpath_var=LD_LIBRARY_PATH
15871 - shlibpath_overrides_runpath=no
15872 - hardcode_into_libs=yes
15875 + # We know the value 262144 and hardcode it with a safety zone (like BSD)
15876 + lt_cv_sys_max_cmd_len=196608
15879 -irix5* | irix6* | nonstopux*)
15881 - nonstopux*) version_type=nonstopux ;;
15883 - if test "$lt_cv_prog_gnu_ld" = yes; then
15884 - version_type=linux
15886 - version_type=irix
15889 - need_lib_prefix=no
15891 - soname_spec='${libname}${release}${shared_ext}$major'
15892 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15894 - irix5* | nonstopux*)
15895 - libsuff= shlibsuff=
15897 + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
15898 + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
15899 + # nice to cause kernel panics so lets avoid the loop below.
15900 + # First set a reasonable default.
15901 + lt_cv_sys_max_cmd_len=16384
15903 + if test -x /sbin/sysconfig; then
15904 + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
15905 + *1*) lt_cv_sys_max_cmd_len=-1 ;;
15910 + lt_cv_sys_max_cmd_len=102400
15912 + sysv5* | sco5v6* | sysv4.2uw2*)
15913 + kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
15914 + if test -n "$kargmax"; then
15915 + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
15917 + lt_cv_sys_max_cmd_len=32768
15921 - case $LD in # libtool.m4 will add one of these switches to LD
15922 - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15923 - libsuff= shlibsuff= libmagic=32-bit;;
15924 - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15925 - libsuff=32 shlibsuff=N32 libmagic=N32;;
15926 - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15927 - libsuff=64 shlibsuff=64 libmagic=64-bit;;
15928 - *) libsuff= shlibsuff= libmagic=never-match;;
15930 + lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
15931 + if test -n "$lt_cv_sys_max_cmd_len"; then
15932 + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
15933 + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
15935 + # Make teststring a little bigger before we do anything with it.
15936 + # a 1K string should be a reasonable start.
15937 + for i in 1 2 3 4 5 6 7 8 ; do
15938 + teststring=$teststring$teststring
15940 + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
15941 + # If test is not a shell built-in, we'll probably end up computing a
15942 + # maximum length that is only half of the actual maximum length, but
15944 + while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
15945 + = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
15946 + test $i != 17 # 1/2 MB should be enough
15949 + teststring=$teststring$teststring
15951 + # Only check the string length outside the loop.
15952 + lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
15954 + # Add a significant safety factor because C++ compilers can tack on
15955 + # massive amounts of additional arguments before passing them to the
15956 + # linker. It appears as though 1/2 is a usable value.
15957 + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
15961 - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15962 - shlibpath_overrides_runpath=no
15963 - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15964 - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15965 - hardcode_into_libs=yes
15968 +if test -n $lt_cv_sys_max_cmd_len ; then
15969 + AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
15971 + AC_MSG_RESULT(none)
15973 +max_cmd_len=$lt_cv_sys_max_cmd_len
15974 +_LT_DECL([], [max_cmd_len], [0],
15975 + [What is the maximum length of a command?])
15976 +])# LT_CMD_MAX_LEN
15978 -# No shared lib support for Linux oldld, aout, or coff.
15979 -linux*oldld* | linux*aout* | linux*coff*)
15980 - dynamic_linker=no
15983 +AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
15984 +dnl aclocal-1.4 backwards compatibility:
15985 +dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
15987 -# This must be Linux ELF.
15989 - version_type=linux
15990 - need_lib_prefix=no
15992 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15993 - soname_spec='${libname}${release}${shared_ext}$major'
15994 - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15995 - shlibpath_var=LD_LIBRARY_PATH
15996 - shlibpath_overrides_runpath=no
15997 - # This implies no fast_install, which is unacceptable.
15998 - # Some rework will be needed to allow for fast_install
15999 - # before this can be enabled.
16000 - hardcode_into_libs=yes
16002 - # Append ld.so.conf contents to the search path
16003 - if test -f /etc/ld.so.conf; then
16004 - 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/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16005 - sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16007 +# _LT_HEADER_DLFCN
16008 +# ----------------
16009 +m4_defun([_LT_HEADER_DLFCN],
16010 +[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
16011 +])# _LT_HEADER_DLFCN
16013 - # We used to test for /lib/ld.so.1 and disable shared libraries on
16014 - # powerpc, because MkLinux only supported shared libraries with the
16015 - # GNU dynamic linker. Since this was broken with cross compilers,
16016 - # most powerpc-linux boxes support dynamic linking these days and
16017 - # people can always --disable-shared, the test was removed, and we
16018 - # assume the GNU/Linux dynamic linker is in use.
16019 - dynamic_linker='GNU/Linux ld.so'
16023 - version_type=linux
16024 - need_lib_prefix=no
16026 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16027 - soname_spec='${libname}${release}${shared_ext}$major'
16028 - shlibpath_var=LD_LIBRARY_PATH
16029 - shlibpath_overrides_runpath=no
16030 - hardcode_into_libs=yes
16031 - dynamic_linker='GNU ld.so'
16033 +# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
16034 +# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
16035 +# ----------------------------------------------------------------
16036 +m4_defun([_LT_TRY_DLOPEN_SELF],
16037 +[m4_require([_LT_HEADER_DLFCN])dnl
16038 +if test "$cross_compiling" = yes; then :
16041 + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16042 + lt_status=$lt_dlunknown
16043 + cat > conftest.$ac_ext <<_LT_EOF
16044 +[#line __oline__ "configure"
16045 +#include "confdefs.h"
16048 - version_type=sunos
16049 - need_lib_prefix=no
16051 - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16052 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16053 - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16054 - dynamic_linker='NetBSD (a.out) ld.so'
16056 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16057 - soname_spec='${libname}${release}${shared_ext}$major'
16058 - dynamic_linker='NetBSD ld.elf_so'
16060 - shlibpath_var=LD_LIBRARY_PATH
16061 - shlibpath_overrides_runpath=yes
16062 - hardcode_into_libs=yes
16065 +#include <dlfcn.h>
16069 - version_type=linux
16070 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16071 - shlibpath_var=LD_LIBRARY_PATH
16072 - shlibpath_overrides_runpath=yes
16074 +#include <stdio.h>
16077 - version_type=linux
16078 - need_lib_prefix=no
16080 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16081 - soname_spec='${libname}${release}${shared_ext}$major'
16082 - shlibpath_var=LD_LIBRARY_PATH
16083 - shlibpath_overrides_runpath=yes
16085 +#ifdef RTLD_GLOBAL
16086 +# define LT_DLGLOBAL RTLD_GLOBAL
16089 +# define LT_DLGLOBAL DL_GLOBAL
16091 +# define LT_DLGLOBAL 0
16096 - version_type=sunos
16097 - sys_lib_dlsearch_path_spec="/usr/lib"
16098 - need_lib_prefix=no
16099 - # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16101 - openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16102 - *) need_version=no ;;
16104 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16105 - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16106 - shlibpath_var=LD_LIBRARY_PATH
16107 - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16109 - openbsd2.[[89]] | openbsd2.[[89]].*)
16110 - shlibpath_overrides_runpath=no
16113 - shlibpath_overrides_runpath=yes
16116 +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16117 + find out it does not work in some platform. */
16118 +#ifndef LT_DLLAZY_OR_NOW
16120 +# define LT_DLLAZY_OR_NOW RTLD_LAZY
16123 +# define LT_DLLAZY_OR_NOW DL_LAZY
16126 +# define LT_DLLAZY_OR_NOW RTLD_NOW
16129 +# define LT_DLLAZY_OR_NOW DL_NOW
16131 +# define LT_DLLAZY_OR_NOW 0
16138 +#ifdef __cplusplus
16139 +extern "C" void exit (int);
16142 +void fnord() { int i=42;}
16145 + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16146 + int status = $lt_dlunknown;
16150 + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16151 + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16152 + /* dlclose (self); */
16155 - shlibpath_overrides_runpath=yes
16156 + puts (dlerror ());
16161 + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
16162 + (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
16164 + case x$lt_status in
16165 + x$lt_dlno_uscore) $1 ;;
16166 + x$lt_dlneed_uscore) $2 ;;
16167 + x$lt_dlunknown|x*) $3 ;;
16170 + # compilation failed
16176 +])# _LT_TRY_DLOPEN_SELF
16179 - libname_spec='$name'
16180 - shrext_cmds=".dll"
16181 - need_lib_prefix=no
16182 - library_names_spec='$libname${shared_ext} $libname.a'
16183 - dynamic_linker='OS/2 ld.exe'
16184 - shlibpath_var=LIBPATH
16187 -osf3* | osf4* | osf5*)
16189 - need_lib_prefix=no
16191 - soname_spec='${libname}${release}${shared_ext}$major'
16192 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16193 - shlibpath_var=LD_LIBRARY_PATH
16194 - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16195 - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16197 +# LT_SYS_DLOPEN_SELF
16198 +# ------------------
16199 +AC_DEFUN([LT_SYS_DLOPEN_SELF],
16200 +[m4_require([_LT_HEADER_DLFCN])dnl
16201 +if test "x$enable_dlopen" != xyes; then
16202 + enable_dlopen=unknown
16203 + enable_dlopen_self=unknown
16204 + enable_dlopen_self_static=unknown
16207 + lt_cv_dlopen_libs=
16210 - version_type=linux
16211 - need_lib_prefix=no
16213 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16214 - soname_spec='${libname}${release}${shared_ext}$major'
16215 - shlibpath_var=LD_LIBRARY_PATH
16216 - shlibpath_overrides_runpath=yes
16217 - hardcode_into_libs=yes
16218 - # ldd complains unless libraries are executable
16219 - postinstall_cmds='chmod +x $lib'
16223 + lt_cv_dlopen="load_add_on"
16224 + lt_cv_dlopen_libs=
16225 + lt_cv_dlopen_self=yes
16229 - version_type=sunos
16230 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16231 - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16232 - shlibpath_var=LD_LIBRARY_PATH
16233 - shlibpath_overrides_runpath=yes
16234 - if test "$with_gnu_ld" = yes; then
16235 - need_lib_prefix=no
16240 + lt_cv_dlopen="LoadLibrary"
16241 + lt_cv_dlopen_libs=
16245 - version_type=linux
16246 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16247 - soname_spec='${libname}${release}${shared_ext}$major'
16248 - shlibpath_var=LD_LIBRARY_PATH
16249 - case $host_vendor in
16251 - shlibpath_overrides_runpath=no
16252 - need_lib_prefix=no
16253 - export_dynamic_flag_spec='${wl}-Blargedynsym'
16254 - runpath_var=LD_RUN_PATH
16257 - need_lib_prefix=no
16260 - need_lib_prefix=no
16262 - shlibpath_overrides_runpath=no
16263 - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16268 + lt_cv_dlopen="dlopen"
16269 + lt_cv_dlopen_libs=
16273 - if test -d /usr/nec ;then
16274 - version_type=linux
16275 - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16276 - soname_spec='$libname${shared_ext}.$major'
16277 - shlibpath_var=LD_LIBRARY_PATH
16281 + # if libdl is installed we need to link against it
16282 + AC_CHECK_LIB([dl], [dlopen],
16283 + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
16284 + lt_cv_dlopen="dyld"
16285 + lt_cv_dlopen_libs=
16286 + lt_cv_dlopen_self=yes
16290 -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16291 - version_type=freebsd-elf
16292 - need_lib_prefix=no
16294 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16295 - soname_spec='${libname}${release}${shared_ext}$major'
16296 - shlibpath_var=LD_LIBRARY_PATH
16297 - hardcode_into_libs=yes
16298 - if test "$with_gnu_ld" = yes; then
16299 - sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16300 - shlibpath_overrides_runpath=no
16302 + AC_CHECK_FUNC([shl_load],
16303 + [lt_cv_dlopen="shl_load"],
16304 + [AC_CHECK_LIB([dld], [shl_load],
16305 + [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
16306 + [AC_CHECK_FUNC([dlopen],
16307 + [lt_cv_dlopen="dlopen"],
16308 + [AC_CHECK_LIB([dl], [dlopen],
16309 + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
16310 + [AC_CHECK_LIB([svld], [dlopen],
16311 + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
16312 + [AC_CHECK_LIB([dld], [dld_link],
16313 + [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
16322 + if test "x$lt_cv_dlopen" != xno; then
16323 + enable_dlopen=yes
16325 - sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16326 - shlibpath_overrides_runpath=yes
16329 - sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16334 - sys_lib_dlsearch_path_spec='/usr/lib'
16338 - version_type=linux
16339 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16340 - soname_spec='${libname}${release}${shared_ext}$major'
16341 - shlibpath_var=LD_LIBRARY_PATH
16345 - dynamic_linker=no
16348 -AC_MSG_RESULT([$dynamic_linker])
16349 -test "$dynamic_linker" = no && can_build_shared=no
16351 -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16352 -if test "$GCC" = yes; then
16353 - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16355 -])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
16358 -# _LT_AC_TAGCONFIG
16359 -# ----------------
16360 -AC_DEFUN([_LT_AC_TAGCONFIG],
16361 -[AC_ARG_WITH([tags],
16362 - [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
16363 - [include additional configurations @<:@automatic@:>@])],
16364 - [tagnames="$withval"])
16366 -if test -f "$ltmain" && test -n "$tagnames"; then
16367 - if test ! -f "${ofile}"; then
16368 - AC_MSG_WARN([output file `$ofile' does not exist])
16370 + case $lt_cv_dlopen in
16372 + save_CPPFLAGS="$CPPFLAGS"
16373 + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16375 - if test -z "$LTCC"; then
16376 - eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
16377 - if test -z "$LTCC"; then
16378 - AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
16380 - AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
16383 - if test -z "$LTCFLAGS"; then
16384 - eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
16386 + save_LDFLAGS="$LDFLAGS"
16387 + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16389 - # Extract list of available tagged configurations in $ofile.
16390 - # Note that this assumes the entire list is on one line.
16391 - available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
16392 + save_LIBS="$LIBS"
16393 + LIBS="$lt_cv_dlopen_libs $LIBS"
16395 - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16396 - for tagname in $tagnames; do
16397 - IFS="$lt_save_ifs"
16398 - # Check whether tagname contains only valid characters
16399 - case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
16401 - *) AC_MSG_ERROR([invalid tag name: $tagname])
16404 + AC_CACHE_CHECK([whether a program can dlopen itself],
16405 + lt_cv_dlopen_self, [dnl
16406 + _LT_TRY_DLOPEN_SELF(
16407 + lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
16408 + lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
16411 - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
16413 - AC_MSG_ERROR([tag name \"$tagname\" already exists])
16414 + if test "x$lt_cv_dlopen_self" = xyes; then
16415 + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
16416 + AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
16417 + lt_cv_dlopen_self_static, [dnl
16418 + _LT_TRY_DLOPEN_SELF(
16419 + lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
16420 + lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
16424 - # Update the list of available tags.
16425 - if test -n "$tagname"; then
16426 - echo appending configuration tag \"$tagname\" to $ofile
16430 - if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
16431 - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
16432 - (test "X$CXX" != "Xg++"))) ; then
16433 - AC_LIBTOOL_LANG_CXX_CONFIG
16440 - if test -n "$F77" && test "X$F77" != "Xno"; then
16441 - AC_LIBTOOL_LANG_F77_CONFIG
16448 - if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16449 - AC_LIBTOOL_LANG_GCJ_CONFIG
16456 - AC_LIBTOOL_LANG_RC_CONFIG
16460 - AC_MSG_ERROR([Unsupported tag name: $tagname])
16463 + CPPFLAGS="$save_CPPFLAGS"
16464 + LDFLAGS="$save_LDFLAGS"
16465 + LIBS="$save_LIBS"
16469 - # Append the new tag name to the list of available tags.
16470 - if test -n "$tagname" ; then
16471 - available_tags="$available_tags $tagname"
16475 - IFS="$lt_save_ifs"
16476 + case $lt_cv_dlopen_self in
16477 + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16478 + *) enable_dlopen_self=unknown ;;
16481 - # Now substitute the updated list of available tags.
16482 - if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
16483 - mv "${ofile}T" "$ofile"
16484 - chmod +x "$ofile"
16486 - rm -f "${ofile}T"
16487 - AC_MSG_ERROR([unable to update list of available tagged configurations.])
16489 + case $lt_cv_dlopen_self_static in
16490 + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16491 + *) enable_dlopen_self_static=unknown ;;
16494 -])# _LT_AC_TAGCONFIG
16495 +_LT_DECL([dlopen_support], [enable_dlopen], [0],
16496 + [Whether dlopen is supported])
16497 +_LT_DECL([dlopen_self], [enable_dlopen_self], [0],
16498 + [Whether dlopen of programs is supported])
16499 +_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
16500 + [Whether dlopen of statically linked programs is supported])
16501 +])# LT_SYS_DLOPEN_SELF
16504 +AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
16505 +dnl aclocal-1.4 backwards compatibility:
16506 +dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
16509 -# AC_LIBTOOL_DLOPEN
16510 -# -----------------
16511 -# enable checks for dlopen support
16512 -AC_DEFUN([AC_LIBTOOL_DLOPEN],
16513 - [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
16514 -])# AC_LIBTOOL_DLOPEN
16515 +# _LT_COMPILER_C_O([TAGNAME])
16516 +# ---------------------------
16517 +# Check to see if options -c and -o are simultaneously supported by compiler.
16518 +# This macro does not hard code the compiler like AC_PROG_CC_C_O.
16519 +m4_defun([_LT_COMPILER_C_O],
16520 +[m4_require([_LT_DECL_SED])dnl
16521 +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
16522 +m4_require([_LT_TAG_COMPILER])dnl
16523 +AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
16524 + [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
16525 + [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
16526 + $RM -r conftest 2>/dev/null
16530 + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16532 + lt_compiler_flag="-o out/conftest2.$ac_objext"
16533 + # Insert the option either (1) after the last *FLAGS variable, or
16534 + # (2) before a word containing "conftest.", or (3) at the end.
16535 + # Note that $ac_compile itself does not contain backslashes and begins
16536 + # with a dollar sign (not a hyphen), so the echo should work correctly.
16537 + lt_compile=`echo "$ac_compile" | $SED \
16538 + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16539 + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
16540 + -e 's:$: $lt_compiler_flag:'`
16541 + (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
16542 + (eval "$lt_compile" 2>out/conftest.err)
16544 + cat out/conftest.err >&AS_MESSAGE_LOG_FD
16545 + echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
16546 + if (exit $ac_status) && test -s out/conftest2.$ac_objext
16548 + # The compiler can only warn and ignore the option if not recognized
16549 + # So say no if there are warnings
16550 + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16551 + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16552 + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16553 + _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
16556 + chmod u+w . 2>&AS_MESSAGE_LOG_FD
16558 + # SGI C++ compiler will create directory out/ii_files/ for
16559 + # template instantiation
16560 + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16561 + $RM out/* && rmdir out
16566 +_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
16567 + [Does compiler simultaneously support -c and -o options?])
16568 +])# _LT_COMPILER_C_O
16570 -# AC_LIBTOOL_WIN32_DLL
16571 -# --------------------
16572 -# declare package support for building win32 DLLs
16573 -AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
16574 -[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
16575 -])# AC_LIBTOOL_WIN32_DLL
16577 +# _LT_COMPILER_FILE_LOCKS([TAGNAME])
16578 +# ----------------------------------
16579 +# Check to see if we can do hard links to lock some files if needed
16580 +m4_defun([_LT_COMPILER_FILE_LOCKS],
16581 +[m4_require([_LT_ENABLE_LOCK])dnl
16582 +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
16583 +_LT_COMPILER_C_O([$1])
16585 -# AC_ENABLE_SHARED([DEFAULT])
16586 -# ---------------------------
16587 -# implement the --enable-shared flag
16588 -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
16589 -AC_DEFUN([AC_ENABLE_SHARED],
16590 -[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
16591 -AC_ARG_ENABLE([shared],
16592 - [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
16593 - [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
16594 - [p=${PACKAGE-default}
16595 - case $enableval in
16596 - yes) enable_shared=yes ;;
16597 - no) enable_shared=no ;;
16600 - # Look at the argument we got. We use all the common list separators.
16601 - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16602 - for pkg in $enableval; do
16603 - IFS="$lt_save_ifs"
16604 - if test "X$pkg" = "X$p"; then
16605 - enable_shared=yes
16608 - IFS="$lt_save_ifs"
16611 - [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
16612 -])# AC_ENABLE_SHARED
16615 -# AC_DISABLE_SHARED
16616 -# -----------------
16617 -# set the default shared flag to --disable-shared
16618 -AC_DEFUN([AC_DISABLE_SHARED],
16619 -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
16620 -AC_ENABLE_SHARED(no)
16621 -])# AC_DISABLE_SHARED
16624 -# AC_ENABLE_STATIC([DEFAULT])
16625 -# ---------------------------
16626 -# implement the --enable-static flag
16627 -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
16628 -AC_DEFUN([AC_ENABLE_STATIC],
16629 -[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
16630 -AC_ARG_ENABLE([static],
16631 - [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
16632 - [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
16633 - [p=${PACKAGE-default}
16634 - case $enableval in
16635 - yes) enable_static=yes ;;
16636 - no) enable_static=no ;;
16639 - # Look at the argument we got. We use all the common list separators.
16640 - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16641 - for pkg in $enableval; do
16642 - IFS="$lt_save_ifs"
16643 - if test "X$pkg" = "X$p"; then
16644 - enable_static=yes
16647 - IFS="$lt_save_ifs"
16650 - [enable_static=]AC_ENABLE_STATIC_DEFAULT)
16651 -])# AC_ENABLE_STATIC
16654 -# AC_DISABLE_STATIC
16655 -# -----------------
16656 -# set the default static flag to --disable-static
16657 -AC_DEFUN([AC_DISABLE_STATIC],
16658 -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
16659 -AC_ENABLE_STATIC(no)
16660 -])# AC_DISABLE_STATIC
16663 -# AC_ENABLE_FAST_INSTALL([DEFAULT])
16664 -# ---------------------------------
16665 -# implement the --enable-fast-install flag
16666 -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
16667 -AC_DEFUN([AC_ENABLE_FAST_INSTALL],
16668 -[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
16669 -AC_ARG_ENABLE([fast-install],
16670 - [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
16671 - [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
16672 - [p=${PACKAGE-default}
16673 - case $enableval in
16674 - yes) enable_fast_install=yes ;;
16675 - no) enable_fast_install=no ;;
16677 - enable_fast_install=no
16678 - # Look at the argument we got. We use all the common list separators.
16679 - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16680 - for pkg in $enableval; do
16681 - IFS="$lt_save_ifs"
16682 - if test "X$pkg" = "X$p"; then
16683 - enable_fast_install=yes
16686 - IFS="$lt_save_ifs"
16689 - [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
16690 -])# AC_ENABLE_FAST_INSTALL
16693 -# AC_DISABLE_FAST_INSTALL
16694 -# -----------------------
16695 -# set the default to --disable-fast-install
16696 -AC_DEFUN([AC_DISABLE_FAST_INSTALL],
16697 -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
16698 -AC_ENABLE_FAST_INSTALL(no)
16699 -])# AC_DISABLE_FAST_INSTALL
16702 -# AC_LIBTOOL_PICMODE([MODE])
16703 -# --------------------------
16704 -# implement the --with-pic flag
16705 -# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
16706 -AC_DEFUN([AC_LIBTOOL_PICMODE],
16707 -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
16708 -pic_mode=ifelse($#,1,$1,default)
16709 -])# AC_LIBTOOL_PICMODE
16714 -# This is predefined starting with Autoconf 2.54, so this conditional
16715 -# definition can be removed once we require Autoconf 2.54 or later.
16716 -m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
16717 -[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
16718 - [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
16719 - then ac_cv_prog_egrep='grep -E'
16720 - else ac_cv_prog_egrep='egrep'
16722 - EGREP=$ac_cv_prog_egrep
16723 - AC_SUBST([EGREP])
16727 -# AC_PATH_TOOL_PREFIX
16728 -# -------------------
16729 -# find a file program which can recognise shared library
16730 -AC_DEFUN([AC_PATH_TOOL_PREFIX],
16731 -[AC_REQUIRE([AC_PROG_EGREP])dnl
16732 -AC_MSG_CHECKING([for $1])
16733 -AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
16734 -[case $MAGIC_CMD in
16735 -[[\\/*] | ?:[\\/]*])
16736 - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
16739 - lt_save_MAGIC_CMD="$MAGIC_CMD"
16740 - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16741 -dnl $ac_dummy forces splitting on constant user-supplied paths.
16742 -dnl POSIX.2 word splitting is done only on the output of word expansions,
16743 -dnl not every word. This closes a longstanding sh security hole.
16744 - ac_dummy="ifelse([$2], , $PATH, [$2])"
16745 - for ac_dir in $ac_dummy; do
16746 - IFS="$lt_save_ifs"
16747 - test -z "$ac_dir" && ac_dir=.
16748 - if test -f $ac_dir/$1; then
16749 - lt_cv_path_MAGIC_CMD="$ac_dir/$1"
16750 - if test -n "$file_magic_test_file"; then
16751 - case $deplibs_check_method in
16753 - file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
16754 - MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16755 - if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
16756 - $EGREP "$file_magic_regex" > /dev/null; then
16760 +hard_links="nottested"
16761 +if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
16762 + # do not overwrite the value of need_locks provided by the user
16763 + AC_MSG_CHECKING([if we can lock with hard links])
16766 + ln conftest.a conftest.b 2>/dev/null && hard_links=no
16768 + ln conftest.a conftest.b 2>&5 || hard_links=no
16769 + ln conftest.a conftest.b 2>/dev/null && hard_links=no
16770 + AC_MSG_RESULT([$hard_links])
16771 + if test "$hard_links" = no; then
16772 + AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
16778 +_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
16779 +])# _LT_COMPILER_FILE_LOCKS
16781 -*** Warning: the command libtool uses to detect shared libraries,
16782 -*** $file_magic_cmd, produces output that libtool cannot recognize.
16783 -*** The result is that libtool may fail to recognize shared libraries
16784 -*** as such. This will affect the creation of libtool libraries that
16785 -*** depend on shared libraries, but programs linked with such libtool
16786 -*** libraries will work regardless of this problem. Nevertheless, you
16787 -*** may want to report the problem to your system manager and/or to
16788 -*** bug-libtool@gnu.org
16797 - IFS="$lt_save_ifs"
16798 - MAGIC_CMD="$lt_save_MAGIC_CMD"
16801 -MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16802 -if test -n "$MAGIC_CMD"; then
16803 - AC_MSG_RESULT($MAGIC_CMD)
16804 +# _LT_CHECK_OBJDIR
16805 +# ----------------
16806 +m4_defun([_LT_CHECK_OBJDIR],
16807 +[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
16808 +[rm -f .libs 2>/dev/null
16809 +mkdir .libs 2>/dev/null
16810 +if test -d .libs; then
16811 + lt_cv_objdir=.libs
16813 - AC_MSG_RESULT(no)
16814 + # MS-DOS does not allow filenames that begin with a dot.
16815 + lt_cv_objdir=_libs
16817 -])# AC_PATH_TOOL_PREFIX
16818 +rmdir .libs 2>/dev/null])
16819 +objdir=$lt_cv_objdir
16820 +_LT_DECL([], [objdir], [0],
16821 + [The name of the directory that contains temporary libtool files])dnl
16822 +m4_pattern_allow([LT_OBJDIR])dnl
16823 +AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
16824 + [Define to the sub-directory in which libtool stores uninstalled libraries.])
16825 +])# _LT_CHECK_OBJDIR
16830 -# find a file program which can recognise a shared library
16831 -AC_DEFUN([AC_PATH_MAGIC],
16832 -[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
16833 -if test -z "$lt_cv_path_MAGIC_CMD"; then
16834 - if test -n "$ac_tool_prefix"; then
16835 - AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
16836 +# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
16837 +# --------------------------------------
16838 +# Check hardcoding attributes.
16839 +m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
16840 +[AC_MSG_CHECKING([how to hardcode library paths into programs])
16841 +_LT_TAGVAR(hardcode_action, $1)=
16842 +if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
16843 + test -n "$_LT_TAGVAR(runpath_var, $1)" ||
16844 + test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
16846 + # We can hardcode non-existent directories.
16847 + if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
16848 + # If the only mechanism to avoid hardcoding is shlibpath_var, we
16849 + # have to relink, otherwise we might link with an installed library
16850 + # when we should be linking with a yet-to-be-installed one
16851 + ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
16852 + test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
16853 + # Linking always hardcodes the temporary library directory.
16854 + _LT_TAGVAR(hardcode_action, $1)=relink
16857 + # We can link without hardcoding, and we can hardcode nonexisting dirs.
16858 + _LT_TAGVAR(hardcode_action, $1)=immediate
16861 + # We cannot hardcode anything, or else we can only hardcode existing
16863 + _LT_TAGVAR(hardcode_action, $1)=unsupported
16865 +AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
16867 +if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
16868 + test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
16869 + # Fast installation is not supported
16870 + enable_fast_install=no
16871 +elif test "$shlibpath_overrides_runpath" = yes ||
16872 + test "$enable_shared" = no; then
16873 + # Fast installation is not necessary
16874 + enable_fast_install=needless
16877 +_LT_TAGDECL([], [hardcode_action], [0],
16878 + [How to hardcode a shared library path into an executable])
16879 +])# _LT_LINKER_HARDCODE_LIBPATH
16884 -# find the pathname to the GNU or non-GNU linker
16885 -AC_DEFUN([AC_PROG_LD],
16886 -[AC_ARG_WITH([gnu-ld],
16887 - [AC_HELP_STRING([--with-gnu-ld],
16888 - [assume the C compiler uses GNU ld @<:@default=no@:>@])],
16889 - [test "$withval" = no || with_gnu_ld=yes],
16890 - [with_gnu_ld=no])
16891 -AC_REQUIRE([LT_AC_PROG_SED])dnl
16892 -AC_REQUIRE([AC_PROG_CC])dnl
16893 -AC_REQUIRE([AC_CANONICAL_HOST])dnl
16894 -AC_REQUIRE([AC_CANONICAL_BUILD])dnl
16896 -if test "$GCC" = yes; then
16897 - # Check if gcc -print-prog-name=ld gives a path.
16898 - AC_MSG_CHECKING([for ld used by $CC])
16901 - # gcc leaves a trailing carriage return which upsets mingw
16902 - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16904 - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16907 - # Accept absolute paths.
16908 - [[\\/]]* | ?:[[\\/]]*)
16909 - re_direlt='/[[^/]][[^/]]*/\.\./'
16910 - # Canonicalize the pathname of ld
16911 - ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
16912 - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
16913 - ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
16915 - test -z "$LD" && LD="$ac_prog"
16918 - # If it fails, then pretend we aren't using GCC.
16920 +# _LT_CMD_STRIPLIB
16921 +# ----------------
16922 +m4_defun([_LT_CMD_STRIPLIB],
16923 +[m4_require([_LT_DECL_EGREP])
16926 +AC_MSG_CHECKING([whether stripping libraries is possible])
16927 +if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
16928 + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16929 + test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16930 + AC_MSG_RESULT([yes])
16932 +# FIXME - insert some real tests, host_os isn't really good enough
16935 + if test -n "$STRIP" ; then
16936 + striplib="$STRIP -x"
16937 + old_striplib="$STRIP -S"
16938 + AC_MSG_RESULT([yes])
16940 + AC_MSG_RESULT([no])
16944 - # If it is relative, then search for the first ld in PATH.
16945 - with_gnu_ld=unknown
16946 + AC_MSG_RESULT([no])
16949 -elif test "$with_gnu_ld" = yes; then
16950 - AC_MSG_CHECKING([for GNU ld])
16952 - AC_MSG_CHECKING([for non-GNU ld])
16954 -AC_CACHE_VAL(lt_cv_path_LD,
16955 -[if test -z "$LD"; then
16956 - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16957 - for ac_dir in $PATH; do
16958 - IFS="$lt_save_ifs"
16959 - test -z "$ac_dir" && ac_dir=.
16960 - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16961 - lt_cv_path_LD="$ac_dir/$ac_prog"
16962 - # Check to see if the program is GNU ld. I'd rather use --version,
16963 - # but apparently some variants of GNU ld only accept -v.
16964 - # Break only if it was the GNU/non-GNU ld that we prefer.
16965 - case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16966 - *GNU* | *'with BFD'*)
16967 - test "$with_gnu_ld" != no && break
16970 - test "$with_gnu_ld" != yes && break
16973 +_LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
16974 +_LT_DECL([], [striplib], [1])
16975 +])# _LT_CMD_STRIPLIB
16978 +# _LT_SYS_DYNAMIC_LINKER([TAG])
16979 +# -----------------------------
16980 +# PORTME Fill in your ld.so characteristics
16981 +m4_defun([_LT_SYS_DYNAMIC_LINKER],
16982 +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
16983 +m4_require([_LT_DECL_EGREP])dnl
16984 +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
16985 +m4_require([_LT_DECL_SED])dnl
16986 +AC_MSG_CHECKING([dynamic linker characteristics])
16989 +if test "$GCC" = yes; then
16991 + darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16992 + *) lt_awk_arg="/^libraries:/" ;;
16994 + lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16995 + if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
16996 + # if the path contains ";" then we assume it to be the separator
16997 + # otherwise default to the standard path separator (i.e. ":") - it is
16998 + # assumed that no part of a normal pathname contains ";" but that should
16999 + # okay in the real world where ";" in dirpaths is itself problematic.
17000 + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
17002 + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17004 + # Ok, now we have the path, separated by spaces, we can step through it
17005 + # and add multilib dir if necessary.
17006 + lt_tmp_lt_search_path_spec=
17007 + lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17008 + for lt_sys_path in $lt_search_path_spec; do
17009 + if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17010 + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17012 + test -d "$lt_sys_path" && \
17013 + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
17016 - IFS="$lt_save_ifs"
17017 + lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
17018 +BEGIN {RS=" "; FS="/|\n";} {
17021 + for (lt_i = NF; lt_i > 0; lt_i--) {
17022 + if ($lt_i != "" && $lt_i != ".") {
17023 + if ($lt_i == "..") {
17026 + if (lt_count == 0) {
17027 + lt_foo="/" $lt_i lt_foo;
17034 + if (lt_foo != "") { lt_freq[[lt_foo]]++; }
17035 + if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
17037 + sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
17039 - lt_cv_path_LD="$LD" # Let the user override the test with a path.
17040 + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17042 -LD="$lt_cv_path_LD"
17043 -if test -n "$LD"; then
17044 - AC_MSG_RESULT($LD)
17046 - AC_MSG_RESULT(no)
17048 -test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
17051 +library_names_spec=
17052 +libname_spec='lib$name'
17056 +postuninstall_cmds=
17060 +shlibpath_overrides_runpath=unknown
17062 +dynamic_linker="$host_os ld.so"
17063 +sys_lib_dlsearch_path_spec="/lib /usr/lib"
17064 +need_lib_prefix=unknown
17065 +hardcode_into_libs=no
17067 +# when you set need_version to no, make sure it does not cause -set_version
17068 +# flags to be left without arguments
17069 +need_version=unknown
17073 + version_type=linux
17074 + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17075 + shlibpath_var=LIBPATH
17079 -AC_DEFUN([AC_PROG_LD_GNU],
17080 -[AC_REQUIRE([AC_PROG_EGREP])dnl
17081 -AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
17082 -[# I'd rather use --version here, but apparently some GNU lds only accept -v.
17083 -case `$LD -v 2>&1 </dev/null` in
17084 -*GNU* | *'with BFD'*)
17085 - lt_cv_prog_gnu_ld=yes
17086 + # AIX 3 has no versioning support, so we append a major version to the name.
17087 + soname_spec='${libname}${release}${shared_ext}$major'
17090 - lt_cv_prog_gnu_ld=no
17093 -with_gnu_ld=$lt_cv_prog_gnu_ld
17094 -])# AC_PROG_LD_GNU
17097 -# AC_PROG_LD_RELOAD_FLAG
17098 -# ----------------------
17099 -# find reload flag for linker
17100 -# -- PORTME Some linkers may need a different reload flag.
17101 -AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
17102 -[AC_CACHE_CHECK([for $LD option to reload object files],
17103 - lt_cv_ld_reload_flag,
17104 - [lt_cv_ld_reload_flag='-r'])
17105 -reload_flag=$lt_cv_ld_reload_flag
17106 -case $reload_flag in
17108 -*) reload_flag=" $reload_flag" ;;
17110 -reload_cmds='$LD$reload_flag -o $output$reload_objs'
17113 - if test "$GCC" = yes; then
17114 - reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
17116 + version_type=linux
17117 + need_lib_prefix=no
17119 + hardcode_into_libs=yes
17120 + if test "$host_cpu" = ia64; then
17121 + # AIX 5 supports IA64
17122 + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17123 + shlibpath_var=LD_LIBRARY_PATH
17125 + # With GCC up to 2.95.x, collect2 would create an import file
17126 + # for dependence libraries. The import file would start with
17127 + # the line `#! .'. This would cause the generated library to
17128 + # depend on `.', always an invalid library. This was fixed in
17129 + # development snapshots of GCC prior to 3.0.
17131 + aix4 | aix4.[[01]] | aix4.[[01]].*)
17132 + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17134 + echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17137 + can_build_shared=no
17141 + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17142 + # soname into executable. Probably we can add versioning support to
17143 + # collect2, so additional links can be useful in future.
17144 + if test "$aix_use_runtimelinking" = yes; then
17145 + # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17146 + # instead of lib<name>.a to let people know that these are not
17147 + # typical AIX shared libraries.
17148 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17150 - reload_cmds='$LD$reload_flag -o $output$reload_objs'
17151 + # We preserve .a as extension for shared libraries through AIX4.2
17152 + # and later when we are not doing run time linking.
17153 + library_names_spec='${libname}${release}.a $libname.a'
17154 + soname_spec='${libname}${release}${shared_ext}$major'
17158 -])# AC_PROG_LD_RELOAD_FLAG
17161 -# AC_DEPLIBS_CHECK_METHOD
17162 -# -----------------------
17163 -# how to check for library dependencies
17164 -# -- PORTME fill in with the dynamic library characteristics
17165 -AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
17166 -[AC_CACHE_CHECK([how to recognise dependent libraries],
17167 -lt_cv_deplibs_check_method,
17168 -[lt_cv_file_magic_cmd='$MAGIC_CMD'
17169 -lt_cv_file_magic_test_file=
17170 -lt_cv_deplibs_check_method='unknown'
17171 -# Need to set the preceding variable on all platforms that support
17172 -# interlibrary dependencies.
17173 -# 'none' -- dependencies not supported.
17174 -# `unknown' -- same as none, but documents that we really don't know.
17175 -# 'pass_all' -- all dependencies passed with no checks.
17176 -# 'test_compile' -- check by making test program.
17177 -# 'file_magic [[regex]]' -- check by looking for files in library path
17178 -# which responds to the $file_magic_cmd with a given extended regex.
17179 -# If you have `file' or equivalent on your system and you're not sure
17180 -# whether `pass_all' will *always* work, you probably want this one.
17181 + shlibpath_var=LIBPATH
17187 - lt_cv_deplibs_check_method=pass_all
17189 + case $host_cpu in
17191 + # Since July 2007 AmigaOS4 officially supports .so libraries.
17192 + # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17193 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17196 + library_names_spec='$libname.ixlibrary $libname.a'
17197 + # Create ${libname}_ixlibrary.a entries in /sys/libs.
17198 + 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'
17204 - lt_cv_deplibs_check_method=pass_all
17205 + library_names_spec='${libname}${shared_ext}'
17206 + dynamic_linker="$host_os ld.so"
17207 + shlibpath_var=LIBRARY_PATH
17211 - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
17212 - lt_cv_file_magic_cmd='/usr/bin/file -L'
17213 - lt_cv_file_magic_test_file=/shlib/libc.so
17217 - # func_win32_libid is a shell function defined in ltmain.sh
17218 - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
17219 - lt_cv_file_magic_cmd='func_win32_libid'
17220 + version_type=linux
17222 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17223 + soname_spec='${libname}${release}${shared_ext}$major'
17224 + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17225 + shlibpath_var=LD_LIBRARY_PATH
17226 + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17227 + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17228 + # the default ld.so.conf also contains /usr/contrib/lib and
17229 + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17230 + # libtool to hard-code these into programs
17234 - # Base MSYS/MinGW do not provide the 'file' command needed by
17235 - # func_win32_libid shell function, so use a weaker test based on 'objdump'.
17236 - lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
17237 - lt_cv_file_magic_cmd='$OBJDUMP -f'
17239 +cygwin* | mingw* | pw32*)
17240 + version_type=windows
17241 + shrext_cmds=".dll"
17243 + need_lib_prefix=no
17245 -darwin* | rhapsody*)
17246 - lt_cv_deplibs_check_method=pass_all
17248 + case $GCC,$host_os in
17249 + yes,cygwin* | yes,mingw* | yes,pw32*)
17250 + library_names_spec='$libname.dll.a'
17251 + # DLL is installed to $(libdir)/../bin by postinstall_cmds
17252 + postinstall_cmds='base_file=`basename \${file}`~
17253 + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17254 + dldir=$destdir/`dirname \$dlpath`~
17255 + test -d \$dldir || mkdir -p \$dldir~
17256 + $install_prog $dir/$dlname \$dldir/$dlname~
17257 + chmod a+x \$dldir/$dlname~
17258 + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17259 + eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17261 + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17262 + dlpath=$dir/\$dldll~
17264 + shlibpath_overrides_runpath=yes
17266 -freebsd* | kfreebsd*-gnu | dragonfly*)
17267 - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
17268 - case $host_cpu in
17270 - # Not sure whether the presence of OpenBSD here was a mistake.
17271 - # Let's accept both of them until this is cleared up.
17272 - lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
17273 - lt_cv_file_magic_cmd=/usr/bin/file
17274 - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
17277 + # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17278 + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
17279 + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17282 + # MinGW DLLs use traditional 'lib' prefix
17283 + soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
17284 + sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17285 + if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
17286 + # It is most probably a Windows format PATH printed by
17287 + # mingw gcc, but we are running on Cygwin. Gcc prints its search
17288 + # path with ; separators, and with drive letters. We can handle the
17289 + # drive letters (cygwin fileutils understands them), so leave them,
17290 + # especially as we might pass files found there to a mingw objdump,
17291 + # which wouldn't understand a cygwinified path. Ahh.
17292 + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17294 + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17298 + # pw32 DLLs use 'pw' prefix rather than 'lib'
17299 + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
17303 - lt_cv_deplibs_check_method=pass_all
17308 - lt_cv_deplibs_check_method=pass_all
17311 -hpux10.20* | hpux11*)
17312 - lt_cv_file_magic_cmd=/usr/bin/file
17313 - case $host_cpu in
17315 - lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
17316 - lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
17319 - [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]']
17320 - lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
17324 - lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
17325 - lt_cv_file_magic_test_file=/usr/lib/libc.sl
17326 + library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
17329 + dynamic_linker='Win32 ld.exe'
17330 + # FIXME: first we should search . and the directory the executable is in
17331 + shlibpath_var=PATH
17335 - # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
17336 - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
17339 -irix5* | irix6* | nonstopux*)
17341 - *-32|*"-32 ") libmagic=32-bit;;
17342 - *-n32|*"-n32 ") libmagic=N32;;
17343 - *-64|*"-64 ") libmagic=64-bit;;
17344 - *) libmagic=never-match;;
17346 - lt_cv_deplibs_check_method=pass_all
17349 -# This must be Linux ELF.
17351 - lt_cv_deplibs_check_method=pass_all
17355 - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
17356 - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
17358 - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
17360 +darwin* | rhapsody*)
17361 + dynamic_linker="$host_os dyld"
17362 + version_type=darwin
17363 + need_lib_prefix=no
17365 + library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17366 + soname_spec='${libname}${release}${major}$shared_ext'
17367 + shlibpath_overrides_runpath=yes
17368 + shlibpath_var=DYLD_LIBRARY_PATH
17369 + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17371 + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
17372 + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17376 - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
17377 - lt_cv_file_magic_cmd=/usr/bin/file
17378 - lt_cv_file_magic_test_file=/usr/lib/libnls.so
17380 + version_type=linux
17381 + need_lib_prefix=no
17383 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17384 + soname_spec='${libname}${release}${shared_ext}$major'
17385 + shlibpath_var=LD_LIBRARY_PATH
17389 - lt_cv_deplibs_check_method=unknown
17391 + dynamic_linker=no
17395 - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17396 - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
17397 +freebsd* | dragonfly*)
17398 + # DragonFly does not have aout. When/if they implement a new
17399 + # versioning mechanism, adjust this.
17400 + if test -x /usr/bin/objformat; then
17401 + objformat=`/usr/bin/objformat`
17403 - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
17405 + freebsd[[123]]*) objformat=aout ;;
17406 + *) objformat=elf ;;
17411 -osf3* | osf4* | osf5*)
17412 - lt_cv_deplibs_check_method=pass_all
17416 - lt_cv_deplibs_check_method=pass_all
17420 - case $host_vendor in
17422 - 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]]'
17423 - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
17426 - lt_cv_deplibs_check_method=pass_all
17429 - lt_cv_file_magic_cmd='/bin/file'
17430 - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
17431 + version_type=freebsd-$objformat
17432 + case $version_type in
17434 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17436 + need_lib_prefix=no
17439 + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17443 + shlibpath_var=LD_LIBRARY_PATH
17446 + shlibpath_overrides_runpath=yes
17449 - lt_cv_file_magic_cmd='/bin/file'
17450 - lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
17451 - lt_cv_file_magic_test_file=/lib/libc.so
17452 + freebsd3.[[01]]* | freebsdelf3.[[01]]*)
17453 + shlibpath_overrides_runpath=yes
17454 + hardcode_into_libs=yes
17457 - lt_cv_deplibs_check_method=pass_all
17458 + freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
17459 + freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
17460 + shlibpath_overrides_runpath=no
17461 + hardcode_into_libs=yes
17464 - lt_cv_deplibs_check_method=pass_all
17465 + *) # from 4.6 on, and DragonFly
17466 + shlibpath_overrides_runpath=yes
17467 + hardcode_into_libs=yes
17472 -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17473 - lt_cv_deplibs_check_method=pass_all
17475 + version_type=linux
17476 + need_lib_prefix=no
17478 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17479 + soname_spec='${libname}${release}${shared_ext}$major'
17480 + shlibpath_var=LD_LIBRARY_PATH
17481 + hardcode_into_libs=yes
17485 -file_magic_cmd=$lt_cv_file_magic_cmd
17486 -deplibs_check_method=$lt_cv_deplibs_check_method
17487 -test -z "$deplibs_check_method" && deplibs_check_method=unknown
17488 -])# AC_DEPLIBS_CHECK_METHOD
17493 -# find the pathname to a BSD-compatible name lister
17494 -AC_DEFUN([AC_PROG_NM],
17495 -[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
17496 -[if test -n "$NM"; then
17497 - # Let the user override the test.
17498 - lt_cv_path_NM="$NM"
17500 - lt_nm_to_check="${ac_tool_prefix}nm"
17501 - if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
17502 - lt_nm_to_check="$lt_nm_to_check nm"
17504 - for lt_tmp_nm in $lt_nm_to_check; do
17505 - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17506 - for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
17507 - IFS="$lt_save_ifs"
17508 - test -z "$ac_dir" && ac_dir=.
17509 - tmp_nm="$ac_dir/$lt_tmp_nm"
17510 - if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
17511 - # Check to see if the nm accepts a BSD-compat flag.
17512 - # Adding the `sed 1q' prevents false positives on HP-UX, which says:
17513 - # nm: unknown option "B" ignored
17514 - # Tru64's nm complains that /dev/null is an invalid object file
17515 - case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
17516 - */dev/null* | *'Invalid file or object type'*)
17517 - lt_cv_path_NM="$tmp_nm -B"
17521 - case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
17523 - lt_cv_path_NM="$tmp_nm -p"
17527 - lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
17528 - continue # so that we can try to find one that supports BSD flags
17535 - IFS="$lt_save_ifs"
17537 - test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
17539 -NM="$lt_cv_path_NM"
17545 -# check for math library
17546 -AC_DEFUN([AC_CHECK_LIBM],
17547 -[AC_REQUIRE([AC_CANONICAL_HOST])dnl
17550 -*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
17551 - # These system don't have libm, or don't need it
17554 - AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
17555 - AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
17558 - AC_CHECK_LIB(m, cos, LIBM="-lm")
17559 +hpux9* | hpux10* | hpux11*)
17560 + # Give a soname corresponding to the major version so that dld.sl refuses to
17561 + # link against other versions.
17562 + version_type=sunos
17563 + need_lib_prefix=no
17565 + case $host_cpu in
17567 + shrext_cmds='.so'
17568 + hardcode_into_libs=yes
17569 + dynamic_linker="$host_os dld.so"
17570 + shlibpath_var=LD_LIBRARY_PATH
17571 + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17572 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17573 + soname_spec='${libname}${release}${shared_ext}$major'
17574 + if test "X$HPUX_IA64_MODE" = X32; then
17575 + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17577 + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17579 + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17582 + shrext_cmds='.sl'
17583 + hardcode_into_libs=yes
17584 + dynamic_linker="$host_os dld.sl"
17585 + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17586 + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17587 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17588 + soname_spec='${libname}${release}${shared_ext}$major'
17589 + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17590 + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17593 + shrext_cmds='.sl'
17594 + dynamic_linker="$host_os dld.sl"
17595 + shlibpath_var=SHLIB_PATH
17596 + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17597 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17598 + soname_spec='${libname}${release}${shared_ext}$major'
17601 + # HP-UX runs *really* slowly unless shared libraries are mode 555.
17602 + postinstall_cmds='chmod 555 $lib'
17608 + version_type=linux
17609 + need_lib_prefix=no
17611 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17612 + soname_spec='${libname}${release}${shared_ext}$major'
17613 + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17614 + shlibpath_var=LD_LIBRARY_PATH
17615 + shlibpath_overrides_runpath=no
17616 + hardcode_into_libs=yes
17619 -# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
17620 -# -----------------------------------
17621 -# sets LIBLTDL to the link flags for the libltdl convenience library and
17622 -# LTDLINCL to the include flags for the libltdl header and adds
17623 -# --enable-ltdl-convenience to the configure arguments. Note that
17624 -# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
17625 -# it is assumed to be `libltdl'. LIBLTDL will be prefixed with
17626 -# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
17627 -# (note the single quotes!). If your package is not flat and you're not
17628 -# using automake, define top_builddir and top_srcdir appropriately in
17630 -AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
17631 -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
17632 - case $enable_ltdl_convenience in
17633 - no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
17634 - "") enable_ltdl_convenience=yes
17635 - ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
17636 +irix5* | irix6* | nonstopux*)
17638 + nonstopux*) version_type=nonstopux ;;
17640 + if test "$lt_cv_prog_gnu_ld" = yes; then
17641 + version_type=linux
17643 + version_type=irix
17646 - LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
17647 - LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
17648 - # For backwards non-gettext consistent compatibility...
17649 - INCLTDL="$LTDLINCL"
17650 -])# AC_LIBLTDL_CONVENIENCE
17653 -# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
17654 -# -----------------------------------
17655 -# sets LIBLTDL to the link flags for the libltdl installable library and
17656 -# LTDLINCL to the include flags for the libltdl header and adds
17657 -# --enable-ltdl-install to the configure arguments. Note that
17658 -# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
17659 -# and an installed libltdl is not found, it is assumed to be `libltdl'.
17660 -# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
17661 -# '${top_srcdir}/' (note the single quotes!). If your package is not
17662 -# flat and you're not using automake, define top_builddir and top_srcdir
17663 -# appropriately in the Makefiles.
17664 -# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
17665 -AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
17666 -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
17667 - AC_CHECK_LIB(ltdl, lt_dlinit,
17668 - [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
17669 - [if test x"$enable_ltdl_install" = xno; then
17670 - AC_MSG_WARN([libltdl not installed, but installation disabled])
17672 - enable_ltdl_install=yes
17675 - if test x"$enable_ltdl_install" = x"yes"; then
17676 - ac_configure_args="$ac_configure_args --enable-ltdl-install"
17677 - LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
17678 - LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
17680 - ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
17684 - # For backwards non-gettext consistent compatibility...
17685 - INCLTDL="$LTDLINCL"
17686 -])# AC_LIBLTDL_INSTALLABLE
17687 + need_lib_prefix=no
17689 + soname_spec='${libname}${release}${shared_ext}$major'
17690 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17692 + irix5* | nonstopux*)
17693 + libsuff= shlibsuff=
17696 + case $LD in # libtool.m4 will add one of these switches to LD
17697 + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17698 + libsuff= shlibsuff= libmagic=32-bit;;
17699 + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17700 + libsuff=32 shlibsuff=N32 libmagic=N32;;
17701 + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17702 + libsuff=64 shlibsuff=64 libmagic=64-bit;;
17703 + *) libsuff= shlibsuff= libmagic=never-match;;
17707 + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17708 + shlibpath_overrides_runpath=no
17709 + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17710 + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17711 + hardcode_into_libs=yes
17714 +# No shared lib support for Linux oldld, aout, or coff.
17715 +linux*oldld* | linux*aout* | linux*coff*)
17716 + dynamic_linker=no
17721 -# enable support for C++ libraries
17722 -AC_DEFUN([AC_LIBTOOL_CXX],
17723 -[AC_REQUIRE([_LT_AC_LANG_CXX])
17724 -])# AC_LIBTOOL_CXX
17725 +# This must be Linux ELF.
17726 +linux* | k*bsd*-gnu)
17727 + version_type=linux
17728 + need_lib_prefix=no
17730 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17731 + soname_spec='${libname}${release}${shared_ext}$major'
17732 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17733 + shlibpath_var=LD_LIBRARY_PATH
17734 + shlibpath_overrides_runpath=no
17735 + # Some binutils ld are patched to set DT_RUNPATH
17736 + save_LDFLAGS=$LDFLAGS
17737 + save_libdir=$libdir
17738 + eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
17739 + LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
17740 + AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
17741 + [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
17742 + [shlibpath_overrides_runpath=yes])])
17743 + LDFLAGS=$save_LDFLAGS
17744 + libdir=$save_libdir
17746 + # This implies no fast_install, which is unacceptable.
17747 + # Some rework will be needed to allow for fast_install
17748 + # before this can be enabled.
17749 + hardcode_into_libs=yes
17753 -AC_DEFUN([_LT_AC_LANG_CXX],
17754 -[AC_REQUIRE([AC_PROG_CXX])
17755 -AC_REQUIRE([_LT_AC_PROG_CXXCPP])
17756 -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
17757 -])# _LT_AC_LANG_CXX
17758 + # Append ld.so.conf contents to the search path
17759 + if test -f /etc/ld.so.conf; then
17760 + 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' ' '`
17761 + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17764 -# _LT_AC_PROG_CXXCPP
17765 -# ------------------
17766 -AC_DEFUN([_LT_AC_PROG_CXXCPP],
17768 -AC_REQUIRE([AC_PROG_CXX])
17769 -if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17770 - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17771 - (test "X$CXX" != "Xg++"))) ; then
17774 -])# _LT_AC_PROG_CXXCPP
17778 -# enable support for Fortran 77 libraries
17779 -AC_DEFUN([AC_LIBTOOL_F77],
17780 -[AC_REQUIRE([_LT_AC_LANG_F77])
17781 -])# AC_LIBTOOL_F77
17786 -AC_DEFUN([_LT_AC_LANG_F77],
17787 -[AC_REQUIRE([AC_PROG_F77])
17788 -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
17789 -])# _LT_AC_LANG_F77
17794 -# enable support for GCJ libraries
17795 -AC_DEFUN([AC_LIBTOOL_GCJ],
17796 -[AC_REQUIRE([_LT_AC_LANG_GCJ])
17797 -])# AC_LIBTOOL_GCJ
17802 -AC_DEFUN([_LT_AC_LANG_GCJ],
17803 -[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
17804 - [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
17805 - [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
17806 - [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
17807 - [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
17808 - [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
17809 -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
17810 -])# _LT_AC_LANG_GCJ
17815 -# enable support for Windows resource files
17816 -AC_DEFUN([AC_LIBTOOL_RC],
17817 -[AC_REQUIRE([LT_AC_PROG_RC])
17818 -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
17820 + # We used to test for /lib/ld.so.1 and disable shared libraries on
17821 + # powerpc, because MkLinux only supported shared libraries with the
17822 + # GNU dynamic linker. Since this was broken with cross compilers,
17823 + # most powerpc-linux boxes support dynamic linking these days and
17824 + # people can always --disable-shared, the test was removed, and we
17825 + # assume the GNU/Linux dynamic linker is in use.
17826 + dynamic_linker='GNU/Linux ld.so'
17830 + version_type=sunos
17831 + need_lib_prefix=no
17833 + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17834 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17835 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17836 + dynamic_linker='NetBSD (a.out) ld.so'
17838 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17839 + soname_spec='${libname}${release}${shared_ext}$major'
17840 + dynamic_linker='NetBSD ld.elf_so'
17842 + shlibpath_var=LD_LIBRARY_PATH
17843 + shlibpath_overrides_runpath=yes
17844 + hardcode_into_libs=yes
17847 -# AC_LIBTOOL_LANG_C_CONFIG
17848 -# ------------------------
17849 -# Ensure that the configuration vars for the C compiler are
17850 -# suitably defined. Those variables are subsequently used by
17851 -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
17852 -AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
17853 -AC_DEFUN([_LT_AC_LANG_C_CONFIG],
17857 + version_type=linux
17858 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17859 + shlibpath_var=LD_LIBRARY_PATH
17860 + shlibpath_overrides_runpath=yes
17863 -# Source file extension for C test sources.
17867 + need_lib_prefix=no
17869 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17870 + soname_spec='${libname}${release}${shared_ext}$major'
17871 + shlibpath_var=LD_LIBRARY_PATH
17872 + shlibpath_overrides_runpath=no
17873 + hardcode_into_libs=yes
17874 + dynamic_linker='ldqnx.so'
17877 -# Object file extension for compiled C test sources.
17879 -_LT_AC_TAGVAR(objext, $1)=$objext
17881 + version_type=sunos
17882 + sys_lib_dlsearch_path_spec="/usr/lib"
17883 + need_lib_prefix=no
17884 + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17886 + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17887 + *) need_version=no ;;
17889 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17890 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17891 + shlibpath_var=LD_LIBRARY_PATH
17892 + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17894 + openbsd2.[[89]] | openbsd2.[[89]].*)
17895 + shlibpath_overrides_runpath=no
17898 + shlibpath_overrides_runpath=yes
17902 + shlibpath_overrides_runpath=yes
17906 -# Code to be used in simple compile tests
17907 -lt_simple_compile_test_code="int some_variable = 0;\n"
17909 + libname_spec='$name'
17910 + shrext_cmds=".dll"
17911 + need_lib_prefix=no
17912 + library_names_spec='$libname${shared_ext} $libname.a'
17913 + dynamic_linker='OS/2 ld.exe'
17914 + shlibpath_var=LIBPATH
17917 -# Code to be used in simple link tests
17918 -lt_simple_link_test_code='int main(){return(0);}\n'
17919 +osf3* | osf4* | osf5*)
17921 + need_lib_prefix=no
17923 + soname_spec='${libname}${release}${shared_ext}$major'
17924 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17925 + shlibpath_var=LD_LIBRARY_PATH
17926 + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17927 + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17930 -_LT_AC_SYS_COMPILER
17932 + dynamic_linker=no
17935 -# save warnings/boilerplate of simple test code
17936 -_LT_COMPILER_BOILERPLATE
17937 -_LT_LINKER_BOILERPLATE
17939 + version_type=linux
17940 + need_lib_prefix=no
17942 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17943 + soname_spec='${libname}${release}${shared_ext}$major'
17944 + shlibpath_var=LD_LIBRARY_PATH
17945 + shlibpath_overrides_runpath=yes
17946 + hardcode_into_libs=yes
17947 + # ldd complains unless libraries are executable
17948 + postinstall_cmds='chmod +x $lib'
17952 -## There is no encapsulation within the following macros, do not change
17953 -## the running order or otherwise move them around unless you know exactly
17954 -## what you are doing...
17955 -AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
17956 -AC_LIBTOOL_PROG_COMPILER_PIC($1)
17957 -AC_LIBTOOL_PROG_CC_C_O($1)
17958 -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
17959 -AC_LIBTOOL_PROG_LD_SHLIBS($1)
17960 -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
17961 -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
17962 -AC_LIBTOOL_SYS_LIB_STRIP
17963 -AC_LIBTOOL_DLOPEN_SELF
17965 -# Report which library types will actually be built
17966 -AC_MSG_CHECKING([if libtool supports shared libraries])
17967 -AC_MSG_RESULT([$can_build_shared])
17969 + version_type=sunos
17970 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17971 + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17972 + shlibpath_var=LD_LIBRARY_PATH
17973 + shlibpath_overrides_runpath=yes
17974 + if test "$with_gnu_ld" = yes; then
17975 + need_lib_prefix=no
17980 -AC_MSG_CHECKING([whether to build shared libraries])
17981 -test "$can_build_shared" = "no" && enable_shared=no
17983 + version_type=linux
17984 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17985 + soname_spec='${libname}${release}${shared_ext}$major'
17986 + shlibpath_var=LD_LIBRARY_PATH
17987 + case $host_vendor in
17989 + shlibpath_overrides_runpath=no
17990 + need_lib_prefix=no
17991 + runpath_var=LD_RUN_PATH
17994 + need_lib_prefix=no
17997 + need_lib_prefix=no
17999 + shlibpath_overrides_runpath=no
18000 + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18005 -# On AIX, shared libraries and static libraries use the same namespace, and
18006 -# are all built from PIC.
18009 - test "$enable_shared" = yes && enable_static=no
18010 - if test -n "$RANLIB"; then
18011 - archive_cmds="$archive_cmds~\$RANLIB \$lib"
18012 - postinstall_cmds='$RANLIB $lib'
18014 + if test -d /usr/nec ;then
18015 + version_type=linux
18016 + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18017 + soname_spec='$libname${shared_ext}.$major'
18018 + shlibpath_var=LD_LIBRARY_PATH
18023 - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18024 - test "$enable_shared" = yes && enable_static=no
18025 +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18026 + version_type=freebsd-elf
18027 + need_lib_prefix=no
18029 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18030 + soname_spec='${libname}${release}${shared_ext}$major'
18031 + shlibpath_var=LD_LIBRARY_PATH
18032 + shlibpath_overrides_runpath=yes
18033 + hardcode_into_libs=yes
18034 + if test "$with_gnu_ld" = yes; then
18035 + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18037 + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18040 + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18046 -AC_MSG_RESULT([$enable_shared])
18048 -AC_MSG_CHECKING([whether to build static libraries])
18049 -# Make sure either enable_shared or enable_static is yes.
18050 -test "$enable_shared" = yes || enable_static=yes
18051 -AC_MSG_RESULT([$enable_static])
18053 -AC_LIBTOOL_CONFIG($1)
18057 -])# AC_LIBTOOL_LANG_C_CONFIG
18060 -# AC_LIBTOOL_LANG_CXX_CONFIG
18061 -# --------------------------
18062 -# Ensure that the configuration vars for the C compiler are
18063 -# suitably defined. Those variables are subsequently used by
18064 -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
18065 -AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
18066 -AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
18067 -[AC_LANG_PUSH(C++)
18068 -AC_REQUIRE([AC_PROG_CXX])
18069 -AC_REQUIRE([_LT_AC_PROG_CXXCPP])
18071 -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
18072 -_LT_AC_TAGVAR(allow_undefined_flag, $1)=
18073 -_LT_AC_TAGVAR(always_export_symbols, $1)=no
18074 -_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
18075 -_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
18076 -_LT_AC_TAGVAR(hardcode_direct, $1)=no
18077 -_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
18078 -_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
18079 -_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
18080 -_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
18081 -_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
18082 -_LT_AC_TAGVAR(hardcode_automatic, $1)=no
18083 -_LT_AC_TAGVAR(module_cmds, $1)=
18084 -_LT_AC_TAGVAR(module_expsym_cmds, $1)=
18085 -_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
18086 -_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
18087 -_LT_AC_TAGVAR(no_undefined_flag, $1)=
18088 -_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
18089 -_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
18091 -# Dependencies to place before and after the object being linked:
18092 -_LT_AC_TAGVAR(predep_objects, $1)=
18093 -_LT_AC_TAGVAR(postdep_objects, $1)=
18094 -_LT_AC_TAGVAR(predeps, $1)=
18095 -_LT_AC_TAGVAR(postdeps, $1)=
18096 -_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
18098 -# Source file extension for C++ test sources.
18101 -# Object file extension for compiled C++ test sources.
18103 -_LT_AC_TAGVAR(objext, $1)=$objext
18105 -# Code to be used in simple compile tests
18106 -lt_simple_compile_test_code="int some_variable = 0;\n"
18107 + sys_lib_dlsearch_path_spec='/usr/lib'
18110 -# Code to be used in simple link tests
18111 -lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n'
18113 + # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18114 + version_type=linux
18115 + need_lib_prefix=no
18117 + library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18118 + shlibpath_var=LD_LIBRARY_PATH
18119 + shlibpath_overrides_runpath=no
18120 + hardcode_into_libs=yes
18123 -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18124 -_LT_AC_SYS_COMPILER
18126 + version_type=linux
18127 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18128 + soname_spec='${libname}${release}${shared_ext}$major'
18129 + shlibpath_var=LD_LIBRARY_PATH
18132 -# save warnings/boilerplate of simple test code
18133 -_LT_COMPILER_BOILERPLATE
18134 -_LT_LINKER_BOILERPLATE
18136 + dynamic_linker=no
18139 +AC_MSG_RESULT([$dynamic_linker])
18140 +test "$dynamic_linker" = no && can_build_shared=no
18142 -# Allow CC to be a program name with arguments.
18147 -lt_save_with_gnu_ld=$with_gnu_ld
18148 -lt_save_path_LD=$lt_cv_path_LD
18149 -if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18150 - lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18152 - $as_unset lt_cv_prog_gnu_ld
18153 +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18154 +if test "$GCC" = yes; then
18155 + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18157 -if test -n "${lt_cv_path_LDCXX+set}"; then
18158 - lt_cv_path_LD=$lt_cv_path_LDCXX
18160 - $as_unset lt_cv_path_LD
18162 +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18163 + sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18165 -test -z "${LDCXX+set}" || LD=$LDCXX
18168 -_LT_AC_TAGVAR(compiler, $1)=$CC
18169 -_LT_CC_BASENAME([$compiler])
18171 -# We don't want -fno-exception wen compiling C++ code, so set the
18172 -# no_builtin_flag separately
18173 -if test "$GXX" = yes; then
18174 - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
18176 - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
18177 +if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18178 + sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18181 -if test "$GXX" = yes; then
18182 - # Set up default GNU C++ configuration
18186 - # Check if GNU C++ uses GNU ld as the underlying linker, since the
18187 - # archiving commands below assume that GNU ld is being used.
18188 - if test "$with_gnu_ld" = yes; then
18189 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18190 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18192 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
18193 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
18195 - # If archive_cmds runs LD, not CC, wlarc should be empty
18196 - # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18197 - # investigate it a little bit more. (MM)
18200 - # ancient GNU ld didn't support --whole-archive et. al.
18201 - if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18202 - grep 'no-whole-archive' > /dev/null; then
18203 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18205 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
18211 - # A generic and very simple default shared library creation
18212 - # command for GNU C++ for the case where it uses the native
18213 - # linker, instead of GNU ld. If possible, this setting should
18214 - # overridden to take advantage of the native linker features on
18215 - # the platform it is being used on.
18216 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18219 - # Commands to make compiler produce verbose output that lists
18220 - # what "hidden" libraries, object files and flags are used when
18221 - # linking a shared library.
18222 - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18229 +_LT_DECL([], [variables_saved_for_relink], [1],
18230 + [Variables whose values should be saved in libtool wrapper scripts and
18231 + restored at link time])
18232 +_LT_DECL([], [need_lib_prefix], [0],
18233 + [Do we need the "lib" prefix for modules?])
18234 +_LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
18235 +_LT_DECL([], [version_type], [0], [Library versioning type])
18236 +_LT_DECL([], [runpath_var], [0], [Shared library runtime path variable])
18237 +_LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
18238 +_LT_DECL([], [shlibpath_overrides_runpath], [0],
18239 + [Is shlibpath searched before the hard-coded library search path?])
18240 +_LT_DECL([], [libname_spec], [1], [Format of library name prefix])
18241 +_LT_DECL([], [library_names_spec], [1],
18242 + [[List of archive names. First name is the real one, the rest are links.
18243 + The last name is the one that the linker finds with -lNAME]])
18244 +_LT_DECL([], [soname_spec], [1],
18245 + [[The coded name of the library, if different from the real name]])
18246 +_LT_DECL([], [postinstall_cmds], [2],
18247 + [Command to use after installation of a shared archive])
18248 +_LT_DECL([], [postuninstall_cmds], [2],
18249 + [Command to use after uninstallation of a shared archive])
18250 +_LT_DECL([], [finish_cmds], [2],
18251 + [Commands used to finish a libtool library installation in a directory])
18252 +_LT_DECL([], [finish_eval], [1],
18253 + [[As "finish_cmds", except a single script fragment to be evaled but
18255 +_LT_DECL([], [hardcode_into_libs], [0],
18256 + [Whether we should hardcode library paths into libraries])
18257 +_LT_DECL([], [sys_lib_search_path_spec], [2],
18258 + [Compile-time system search path for libraries])
18259 +_LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
18260 + [Run-time system search path for libraries])
18261 +])# _LT_SYS_DYNAMIC_LINKER
18263 -# PORTME: fill in a description of your system's C++ link characteristics
18264 -AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
18265 -_LT_AC_TAGVAR(ld_shlibs, $1)=yes
18268 - # FIXME: insert proper C++ library support
18269 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
18272 - if test "$host_cpu" = ia64; then
18273 - # On IA64, the linker does run time linking by default, so we don't
18274 - # have to do anything special.
18275 - aix_use_runtimelinking=no
18276 - exp_sym_flag='-Bexport'
18279 - aix_use_runtimelinking=no
18281 - # Test if we are trying to use run time linking or normal
18282 - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18283 - # need to do runtime linking.
18284 - case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
18285 - for ld_flag in $LDFLAGS; do
18288 - aix_use_runtimelinking=yes
18296 - exp_sym_flag='-bexport'
18297 - no_entry_flag='-bnoentry'
18299 +# _LT_PATH_TOOL_PREFIX(TOOL)
18300 +# --------------------------
18301 +# find a file program which can recognize shared library
18302 +AC_DEFUN([_LT_PATH_TOOL_PREFIX],
18303 +[m4_require([_LT_DECL_EGREP])dnl
18304 +AC_MSG_CHECKING([for $1])
18305 +AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
18306 +[case $MAGIC_CMD in
18307 +[[\\/*] | ?:[\\/]*])
18308 + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
18311 + lt_save_MAGIC_CMD="$MAGIC_CMD"
18312 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18313 +dnl $ac_dummy forces splitting on constant user-supplied paths.
18314 +dnl POSIX.2 word splitting is done only on the output of word expansions,
18315 +dnl not every word. This closes a longstanding sh security hole.
18316 + ac_dummy="m4_if([$2], , $PATH, [$2])"
18317 + for ac_dir in $ac_dummy; do
18318 + IFS="$lt_save_ifs"
18319 + test -z "$ac_dir" && ac_dir=.
18320 + if test -f $ac_dir/$1; then
18321 + lt_cv_path_MAGIC_CMD="$ac_dir/$1"
18322 + if test -n "$file_magic_test_file"; then
18323 + case $deplibs_check_method in
18325 + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
18326 + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
18327 + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
18328 + $EGREP "$file_magic_regex" > /dev/null; then
18331 + cat <<_LT_EOF 1>&2
18333 - # When large executables or shared objects are built, AIX ld can
18334 - # have problems creating the table of contents. If linking a library
18335 - # or program results in "error TOC overflow" add -mminimal-toc to
18336 - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18337 - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18339 - _LT_AC_TAGVAR(archive_cmds, $1)=''
18340 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
18341 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
18342 - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
18343 +*** Warning: the command libtool uses to detect shared libraries,
18344 +*** $file_magic_cmd, produces output that libtool cannot recognize.
18345 +*** The result is that libtool may fail to recognize shared libraries
18346 +*** as such. This will affect the creation of libtool libraries that
18347 +*** depend on shared libraries, but programs linked with such libtool
18348 +*** libraries will work regardless of this problem. Nevertheless, you
18349 +*** may want to report the problem to your system manager and/or to
18350 +*** bug-libtool@gnu.org
18352 - if test "$GXX" = yes; then
18353 - case $host_os in aix4.[[012]]|aix4.[[012]].*)
18354 - # We only want to do this on AIX 4.2 and lower, the check
18355 - # below for broken collect2 doesn't work under 4.3+
18356 - collect2name=`${CC} -print-prog-name=collect2`
18357 - if test -f "$collect2name" && \
18358 - strings "$collect2name" | grep resolve_lib_name >/dev/null
18360 - # We have reworked collect2
18361 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
18363 - # We have old collect2
18364 - _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
18365 - # It fails to find uninstalled libraries when the uninstalled
18366 - # path is not listed in the libpath. Setting hardcode_minus_L
18367 - # to unsupported forces relinking
18368 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
18369 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
18370 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
18374 - shared_flag='-shared'
18375 - if test "$aix_use_runtimelinking" = yes; then
18376 - shared_flag="$shared_flag "'${wl}-G'
18380 - if test "$host_cpu" = ia64; then
18381 - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18382 - # chokes on -Wl,-G. The following line is correct:
18385 - if test "$aix_use_runtimelinking" = yes; then
18386 - shared_flag='${wl}-G'
18388 - shared_flag='${wl}-bM:SRE'
18397 + IFS="$lt_save_ifs"
18398 + MAGIC_CMD="$lt_save_MAGIC_CMD"
18401 +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
18402 +if test -n "$MAGIC_CMD"; then
18403 + AC_MSG_RESULT($MAGIC_CMD)
18405 + AC_MSG_RESULT(no)
18407 +_LT_DECL([], [MAGIC_CMD], [0],
18408 + [Used to examine libraries when file_magic_cmd begins with "file"])dnl
18409 +])# _LT_PATH_TOOL_PREFIX
18411 - # It seems that -bexpall does not export symbols beginning with
18412 - # underscore (_), so it is better to generate a list of symbols to export.
18413 - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
18414 - if test "$aix_use_runtimelinking" = yes; then
18415 - # Warning - without using the other runtime loading flags (-brtl),
18416 - # -berok will link without error, but may produce a broken library.
18417 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
18418 - # Determine the default libpath from the value encoded in an empty executable.
18419 - _LT_AC_SYS_LIBPATH_AIX
18420 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
18422 +AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
18423 +dnl aclocal-1.4 backwards compatibility:
18424 +dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
18426 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
18428 - if test "$host_cpu" = ia64; then
18429 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
18430 - _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
18431 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
18433 - # Determine the default libpath from the value encoded in an empty executable.
18434 - _LT_AC_SYS_LIBPATH_AIX
18435 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
18436 - # Warning - without using the other run time loading flags,
18437 - # -berok will link without error, but may produce a broken library.
18438 - _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
18439 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
18440 - # Exported symbols can be pulled into shared objects from archives
18441 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
18442 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
18443 - # This is similar to how AIX traditionally builds its shared libraries.
18444 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
18450 - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18451 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
18452 - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18453 - # support --undefined. This deserves some investigation. FIXME
18454 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18456 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
18461 +# find a file program which can recognize a shared library
18462 +m4_defun([_LT_PATH_MAGIC],
18463 +[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
18464 +if test -z "$lt_cv_path_MAGIC_CMD"; then
18465 + if test -n "$ac_tool_prefix"; then
18466 + _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
18471 +])# _LT_PATH_MAGIC
18474 - case $cc_basename in
18476 - # FIXME: insert proper C++ library support
18477 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
18482 - cygwin* | mingw* | pw32*)
18483 - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
18484 - # as there is no search path for DLLs.
18485 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
18486 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
18487 - _LT_AC_TAGVAR(always_export_symbols, $1)=no
18488 - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
18490 - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18491 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18492 - # If the export-symbols file already is a .def file (1st line
18493 - # is EXPORTS), use it as is; otherwise, prepend...
18494 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18495 - cp $export_symbols $output_objdir/$soname.def;
18497 - echo EXPORTS > $output_objdir/$soname.def;
18498 - cat $export_symbols >> $output_objdir/$soname.def;
18500 - $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'
18502 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
18505 - darwin* | rhapsody*)
18507 - rhapsody* | darwin1.[[012]])
18508 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
18510 - *) # Darwin 1.3 on
18511 - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18512 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18514 - case ${MACOSX_DEPLOYMENT_TARGET} in
18516 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18519 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
18525 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
18526 - _LT_AC_TAGVAR(hardcode_direct, $1)=no
18527 - _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
18528 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
18529 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
18530 - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
18532 - if test "$GXX" = yes ; then
18533 - lt_int_apple_cc_single_mod=no
18534 - output_verbose_link_cmd='echo'
18535 - if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18536 - lt_int_apple_cc_single_mod=yes
18538 - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18539 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18541 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18543 - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18544 - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18545 - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18546 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18548 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18550 - _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18552 - case $cc_basename in
18554 - output_verbose_link_cmd='echo'
18555 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
18556 - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18557 - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18558 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18559 - _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18562 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
18569 +# find the pathname to the GNU or non-GNU linker
18570 +AC_DEFUN([LT_PATH_LD],
18571 +[AC_REQUIRE([AC_PROG_CC])dnl
18572 +AC_REQUIRE([AC_CANONICAL_HOST])dnl
18573 +AC_REQUIRE([AC_CANONICAL_BUILD])dnl
18574 +m4_require([_LT_DECL_SED])dnl
18575 +m4_require([_LT_DECL_EGREP])dnl
18578 - case $cc_basename in
18580 - # FIXME: insert proper C++ library support
18581 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
18584 - # Green Hills C++ Compiler
18585 - # FIXME: insert proper C++ library support
18586 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
18589 - # FIXME: insert proper C++ library support
18590 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
18595 - # C++ shared libraries reported to be fairly broken before switch to ELF
18596 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
18599 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
18601 - freebsd* | kfreebsd*-gnu | dragonfly*)
18602 - # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18604 - _LT_AC_TAGVAR(ld_shlibs, $1)=yes
18609 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
18610 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
18611 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
18612 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
18613 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
18614 - # but as the default
18615 - # location of the library.
18617 - case $cc_basename in
18619 - # FIXME: insert proper C++ library support
18620 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
18623 - _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
18624 - # Commands to make compiler produce verbose output that lists
18625 - # what "hidden" libraries, object files and flags are used when
18626 - # linking a shared library.
18628 - # There doesn't appear to be a way to prevent this compiler from
18629 - # explicitly linking system object files so we need to strip them
18630 - # from the output so that they don't get included in the library
18632 - output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[[-]]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
18635 - if test "$GXX" = yes; then
18636 - _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
18638 - # FIXME: insert proper C++ library support
18639 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
18645 - if test $with_gnu_ld = no; then
18646 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
18647 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
18648 +AC_ARG_WITH([gnu-ld],
18649 + [AS_HELP_STRING([--with-gnu-ld],
18650 + [assume the C compiler uses GNU ld @<:@default=no@:>@])],
18651 + [test "$withval" = no || with_gnu_ld=yes],
18652 + [with_gnu_ld=no])dnl
18654 - case $host_cpu in
18656 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
18659 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
18663 - case $host_cpu in
18665 - _LT_AC_TAGVAR(hardcode_direct, $1)=no
18666 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
18669 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
18670 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
18671 - # but as the default
18672 - # location of the library.
18674 +if test "$GCC" = yes; then
18675 + # Check if gcc -print-prog-name=ld gives a path.
18676 + AC_MSG_CHECKING([for ld used by $CC])
18679 + # gcc leaves a trailing carriage return which upsets mingw
18680 + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18682 + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18685 + # Accept absolute paths.
18686 + [[\\/]]* | ?:[[\\/]]*)
18687 + re_direlt='/[[^/]][[^/]]*/\.\./'
18688 + # Canonicalize the pathname of ld
18689 + ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18690 + while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18691 + ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18693 + test -z "$LD" && LD="$ac_prog"
18697 - case $cc_basename in
18699 - # FIXME: insert proper C++ library support
18700 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
18703 - case $host_cpu in
18705 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18708 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18711 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18714 - # Commands to make compiler produce verbose output that lists
18715 - # what "hidden" libraries, object files and flags are used when
18716 - # linking a shared library.
18718 - # There doesn't appear to be a way to prevent this compiler from
18719 - # explicitly linking system object files so we need to strip them
18720 - # from the output so that they don't get included in the library
18722 - output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
18725 - if test "$GXX" = yes; then
18726 - if test $with_gnu_ld = no; then
18727 - case $host_cpu in
18729 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18732 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18735 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18740 - # FIXME: insert proper C++ library support
18741 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
18747 - _LT_AC_TAGVAR(hardcode_direct, $1)=no
18748 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
18749 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
18750 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
18751 - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18752 - # Instead, shared libraries are loaded at an image base (0x10000000 by
18753 - # default) and relocated if they conflict, which is a slow very memory
18754 - # consuming and fragmenting process. To avoid this, we pick a random,
18755 - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18756 - # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18757 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
18758 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
18761 - case $cc_basename in
18764 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18766 - # Archives containing C++ object files must be created using
18767 - # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18768 - # necessary to make sure instantiated templates are included
18769 - # in the archive.
18770 - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
18773 - if test "$GXX" = yes; then
18774 - if test "$with_gnu_ld" = no; then
18775 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18777 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
18780 - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
18783 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
18784 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
18786 + # If it fails, then pretend we aren't using GCC.
18790 - case $cc_basename in
18792 - # Kuck and Associates, Inc. (KAI) C++ Compiler
18794 - # KCC will only create a shared library if the output file
18795 - # ends with ".so" (or ".sl" for HP-UX), so rename the library
18796 - # to its proper name (with version) after linking.
18797 - _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
18798 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
18799 - # Commands to make compiler produce verbose output that lists
18800 - # what "hidden" libraries, object files and flags are used when
18801 - # linking a shared library.
18803 - # There doesn't appear to be a way to prevent this compiler from
18804 - # explicitly linking system object files so we need to strip them
18805 - # from the output so that they don't get included in the library
18807 - output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
18809 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
18810 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
18812 - # Archives containing C++ object files must be created using
18813 - # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18814 - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
18819 - # version 8.0 and above of icpc choke on multiply defined symbols
18820 - # if we add $predep_objects and $postdep_objects, however 7.1 and
18821 - # earlier do not add the objects themselves.
18822 - case `$CC -V 2>&1` in
18824 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18825 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18827 - *) # Version 8.0 or newer
18829 - case $host_cpu in
18830 - ia64*) tmp_idyn=' -i_dynamic';;
18832 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18833 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18836 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
18837 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
18838 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
18839 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18842 - # Portland Group C++ compiler
18843 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18844 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
18846 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
18847 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
18848 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
18852 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18853 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
18855 - runpath_var=LD_RUN_PATH
18856 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
18857 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
18859 - # Commands to make compiler produce verbose output that lists
18860 - # what "hidden" libraries, object files and flags are used when
18861 - # linking a shared library.
18863 - # There doesn't appear to be a way to prevent this compiler from
18864 - # explicitly linking system object files so we need to strip them
18865 - # from the output so that they don't get included in the library
18867 - output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
18870 - case `$CC -V 2>&1 | sed 5q` in
18873 - _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
18874 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18875 - _LT_AC_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'
18876 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
18877 - _LT_AC_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'
18879 - # Not sure whether something based on
18880 - # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
18881 - # would be better.
18882 - output_verbose_link_cmd='echo'
18884 - # Archives containing C++ object files must be created using
18885 - # "CC -xar", where "CC" is the Sun C++ compiler. This is
18886 - # necessary to make sure instantiated templates are included
18887 - # in the archive.
18888 - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
18894 + # If it is relative, then search for the first ld in PATH.
18895 + with_gnu_ld=unknown
18898 - # FIXME: insert proper C++ library support
18899 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
18902 - # FIXME: insert proper C++ library support
18903 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
18906 - case $cc_basename in
18908 - # FIXME: insert proper C++ library support
18909 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
18911 +elif test "$with_gnu_ld" = yes; then
18912 + AC_MSG_CHECKING([for GNU ld])
18914 + AC_MSG_CHECKING([for non-GNU ld])
18916 +AC_CACHE_VAL(lt_cv_path_LD,
18917 +[if test -z "$LD"; then
18918 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18919 + for ac_dir in $PATH; do
18920 + IFS="$lt_save_ifs"
18921 + test -z "$ac_dir" && ac_dir=.
18922 + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18923 + lt_cv_path_LD="$ac_dir/$ac_prog"
18924 + # Check to see if the program is GNU ld. I'd rather use --version,
18925 + # but apparently some variants of GNU ld only accept -v.
18926 + # Break only if it was the GNU/non-GNU ld that we prefer.
18927 + case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18928 + *GNU* | *'with BFD'*)
18929 + test "$with_gnu_ld" != no && break
18932 - # FIXME: insert proper C++ library support
18933 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
18934 + test "$with_gnu_ld" != yes && break
18939 - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18940 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18942 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
18943 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
18944 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
18946 - # Workaround some broken pre-1.5 toolchains
18947 - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18950 - # C++ shared libraries are fairly broken
18951 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
18954 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
18955 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
18956 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18957 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
18958 - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18959 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18960 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
18961 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18964 - output_verbose_link_cmd='echo'
18967 - case $cc_basename in
18969 - # Kuck and Associates, Inc. (KAI) C++ Compiler
18971 - # KCC will only create a shared library if the output file
18972 - # ends with ".so" (or ".sl" for HP-UX), so rename the library
18973 - # to its proper name (with version) after linking.
18974 - _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
18976 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
18977 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
18979 - # Archives containing C++ object files must be created using
18980 - # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18981 - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
18985 - # Rational C++ 2.4.1
18986 - # FIXME: insert proper C++ library support
18987 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
18990 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
18991 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18993 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
18994 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
18996 - # Commands to make compiler produce verbose output that lists
18997 - # what "hidden" libraries, object files and flags are used when
18998 - # linking a shared library.
19000 - # There doesn't appear to be a way to prevent this compiler from
19001 - # explicitly linking system object files so we need to strip them
19002 - # from the output so that they don't get included in the library
19004 - output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
19007 - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19008 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
19009 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
19011 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
19012 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
19014 - # Commands to make compiler produce verbose output that lists
19015 - # what "hidden" libraries, object files and flags are used when
19016 - # linking a shared library.
19017 - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19019 + IFS="$lt_save_ifs"
19021 + lt_cv_path_LD="$LD" # Let the user override the test with a path.
19023 +LD="$lt_cv_path_LD"
19024 +if test -n "$LD"; then
19025 + AC_MSG_RESULT($LD)
19027 + AC_MSG_RESULT(no)
19029 +test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
19034 - # FIXME: insert proper C++ library support
19035 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
19041 - case $cc_basename in
19043 - # Kuck and Associates, Inc. (KAI) C++ Compiler
19045 - # KCC will only create a shared library if the output file
19046 - # ends with ".so" (or ".sl" for HP-UX), so rename the library
19047 - # to its proper name (with version) after linking.
19048 - _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
19050 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
19051 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
19053 - # Archives containing C++ object files must be created using
19054 - # the KAI C++ compiler.
19055 - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
19058 - # Rational C++ 2.4.1
19059 - # FIXME: insert proper C++ library support
19060 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
19063 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
19064 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
19065 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19066 - echo "-hidden">> $lib.exp~
19067 - $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
19070 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
19071 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
19073 - # Commands to make compiler produce verbose output that lists
19074 - # what "hidden" libraries, object files and flags are used when
19075 - # linking a shared library.
19077 - # There doesn't appear to be a way to prevent this compiler from
19078 - # explicitly linking system object files so we need to strip them
19079 - # from the output so that they don't get included in the library
19081 - output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
19084 - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19085 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
19086 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
19088 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
19089 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
19091 - # Commands to make compiler produce verbose output that lists
19092 - # what "hidden" libraries, object files and flags are used when
19093 - # linking a shared library.
19094 - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19095 +_LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
19099 - # FIXME: insert proper C++ library support
19100 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
19106 - # FIXME: insert proper C++ library support
19107 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
19110 - case $cc_basename in
19113 - # FIXME: insert proper C++ library support
19114 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
19118 - # FIXME: insert proper C++ library support
19119 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
19122 - # FIXME: insert proper C++ library support
19123 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
19127 +AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
19128 +AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
19129 +dnl aclocal-1.4 backwards compatibility:
19130 +dnl AC_DEFUN([AM_PROG_LD], [])
19131 +dnl AC_DEFUN([AC_PROG_LD], [])
19136 +m4_defun([_LT_PATH_LD_GNU],
19137 +[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
19138 +[# I'd rather use --version here, but apparently some GNU lds only accept -v.
19139 +case `$LD -v 2>&1 </dev/null` in
19140 +*GNU* | *'with BFD'*)
19141 + lt_cv_prog_gnu_ld=yes
19144 + lt_cv_prog_gnu_ld=no
19147 +with_gnu_ld=$lt_cv_prog_gnu_ld
19148 +])# _LT_PATH_LD_GNU
19153 +# find reload flag for linker
19154 +# -- PORTME Some linkers may need a different reload flag.
19155 +m4_defun([_LT_CMD_RELOAD],
19156 +[AC_CACHE_CHECK([for $LD option to reload object files],
19157 + lt_cv_ld_reload_flag,
19158 + [lt_cv_ld_reload_flag='-r'])
19159 +reload_flag=$lt_cv_ld_reload_flag
19160 +case $reload_flag in
19162 +*) reload_flag=" $reload_flag" ;;
19164 +reload_cmds='$LD$reload_flag -o $output$reload_objs'
19167 + if test "$GCC" = yes; then
19168 + reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
19170 + reload_cmds='$LD$reload_flag -o $output$reload_objs'
19174 - case $cc_basename in
19176 - # Sun C++ 4.2, 5.x and Centerline C++
19177 - _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
19178 - _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
19179 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19180 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19181 - $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'
19183 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
19184 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
19186 - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
19188 - # The C++ compiler is used as linker so we must use $wl
19189 - # flag to pass the commands to the underlying system
19190 - # linker. We must also pass each convience library through
19191 - # to the system linker between allextract/defaultextract.
19192 - # The C++ compiler will combine linker options so we
19193 - # cannot just pass the convience library names through
19195 - # Supported since Solaris 2.6 (maybe 2.5.1?)
19196 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
19199 - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
19201 +_LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
19202 +_LT_DECL([], [reload_cmds], [2])dnl
19203 +])# _LT_CMD_RELOAD
19205 - output_verbose_link_cmd='echo'
19207 - # Archives containing C++ object files must be created using
19208 - # "CC -xar", where "CC" is the Sun C++ compiler. This is
19209 - # necessary to make sure instantiated templates are included
19210 - # in the archive.
19211 - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
19214 - # Green Hills C++ Compiler
19215 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19216 +# _LT_CHECK_MAGIC_METHOD
19217 +# ----------------------
19218 +# how to check for library dependencies
19219 +# -- PORTME fill in with the dynamic library characteristics
19220 +m4_defun([_LT_CHECK_MAGIC_METHOD],
19221 +[m4_require([_LT_DECL_EGREP])
19222 +AC_CACHE_CHECK([how to recognize dependent libraries],
19223 +lt_cv_deplibs_check_method,
19224 +[lt_cv_file_magic_cmd='$MAGIC_CMD'
19225 +lt_cv_file_magic_test_file=
19226 +lt_cv_deplibs_check_method='unknown'
19227 +# Need to set the preceding variable on all platforms that support
19228 +# interlibrary dependencies.
19229 +# 'none' -- dependencies not supported.
19230 +# `unknown' -- same as none, but documents that we really don't know.
19231 +# 'pass_all' -- all dependencies passed with no checks.
19232 +# 'test_compile' -- check by making test program.
19233 +# 'file_magic [[regex]]' -- check by looking for files in library path
19234 +# which responds to the $file_magic_cmd with a given extended regex.
19235 +# If you have `file' or equivalent on your system and you're not sure
19236 +# whether `pass_all' will *always* work, you probably want this one.
19238 - # The C++ compiler must be used to create the archive.
19239 - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19242 - # GNU C++ compiler with Solaris linker
19243 - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19244 - _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
19245 - if $CC --version | grep -v '^2\.7' > /dev/null; then
19246 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19247 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19248 - $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19251 + lt_cv_deplibs_check_method=pass_all
19254 - # Commands to make compiler produce verbose output that lists
19255 - # what "hidden" libraries, object files and flags are used when
19256 - # linking a shared library.
19257 - output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19259 - # g++ 2.7 appears to require `-G' NOT `-shared' on this
19261 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19262 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19263 - $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19265 + lt_cv_deplibs_check_method=pass_all
19268 - # Commands to make compiler produce verbose output that lists
19269 - # what "hidden" libraries, object files and flags are used when
19270 - # linking a shared library.
19271 - output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19274 + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
19275 + lt_cv_file_magic_cmd='/usr/bin/file -L'
19276 + lt_cv_file_magic_test_file=/shlib/libc.so
19279 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
19284 - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
19285 - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
19286 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
19287 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
19288 - runpath_var='LD_RUN_PATH'
19290 - case $cc_basename in
19292 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19293 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19296 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19297 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19301 - sysv5* | sco3.2v5* | sco5v6*)
19302 - # Note: We can NOT use -z defs as we might desire, because we do not
19303 - # link with -lc, and that would cause any symbols used from libc to
19304 - # always be unresolved, which means just about no library would
19305 - # ever link correctly. If we're not using GNU ld we use -z text
19306 - # though, which does catch some bad symbols but isn't as heavy-handed
19308 - # For security reasons, it is highly recommended that you always
19309 - # use absolute paths for naming shared libraries, and exclude the
19310 - # DT_RUNPATH tag from executables and libraries. But doing so
19311 - # requires that you compile everything twice, which is a pain.
19312 - # So that behaviour is only enabled if SCOABSPATH is set to a
19313 - # non-empty value in the environment. Most likely only useful for
19314 - # creating official distributions of packages.
19315 - # This is a hack until libtool officially supports absolute path
19316 - # names for shared libraries.
19317 - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
19318 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
19319 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
19320 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
19321 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19322 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
19323 - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
19324 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
19325 - runpath_var='LD_RUN_PATH'
19327 - case $cc_basename in
19329 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19330 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19333 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19334 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19339 - case $cc_basename in
19341 - # NonStop-UX NCC 3.20
19342 - # FIXME: insert proper C++ library support
19343 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
19346 - # FIXME: insert proper C++ library support
19347 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
19350 + # func_win32_libid is a shell function defined in ltmain.sh
19351 + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
19352 + lt_cv_file_magic_cmd='func_win32_libid'
19356 + # Base MSYS/MinGW do not provide the 'file' command needed by
19357 + # func_win32_libid shell function, so use a weaker test based on 'objdump',
19358 + # unless we find 'file', for example because we are cross-compiling.
19359 + if ( file / ) >/dev/null 2>&1; then
19360 + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
19361 + lt_cv_file_magic_cmd='func_win32_libid'
19363 + lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
19364 + lt_cv_file_magic_cmd='$OBJDUMP -f'
19368 +darwin* | rhapsody*)
19369 + lt_cv_deplibs_check_method=pass_all
19372 +freebsd* | dragonfly*)
19373 + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
19374 + case $host_cpu in
19376 + # Not sure whether the presence of OpenBSD here was a mistake.
19377 + # Let's accept both of them until this is cleared up.
19378 + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
19379 + lt_cv_file_magic_cmd=/usr/bin/file
19380 + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
19384 + lt_cv_deplibs_check_method=pass_all
19389 + lt_cv_deplibs_check_method=pass_all
19392 +hpux10.20* | hpux11*)
19393 + lt_cv_file_magic_cmd=/usr/bin/file
19394 + case $host_cpu in
19396 + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
19397 + lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
19400 - # FIXME: insert proper C++ library support
19401 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
19403 + [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]']
19404 + lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
19407 - # FIXME: insert proper C++ library support
19408 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
19409 + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
19410 + lt_cv_file_magic_test_file=/usr/lib/libc.sl
19413 -AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
19414 -test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
19418 -_LT_AC_TAGVAR(GCC, $1)="$GXX"
19419 -_LT_AC_TAGVAR(LD, $1)="$LD"
19421 + # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
19422 + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
19426 -## There is no encapsulation within the following macros, do not change
19427 -## the running order or otherwise move them around unless you know exactly
19428 -## what you are doing...
19429 -AC_LIBTOOL_POSTDEP_PREDEP($1)
19430 -AC_LIBTOOL_PROG_COMPILER_PIC($1)
19431 -AC_LIBTOOL_PROG_CC_C_O($1)
19432 -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
19433 -AC_LIBTOOL_PROG_LD_SHLIBS($1)
19434 -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
19435 -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
19436 +irix5* | irix6* | nonstopux*)
19438 + *-32|*"-32 ") libmagic=32-bit;;
19439 + *-n32|*"-n32 ") libmagic=N32;;
19440 + *-64|*"-64 ") libmagic=64-bit;;
19441 + *) libmagic=never-match;;
19443 + lt_cv_deplibs_check_method=pass_all
19446 -AC_LIBTOOL_CONFIG($1)
19447 +# This must be Linux ELF.
19448 +linux* | k*bsd*-gnu)
19449 + lt_cv_deplibs_check_method=pass_all
19457 -with_gnu_ldcxx=$with_gnu_ld
19458 -with_gnu_ld=$lt_save_with_gnu_ld
19459 -lt_cv_path_LDCXX=$lt_cv_path_LD
19460 -lt_cv_path_LD=$lt_save_path_LD
19461 -lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
19462 -lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
19463 -])# AC_LIBTOOL_LANG_CXX_CONFIG
19465 + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
19466 + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
19468 + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
19472 -# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
19473 -# ------------------------------------
19474 -# Figure out "hidden" library dependencies from verbose
19475 -# compiler output when linking a shared library.
19476 -# Parse the compiler output and extract the necessary
19477 -# objects, libraries and library flags.
19478 -AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
19479 -dnl we can't use the lt_simple_compile_test_code here,
19480 -dnl because it contains code intended for an executable,
19481 -dnl not a library. It's possible we should let each
19482 -dnl tag define a new lt_????_link_test_code variable,
19483 -dnl but it's only used here...
19484 -ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
19486 -void foo (void) { a = 0; }
19488 -],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
19492 - Foo (void) { a = 0; }
19497 -],[$1],[F77],[cat > conftest.$ac_ext <<EOF
19505 -],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
19506 -public class foo {
19508 - public void bar (void) {
19514 -dnl Parse the compiler output and extract the necessary
19515 -dnl objects, libraries and library flags.
19516 -if AC_TRY_EVAL(ac_compile); then
19517 - # Parse the compiler output and extract the necessary
19518 - # objects, libraries and library flags.
19520 + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
19521 + lt_cv_file_magic_cmd=/usr/bin/file
19522 + lt_cv_file_magic_test_file=/usr/lib/libnls.so
19525 - # Sentinel used to keep track of whether or not we are before
19526 - # the conftest object file.
19527 - pre_test_object_deps_done=no
19529 + lt_cv_deplibs_check_method=pass_all
19532 - # The `*' in the case matches for architectures that use `case' in
19533 - # $output_verbose_cmd can trigger glob expansion during the loop
19534 - # eval without this substitution.
19535 - output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19537 + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19538 + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
19540 + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
19544 - for p in `eval $output_verbose_link_cmd`; do
19546 +osf3* | osf4* | osf5*)
19547 + lt_cv_deplibs_check_method=pass_all
19551 - # Some compilers place space between "-{L,R}" and the path.
19552 - # Remove the space.
19553 - if test $p = "-L" \
19554 - || test $p = "-R"; then
19561 + lt_cv_deplibs_check_method=pass_all
19565 + lt_cv_deplibs_check_method=pass_all
19568 +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19569 + lt_cv_deplibs_check_method=pass_all
19573 + case $host_vendor in
19575 + 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]]'
19576 + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
19579 + lt_cv_deplibs_check_method=pass_all
19582 + lt_cv_file_magic_cmd='/bin/file'
19583 + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
19586 + lt_cv_file_magic_cmd='/bin/file'
19587 + lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
19588 + lt_cv_file_magic_test_file=/lib/libc.so
19591 + lt_cv_deplibs_check_method=pass_all
19594 + lt_cv_deplibs_check_method=pass_all
19600 + lt_cv_deplibs_check_method=pass_all
19604 +file_magic_cmd=$lt_cv_file_magic_cmd
19605 +deplibs_check_method=$lt_cv_deplibs_check_method
19606 +test -z "$deplibs_check_method" && deplibs_check_method=unknown
19608 +_LT_DECL([], [deplibs_check_method], [1],
19609 + [Method to check whether dependent libraries are shared objects])
19610 +_LT_DECL([], [file_magic_cmd], [1],
19611 + [Command to use when deplibs_check_method == "file_magic"])
19612 +])# _LT_CHECK_MAGIC_METHOD
19617 +# find the pathname to a BSD- or MS-compatible name lister
19618 +AC_DEFUN([LT_PATH_NM],
19619 +[AC_REQUIRE([AC_PROG_CC])dnl
19620 +AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
19621 +[if test -n "$NM"; then
19622 + # Let the user override the test.
19623 + lt_cv_path_NM="$NM"
19625 + lt_nm_to_check="${ac_tool_prefix}nm"
19626 + if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
19627 + lt_nm_to_check="$lt_nm_to_check nm"
19629 + for lt_tmp_nm in $lt_nm_to_check; do
19630 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
19631 + for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
19632 + IFS="$lt_save_ifs"
19633 + test -z "$ac_dir" && ac_dir=.
19634 + tmp_nm="$ac_dir/$lt_tmp_nm"
19635 + if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
19636 + # Check to see if the nm accepts a BSD-compat flag.
19637 + # Adding the `sed 1q' prevents false positives on HP-UX, which says:
19638 + # nm: unknown option "B" ignored
19639 + # Tru64's nm complains that /dev/null is an invalid object file
19640 + case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
19641 + */dev/null* | *'Invalid file or object type'*)
19642 + lt_cv_path_NM="$tmp_nm -B"
19646 + case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
19648 + lt_cv_path_NM="$tmp_nm -p"
19652 + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
19653 + continue # so that we can try to find one that supports BSD flags
19660 + IFS="$lt_save_ifs"
19662 + : ${lt_cv_path_NM=no}
19664 +if test "$lt_cv_path_NM" != "no"; then
19665 + NM="$lt_cv_path_NM"
19667 + # Didn't find any BSD compatible name lister, look for dumpbin.
19668 + AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
19669 + AC_SUBST([DUMPBIN])
19670 + if test "$DUMPBIN" != ":"; then
19674 +test -z "$NM" && NM=nm
19676 +_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
19678 +AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
19679 + [lt_cv_nm_interface="BSD nm"
19680 + echo "int some_variable = 0;" > conftest.$ac_ext
19681 + (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
19682 + (eval "$ac_compile" 2>conftest.err)
19683 + cat conftest.err >&AS_MESSAGE_LOG_FD
19684 + (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
19685 + (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
19686 + cat conftest.err >&AS_MESSAGE_LOG_FD
19687 + (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)
19688 + cat conftest.out >&AS_MESSAGE_LOG_FD
19689 + if $GREP 'External.*some_variable' conftest.out > /dev/null; then
19690 + lt_cv_nm_interface="MS dumpbin"
19692 + rm -f conftest*])
19696 +AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
19697 +AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
19698 +dnl aclocal-1.4 backwards compatibility:
19699 +dnl AC_DEFUN([AM_PROG_NM], [])
19700 +dnl AC_DEFUN([AC_PROG_NM], [])
19705 +# check for math library
19706 +AC_DEFUN([LT_LIB_M],
19707 +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
19710 +*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
19711 + # These system don't have libm, or don't need it
19714 + AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
19715 + AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
19718 + AC_CHECK_LIB(m, cos, LIBM="-lm")
19725 +AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
19726 +dnl aclocal-1.4 backwards compatibility:
19727 +dnl AC_DEFUN([AC_CHECK_LIBM], [])
19730 +# _LT_COMPILER_NO_RTTI([TAGNAME])
19731 +# -------------------------------
19732 +m4_defun([_LT_COMPILER_NO_RTTI],
19733 +[m4_require([_LT_TAG_COMPILER])dnl
19735 +_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
19737 +if test "$GCC" = yes; then
19738 + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
19740 + _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
19741 + lt_cv_prog_compiler_rtti_exceptions,
19742 + [-fno-rtti -fno-exceptions], [],
19743 + [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
19745 +_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
19746 + [Compiler flag to turn off builtin functions])
19747 +])# _LT_COMPILER_NO_RTTI
19750 +# _LT_CMD_GLOBAL_SYMBOLS
19751 +# ----------------------
19752 +m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
19753 +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
19754 +AC_REQUIRE([AC_PROG_CC])dnl
19755 +AC_REQUIRE([LT_PATH_NM])dnl
19756 +AC_REQUIRE([LT_PATH_LD])dnl
19757 +m4_require([_LT_DECL_SED])dnl
19758 +m4_require([_LT_DECL_EGREP])dnl
19759 +m4_require([_LT_TAG_COMPILER])dnl
19761 +# Check for command to grab the raw symbol name followed by C symbol from nm.
19762 +AC_MSG_CHECKING([command to parse $NM output from $compiler object])
19763 +AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
19765 +# These are sane defaults that work on at least a few old systems.
19766 +# [They come from Ultrix. What could be older than Ultrix?!! ;)]
19768 +# Character class describing NM global symbol codes.
19769 +symcode='[[BCDEGRST]]'
19771 +# Regexp to match symbols that can be accessed directly from C.
19772 +sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
19774 +# Define system-specific variables.
19777 + symcode='[[BCDT]]'
19779 +cygwin* | mingw* | pw32*)
19780 + symcode='[[ABCDGISTW]]'
19783 + if test "$host_cpu" = ia64; then
19784 + symcode='[[ABCDEGRST]]'
19787 +irix* | nonstopux*)
19788 + symcode='[[BCDEGRST]]'
19791 + symcode='[[BCDEGQRST]]'
19794 + symcode='[[BDRT]]'
19802 +sysv5* | sco5v6* | unixware* | OpenUNIX*)
19803 + symcode='[[ABDT]]'
19806 + symcode='[[DFNSTU]]'
19810 +# If we're using GNU nm, then use its standard symbol codes.
19811 +case `$NM -V 2>&1` in
19812 +*GNU* | *'with BFD'*)
19813 + symcode='[[ABCDGIRSTW]]' ;;
19816 +# Transform an extracted symbol line into a proper C declaration.
19817 +# Some systems (esp. on ia64) link data and code symbols differently,
19818 +# so use this general approach.
19819 +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
19821 +# Transform an extracted symbol line into symbol name and symbol address
19822 +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
19823 +lt_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'"
19825 +# Handle CRLF in mingw tool chain
19829 + opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
19833 +# Try without a prefix underscore, then with it.
19834 +for ac_symprfx in "" "_"; do
19836 + # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
19837 + symxfrm="\\1 $ac_symprfx\\2 \\2"
19839 + # Write the raw and C identifiers.
19840 + if test "$lt_cv_nm_interface" = "MS dumpbin"; then
19841 + # Fake it for dumpbin and say T for any non-static function
19842 + # and D for any global variable.
19843 + # Also find C++ and __fastcall symbols from MSVC++,
19844 + # which start with @ or ?.
19845 + lt_cv_sys_global_symbol_pipe="$AWK ['"\
19846 +" {last_section=section; section=\$ 3};"\
19847 +" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
19848 +" \$ 0!~/External *\|/{next};"\
19849 +" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
19850 +" {if(hide[section]) next};"\
19851 +" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
19852 +" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
19853 +" s[1]~/^[@?]/{print s[1], s[1]; next};"\
19854 +" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
19855 +" ' prfx=^$ac_symprfx]"
19857 + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
19860 + # Check to see that the pipe works correctly.
19864 + cat > conftest.$ac_ext <<_LT_EOF
19865 +#ifdef __cplusplus
19869 +void nm_test_func(void);
19870 +void nm_test_func(void){}
19871 +#ifdef __cplusplus
19874 +int main(){nm_test_var='a';nm_test_func();return(0);}
19877 + if AC_TRY_EVAL(ac_compile); then
19878 + # Now try to grab the symbols.
19879 + nlist=conftest.nm
19880 + if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
19881 + # Try sorting and uniquifying the output.
19882 + if sort "$nlist" | uniq > "$nlist"T; then
19883 + mv -f "$nlist"T "$nlist"
19888 + # Make sure that we snagged all the symbols we need.
19889 + if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
19890 + if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
19891 + cat <<_LT_EOF > conftest.$ac_ext
19892 +#ifdef __cplusplus
19897 + # Now generate the symbol file.
19898 + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
19900 + cat <<_LT_EOF >> conftest.$ac_ext
19902 +/* The mapping between symbol names and symbols. */
19904 + const char *name;
19907 +lt__PROGRAM__LTX_preloaded_symbols[[]] =
19909 + { "@PROGRAM@", (void *) 0 },
19911 + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
19912 + cat <<\_LT_EOF >> conftest.$ac_ext
19916 +/* This works around a problem in FreeBSD linker */
19917 +#ifdef FREEBSD_WORKAROUND
19918 +static const void *lt_preloaded_setup() {
19919 + return lt__PROGRAM__LTX_preloaded_symbols;
19923 +#ifdef __cplusplus
19927 + # Now try linking the two files.
19928 + mv conftest.$ac_objext conftstm.$ac_objext
19929 + lt_save_LIBS="$LIBS"
19930 + lt_save_CFLAGS="$CFLAGS"
19931 + LIBS="conftstm.$ac_objext"
19932 + CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
19933 + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
19936 + LIBS="$lt_save_LIBS"
19937 + CFLAGS="$lt_save_CFLAGS"
19939 + echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
19942 + echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
19945 + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
19948 + echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
19949 + cat conftest.$ac_ext >&5
19951 + rm -rf conftest* conftst*
19953 - if test "$pre_test_object_deps_done" = no; then
19956 - # Internal compiler library paths should come after those
19957 - # provided the user. The postdeps already come after the
19958 - # user supplied libs so there is no need to process them.
19959 - if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
19960 - _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
19962 - _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
19965 - # The "-l" case would never come before the object being
19966 - # linked, so don't bother handling this case.
19969 - if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
19970 - _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
19972 - _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
19976 + # Do not use the global_symbol_pipe unless it works.
19977 + if test "$pipe_works" = yes; then
19980 + lt_cv_sys_global_symbol_pipe=
19984 +if test -z "$lt_cv_sys_global_symbol_pipe"; then
19985 + lt_cv_sys_global_symbol_to_cdecl=
19987 +if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
19988 + AC_MSG_RESULT(failed)
19990 + AC_MSG_RESULT(ok)
19994 - # This assumes that the test object file only shows up
19995 - # once in the compiler output.
19996 - if test "$p" = "conftest.$objext"; then
19997 - pre_test_object_deps_done=yes
20000 +_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
20001 + [Take the output of nm and produce a listing of raw symbols and C names])
20002 +_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
20003 + [Transform the output of nm in a proper C declaration])
20004 +_LT_DECL([global_symbol_to_c_name_address],
20005 + [lt_cv_sys_global_symbol_to_c_name_address], [1],
20006 + [Transform the output of nm in a C name address pair])
20007 +_LT_DECL([global_symbol_to_c_name_address_lib_prefix],
20008 + [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
20009 + [Transform the output of nm in a C name address pair when lib prefix is needed])
20010 +]) # _LT_CMD_GLOBAL_SYMBOLS
20012 - if test "$pre_test_object_deps_done" = no; then
20013 - if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
20014 - _LT_AC_TAGVAR(predep_objects, $1)="$p"
20016 - _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
20019 - if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
20020 - _LT_AC_TAGVAR(postdep_objects, $1)="$p"
20022 - _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
20027 - *) ;; # Ignore the rest.
20028 +# _LT_COMPILER_PIC([TAGNAME])
20029 +# ---------------------------
20030 +m4_defun([_LT_COMPILER_PIC],
20031 +[m4_require([_LT_TAG_COMPILER])dnl
20032 +_LT_TAGVAR(lt_prog_compiler_wl, $1)=
20033 +_LT_TAGVAR(lt_prog_compiler_pic, $1)=
20034 +_LT_TAGVAR(lt_prog_compiler_static, $1)=
20036 +AC_MSG_CHECKING([for $compiler option to produce PIC])
20037 +m4_if([$1], [CXX], [
20038 + # C++ specific cases for pic, static, wl, etc.
20039 + if test "$GXX" = yes; then
20040 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
20041 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
20045 + # All AIX code is PIC.
20046 + if test "$host_cpu" = ia64; then
20047 + # AIX 5 now supports IA64 processor
20048 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
20053 + case $host_cpu in
20055 + # see comment about AmigaOS4 .so support
20056 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
20059 + # FIXME: we need at least 68020 code to build shared libraries, but
20060 + # adding the `-m68020' flag to GCC prevents building anything better,
20061 + # like `-m68040'.
20062 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
20067 + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20068 + # PIC is the default for these OSes.
20070 + mingw* | cygwin* | os2* | pw32*)
20071 + # This hack is so that the source file can tell whether it is being
20072 + # built for inclusion in a dll (and should export symbols for example).
20073 + # Although the cygwin gcc ignores -fPIC, still need this for old-style
20074 + # (--disable-auto-import) libraries
20075 + m4_if([$1], [GCJ], [],
20076 + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
20078 + darwin* | rhapsody*)
20079 + # PIC is the default on this platform
20080 + # Common symbols not allowed in MH_DYLIB files
20081 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
20084 + # DJGPP does not support shared libraries at all
20085 + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
20088 + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20089 + # Instead, we relocate shared libraries at runtime.
20092 + if test -d /usr/nec; then
20093 + _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
20097 + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20098 + # not for PA HP-UX.
20099 + case $host_cpu in
20103 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
20108 + # QNX uses GNU C++, but need to define -shared option too, otherwise
20109 + # it will coredump.
20110 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
20113 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
20119 + # All AIX code is PIC.
20120 + if test "$host_cpu" = ia64; then
20121 + # AIX 5 now supports IA64 processor
20122 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
20124 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
20128 + case $cc_basename in
20130 + # Green Hills C++ Compiler
20131 + # _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"
20136 + case $cc_basename in
20138 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
20141 + # Green Hills C++ Compiler
20142 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
20148 + freebsd* | dragonfly*)
20149 + # FreeBSD uses GNU C++
20151 + hpux9* | hpux10* | hpux11*)
20152 + case $cc_basename in
20154 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
20155 + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
20156 + if test "$host_cpu" != ia64; then
20157 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
20161 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
20162 + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
20163 + case $host_cpu in
20168 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
20177 + # This is c89, which is MS Visual C++ (no shared libs)
20178 + # Anyone wants to do a port?
20180 + irix5* | irix6* | nonstopux*)
20181 + case $cc_basename in
20183 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
20184 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
20185 + # CC pic flag -KPIC is the default.
20191 + linux* | k*bsd*-gnu)
20192 + case $cc_basename in
20194 + # KAI C++ Compiler
20195 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
20196 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
20200 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
20201 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
20202 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
20205 + # Portland Group C++ compiler
20206 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
20207 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
20208 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
20212 + # Make sure the PIC flag is empty. It appears that all Alpha
20213 + # Linux and Compaq Tru64 Unix objects are PIC.
20214 + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
20215 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
20218 + # IBM XL 8.0 on PPC
20219 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
20220 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
20221 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
20224 + case `$CC -V 2>&1 | sed 5q` in
20227 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
20228 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
20229 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
20240 + case $cc_basename in
20242 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
20251 + # QNX uses GNU C++, but need to define -shared option too, otherwise
20252 + # it will coredump.
20253 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
20255 + osf3* | osf4* | osf5*)
20256 + case $cc_basename in
20258 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
20261 + # Rational C++ 2.4.1
20262 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
20265 + # Digital/Compaq C++
20266 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
20267 + # Make sure the PIC flag is empty. It appears that all Alpha
20268 + # Linux and Compaq Tru64 Unix objects are PIC.
20269 + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
20270 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
20279 + case $cc_basename in
20281 + # Sun C++ 4.2, 5.x and Centerline C++
20282 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
20283 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
20284 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
20287 + # Green Hills C++ Compiler
20288 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
20295 + case $cc_basename in
20298 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
20299 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
20303 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
20309 + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20310 + case $cc_basename in
20312 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
20313 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
20314 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
20319 + case $cc_basename in
20321 + # NonStop-UX NCC 3.20
20322 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
20331 + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
20337 - rm -f a.out a.exe
20339 - echo "libtool.m4: error: problem compiling $1 test program"
20342 -$rm -f confest.$objext
20344 -# PORTME: override above test on systems where it is broken
20345 -ifelse([$1],[CXX],
20348 - # Interix 3.5 installs completely hosed .la files for C++, so rather than
20349 - # hack all around it, let's just trust "g++" to DTRT.
20350 - _LT_AC_TAGVAR(predep_objects,$1)=
20351 - _LT_AC_TAGVAR(postdep_objects,$1)=
20352 - _LT_AC_TAGVAR(postdeps,$1)=
20356 - case `$CC -V 2>&1 | sed 5q` in
20359 - _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
20365 - case $cc_basename in
20367 - # Adding this requires a known-good setup of shared libraries for
20368 - # Sun compiler versions before 5.6, else PIC objects from an old
20369 - # archive will be linked into the output, leading to subtle bugs.
20370 - _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
20377 -case " $_LT_AC_TAGVAR(postdeps, $1) " in
20378 -*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
20380 -])# AC_LIBTOOL_POSTDEP_PREDEP
20382 -# AC_LIBTOOL_LANG_F77_CONFIG
20383 -# --------------------------
20384 -# Ensure that the configuration vars for the C compiler are
20385 -# suitably defined. Those variables are subsequently used by
20386 -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
20387 -AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
20388 -AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
20389 -[AC_REQUIRE([AC_PROG_F77])
20390 -AC_LANG_PUSH(Fortran 77)
20392 -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
20393 -_LT_AC_TAGVAR(allow_undefined_flag, $1)=
20394 -_LT_AC_TAGVAR(always_export_symbols, $1)=no
20395 -_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
20396 -_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
20397 -_LT_AC_TAGVAR(hardcode_direct, $1)=no
20398 -_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
20399 -_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
20400 -_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
20401 -_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
20402 -_LT_AC_TAGVAR(hardcode_automatic, $1)=no
20403 -_LT_AC_TAGVAR(module_cmds, $1)=
20404 -_LT_AC_TAGVAR(module_expsym_cmds, $1)=
20405 -_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
20406 -_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
20407 -_LT_AC_TAGVAR(no_undefined_flag, $1)=
20408 -_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
20409 -_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
20411 -# Source file extension for f77 test sources.
20414 -# Object file extension for compiled f77 test sources.
20416 -_LT_AC_TAGVAR(objext, $1)=$objext
20418 -# Code to be used in simple compile tests
20419 -lt_simple_compile_test_code=" subroutine t\n return\n end\n"
20421 -# Code to be used in simple link tests
20422 -lt_simple_link_test_code=" program t\n end\n"
20424 -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
20425 -_LT_AC_SYS_COMPILER
20427 -# save warnings/boilerplate of simple test code
20428 -_LT_COMPILER_BOILERPLATE
20429 -_LT_LINKER_BOILERPLATE
20431 -# Allow CC to be a program name with arguments.
20435 -_LT_AC_TAGVAR(compiler, $1)=$CC
20436 -_LT_CC_BASENAME([$compiler])
20438 -AC_MSG_CHECKING([if libtool supports shared libraries])
20439 -AC_MSG_RESULT([$can_build_shared])
20441 -AC_MSG_CHECKING([whether to build shared libraries])
20442 -test "$can_build_shared" = "no" && enable_shared=no
20444 -# On AIX, shared libraries and static libraries use the same namespace, and
20445 -# are all built from PIC.
20448 - test "$enable_shared" = yes && enable_static=no
20449 - if test -n "$RANLIB"; then
20450 - archive_cmds="$archive_cmds~\$RANLIB \$lib"
20451 - postinstall_cmds='$RANLIB $lib'
20455 - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
20456 - test "$enable_shared" = yes && enable_static=no
20460 -AC_MSG_RESULT([$enable_shared])
20462 -AC_MSG_CHECKING([whether to build static libraries])
20463 -# Make sure either enable_shared or enable_static is yes.
20464 -test "$enable_shared" = yes || enable_static=yes
20465 -AC_MSG_RESULT([$enable_static])
20467 -_LT_AC_TAGVAR(GCC, $1)="$G77"
20468 -_LT_AC_TAGVAR(LD, $1)="$LD"
20470 -AC_LIBTOOL_PROG_COMPILER_PIC($1)
20471 -AC_LIBTOOL_PROG_CC_C_O($1)
20472 -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
20473 -AC_LIBTOOL_PROG_LD_SHLIBS($1)
20474 -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
20475 -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
20477 -AC_LIBTOOL_CONFIG($1)
20481 -])# AC_LIBTOOL_LANG_F77_CONFIG
20484 -# AC_LIBTOOL_LANG_GCJ_CONFIG
20485 -# --------------------------
20486 -# Ensure that the configuration vars for the C compiler are
20487 -# suitably defined. Those variables are subsequently used by
20488 -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
20489 -AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
20490 -AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
20493 -# Source file extension for Java test sources.
20497 + if test "$GCC" = yes; then
20498 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
20499 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
20501 -# Object file extension for compiled Java test sources.
20503 -_LT_AC_TAGVAR(objext, $1)=$objext
20506 + # All AIX code is PIC.
20507 + if test "$host_cpu" = ia64; then
20508 + # AIX 5 now supports IA64 processor
20509 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
20513 -# Code to be used in simple compile tests
20514 -lt_simple_compile_test_code="class foo {}\n"
20516 + case $host_cpu in
20518 + # see comment about AmigaOS4 .so support
20519 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
20522 + # FIXME: we need at least 68020 code to build shared libraries, but
20523 + # adding the `-m68020' flag to GCC prevents building anything better,
20524 + # like `-m68040'.
20525 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
20530 -# Code to be used in simple link tests
20531 -lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n'
20532 + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20533 + # PIC is the default for these OSes.
20536 -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
20537 -_LT_AC_SYS_COMPILER
20538 + mingw* | cygwin* | pw32* | os2*)
20539 + # This hack is so that the source file can tell whether it is being
20540 + # built for inclusion in a dll (and should export symbols for example).
20541 + # Although the cygwin gcc ignores -fPIC, still need this for old-style
20542 + # (--disable-auto-import) libraries
20543 + m4_if([$1], [GCJ], [],
20544 + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
20547 -# save warnings/boilerplate of simple test code
20548 -_LT_COMPILER_BOILERPLATE
20549 -_LT_LINKER_BOILERPLATE
20550 + darwin* | rhapsody*)
20551 + # PIC is the default on this platform
20552 + # Common symbols not allowed in MH_DYLIB files
20553 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
20556 -# Allow CC to be a program name with arguments.
20560 -_LT_AC_TAGVAR(compiler, $1)=$CC
20561 -_LT_CC_BASENAME([$compiler])
20563 + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20564 + # not for PA HP-UX.
20565 + case $host_cpu in
20570 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
20575 -# GCJ did not exist at the time GCC didn't implicitly link libc in.
20576 -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
20578 + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20579 + # Instead, we relocate shared libraries at runtime.
20582 -_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
20584 + # Just because we use GCC doesn't mean we suddenly get shared libraries
20585 + # on systems that don't support them.
20586 + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
20591 -## There is no encapsulation within the following macros, do not change
20592 -## the running order or otherwise move them around unless you know exactly
20593 -## what you are doing...
20594 -AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
20595 -AC_LIBTOOL_PROG_COMPILER_PIC($1)
20596 -AC_LIBTOOL_PROG_CC_C_O($1)
20597 -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
20598 -AC_LIBTOOL_PROG_LD_SHLIBS($1)
20599 -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
20600 -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
20602 + # QNX uses GNU C++, but need to define -shared option too, otherwise
20603 + # it will coredump.
20604 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
20607 -AC_LIBTOOL_CONFIG($1)
20609 + if test -d /usr/nec; then
20610 + _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
20616 -])# AC_LIBTOOL_LANG_GCJ_CONFIG
20618 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
20622 + # PORTME Check for flag to pass linker flags through the system compiler.
20625 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
20626 + if test "$host_cpu" = ia64; then
20627 + # AIX 5 now supports IA64 processor
20628 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
20630 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
20634 + mingw* | cygwin* | pw32* | os2*)
20635 + # This hack is so that the source file can tell whether it is being
20636 + # built for inclusion in a dll (and should export symbols for example).
20637 + m4_if([$1], [GCJ], [],
20638 + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
20641 -# AC_LIBTOOL_LANG_RC_CONFIG
20642 -# -------------------------
20643 -# Ensure that the configuration vars for the Windows resource compiler are
20644 -# suitably defined. Those variables are subsequently used by
20645 -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
20646 -AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
20647 -AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
20649 + hpux9* | hpux10* | hpux11*)
20650 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
20651 + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20652 + # not for PA HP-UX.
20653 + case $host_cpu in
20658 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
20661 + # Is there a better lt_prog_compiler_static that works with the bundled CC?
20662 + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
20665 -# Source file extension for RC test sources.
20667 + irix5* | irix6* | nonstopux*)
20668 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
20669 + # PIC (with -KPIC) is the default.
20670 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
20673 -# Object file extension for compiled RC test sources.
20675 -_LT_AC_TAGVAR(objext, $1)=$objext
20676 + linux* | k*bsd*-gnu)
20677 + case $cc_basename in
20678 + icc* | ecc* | ifort*)
20679 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
20680 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
20681 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
20683 + pgcc* | pgf77* | pgf90* | pgf95*)
20684 + # Portland Group compilers (*not* the Pentium gcc compiler,
20685 + # which looks to be a dead project)
20686 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
20687 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
20688 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
20691 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
20692 + # All Alpha code is PIC.
20693 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
20696 + # IBM XL C 8.0/Fortran 10.1 on PPC
20697 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
20698 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
20699 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
20702 + case `$CC -V 2>&1 | sed 5q` in
20705 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
20706 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
20707 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
20710 + # Sun Fortran 8.3 passes all unrecognized flags to the linker
20711 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
20712 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
20713 + _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
20720 -# Code to be used in simple compile tests
20721 -lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
20723 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
20724 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
20727 -# Code to be used in simple link tests
20728 -lt_simple_link_test_code="$lt_simple_compile_test_code"
20730 + # QNX uses GNU C++, but need to define -shared option too, otherwise
20731 + # it will coredump.
20732 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
20735 -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
20736 -_LT_AC_SYS_COMPILER
20737 + osf3* | osf4* | osf5*)
20738 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
20739 + # All OSF/1 code is PIC.
20740 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
20743 -# save warnings/boilerplate of simple test code
20744 -_LT_COMPILER_BOILERPLATE
20745 -_LT_LINKER_BOILERPLATE
20747 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
20750 -# Allow CC to be a program name with arguments.
20752 -CC=${RC-"windres"}
20754 -_LT_AC_TAGVAR(compiler, $1)=$CC
20755 -_LT_CC_BASENAME([$compiler])
20756 -_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
20758 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
20759 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
20760 + case $cc_basename in
20761 + f77* | f90* | f95*)
20762 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
20764 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
20768 -AC_LIBTOOL_CONFIG($1)
20770 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
20771 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
20772 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
20777 -])# AC_LIBTOOL_LANG_RC_CONFIG
20778 + sysv4 | sysv4.2uw2* | sysv4.3*)
20779 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
20780 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
20781 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
20785 + if test -d /usr/nec ;then
20786 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
20787 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
20791 + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20792 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
20793 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
20794 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
20797 -# AC_LIBTOOL_CONFIG([TAGNAME])
20798 -# ----------------------------
20799 -# If TAGNAME is not passed, then create an initial libtool script
20800 -# with a default configuration from the untagged config vars. Otherwise
20801 -# add code to config.status for appending the configuration named by
20802 -# TAGNAME from the matching tagged config vars.
20803 -AC_DEFUN([AC_LIBTOOL_CONFIG],
20804 -[# The else clause should only fire when bootstrapping the
20805 -# libtool distribution, otherwise you forgot to ship ltmain.sh
20806 -# with your package, and you will get complaints that there are
20807 -# no rules to generate ltmain.sh.
20808 -if test -f "$ltmain"; then
20809 - # See if we are running on zsh, and set the options which allow our commands through
20810 - # without removal of \ escapes.
20811 - if test -n "${ZSH_VERSION+set}" ; then
20812 - setopt NO_GLOB_SUBST
20814 - # Now quote all the things that may contain metacharacters while being
20815 - # careful not to overquote the AC_SUBSTed values. We take copies of the
20816 - # variables and quote the copies for generation of the libtool script.
20817 - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20818 - SED SHELL STRIP \
20819 - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20820 - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20821 - deplibs_check_method reload_flag reload_cmds need_locks \
20822 - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20823 - lt_cv_sys_global_symbol_to_c_name_address \
20824 - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20825 - old_postinstall_cmds old_postuninstall_cmds \
20826 - _LT_AC_TAGVAR(compiler, $1) \
20827 - _LT_AC_TAGVAR(CC, $1) \
20828 - _LT_AC_TAGVAR(LD, $1) \
20829 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
20830 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
20831 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
20832 - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
20833 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
20834 - _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
20835 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
20836 - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
20837 - _LT_AC_TAGVAR(old_archive_cmds, $1) \
20838 - _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
20839 - _LT_AC_TAGVAR(predep_objects, $1) \
20840 - _LT_AC_TAGVAR(postdep_objects, $1) \
20841 - _LT_AC_TAGVAR(predeps, $1) \
20842 - _LT_AC_TAGVAR(postdeps, $1) \
20843 - _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
20844 - _LT_AC_TAGVAR(archive_cmds, $1) \
20845 - _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
20846 - _LT_AC_TAGVAR(postinstall_cmds, $1) \
20847 - _LT_AC_TAGVAR(postuninstall_cmds, $1) \
20848 - _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
20849 - _LT_AC_TAGVAR(allow_undefined_flag, $1) \
20850 - _LT_AC_TAGVAR(no_undefined_flag, $1) \
20851 - _LT_AC_TAGVAR(export_symbols_cmds, $1) \
20852 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
20853 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
20854 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
20855 - _LT_AC_TAGVAR(hardcode_automatic, $1) \
20856 - _LT_AC_TAGVAR(module_cmds, $1) \
20857 - _LT_AC_TAGVAR(module_expsym_cmds, $1) \
20858 - _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
20859 - _LT_AC_TAGVAR(exclude_expsyms, $1) \
20860 - _LT_AC_TAGVAR(include_expsyms, $1); do
20863 - _LT_AC_TAGVAR(old_archive_cmds, $1) | \
20864 - _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
20865 - _LT_AC_TAGVAR(archive_cmds, $1) | \
20866 - _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
20867 - _LT_AC_TAGVAR(module_cmds, $1) | \
20868 - _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
20869 - _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
20870 - _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
20871 - extract_expsyms_cmds | reload_cmds | finish_cmds | \
20872 - postinstall_cmds | postuninstall_cmds | \
20873 - old_postinstall_cmds | old_postuninstall_cmds | \
20874 - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20875 - # Double-quote double-evaled strings.
20876 - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20878 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
20879 + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
20883 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
20884 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
20888 - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20889 + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
20895 - *'\[$]0 --fallback-echo"')
20896 - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
20900 + # For platforms which do not support PIC, -DPIC is meaningless:
20902 + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
20907 - [cfgfile="${ofile}T"
20908 - trap "$rm \"$cfgfile\"; exit 1" 1 2 15
20909 - $rm -f "$cfgfile"
20910 - AC_MSG_NOTICE([creating $ofile])],
20911 - [cfgfile="$ofile"])
20913 - cat <<__EOF__ >> "$cfgfile"
20917 + _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
20920 +AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
20921 +_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
20922 + [How to pass a linker flag through the compiler])
20924 -# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20925 -# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
20926 -# NOTE: Changes made to this file will be lost: look at ltmain.sh.
20928 -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
20929 -# Free Software Foundation, Inc.
20931 -# This file is part of GNU Libtool:
20932 -# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
20934 -# This program is free software; you can redistribute it and/or modify
20935 -# it under the terms of the GNU General Public License as published by
20936 -# the Free Software Foundation; either version 2 of the License, or
20937 -# (at your option) any later version.
20938 +# Check to make sure the PIC flag actually works.
20940 -# This program is distributed in the hope that it will be useful, but
20941 -# WITHOUT ANY WARRANTY; without even the implied warranty of
20942 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20943 -# General Public License for more details.
20944 +if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
20945 + _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
20946 + [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
20947 + [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
20948 + [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
20950 + *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
20952 + [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
20953 + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
20955 +_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
20956 + [Additional compiler flags for building library objects])
20959 -# You should have received a copy of the GNU General Public License
20960 -# along with this program; if not, write to the Free Software
20961 -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20962 +# Check to make sure the static flag actually works.
20964 -# As a special exception to the GNU General Public License, if you
20965 -# distribute this file as part of a program that contains a
20966 -# configuration script generated by Autoconf, you may include it under
20967 -# the same distribution terms that you use for the rest of that program.
20969 -# A sed program that does not truncate output.
20972 -# Sed that helps us avoid accidentally triggering echo(1) options like -n.
20973 -Xsed="$SED -e 1s/^X//"
20975 -# The HP-UX ksh and POSIX shell print the target directory to stdout
20976 -# if CDPATH is set.
20977 -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20979 -# The names of the tagged configurations supported by this script.
20982 -# ### BEGIN LIBTOOL CONFIG],
20983 -[# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
20985 -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20987 -# Shell to use when invoking shell scripts.
20990 -# Whether or not to build shared libraries.
20991 -build_libtool_libs=$enable_shared
20993 -# Whether or not to build static libraries.
20994 -build_old_libs=$enable_static
20996 -# Whether or not to add -lc for building shared libraries.
20997 -build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
20999 -# Whether or not to disallow shared libs when runtime libs are static
21000 -allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
21002 -# Whether or not to optimize for fast installation.
21003 -fast_install=$enable_fast_install
21005 -# The host system.
21006 -host_alias=$host_alias
21009 +wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
21010 +_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
21011 + _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
21012 + $lt_tmp_static_flag,
21014 + [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
21015 +_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
21016 + [Compiler flag to prevent dynamic linking])
21017 +])# _LT_COMPILER_PIC
21019 -# The build system.
21020 -build_alias=$build_alias
21022 -build_os=$build_os
21024 -# An echo program that does not interpret backslashes.
21026 +# _LT_LINKER_SHLIBS([TAGNAME])
21027 +# ----------------------------
21028 +# See if the linker supports building shared libraries.
21029 +m4_defun([_LT_LINKER_SHLIBS],
21030 +[AC_REQUIRE([LT_PATH_LD])dnl
21031 +AC_REQUIRE([LT_PATH_NM])dnl
21032 +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
21033 +m4_require([_LT_DECL_EGREP])dnl
21034 +m4_require([_LT_DECL_SED])dnl
21035 +m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
21036 +m4_require([_LT_TAG_COMPILER])dnl
21037 +AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
21038 +m4_if([$1], [CXX], [
21039 + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21042 + # If we're using GNU nm, then we don't want the "-C" option.
21043 + # -C means demangle to AIX nm, but means don't demangle with GNU nm
21044 + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
21045 + _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'
21047 + _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'
21051 + _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
21053 + cygwin* | mingw*)
21054 + _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'
21057 + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21060 + _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
21063 + _LT_TAGVAR(allow_undefined_flag, $1)=
21064 + _LT_TAGVAR(always_export_symbols, $1)=no
21065 + _LT_TAGVAR(archive_cmds, $1)=
21066 + _LT_TAGVAR(archive_expsym_cmds, $1)=
21067 + _LT_TAGVAR(compiler_needs_object, $1)=no
21068 + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
21069 + _LT_TAGVAR(export_dynamic_flag_spec, $1)=
21070 + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21071 + _LT_TAGVAR(hardcode_automatic, $1)=no
21072 + _LT_TAGVAR(hardcode_direct, $1)=no
21073 + _LT_TAGVAR(hardcode_direct_absolute, $1)=no
21074 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
21075 + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
21076 + _LT_TAGVAR(hardcode_libdir_separator, $1)=
21077 + _LT_TAGVAR(hardcode_minus_L, $1)=no
21078 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
21079 + _LT_TAGVAR(inherit_rpath, $1)=no
21080 + _LT_TAGVAR(link_all_deplibs, $1)=unknown
21081 + _LT_TAGVAR(module_cmds, $1)=
21082 + _LT_TAGVAR(module_expsym_cmds, $1)=
21083 + _LT_TAGVAR(old_archive_from_new_cmds, $1)=
21084 + _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
21085 + _LT_TAGVAR(thread_safe_flag_spec, $1)=
21086 + _LT_TAGVAR(whole_archive_flag_spec, $1)=
21087 + # include_expsyms should be a list of space-separated symbols to be *always*
21088 + # included in the symbol list
21089 + _LT_TAGVAR(include_expsyms, $1)=
21090 + # exclude_expsyms can be an extended regexp of symbols to exclude
21091 + # it will be wrapped by ` (' and `)$', so one must not match beginning or
21092 + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21093 + # as well as any symbol that contains `d'.
21094 + _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
21095 + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21096 + # platforms (ab)use it in PIC code, but their linkers get confused if
21097 + # the symbol is explicitly referenced. Since portable code cannot
21098 + # rely on this symbol name, it's probably fine to never include it in
21099 + # preloaded symbol tables.
21100 + # Exclude shared library initialization/finalization symbols.
21101 +dnl Note also adjust exclude_expsyms for C++ above.
21102 + extract_expsyms_cmds=
21106 -AR_FLAGS=$lt_AR_FLAGS
21108 + cygwin* | mingw* | pw32*)
21109 + # FIXME: the MSVC++ port hasn't been tested in a loooong time
21110 + # When not using gcc, we currently assume that we are using
21111 + # Microsoft Visual C++.
21112 + if test "$GCC" != yes; then
21117 + # we just hope/assume this is gcc and not c89 (= MSVC++)
21127 + _LT_TAGVAR(ld_shlibs, $1)=yes
21128 + if test "$with_gnu_ld" = yes; then
21129 + # If archive_cmds runs LD, not CC, wlarc should be empty
21132 -# LTCC compiler flags.
21133 -LTCFLAGS=$lt_LTCFLAGS
21134 + # Set some defaults for GNU ld with shared library support. These
21135 + # are reset later if shared libraries are not supported. Putting them
21136 + # here allows them to be overridden if necessary.
21137 + runpath_var=LD_RUN_PATH
21138 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
21139 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
21140 + # ancient GNU ld didn't support --whole-archive et. al.
21141 + if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
21142 + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21144 + _LT_TAGVAR(whole_archive_flag_spec, $1)=
21146 + supports_anon_versioning=no
21147 + case `$LD -v 2>&1` in
21148 + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
21149 + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21150 + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21151 + *\ 2.11.*) ;; # other 2.11 versions
21152 + *) supports_anon_versioning=yes ;;
21155 -# A language-specific compiler.
21156 -CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
21157 + # See if GNU ld supports shared libraries.
21160 + # On AIX/PPC, the GNU linker is very broken
21161 + if test "$host_cpu" != ia64; then
21162 + _LT_TAGVAR(ld_shlibs, $1)=no
21163 + cat <<_LT_EOF 1>&2
21165 -# Is the compiler the GNU C compiler?
21166 -with_gcc=$_LT_AC_TAGVAR(GCC, $1)
21167 +*** Warning: the GNU linker, at least up to release 2.9.1, is reported
21168 +*** to be unable to reliably create shared libraries on AIX.
21169 +*** Therefore, libtool is disabling shared libraries support. If you
21170 +*** really care for shared libraries, you may want to modify your PATH
21171 +*** so that a non-GNU linker is found, and then restart.
21179 -# The linker used to build libraries.
21180 -LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
21182 + case $host_cpu in
21184 + # see comment about AmigaOS4 .so support
21185 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21186 + _LT_TAGVAR(archive_expsym_cmds, $1)=''
21189 + _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)'
21190 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
21191 + _LT_TAGVAR(hardcode_minus_L, $1)=yes
21196 -# Whether we need hard or soft links.
21199 + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
21200 + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
21201 + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21202 + # support --undefined. This deserves some investigation. FIXME
21203 + _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21205 + _LT_TAGVAR(ld_shlibs, $1)=no
21209 -# A BSD-compatible nm program.
21211 + cygwin* | mingw* | pw32*)
21212 + # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
21213 + # as there is no search path for DLLs.
21214 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
21215 + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
21216 + _LT_TAGVAR(always_export_symbols, $1)=no
21217 + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
21218 + _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'
21220 -# A symbol stripping program
21222 + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
21223 + _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'
21224 + # If the export-symbols file already is a .def file (1st line
21225 + # is EXPORTS), use it as is; otherwise, prepend...
21226 + _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21227 + cp $export_symbols $output_objdir/$soname.def;
21229 + echo EXPORTS > $output_objdir/$soname.def;
21230 + cat $export_symbols >> $output_objdir/$soname.def;
21232 + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21234 + _LT_TAGVAR(ld_shlibs, $1)=no
21238 -# Used to examine libraries when file_magic_cmd begins "file"
21239 -MAGIC_CMD=$MAGIC_CMD
21241 + _LT_TAGVAR(hardcode_direct, $1)=no
21242 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
21243 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
21244 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
21245 + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21246 + # Instead, shared libraries are loaded at an image base (0x10000000 by
21247 + # default) and relocated if they conflict, which is a slow very memory
21248 + # consuming and fragmenting process. To avoid this, we pick a random,
21249 + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21250 + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
21251 + _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'
21252 + _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'
21255 -# Used on cygwin: DLL creation program.
21256 -DLLTOOL="$DLLTOOL"
21257 + gnu* | linux* | tpf* | k*bsd*-gnu)
21259 + if test "$host_os" = linux-dietlibc; then
21260 + case $cc_basename in
21261 + diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
21264 + if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
21265 + && test "$tmp_diet" = no
21268 + tmp_sharedflag='-shared'
21269 + case $cc_basename,$host_cpu in
21270 + pgcc*) # Portland Group C compiler
21271 + _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'
21272 + tmp_addflag=' $pic_flag'
21274 + pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
21275 + _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'
21276 + tmp_addflag=' $pic_flag -Mnomain' ;;
21277 + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
21278 + tmp_addflag=' -i_dynamic' ;;
21279 + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
21280 + tmp_addflag=' -i_dynamic -nofor_main' ;;
21281 + ifc* | ifort*) # Intel Fortran compiler
21282 + tmp_addflag=' -nofor_main' ;;
21283 + xl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
21284 + tmp_sharedflag='-qmkshrobj'
21287 + case `$CC -V 2>&1 | sed 5q` in
21288 + *Sun\ C*) # Sun C 5.9
21289 + _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'
21290 + _LT_TAGVAR(compiler_needs_object, $1)=yes
21291 + tmp_sharedflag='-G' ;;
21292 + *Sun\ F*) # Sun Fortran 8.3
21293 + tmp_sharedflag='-G' ;;
21295 + _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21297 -# Used on cygwin: object dumper.
21298 -OBJDUMP="$OBJDUMP"
21299 + if test "x$supports_anon_versioning" = xyes; then
21300 + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
21301 + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21302 + echo "local: *; };" >> $output_objdir/$libname.ver~
21303 + $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21306 -# Used on cygwin: assembler.
21308 + case $cc_basename in
21310 + # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
21311 + _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
21312 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
21313 + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
21314 + _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
21315 + if test "x$supports_anon_versioning" = xyes; then
21316 + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
21317 + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21318 + echo "local: *; };" >> $output_objdir/$libname.ver~
21319 + $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
21324 + _LT_TAGVAR(ld_shlibs, $1)=no
21328 -# The name of the directory that contains temporary libtool files.
21331 + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21332 + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21335 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21336 + _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'
21340 -# How to create reloadable object files.
21341 -reload_flag=$lt_reload_flag
21342 -reload_cmds=$lt_reload_cmds
21344 + if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
21345 + _LT_TAGVAR(ld_shlibs, $1)=no
21346 + cat <<_LT_EOF 1>&2
21348 -# How to pass a linker flag through the compiler.
21349 -wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
21350 +*** Warning: The releases 2.8.* of the GNU linker cannot reliably
21351 +*** create shared libraries on Solaris systems. Therefore, libtool
21352 +*** is disabling shared libraries support. We urge you to upgrade GNU
21353 +*** binutils to release 2.9.1 or newer. Another option is to modify
21354 +*** your PATH or compiler configuration so that the native linker is
21355 +*** used, and then restart.
21357 -# Object file suffix (normally "o").
21358 -objext="$ac_objext"
21360 + elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
21361 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21362 + _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'
21364 + _LT_TAGVAR(ld_shlibs, $1)=no
21368 -# Old archive suffix (normally "a").
21370 + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21371 + case `$LD -v 2>&1` in
21372 + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
21373 + _LT_TAGVAR(ld_shlibs, $1)=no
21374 + cat <<_LT_EOF 1>&2
21376 -# Shared library suffix (normally ".so").
21377 -shrext_cmds='$shrext_cmds'
21378 +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21379 +*** reliably create shared libraries on SCO systems. Therefore, libtool
21380 +*** is disabling shared libraries support. We urge you to upgrade GNU
21381 +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
21382 +*** your PATH or compiler configuration so that the native linker is
21383 +*** used, and then restart.
21385 -# Executable file suffix (normally "").
21390 + # For security reasons, it is highly recommended that you always
21391 + # use absolute paths for naming shared libraries, and exclude the
21392 + # DT_RUNPATH tag from executables and libraries. But doing so
21393 + # requires that you compile everything twice, which is a pain.
21394 + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
21395 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
21396 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21397 + _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'
21399 + _LT_TAGVAR(ld_shlibs, $1)=no
21405 -# Additional compiler flags for building library objects.
21406 -pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
21407 -pic_mode=$pic_mode
21409 + _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21411 + _LT_TAGVAR(hardcode_direct, $1)=yes
21412 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
21415 -# What is the maximum length of a command?
21416 -max_cmd_len=$lt_cv_sys_max_cmd_len
21418 + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
21419 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21420 + _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'
21422 + _LT_TAGVAR(ld_shlibs, $1)=no
21427 -# Does compiler simultaneously support -c and -o options?
21428 -compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
21429 + if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
21431 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
21432 + _LT_TAGVAR(export_dynamic_flag_spec, $1)=
21433 + _LT_TAGVAR(whole_archive_flag_spec, $1)=
21436 + # PORTME fill in a description of your system's linker (not GNU ld)
21439 + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
21440 + _LT_TAGVAR(always_export_symbols, $1)=yes
21441 + _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'
21442 + # Note: this linker hardcodes the directories in LIBPATH if there
21443 + # are no directories specified by -L.
21444 + _LT_TAGVAR(hardcode_minus_L, $1)=yes
21445 + if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
21446 + # Neither direct hardcoding nor static linking is supported with a
21447 + # broken collect2.
21448 + _LT_TAGVAR(hardcode_direct, $1)=unsupported
21452 -# Must we lock files when doing compilation?
21453 -need_locks=$lt_need_locks
21455 + if test "$host_cpu" = ia64; then
21456 + # On IA64, the linker does run time linking by default, so we don't
21457 + # have to do anything special.
21458 + aix_use_runtimelinking=no
21459 + exp_sym_flag='-Bexport'
21462 + # If we're using GNU nm, then we don't want the "-C" option.
21463 + # -C means demangle to AIX nm, but means don't demangle with GNU nm
21464 + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
21465 + _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'
21467 + _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'
21469 + aix_use_runtimelinking=no
21471 -# Do we need the lib prefix for modules?
21472 -need_lib_prefix=$need_lib_prefix
21473 + # Test if we are trying to use run time linking or normal
21474 + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21475 + # need to do runtime linking.
21476 + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
21477 + for ld_flag in $LDFLAGS; do
21478 + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21479 + aix_use_runtimelinking=yes
21486 -# Do we need a version for libraries?
21487 -need_version=$need_version
21488 + exp_sym_flag='-bexport'
21489 + no_entry_flag='-bnoentry'
21492 -# Whether dlopen is supported.
21493 -dlopen_support=$enable_dlopen
21494 + # When large executables or shared objects are built, AIX ld can
21495 + # have problems creating the table of contents. If linking a library
21496 + # or program results in "error TOC overflow" add -mminimal-toc to
21497 + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21498 + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21500 -# Whether dlopen of programs is supported.
21501 -dlopen_self=$enable_dlopen_self
21502 + _LT_TAGVAR(archive_cmds, $1)=''
21503 + _LT_TAGVAR(hardcode_direct, $1)=yes
21504 + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
21505 + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
21506 + _LT_TAGVAR(link_all_deplibs, $1)=yes
21507 + _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
21509 -# Whether dlopen of statically linked programs is supported.
21510 -dlopen_self_static=$enable_dlopen_self_static
21511 + if test "$GCC" = yes; then
21512 + case $host_os in aix4.[[012]]|aix4.[[012]].*)
21513 + # We only want to do this on AIX 4.2 and lower, the check
21514 + # below for broken collect2 doesn't work under 4.3+
21515 + collect2name=`${CC} -print-prog-name=collect2`
21516 + if test -f "$collect2name" &&
21517 + strings "$collect2name" | $GREP resolve_lib_name >/dev/null
21519 + # We have reworked collect2
21522 + # We have old collect2
21523 + _LT_TAGVAR(hardcode_direct, $1)=unsupported
21524 + # It fails to find uninstalled libraries when the uninstalled
21525 + # path is not listed in the libpath. Setting hardcode_minus_L
21526 + # to unsupported forces relinking
21527 + _LT_TAGVAR(hardcode_minus_L, $1)=yes
21528 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
21529 + _LT_TAGVAR(hardcode_libdir_separator, $1)=
21533 + shared_flag='-shared'
21534 + if test "$aix_use_runtimelinking" = yes; then
21535 + shared_flag="$shared_flag "'${wl}-G'
21539 + if test "$host_cpu" = ia64; then
21540 + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21541 + # chokes on -Wl,-G. The following line is correct:
21544 + if test "$aix_use_runtimelinking" = yes; then
21545 + shared_flag='${wl}-G'
21547 + shared_flag='${wl}-bM:SRE'
21552 -# Compiler flag to prevent dynamic linking.
21553 -link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
21554 + # It seems that -bexpall does not export symbols beginning with
21555 + # underscore (_), so it is better to generate a list of symbols to export.
21556 + _LT_TAGVAR(always_export_symbols, $1)=yes
21557 + if test "$aix_use_runtimelinking" = yes; then
21558 + # Warning - without using the other runtime loading flags (-brtl),
21559 + # -berok will link without error, but may produce a broken library.
21560 + _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
21561 + # Determine the default libpath from the value encoded in an
21562 + # empty executable.
21563 + _LT_SYS_MODULE_PATH_AIX
21564 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
21565 + _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"
21567 + if test "$host_cpu" = ia64; then
21568 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
21569 + _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
21570 + _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"
21572 + # Determine the default libpath from the value encoded in an
21573 + # empty executable.
21574 + _LT_SYS_MODULE_PATH_AIX
21575 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
21576 + # Warning - without using the other run time loading flags,
21577 + # -berok will link without error, but may produce a broken library.
21578 + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
21579 + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
21580 + # Exported symbols can be pulled into shared objects from archives
21581 + _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
21582 + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
21583 + # This is similar to how AIX traditionally builds its shared libraries.
21584 + _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'
21589 -# Compiler flag to turn off builtin functions.
21590 -no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
21592 + case $host_cpu in
21594 + # see comment about AmigaOS4 .so support
21595 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21596 + _LT_TAGVAR(archive_expsym_cmds, $1)=''
21599 + _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)'
21600 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
21601 + _LT_TAGVAR(hardcode_minus_L, $1)=yes
21606 -# Compiler flag to allow reflexive dlopens.
21607 -export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
21609 + _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
21612 -# Compiler flag to generate shared objects directly from archives.
21613 -whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
21614 + cygwin* | mingw* | pw32*)
21615 + # When not using gcc, we currently assume that we are using
21616 + # Microsoft Visual C++.
21617 + # hardcode_libdir_flag_spec is actually meaningless, as there is
21618 + # no search path for DLLs.
21619 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
21620 + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
21621 + # Tell ltmain to make .lib files, not .a files.
21623 + # Tell ltmain to make .dll files, not .so files.
21624 + shrext_cmds=".dll"
21625 + # FIXME: Setting linknames here is a bad hack.
21626 + _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
21627 + # The linker will automatically build a .lib file if we build a DLL.
21628 + _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
21629 + # FIXME: Should let the user specify the lib program.
21630 + _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
21631 + _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
21632 + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
21635 -# Compiler flag to generate thread-safe objects.
21636 -thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
21637 + darwin* | rhapsody*)
21638 + _LT_DARWIN_LINKER_FEATURES($1)
21641 -# Library versioning type.
21642 -version_type=$version_type
21644 + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21645 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
21646 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
21649 -# Format of library name prefix.
21650 -libname_spec=$lt_libname_spec
21652 + _LT_TAGVAR(ld_shlibs, $1)=no
21655 -# List of archive names. First name is the real one, the rest are links.
21656 -# The last name is the one that the linker finds with -lNAME.
21657 -library_names_spec=$lt_library_names_spec
21658 + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21659 + # support. Future versions do this automatically, but an explicit c++rt0.o
21660 + # does not break anything, and helps significantly (at the cost of a little
21663 + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21664 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
21665 + _LT_TAGVAR(hardcode_direct, $1)=yes
21666 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
21669 -# The coded name of the library, if different from the real name.
21670 -soname_spec=$lt_soname_spec
21671 + # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21673 + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21674 + _LT_TAGVAR(hardcode_direct, $1)=yes
21675 + _LT_TAGVAR(hardcode_minus_L, $1)=yes
21676 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
21679 -# Commands used to build and install an old-style archive.
21681 -old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
21682 -old_postinstall_cmds=$lt_old_postinstall_cmds
21683 -old_postuninstall_cmds=$lt_old_postuninstall_cmds
21684 + # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
21685 + freebsd* | dragonfly*)
21686 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21687 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
21688 + _LT_TAGVAR(hardcode_direct, $1)=yes
21689 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
21692 -# Create an old-style archive from a shared archive.
21693 -old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
21695 + if test "$GCC" = yes; then
21696 + _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'
21698 + _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'
21700 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
21701 + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
21702 + _LT_TAGVAR(hardcode_direct, $1)=yes
21704 -# Create a temporary old-style archive to link instead of a shared archive.
21705 -old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
21706 + # hardcode_minus_L: Not really in the search PATH,
21707 + # but as the default location of the library.
21708 + _LT_TAGVAR(hardcode_minus_L, $1)=yes
21709 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
21712 -# Commands used to build and install a shared archive.
21713 -archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
21714 -archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
21715 -postinstall_cmds=$lt_postinstall_cmds
21716 -postuninstall_cmds=$lt_postuninstall_cmds
21718 + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21719 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21721 + _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
21723 + if test "$with_gnu_ld" = no; then
21724 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
21725 + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
21726 + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
21727 + _LT_TAGVAR(hardcode_direct, $1)=yes
21728 + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
21729 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
21730 + # hardcode_minus_L: Not really in the search PATH,
21731 + # but as the default location of the library.
21732 + _LT_TAGVAR(hardcode_minus_L, $1)=yes
21736 -# Commands used to build a loadable module (assumed same as above if empty)
21737 -module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
21738 -module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
21740 + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21741 + case $host_cpu in
21743 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21746 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
21749 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21753 + case $host_cpu in
21755 + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21758 + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
21761 + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21765 + if test "$with_gnu_ld" = no; then
21766 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
21767 + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
21769 -# Commands to strip libraries.
21770 -old_striplib=$lt_old_striplib
21771 -striplib=$lt_striplib
21772 + case $host_cpu in
21774 + _LT_TAGVAR(hardcode_direct, $1)=no
21775 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
21778 + _LT_TAGVAR(hardcode_direct, $1)=yes
21779 + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
21780 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
21782 -# Dependencies to place before the objects being linked to create a
21784 -predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
21785 + # hardcode_minus_L: Not really in the search PATH,
21786 + # but as the default location of the library.
21787 + _LT_TAGVAR(hardcode_minus_L, $1)=yes
21793 -# Dependencies to place after the objects being linked to create a
21795 -postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
21796 + irix5* | irix6* | nonstopux*)
21797 + if test "$GCC" = yes; then
21798 + _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'
21799 + # Try to use the -exported_symbol ld option, if it does not
21800 + # work, assume that -exports_file does not work either and
21801 + # implicitly export all symbols.
21802 + save_LDFLAGS="$LDFLAGS"
21803 + LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
21804 + AC_LINK_IFELSE(int foo(void) {},
21805 + _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'
21807 + LDFLAGS="$save_LDFLAGS"
21809 + _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'
21810 + _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'
21812 + _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
21813 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
21814 + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
21815 + _LT_TAGVAR(inherit_rpath, $1)=yes
21816 + _LT_TAGVAR(link_all_deplibs, $1)=yes
21819 -# Dependencies to place before the objects being linked to create a
21821 -predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
21823 + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21824 + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
21826 + _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
21828 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
21829 + _LT_TAGVAR(hardcode_direct, $1)=yes
21830 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
21833 -# Dependencies to place after the objects being linked to create a
21835 -postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
21837 + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21838 + _LT_TAGVAR(hardcode_direct, $1)=yes
21839 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
21840 + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
21841 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
21844 -# The library search path used internally by the compiler when linking
21845 -# a shared library.
21846 -compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
21850 -# Method to check whether dependent libraries are shared objects.
21851 -deplibs_check_method=$lt_deplibs_check_method
21853 + if test -f /usr/libexec/ld.so; then
21854 + _LT_TAGVAR(hardcode_direct, $1)=yes
21855 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
21856 + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
21857 + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21858 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21859 + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
21860 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
21861 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
21864 + openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
21865 + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21866 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
21869 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21870 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
21875 + _LT_TAGVAR(ld_shlibs, $1)=no
21879 -# Command to use when deplibs_check_method == file_magic.
21880 -file_magic_cmd=$lt_file_magic_cmd
21882 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
21883 + _LT_TAGVAR(hardcode_minus_L, $1)=yes
21884 + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
21885 + _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'
21886 + _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
21889 -# Flag that allows shared libraries with undefined symbols to be built.
21890 -allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
21892 + if test "$GCC" = yes; then
21893 + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
21894 + _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'
21896 + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
21897 + _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'
21899 + _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
21900 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
21901 + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
21904 -# Flag that forces no undefined symbols.
21905 -no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
21906 + osf4* | osf5*) # as osf3* with the addition of -msym flag
21907 + if test "$GCC" = yes; then
21908 + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
21909 + _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'
21910 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
21912 + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
21913 + _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'
21914 + _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~
21915 + $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'
21917 -# Commands used to finish a libtool library installation in a directory.
21918 -finish_cmds=$lt_finish_cmds
21919 + # Both c and cxx compiler support -rpath directly
21920 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
21922 + _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
21923 + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
21926 -# Same as above, but a single script fragment to be evaled but not shown.
21927 -finish_eval=$lt_finish_eval
21929 + _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
21930 + if test "$GCC" = yes; then
21932 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21933 + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21934 + $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
21936 + case `$CC -V 2>&1` in
21937 + *"Compilers 5.0"*)
21939 + _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
21940 + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21941 + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
21945 + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
21946 + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21947 + $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
21951 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
21952 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
21954 + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
21956 + # The compiler driver will combine and reorder linker options,
21957 + # but understands `-z linker_flag'. GCC discards it without `$wl',
21958 + # but is careful enough not to reorder.
21959 + # Supported since Solaris 2.6 (maybe 2.5.1?)
21960 + if test "$GCC" = yes; then
21961 + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
21963 + _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
21967 + _LT_TAGVAR(link_all_deplibs, $1)=yes
21970 -# Take the output of nm and produce a listing of raw symbols and C names.
21971 -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21973 + if test "x$host_vendor" = xsequent; then
21974 + # Use $CC to link under sequent, because it throws in some extra .o
21975 + # files that make .init and .fini sections work.
21976 + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
21978 + _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
21980 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
21981 + _LT_TAGVAR(hardcode_direct, $1)=yes
21982 + _LT_TAGVAR(hardcode_minus_L, $1)=yes
21983 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
21986 -# Transform the output of nm in a proper C declaration
21987 -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21989 + case $host_vendor in
21991 + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21992 + _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
21995 + ## LD is ld it makes a PLAMLIB
21996 + ## CC just makes a GrossModule.
21997 + _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
21998 + _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
21999 + _LT_TAGVAR(hardcode_direct, $1)=no
22002 + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22003 + _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
22006 + runpath_var='LD_RUN_PATH'
22007 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
22010 -# Transform the output of nm in a C name address pair
22011 -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22013 + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22014 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
22015 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
22018 -# This is the shared library runtime path variable.
22019 -runpath_var=$runpath_var
22021 + if test -d /usr/nec; then
22022 + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22023 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
22024 + runpath_var=LD_RUN_PATH
22025 + hardcode_runpath_var=yes
22026 + _LT_TAGVAR(ld_shlibs, $1)=yes
22030 -# This is the shared library path variable.
22031 -shlibpath_var=$shlibpath_var
22032 + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
22033 + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
22034 + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
22035 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
22036 + runpath_var='LD_RUN_PATH'
22038 -# Is shlibpath searched before the hard-coded library search path?
22039 -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22040 + if test "$GCC" = yes; then
22041 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22042 + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22044 + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22045 + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22049 -# How to hardcode a shared library path into an executable.
22050 -hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
22051 + sysv5* | sco3.2v5* | sco5v6*)
22052 + # Note: We can NOT use -z defs as we might desire, because we do not
22053 + # link with -lc, and that would cause any symbols used from libc to
22054 + # always be unresolved, which means just about no library would
22055 + # ever link correctly. If we're not using GNU ld we use -z text
22056 + # though, which does catch some bad symbols but isn't as heavy-handed
22058 + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
22059 + _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
22060 + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
22061 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
22062 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
22063 + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
22064 + _LT_TAGVAR(link_all_deplibs, $1)=yes
22065 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
22066 + runpath_var='LD_RUN_PATH'
22068 -# Whether we should hardcode library paths into libraries.
22069 -hardcode_into_libs=$hardcode_into_libs
22070 + if test "$GCC" = yes; then
22071 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22072 + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22074 + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22075 + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22079 -# Flag to hardcode \$libdir into a binary during linking.
22080 -# This must work even if \$libdir does not exist.
22081 -hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
22083 + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22084 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
22085 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
22088 -# If ld is used when linking, flag to hardcode \$libdir into
22089 -# a binary during linking. This must work even if \$libdir does
22091 -hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
22093 + _LT_TAGVAR(ld_shlibs, $1)=no
22097 -# Whether we need a single -rpath flag with a separated argument.
22098 -hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
22099 + if test x$host_vendor = xsni; then
22101 + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
22102 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
22108 +AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
22109 +test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
22111 -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
22112 -# resulting binary.
22113 -hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
22114 +_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
22116 -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
22117 -# resulting binary.
22118 -hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
22119 +_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
22120 +_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
22121 +_LT_DECL([], [extract_expsyms_cmds], [2],
22122 + [The commands to extract the exported symbol list from a shared archive])
22124 -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
22125 -# the resulting binary.
22126 -hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
22128 +# Do we need to explicitly link libc?
22130 +case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
22132 + # Assume -lc should be added
22133 + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
22135 -# Set to yes if building a shared library automatically hardcodes DIR into the library
22136 -# and all subsequent libraries and executables linked against it.
22137 -hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
22138 + if test "$enable_shared" = yes && test "$GCC" = yes; then
22139 + case $_LT_TAGVAR(archive_cmds, $1) in
22141 + # FIXME: we may have to deal with multi-command sequences.
22144 + # Test whether the compiler implicitly links with -lc since on some
22145 + # systems, -lgcc has to come before -lc. If gcc already passes -lc
22146 + # to ld, don't add -lc before -lgcc.
22147 + AC_MSG_CHECKING([whether -lc should be explicitly linked in])
22149 + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
22151 -# Variables whose values should be saved in libtool wrapper scripts and
22152 -# restored at relink time.
22153 -variables_saved_for_relink="$variables_saved_for_relink"
22154 + if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
22157 + libobjs=conftest.$ac_objext
22159 + wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
22160 + pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
22161 + compiler_flags=-v
22166 + lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
22167 + _LT_TAGVAR(allow_undefined_flag, $1)=
22168 + if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
22170 + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
22172 + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
22174 + _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
22176 + cat conftest.err 1>&5
22179 + AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
22186 -# Whether libtool must link a program against all its dependency libraries.
22187 -link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
22188 +_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
22189 + [Whether or not to add -lc for building shared libraries])
22190 +_LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
22191 + [enable_shared_with_static_runtimes], [0],
22192 + [Whether or not to disallow shared libs when runtime libs are static])
22193 +_LT_TAGDECL([], [export_dynamic_flag_spec], [1],
22194 + [Compiler flag to allow reflexive dlopens])
22195 +_LT_TAGDECL([], [whole_archive_flag_spec], [1],
22196 + [Compiler flag to generate shared objects directly from archives])
22197 +_LT_TAGDECL([], [compiler_needs_object], [1],
22198 + [Whether the compiler copes with passing no objects directly])
22199 +_LT_TAGDECL([], [old_archive_from_new_cmds], [2],
22200 + [Create an old-style archive from a shared archive])
22201 +_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
22202 + [Create a temporary old-style archive to link instead of a shared archive])
22203 +_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
22204 +_LT_TAGDECL([], [archive_expsym_cmds], [2])
22205 +_LT_TAGDECL([], [module_cmds], [2],
22206 + [Commands used to build a loadable module if different from building
22207 + a shared archive.])
22208 +_LT_TAGDECL([], [module_expsym_cmds], [2])
22209 +_LT_TAGDECL([], [with_gnu_ld], [1],
22210 + [Whether we are building with GNU ld or not])
22211 +_LT_TAGDECL([], [allow_undefined_flag], [1],
22212 + [Flag that allows shared libraries with undefined symbols to be built])
22213 +_LT_TAGDECL([], [no_undefined_flag], [1],
22214 + [Flag that enforces no undefined symbols])
22215 +_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
22216 + [Flag to hardcode $libdir into a binary during linking.
22217 + This must work even if $libdir does not exist])
22218 +_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
22219 + [[If ld is used when linking, flag to hardcode $libdir into a binary
22220 + during linking. This must work even if $libdir does not exist]])
22221 +_LT_TAGDECL([], [hardcode_libdir_separator], [1],
22222 + [Whether we need a single "-rpath" flag with a separated argument])
22223 +_LT_TAGDECL([], [hardcode_direct], [0],
22224 + [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
22225 + DIR into the resulting binary])
22226 +_LT_TAGDECL([], [hardcode_direct_absolute], [0],
22227 + [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
22228 + DIR into the resulting binary and the resulting library dependency is
22229 + "absolute", i.e impossible to change by setting ${shlibpath_var} if the
22230 + library is relocated])
22231 +_LT_TAGDECL([], [hardcode_minus_L], [0],
22232 + [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22233 + into the resulting binary])
22234 +_LT_TAGDECL([], [hardcode_shlibpath_var], [0],
22235 + [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22236 + into the resulting binary])
22237 +_LT_TAGDECL([], [hardcode_automatic], [0],
22238 + [Set to "yes" if building a shared library automatically hardcodes DIR
22239 + into the library and all subsequent libraries and executables linked
22241 +_LT_TAGDECL([], [inherit_rpath], [0],
22242 + [Set to yes if linker adds runtime paths of dependent libraries
22243 + to runtime path list])
22244 +_LT_TAGDECL([], [link_all_deplibs], [0],
22245 + [Whether libtool must link a program against all its dependency libraries])
22246 +_LT_TAGDECL([], [fix_srcfile_path], [1],
22247 + [Fix the shell variable $srcfile for the compiler])
22248 +_LT_TAGDECL([], [always_export_symbols], [0],
22249 + [Set to "yes" if exported symbols are required])
22250 +_LT_TAGDECL([], [export_symbols_cmds], [2],
22251 + [The commands to list exported symbols])
22252 +_LT_TAGDECL([], [exclude_expsyms], [1],
22253 + [Symbols that should not be listed in the preloaded symbols])
22254 +_LT_TAGDECL([], [include_expsyms], [1],
22255 + [Symbols that must always be exported])
22256 +_LT_TAGDECL([], [prelink_cmds], [2],
22257 + [Commands necessary for linking programs (against libraries) with templates])
22258 +_LT_TAGDECL([], [file_list_spec], [1],
22259 + [Specify filename containing input files])
22260 +dnl FIXME: Not yet implemented
22261 +dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
22262 +dnl [Compiler flag to generate thread safe objects])
22263 +])# _LT_LINKER_SHLIBS
22265 -# Compile-time system search path for libraries
22266 -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22268 -# Run-time system search path for libraries
22269 -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22270 +# _LT_LANG_C_CONFIG([TAG])
22271 +# ------------------------
22272 +# Ensure that the configuration variables for a C compiler are suitably
22273 +# defined. These variables are subsequently used by _LT_CONFIG to write
22274 +# the compiler configuration to `libtool'.
22275 +m4_defun([_LT_LANG_C_CONFIG],
22276 +[m4_require([_LT_DECL_EGREP])dnl
22280 -# Fix the shell variable \$srcfile for the compiler.
22281 -fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
22282 +# Source file extension for C test sources.
22285 -# Set to yes if exported symbols are required.
22286 -always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
22287 +# Object file extension for compiled C test sources.
22289 +_LT_TAGVAR(objext, $1)=$objext
22291 -# The commands to list exported symbols.
22292 -export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
22293 +# Code to be used in simple compile tests
22294 +lt_simple_compile_test_code="int some_variable = 0;"
22296 -# The commands to extract the exported symbol list from a shared archive.
22297 -extract_expsyms_cmds=$lt_extract_expsyms_cmds
22298 +# Code to be used in simple link tests
22299 +lt_simple_link_test_code='int main(){return(0);}'
22301 -# Symbols that should not be listed in the preloaded symbols.
22302 -exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
22304 +# Save the default compiler, since it gets overwritten when the other
22305 +# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
22306 +compiler_DEFAULT=$CC
22308 -# Symbols that must always be exported.
22309 -include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
22310 +# save warnings/boilerplate of simple test code
22311 +_LT_COMPILER_BOILERPLATE
22312 +_LT_LINKER_BOILERPLATE
22315 -[# ### END LIBTOOL CONFIG],
22316 -[# ### END LIBTOOL TAG CONFIG: $tagname])
22318 +## There is no encapsulation within the following macros, do not change
22319 +## the running order or otherwise move them around unless you know exactly
22320 +## what you are doing...
22321 +if test -n "$compiler"; then
22322 + _LT_COMPILER_NO_RTTI($1)
22323 + _LT_COMPILER_PIC($1)
22324 + _LT_COMPILER_C_O($1)
22325 + _LT_COMPILER_FILE_LOCKS($1)
22326 + _LT_LINKER_SHLIBS($1)
22327 + _LT_SYS_DYNAMIC_LINKER($1)
22328 + _LT_LINKER_HARDCODE_LIBPATH($1)
22329 + LT_SYS_DLOPEN_SELF
22332 + # Report which library types will actually be built
22333 + AC_MSG_CHECKING([if libtool supports shared libraries])
22334 + AC_MSG_RESULT([$can_build_shared])
22337 + AC_MSG_CHECKING([whether to build shared libraries])
22338 + test "$can_build_shared" = "no" && enable_shared=no
22341 + # On AIX, shared libraries and static libraries use the same namespace, and
22342 + # are all built from PIC.
22345 - cat <<\EOF >> "$cfgfile"
22346 + test "$enable_shared" = yes && enable_static=no
22347 + if test -n "$RANLIB"; then
22348 + archive_cmds="$archive_cmds~\$RANLIB \$lib"
22349 + postinstall_cmds='$RANLIB $lib'
22353 -# AIX sometimes has problems with the GCC collect2 program. For some
22354 -# reason, if we set the COLLECT_NAMES environment variable, the problems
22355 -# vanish in a puff of smoke.
22356 -if test "X${COLLECT_NAMES+set}" != Xset; then
22358 - export COLLECT_NAMES
22362 + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
22363 + test "$enable_shared" = yes && enable_static=no
22367 + AC_MSG_RESULT([$enable_shared])
22369 - # We use sed instead of cat because bash on DJGPP gets confused if
22370 - # if finds mixed CR/LF and LF-only lines. Since sed operates in
22371 - # text mode, it properly converts lines to CR/LF. This bash problem
22372 - # is reportedly fixed, but why not run on old versions too?
22373 - sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
22374 + AC_MSG_CHECKING([whether to build static libraries])
22375 + # Make sure either enable_shared or enable_static is yes.
22376 + test "$enable_shared" = yes || enable_static=yes
22377 + AC_MSG_RESULT([$enable_static])
22379 - mv -f "$cfgfile" "$ofile" || \
22380 - (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22381 - chmod +x "$ofile"
22384 - # If there is no Makefile yet, we rely on a make rule to execute
22385 - # `config.status --recheck' to rerun these tests and create the
22386 - # libtool script then.
22387 - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
22388 - if test -f "$ltmain_in"; then
22389 - test -f Makefile && make "$ltmain"
22393 -])# AC_LIBTOOL_CONFIG
22396 -# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
22397 -# -------------------------------------------
22398 -AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
22399 -[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
22401 -_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
22404 +])# _LT_LANG_C_CONFIG
22406 -if test "$GCC" = yes; then
22407 - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
22409 - AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
22410 - lt_cv_prog_compiler_rtti_exceptions,
22411 - [-fno-rtti -fno-exceptions], [],
22412 - [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
22415 +# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
22416 +# compiler, we have our own version here.
22417 +m4_defun([_LT_PROG_CXX],
22419 +pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
22421 +if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
22422 + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
22423 + (test "X$CXX" != "Xg++"))) ; then
22426 + _lt_caught_CXX_error=yes
22428 -])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
22429 +popdef([AC_MSG_ERROR])
22432 +dnl aclocal-1.4 backwards compatibility:
22433 +dnl AC_DEFUN([_LT_PROG_CXX], [])
22435 -# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
22436 -# ---------------------------------
22437 -AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
22438 -[AC_REQUIRE([AC_CANONICAL_HOST])
22439 -AC_REQUIRE([AC_PROG_NM])
22440 -AC_REQUIRE([AC_OBJEXT])
22441 -# Check for command to grab the raw symbol name followed by C symbol from nm.
22442 -AC_MSG_CHECKING([command to parse $NM output from $compiler object])
22443 -AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
22445 -# These are sane defaults that work on at least a few old systems.
22446 -# [They come from Ultrix. What could be older than Ultrix?!! ;)]
22448 -# Character class describing NM global symbol codes.
22449 -symcode='[[BCDEGRST]]'
22451 -# Regexp to match symbols that can be accessed directly from C.
22452 -sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
22453 +# _LT_LANG_CXX_CONFIG([TAG])
22454 +# --------------------------
22455 +# Ensure that the configuration variables for a C++ compiler are suitably
22456 +# defined. These variables are subsequently used by _LT_CONFIG to write
22457 +# the compiler configuration to `libtool'.
22458 +m4_defun([_LT_LANG_CXX_CONFIG],
22459 +[AC_REQUIRE([_LT_PROG_CXX])dnl
22460 +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
22461 +m4_require([_LT_DECL_EGREP])dnl
22464 +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
22465 +_LT_TAGVAR(allow_undefined_flag, $1)=
22466 +_LT_TAGVAR(always_export_symbols, $1)=no
22467 +_LT_TAGVAR(archive_expsym_cmds, $1)=
22468 +_LT_TAGVAR(compiler_needs_object, $1)=no
22469 +_LT_TAGVAR(export_dynamic_flag_spec, $1)=
22470 +_LT_TAGVAR(hardcode_direct, $1)=no
22471 +_LT_TAGVAR(hardcode_direct_absolute, $1)=no
22472 +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
22473 +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
22474 +_LT_TAGVAR(hardcode_libdir_separator, $1)=
22475 +_LT_TAGVAR(hardcode_minus_L, $1)=no
22476 +_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
22477 +_LT_TAGVAR(hardcode_automatic, $1)=no
22478 +_LT_TAGVAR(inherit_rpath, $1)=no
22479 +_LT_TAGVAR(module_cmds, $1)=
22480 +_LT_TAGVAR(module_expsym_cmds, $1)=
22481 +_LT_TAGVAR(link_all_deplibs, $1)=unknown
22482 +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
22483 +_LT_TAGVAR(no_undefined_flag, $1)=
22484 +_LT_TAGVAR(whole_archive_flag_spec, $1)=
22485 +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
22487 -# Transform an extracted symbol line into a proper C declaration
22488 -lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
22489 +# Source file extension for C++ test sources.
22492 -# Transform an extracted symbol line into symbol name and symbol address
22493 -lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
22494 +# Object file extension for compiled C++ test sources.
22496 +_LT_TAGVAR(objext, $1)=$objext
22498 -# Define system-specific variables.
22501 - symcode='[[BCDT]]'
22503 -cygwin* | mingw* | pw32*)
22504 - symcode='[[ABCDGISTW]]'
22506 -hpux*) # Its linker distinguishes data from code symbols
22507 - if test "$host_cpu" = ia64; then
22508 - symcode='[[ABCDEGRST]]'
22509 +# No sense in running all these tests if we already determined that
22510 +# the CXX compiler isn't working. Some variables (like enable_shared)
22511 +# are currently assumed to apply to all compilers on this platform,
22512 +# and will be corrupted by setting them based on a non-working compiler.
22513 +if test "$_lt_caught_CXX_error" != yes; then
22514 + # Code to be used in simple compile tests
22515 + lt_simple_compile_test_code="int some_variable = 0;"
22517 + # Code to be used in simple link tests
22518 + lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
22520 + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
22523 + # save warnings/boilerplate of simple test code
22524 + _LT_COMPILER_BOILERPLATE
22525 + _LT_LINKER_BOILERPLATE
22527 + # Allow CC to be a program name with arguments.
22532 + lt_save_with_gnu_ld=$with_gnu_ld
22533 + lt_save_path_LD=$lt_cv_path_LD
22534 + if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
22535 + lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
22537 + $as_unset lt_cv_prog_gnu_ld
22539 - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
22540 - lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
22543 - if test "$host_cpu" = ia64; then
22544 - symcode='[[ABCDGIRSTW]]'
22545 - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
22546 - lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
22547 + if test -n "${lt_cv_path_LDCXX+set}"; then
22548 + lt_cv_path_LD=$lt_cv_path_LDCXX
22550 + $as_unset lt_cv_path_LD
22553 -irix* | nonstopux*)
22554 - symcode='[[BCDEGRST]]'
22557 - symcode='[[BCDEGQRST]]'
22560 - symcode='[[BDRT]]'
22568 -sysv5* | sco5v6* | unixware* | OpenUNIX*)
22569 - symcode='[[ABDT]]'
22572 - symcode='[[DFNSTU]]'
22576 -# Handle CRLF in mingw tool chain
22580 - opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
22584 -# If we're using GNU nm, then use its standard symbol codes.
22585 -case `$NM -V 2>&1` in
22586 -*GNU* | *'with BFD'*)
22587 - symcode='[[ABCDGIRSTW]]' ;;
22590 -# Try without a prefix undercore, then with it.
22591 -for ac_symprfx in "" "_"; do
22593 - # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
22594 - symxfrm="\\1 $ac_symprfx\\2 \\2"
22596 - # Write the raw and C identifiers.
22597 - lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
22599 - # Check to see that the pipe works correctly.
22603 - cat > conftest.$ac_ext <<EOF
22604 -#ifdef __cplusplus
22608 -void nm_test_func(){}
22609 -#ifdef __cplusplus
22612 -int main(){nm_test_var='a';nm_test_func();return(0);}
22615 - if AC_TRY_EVAL(ac_compile); then
22616 - # Now try to grab the symbols.
22617 - nlist=conftest.nm
22618 - if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
22619 - # Try sorting and uniquifying the output.
22620 - if sort "$nlist" | uniq > "$nlist"T; then
22621 - mv -f "$nlist"T "$nlist"
22626 - # Make sure that we snagged all the symbols we need.
22627 - if grep ' nm_test_var$' "$nlist" >/dev/null; then
22628 - if grep ' nm_test_func$' "$nlist" >/dev/null; then
22629 - cat <<EOF > conftest.$ac_ext
22630 -#ifdef __cplusplus
22635 - # Now generate the symbol file.
22636 - eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
22638 - cat <<EOF >> conftest.$ac_ext
22639 -#if defined (__STDC__) && __STDC__
22640 -# define lt_ptr_t void *
22642 -# define lt_ptr_t char *
22646 -/* The mapping between symbol names and symbols. */
22648 - const char *name;
22649 - lt_ptr_t address;
22651 -lt_preloaded_symbols[[]] =
22654 - $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
22655 - cat <<\EOF >> conftest.$ac_ext
22656 - {0, (lt_ptr_t) 0}
22658 + test -z "${LDCXX+set}" || LD=$LDCXX
22661 + _LT_TAGVAR(compiler, $1)=$CC
22662 + _LT_CC_BASENAME([$compiler])
22664 -#ifdef __cplusplus
22668 - # Now try linking the two files.
22669 - mv conftest.$ac_objext conftstm.$ac_objext
22670 - lt_save_LIBS="$LIBS"
22671 - lt_save_CFLAGS="$CFLAGS"
22672 - LIBS="conftstm.$ac_objext"
22673 - CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
22674 - if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
22677 - LIBS="$lt_save_LIBS"
22678 - CFLAGS="$lt_save_CFLAGS"
22680 - echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
22683 - echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
22685 + if test -n "$compiler"; then
22686 + # We don't want -fno-exception when compiling C++ code, so set the
22687 + # no_builtin_flag separately
22688 + if test "$GXX" = yes; then
22689 + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
22691 - echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
22692 + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
22695 - echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
22696 - cat conftest.$ac_ext >&5
22698 - rm -f conftest* conftst*
22700 - # Do not use the global_symbol_pipe unless it works.
22701 - if test "$pipe_works" = yes; then
22704 - lt_cv_sys_global_symbol_pipe=
22708 -if test -z "$lt_cv_sys_global_symbol_pipe"; then
22709 - lt_cv_sys_global_symbol_to_cdecl=
22711 -if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
22712 - AC_MSG_RESULT(failed)
22714 - AC_MSG_RESULT(ok)
22716 -]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
22718 + if test "$GXX" = yes; then
22719 + # Set up default GNU C++ configuration
22721 -# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
22722 -# ---------------------------------------
22723 -AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
22724 -[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
22725 -_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
22726 -_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
22729 -AC_MSG_CHECKING([for $compiler option to produce PIC])
22730 - ifelse([$1],[CXX],[
22731 - # C++ specific cases for pic, static, wl, etc.
22732 - if test "$GXX" = yes; then
22733 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
22734 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
22735 + # Check if GNU C++ uses GNU ld as the underlying linker, since the
22736 + # archiving commands below assume that GNU ld is being used.
22737 + if test "$with_gnu_ld" = yes; then
22738 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
22739 + _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'
22741 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
22742 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
22744 + # If archive_cmds runs LD, not CC, wlarc should be empty
22745 + # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
22746 + # investigate it a little bit more. (MM)
22749 + # ancient GNU ld didn't support --whole-archive et. al.
22750 + if eval "`$CC -print-prog-name=ld` --help 2>&1" |
22751 + $GREP 'no-whole-archive' > /dev/null; then
22752 + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
22754 + _LT_TAGVAR(whole_archive_flag_spec, $1)=
22762 - # All AIX code is PIC.
22763 - if test "$host_cpu" = ia64; then
22764 - # AIX 5 now supports IA64 processor
22765 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
22769 - # FIXME: we need at least 68020 code to build shared libraries, but
22770 - # adding the `-m68020' flag to GCC prevents building anything better,
22771 - # like `-m68040'.
22772 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
22774 - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
22775 - # PIC is the default for these OSes.
22777 - mingw* | cygwin* | os2* | pw32*)
22778 - # This hack is so that the source file can tell whether it is being
22779 - # built for inclusion in a dll (and should export symbols for example).
22780 - # Although the cygwin gcc ignores -fPIC, still need this for old-style
22781 - # (--disable-auto-import) libraries
22782 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
22784 - darwin* | rhapsody*)
22785 - # PIC is the default on this platform
22786 - # Common symbols not allowed in MH_DYLIB files
22787 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
22790 - # DJGPP does not support shared libraries at all
22791 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
22794 - # Interix 3.x gcc -fpic/-fPIC options generate broken code.
22795 - # Instead, we relocate shared libraries at runtime.
22798 - if test -d /usr/nec; then
22799 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
22800 + # A generic and very simple default shared library creation
22801 + # command for GNU C++ for the case where it uses the native
22802 + # linker, instead of GNU ld. If possible, this setting should
22803 + # overridden to take advantage of the native linker features on
22804 + # the platform it is being used on.
22805 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
22809 - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
22810 - # not for PA HP-UX.
22811 - case $host_cpu in
22815 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
22820 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
22825 + # Commands to make compiler produce verbose output that lists
22826 + # what "hidden" libraries, object files and flags are used when
22827 + # linking a shared library.
22828 + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
22836 + # PORTME: fill in a description of your system's C++ link characteristics
22837 + AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
22838 + _LT_TAGVAR(ld_shlibs, $1)=yes
22841 - # All AIX code is PIC.
22842 - if test "$host_cpu" = ia64; then
22843 - # AIX 5 now supports IA64 processor
22844 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
22846 + # FIXME: insert proper C++ library support
22847 + _LT_TAGVAR(ld_shlibs, $1)=no
22850 + if test "$host_cpu" = ia64; then
22851 + # On IA64, the linker does run time linking by default, so we don't
22852 + # have to do anything special.
22853 + aix_use_runtimelinking=no
22854 + exp_sym_flag='-Bexport'
22857 + aix_use_runtimelinking=no
22859 + # Test if we are trying to use run time linking or normal
22860 + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
22861 + # need to do runtime linking.
22862 + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
22863 + for ld_flag in $LDFLAGS; do
22866 + aix_use_runtimelinking=yes
22874 + exp_sym_flag='-bexport'
22875 + no_entry_flag='-bnoentry'
22878 + # When large executables or shared objects are built, AIX ld can
22879 + # have problems creating the table of contents. If linking a library
22880 + # or program results in "error TOC overflow" add -mminimal-toc to
22881 + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
22882 + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22884 + _LT_TAGVAR(archive_cmds, $1)=''
22885 + _LT_TAGVAR(hardcode_direct, $1)=yes
22886 + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
22887 + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
22888 + _LT_TAGVAR(link_all_deplibs, $1)=yes
22889 + _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
22891 + if test "$GXX" = yes; then
22892 + case $host_os in aix4.[[012]]|aix4.[[012]].*)
22893 + # We only want to do this on AIX 4.2 and lower, the check
22894 + # below for broken collect2 doesn't work under 4.3+
22895 + collect2name=`${CC} -print-prog-name=collect2`
22896 + if test -f "$collect2name" &&
22897 + strings "$collect2name" | $GREP resolve_lib_name >/dev/null
22899 + # We have reworked collect2
22902 + # We have old collect2
22903 + _LT_TAGVAR(hardcode_direct, $1)=unsupported
22904 + # It fails to find uninstalled libraries when the uninstalled
22905 + # path is not listed in the libpath. Setting hardcode_minus_L
22906 + # to unsupported forces relinking
22907 + _LT_TAGVAR(hardcode_minus_L, $1)=yes
22908 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
22909 + _LT_TAGVAR(hardcode_libdir_separator, $1)=
22912 + shared_flag='-shared'
22913 + if test "$aix_use_runtimelinking" = yes; then
22914 + shared_flag="$shared_flag "'${wl}-G'
22918 + if test "$host_cpu" = ia64; then
22919 + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22920 + # chokes on -Wl,-G. The following line is correct:
22923 + if test "$aix_use_runtimelinking" = yes; then
22924 + shared_flag='${wl}-G'
22926 + shared_flag='${wl}-bM:SRE'
22931 + # It seems that -bexpall does not export symbols beginning with
22932 + # underscore (_), so it is better to generate a list of symbols to
22934 + _LT_TAGVAR(always_export_symbols, $1)=yes
22935 + if test "$aix_use_runtimelinking" = yes; then
22936 + # Warning - without using the other runtime loading flags (-brtl),
22937 + # -berok will link without error, but may produce a broken library.
22938 + _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
22939 + # Determine the default libpath from the value encoded in an empty
22941 + _LT_SYS_MODULE_PATH_AIX
22942 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
22944 + _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"
22946 + if test "$host_cpu" = ia64; then
22947 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
22948 + _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
22949 + _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"
22951 + # Determine the default libpath from the value encoded in an
22952 + # empty executable.
22953 + _LT_SYS_MODULE_PATH_AIX
22954 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
22955 + # Warning - without using the other run time loading flags,
22956 + # -berok will link without error, but may produce a broken library.
22957 + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
22958 + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
22959 + # Exported symbols can be pulled into shared objects from archives
22960 + _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
22961 + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
22962 + # This is similar to how AIX traditionally builds its shared
22964 + _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'
22970 + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
22971 + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
22972 + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
22973 + # support --undefined. This deserves some investigation. FIXME
22974 + _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22976 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
22977 + _LT_TAGVAR(ld_shlibs, $1)=no
22982 - case $cc_basename in
22984 - # Green Hills C++ Compiler
22985 - # _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
22986 + case $cc_basename in
22988 + # FIXME: insert proper C++ library support
22989 + _LT_TAGVAR(ld_shlibs, $1)=no
22995 + cygwin* | mingw* | pw32*)
22996 + # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
22997 + # as there is no search path for DLLs.
22998 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
22999 + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
23000 + _LT_TAGVAR(always_export_symbols, $1)=no
23001 + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
23003 + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
23004 + _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'
23005 + # If the export-symbols file already is a .def file (1st line
23006 + # is EXPORTS), use it as is; otherwise, prepend...
23007 + _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
23008 + cp $export_symbols $output_objdir/$soname.def;
23010 + echo EXPORTS > $output_objdir/$soname.def;
23011 + cat $export_symbols >> $output_objdir/$soname.def;
23013 + $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'
23015 + _LT_TAGVAR(ld_shlibs, $1)=no
23018 + darwin* | rhapsody*)
23019 + _LT_DARWIN_LINKER_FEATURES($1)
23022 - # PIC is the default on this platform
23023 - # Common symbols not allowed in MH_DYLIB files
23024 - case $cc_basename in
23026 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
23027 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
23033 - case $cc_basename in
23035 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
23036 + case $cc_basename in
23038 + # FIXME: insert proper C++ library support
23039 + _LT_TAGVAR(ld_shlibs, $1)=no
23043 # Green Hills C++ Compiler
23044 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
23045 + # FIXME: insert proper C++ library support
23046 + _LT_TAGVAR(ld_shlibs, $1)=no
23050 + # FIXME: insert proper C++ library support
23051 + _LT_TAGVAR(ld_shlibs, $1)=no
23055 - freebsd* | kfreebsd*-gnu | dragonfly*)
23056 - # FreeBSD uses GNU C++
23058 - hpux9* | hpux10* | hpux11*)
23059 - case $cc_basename in
23061 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
23062 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
23063 - if test "$host_cpu" != ia64; then
23064 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
23070 + # C++ shared libraries reported to be fairly broken before
23072 + _LT_TAGVAR(ld_shlibs, $1)=no
23076 + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
23079 + freebsd* | dragonfly*)
23080 + # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
23082 + _LT_TAGVAR(ld_shlibs, $1)=yes
23089 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
23090 + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
23091 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
23092 + _LT_TAGVAR(hardcode_direct, $1)=yes
23093 + _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
23094 + # but as the default
23095 + # location of the library.
23097 + case $cc_basename in
23099 + # FIXME: insert proper C++ library support
23100 + _LT_TAGVAR(ld_shlibs, $1)=no
23103 + _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'
23104 + # Commands to make compiler produce verbose output that lists
23105 + # what "hidden" libraries, object files and flags are used when
23106 + # linking a shared library.
23108 + # There doesn't appear to be a way to prevent this compiler from
23109 + # explicitly linking system object files so we need to strip them
23110 + # from the output so that they don't get included in the library
23112 + 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'
23115 + if test "$GXX" = yes; then
23116 + _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'
23118 + # FIXME: insert proper C++ library support
23119 + _LT_TAGVAR(ld_shlibs, $1)=no
23126 + if test $with_gnu_ld = no; then
23127 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
23128 + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
23130 + case $host_cpu in
23134 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
23138 + case $host_cpu in
23140 + _LT_TAGVAR(hardcode_direct, $1)=no
23141 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
23144 + _LT_TAGVAR(hardcode_direct, $1)=yes
23145 + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
23146 + _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
23147 + # but as the default
23148 + # location of the library.
23152 + case $cc_basename in
23154 + # FIXME: insert proper C++ library support
23155 + _LT_TAGVAR(ld_shlibs, $1)=no
23158 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
23159 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
23166 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
23169 + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
23172 + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
23175 + _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'
23178 + # Commands to make compiler produce verbose output that lists
23179 + # what "hidden" libraries, object files and flags are used when
23180 + # linking a shared library.
23182 + # There doesn't appear to be a way to prevent this compiler from
23183 + # explicitly linking system object files so we need to strip them
23184 + # from the output so that they don't get included in the library
23186 + 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'
23190 + if test "$GXX" = yes; then
23191 + if test $with_gnu_ld = no; then
23192 + case $host_cpu in
23194 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
23197 + _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'
23200 + _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'
23205 + # FIXME: insert proper C++ library support
23206 + _LT_TAGVAR(ld_shlibs, $1)=no
23212 - # This is c89, which is MS Visual C++ (no shared libs)
23213 - # Anyone wants to do a port?
23215 - irix5* | irix6* | nonstopux*)
23216 - case $cc_basename in
23218 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
23219 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
23220 - # CC pic flag -KPIC is the default.
23225 + _LT_TAGVAR(hardcode_direct, $1)=no
23226 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
23227 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
23228 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
23229 + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
23230 + # Instead, shared libraries are loaded at an image base (0x10000000 by
23231 + # default) and relocated if they conflict, which is a slow very memory
23232 + # consuming and fragmenting process. To avoid this, we pick a random,
23233 + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
23234 + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
23235 + _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'
23236 + _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'
23239 + case $cc_basename in
23242 + _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'
23244 + # Archives containing C++ object files must be created using
23245 + # "CC -ar", where "CC" is the IRIX C++ compiler. This is
23246 + # necessary to make sure instantiated templates are included
23247 + # in the archive.
23248 + _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
23252 + if test "$GXX" = yes; then
23253 + if test "$with_gnu_ld" = no; then
23254 + _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'
23256 + _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'
23259 + _LT_TAGVAR(link_all_deplibs, $1)=yes
23264 - case $cc_basename in
23266 - # KAI C++ Compiler
23267 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
23268 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
23270 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
23271 + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
23272 + _LT_TAGVAR(inherit_rpath, $1)=yes
23275 + linux* | k*bsd*-gnu)
23276 + case $cc_basename in
23278 + # Kuck and Associates, Inc. (KAI) C++ Compiler
23280 + # KCC will only create a shared library if the output file
23281 + # ends with ".so" (or ".sl" for HP-UX), so rename the library
23282 + # to its proper name (with version) after linking.
23283 + _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'
23284 + _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'
23285 + # Commands to make compiler produce verbose output that lists
23286 + # what "hidden" libraries, object files and flags are used when
23287 + # linking a shared library.
23289 + # There doesn't appear to be a way to prevent this compiler from
23290 + # explicitly linking system object files so we need to strip them
23291 + # from the output so that they don't get included in the library
23293 + 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'
23295 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
23296 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
23298 + # Archives containing C++ object files must be created using
23299 + # "CC -Bstatic", where "CC" is the KAI C++ compiler.
23300 + _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
23305 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
23306 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
23307 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
23310 - # Portland Group C++ compiler.
23311 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
23312 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
23313 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
23317 - # Make sure the PIC flag is empty. It appears that all Alpha
23318 - # Linux and Compaq Tru64 Unix objects are PIC.
23319 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
23320 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
23322 + # version 8.0 and above of icpc choke on multiply defined symbols
23323 + # if we add $predep_objects and $postdep_objects, however 7.1 and
23324 + # earlier do not add the objects themselves.
23325 + case `$CC -V 2>&1` in
23327 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
23328 + _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'
23330 + *) # Version 8.0 or newer
23332 + case $host_cpu in
23333 + ia64*) tmp_idyn=' -i_dynamic';;
23335 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23336 + _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'
23339 + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
23340 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
23341 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
23342 + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
23345 - case `$CC -V 2>&1 | sed 5q` in
23348 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
23349 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
23350 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
23352 + # Portland Group C++ compiler
23354 + *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
23355 + _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
23357 + $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
23358 + compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
23359 + _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
23361 + $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
23362 + $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
23364 + _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
23366 + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
23367 + $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
23368 + _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
23370 + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
23371 + $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'
23373 + *) # Version 6 will use weak symbols
23374 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
23375 + _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'
23386 - case $cc_basename in
23388 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
23396 - osf3* | osf4* | osf5*)
23397 - case $cc_basename in
23399 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
23402 - # Rational C++ 2.4.1
23403 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
23406 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
23407 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
23408 + _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'
23411 - # Digital/Compaq C++
23412 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
23413 - # Make sure the PIC flag is empty. It appears that all Alpha
23414 - # Linux and Compaq Tru64 Unix objects are PIC.
23415 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
23416 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
23425 - case $cc_basename in
23427 - # Sun C++ 4.2, 5.x and Centerline C++
23428 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
23429 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
23430 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
23433 - # Green Hills C++ Compiler
23434 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
23441 - case $cc_basename in
23444 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
23445 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
23449 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
23453 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
23454 + _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'
23456 + runpath_var=LD_RUN_PATH
23457 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
23458 + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
23460 + # Commands to make compiler produce verbose output that lists
23461 + # what "hidden" libraries, object files and flags are used when
23462 + # linking a shared library.
23464 + # There doesn't appear to be a way to prevent this compiler from
23465 + # explicitly linking system object files so we need to strip them
23466 + # from the output so that they don't get included in the library
23468 + 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'
23473 - case $cc_basename in
23475 - # NonStop-UX NCC 3.20
23476 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
23478 + # IBM XL 8.0 on PPC, with GNU ld
23479 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
23480 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
23481 + _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23482 + if test "x$supports_anon_versioning" = xyes; then
23483 + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
23484 + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
23485 + echo "local: *; };" >> $output_objdir/$libname.ver~
23486 + $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
23490 + case `$CC -V 2>&1 | sed 5q` in
23493 + _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
23494 + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
23495 + _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'
23496 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
23497 + _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'
23498 + _LT_TAGVAR(compiler_needs_object, $1)=yes
23500 + # Not sure whether something based on
23501 + # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
23502 + # would be better.
23503 + output_verbose_link_cmd='echo'
23505 + # Archives containing C++ object files must be created using
23506 + # "CC -xar", where "CC" is the Sun C++ compiler. This is
23507 + # necessary to make sure instantiated templates are included
23508 + # in the archive.
23509 + _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
23515 - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
23516 - case $cc_basename in
23518 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
23519 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
23520 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
23523 + # FIXME: insert proper C++ library support
23524 + _LT_TAGVAR(ld_shlibs, $1)=no
23528 + # FIXME: insert proper C++ library support
23529 + _LT_TAGVAR(ld_shlibs, $1)=no
23533 + case $cc_basename in
23535 + # FIXME: insert proper C++ library support
23536 + _LT_TAGVAR(ld_shlibs, $1)=no
23539 + # FIXME: insert proper C++ library support
23540 + _LT_TAGVAR(ld_shlibs, $1)=no
23547 + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
23548 + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
23550 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
23551 + _LT_TAGVAR(hardcode_direct, $1)=yes
23552 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
23554 + # Workaround some broken pre-1.5 toolchains
23555 + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
23558 - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
23561 + _LT_TAGVAR(ld_shlibs, $1)=yes
23567 - if test "$GCC" = yes; then
23568 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
23569 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
23573 - # All AIX code is PIC.
23574 - if test "$host_cpu" = ia64; then
23575 - # AIX 5 now supports IA64 processor
23576 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
23580 + # C++ shared libraries are fairly broken
23581 + _LT_TAGVAR(ld_shlibs, $1)=no
23585 + if test -f /usr/libexec/ld.so; then
23586 + _LT_TAGVAR(hardcode_direct, $1)=yes
23587 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
23588 + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
23589 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
23590 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
23591 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23592 + _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'
23593 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
23594 + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
23596 + output_verbose_link_cmd=echo
23598 + _LT_TAGVAR(ld_shlibs, $1)=no
23603 - # FIXME: we need at least 68020 code to build shared libraries, but
23604 - # adding the `-m68020' flag to GCC prevents building anything better,
23605 - # like `-m68040'.
23606 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
23608 + osf3* | osf4* | osf5*)
23609 + case $cc_basename in
23611 + # Kuck and Associates, Inc. (KAI) C++ Compiler
23613 + # KCC will only create a shared library if the output file
23614 + # ends with ".so" (or ".sl" for HP-UX), so rename the library
23615 + # to its proper name (with version) after linking.
23616 + _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'
23618 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
23619 + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
23621 + # Archives containing C++ object files must be created using
23622 + # the KAI C++ compiler.
23624 + osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
23625 + *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
23629 + # Rational C++ 2.4.1
23630 + # FIXME: insert proper C++ library support
23631 + _LT_TAGVAR(ld_shlibs, $1)=no
23636 + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
23637 + _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'
23638 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
23641 + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
23642 + _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'
23643 + _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
23644 + echo "-hidden">> $lib.exp~
23645 + $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~
23647 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
23651 - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23652 - # PIC is the default for these OSes.
23654 + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
23656 - mingw* | cygwin* | pw32* | os2*)
23657 - # This hack is so that the source file can tell whether it is being
23658 - # built for inclusion in a dll (and should export symbols for example).
23659 - # Although the cygwin gcc ignores -fPIC, still need this for old-style
23660 - # (--disable-auto-import) libraries
23661 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
23663 + # Commands to make compiler produce verbose output that lists
23664 + # what "hidden" libraries, object files and flags are used when
23665 + # linking a shared library.
23667 + # There doesn't appear to be a way to prevent this compiler from
23668 + # explicitly linking system object files so we need to strip them
23669 + # from the output so that they don't get included in the library
23671 + 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'
23674 + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
23675 + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
23678 + _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'
23681 + _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'
23685 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
23686 + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
23688 + # Commands to make compiler produce verbose output that lists
23689 + # what "hidden" libraries, object files and flags are used when
23690 + # linking a shared library.
23691 + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
23694 + # FIXME: insert proper C++ library support
23695 + _LT_TAGVAR(ld_shlibs, $1)=no
23701 - darwin* | rhapsody*)
23702 - # PIC is the default on this platform
23703 - # Common symbols not allowed in MH_DYLIB files
23704 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
23707 + # FIXME: insert proper C++ library support
23708 + _LT_TAGVAR(ld_shlibs, $1)=no
23712 - # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23713 - # Instead, we relocate shared libraries at runtime.
23716 + case $cc_basename in
23719 + # FIXME: insert proper C++ library support
23720 + _LT_TAGVAR(ld_shlibs, $1)=no
23724 + # FIXME: insert proper C++ library support
23725 + _LT_TAGVAR(ld_shlibs, $1)=no
23728 + # FIXME: insert proper C++ library support
23729 + _LT_TAGVAR(ld_shlibs, $1)=no
23735 - # Just because we use GCC doesn't mean we suddenly get shared libraries
23736 - # on systems that don't support them.
23737 - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
23741 + case $cc_basename in
23743 + # Sun C++ 4.2, 5.x and Centerline C++
23744 + _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
23745 + _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
23746 + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
23747 + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
23748 + $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'
23750 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
23751 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
23753 + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
23755 + # The compiler driver will combine and reorder linker options,
23756 + # but understands `-z linker_flag'.
23757 + # Supported since Solaris 2.6 (maybe 2.5.1?)
23758 + _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
23761 + _LT_TAGVAR(link_all_deplibs, $1)=yes
23764 - if test -d /usr/nec; then
23765 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
23768 + output_verbose_link_cmd='echo'
23771 - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23772 - # not for PA HP-UX.
23773 - case $host_cpu in
23778 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
23782 + # Archives containing C++ object files must be created using
23783 + # "CC -xar", where "CC" is the Sun C++ compiler. This is
23784 + # necessary to make sure instantiated templates are included
23785 + # in the archive.
23786 + _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
23789 + # Green Hills C++ Compiler
23790 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
23793 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
23797 - # PORTME Check for flag to pass linker flags through the system compiler.
23800 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
23801 - if test "$host_cpu" = ia64; then
23802 - # AIX 5 now supports IA64 processor
23803 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
23805 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
23809 - # PIC is the default on this platform
23810 - # Common symbols not allowed in MH_DYLIB files
23811 - case $cc_basename in
23813 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
23814 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
23818 + # The C++ compiler must be used to create the archive.
23819 + _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
23822 + # GNU C++ compiler with Solaris linker
23823 + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
23824 + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
23825 + if $CC --version | $GREP -v '^2\.7' > /dev/null; then
23826 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
23827 + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
23828 + $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
23830 + # Commands to make compiler produce verbose output that lists
23831 + # what "hidden" libraries, object files and flags are used when
23832 + # linking a shared library.
23833 + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
23835 + # g++ 2.7 appears to require `-G' NOT `-shared' on this
23837 + _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
23838 + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
23839 + $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
23841 + # Commands to make compiler produce verbose output that lists
23842 + # what "hidden" libraries, object files and flags are used when
23843 + # linking a shared library.
23844 + output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
23847 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
23849 + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
23851 + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
23859 - mingw* | cygwin* | pw32* | os2*)
23860 - # This hack is so that the source file can tell whether it is being
23861 - # built for inclusion in a dll (and should export symbols for example).
23862 - # Although the cygwin gcc ignores -fPIC, still need this for old-style
23863 - # (--disable-auto-import) libraries
23864 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
23866 + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
23867 + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
23868 + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
23869 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
23870 + runpath_var='LD_RUN_PATH'
23872 - hpux9* | hpux10* | hpux11*)
23873 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
23874 - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23875 - # not for PA HP-UX.
23876 - case $host_cpu in
23881 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
23883 + case $cc_basename in
23885 + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23886 + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23889 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23890 + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23893 - # Is there a better lt_prog_compiler_static that works with the bundled CC?
23894 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
23897 - irix5* | irix6* | nonstopux*)
23898 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
23899 - # PIC (with -KPIC) is the default.
23900 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
23902 + sysv5* | sco3.2v5* | sco5v6*)
23903 + # Note: We can NOT use -z defs as we might desire, because we do not
23904 + # link with -lc, and that would cause any symbols used from libc to
23905 + # always be unresolved, which means just about no library would
23906 + # ever link correctly. If we're not using GNU ld we use -z text
23907 + # though, which does catch some bad symbols but isn't as heavy-handed
23909 + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
23910 + _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
23911 + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
23912 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
23913 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
23914 + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
23915 + _LT_TAGVAR(link_all_deplibs, $1)=yes
23916 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
23917 + runpath_var='LD_RUN_PATH'
23920 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
23921 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
23922 + case $cc_basename in
23924 + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23925 + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23928 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23929 + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23935 - case $cc_basename in
23937 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
23938 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
23939 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
23941 - pgcc* | pgf77* | pgf90* | pgf95*)
23942 - # Portland Group compilers (*not* the Pentium gcc compiler,
23943 - # which looks to be a dead project)
23944 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
23945 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
23946 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
23949 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
23950 - # All Alpha code is PIC.
23951 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
23953 + case $cc_basename in
23955 + # NonStop-UX NCC 3.20
23956 + # FIXME: insert proper C++ library support
23957 + _LT_TAGVAR(ld_shlibs, $1)=no
23960 + # FIXME: insert proper C++ library support
23961 + _LT_TAGVAR(ld_shlibs, $1)=no
23966 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-lopt='
23969 + # FIXME: insert proper C++ library support
23970 + _LT_TAGVAR(ld_shlibs, $1)=no
23974 - case `$CC -V 2>&1 | sed 5q` in
23977 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
23978 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
23979 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
23982 - # Sun Fortran 8.3 passes all unrecognized flags to the linker
23983 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
23984 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
23985 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=''
23991 + # FIXME: insert proper C++ library support
23992 + _LT_TAGVAR(ld_shlibs, $1)=no
23996 - osf3* | osf4* | osf5*)
23997 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
23998 - # All OSF/1 code is PIC.
23999 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
24001 + AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
24002 + test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
24005 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
24006 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
24007 - case $cc_basename in
24008 - f77* | f90* | f95*)
24009 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
24011 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
24014 + _LT_TAGVAR(GCC, $1)="$GXX"
24015 + _LT_TAGVAR(LD, $1)="$LD"
24017 + ## CAVEAT EMPTOR:
24018 + ## There is no encapsulation within the following macros, do not change
24019 + ## the running order or otherwise move them around unless you know exactly
24020 + ## what you are doing...
24021 + _LT_SYS_HIDDEN_LIBDEPS($1)
24022 + _LT_COMPILER_PIC($1)
24023 + _LT_COMPILER_C_O($1)
24024 + _LT_COMPILER_FILE_LOCKS($1)
24025 + _LT_LINKER_SHLIBS($1)
24026 + _LT_SYS_DYNAMIC_LINKER($1)
24027 + _LT_LINKER_HARDCODE_LIBPATH($1)
24030 + fi # test -n "$compiler"
24036 + with_gnu_ld=$lt_save_with_gnu_ld
24037 + lt_cv_path_LDCXX=$lt_cv_path_LD
24038 + lt_cv_path_LD=$lt_save_path_LD
24039 + lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
24040 + lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
24041 +fi # test "$_lt_caught_CXX_error" != yes
24044 +])# _LT_LANG_CXX_CONFIG
24047 +# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
24048 +# ---------------------------------
24049 +# Figure out "hidden" library dependencies from verbose
24050 +# compiler output when linking a shared library.
24051 +# Parse the compiler output and extract the necessary
24052 +# objects, libraries and library flags.
24053 +m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
24054 +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
24055 +# Dependencies to place before and after the object being linked:
24056 +_LT_TAGVAR(predep_objects, $1)=
24057 +_LT_TAGVAR(postdep_objects, $1)=
24058 +_LT_TAGVAR(predeps, $1)=
24059 +_LT_TAGVAR(postdeps, $1)=
24060 +_LT_TAGVAR(compiler_lib_search_path, $1)=
24062 +dnl we can't use the lt_simple_compile_test_code here,
24063 +dnl because it contains code intended for an executable,
24064 +dnl not a library. It's possible we should let each
24065 +dnl tag define a new lt_????_link_test_code variable,
24066 +dnl but it's only used here...
24067 +m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
24069 +void foo (void) { a = 0; }
24071 +], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
24075 + Foo (void) { a = 0; }
24080 +], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
24088 +], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
24096 +], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
24097 +public class foo {
24099 + public void bar (void) {
24105 +dnl Parse the compiler output and extract the necessary
24106 +dnl objects, libraries and library flags.
24107 +if AC_TRY_EVAL(ac_compile); then
24108 + # Parse the compiler output and extract the necessary
24109 + # objects, libraries and library flags.
24111 + # Sentinel used to keep track of whether or not we are before
24112 + # the conftest object file.
24113 + pre_test_object_deps_done=no
24116 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
24117 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
24118 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
24120 + for p in `eval "$output_verbose_link_cmd"`; do
24123 - sysv4 | sysv4.2uw2* | sysv4.3*)
24124 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
24125 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
24126 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
24129 + # Some compilers place space between "-{L,R}" and the path.
24130 + # Remove the space.
24131 + if test $p = "-L" ||
24132 + test $p = "-R"; then
24140 - if test -d /usr/nec ;then
24141 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
24142 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
24145 + if test "$pre_test_object_deps_done" = no; then
24148 + # Internal compiler library paths should come after those
24149 + # provided the user. The postdeps already come after the
24150 + # user supplied libs so there is no need to process them.
24151 + if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
24152 + _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
24154 + _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
24157 + # The "-l" case would never come before the object being
24158 + # linked, so don't bother handling this case.
24161 + if test -z "$_LT_TAGVAR(postdeps, $1)"; then
24162 + _LT_TAGVAR(postdeps, $1)="${prev}${p}"
24164 + _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
24169 - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
24170 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
24171 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
24172 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
24175 + # This assumes that the test object file only shows up
24176 + # once in the compiler output.
24177 + if test "$p" = "conftest.$objext"; then
24178 + pre_test_object_deps_done=yes
24183 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
24184 - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
24186 + if test "$pre_test_object_deps_done" = no; then
24187 + if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
24188 + _LT_TAGVAR(predep_objects, $1)="$p"
24190 + _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
24193 + if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
24194 + _LT_TAGVAR(postdep_objects, $1)="$p"
24196 + _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
24202 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
24203 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
24205 + *) ;; # Ignore the rest.
24208 - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
24213 -AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
24217 -# Check to make sure the PIC flag actually works.
24219 -if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
24220 - AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
24221 - _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
24222 - [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
24223 - [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
24225 - *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
24227 - [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
24228 - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
24230 + rm -f a.out a.exe
24232 + echo "libtool.m4: error: problem compiling $1 test program"
24235 - # For platforms which do not support PIC, -DPIC is meaningless:
24237 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
24240 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
24245 -# Check to make sure the static flag actually works.
24247 -wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
24248 -AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
24249 - _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
24250 - $lt_tmp_static_flag,
24252 - [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
24255 +$RM -f confest.$objext
24257 -# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
24258 -# ------------------------------------
24259 -# See if the linker supports building shared libraries.
24260 -AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
24261 -[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
24262 -ifelse([$1],[CXX],[
24263 - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24266 - # If we're using GNU nm, then we don't want the "-C" option.
24267 - # -C means demangle to AIX nm, but means don't demangle with GNU nm
24268 - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24269 - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
24271 - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
24275 - _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
24277 - cygwin* | mingw*)
24278 - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([[^ ]]*\) [[^ ]]*/\1 DATA/;/^I /d;/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
24281 - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24282 +# PORTME: override above test on systems where it is broken
24283 +m4_if([$1], [CXX],
24286 + # Interix 3.5 installs completely hosed .la files for C++, so rather than
24287 + # hack all around it, let's just trust "g++" to DTRT.
24288 + _LT_TAGVAR(predep_objects,$1)=
24289 + _LT_TAGVAR(postdep_objects,$1)=
24290 + _LT_TAGVAR(postdeps,$1)=
24295 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=
24296 - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
24297 - _LT_AC_TAGVAR(archive_cmds, $1)=
24298 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
24299 - _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
24300 - _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
24301 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
24302 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
24303 - _LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
24304 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
24305 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
24306 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
24307 - _LT_AC_TAGVAR(hardcode_direct, $1)=no
24308 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
24309 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
24310 - _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
24311 - _LT_AC_TAGVAR(hardcode_automatic, $1)=no
24312 - _LT_AC_TAGVAR(module_cmds, $1)=
24313 - _LT_AC_TAGVAR(module_expsym_cmds, $1)=
24314 - _LT_AC_TAGVAR(always_export_symbols, $1)=no
24315 - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24316 - # include_expsyms should be a list of space-separated symbols to be *always*
24317 - # included in the symbol list
24318 - _LT_AC_TAGVAR(include_expsyms, $1)=
24319 - # exclude_expsyms can be an extended regexp of symbols to exclude
24320 - # it will be wrapped by ` (' and `)$', so one must not match beginning or
24321 - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24322 - # as well as any symbol that contains `d'.
24323 - _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
24324 - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24325 - # platforms (ab)use it in PIC code, but their linkers get confused if
24326 - # the symbol is explicitly referenced. Since portable code cannot
24327 - # rely on this symbol name, it's probably fine to never include it in
24328 - # preloaded symbol tables.
24329 - extract_expsyms_cmds=
24330 - # Just being paranoid about ensuring that cc_basename is set.
24331 - _LT_CC_BASENAME([$compiler])
24333 - cygwin* | mingw* | pw32*)
24334 - # FIXME: the MSVC++ port hasn't been tested in a loooong time
24335 - # When not using gcc, we currently assume that we are using
24336 - # Microsoft Visual C++.
24337 - if test "$GCC" != yes; then
24342 - # we just hope/assume this is gcc and not c89 (= MSVC++)
24350 - _LT_AC_TAGVAR(ld_shlibs, $1)=yes
24351 - if test "$with_gnu_ld" = yes; then
24352 - # If archive_cmds runs LD, not CC, wlarc should be empty
24355 - # Set some defaults for GNU ld with shared library support. These
24356 - # are reset later if shared libraries are not supported. Putting them
24357 - # here allows them to be overridden if necessary.
24358 - runpath_var=LD_RUN_PATH
24359 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
24360 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
24361 - # ancient GNU ld didn't support --whole-archive et. al.
24362 - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24363 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24365 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
24367 - supports_anon_versioning=no
24368 - case `$LD -v 2>/dev/null` in
24369 - *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
24370 - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24371 - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24372 - *\ 2.11.*) ;; # other 2.11 versions
24373 - *) supports_anon_versioning=yes ;;
24376 - # See if GNU ld supports shared libraries.
24378 - aix3* | aix4* | aix5*)
24379 - # On AIX/PPC, the GNU linker is very broken
24380 - if test "$host_cpu" != ia64; then
24381 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
24384 -*** Warning: the GNU linker, at least up to release 2.9.1, is reported
24385 -*** to be unable to reliably create shared libraries on AIX.
24386 -*** Therefore, libtool is disabling shared libraries support. If you
24387 -*** really care for shared libraries, you may want to modify your PATH
24388 -*** so that a non-GNU linker is found, and then restart.
24395 - _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
24396 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
24397 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
24399 - # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24400 - # that the semantics of dynamic libraries on AmigaOS, at least up
24401 - # to version 4, is to share data among multiple programs linked
24402 - # with the same dynamic library. Since this doesn't match the
24403 - # behavior of shared libraries on other platforms, we can't use
24405 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
24408 + case `$CC -V 2>&1 | sed 5q` in
24413 - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24414 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
24415 - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24416 - # support --undefined. This deserves some investigation. FIXME
24417 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24419 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
24421 + # The more standards-conforming stlport4 library is
24422 + # incompatible with the Cstd library. Avoid specifying
24423 + # it if it's in CXXFLAGS. Ignore libCrun as
24424 + # -library=stlport4 depends on it.
24425 + case " $CXX $CXXFLAGS " in
24426 + *" -library=stlport4 "*)
24427 + solaris_use_stlport4=yes
24431 - cygwin* | mingw* | pw32*)
24432 - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
24433 - # as there is no search path for DLLs.
24434 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
24435 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
24436 - _LT_AC_TAGVAR(always_export_symbols, $1)=no
24437 - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
24438 - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
24440 - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24441 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24442 - # If the export-symbols file already is a .def file (1st line
24443 - # is EXPORTS), use it as is; otherwise, prepend...
24444 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24445 - cp $export_symbols $output_objdir/$soname.def;
24447 - echo EXPORTS > $output_objdir/$soname.def;
24448 - cat $export_symbols >> $output_objdir/$soname.def;
24450 - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24452 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
24455 + if test "$solaris_use_stlport4" != yes; then
24456 + _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
24463 - _LT_AC_TAGVAR(hardcode_direct, $1)=no
24464 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
24465 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
24466 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
24467 - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24468 - # Instead, shared libraries are loaded at an image base (0x10000000 by
24469 - # default) and relocated if they conflict, which is a slow very memory
24470 - # consuming and fragmenting process. To avoid this, we pick a random,
24471 - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24472 - # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24473 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
24474 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
24476 + case $cc_basename in
24478 + # The more standards-conforming stlport4 library is
24479 + # incompatible with the Cstd library. Avoid specifying
24480 + # it if it's in CXXFLAGS. Ignore libCrun as
24481 + # -library=stlport4 depends on it.
24482 + case " $CXX $CXXFLAGS " in
24483 + *" -library=stlport4 "*)
24484 + solaris_use_stlport4=yes
24489 - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24491 - case $cc_basename,$host_cpu in
24492 - pgcc*) # Portland Group C compiler
24493 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
24494 - tmp_addflag=' $pic_flag'
24496 - pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24497 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
24498 - tmp_addflag=' $pic_flag -Mnomain' ;;
24499 - ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24500 - tmp_addflag=' -i_dynamic' ;;
24501 - efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24502 - tmp_addflag=' -i_dynamic -nofor_main' ;;
24503 - ifc* | ifort*) # Intel Fortran compiler
24504 - tmp_addflag=' -nofor_main' ;;
24506 - case `$CC -V 2>&1 | sed 5q` in
24507 - *Sun\ C*) # Sun C 5.9
24508 - _LT_AC_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 /dev/null'
24509 - tmp_sharedflag='-G' ;;
24510 - *Sun\ F*) # Sun Fortran 8.3
24511 - tmp_sharedflag='-G' ;;
24513 - tmp_sharedflag='-shared' ;;
24515 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24516 + # Adding this requires a known-good setup of shared libraries for
24517 + # Sun compiler versions before 5.6, else PIC objects from an old
24518 + # archive will be linked into the output, leading to subtle bugs.
24519 + if test "$solaris_use_stlport4" != yes; then
24520 + _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
24528 - if test $supports_anon_versioning = yes; then
24529 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
24530 - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24531 - $echo "local: *; };" >> $output_objdir/$libname.ver~
24532 - $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24535 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
24538 +case " $_LT_TAGVAR(postdeps, $1) " in
24539 +*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
24541 + _LT_TAGVAR(compiler_lib_search_dirs, $1)=
24542 +if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
24543 + _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
24545 +_LT_TAGDECL([], [compiler_lib_search_dirs], [1],
24546 + [The directories searched by this compiler when creating a shared library])
24547 +_LT_TAGDECL([], [predep_objects], [1],
24548 + [Dependencies to place before and after the objects being linked to
24549 + create a shared library])
24550 +_LT_TAGDECL([], [postdep_objects], [1])
24551 +_LT_TAGDECL([], [predeps], [1])
24552 +_LT_TAGDECL([], [postdeps], [1])
24553 +_LT_TAGDECL([], [compiler_lib_search_path], [1],
24554 + [The library search path used internally by the compiler when linking
24555 + a shared library])
24556 +])# _LT_SYS_HIDDEN_LIBDEPS
24561 +# Since AC_PROG_F77 is broken, in that it returns the empty string
24562 +# if there is no fortran compiler, we have our own version here.
24563 +m4_defun([_LT_PROG_F77],
24565 +pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
24567 +if test -z "$F77" || test "X$F77" = "Xno"; then
24568 + _lt_disable_F77=yes
24570 +popdef([AC_MSG_ERROR])
24574 - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24575 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24578 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24579 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24582 +dnl aclocal-1.4 backwards compatibility:
24583 +dnl AC_DEFUN([_LT_PROG_F77], [])
24586 - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24587 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
24590 -*** Warning: The releases 2.8.* of the GNU linker cannot reliably
24591 -*** create shared libraries on Solaris systems. Therefore, libtool
24592 -*** is disabling shared libraries support. We urge you to upgrade GNU
24593 -*** binutils to release 2.9.1 or newer. Another option is to modify
24594 -*** your PATH or compiler configuration so that the native linker is
24595 -*** used, and then restart.
24596 +# _LT_LANG_F77_CONFIG([TAG])
24597 +# --------------------------
24598 +# Ensure that the configuration variables for a Fortran 77 compiler are
24599 +# suitably defined. These variables are subsequently used by _LT_CONFIG
24600 +# to write the compiler configuration to `libtool'.
24601 +m4_defun([_LT_LANG_F77_CONFIG],
24602 +[AC_REQUIRE([_LT_PROG_F77])dnl
24603 +AC_LANG_PUSH(Fortran 77)
24606 - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24607 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24608 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24610 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
24613 +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
24614 +_LT_TAGVAR(allow_undefined_flag, $1)=
24615 +_LT_TAGVAR(always_export_symbols, $1)=no
24616 +_LT_TAGVAR(archive_expsym_cmds, $1)=
24617 +_LT_TAGVAR(export_dynamic_flag_spec, $1)=
24618 +_LT_TAGVAR(hardcode_direct, $1)=no
24619 +_LT_TAGVAR(hardcode_direct_absolute, $1)=no
24620 +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
24621 +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
24622 +_LT_TAGVAR(hardcode_libdir_separator, $1)=
24623 +_LT_TAGVAR(hardcode_minus_L, $1)=no
24624 +_LT_TAGVAR(hardcode_automatic, $1)=no
24625 +_LT_TAGVAR(inherit_rpath, $1)=no
24626 +_LT_TAGVAR(module_cmds, $1)=
24627 +_LT_TAGVAR(module_expsym_cmds, $1)=
24628 +_LT_TAGVAR(link_all_deplibs, $1)=unknown
24629 +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
24630 +_LT_TAGVAR(no_undefined_flag, $1)=
24631 +_LT_TAGVAR(whole_archive_flag_spec, $1)=
24632 +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
24634 - sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24635 - case `$LD -v 2>&1` in
24636 - *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
24637 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
24638 - cat <<_LT_EOF 1>&2
24639 +# Source file extension for f77 test sources.
24642 -*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24643 -*** reliably create shared libraries on SCO systems. Therefore, libtool
24644 -*** is disabling shared libraries support. We urge you to upgrade GNU
24645 -*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24646 -*** your PATH or compiler configuration so that the native linker is
24647 -*** used, and then restart.
24648 +# Object file extension for compiled f77 test sources.
24650 +_LT_TAGVAR(objext, $1)=$objext
24655 - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24656 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24657 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24658 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24660 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
24665 +# No sense in running all these tests if we already determined that
24666 +# the F77 compiler isn't working. Some variables (like enable_shared)
24667 +# are currently assumed to apply to all compilers on this platform,
24668 +# and will be corrupted by setting them based on a non-working compiler.
24669 +if test "$_lt_disable_F77" != yes; then
24670 + # Code to be used in simple compile tests
24671 + lt_simple_compile_test_code="\
24678 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24680 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
24681 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
24683 + # Code to be used in simple link tests
24684 + lt_simple_link_test_code="\
24690 - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24691 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24692 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24694 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
24698 + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
24701 - if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
24703 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
24704 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
24705 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
24708 - # PORTME fill in a description of your system's linker (not GNU ld)
24711 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
24712 - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
24713 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
24714 - # Note: this linker hardcodes the directories in LIBPATH if there
24715 - # are no directories specified by -L.
24716 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
24717 - if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24718 - # Neither direct hardcoding nor static linking is supported with a
24719 - # broken collect2.
24720 - _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
24723 + # save warnings/boilerplate of simple test code
24724 + _LT_COMPILER_BOILERPLATE
24725 + _LT_LINKER_BOILERPLATE
24727 + # Allow CC to be a program name with arguments.
24732 + _LT_TAGVAR(compiler, $1)=$CC
24733 + _LT_CC_BASENAME([$compiler])
24735 + if test -n "$compiler"; then
24736 + AC_MSG_CHECKING([if libtool supports shared libraries])
24737 + AC_MSG_RESULT([$can_build_shared])
24740 - if test "$host_cpu" = ia64; then
24741 - # On IA64, the linker does run time linking by default, so we don't
24742 - # have to do anything special.
24743 - aix_use_runtimelinking=no
24744 - exp_sym_flag='-Bexport'
24747 - # If we're using GNU nm, then we don't want the "-C" option.
24748 - # -C means demangle to AIX nm, but means don't demangle with GNU nm
24749 - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24750 - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
24752 - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
24753 + AC_MSG_CHECKING([whether to build shared libraries])
24754 + test "$can_build_shared" = "no" && enable_shared=no
24756 + # On AIX, shared libraries and static libraries use the same namespace, and
24757 + # are all built from PIC.
24760 + test "$enable_shared" = yes && enable_static=no
24761 + if test -n "$RANLIB"; then
24762 + archive_cmds="$archive_cmds~\$RANLIB \$lib"
24763 + postinstall_cmds='$RANLIB $lib'
24767 + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
24768 + test "$enable_shared" = yes && enable_static=no
24770 - aix_use_runtimelinking=no
24773 + AC_MSG_RESULT([$enable_shared])
24775 - # Test if we are trying to use run time linking or normal
24776 - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24777 - # need to do runtime linking.
24778 - case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
24779 - for ld_flag in $LDFLAGS; do
24780 - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24781 - aix_use_runtimelinking=yes
24787 + AC_MSG_CHECKING([whether to build static libraries])
24788 + # Make sure either enable_shared or enable_static is yes.
24789 + test "$enable_shared" = yes || enable_static=yes
24790 + AC_MSG_RESULT([$enable_static])
24792 + _LT_TAGVAR(GCC, $1)="$G77"
24793 + _LT_TAGVAR(LD, $1)="$LD"
24795 + ## CAVEAT EMPTOR:
24796 + ## There is no encapsulation within the following macros, do not change
24797 + ## the running order or otherwise move them around unless you know exactly
24798 + ## what you are doing...
24799 + _LT_COMPILER_PIC($1)
24800 + _LT_COMPILER_C_O($1)
24801 + _LT_COMPILER_FILE_LOCKS($1)
24802 + _LT_LINKER_SHLIBS($1)
24803 + _LT_SYS_DYNAMIC_LINKER($1)
24804 + _LT_LINKER_HARDCODE_LIBPATH($1)
24807 + fi # test -n "$compiler"
24811 +fi # test "$_lt_disable_F77" != yes
24813 - exp_sym_flag='-bexport'
24814 - no_entry_flag='-bnoentry'
24817 +])# _LT_LANG_F77_CONFIG
24819 - # When large executables or shared objects are built, AIX ld can
24820 - # have problems creating the table of contents. If linking a library
24821 - # or program results in "error TOC overflow" add -mminimal-toc to
24822 - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24823 - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24825 - _LT_AC_TAGVAR(archive_cmds, $1)=''
24826 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
24827 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
24828 - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
24831 +# Since AC_PROG_FC is broken, in that it returns the empty string
24832 +# if there is no fortran compiler, we have our own version here.
24833 +m4_defun([_LT_PROG_FC],
24835 +pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
24837 +if test -z "$FC" || test "X$FC" = "Xno"; then
24838 + _lt_disable_FC=yes
24840 +popdef([AC_MSG_ERROR])
24843 - if test "$GCC" = yes; then
24844 - case $host_os in aix4.[[012]]|aix4.[[012]].*)
24845 - # We only want to do this on AIX 4.2 and lower, the check
24846 - # below for broken collect2 doesn't work under 4.3+
24847 - collect2name=`${CC} -print-prog-name=collect2`
24848 - if test -f "$collect2name" && \
24849 - strings "$collect2name" | grep resolve_lib_name >/dev/null
24851 - # We have reworked collect2
24852 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
24854 - # We have old collect2
24855 - _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
24856 - # It fails to find uninstalled libraries when the uninstalled
24857 - # path is not listed in the libpath. Setting hardcode_minus_L
24858 - # to unsupported forces relinking
24859 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
24860 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
24861 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
24865 - shared_flag='-shared'
24866 - if test "$aix_use_runtimelinking" = yes; then
24867 - shared_flag="$shared_flag "'${wl}-G'
24871 - if test "$host_cpu" = ia64; then
24872 - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24873 - # chokes on -Wl,-G. The following line is correct:
24876 - if test "$aix_use_runtimelinking" = yes; then
24877 - shared_flag='${wl}-G'
24879 - shared_flag='${wl}-bM:SRE'
24883 +dnl aclocal-1.4 backwards compatibility:
24884 +dnl AC_DEFUN([_LT_PROG_FC], [])
24886 - # It seems that -bexpall does not export symbols beginning with
24887 - # underscore (_), so it is better to generate a list of symbols to export.
24888 - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
24889 - if test "$aix_use_runtimelinking" = yes; then
24890 - # Warning - without using the other runtime loading flags (-brtl),
24891 - # -berok will link without error, but may produce a broken library.
24892 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
24893 - # Determine the default libpath from the value encoded in an empty executable.
24894 - _LT_AC_SYS_LIBPATH_AIX
24895 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
24896 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
24898 - if test "$host_cpu" = ia64; then
24899 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
24900 - _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
24901 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
24903 - # Determine the default libpath from the value encoded in an empty executable.
24904 - _LT_AC_SYS_LIBPATH_AIX
24905 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
24906 - # Warning - without using the other run time loading flags,
24907 - # -berok will link without error, but may produce a broken library.
24908 - _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
24909 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
24910 - # Exported symbols can be pulled into shared objects from archives
24911 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
24912 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
24913 - # This is similar to how AIX traditionally builds its shared libraries.
24914 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
24920 - _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
24921 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
24922 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
24923 - # see comment about different semantics on the GNU ld section
24924 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
24926 +# _LT_LANG_FC_CONFIG([TAG])
24927 +# -------------------------
24928 +# Ensure that the configuration variables for a Fortran compiler are
24929 +# suitably defined. These variables are subsequently used by _LT_CONFIG
24930 +# to write the compiler configuration to `libtool'.
24931 +m4_defun([_LT_LANG_FC_CONFIG],
24932 +[AC_REQUIRE([_LT_PROG_FC])dnl
24933 +AC_LANG_PUSH(Fortran)
24935 +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
24936 +_LT_TAGVAR(allow_undefined_flag, $1)=
24937 +_LT_TAGVAR(always_export_symbols, $1)=no
24938 +_LT_TAGVAR(archive_expsym_cmds, $1)=
24939 +_LT_TAGVAR(export_dynamic_flag_spec, $1)=
24940 +_LT_TAGVAR(hardcode_direct, $1)=no
24941 +_LT_TAGVAR(hardcode_direct_absolute, $1)=no
24942 +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
24943 +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
24944 +_LT_TAGVAR(hardcode_libdir_separator, $1)=
24945 +_LT_TAGVAR(hardcode_minus_L, $1)=no
24946 +_LT_TAGVAR(hardcode_automatic, $1)=no
24947 +_LT_TAGVAR(inherit_rpath, $1)=no
24948 +_LT_TAGVAR(module_cmds, $1)=
24949 +_LT_TAGVAR(module_expsym_cmds, $1)=
24950 +_LT_TAGVAR(link_all_deplibs, $1)=unknown
24951 +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
24952 +_LT_TAGVAR(no_undefined_flag, $1)=
24953 +_LT_TAGVAR(whole_archive_flag_spec, $1)=
24954 +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
24957 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
24959 +# Source file extension for fc test sources.
24960 +ac_ext=${ac_fc_srcext-f}
24962 - cygwin* | mingw* | pw32*)
24963 - # When not using gcc, we currently assume that we are using
24964 - # Microsoft Visual C++.
24965 - # hardcode_libdir_flag_spec is actually meaningless, as there is
24966 - # no search path for DLLs.
24967 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
24968 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
24969 - # Tell ltmain to make .lib files, not .a files.
24971 - # Tell ltmain to make .dll files, not .so files.
24972 - shrext_cmds=".dll"
24973 - # FIXME: Setting linknames here is a bad hack.
24974 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
24975 - # The linker will automatically build a .lib file if we build a DLL.
24976 - _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
24977 - # FIXME: Should let the user specify the lib program.
24978 - _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
24979 - _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
24980 - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
24982 +# Object file extension for compiled fc test sources.
24984 +_LT_TAGVAR(objext, $1)=$objext
24986 - darwin* | rhapsody*)
24988 - rhapsody* | darwin1.[[012]])
24989 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
24991 - *) # Darwin 1.3 on
24992 - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24993 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24995 - case ${MACOSX_DEPLOYMENT_TARGET} in
24997 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25000 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
25006 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
25007 - _LT_AC_TAGVAR(hardcode_direct, $1)=no
25008 - _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
25009 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
25010 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
25011 - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
25012 - if test "$GCC" = yes ; then
25013 - output_verbose_link_cmd='echo'
25014 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
25015 - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
25016 - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
25017 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
25018 - _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
25020 - case $cc_basename in
25022 - output_verbose_link_cmd='echo'
25023 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
25024 - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
25025 - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
25026 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
25027 - _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
25030 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
25035 +# No sense in running all these tests if we already determined that
25036 +# the FC compiler isn't working. Some variables (like enable_shared)
25037 +# are currently assumed to apply to all compilers on this platform,
25038 +# and will be corrupted by setting them based on a non-working compiler.
25039 +if test "$_lt_disable_FC" != yes; then
25040 + # Code to be used in simple compile tests
25041 + lt_simple_compile_test_code="\
25048 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25049 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
25050 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
25052 + # Code to be used in simple link tests
25053 + lt_simple_link_test_code="\
25059 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
25061 + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
25064 - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
25065 - # support. Future versions do this automatically, but an explicit c++rt0.o
25066 - # does not break anything, and helps significantly (at the cost of a little
25069 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
25070 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
25071 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
25072 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
25074 + # save warnings/boilerplate of simple test code
25075 + _LT_COMPILER_BOILERPLATE
25076 + _LT_LINKER_BOILERPLATE
25078 + # Allow CC to be a program name with arguments.
25083 + GCC=$ac_cv_fc_compiler_gnu
25085 - # Unfortunately, older versions of FreeBSD 2 do not have this feature.
25087 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25088 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
25089 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
25090 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
25092 + _LT_TAGVAR(compiler, $1)=$CC
25093 + _LT_CC_BASENAME([$compiler])
25095 - # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
25096 - freebsd* | kfreebsd*-gnu | dragonfly*)
25097 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
25098 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
25099 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
25100 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
25102 + if test -n "$compiler"; then
25103 + AC_MSG_CHECKING([if libtool supports shared libraries])
25104 + AC_MSG_RESULT([$can_build_shared])
25107 - if test "$GCC" = yes; then
25108 - _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
25110 - _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
25112 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
25113 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
25114 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
25115 + AC_MSG_CHECKING([whether to build shared libraries])
25116 + test "$can_build_shared" = "no" && enable_shared=no
25118 - # hardcode_minus_L: Not really in the search PATH,
25119 - # but as the default location of the library.
25120 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
25121 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
25123 + # On AIX, shared libraries and static libraries use the same namespace, and
25124 + # are all built from PIC.
25127 + test "$enable_shared" = yes && enable_static=no
25128 + if test -n "$RANLIB"; then
25129 + archive_cmds="$archive_cmds~\$RANLIB \$lib"
25130 + postinstall_cmds='$RANLIB $lib'
25134 + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
25135 + test "$enable_shared" = yes && enable_static=no
25139 + AC_MSG_RESULT([$enable_shared])
25142 - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25143 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25145 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
25147 - if test "$with_gnu_ld" = no; then
25148 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
25149 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
25150 + AC_MSG_CHECKING([whether to build static libraries])
25151 + # Make sure either enable_shared or enable_static is yes.
25152 + test "$enable_shared" = yes || enable_static=yes
25153 + AC_MSG_RESULT([$enable_static])
25155 + _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
25156 + _LT_TAGVAR(LD, $1)="$LD"
25158 + ## CAVEAT EMPTOR:
25159 + ## There is no encapsulation within the following macros, do not change
25160 + ## the running order or otherwise move them around unless you know exactly
25161 + ## what you are doing...
25162 + _LT_SYS_HIDDEN_LIBDEPS($1)
25163 + _LT_COMPILER_PIC($1)
25164 + _LT_COMPILER_C_O($1)
25165 + _LT_COMPILER_FILE_LOCKS($1)
25166 + _LT_LINKER_SHLIBS($1)
25167 + _LT_SYS_DYNAMIC_LINKER($1)
25168 + _LT_LINKER_HARDCODE_LIBPATH($1)
25171 + fi # test -n "$compiler"
25175 +fi # test "$_lt_disable_FC" != yes
25177 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
25178 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
25180 +])# _LT_LANG_FC_CONFIG
25182 - # hardcode_minus_L: Not really in the search PATH,
25183 - # but as the default location of the library.
25184 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
25189 - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25190 - case $host_cpu in
25192 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25195 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25198 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25202 - case $host_cpu in
25204 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25207 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25210 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25214 - if test "$with_gnu_ld" = no; then
25215 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
25216 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
25217 +# _LT_LANG_GCJ_CONFIG([TAG])
25218 +# --------------------------
25219 +# Ensure that the configuration variables for the GNU Java Compiler compiler
25220 +# are suitably defined. These variables are subsequently used by _LT_CONFIG
25221 +# to write the compiler configuration to `libtool'.
25222 +m4_defun([_LT_LANG_GCJ_CONFIG],
25223 +[AC_REQUIRE([LT_PROG_GCJ])dnl
25226 - case $host_cpu in
25228 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
25229 - _LT_AC_TAGVAR(hardcode_direct, $1)=no
25230 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
25233 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
25234 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
25235 +# Source file extension for Java test sources.
25238 - # hardcode_minus_L: Not really in the search PATH,
25239 - # but as the default location of the library.
25240 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
25245 +# Object file extension for compiled Java test sources.
25247 +_LT_TAGVAR(objext, $1)=$objext
25249 - irix5* | irix6* | nonstopux*)
25250 - if test "$GCC" = yes; then
25251 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
25253 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
25254 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
25256 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
25257 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
25258 - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
25260 +# Code to be used in simple compile tests
25261 +lt_simple_compile_test_code="class foo {}"
25264 - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25265 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
25267 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
25269 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
25270 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
25271 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
25273 +# Code to be used in simple link tests
25274 +lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
25277 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25278 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
25279 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
25280 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
25281 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
25283 +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
25286 +# save warnings/boilerplate of simple test code
25287 +_LT_COMPILER_BOILERPLATE
25288 +_LT_LINKER_BOILERPLATE
25290 +# Allow CC to be a program name with arguments.
25296 +_LT_TAGVAR(compiler, $1)=$CC
25297 +_LT_TAGVAR(LD, $1)="$LD"
25298 +_LT_CC_BASENAME([$compiler])
25301 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
25302 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
25303 - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25304 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25305 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
25306 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
25307 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
25310 - openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
25311 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25312 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
25315 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25316 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
25321 +# GCJ did not exist at the time GCC didn't implicitly link libc in.
25322 +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
25325 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
25326 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
25327 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
25328 - _LT_AC_TAGVAR(archive_cmds, $1)='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
25329 - _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
25331 +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
25334 - if test "$GCC" = yes; then
25335 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
25336 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
25338 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
25339 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
25341 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
25342 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
25345 +## There is no encapsulation within the following macros, do not change
25346 +## the running order or otherwise move them around unless you know exactly
25347 +## what you are doing...
25348 +if test -n "$compiler"; then
25349 + _LT_COMPILER_NO_RTTI($1)
25350 + _LT_COMPILER_PIC($1)
25351 + _LT_COMPILER_C_O($1)
25352 + _LT_COMPILER_FILE_LOCKS($1)
25353 + _LT_LINKER_SHLIBS($1)
25354 + _LT_LINKER_HARDCODE_LIBPATH($1)
25356 - osf4* | osf5*) # as osf3* with the addition of -msym flag
25357 - if test "$GCC" = yes; then
25358 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
25359 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
25360 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
25362 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
25363 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
25364 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
25365 - $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
25369 - # Both c and cxx compiler support -rpath directly
25370 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
25372 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
25377 - _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
25378 - if test "$GCC" = yes; then
25380 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25381 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25382 - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
25385 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
25386 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25387 - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
25389 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
25390 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
25392 - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
25394 - # The compiler driver will combine linker options so we
25395 - # cannot just pass the convience library names through
25396 - # without $wl, iff we do not link with $LD.
25397 - # Luckily, gcc supports the same syntax we need for Sun Studio.
25398 - # Supported since Solaris 2.6 (maybe 2.5.1?)
25401 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
25403 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
25406 - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
25410 +])# _LT_LANG_GCJ_CONFIG
25413 - if test "x$host_vendor" = xsequent; then
25414 - # Use $CC to link under sequent, because it throws in some extra .o
25415 - # files that make .init and .fini sections work.
25416 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25418 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25420 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
25421 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
25422 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
25423 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
25427 - case $host_vendor in
25429 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25430 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
25433 - ## LD is ld it makes a PLAMLIB
25434 - ## CC just makes a GrossModule.
25435 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25436 - _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
25437 - _LT_AC_TAGVAR(hardcode_direct, $1)=no
25440 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25441 - _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
25444 - runpath_var='LD_RUN_PATH'
25445 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
25447 +# _LT_LANG_RC_CONFIG([TAG])
25448 +# -------------------------
25449 +# Ensure that the configuration variables for the Windows resource compiler
25450 +# are suitably defined. These variables are subsequently used by _LT_CONFIG
25451 +# to write the compiler configuration to `libtool'.
25452 +m4_defun([_LT_LANG_RC_CONFIG],
25453 +[AC_REQUIRE([LT_PROG_RC])dnl
25457 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25458 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
25459 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
25461 +# Source file extension for RC test sources.
25465 - if test -d /usr/nec; then
25466 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25467 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
25468 - runpath_var=LD_RUN_PATH
25469 - hardcode_runpath_var=yes
25470 - _LT_AC_TAGVAR(ld_shlibs, $1)=yes
25473 +# Object file extension for compiled RC test sources.
25475 +_LT_TAGVAR(objext, $1)=$objext
25477 - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7*)
25478 - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
25479 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
25480 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
25481 - runpath_var='LD_RUN_PATH'
25482 +# Code to be used in simple compile tests
25483 +lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
25485 - if test "$GCC" = yes; then
25486 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25487 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25489 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25490 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25493 +# Code to be used in simple link tests
25494 +lt_simple_link_test_code="$lt_simple_compile_test_code"
25496 - sysv5* | sco3.2v5* | sco5v6*)
25497 - # Note: We can NOT use -z defs as we might desire, because we do not
25498 - # link with -lc, and that would cause any symbols used from libc to
25499 - # always be unresolved, which means just about no library would
25500 - # ever link correctly. If we're not using GNU ld we use -z text
25501 - # though, which does catch some bad symbols but isn't as heavy-handed
25503 - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
25504 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
25505 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
25506 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
25507 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25508 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
25509 - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
25510 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
25511 - runpath_var='LD_RUN_PATH'
25512 +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
25515 - if test "$GCC" = yes; then
25516 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25517 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25519 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25520 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25523 +# save warnings/boilerplate of simple test code
25524 +_LT_COMPILER_BOILERPLATE
25525 +_LT_LINKER_BOILERPLATE
25528 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25529 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
25530 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
25532 +# Allow CC to be a program name with arguments.
25536 +CC=${RC-"windres"}
25538 +_LT_TAGVAR(compiler, $1)=$CC
25539 +_LT_CC_BASENAME([$compiler])
25540 +_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
25543 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
25548 -AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
25549 -test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
25550 +if test -n "$compiler"; then
25556 -# Do we need to explicitly link libc?
25558 -case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
25560 - # Assume -lc should be added
25561 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
25565 +])# _LT_LANG_RC_CONFIG
25567 - if test "$enable_shared" = yes && test "$GCC" = yes; then
25568 - case $_LT_AC_TAGVAR(archive_cmds, $1) in
25570 - # FIXME: we may have to deal with multi-command sequences.
25573 - # Test whether the compiler implicitly links with -lc since on some
25574 - # systems, -lgcc has to come before -lc. If gcc already passes -lc
25575 - # to ld, don't add -lc before -lgcc.
25576 - AC_MSG_CHECKING([whether -lc should be explicitly linked in])
25578 - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25580 - if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
25583 - libobjs=conftest.$ac_objext
25585 - wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
25586 - pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
25587 - compiler_flags=-v
25592 - lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
25593 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=
25594 - if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
25596 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
25598 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
25600 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
25602 - cat conftest.err 1>&5
25605 - AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
25611 -])# AC_LIBTOOL_PROG_LD_SHLIBS
25614 +AC_DEFUN([LT_PROG_GCJ],
25615 +[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
25616 + [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
25617 + [AC_CHECK_TOOL(GCJ, gcj,)
25618 + test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
25619 + AC_SUBST(GCJFLAGS)])])[]dnl
25623 +AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
25624 +dnl aclocal-1.4 backwards compatibility:
25625 +dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
25627 -# _LT_AC_FILE_LTDLL_C
25628 -# -------------------
25629 -# Be careful that the start marker always follows a newline.
25630 -AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
25631 -# /* ltdll.c starts here */
25632 -# #define WIN32_LEAN_AND_MEAN
25633 -# #include <windows.h>
25634 -# #undef WIN32_LEAN_AND_MEAN
25635 -# #include <stdio.h>
25637 -# #ifndef __CYGWIN__
25638 -# # ifdef __CYGWIN32__
25639 -# # define __CYGWIN__ __CYGWIN32__
25643 -# #ifdef __cplusplus
25646 -# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
25647 -# #ifdef __cplusplus
25651 -# #ifdef __CYGWIN__
25652 -# #include <cygwin/cygwin_dll.h>
25653 -# DECLARE_CYGWIN_DLL( DllMain );
25655 -# HINSTANCE __hDllInstance_base;
25658 -# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
25660 -# __hDllInstance_base = hInst;
25663 -# /* ltdll.c ends here */
25664 -])# _LT_AC_FILE_LTDLL_C
25668 +AC_DEFUN([LT_PROG_RC],
25669 +[AC_CHECK_TOOL(RC, windres,)
25672 -# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
25673 -# ---------------------------------
25674 -AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
25676 +AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
25677 +dnl aclocal-1.4 backwards compatibility:
25678 +dnl AC_DEFUN([LT_AC_PROG_RC], [])
25682 -AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
25683 -AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
25684 -AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
25685 -AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
25686 -AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
25687 -AC_DEFUN([AM_PROG_LD], [AC_PROG_LD])
25688 -AC_DEFUN([AM_PROG_NM], [AC_PROG_NM])
25690 -# This is just to silence aclocal about the macro not being used
25691 -ifelse([AC_DISABLE_FAST_INSTALL])
25693 -AC_DEFUN([LT_AC_PROG_GCJ],
25694 -[AC_CHECK_TOOL(GCJ, gcj, no)
25695 - test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
25696 - AC_SUBST(GCJFLAGS)
25699 +# If we don't have a new enough Autoconf to choose the best grep
25700 +# available, choose the one first in the user's PATH.
25701 +m4_defun([_LT_DECL_EGREP],
25702 +[AC_REQUIRE([AC_PROG_EGREP])dnl
25703 +AC_REQUIRE([AC_PROG_FGREP])dnl
25704 +test -z "$GREP" && GREP=grep
25705 +_LT_DECL([], [GREP], [1], [A grep program that handles long lines])
25706 +_LT_DECL([], [EGREP], [1], [An ERE matcher])
25707 +_LT_DECL([], [FGREP], [1], [A literal string matcher])
25708 +dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
25712 -AC_DEFUN([LT_AC_PROG_RC],
25713 -[AC_CHECK_TOOL(RC, windres, no)
25718 +# Check for a fully-functional sed program, that truncates
25719 +# as few characters as possible. Prefer GNU sed if found.
25720 +m4_defun([_LT_DECL_SED],
25722 +test -z "$SED" && SED=sed
25723 +Xsed="$SED -e 1s/^X//"
25724 +_LT_DECL([], [SED], [1], [A sed program that does not truncate output])
25725 +_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
25726 + [Sed that helps us avoid accidentally triggering echo(1) options like -n])
25729 +m4_ifndef([AC_PROG_SED], [
25730 ############################################################
25731 # NOTE: This macro has been submitted for inclusion into #
25732 # GNU Autoconf as AC_PROG_SED. When it is available in #
25733 # a released version of Autoconf we should remove this #
25734 # macro and use it instead. #
25735 ############################################################
25738 -# Check for a fully-functional sed program, that truncates
25739 -# as few characters as possible. Prefer GNU sed if found.
25740 -AC_DEFUN([LT_AC_PROG_SED],
25742 +m4_defun([AC_PROG_SED],
25743 [AC_MSG_CHECKING([for a sed that does not truncate output])
25744 AC_CACHE_VAL(lt_cv_path_SED,
25745 [# Loop through the user's path and test for sed and gsed.
25746 @@ -6435,6 +7010,7 @@ do
25753 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
25754 @@ -6467,5 +7043,268 @@ for lt_ac_sed in $lt_ac_sed_list /usr/xp
25757 SED=$lt_cv_path_SED
25759 AC_MSG_RESULT([$SED])
25764 +AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
25765 +dnl aclocal-1.4 backwards compatibility:
25766 +dnl AC_DEFUN([LT_AC_PROG_SED], [])
25769 +# _LT_CHECK_SHELL_FEATURES
25770 +# ------------------------
25771 +# Find out whether the shell is Bourne or XSI compatible,
25772 +# or has some other useful features.
25773 +m4_defun([_LT_CHECK_SHELL_FEATURES],
25774 +[AC_MSG_CHECKING([whether the shell understands some XSI constructs])
25775 +# Try some XSI features
25777 +( _lt_dummy="a/b/c"
25778 + test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
25780 + && eval 'test $(( 1 + 1 )) -eq 2 \
25781 + && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
25783 +AC_MSG_RESULT([$xsi_shell])
25784 +_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
25786 +AC_MSG_CHECKING([whether the shell understands "+="])
25787 +lt_shell_append=no
25788 +( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
25789 + >/dev/null 2>&1 \
25790 + && lt_shell_append=yes
25791 +AC_MSG_RESULT([$lt_shell_append])
25792 +_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
25794 +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25799 +_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
25801 +# test EBCDIC or ASCII
25802 +case `echo X|tr X '\101'` in
25803 + A) # ASCII based system
25804 + # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
25805 + lt_SP2NL='tr \040 \012'
25806 + lt_NL2SP='tr \015\012 \040\040'
25808 + *) # EBCDIC based system
25809 + lt_SP2NL='tr \100 \n'
25810 + lt_NL2SP='tr \r\n \100\100'
25813 +_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
25814 +_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
25815 +])# _LT_CHECK_SHELL_FEATURES
25818 +# _LT_PROG_XSI_SHELLFNS
25819 +# ---------------------
25820 +# Bourne and XSI compatible variants of some useful shell functions.
25821 +m4_defun([_LT_PROG_XSI_SHELLFNS],
25822 +[case $xsi_shell in
25824 + cat << \_LT_EOF >> "$cfgfile"
25826 +# func_dirname file append nondir_replacement
25827 +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
25828 +# otherwise set result to NONDIR_REPLACEMENT.
25832 + */*) func_dirname_result="${1%/*}${2}" ;;
25833 + * ) func_dirname_result="${3}" ;;
25837 +# func_basename file
25840 + func_basename_result="${1##*/}"
25843 +# func_dirname_and_basename file append nondir_replacement
25844 +# perform func_basename and func_dirname in a single function
25846 +# dirname: Compute the dirname of FILE. If nonempty,
25847 +# add APPEND to the result, otherwise set result
25848 +# to NONDIR_REPLACEMENT.
25849 +# value returned in "$func_dirname_result"
25850 +# basename: Compute filename of FILE.
25851 +# value retuned in "$func_basename_result"
25852 +# Implementation must be kept synchronized with func_dirname
25853 +# and func_basename. For efficiency, we do not delegate to
25854 +# those functions but instead duplicate the functionality here.
25855 +func_dirname_and_basename ()
25858 + */*) func_dirname_result="${1%/*}${2}" ;;
25859 + * ) func_dirname_result="${3}" ;;
25861 + func_basename_result="${1##*/}"
25864 +# func_stripname prefix suffix name
25865 +# strip PREFIX and SUFFIX off of NAME.
25866 +# PREFIX and SUFFIX must not contain globbing or regex special
25867 +# characters, hashes, percent signs, but SUFFIX may contain a leading
25868 +# dot (in which case that matches only a dot).
25871 + # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
25872 + # positional parameters, so assign one to ordinary parameter first.
25873 + func_stripname_result=${3}
25874 + func_stripname_result=${func_stripname_result#"${1}"}
25875 + func_stripname_result=${func_stripname_result%"${2}"}
25881 + func_opt_split_opt=${1%%=*}
25882 + func_opt_split_arg=${1#*=}
25885 +# func_lo2o object
25889 + *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
25890 + *) func_lo2o_result=${1} ;;
25894 +# func_xform libobj-or-source
25897 + func_xform_result=${1%.*}.lo
25900 +# func_arith arithmetic-term...
25903 + func_arith_result=$(( $[*] ))
25907 +# STRING may not start with a hyphen.
25910 + func_len_result=${#1}
25915 + *) # Bourne compatible functions.
25916 + cat << \_LT_EOF >> "$cfgfile"
25918 +# func_dirname file append nondir_replacement
25919 +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
25920 +# otherwise set result to NONDIR_REPLACEMENT.
25923 + # Extract subdirectory from the argument.
25924 + func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
25925 + if test "X$func_dirname_result" = "X${1}"; then
25926 + func_dirname_result="${3}"
25928 + func_dirname_result="$func_dirname_result${2}"
25932 +# func_basename file
25935 + func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
25938 +dnl func_dirname_and_basename
25939 +dnl A portable version of this function is already defined in general.m4sh
25940 +dnl so there is no need for it here.
25942 +# func_stripname prefix suffix name
25943 +# strip PREFIX and SUFFIX off of NAME.
25944 +# PREFIX and SUFFIX must not contain globbing or regex special
25945 +# characters, hashes, percent signs, but SUFFIX may contain a leading
25946 +# dot (in which case that matches only a dot).
25947 +# func_strip_suffix prefix name
25951 + .*) func_stripname_result=`$ECHO "X${3}" \
25952 + | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
25953 + *) func_stripname_result=`$ECHO "X${3}" \
25954 + | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
25959 +my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
25960 +my_sed_long_arg='1s/^-[[^=]]*=//'
25965 + func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
25966 + func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
25969 +# func_lo2o object
25972 + func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
25975 +# func_xform libobj-or-source
25978 + func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
25981 +# func_arith arithmetic-term...
25984 + func_arith_result=`expr "$[@]"`
25988 +# STRING may not start with a hyphen.
25991 + func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
25997 +case $lt_shell_append in
25999 + cat << \_LT_EOF >> "$cfgfile"
26001 +# func_append var value
26002 +# Append VALUE to the end of shell variable VAR.
26005 + eval "$[1]+=\$[2]"
26010 + cat << \_LT_EOF >> "$cfgfile"
26012 +# func_append var value
26013 +# Append VALUE to the end of shell variable VAR.
26016 + eval "$[1]=\$$[1]\$[2]"