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, 2007
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 51 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,1977 +196,2538 @@
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'
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_REQUIRE([LT_AC_PROG_SED])dnl
561 -ac_outfile=conftest.$ac_objext
562 -echo "$lt_simple_compile_test_code" >conftest.$ac_ext
563 -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
564 -_lt_compiler_boilerplate=`cat conftest.err`
566 -])# _LT_COMPILER_BOILERPLATE
568 +# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
569 +# --------------------------------------------------------
570 +m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
573 +# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
574 +# ------------------------------------------------
575 +m4_define([lt_decl_tag_varnames],
576 +[_lt_decl_filter([tagged?], [yes], $@)])
579 +# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
580 +# ---------------------------------------------------------
581 +m4_define([_lt_decl_filter],
583 + [0], [m4_fatal([$0: too few arguments: $#])],
584 + [1], [m4_fatal([$0: too few arguments: $#: $1])],
585 + [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
586 + [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
587 + [lt_dict_filter([lt_decl_dict], $@)])[]dnl
590 -# _LT_LINKER_BOILERPLATE
591 -# ----------------------
592 -# Check for linker boilerplate output or warnings with
593 -# the simple link test code.
594 -AC_DEFUN([_LT_LINKER_BOILERPLATE],
595 -[AC_REQUIRE([LT_AC_PROG_SED])dnl
596 -ac_outfile=conftest.$ac_objext
597 -echo "$lt_simple_link_test_code" >conftest.$ac_ext
598 -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
599 -_lt_linker_boilerplate=`cat conftest.err`
601 -])# _LT_LINKER_BOILERPLATE
603 +# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
604 +# --------------------------------------------------
605 +m4_define([lt_decl_quote_varnames],
606 +[_lt_decl_filter([value], [1], $@)])
609 +# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
610 +# ---------------------------------------------------
611 +m4_define([lt_decl_dquote_varnames],
612 +[_lt_decl_filter([value], [2], $@)])
615 +# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
616 +# ---------------------------------------------------
617 +m4_define([lt_decl_varnames_tagged],
618 +[_$0(m4_quote(m4_default([$1], [[, ]])),
619 + m4_quote(m4_if([$2], [],
620 + m4_quote(lt_decl_tag_varnames),
621 + m4_quote(m4_shift($@)))),
622 + m4_split(m4_normalize(m4_quote(_LT_TAGS))))])
623 +m4_define([_lt_decl_varnames_tagged], [lt_combine([$1], [$2], [_], $3)])
626 +# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
627 +# ------------------------------------------------
628 +m4_define([lt_decl_all_varnames],
629 +[_$0(m4_quote(m4_default([$1], [[, ]])),
631 + m4_quote(lt_decl_varnames),
632 + m4_quote(m4_shift($@))))[]dnl
634 +m4_define([_lt_decl_all_varnames],
635 +[lt_join($@, lt_decl_varnames_tagged([$1],
636 + lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
639 -# _LT_AC_SYS_LIBPATH_AIX
640 -# ----------------------
641 -# Links a minimal program and checks the executable
642 -# for the system default hardcoded library path. In most cases,
643 -# this is /usr/lib:/lib, but when the MPI compilers are used
644 -# the location of the communication and MPI libs are included too.
645 -# If we don't find anything, use the default library path according
646 -# to the aix ld manual.
647 -AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
648 -[AC_REQUIRE([LT_AC_PROG_SED])dnl
649 -AC_LINK_IFELSE(AC_LANG_PROGRAM,[
650 -lt_aix_libpath_sed='
651 - /Import File Strings/,/^$/ {
657 -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
658 -# Check for a 64-bit object if we didn't find anything.
659 -if test -z "$aix_libpath"; then
660 - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
662 -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
663 -])# _LT_AC_SYS_LIBPATH_AIX
665 +# _LT_CONFIG_STATUS_DECLARE([VARNAME])
666 +# ------------------------------------
667 +# Quote a variable value, and forward it to `config.status' so that its
668 +# declaration there will have the same value as in `configure'. VARNAME
669 +# must have a single quote delimited value for this to work.
670 +m4_define([_LT_CONFIG_STATUS_DECLARE],
671 +[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
673 -# _LT_AC_SHELL_INIT(ARG)
674 -# ----------------------
675 -AC_DEFUN([_LT_AC_SHELL_INIT],
676 -[ifdef([AC_DIVERSION_NOTICE],
677 - [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
678 - [AC_DIVERT_PUSH(NOTICE)])
681 -])# _LT_AC_SHELL_INIT
683 +# _LT_CONFIG_STATUS_DECLARATIONS
684 +# ------------------------------
685 +# We delimit libtool config variables with single quotes, so when
686 +# we write them to config.status, we have to be sure to quote all
687 +# embedded single quotes properly. In configure, this macro expands
688 +# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
690 +# <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
691 +m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
692 +[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
693 + [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
695 -# _LT_AC_PROG_ECHO_BACKSLASH
696 -# --------------------------
697 -# Add some code to the start of the generated configure script which
698 -# will find an echo command which doesn't interpret backslashes.
699 -AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
700 -[_LT_AC_SHELL_INIT([
701 -# Check that we are running under the correct shell.
702 -SHELL=${CONFIG_SHELL-/bin/sh}
706 - # Remove one level of quotation (which was required for Make).
707 - ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
712 +# Output comment and list of tags supported by the script
713 +m4_defun([_LT_LIBTOOL_TAGS],
714 +[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
715 +available_tags="_LT_TAGS"dnl
719 -if test "X[$]1" = X--no-reexec; then
720 - # Discard the --no-reexec flag, and continue.
722 -elif test "X[$]1" = X--fallback-echo; then
723 - # Avoid inline document here, it may be left over
725 -elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
726 - # Yippee, $echo works!
729 - # Restart under the correct shell.
730 - exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
733 -if test "X[$]1" = X--fallback-echo; then
734 - # used as fallback echo
741 +# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
742 +# -----------------------------------
743 +# Extract the dictionary values for VARNAME (optionally with TAG) and
744 +# expand to a commented shell variable setting:
746 +# # Some comment about what VAR is for.
747 +# visible_name=$lt_internal_name
748 +m4_define([_LT_LIBTOOL_DECLARE],
749 +[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
750 + [description])))[]dnl
751 +m4_pushdef([_libtool_name],
752 + m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
753 +m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
754 + [0], [_libtool_name=[$]$1],
755 + [1], [_libtool_name=$lt_[]$1],
756 + [2], [_libtool_name=$lt_[]$1],
757 + [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
758 +m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
761 -# The HP-UX ksh and POSIX shell print the target directory to stdout
763 -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
765 -if test -z "$ECHO"; then
766 -if test "X${echo_test_string+set}" != Xset; then
767 -# find a string as large as possible, as long as the shell can cope with it
768 - for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
769 - # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
770 - if (echo_test_string=`eval $cmd`) 2>/dev/null &&
771 - echo_test_string=`eval $cmd` &&
772 - (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
778 +# _LT_LIBTOOL_CONFIG_VARS
779 +# -----------------------
780 +# Produce commented declarations of non-tagged libtool config variables
781 +# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
782 +# script. Tagged libtool config variables (even for the LIBTOOL CONFIG
783 +# section) are produced by _LT_LIBTOOL_TAG_VARS.
784 +m4_defun([_LT_LIBTOOL_CONFIG_VARS],
785 +[m4_foreach([_lt_var],
786 + m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
787 + [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
789 -if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
790 - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
791 - test "X$echo_testing_string" = "X$echo_test_string"; then
794 - # The Solaris, AIX, and Digital Unix default echo programs unquote
795 - # backslashes. This makes it impossible to quote backslashes using
796 - # echo "$something" | sed 's/\\/\\\\/g'
798 - # So, first we look for a working echo in the user's PATH.
800 - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
801 - for dir in $PATH /usr/ucb; do
803 - if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
804 - test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
805 - echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
806 - test "X$echo_testing_string" = "X$echo_test_string"; then
812 +# _LT_LIBTOOL_TAG_VARS(TAG)
813 +# -------------------------
814 +m4_define([_LT_LIBTOOL_TAG_VARS],
815 +[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
816 + [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
818 - if test "X$echo" = Xecho; then
819 - # We didn't find a better echo, so look for alternatives.
820 - if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
821 - echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
822 - test "X$echo_testing_string" = "X$echo_test_string"; then
823 - # This shell has a builtin print -r that does the trick.
825 - elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
826 - test "X$CONFIG_SHELL" != X/bin/ksh; then
827 - # If we have ksh, try running configure again with it.
828 - ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
829 - export ORIGINAL_CONFIG_SHELL
830 - CONFIG_SHELL=/bin/ksh
831 - export CONFIG_SHELL
832 - exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
834 - # Try using printf.
836 - if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
837 - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
838 - test "X$echo_testing_string" = "X$echo_test_string"; then
839 - # Cool, printf works
841 - elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
842 - test "X$echo_testing_string" = 'X\t' &&
843 - echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
844 - test "X$echo_testing_string" = "X$echo_test_string"; then
845 - CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
846 - export CONFIG_SHELL
847 - SHELL="$CONFIG_SHELL"
849 - echo="$CONFIG_SHELL [$]0 --fallback-echo"
850 - elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
851 - test "X$echo_testing_string" = 'X\t' &&
852 - echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
853 - test "X$echo_testing_string" = "X$echo_test_string"; then
854 - echo="$CONFIG_SHELL [$]0 --fallback-echo"
856 - # maybe with a smaller string...
859 - for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
860 - if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
866 +# _LT_TAGVAR(VARNAME, [TAGNAME])
867 +# ------------------------------
868 +m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
870 - if test "$prev" != 'sed 50q "[$]0"'; then
871 - echo_test_string=`eval $prev`
872 - export echo_test_string
873 - exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
875 - # Oops. We lost completely, so just stick with echo.
884 -# Copy echo and quote the copy suitably for passing to libtool from
885 -# the Makefile, instead of quoting the original, which is used later.
887 -if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
888 - ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
890 +# _LT_CONFIG_COMMANDS
891 +# -------------------
892 +# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
893 +# variables for single and double quote escaping we saved from calls
894 +# to _LT_DECL, we can put quote escaped variables declarations
895 +# into `config.status', and then the shell code to quote escape them in
896 +# for loops in `config.status'. Finally, any additional code accumulated
897 +# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
898 +m4_defun([_LT_CONFIG_COMMANDS],
899 +[AC_PROVIDE_IFELSE([LT_OUTPUT],
900 + dnl If the libtool generation code has been placed in $CONFIG_LT,
901 + dnl instead of duplicating it all over again into config.status,
902 + dnl then we will have config.status run $CONFIG_LT later, so it
903 + dnl needs to know what name is stored there:
904 + [AC_CONFIG_COMMANDS([libtool],
905 + [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
906 + dnl If the libtool generation code is destined for config.status,
907 + dnl expand the accumulated commands and init code now:
908 + [AC_CONFIG_COMMANDS([libtool],
909 + [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
910 +])#_LT_CONFIG_COMMANDS
913 -])])# _LT_AC_PROG_ECHO_BACKSLASH
916 +m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
921 -AC_DEFUN([_LT_AC_LOCK],
922 -[AC_ARG_ENABLE([libtool-lock],
923 - [AC_HELP_STRING([--disable-libtool-lock],
924 - [avoid locking (might break parallel builds)])])
925 -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
926 +# The HP-UX ksh and POSIX shell print the target directory to stdout
928 +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
930 -# Some flags need to be propagated to the compiler or linker for good
934 - # Find out which ABI we are using.
935 - echo 'int i;' > conftest.$ac_ext
936 - if AC_TRY_EVAL(ac_compile); then
937 - case `/usr/bin/file conftest.$ac_objext` in
939 - HPUX_IA64_MODE="32"
940 +sed_quote_subst='$sed_quote_subst'
941 +double_quote_subst='$double_quote_subst'
942 +delay_variable_subst='$delay_variable_subst'
943 +_LT_CONFIG_STATUS_DECLARATIONS
945 +LTCFLAGS='$LTCFLAGS'
946 +compiler='$compiler_DEFAULT'
948 +# Quote evaled strings.
949 +for var in lt_decl_all_varnames([[ \
950 +]], lt_decl_quote_varnames); do
951 + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
952 + *[[\\\\\\\`\\"\\\$]]*)
953 + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
956 - HPUX_IA64_MODE="64"
958 + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
965 - # Find out which ABI we are using.
966 - echo '[#]line __oline__ "configure"' > conftest.$ac_ext
967 - if AC_TRY_EVAL(ac_compile); then
968 - if test "$lt_cv_prog_gnu_ld" = yes; then
969 - case `/usr/bin/file conftest.$ac_objext` in
971 - LD="${LD-ld} -melf32bsmip"
974 - LD="${LD-ld} -melf32bmipn32"
977 +# Double-quote double-evaled strings.
978 +for var in lt_decl_all_varnames([[ \
979 +]], lt_decl_dquote_varnames); do
980 + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
981 + *[[\\\\\\\`\\"\\\$]]*)
982 + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
985 - LD="${LD-ld} -melf64bmip"
987 + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
991 - case `/usr/bin/file conftest.$ac_objext` in
1007 -x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
1008 -s390*-*linux*|sparc*-*linux*)
1009 - # Find out which ABI we are using.
1010 - echo 'int i;' > conftest.$ac_ext
1011 - if AC_TRY_EVAL(ac_compile); then
1012 - case `/usr/bin/file conftest.o` in
1015 - x86_64-*kfreebsd*-gnu)
1016 - LD="${LD-ld} -m elf_i386_fbsd"
1019 - LD="${LD-ld} -m elf_i386"
1021 - ppc64-*linux*|powerpc64-*linux*)
1022 - LD="${LD-ld} -m elf32ppclinux"
1025 - LD="${LD-ld} -m elf_s390"
1028 - LD="${LD-ld} -m elf32_sparc"
1034 - x86_64-*kfreebsd*-gnu)
1035 - LD="${LD-ld} -m elf_x86_64_fbsd"
1038 - LD="${LD-ld} -m elf_x86_64"
1040 - ppc*-*linux*|powerpc*-*linux*)
1041 - LD="${LD-ld} -m elf64ppc"
1044 - LD="${LD-ld} -m elf64_s390"
1047 - LD="${LD-ld} -m elf64_sparc"
1057 - # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1058 - SAVE_CFLAGS="$CFLAGS"
1059 - CFLAGS="$CFLAGS -belf"
1060 - AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
1062 - AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
1064 - if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1065 - # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1066 - CFLAGS="$SAVE_CFLAGS"
1070 - # Find out which ABI we are using.
1071 - echo 'int i;' > conftest.$ac_ext
1072 - if AC_TRY_EVAL(ac_compile); then
1073 - case `/usr/bin/file conftest.o` in
1075 - case $lt_cv_prog_gnu_ld in
1076 - yes*) LD="${LD-ld} -m elf64_sparc" ;;
1077 - *) LD="${LD-ld} -64" ;;
1086 -AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
1087 -[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
1088 - AC_CHECK_TOOL(DLLTOOL, dlltool, false)
1089 - AC_CHECK_TOOL(AS, as, false)
1090 - AC_CHECK_TOOL(OBJDUMP, objdump, false)
1091 +# Fix-up fallback echo if it was mangled by the above quoting rules.
1093 +*'\\\[$]0 --fallback-echo"')dnl "
1094 + lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
1099 -need_locks="$enable_libtool_lock"
1100 +_LT_OUTPUT_LIBTOOL_INIT
1107 +# This macro allows early generation of the libtool script (before
1108 +# AC_OUTPUT is called), incase it is used in configure for compilation
1110 +AC_DEFUN([LT_OUTPUT],
1111 +[: ${CONFIG_LT=./config.lt}
1112 +AC_MSG_NOTICE([creating $CONFIG_LT])
1113 +cat >"$CONFIG_LT" <<_LTEOF
1115 +# Generated by $as_me.
1116 +# Run this file to recreate a libtool stub with the current configuration.
1119 +SHELL=\${CONFIG_SHELL-$SHELL}
1122 +cat >>"$CONFIG_LT" <<\_LTEOF
1126 -# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1127 -# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
1128 -# ----------------------------------------------------------------
1129 -# Check whether the given compiler option works
1130 -AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
1131 -[AC_REQUIRE([LT_AC_PROG_SED])
1132 -AC_CACHE_CHECK([$1], [$2],
1134 - ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
1135 - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1136 - lt_compiler_flag="$3"
1137 - # Insert the option either (1) after the last *FLAGS variable, or
1138 - # (2) before a word containing "conftest.", or (3) at the end.
1139 - # Note that $ac_compile itself does not contain backslashes and begins
1140 - # with a dollar sign (not a hyphen), so the echo should work correctly.
1141 - # The option is referenced via a variable to avoid confusing sed.
1142 - lt_compile=`echo "$ac_compile" | $SED \
1143 - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1144 - -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1145 - -e 's:$: $lt_compiler_flag:'`
1146 - (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1147 - (eval "$lt_compile" 2>conftest.err)
1149 - cat conftest.err >&AS_MESSAGE_LOG_FD
1150 - echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1151 - if (exit $ac_status) && test -s "$ac_outfile"; then
1152 - # The compiler can only warn and ignore the option if not recognized
1153 - # So say no if there are warnings other than the usual output.
1154 - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
1155 - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1156 - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
1162 +exec AS_MESSAGE_FD>&1
1163 +exec AS_MESSAGE_LOG_FD>>config.log
1166 + AS_BOX([Running $as_me.])
1167 +} >&AS_MESSAGE_LOG_FD
1170 +\`$as_me' creates a local libtool stub from the current configuration,
1171 +for use in further configure time tests before the real libtool is
1174 +Usage: $[0] [[OPTIONS]]
1176 + -h, --help print this help, then exit
1177 + -V, --version print version number, then exit
1178 + -q, --quiet do not print progress messages
1179 + -d, --debug don't remove temporary files
1181 +Report bugs to <bug-libtool@gnu.org>."
1184 +m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
1185 +m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
1186 +configured by $[0], generated by m4_PACKAGE_STRING.
1188 +Copyright (C) 2008 Free Software Foundation, Inc.
1189 +This config.lt script is free software; the Free Software Foundation
1190 +gives unlimited permision to copy, distribute and modify it."
1192 -if test x"[$]$2" = xyes; then
1193 - ifelse([$5], , :, [$5])
1195 - ifelse([$6], , :, [$6])
1197 -])# AC_LIBTOOL_COMPILER_OPTION
1198 +while test $[#] != 0
1201 + --version | --v* | -V )
1202 + echo "$lt_cl_version"; exit 0 ;;
1203 + --help | --h* | -h )
1204 + echo "$lt_cl_help"; exit 0 ;;
1205 + --debug | --d* | -d )
1207 + --quiet | --q* | --silent | --s* | -q )
1210 + -*) AC_MSG_ERROR([unrecognized option: $[1]
1211 +Try \`$[0] --help' for more information.]) ;;
1213 -# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1214 -# [ACTION-SUCCESS], [ACTION-FAILURE])
1215 -# ------------------------------------------------------------
1216 -# Check whether the given compiler option works
1217 -AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
1218 -[AC_REQUIRE([LT_AC_PROG_SED])dnl
1219 -AC_CACHE_CHECK([$1], [$2],
1221 - save_LDFLAGS="$LDFLAGS"
1222 - LDFLAGS="$LDFLAGS $3"
1223 - echo "$lt_simple_link_test_code" > conftest.$ac_ext
1224 - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
1225 - # The linker can only warn and ignore the option if not recognized
1226 - # So say no if there are warnings
1227 - if test -s conftest.err; then
1228 - # Append any errors to the config.log.
1229 - cat conftest.err 1>&AS_MESSAGE_LOG_FD
1230 - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
1231 - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1232 - if diff conftest.exp conftest.er2 >/dev/null; then
1240 - LDFLAGS="$save_LDFLAGS"
1242 + *) AC_MSG_ERROR([unrecognized argument: $[1]
1243 +Try \`$[0] --help' for more information.]) ;;
1248 -if test x"[$]$2" = xyes; then
1249 - ifelse([$4], , :, [$4])
1251 - ifelse([$5], , :, [$5])
1252 +if $lt_cl_silent; then
1253 + exec AS_MESSAGE_FD>/dev/null
1255 -])# AC_LIBTOOL_LINKER_OPTION
1258 +cat >>"$CONFIG_LT" <<_LTEOF
1259 +_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
1262 +cat >>"$CONFIG_LT" <<\_LTEOF
1263 +AC_MSG_NOTICE([creating $ofile])
1264 +_LT_OUTPUT_LIBTOOL_COMMANDS
1267 +chmod +x "$CONFIG_LT"
1269 +# configure is writing to config.log, but config.lt does its own redirection,
1270 +# appending to config.log, which fails on DOS, as config.log is still kept
1271 +# open by configure. Here we exec the FD to /dev/null, effectively closing
1272 +# config.log, so it can be properly (re)opened and appended to by config.lt.
1273 +if test "$no_create" != yes; then
1275 + test "$silent" = yes &&
1276 + lt_config_lt_args="$lt_config_lt_args --quiet"
1277 + exec AS_MESSAGE_LOG_FD>/dev/null
1278 + $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
1279 + exec AS_MESSAGE_LOG_FD>>config.log
1280 + $lt_cl_success || AS_EXIT(1)
1284 -# AC_LIBTOOL_SYS_MAX_CMD_LEN
1285 -# --------------------------
1286 -AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
1287 -[# find the maximum length of command line arguments
1288 -AC_MSG_CHECKING([the maximum length of command line arguments])
1289 -AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
1295 - # On DJGPP, this test can blow up pretty badly due to problems in libc
1296 - # (any single argument exceeding 2000 bytes causes a buffer overrun
1297 - # during glob expansion). Even if it were fixed, the result of this
1298 - # check would be larger than it should be.
1299 - lt_cv_sys_max_cmd_len=12288; # 12K is about right
1303 +# If TAG is the built-in tag, create an initial libtool script with a
1304 +# default configuration from the untagged config vars. Otherwise add code
1305 +# to config.status for appending the configuration named by TAG from the
1306 +# matching tagged config vars.
1307 +m4_defun([_LT_CONFIG],
1308 +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1309 +_LT_CONFIG_SAVE_COMMANDS([
1310 + m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
1311 + m4_if(_LT_TAG, [C], [
1312 + # See if we are running on zsh, and set the options which allow our
1313 + # commands through without removal of \ escapes.
1314 + if test -n "${ZSH_VERSION+set}" ; then
1315 + setopt NO_GLOB_SUBST
1319 - # Under GNU Hurd, this test is not required because there is
1320 - # no limit to the length of command line arguments.
1321 - # Libtool will interpret -1 as no limit whatsoever
1322 - lt_cv_sys_max_cmd_len=-1;
1324 + cfgfile="${ofile}T"
1325 + trap "$RM \"$cfgfile\"; exit 1" 1 2 15
1329 - # On Win9x/ME, this test blows up -- it succeeds, but takes
1330 - # about 5 minutes as the teststring grows exponentially.
1331 - # Worse, since 9x/ME are not pre-emptively multitasking,
1332 - # you end up with a "frozen" computer, even though with patience
1333 - # the test eventually succeeds (with a max line length of 256k).
1334 - # Instead, let's just punt: use the minimum linelength reported by
1335 - # all of the supported platforms: 8192 (on NT/2K/XP).
1336 - lt_cv_sys_max_cmd_len=8192;
1338 + cat <<_LT_EOF >> "$cfgfile"
1342 - # On AmigaOS with pdksh, this test takes hours, literally.
1343 - # So we just punt and use a minimum line length of 8192.
1344 - lt_cv_sys_max_cmd_len=8192;
1346 +# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
1347 +# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
1348 +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1349 +# NOTE: Changes made to this file will be lost: look at ltmain.sh.
1354 - netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
1355 - # This has been around since 386BSD, at least. Likely further.
1356 - if test -x /sbin/sysctl; then
1357 - lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
1358 - elif test -x /usr/sbin/sysctl; then
1359 - lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
1361 - lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
1363 - # And add a safety zone
1364 - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
1365 - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
1367 +# ### BEGIN LIBTOOL CONFIG
1368 +_LT_LIBTOOL_CONFIG_VARS
1369 +_LT_LIBTOOL_TAG_VARS
1370 +# ### END LIBTOOL CONFIG
1373 - # We know the value 262144 and hardcode it with a safety zone (like BSD)
1374 - lt_cv_sys_max_cmd_len=196608
1379 - # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
1380 - # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
1381 - # nice to cause kernel panics so lets avoid the loop below.
1382 - # First set a reasonable default.
1383 - lt_cv_sys_max_cmd_len=16384
1385 - if test -x /sbin/sysconfig; then
1386 - case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
1387 - *1*) lt_cv_sys_max_cmd_len=-1 ;;
1392 - lt_cv_sys_max_cmd_len=102400
1394 - sysv5* | sco5v6* | sysv4.2uw2*)
1395 - kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
1396 - if test -n "$kargmax"; then
1397 - lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
1399 - lt_cv_sys_max_cmd_len=32768
1403 - lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
1404 - if test -n "$lt_cv_sys_max_cmd_len"; then
1405 - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
1406 - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
1408 - SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
1409 - while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
1410 - = "XX$teststring") >/dev/null 2>&1 &&
1411 - new_result=`expr "X$teststring" : ".*" 2>&1` &&
1412 - lt_cv_sys_max_cmd_len=$new_result &&
1413 - test $i != 17 # 1/2 MB should be enough
1416 - teststring=$teststring$teststring
1419 - # Add a significant safety factor because C++ compilers can tack on massive
1420 - # amounts of additional arguments before passing them to the linker.
1421 - # It appears as though 1/2 is a usable value.
1422 - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
1426 + cat <<\_LT_EOF >> "$cfgfile"
1427 +# AIX sometimes has problems with the GCC collect2 program. For some
1428 +# reason, if we set the COLLECT_NAMES environment variable, the problems
1429 +# vanish in a puff of smoke.
1430 +if test "X${COLLECT_NAMES+set}" != Xset; then
1432 + export COLLECT_NAMES
1438 -if test -n $lt_cv_sys_max_cmd_len ; then
1439 - AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
1441 - AC_MSG_RESULT(none)
1443 -])# AC_LIBTOOL_SYS_MAX_CMD_LEN
1447 -# _LT_AC_CHECK_DLFCN
1448 -# ------------------
1449 -AC_DEFUN([_LT_AC_CHECK_DLFCN],
1450 -[AC_CHECK_HEADERS(dlfcn.h)dnl
1451 -])# _LT_AC_CHECK_DLFCN
1452 + # We use sed instead of cat because bash on DJGPP gets confused if
1453 + # if finds mixed CR/LF and LF-only lines. Since sed operates in
1454 + # text mode, it properly converts lines to CR/LF. This bash problem
1455 + # is reportedly fixed, but why not run on old versions too?
1456 + sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
1457 + || (rm -f "$cfgfile"; exit 1)
1459 + _LT_PROG_XSI_SHELLFNS
1461 -# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
1462 -# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
1463 -# ---------------------------------------------------------------------
1464 -AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
1465 -[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
1466 -if test "$cross_compiling" = yes; then :
1469 - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1470 - lt_status=$lt_dlunknown
1471 - cat > conftest.$ac_ext <<EOF
1472 -[#line __oline__ "configure"
1473 -#include "confdefs.h"
1474 + sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
1475 + || (rm -f "$cfgfile"; exit 1)
1480 + mv -f "$cfgfile" "$ofile" ||
1481 + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
1484 +[cat <<_LT_EOF >> "$ofile"
1487 +dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
1488 +dnl in a comment (ie after a #).
1489 +# ### BEGIN LIBTOOL TAG CONFIG: $1
1490 +_LT_LIBTOOL_TAG_VARS(_LT_TAG)
1491 +# ### END LIBTOOL TAG CONFIG: $1
1496 + PACKAGE='$PACKAGE'
1497 + VERSION='$VERSION'
1498 + TIMESTAMP='$TIMESTAMP'
1500 + ofile='$ofile'], [])
1501 +])dnl /_LT_CONFIG_SAVE_COMMANDS
1505 +# LT_SUPPORTED_TAG(TAG)
1506 +# ---------------------
1507 +# Trace this macro to discover what tags are supported by the libtool
1508 +# --tag option, using:
1509 +# autoconf --trace 'LT_SUPPORTED_TAG:$1'
1510 +AC_DEFUN([LT_SUPPORTED_TAG], [])
1513 +# C support is built-in for now
1514 +m4_define([_LT_LANG_C_enabled], [])
1515 +m4_define([_LT_TAGS], [])
1518 -# define LT_DLGLOBAL RTLD_GLOBAL
1521 -# define LT_DLGLOBAL DL_GLOBAL
1523 -# define LT_DLGLOBAL 0
1527 -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
1528 - find out it does not work in some platform. */
1529 -#ifndef LT_DLLAZY_OR_NOW
1531 -# define LT_DLLAZY_OR_NOW RTLD_LAZY
1534 -# define LT_DLLAZY_OR_NOW DL_LAZY
1537 -# define LT_DLLAZY_OR_NOW RTLD_NOW
1540 -# define LT_DLLAZY_OR_NOW DL_NOW
1542 -# define LT_DLLAZY_OR_NOW 0
1550 +# Enable libtool support for the given language if not already enabled.
1551 +AC_DEFUN([LT_LANG],
1552 +[AC_BEFORE([$0], [LT_OUTPUT])dnl
1554 + [C], [_LT_LANG(C)],
1555 + [C++], [_LT_LANG(CXX)],
1556 + [Java], [_LT_LANG(GCJ)],
1557 + [Fortran 77], [_LT_LANG(F77)],
1558 + [Fortran], [_LT_LANG(FC)],
1559 + [Windows Resource], [_LT_LANG(RC)],
1560 + [m4_ifdef([_LT_LANG_]$1[_CONFIG],
1562 + [m4_fatal([$0: unsupported language: "$1"])])])dnl
1566 -extern "C" void exit (int);
1569 -void fnord() { int i=42;}
1572 - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
1573 - int status = $lt_dlunknown;
1574 +# _LT_LANG(LANGNAME)
1575 +# ------------------
1576 +m4_defun([_LT_LANG],
1577 +[m4_ifdef([_LT_LANG_]$1[_enabled], [],
1578 + [LT_SUPPORTED_TAG([$1])dnl
1579 + m4_append([_LT_TAGS], [$1 ])dnl
1580 + m4_define([_LT_LANG_]$1[_enabled], [])dnl
1581 + _LT_LANG_$1_CONFIG($1)])dnl
1586 - if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
1587 - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
1588 - /* dlclose (self); */
1591 - puts (dlerror ());
1596 - if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
1597 - (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
1599 - case x$lt_status in
1600 - x$lt_dlno_uscore) $1 ;;
1601 - x$lt_dlneed_uscore) $2 ;;
1602 - x$lt_dlunknown|x*) $3 ;;
1605 - # compilation failed
1610 -])# _LT_AC_TRY_DLOPEN_SELF
1611 +# _LT_LANG_DEFAULT_CONFIG
1612 +# -----------------------
1613 +m4_defun([_LT_LANG_DEFAULT_CONFIG],
1614 +[AC_PROVIDE_IFELSE([AC_PROG_CXX],
1616 + [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
1618 +AC_PROVIDE_IFELSE([AC_PROG_F77],
1620 + [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
1622 +AC_PROVIDE_IFELSE([AC_PROG_FC],
1624 + [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
1626 +dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
1627 +dnl pulling things in needlessly.
1628 +AC_PROVIDE_IFELSE([AC_PROG_GCJ],
1630 + [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
1632 + [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
1634 + [m4_ifdef([AC_PROG_GCJ],
1635 + [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
1636 + m4_ifdef([A][M_PROG_GCJ],
1637 + [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
1638 + m4_ifdef([LT_PROG_GCJ],
1639 + [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
1641 +AC_PROVIDE_IFELSE([LT_PROG_RC],
1643 + [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
1644 +])# _LT_LANG_DEFAULT_CONFIG
1647 +AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
1648 +AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
1649 +AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
1650 +AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
1651 +dnl aclocal-1.4 backwards compatibility:
1652 +dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
1653 +dnl AC_DEFUN([AC_LIBTOOL_F77], [])
1654 +dnl AC_DEFUN([AC_LIBTOOL_FC], [])
1655 +dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
1658 -# AC_LIBTOOL_DLOPEN_SELF
1659 -# ----------------------
1660 -AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
1661 -[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
1662 -if test "x$enable_dlopen" != xyes; then
1663 - enable_dlopen=unknown
1664 - enable_dlopen_self=unknown
1665 - enable_dlopen_self_static=unknown
1668 - lt_cv_dlopen_libs=
1671 +m4_defun([_LT_TAG_COMPILER],
1672 +[AC_REQUIRE([AC_PROG_CC])dnl
1676 - lt_cv_dlopen="load_add_on"
1677 - lt_cv_dlopen_libs=
1678 - lt_cv_dlopen_self=yes
1680 +_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
1681 +_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
1682 +_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
1683 +_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
1686 - lt_cv_dlopen="LoadLibrary"
1687 - lt_cv_dlopen_libs=
1689 +# If no C compiler was specified, use CC.
1693 - lt_cv_dlopen="dlopen"
1694 - lt_cv_dlopen_libs=
1696 +# If no C compiler flags were specified, use CFLAGS.
1697 +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
1700 - # if libdl is installed we need to link against it
1701 - AC_CHECK_LIB([dl], [dlopen],
1702 - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
1703 - lt_cv_dlopen="dyld"
1704 - lt_cv_dlopen_libs=
1705 - lt_cv_dlopen_self=yes
1708 +# Allow CC to be a program name with arguments.
1710 +])# _LT_TAG_COMPILER
1713 - AC_CHECK_FUNC([shl_load],
1714 - [lt_cv_dlopen="shl_load"],
1715 - [AC_CHECK_LIB([dld], [shl_load],
1716 - [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
1717 - [AC_CHECK_FUNC([dlopen],
1718 - [lt_cv_dlopen="dlopen"],
1719 - [AC_CHECK_LIB([dl], [dlopen],
1720 - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
1721 - [AC_CHECK_LIB([svld], [dlopen],
1722 - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
1723 - [AC_CHECK_LIB([dld], [dld_link],
1724 - [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
1731 +# _LT_COMPILER_BOILERPLATE
1732 +# ------------------------
1733 +# Check for compiler boilerplate output or warnings with
1734 +# the simple compiler test code.
1735 +m4_defun([_LT_COMPILER_BOILERPLATE],
1736 +[m4_require([_LT_DECL_SED])dnl
1737 +ac_outfile=conftest.$ac_objext
1738 +echo "$lt_simple_compile_test_code" >conftest.$ac_ext
1739 +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1740 +_lt_compiler_boilerplate=`cat conftest.err`
1742 +])# _LT_COMPILER_BOILERPLATE
1745 +# _LT_LINKER_BOILERPLATE
1746 +# ----------------------
1747 +# Check for linker boilerplate output or warnings with
1748 +# the simple link test code.
1749 +m4_defun([_LT_LINKER_BOILERPLATE],
1750 +[m4_require([_LT_DECL_SED])dnl
1751 +ac_outfile=conftest.$ac_objext
1752 +echo "$lt_simple_link_test_code" >conftest.$ac_ext
1753 +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1754 +_lt_linker_boilerplate=`cat conftest.err`
1756 +])# _LT_LINKER_BOILERPLATE
1758 +# _LT_REQUIRED_DARWIN_CHECKS
1759 +# -------------------------
1760 +m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
1762 + rhapsody* | darwin*)
1763 + AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
1764 + AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
1765 + AC_CHECK_TOOL([LIPO], [lipo], [:])
1766 + AC_CHECK_TOOL([OTOOL], [otool], [:])
1767 + AC_CHECK_TOOL([OTOOL64], [otool64], [:])
1768 + _LT_DECL([], [DSYMUTIL], [1],
1769 + [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
1770 + _LT_DECL([], [NMEDIT], [1],
1771 + [Tool to change global to local symbols on Mac OS X])
1772 + _LT_DECL([], [LIPO], [1],
1773 + [Tool to manipulate fat objects and archives on Mac OS X])
1774 + _LT_DECL([], [OTOOL], [1],
1775 + [ldd/readelf like tool for Mach-O binaries on Mac OS X])
1776 + _LT_DECL([], [OTOOL64], [1],
1777 + [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
1779 + AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
1780 + [lt_cv_apple_cc_single_mod=no
1781 + if test -z "${LT_MULTI_MODULE}"; then
1782 + # By default we will add the -single_module flag. You can override
1783 + # by either setting the environment variable LT_MULTI_MODULE
1784 + # non-empty at configure time, or by adding -multi_module to the
1786 + rm -rf libconftest.dylib*
1787 + echo "int foo(void){return 1;}" > conftest.c
1788 + echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
1789 +-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
1790 + $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
1791 + -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
1793 + if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
1794 + lt_cv_apple_cc_single_mod=yes
1796 + cat conftest.err >&AS_MESSAGE_LOG_FD
1798 + rm -rf libconftest.dylib*
1801 + AC_CACHE_CHECK([for -exported_symbols_list linker flag],
1802 + [lt_cv_ld_exported_symbols_list],
1803 + [lt_cv_ld_exported_symbols_list=no
1804 + save_LDFLAGS=$LDFLAGS
1805 + echo "_main" > conftest.sym
1806 + LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
1807 + AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
1808 + [lt_cv_ld_exported_symbols_list=yes],
1809 + [lt_cv_ld_exported_symbols_list=no])
1810 + LDFLAGS="$save_LDFLAGS"
1813 + rhapsody* | darwin1.[[012]])
1814 + _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
1816 + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
1817 + darwin*) # darwin 5.x on
1818 + # if running on 10.5 or later, the deployment target defaults
1819 + # to the OS version, if on x86, and 10.4, the deployment
1820 + # target defaults to 10.4. Don't you love it?
1821 + case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
1822 + 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
1823 + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
1825 + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
1827 + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
1831 + if test "$lt_cv_apple_cc_single_mod" = "yes"; then
1832 + _lt_dar_single_mod='$single_module'
1834 + if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
1835 + _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
1837 + _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
1839 + if test "$DSYMUTIL" != ":"; then
1840 + _lt_dsymutil='~$DSYMUTIL $lib || :'
1848 - if test "x$lt_cv_dlopen" != xno; then
1851 +# _LT_DARWIN_LINKER_FEATURES
1852 +# --------------------------
1853 +# Checks for linker and compiler features on darwin
1854 +m4_defun([_LT_DARWIN_LINKER_FEATURES],
1856 + m4_require([_LT_REQUIRED_DARWIN_CHECKS])
1857 + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
1858 + _LT_TAGVAR(hardcode_direct, $1)=no
1859 + _LT_TAGVAR(hardcode_automatic, $1)=yes
1860 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
1861 + _LT_TAGVAR(whole_archive_flag_spec, $1)=''
1862 + _LT_TAGVAR(link_all_deplibs, $1)=yes
1863 + _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
1864 + if test "$GCC" = "yes"; then
1865 + output_verbose_link_cmd=echo
1866 + _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}"
1867 + _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
1868 + _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}"
1869 + _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}"
1870 + m4_if([$1], [CXX],
1871 +[ if test "$lt_cv_apple_cc_single_mod" != "yes"; then
1872 + _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}"
1873 + _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}"
1878 + _LT_TAGVAR(ld_shlibs, $1)=no
1882 - case $lt_cv_dlopen in
1884 - save_CPPFLAGS="$CPPFLAGS"
1885 - test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
1886 +# _LT_SYS_MODULE_PATH_AIX
1887 +# -----------------------
1888 +# Links a minimal program and checks the executable
1889 +# for the system default hardcoded library path. In most cases,
1890 +# this is /usr/lib:/lib, but when the MPI compilers are used
1891 +# the location of the communication and MPI libs are included too.
1892 +# If we don't find anything, use the default library path according
1893 +# to the aix ld manual.
1894 +m4_defun([_LT_SYS_MODULE_PATH_AIX],
1895 +[m4_require([_LT_DECL_SED])dnl
1896 +AC_LINK_IFELSE(AC_LANG_PROGRAM,[
1897 +lt_aix_libpath_sed='
1898 + /Import File Strings/,/^$/ {
1904 +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1905 +# Check for a 64-bit object if we didn't find anything.
1906 +if test -z "$aix_libpath"; then
1907 + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1909 +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
1910 +])# _LT_SYS_MODULE_PATH_AIX
1912 - save_LDFLAGS="$LDFLAGS"
1913 - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
1916 - LIBS="$lt_cv_dlopen_libs $LIBS"
1917 +# _LT_SHELL_INIT(ARG)
1918 +# -------------------
1919 +m4_define([_LT_SHELL_INIT],
1920 +[ifdef([AC_DIVERSION_NOTICE],
1921 + [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
1922 + [AC_DIVERT_PUSH(NOTICE)])
1927 - AC_CACHE_CHECK([whether a program can dlopen itself],
1928 - lt_cv_dlopen_self, [dnl
1929 - _LT_AC_TRY_DLOPEN_SELF(
1930 - lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
1931 - lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
1934 - if test "x$lt_cv_dlopen_self" = xyes; then
1935 - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
1936 - AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
1937 - lt_cv_dlopen_self_static, [dnl
1938 - _LT_AC_TRY_DLOPEN_SELF(
1939 - lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
1940 - lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
1943 +# _LT_PROG_ECHO_BACKSLASH
1944 +# -----------------------
1945 +# Add some code to the start of the generated configure script which
1946 +# will find an echo command which doesn't interpret backslashes.
1947 +m4_defun([_LT_PROG_ECHO_BACKSLASH],
1949 +# Check that we are running under the correct shell.
1950 +SHELL=${CONFIG_SHELL-/bin/sh}
1952 - CPPFLAGS="$save_CPPFLAGS"
1953 - LDFLAGS="$save_LDFLAGS"
1959 + # Remove one level of quotation (which was required for Make).
1960 + ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
1964 - case $lt_cv_dlopen_self in
1965 - yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
1966 - *) enable_dlopen_self=unknown ;;
1968 +ECHO=${lt_ECHO-echo}
1969 +if test "X[$]1" = X--no-reexec; then
1970 + # Discard the --no-reexec flag, and continue.
1972 +elif test "X[$]1" = X--fallback-echo; then
1973 + # Avoid inline document here, it may be left over
1975 +elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
1976 + # Yippee, $ECHO works!
1979 + # Restart under the correct shell.
1980 + exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
1983 - case $lt_cv_dlopen_self_static in
1984 - yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
1985 - *) enable_dlopen_self_static=unknown ;;
1987 +if test "X[$]1" = X--fallback-echo; then
1988 + # used as fallback echo
1995 -])# AC_LIBTOOL_DLOPEN_SELF
1997 +# The HP-UX ksh and POSIX shell print the target directory to stdout
1998 +# if CDPATH is set.
1999 +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
2001 -# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
2002 -# ---------------------------------
2003 -# Check to see if options -c and -o are simultaneously supported by compiler
2004 -AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
2005 -[AC_REQUIRE([LT_AC_PROG_SED])dnl
2006 -AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
2007 -AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
2008 - [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
2009 - [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
2010 - $rm -r conftest 2>/dev/null
2014 - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
2015 +if test -z "$lt_ECHO"; then
2016 + if test "X${echo_test_string+set}" != Xset; then
2017 + # find a string as large as possible, as long as the shell can cope with it
2018 + for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
2019 + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
2020 + if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
2021 + { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
2028 - lt_compiler_flag="-o out/conftest2.$ac_objext"
2029 + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
2030 + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
2031 + test "X$echo_testing_string" = "X$echo_test_string"; then
2034 + # The Solaris, AIX, and Digital Unix default echo programs unquote
2035 + # backslashes. This makes it impossible to quote backslashes using
2036 + # echo "$something" | sed 's/\\/\\\\/g'
2038 + # So, first we look for a working echo in the user's PATH.
2040 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2041 + for dir in $PATH /usr/ucb; do
2042 + IFS="$lt_save_ifs"
2043 + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
2044 + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
2045 + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
2046 + test "X$echo_testing_string" = "X$echo_test_string"; then
2051 + IFS="$lt_save_ifs"
2053 + if test "X$ECHO" = Xecho; then
2054 + # We didn't find a better echo, so look for alternatives.
2055 + if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
2056 + echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
2057 + test "X$echo_testing_string" = "X$echo_test_string"; then
2058 + # This shell has a builtin print -r that does the trick.
2060 + elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
2061 + test "X$CONFIG_SHELL" != X/bin/ksh; then
2062 + # If we have ksh, try running configure again with it.
2063 + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
2064 + export ORIGINAL_CONFIG_SHELL
2065 + CONFIG_SHELL=/bin/ksh
2066 + export CONFIG_SHELL
2067 + exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
2069 + # Try using printf.
2070 + ECHO='printf %s\n'
2071 + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
2072 + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
2073 + test "X$echo_testing_string" = "X$echo_test_string"; then
2074 + # Cool, printf works
2076 + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
2077 + test "X$echo_testing_string" = 'X\t' &&
2078 + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
2079 + test "X$echo_testing_string" = "X$echo_test_string"; then
2080 + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
2081 + export CONFIG_SHELL
2082 + SHELL="$CONFIG_SHELL"
2084 + ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
2085 + elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
2086 + test "X$echo_testing_string" = 'X\t' &&
2087 + echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
2088 + test "X$echo_testing_string" = "X$echo_test_string"; then
2089 + ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
2091 + # maybe with a smaller string...
2094 + for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
2095 + if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
2102 + if test "$prev" != 'sed 50q "[$]0"'; then
2103 + echo_test_string=`eval $prev`
2104 + export echo_test_string
2105 + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
2107 + # Oops. We lost completely, so just stick with echo.
2116 +# Copy echo and quote the copy suitably for passing to libtool from
2117 +# the Makefile, instead of quoting the original, which is used later.
2119 +if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
2120 + lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
2125 +_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
2126 +_LT_DECL([], [ECHO], [1],
2127 + [An echo program that does not interpret backslashes])
2128 +])# _LT_PROG_ECHO_BACKSLASH
2133 +m4_defun([_LT_ENABLE_LOCK],
2134 +[AC_ARG_ENABLE([libtool-lock],
2135 + [AS_HELP_STRING([--disable-libtool-lock],
2136 + [avoid locking (might break parallel builds)])])
2137 +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
2139 +# Some flags need to be propagated to the compiler or linker for good
2143 + # Find out which ABI we are using.
2144 + echo 'int i;' > conftest.$ac_ext
2145 + if AC_TRY_EVAL(ac_compile); then
2146 + case `/usr/bin/file conftest.$ac_objext` in
2148 + HPUX_IA64_MODE="32"
2151 + HPUX_IA64_MODE="64"
2158 + # Find out which ABI we are using.
2159 + echo '[#]line __oline__ "configure"' > conftest.$ac_ext
2160 + if AC_TRY_EVAL(ac_compile); then
2161 + if test "$lt_cv_prog_gnu_ld" = yes; then
2162 + case `/usr/bin/file conftest.$ac_objext` in
2164 + LD="${LD-ld} -melf32bsmip"
2167 + LD="${LD-ld} -melf32bmipn32"
2170 + LD="${LD-ld} -melf64bmip"
2174 + case `/usr/bin/file conftest.$ac_objext` in
2179 + LD="${LD-ld} -n32"
2190 +x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
2191 +s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
2192 + # Find out which ABI we are using.
2193 + echo 'int i;' > conftest.$ac_ext
2194 + if AC_TRY_EVAL(ac_compile); then
2195 + case `/usr/bin/file conftest.o` in
2198 + x86_64-*kfreebsd*-gnu)
2199 + LD="${LD-ld} -m elf_i386_fbsd"
2202 + LD="${LD-ld} -m elf_i386"
2204 + ppc64-*linux*|powerpc64-*linux*)
2205 + LD="${LD-ld} -m elf32ppclinux"
2208 + LD="${LD-ld} -m elf_s390"
2211 + LD="${LD-ld} -m elf32_sparc"
2217 + x86_64-*kfreebsd*-gnu)
2218 + LD="${LD-ld} -m elf_x86_64_fbsd"
2221 + LD="${LD-ld} -m elf_x86_64"
2223 + ppc*-*linux*|powerpc*-*linux*)
2224 + LD="${LD-ld} -m elf64ppc"
2226 + s390*-*linux*|s390*-*tpf*)
2227 + LD="${LD-ld} -m elf64_s390"
2230 + LD="${LD-ld} -m elf64_sparc"
2240 + # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2241 + SAVE_CFLAGS="$CFLAGS"
2242 + CFLAGS="$CFLAGS -belf"
2243 + AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
2245 + AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
2247 + if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2248 + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2249 + CFLAGS="$SAVE_CFLAGS"
2253 + # Find out which ABI we are using.
2254 + echo 'int i;' > conftest.$ac_ext
2255 + if AC_TRY_EVAL(ac_compile); then
2256 + case `/usr/bin/file conftest.o` in
2258 + case $lt_cv_prog_gnu_ld in
2259 + yes*) LD="${LD-ld} -m elf64_sparc" ;;
2261 + if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
2273 +need_locks="$enable_libtool_lock"
2274 +])# _LT_ENABLE_LOCK
2277 +# _LT_CMD_OLD_ARCHIVE
2278 +# -------------------
2279 +m4_defun([_LT_CMD_OLD_ARCHIVE],
2280 +[AC_CHECK_TOOL(AR, ar, false)
2281 +test -z "$AR" && AR=ar
2282 +test -z "$AR_FLAGS" && AR_FLAGS=cru
2283 +_LT_DECL([], [AR], [1], [The archiver])
2284 +_LT_DECL([], [AR_FLAGS], [1])
2286 +AC_CHECK_TOOL(STRIP, strip, :)
2287 +test -z "$STRIP" && STRIP=:
2288 +_LT_DECL([], [STRIP], [1], [A symbol stripping program])
2290 +AC_CHECK_TOOL(RANLIB, ranlib, :)
2291 +test -z "$RANLIB" && RANLIB=:
2292 +_LT_DECL([], [RANLIB], [1],
2293 + [Commands used to install an old-style archive])
2295 +# Determine commands to create old-style static archives.
2296 +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
2297 +old_postinstall_cmds='chmod 644 $oldlib'
2298 +old_postuninstall_cmds=
2300 +if test -n "$RANLIB"; then
2303 + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
2306 + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
2309 + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
2311 +_LT_DECL([], [old_postinstall_cmds], [2])
2312 +_LT_DECL([], [old_postuninstall_cmds], [2])
2313 +_LT_TAGDECL([], [old_archive_cmds], [2],
2314 + [Commands used to build an old-style archive])
2315 +])# _LT_CMD_OLD_ARCHIVE
2318 +# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
2319 +# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
2320 +# ----------------------------------------------------------------
2321 +# Check whether the given compiler option works
2322 +AC_DEFUN([_LT_COMPILER_OPTION],
2323 +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2324 +m4_require([_LT_DECL_SED])dnl
2325 +AC_CACHE_CHECK([$1], [$2],
2327 + m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
2328 + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
2329 + lt_compiler_flag="$3"
2330 # Insert the option either (1) after the last *FLAGS variable, or
2331 # (2) before a word containing "conftest.", or (3) at the end.
2332 # Note that $ac_compile itself does not contain backslashes and begins
2333 # with a dollar sign (not a hyphen), so the echo should work correctly.
2334 + # The option is referenced via a variable to avoid confusing sed.
2335 lt_compile=`echo "$ac_compile" | $SED \
2336 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2337 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
2338 -e 's:$: $lt_compiler_flag:'`
2339 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
2340 - (eval "$lt_compile" 2>out/conftest.err)
2341 + (eval "$lt_compile" 2>conftest.err)
2343 - cat out/conftest.err >&AS_MESSAGE_LOG_FD
2344 + cat conftest.err >&AS_MESSAGE_LOG_FD
2345 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
2346 - if (exit $ac_status) && test -s out/conftest2.$ac_objext
2348 + if (exit $ac_status) && test -s "$ac_outfile"; then
2349 # The compiler can only warn and ignore the option if not recognized
2350 - # So say no if there are warnings
2351 - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
2352 - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
2353 - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
2354 - _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
2355 + # So say no if there are warnings other than the usual output.
2356 + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
2357 + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
2358 + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
2362 - chmod u+w . 2>&AS_MESSAGE_LOG_FD
2364 - # SGI C++ compiler will create directory out/ii_files/ for
2365 - # template instantiation
2366 - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
2367 - $rm out/* && rmdir out
2373 -])# AC_LIBTOOL_PROG_CC_C_O
2376 -# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
2377 -# -----------------------------------------
2378 -# Check to see if we can do hard links to lock some files if needed
2379 -AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
2380 -[AC_REQUIRE([_LT_AC_LOCK])dnl
2382 -hard_links="nottested"
2383 -if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
2384 - # do not overwrite the value of need_locks provided by the user
2385 - AC_MSG_CHECKING([if we can lock with hard links])
2388 - ln conftest.a conftest.b 2>/dev/null && hard_links=no
2390 - ln conftest.a conftest.b 2>&5 || hard_links=no
2391 - ln conftest.a conftest.b 2>/dev/null && hard_links=no
2392 - AC_MSG_RESULT([$hard_links])
2393 - if test "$hard_links" = no; then
2394 - AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
2397 +if test x"[$]$2" = xyes; then
2398 + m4_if([$5], , :, [$5])
2401 + m4_if([$6], , :, [$6])
2403 -])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
2405 +])# _LT_COMPILER_OPTION
2407 -# AC_LIBTOOL_OBJDIR
2408 -# -----------------
2409 -AC_DEFUN([AC_LIBTOOL_OBJDIR],
2410 -[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
2411 -[rm -f .libs 2>/dev/null
2412 -mkdir .libs 2>/dev/null
2413 -if test -d .libs; then
2414 - lt_cv_objdir=.libs
2416 - # MS-DOS does not allow filenames that begin with a dot.
2417 - lt_cv_objdir=_libs
2419 -rmdir .libs 2>/dev/null])
2420 -objdir=$lt_cv_objdir
2421 -])# AC_LIBTOOL_OBJDIR
2423 +AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
2424 +dnl aclocal-1.4 backwards compatibility:
2425 +dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
2428 -# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
2429 -# ----------------------------------------------
2430 -# Check hardcoding attributes.
2431 -AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
2432 -[AC_MSG_CHECKING([how to hardcode library paths into programs])
2433 -_LT_AC_TAGVAR(hardcode_action, $1)=
2434 -if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
2435 - test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
2436 - test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
2437 +# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
2438 +# [ACTION-SUCCESS], [ACTION-FAILURE])
2439 +# ----------------------------------------------------
2440 +# Check whether the given linker option works
2441 +AC_DEFUN([_LT_LINKER_OPTION],
2442 +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2443 +m4_require([_LT_DECL_SED])dnl
2444 +AC_CACHE_CHECK([$1], [$2],
2446 + save_LDFLAGS="$LDFLAGS"
2447 + LDFLAGS="$LDFLAGS $3"
2448 + echo "$lt_simple_link_test_code" > conftest.$ac_ext
2449 + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
2450 + # The linker can only warn and ignore the option if not recognized
2451 + # So say no if there are warnings
2452 + if test -s conftest.err; then
2453 + # Append any errors to the config.log.
2454 + cat conftest.err 1>&AS_MESSAGE_LOG_FD
2455 + $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
2456 + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
2457 + if diff conftest.exp conftest.er2 >/dev/null; then
2465 + LDFLAGS="$save_LDFLAGS"
2468 - # We can hardcode non-existant directories.
2469 - if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
2470 - # If the only mechanism to avoid hardcoding is shlibpath_var, we
2471 - # have to relink, otherwise we might link with an installed library
2472 - # when we should be linking with a yet-to-be-installed one
2473 - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
2474 - test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
2475 - # Linking always hardcodes the temporary library directory.
2476 - _LT_AC_TAGVAR(hardcode_action, $1)=relink
2478 - # We can link without hardcoding, and we can hardcode nonexisting dirs.
2479 - _LT_AC_TAGVAR(hardcode_action, $1)=immediate
2481 +if test x"[$]$2" = xyes; then
2482 + m4_if([$4], , :, [$4])
2484 - # We cannot hardcode anything, or else we can only hardcode existing
2486 - _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
2487 + m4_if([$5], , :, [$5])
2489 -AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
2490 +])# _LT_LINKER_OPTION
2492 -if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
2493 - # Fast installation is not supported
2494 - enable_fast_install=no
2495 -elif test "$shlibpath_overrides_runpath" = yes ||
2496 - test "$enable_shared" = no; then
2497 - # Fast installation is not necessary
2498 - enable_fast_install=needless
2500 -])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
2502 +AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
2503 +dnl aclocal-1.4 backwards compatibility:
2504 +dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
2507 -# AC_LIBTOOL_SYS_LIB_STRIP
2508 -# ------------------------
2509 -AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
2512 -AC_MSG_CHECKING([whether stripping libraries is possible])
2513 -if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
2514 - test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
2515 - test -z "$striplib" && striplib="$STRIP --strip-unneeded"
2516 - AC_MSG_RESULT([yes])
2518 -# FIXME - insert some real tests, host_os isn't really good enough
2521 - if test -n "$STRIP" ; then
2522 - striplib="$STRIP -x"
2523 - old_striplib="$STRIP -S"
2524 - AC_MSG_RESULT([yes])
2526 - AC_MSG_RESULT([no])
2530 - AC_MSG_RESULT([no])
2533 +AC_DEFUN([LT_CMD_MAX_LEN],
2534 +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
2535 +# find the maximum length of command line arguments
2536 +AC_MSG_CHECKING([the maximum length of command line arguments])
2537 +AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
2543 + # On DJGPP, this test can blow up pretty badly due to problems in libc
2544 + # (any single argument exceeding 2000 bytes causes a buffer overrun
2545 + # during glob expansion). Even if it were fixed, the result of this
2546 + # check would be larger than it should be.
2547 + lt_cv_sys_max_cmd_len=12288; # 12K is about right
2551 -])# AC_LIBTOOL_SYS_LIB_STRIP
2554 + # Under GNU Hurd, this test is not required because there is
2555 + # no limit to the length of command line arguments.
2556 + # Libtool will interpret -1 as no limit whatsoever
2557 + lt_cv_sys_max_cmd_len=-1;
2560 -# AC_LIBTOOL_SYS_DYNAMIC_LINKER
2561 -# -----------------------------
2562 -# PORTME Fill in your ld.so characteristics
2563 -AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
2564 -[AC_REQUIRE([LT_AC_PROG_SED])dnl
2565 -AC_MSG_CHECKING([dynamic linker characteristics])
2566 -library_names_spec=
2567 -libname_spec='lib$name'
2571 -postuninstall_cmds=
2575 -shlibpath_overrides_runpath=unknown
2577 -dynamic_linker="$host_os ld.so"
2578 -sys_lib_dlsearch_path_spec="/lib /usr/lib"
2580 -if test "$GCC" = yes; then
2582 - darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
2583 - *) lt_awk_arg="/^libraries:/" ;;
2585 - lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2586 - if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
2587 - # if the path contains ";" then we assume it to be the separator
2588 - # otherwise default to the standard path separator (i.e. ":") - it is
2589 - # assumed that no part of a normal pathname contains ";" but that should
2590 - # okay in the real world where ";" in dirpaths is itself problematic.
2591 - lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
2593 - lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2595 - # Ok, now we have the path, separated by spaces, we can step through it
2596 - # and add multilib dir if necessary.
2597 - lt_tmp_lt_search_path_spec=
2598 - lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
2599 - for lt_sys_path in $lt_search_path_spec; do
2600 - if test -d "$lt_sys_path/$lt_multi_os_dir"; then
2601 - lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
2603 - test -d "$lt_sys_path" && \
2604 - lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
2607 - lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
2608 -BEGIN {RS=" "; FS="/|\n";} {
2611 - for (lt_i = NF; lt_i > 0; lt_i--) {
2612 - if ($lt_i != "" && $lt_i != ".") {
2613 - if ($lt_i == "..") {
2616 - if (lt_count == 0) {
2617 - lt_foo="/" $lt_i lt_foo;
2624 - if (lt_foo != "") { lt_freq[[lt_foo]]++; }
2625 - if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
2627 - sys_lib_search_path_spec=`echo $lt_search_path_spec`
2629 - sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
2631 -need_lib_prefix=unknown
2632 -hardcode_into_libs=no
2634 + # On Win9x/ME, this test blows up -- it succeeds, but takes
2635 + # about 5 minutes as the teststring grows exponentially.
2636 + # Worse, since 9x/ME are not pre-emptively multitasking,
2637 + # you end up with a "frozen" computer, even though with patience
2638 + # the test eventually succeeds (with a max line length of 256k).
2639 + # Instead, let's just punt: use the minimum linelength reported by
2640 + # all of the supported platforms: 8192 (on NT/2K/XP).
2641 + lt_cv_sys_max_cmd_len=8192;
2644 -# when you set need_version to no, make sure it does not cause -set_version
2645 -# flags to be left without arguments
2646 -need_version=unknown
2648 + # On AmigaOS with pdksh, this test takes hours, literally.
2649 + # So we just punt and use a minimum line length of 8192.
2650 + lt_cv_sys_max_cmd_len=8192;
2655 - version_type=linux
2656 - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
2657 - shlibpath_var=LIBPATH
2658 + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
2659 + # This has been around since 386BSD, at least. Likely further.
2660 + if test -x /sbin/sysctl; then
2661 + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
2662 + elif test -x /usr/sbin/sysctl; then
2663 + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
2665 + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
2667 + # And add a safety zone
2668 + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
2669 + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
2672 - # AIX 3 has no versioning support, so we append a major version to the name.
2673 - soname_spec='${libname}${release}${shared_ext}$major'
2676 + # We know the value 262144 and hardcode it with a safety zone (like BSD)
2677 + lt_cv_sys_max_cmd_len=196608
2681 - version_type=linux
2682 - need_lib_prefix=no
2684 - hardcode_into_libs=yes
2685 - if test "$host_cpu" = ia64; then
2686 - # AIX 5 supports IA64
2687 - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
2688 - shlibpath_var=LD_LIBRARY_PATH
2690 - # With GCC up to 2.95.x, collect2 would create an import file
2691 - # for dependence libraries. The import file would start with
2692 - # the line `#! .'. This would cause the generated library to
2693 - # depend on `.', always an invalid library. This was fixed in
2694 - # development snapshots of GCC prior to 3.0.
2696 - aix4 | aix4.[[01]] | aix4.[[01]].*)
2697 - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
2699 - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
2702 - can_build_shared=no
2706 - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
2707 - # soname into executable. Probably we can add versioning support to
2708 - # collect2, so additional links can be useful in future.
2709 - if test "$aix_use_runtimelinking" = yes; then
2710 - # If using run time linking (on AIX 4.2 or later) use lib<name>.so
2711 - # instead of lib<name>.a to let people know that these are not
2712 - # typical AIX shared libraries.
2713 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2715 + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
2716 + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
2717 + # nice to cause kernel panics so lets avoid the loop below.
2718 + # First set a reasonable default.
2719 + lt_cv_sys_max_cmd_len=16384
2721 + if test -x /sbin/sysconfig; then
2722 + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
2723 + *1*) lt_cv_sys_max_cmd_len=-1 ;;
2728 + lt_cv_sys_max_cmd_len=102400
2730 + sysv5* | sco5v6* | sysv4.2uw2*)
2731 + kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
2732 + if test -n "$kargmax"; then
2733 + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
2735 - # We preserve .a as extension for shared libraries through AIX4.2
2736 - # and later when we are not doing run time linking.
2737 - library_names_spec='${libname}${release}.a $libname.a'
2738 - soname_spec='${libname}${release}${shared_ext}$major'
2739 + lt_cv_sys_max_cmd_len=32768
2741 - shlibpath_var=LIBPATH
2746 + lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
2747 + if test -n "$lt_cv_sys_max_cmd_len"; then
2748 + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
2749 + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
2751 + # Make teststring a little bigger before we do anything with it.
2752 + # a 1K string should be a reasonable start.
2753 + for i in 1 2 3 4 5 6 7 8 ; do
2754 + teststring=$teststring$teststring
2756 + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
2757 + # If test is not a shell built-in, we'll probably end up computing a
2758 + # maximum length that is only half of the actual maximum length, but
2760 + while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
2761 + = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
2762 + test $i != 17 # 1/2 MB should be enough
2765 + teststring=$teststring$teststring
2767 + # Only check the string length outside the loop.
2768 + lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
2770 + # Add a significant safety factor because C++ compilers can tack on
2771 + # massive amounts of additional arguments before passing them to the
2772 + # linker. It appears as though 1/2 is a usable value.
2773 + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
2778 +if test -n $lt_cv_sys_max_cmd_len ; then
2779 + AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
2781 + AC_MSG_RESULT(none)
2783 +max_cmd_len=$lt_cv_sys_max_cmd_len
2784 +_LT_DECL([], [max_cmd_len], [0],
2785 + [What is the maximum length of a command?])
2789 - library_names_spec='$libname.ixlibrary $libname.a'
2790 - # Create ${libname}_ixlibrary.a entries in /sys/libs.
2791 - 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'
2794 +AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
2795 +dnl aclocal-1.4 backwards compatibility:
2796 +dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
2799 - library_names_spec='${libname}${shared_ext}'
2800 - dynamic_linker="$host_os ld.so"
2801 - shlibpath_var=LIBRARY_PATH
2805 - version_type=linux
2807 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2808 - soname_spec='${libname}${release}${shared_ext}$major'
2809 - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
2810 - shlibpath_var=LD_LIBRARY_PATH
2811 - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
2812 - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
2813 - # the default ld.so.conf also contains /usr/contrib/lib and
2814 - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
2815 - # libtool to hard-code these into programs
2819 +m4_defun([_LT_HEADER_DLFCN],
2820 +[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
2821 +])# _LT_HEADER_DLFCN
2823 -cygwin* | mingw* | pw32*)
2824 - version_type=windows
2825 - shrext_cmds=".dll"
2827 - need_lib_prefix=no
2829 - case $GCC,$host_os in
2830 - yes,cygwin* | yes,mingw* | yes,pw32*)
2831 - library_names_spec='$libname.dll.a'
2832 - # DLL is installed to $(libdir)/../bin by postinstall_cmds
2833 - postinstall_cmds='base_file=`basename \${file}`~
2834 - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
2835 - dldir=$destdir/`dirname \$dlpath`~
2836 - test -d \$dldir || mkdir -p \$dldir~
2837 - $install_prog $dir/$dlname \$dldir/$dlname~
2838 - chmod a+x \$dldir/$dlname'
2839 - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2840 - dlpath=$dir/\$dldll~
2842 - shlibpath_overrides_runpath=yes
2843 +# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
2844 +# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
2845 +# ----------------------------------------------------------------
2846 +m4_defun([_LT_TRY_DLOPEN_SELF],
2847 +[m4_require([_LT_HEADER_DLFCN])dnl
2848 +if test "$cross_compiling" = yes; then :
2851 + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
2852 + lt_status=$lt_dlunknown
2853 + cat > conftest.$ac_ext <<_LT_EOF
2854 +[#line __oline__ "configure"
2855 +#include "confdefs.h"
2859 - # Cygwin DLLs use 'cyg' prefix rather than 'lib'
2860 - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2861 - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
2864 - # MinGW DLLs use traditional 'lib' prefix
2865 - soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2866 - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2867 - if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
2868 - # It is most probably a Windows format PATH printed by
2869 - # mingw gcc, but we are running on Cygwin. Gcc prints its search
2870 - # path with ; separators, and with drive letters. We can handle the
2871 - # drive letters (cygwin fileutils understands them), so leave them,
2872 - # especially as we might pass files found there to a mingw objdump,
2873 - # which wouldn't understand a cygwinified path. Ahh.
2874 - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2876 - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2880 - # pw32 DLLs use 'pw' prefix rather than 'lib'
2881 - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2890 - library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
2893 - dynamic_linker='Win32 ld.exe'
2894 - # FIXME: first we should search . and the directory the executable is in
2895 - shlibpath_var=PATH
2899 -darwin* | rhapsody*)
2900 - dynamic_linker="$host_os dyld"
2901 - version_type=darwin
2902 - need_lib_prefix=no
2904 - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
2905 - soname_spec='${libname}${release}${major}$shared_ext'
2906 - shlibpath_overrides_runpath=yes
2907 - shlibpath_var=DYLD_LIBRARY_PATH
2908 - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
2910 - sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
2911 - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
2914 +# define LT_DLGLOBAL RTLD_GLOBAL
2917 +# define LT_DLGLOBAL DL_GLOBAL
2919 +# define LT_DLGLOBAL 0
2924 - version_type=linux
2925 - need_lib_prefix=no
2927 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
2928 - soname_spec='${libname}${release}${shared_ext}$major'
2929 - shlibpath_var=LD_LIBRARY_PATH
2931 +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
2932 + find out it does not work in some platform. */
2933 +#ifndef LT_DLLAZY_OR_NOW
2935 +# define LT_DLLAZY_OR_NOW RTLD_LAZY
2938 +# define LT_DLLAZY_OR_NOW DL_LAZY
2941 +# define LT_DLLAZY_OR_NOW RTLD_NOW
2944 +# define LT_DLLAZY_OR_NOW DL_NOW
2946 +# define LT_DLLAZY_OR_NOW 0
2957 +extern "C" void exit (int);
2960 -freebsd* | dragonfly*)
2961 - # DragonFly does not have aout. When/if they implement a new
2962 - # versioning mechanism, adjust this.
2963 - if test -x /usr/bin/objformat; then
2964 - objformat=`/usr/bin/objformat`
2965 +void fnord() { int i=42;}
2968 + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
2969 + int status = $lt_dlunknown;
2973 + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
2974 + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
2975 + /* dlclose (self); */
2979 - freebsd[[123]]*) objformat=aout ;;
2980 - *) objformat=elf ;;
2981 + puts (dlerror ());
2986 + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
2987 + (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
2989 + case x$lt_status in
2990 + x$lt_dlno_uscore) $1 ;;
2991 + x$lt_dlneed_uscore) $2 ;;
2992 + x$lt_dlunknown|x*) $3 ;;
2995 + # compilation failed
2998 - version_type=freebsd-$objformat
2999 - case $version_type in
3001 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
3003 - need_lib_prefix=no
3006 - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
3010 - shlibpath_var=LD_LIBRARY_PATH
3013 +])# _LT_TRY_DLOPEN_SELF
3016 +# LT_SYS_DLOPEN_SELF
3017 +# ------------------
3018 +AC_DEFUN([LT_SYS_DLOPEN_SELF],
3019 +[m4_require([_LT_HEADER_DLFCN])dnl
3020 +if test "x$enable_dlopen" != xyes; then
3021 + enable_dlopen=unknown
3022 + enable_dlopen_self=unknown
3023 + enable_dlopen_self_static=unknown
3026 + lt_cv_dlopen_libs=
3030 - shlibpath_overrides_runpath=yes
3032 - freebsd3.[[01]]* | freebsdelf3.[[01]]*)
3033 - shlibpath_overrides_runpath=yes
3034 - hardcode_into_libs=yes
3036 - freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
3037 - freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
3038 - shlibpath_overrides_runpath=no
3039 - hardcode_into_libs=yes
3041 + lt_cv_dlopen="load_add_on"
3042 + lt_cv_dlopen_libs=
3043 + lt_cv_dlopen_self=yes
3045 - *) # from 4.6 on, and DragonFly
3046 - shlibpath_overrides_runpath=yes
3047 - hardcode_into_libs=yes
3050 + lt_cv_dlopen="LoadLibrary"
3051 + lt_cv_dlopen_libs=
3057 - version_type=linux
3058 - need_lib_prefix=no
3060 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
3061 - soname_spec='${libname}${release}${shared_ext}$major'
3062 - shlibpath_var=LD_LIBRARY_PATH
3063 - hardcode_into_libs=yes
3066 + lt_cv_dlopen="dlopen"
3067 + lt_cv_dlopen_libs=
3070 -hpux9* | hpux10* | hpux11*)
3071 - # Give a soname corresponding to the major version so that dld.sl refuses to
3072 - # link against other versions.
3073 - version_type=sunos
3074 - need_lib_prefix=no
3079 - hardcode_into_libs=yes
3080 - dynamic_linker="$host_os dld.so"
3081 - shlibpath_var=LD_LIBRARY_PATH
3082 - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
3083 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3084 - soname_spec='${libname}${release}${shared_ext}$major'
3085 - if test "X$HPUX_IA64_MODE" = X32; then
3086 - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
3088 - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
3090 - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
3092 + # if libdl is installed we need to link against it
3093 + AC_CHECK_LIB([dl], [dlopen],
3094 + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
3095 + lt_cv_dlopen="dyld"
3096 + lt_cv_dlopen_libs=
3097 + lt_cv_dlopen_self=yes
3102 - hardcode_into_libs=yes
3103 - dynamic_linker="$host_os dld.sl"
3104 - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
3105 - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
3106 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3107 - soname_spec='${libname}${release}${shared_ext}$major'
3108 - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
3109 - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
3113 - dynamic_linker="$host_os dld.sl"
3114 - shlibpath_var=SHLIB_PATH
3115 - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
3116 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3117 - soname_spec='${libname}${release}${shared_ext}$major'
3120 + AC_CHECK_FUNC([shl_load],
3121 + [lt_cv_dlopen="shl_load"],
3122 + [AC_CHECK_LIB([dld], [shl_load],
3123 + [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
3124 + [AC_CHECK_FUNC([dlopen],
3125 + [lt_cv_dlopen="dlopen"],
3126 + [AC_CHECK_LIB([dl], [dlopen],
3127 + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
3128 + [AC_CHECK_LIB([svld], [dlopen],
3129 + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
3130 + [AC_CHECK_LIB([dld], [dld_link],
3131 + [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
3139 - # HP-UX runs *really* slowly unless shared libraries are mode 555.
3140 - postinstall_cmds='chmod 555 $lib'
3144 - version_type=linux
3145 - need_lib_prefix=no
3147 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
3148 - soname_spec='${libname}${release}${shared_ext}$major'
3149 - dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
3150 - shlibpath_var=LD_LIBRARY_PATH
3151 - shlibpath_overrides_runpath=no
3152 - hardcode_into_libs=yes
3154 + if test "x$lt_cv_dlopen" != xno; then
3160 -irix5* | irix6* | nonstopux*)
3162 - nonstopux*) version_type=nonstopux ;;
3164 - if test "$lt_cv_prog_gnu_ld" = yes; then
3165 - version_type=linux
3170 - need_lib_prefix=no
3172 - soname_spec='${libname}${release}${shared_ext}$major'
3173 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
3175 - irix5* | nonstopux*)
3176 - libsuff= shlibsuff=
3179 - case $LD in # libtool.m4 will add one of these switches to LD
3180 - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
3181 - libsuff= shlibsuff= libmagic=32-bit;;
3182 - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
3183 - libsuff=32 shlibsuff=N32 libmagic=N32;;
3184 - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
3185 - libsuff=64 shlibsuff=64 libmagic=64-bit;;
3186 - *) libsuff= shlibsuff= libmagic=never-match;;
3188 + case $lt_cv_dlopen in
3190 + save_CPPFLAGS="$CPPFLAGS"
3191 + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
3193 + save_LDFLAGS="$LDFLAGS"
3194 + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
3197 + LIBS="$lt_cv_dlopen_libs $LIBS"
3199 + AC_CACHE_CHECK([whether a program can dlopen itself],
3200 + lt_cv_dlopen_self, [dnl
3201 + _LT_TRY_DLOPEN_SELF(
3202 + lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
3203 + lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
3206 + if test "x$lt_cv_dlopen_self" = xyes; then
3207 + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
3208 + AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
3209 + lt_cv_dlopen_self_static, [dnl
3210 + _LT_TRY_DLOPEN_SELF(
3211 + lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
3212 + lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
3216 + CPPFLAGS="$save_CPPFLAGS"
3217 + LDFLAGS="$save_LDFLAGS"
3221 - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
3222 - shlibpath_overrides_runpath=no
3223 - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
3224 - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
3225 - hardcode_into_libs=yes
3228 -# No shared lib support for Linux oldld, aout, or coff.
3229 -linux*oldld* | linux*aout* | linux*coff*)
3232 + case $lt_cv_dlopen_self in
3233 + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
3234 + *) enable_dlopen_self=unknown ;;
3237 -# This must be Linux ELF.
3238 -linux* | k*bsd*-gnu)
3239 - version_type=linux
3240 - need_lib_prefix=no
3242 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3243 - soname_spec='${libname}${release}${shared_ext}$major'
3244 - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
3245 - shlibpath_var=LD_LIBRARY_PATH
3246 - shlibpath_overrides_runpath=no
3247 - # This implies no fast_install, which is unacceptable.
3248 - # Some rework will be needed to allow for fast_install
3249 - # before this can be enabled.
3250 - hardcode_into_libs=yes
3251 + case $lt_cv_dlopen_self_static in
3252 + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
3253 + *) enable_dlopen_self_static=unknown ;;
3256 +_LT_DECL([dlopen_support], [enable_dlopen], [0],
3257 + [Whether dlopen is supported])
3258 +_LT_DECL([dlopen_self], [enable_dlopen_self], [0],
3259 + [Whether dlopen of programs is supported])
3260 +_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
3261 + [Whether dlopen of statically linked programs is supported])
3262 +])# LT_SYS_DLOPEN_SELF
3265 +AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
3266 +dnl aclocal-1.4 backwards compatibility:
3267 +dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
3269 - # Append ld.so.conf contents to the search path
3270 - if test -f /etc/ld.so.conf; then
3271 - 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' ' '`
3272 - sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
3275 - # We used to test for /lib/ld.so.1 and disable shared libraries on
3276 - # powerpc, because MkLinux only supported shared libraries with the
3277 - # GNU dynamic linker. Since this was broken with cross compilers,
3278 - # most powerpc-linux boxes support dynamic linking these days and
3279 - # people can always --disable-shared, the test was removed, and we
3280 - # assume the GNU/Linux dynamic linker is in use.
3281 - dynamic_linker='GNU/Linux ld.so'
3283 +# _LT_COMPILER_C_O([TAGNAME])
3284 +# ---------------------------
3285 +# Check to see if options -c and -o are simultaneously supported by compiler.
3286 +# This macro does not hard code the compiler like AC_PROG_CC_C_O.
3287 +m4_defun([_LT_COMPILER_C_O],
3288 +[m4_require([_LT_DECL_SED])dnl
3289 +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
3290 +m4_require([_LT_TAG_COMPILER])dnl
3291 +AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
3292 + [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
3293 + [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
3294 + $RM -r conftest 2>/dev/null
3298 + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
3301 - version_type=sunos
3302 - need_lib_prefix=no
3304 - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3305 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
3306 - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
3307 - dynamic_linker='NetBSD (a.out) ld.so'
3309 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
3310 - soname_spec='${libname}${release}${shared_ext}$major'
3311 - dynamic_linker='NetBSD ld.elf_so'
3313 - shlibpath_var=LD_LIBRARY_PATH
3314 - shlibpath_overrides_runpath=yes
3315 - hardcode_into_libs=yes
3317 + lt_compiler_flag="-o out/conftest2.$ac_objext"
3318 + # Insert the option either (1) after the last *FLAGS variable, or
3319 + # (2) before a word containing "conftest.", or (3) at the end.
3320 + # Note that $ac_compile itself does not contain backslashes and begins
3321 + # with a dollar sign (not a hyphen), so the echo should work correctly.
3322 + lt_compile=`echo "$ac_compile" | $SED \
3323 + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
3324 + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
3325 + -e 's:$: $lt_compiler_flag:'`
3326 + (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
3327 + (eval "$lt_compile" 2>out/conftest.err)
3329 + cat out/conftest.err >&AS_MESSAGE_LOG_FD
3330 + echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
3331 + if (exit $ac_status) && test -s out/conftest2.$ac_objext
3333 + # The compiler can only warn and ignore the option if not recognized
3334 + # So say no if there are warnings
3335 + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
3336 + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
3337 + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
3338 + _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
3341 + chmod u+w . 2>&AS_MESSAGE_LOG_FD
3343 + # SGI C++ compiler will create directory out/ii_files/ for
3344 + # template instantiation
3345 + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
3346 + $RM out/* && rmdir out
3351 +_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
3352 + [Does compiler simultaneously support -c and -o options?])
3353 +])# _LT_COMPILER_C_O
3356 - version_type=linux
3357 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3358 - shlibpath_var=LD_LIBRARY_PATH
3359 - shlibpath_overrides_runpath=yes
3363 - version_type=linux
3364 - need_lib_prefix=no
3366 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3367 - soname_spec='${libname}${release}${shared_ext}$major'
3368 - shlibpath_var=LD_LIBRARY_PATH
3369 - shlibpath_overrides_runpath=yes
3371 +# _LT_COMPILER_FILE_LOCKS([TAGNAME])
3372 +# ----------------------------------
3373 +# Check to see if we can do hard links to lock some files if needed
3374 +m4_defun([_LT_COMPILER_FILE_LOCKS],
3375 +[m4_require([_LT_ENABLE_LOCK])dnl
3376 +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
3377 +_LT_COMPILER_C_O([$1])
3380 - version_type=sunos
3381 - sys_lib_dlsearch_path_spec="/usr/lib"
3382 - need_lib_prefix=no
3383 - # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
3385 - openbsd3.3 | openbsd3.3.*) need_version=yes ;;
3386 - *) need_version=no ;;
3388 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
3389 - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
3390 - shlibpath_var=LD_LIBRARY_PATH
3391 - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3393 - openbsd2.[[89]] | openbsd2.[[89]].*)
3394 - shlibpath_overrides_runpath=no
3397 - shlibpath_overrides_runpath=yes
3401 - shlibpath_overrides_runpath=yes
3402 +hard_links="nottested"
3403 +if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
3404 + # do not overwrite the value of need_locks provided by the user
3405 + AC_MSG_CHECKING([if we can lock with hard links])
3408 + ln conftest.a conftest.b 2>/dev/null && hard_links=no
3410 + ln conftest.a conftest.b 2>&5 || hard_links=no
3411 + ln conftest.a conftest.b 2>/dev/null && hard_links=no
3412 + AC_MSG_RESULT([$hard_links])
3413 + if test "$hard_links" = no; then
3414 + AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
3421 +_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
3422 +])# _LT_COMPILER_FILE_LOCKS
3425 - libname_spec='$name'
3426 - shrext_cmds=".dll"
3427 - need_lib_prefix=no
3428 - library_names_spec='$libname${shared_ext} $libname.a'
3429 - dynamic_linker='OS/2 ld.exe'
3430 - shlibpath_var=LIBPATH
3433 -osf3* | osf4* | osf5*)
3435 - need_lib_prefix=no
3437 - soname_spec='${libname}${release}${shared_ext}$major'
3438 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3439 - shlibpath_var=LD_LIBRARY_PATH
3440 - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
3441 - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
3445 +m4_defun([_LT_CHECK_OBJDIR],
3446 +[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
3447 +[rm -f .libs 2>/dev/null
3448 +mkdir .libs 2>/dev/null
3449 +if test -d .libs; then
3450 + lt_cv_objdir=.libs
3452 + # MS-DOS does not allow filenames that begin with a dot.
3453 + lt_cv_objdir=_libs
3455 +rmdir .libs 2>/dev/null])
3456 +objdir=$lt_cv_objdir
3457 +_LT_DECL([], [objdir], [0],
3458 + [The name of the directory that contains temporary libtool files])dnl
3459 +m4_pattern_allow([LT_OBJDIR])dnl
3460 +AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
3461 + [Define to the sub-directory in which libtool stores uninstalled libraries.])
3462 +])# _LT_CHECK_OBJDIR
3469 - version_type=linux
3470 - need_lib_prefix=no
3472 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3473 - soname_spec='${libname}${release}${shared_ext}$major'
3474 - shlibpath_var=LD_LIBRARY_PATH
3475 - shlibpath_overrides_runpath=yes
3476 - hardcode_into_libs=yes
3477 - # ldd complains unless libraries are executable
3478 - postinstall_cmds='chmod +x $lib'
3480 +# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
3481 +# --------------------------------------
3482 +# Check hardcoding attributes.
3483 +m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
3484 +[AC_MSG_CHECKING([how to hardcode library paths into programs])
3485 +_LT_TAGVAR(hardcode_action, $1)=
3486 +if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
3487 + test -n "$_LT_TAGVAR(runpath_var, $1)" ||
3488 + test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
3491 - version_type=sunos
3492 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
3493 - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
3494 - shlibpath_var=LD_LIBRARY_PATH
3495 - shlibpath_overrides_runpath=yes
3496 - if test "$with_gnu_ld" = yes; then
3497 - need_lib_prefix=no
3498 + # We can hardcode non-existent directories.
3499 + if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
3500 + # If the only mechanism to avoid hardcoding is shlibpath_var, we
3501 + # have to relink, otherwise we might link with an installed library
3502 + # when we should be linking with a yet-to-be-installed one
3503 + ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
3504 + test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
3505 + # Linking always hardcodes the temporary library directory.
3506 + _LT_TAGVAR(hardcode_action, $1)=relink
3508 + # We can link without hardcoding, and we can hardcode nonexisting dirs.
3509 + _LT_TAGVAR(hardcode_action, $1)=immediate
3514 + # We cannot hardcode anything, or else we can only hardcode existing
3516 + _LT_TAGVAR(hardcode_action, $1)=unsupported
3518 +AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
3521 - version_type=linux
3522 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3523 - soname_spec='${libname}${release}${shared_ext}$major'
3524 - shlibpath_var=LD_LIBRARY_PATH
3525 - case $host_vendor in
3527 - shlibpath_overrides_runpath=no
3528 - need_lib_prefix=no
3529 - export_dynamic_flag_spec='${wl}-Blargedynsym'
3530 - runpath_var=LD_RUN_PATH
3533 - need_lib_prefix=no
3536 - need_lib_prefix=no
3538 - shlibpath_overrides_runpath=no
3539 - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
3541 +if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
3542 + test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
3543 + # Fast installation is not supported
3544 + enable_fast_install=no
3545 +elif test "$shlibpath_overrides_runpath" = yes ||
3546 + test "$enable_shared" = no; then
3547 + # Fast installation is not necessary
3548 + enable_fast_install=needless
3550 +_LT_TAGDECL([], [hardcode_action], [0],
3551 + [How to hardcode a shared library path into an executable])
3552 +])# _LT_LINKER_HARDCODE_LIBPATH
3557 +m4_defun([_LT_CMD_STRIPLIB],
3558 +[m4_require([_LT_DECL_EGREP])
3561 +AC_MSG_CHECKING([whether stripping libraries is possible])
3562 +if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
3563 + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
3564 + test -z "$striplib" && striplib="$STRIP --strip-unneeded"
3565 + AC_MSG_RESULT([yes])
3567 +# FIXME - insert some real tests, host_os isn't really good enough
3570 + if test -n "$STRIP" ; then
3571 + striplib="$STRIP -x"
3572 + old_striplib="$STRIP -S"
3573 + AC_MSG_RESULT([yes])
3575 + AC_MSG_RESULT([no])
3579 + AC_MSG_RESULT([no])
3584 +_LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
3585 +_LT_DECL([], [striplib], [1])
3586 +])# _LT_CMD_STRIPLIB
3589 - if test -d /usr/nec ;then
3590 - version_type=linux
3591 - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
3592 - soname_spec='$libname${shared_ext}.$major'
3593 - shlibpath_var=LD_LIBRARY_PATH
3595 +# _LT_SYS_DYNAMIC_LINKER([TAG])
3596 +# -----------------------------
3597 +# PORTME Fill in your ld.so characteristics
3598 +m4_defun([_LT_SYS_DYNAMIC_LINKER],
3599 +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
3600 +m4_require([_LT_DECL_EGREP])dnl
3601 +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
3602 +m4_require([_LT_DECL_SED])dnl
3603 +AC_MSG_CHECKING([dynamic linker characteristics])
3606 +if test "$GCC" = yes; then
3608 + darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
3609 + *) lt_awk_arg="/^libraries:/" ;;
3611 + lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
3612 + if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
3613 + # if the path contains ";" then we assume it to be the separator
3614 + # otherwise default to the standard path separator (i.e. ":") - it is
3615 + # assumed that no part of a normal pathname contains ";" but that should
3616 + # okay in the real world where ";" in dirpaths is itself problematic.
3617 + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
3619 + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
3621 + # Ok, now we have the path, separated by spaces, we can step through it
3622 + # and add multilib dir if necessary.
3623 + lt_tmp_lt_search_path_spec=
3624 + lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
3625 + for lt_sys_path in $lt_search_path_spec; do
3626 + if test -d "$lt_sys_path/$lt_multi_os_dir"; then
3627 + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
3629 + test -d "$lt_sys_path" && \
3630 + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
3633 + lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
3634 +BEGIN {RS=" "; FS="/|\n";} {
3637 + for (lt_i = NF; lt_i > 0; lt_i--) {
3638 + if ($lt_i != "" && $lt_i != ".") {
3639 + if ($lt_i == "..") {
3642 + if (lt_count == 0) {
3643 + lt_foo="/" $lt_i lt_foo;
3650 + if (lt_foo != "") { lt_freq[[lt_foo]]++; }
3651 + if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
3653 + sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
3655 + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
3657 +library_names_spec=
3658 +libname_spec='lib$name'
3662 +postuninstall_cmds=
3666 +shlibpath_overrides_runpath=unknown
3668 +dynamic_linker="$host_os ld.so"
3669 +sys_lib_dlsearch_path_spec="/lib /usr/lib"
3670 +need_lib_prefix=unknown
3671 +hardcode_into_libs=no
3673 +# when you set need_version to no, make sure it does not cause -set_version
3674 +# flags to be left without arguments
3675 +need_version=unknown
3679 + version_type=linux
3680 + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
3681 + shlibpath_var=LIBPATH
3683 + # AIX 3 has no versioning support, so we append a major version to the name.
3684 + soname_spec='${libname}${release}${shared_ext}$major'
3687 -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3688 - version_type=freebsd-elf
3690 + version_type=linux
3693 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
3694 - soname_spec='${libname}${release}${shared_ext}$major'
3695 - shlibpath_var=LD_LIBRARY_PATH
3696 hardcode_into_libs=yes
3697 - if test "$with_gnu_ld" = yes; then
3698 - sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
3699 - shlibpath_overrides_runpath=no
3700 + if test "$host_cpu" = ia64; then
3701 + # AIX 5 supports IA64
3702 + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
3703 + shlibpath_var=LD_LIBRARY_PATH
3705 - sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
3706 - shlibpath_overrides_runpath=yes
3707 + # With GCC up to 2.95.x, collect2 would create an import file
3708 + # for dependence libraries. The import file would start with
3709 + # the line `#! .'. This would cause the generated library to
3710 + # depend on `.', always an invalid library. This was fixed in
3711 + # development snapshots of GCC prior to 3.0.
3714 - sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
3716 + aix4 | aix4.[[01]] | aix4.[[01]].*)
3717 + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
3719 + echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
3722 + can_build_shared=no
3726 + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
3727 + # soname into executable. Probably we can add versioning support to
3728 + # collect2, so additional links can be useful in future.
3729 + if test "$aix_use_runtimelinking" = yes; then
3730 + # If using run time linking (on AIX 4.2 or later) use lib<name>.so
3731 + # instead of lib<name>.a to let people know that these are not
3732 + # typical AIX shared libraries.
3733 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3735 + # We preserve .a as extension for shared libraries through AIX4.2
3736 + # and later when we are not doing run time linking.
3737 + library_names_spec='${libname}${release}.a $libname.a'
3738 + soname_spec='${libname}${release}${shared_ext}$major'
3740 + shlibpath_var=LIBPATH
3742 - sys_lib_dlsearch_path_spec='/usr/lib'
3749 + # Since July 2007 AmigaOS4 officially supports .so libraries.
3750 + # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
3751 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3754 + library_names_spec='$libname.ixlibrary $libname.a'
3755 + # Create ${libname}_ixlibrary.a entries in /sys/libs.
3756 + 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'
3762 + library_names_spec='${libname}${shared_ext}'
3763 + dynamic_linker="$host_os ld.so"
3764 + shlibpath_var=LIBRARY_PATH
3770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3771 soname_spec='${libname}${release}${shared_ext}$major'
3772 + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
3773 shlibpath_var=LD_LIBRARY_PATH
3774 + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
3775 + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
3776 + # the default ld.so.conf also contains /usr/contrib/lib and
3777 + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
3778 + # libtool to hard-code these into programs
3785 -AC_MSG_RESULT([$dynamic_linker])
3786 -test "$dynamic_linker" = no && can_build_shared=no
3788 -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
3789 -if test "$GCC" = yes; then
3790 - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
3792 -])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
3793 +cygwin* | mingw* | pw32*)
3794 + version_type=windows
3795 + shrext_cmds=".dll"
3797 + need_lib_prefix=no
3799 + case $GCC,$host_os in
3800 + yes,cygwin* | yes,mingw* | yes,pw32*)
3801 + library_names_spec='$libname.dll.a'
3802 + # DLL is installed to $(libdir)/../bin by postinstall_cmds
3803 + postinstall_cmds='base_file=`basename \${file}`~
3804 + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
3805 + dldir=$destdir/`dirname \$dlpath`~
3806 + test -d \$dldir || mkdir -p \$dldir~
3807 + $install_prog $dir/$dlname \$dldir/$dlname~
3808 + chmod a+x \$dldir/$dlname~
3809 + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
3810 + eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
3812 + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
3813 + dlpath=$dir/\$dldll~
3815 + shlibpath_overrides_runpath=yes
3819 -AC_DEFUN([_LT_AC_TAGCONFIG],
3820 -[AC_REQUIRE([LT_AC_PROG_SED])dnl
3821 -AC_ARG_WITH([tags],
3822 - [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
3823 - [include additional configurations @<:@automatic@:>@])],
3824 - [tagnames="$withval"])
3826 -if test -f "$ltmain" && test -n "$tagnames"; then
3827 - if test ! -f "${ofile}"; then
3828 - AC_MSG_WARN([output file `$ofile' does not exist])
3831 - if test -z "$LTCC"; then
3832 - eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
3833 - if test -z "$LTCC"; then
3834 - AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
3836 - AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
3839 - if test -z "$LTCFLAGS"; then
3840 - eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
3843 - # Extract list of available tagged configurations in $ofile.
3844 - # Note that this assumes the entire list is on one line.
3845 - available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
3847 - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3848 - for tagname in $tagnames; do
3849 - IFS="$lt_save_ifs"
3850 - # Check whether tagname contains only valid characters
3851 - case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
3853 - *) AC_MSG_ERROR([invalid tag name: $tagname])
3857 + # Cygwin DLLs use 'cyg' prefix rather than 'lib'
3858 + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
3859 + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
3862 + # MinGW DLLs use traditional 'lib' prefix
3863 + soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
3864 + sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
3865 + if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
3866 + # It is most probably a Windows format PATH printed by
3867 + # mingw gcc, but we are running on Cygwin. Gcc prints its search
3868 + # path with ; separators, and with drive letters. We can handle the
3869 + # drive letters (cygwin fileutils understands them), so leave them,
3870 + # especially as we might pass files found there to a mingw objdump,
3871 + # which wouldn't understand a cygwinified path. Ahh.
3872 + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
3874 + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
3878 + # pw32 DLLs use 'pw' prefix rather than 'lib'
3879 + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
3884 - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
3886 - AC_MSG_ERROR([tag name \"$tagname\" already exists])
3889 - # Update the list of available tags.
3890 - if test -n "$tagname"; then
3891 - echo appending configuration tag \"$tagname\" to $ofile
3895 - if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
3896 - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
3897 - (test "X$CXX" != "Xg++"))) ; then
3898 - AC_LIBTOOL_LANG_CXX_CONFIG
3905 - if test -n "$F77" && test "X$F77" != "Xno"; then
3906 - AC_LIBTOOL_LANG_F77_CONFIG
3913 - if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
3914 - AC_LIBTOOL_LANG_GCJ_CONFIG
3920 + library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
3923 + dynamic_linker='Win32 ld.exe'
3924 + # FIXME: first we should search . and the directory the executable is in
3925 + shlibpath_var=PATH
3929 - AC_LIBTOOL_LANG_RC_CONFIG
3931 +darwin* | rhapsody*)
3932 + dynamic_linker="$host_os dyld"
3933 + version_type=darwin
3934 + need_lib_prefix=no
3936 + library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
3937 + soname_spec='${libname}${release}${major}$shared_ext'
3938 + shlibpath_overrides_runpath=yes
3939 + shlibpath_var=DYLD_LIBRARY_PATH
3940 + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
3942 + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
3943 + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
3947 - AC_MSG_ERROR([Unsupported tag name: $tagname])
3951 + version_type=linux
3952 + need_lib_prefix=no
3954 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
3955 + soname_spec='${libname}${release}${shared_ext}$major'
3956 + shlibpath_var=LD_LIBRARY_PATH
3959 - # Append the new tag name to the list of available tags.
3960 - if test -n "$tagname" ; then
3961 - available_tags="$available_tags $tagname"
3965 - IFS="$lt_save_ifs"
3970 - # Now substitute the updated list of available tags.
3971 - if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
3972 - mv "${ofile}T" "$ofile"
3974 +freebsd* | dragonfly*)
3975 + # DragonFly does not have aout. When/if they implement a new
3976 + # versioning mechanism, adjust this.
3977 + if test -x /usr/bin/objformat; then
3978 + objformat=`/usr/bin/objformat`
3981 - AC_MSG_ERROR([unable to update list of available tagged configurations.])
3983 + freebsd[[123]]*) objformat=aout ;;
3984 + *) objformat=elf ;;
3988 -])# _LT_AC_TAGCONFIG
3991 -# AC_LIBTOOL_DLOPEN
3992 -# -----------------
3993 -# enable checks for dlopen support
3994 -AC_DEFUN([AC_LIBTOOL_DLOPEN],
3995 - [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
3996 -])# AC_LIBTOOL_DLOPEN
3999 -# AC_LIBTOOL_WIN32_DLL
4000 -# --------------------
4001 -# declare package support for building win32 DLLs
4002 -AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
4003 -[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
4004 -])# AC_LIBTOOL_WIN32_DLL
4007 -# AC_ENABLE_SHARED([DEFAULT])
4008 -# ---------------------------
4009 -# implement the --enable-shared flag
4010 -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
4011 -AC_DEFUN([AC_ENABLE_SHARED],
4012 -[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
4013 -AC_ARG_ENABLE([shared],
4014 - [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
4015 - [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
4016 - [p=${PACKAGE-default}
4017 - case $enableval in
4018 - yes) enable_shared=yes ;;
4019 - no) enable_shared=no ;;
4022 - # Look at the argument we got. We use all the common list separators.
4023 - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4024 - for pkg in $enableval; do
4025 - IFS="$lt_save_ifs"
4026 - if test "X$pkg" = "X$p"; then
4030 - IFS="$lt_save_ifs"
4031 + version_type=freebsd-$objformat
4032 + case $version_type in
4034 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
4036 + need_lib_prefix=no
4039 + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
4043 - [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
4044 -])# AC_ENABLE_SHARED
4046 + shlibpath_var=LD_LIBRARY_PATH
4049 + shlibpath_overrides_runpath=yes
4051 + freebsd3.[[01]]* | freebsdelf3.[[01]]*)
4052 + shlibpath_overrides_runpath=yes
4053 + hardcode_into_libs=yes
4055 + freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
4056 + freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
4057 + shlibpath_overrides_runpath=no
4058 + hardcode_into_libs=yes
4060 + *) # from 4.6 on, and DragonFly
4061 + shlibpath_overrides_runpath=yes
4062 + hardcode_into_libs=yes
4068 + version_type=linux
4069 + need_lib_prefix=no
4071 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
4072 + soname_spec='${libname}${release}${shared_ext}$major'
4073 + shlibpath_var=LD_LIBRARY_PATH
4074 + hardcode_into_libs=yes
4077 -# AC_DISABLE_SHARED
4078 -# -----------------
4079 -# set the default shared flag to --disable-shared
4080 -AC_DEFUN([AC_DISABLE_SHARED],
4081 -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
4082 -AC_ENABLE_SHARED(no)
4083 -])# AC_DISABLE_SHARED
4084 +hpux9* | hpux10* | hpux11*)
4085 + # Give a soname corresponding to the major version so that dld.sl refuses to
4086 + # link against other versions.
4087 + version_type=sunos
4088 + need_lib_prefix=no
4093 + hardcode_into_libs=yes
4094 + dynamic_linker="$host_os dld.so"
4095 + shlibpath_var=LD_LIBRARY_PATH
4096 + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
4097 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4098 + soname_spec='${libname}${release}${shared_ext}$major'
4099 + if test "X$HPUX_IA64_MODE" = X32; then
4100 + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
4102 + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
4104 + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
4108 + hardcode_into_libs=yes
4109 + dynamic_linker="$host_os dld.sl"
4110 + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
4111 + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
4112 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4113 + soname_spec='${libname}${release}${shared_ext}$major'
4114 + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
4115 + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
4119 + dynamic_linker="$host_os dld.sl"
4120 + shlibpath_var=SHLIB_PATH
4121 + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
4122 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4123 + soname_spec='${libname}${release}${shared_ext}$major'
4126 + # HP-UX runs *really* slowly unless shared libraries are mode 555.
4127 + postinstall_cmds='chmod 555 $lib'
4131 + version_type=linux
4132 + need_lib_prefix=no
4134 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
4135 + soname_spec='${libname}${release}${shared_ext}$major'
4136 + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
4137 + shlibpath_var=LD_LIBRARY_PATH
4138 + shlibpath_overrides_runpath=no
4139 + hardcode_into_libs=yes
4142 -# AC_ENABLE_STATIC([DEFAULT])
4143 -# ---------------------------
4144 -# implement the --enable-static flag
4145 -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
4146 -AC_DEFUN([AC_ENABLE_STATIC],
4147 -[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
4148 -AC_ARG_ENABLE([static],
4149 - [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
4150 - [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
4151 - [p=${PACKAGE-default}
4152 - case $enableval in
4153 - yes) enable_static=yes ;;
4154 - no) enable_static=no ;;
4155 +irix5* | irix6* | nonstopux*)
4157 + nonstopux*) version_type=nonstopux ;;
4160 - # Look at the argument we got. We use all the common list separators.
4161 - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4162 - for pkg in $enableval; do
4163 - IFS="$lt_save_ifs"
4164 - if test "X$pkg" = "X$p"; then
4168 - IFS="$lt_save_ifs"
4171 - [enable_static=]AC_ENABLE_STATIC_DEFAULT)
4172 -])# AC_ENABLE_STATIC
4173 + if test "$lt_cv_prog_gnu_ld" = yes; then
4174 + version_type=linux
4179 + need_lib_prefix=no
4181 + soname_spec='${libname}${release}${shared_ext}$major'
4182 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
4184 + irix5* | nonstopux*)
4185 + libsuff= shlibsuff=
4188 + case $LD in # libtool.m4 will add one of these switches to LD
4189 + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
4190 + libsuff= shlibsuff= libmagic=32-bit;;
4191 + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
4192 + libsuff=32 shlibsuff=N32 libmagic=N32;;
4193 + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
4194 + libsuff=64 shlibsuff=64 libmagic=64-bit;;
4195 + *) libsuff= shlibsuff= libmagic=never-match;;
4199 + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
4200 + shlibpath_overrides_runpath=no
4201 + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
4202 + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
4203 + hardcode_into_libs=yes
4206 +# No shared lib support for Linux oldld, aout, or coff.
4207 +linux*oldld* | linux*aout* | linux*coff*)
4211 -# AC_DISABLE_STATIC
4212 -# -----------------
4213 -# set the default static flag to --disable-static
4214 -AC_DEFUN([AC_DISABLE_STATIC],
4215 -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
4216 -AC_ENABLE_STATIC(no)
4217 -])# AC_DISABLE_STATIC
4218 +# This must be Linux ELF.
4219 +linux* | k*bsd*-gnu)
4220 + version_type=linux
4221 + need_lib_prefix=no
4223 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4224 + soname_spec='${libname}${release}${shared_ext}$major'
4225 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
4226 + shlibpath_var=LD_LIBRARY_PATH
4227 + shlibpath_overrides_runpath=no
4228 + # Some binutils ld are patched to set DT_RUNPATH
4229 + save_LDFLAGS=$LDFLAGS
4230 + save_libdir=$libdir
4231 + eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
4232 + LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
4233 + AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
4234 + [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
4235 + [shlibpath_overrides_runpath=yes])])
4236 + LDFLAGS=$save_LDFLAGS
4237 + libdir=$save_libdir
4239 + # This implies no fast_install, which is unacceptable.
4240 + # Some rework will be needed to allow for fast_install
4241 + # before this can be enabled.
4242 + hardcode_into_libs=yes
4244 -# AC_ENABLE_FAST_INSTALL([DEFAULT])
4245 -# ---------------------------------
4246 -# implement the --enable-fast-install flag
4247 -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
4248 -AC_DEFUN([AC_ENABLE_FAST_INSTALL],
4249 -[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
4250 -AC_ARG_ENABLE([fast-install],
4251 - [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
4252 - [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
4253 - [p=${PACKAGE-default}
4254 - case $enableval in
4255 - yes) enable_fast_install=yes ;;
4256 - no) enable_fast_install=no ;;
4258 - enable_fast_install=no
4259 - # Look at the argument we got. We use all the common list separators.
4260 - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4261 - for pkg in $enableval; do
4262 - IFS="$lt_save_ifs"
4263 - if test "X$pkg" = "X$p"; then
4264 - enable_fast_install=yes
4267 - IFS="$lt_save_ifs"
4268 + # Append ld.so.conf contents to the search path
4269 + if test -f /etc/ld.so.conf; then
4270 + 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' ' '`
4271 + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
4274 + # We used to test for /lib/ld.so.1 and disable shared libraries on
4275 + # powerpc, because MkLinux only supported shared libraries with the
4276 + # GNU dynamic linker. Since this was broken with cross compilers,
4277 + # most powerpc-linux boxes support dynamic linking these days and
4278 + # people can always --disable-shared, the test was removed, and we
4279 + # assume the GNU/Linux dynamic linker is in use.
4280 + dynamic_linker='GNU/Linux ld.so'
4284 + version_type=sunos
4285 + need_lib_prefix=no
4287 + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
4288 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4289 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4290 + dynamic_linker='NetBSD (a.out) ld.so'
4292 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
4293 + soname_spec='${libname}${release}${shared_ext}$major'
4294 + dynamic_linker='NetBSD ld.elf_so'
4296 + shlibpath_var=LD_LIBRARY_PATH
4297 + shlibpath_overrides_runpath=yes
4298 + hardcode_into_libs=yes
4302 + version_type=linux
4303 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4304 + shlibpath_var=LD_LIBRARY_PATH
4305 + shlibpath_overrides_runpath=yes
4310 + need_lib_prefix=no
4312 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4313 + soname_spec='${libname}${release}${shared_ext}$major'
4314 + shlibpath_var=LD_LIBRARY_PATH
4315 + shlibpath_overrides_runpath=no
4316 + hardcode_into_libs=yes
4317 + dynamic_linker='ldqnx.so'
4321 + version_type=sunos
4322 + sys_lib_dlsearch_path_spec="/usr/lib"
4323 + need_lib_prefix=no
4324 + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
4326 + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
4327 + *) need_version=no ;;
4329 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4330 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4331 + shlibpath_var=LD_LIBRARY_PATH
4332 + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4334 + openbsd2.[[89]] | openbsd2.[[89]].*)
4335 + shlibpath_overrides_runpath=no
4338 + shlibpath_overrides_runpath=yes
4342 + shlibpath_overrides_runpath=yes
4347 + libname_spec='$name'
4348 + shrext_cmds=".dll"
4349 + need_lib_prefix=no
4350 + library_names_spec='$libname${shared_ext} $libname.a'
4351 + dynamic_linker='OS/2 ld.exe'
4352 + shlibpath_var=LIBPATH
4355 +osf3* | osf4* | osf5*)
4357 + need_lib_prefix=no
4359 + soname_spec='${libname}${release}${shared_ext}$major'
4360 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4361 + shlibpath_var=LD_LIBRARY_PATH
4362 + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
4363 + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
4371 + version_type=linux
4372 + need_lib_prefix=no
4374 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4375 + soname_spec='${libname}${release}${shared_ext}$major'
4376 + shlibpath_var=LD_LIBRARY_PATH
4377 + shlibpath_overrides_runpath=yes
4378 + hardcode_into_libs=yes
4379 + # ldd complains unless libraries are executable
4380 + postinstall_cmds='chmod +x $lib'
4384 + version_type=sunos
4385 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4386 + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
4387 + shlibpath_var=LD_LIBRARY_PATH
4388 + shlibpath_overrides_runpath=yes
4389 + if test "$with_gnu_ld" = yes; then
4390 + need_lib_prefix=no
4396 + version_type=linux
4397 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4398 + soname_spec='${libname}${release}${shared_ext}$major'
4399 + shlibpath_var=LD_LIBRARY_PATH
4400 + case $host_vendor in
4402 + shlibpath_overrides_runpath=no
4403 + need_lib_prefix=no
4404 + runpath_var=LD_RUN_PATH
4407 + need_lib_prefix=no
4410 + need_lib_prefix=no
4412 + shlibpath_overrides_runpath=no
4413 + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
4416 - [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
4417 -])# AC_ENABLE_FAST_INSTALL
4422 + if test -d /usr/nec ;then
4423 + version_type=linux
4424 + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
4425 + soname_spec='$libname${shared_ext}.$major'
4426 + shlibpath_var=LD_LIBRARY_PATH
4430 -# AC_DISABLE_FAST_INSTALL
4431 -# -----------------------
4432 -# set the default to --disable-fast-install
4433 -AC_DEFUN([AC_DISABLE_FAST_INSTALL],
4434 -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
4435 -AC_ENABLE_FAST_INSTALL(no)
4436 -])# AC_DISABLE_FAST_INSTALL
4437 +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4438 + version_type=freebsd-elf
4439 + need_lib_prefix=no
4441 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
4442 + soname_spec='${libname}${release}${shared_ext}$major'
4443 + shlibpath_var=LD_LIBRARY_PATH
4444 + shlibpath_overrides_runpath=yes
4445 + hardcode_into_libs=yes
4446 + if test "$with_gnu_ld" = yes; then
4447 + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
4449 + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
4452 + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
4456 + sys_lib_dlsearch_path_spec='/usr/lib'
4460 + # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
4461 + version_type=linux
4462 + need_lib_prefix=no
4464 + library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4465 + shlibpath_var=LD_LIBRARY_PATH
4466 + shlibpath_overrides_runpath=no
4467 + hardcode_into_libs=yes
4471 + version_type=linux
4472 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4473 + soname_spec='${libname}${release}${shared_ext}$major'
4474 + shlibpath_var=LD_LIBRARY_PATH
4477 -# AC_LIBTOOL_PICMODE([MODE])
4478 -# --------------------------
4479 -# implement the --with-pic flag
4480 -# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
4481 -AC_DEFUN([AC_LIBTOOL_PICMODE],
4482 -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
4483 -pic_mode=ifelse($#,1,$1,default)
4484 -])# AC_LIBTOOL_PICMODE
4489 +AC_MSG_RESULT([$dynamic_linker])
4490 +test "$dynamic_linker" = no && can_build_shared=no
4492 +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
4493 +if test "$GCC" = yes; then
4494 + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
4497 +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
4498 + sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
4500 +if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
4501 + sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
4506 -# This is predefined starting with Autoconf 2.54, so this conditional
4507 -# definition can be removed once we require Autoconf 2.54 or later.
4508 -m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
4509 -[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
4510 - [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4511 - then ac_cv_prog_egrep='grep -E'
4512 - else ac_cv_prog_egrep='egrep'
4514 - EGREP=$ac_cv_prog_egrep
4517 +_LT_DECL([], [variables_saved_for_relink], [1],
4518 + [Variables whose values should be saved in libtool wrapper scripts and
4519 + restored at link time])
4520 +_LT_DECL([], [need_lib_prefix], [0],
4521 + [Do we need the "lib" prefix for modules?])
4522 +_LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
4523 +_LT_DECL([], [version_type], [0], [Library versioning type])
4524 +_LT_DECL([], [runpath_var], [0], [Shared library runtime path variable])
4525 +_LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
4526 +_LT_DECL([], [shlibpath_overrides_runpath], [0],
4527 + [Is shlibpath searched before the hard-coded library search path?])
4528 +_LT_DECL([], [libname_spec], [1], [Format of library name prefix])
4529 +_LT_DECL([], [library_names_spec], [1],
4530 + [[List of archive names. First name is the real one, the rest are links.
4531 + The last name is the one that the linker finds with -lNAME]])
4532 +_LT_DECL([], [soname_spec], [1],
4533 + [[The coded name of the library, if different from the real name]])
4534 +_LT_DECL([], [postinstall_cmds], [2],
4535 + [Command to use after installation of a shared archive])
4536 +_LT_DECL([], [postuninstall_cmds], [2],
4537 + [Command to use after uninstallation of a shared archive])
4538 +_LT_DECL([], [finish_cmds], [2],
4539 + [Commands used to finish a libtool library installation in a directory])
4540 +_LT_DECL([], [finish_eval], [1],
4541 + [[As "finish_cmds", except a single script fragment to be evaled but
4543 +_LT_DECL([], [hardcode_into_libs], [0],
4544 + [Whether we should hardcode library paths into libraries])
4545 +_LT_DECL([], [sys_lib_search_path_spec], [2],
4546 + [Compile-time system search path for libraries])
4547 +_LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
4548 + [Run-time system search path for libraries])
4549 +])# _LT_SYS_DYNAMIC_LINKER
4552 -# AC_PATH_TOOL_PREFIX
4553 -# -------------------
4554 +# _LT_PATH_TOOL_PREFIX(TOOL)
4555 +# --------------------------
4556 # find a file program which can recognize shared library
4557 -AC_DEFUN([AC_PATH_TOOL_PREFIX],
4558 -[AC_REQUIRE([AC_PROG_EGREP])dnl
4559 +AC_DEFUN([_LT_PATH_TOOL_PREFIX],
4560 +[m4_require([_LT_DECL_EGREP])dnl
4561 AC_MSG_CHECKING([for $1])
4562 AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
4564 @@ -2100,7 +2740,7 @@
4565 dnl $ac_dummy forces splitting on constant user-supplied paths.
4566 dnl POSIX.2 word splitting is done only on the output of word expansions,
4567 dnl not every word. This closes a longstanding sh security hole.
4568 - ac_dummy="ifelse([$2], , $PATH, [$2])"
4569 + ac_dummy="m4_if([$2], , $PATH, [$2])"
4570 for ac_dir in $ac_dummy; do
4572 test -z "$ac_dir" && ac_dir=.
4573 @@ -2115,7 +2755,7 @@
4574 $EGREP "$file_magic_regex" > /dev/null; then
4578 + cat <<_LT_EOF 1>&2
4580 *** Warning: the command libtool uses to detect shared libraries,
4581 *** $file_magic_cmd, produces output that libtool cannot recognize.
4582 @@ -2126,7 +2766,7 @@
4583 *** may want to report the problem to your system manager and/or to
4584 *** bug-libtool@gnu.org
4591 @@ -2143,37 +2783,47 @@
4595 -])# AC_PATH_TOOL_PREFIX
4596 +_LT_DECL([], [MAGIC_CMD], [0],
4597 + [Used to examine libraries when file_magic_cmd begins with "file"])dnl
4598 +])# _LT_PATH_TOOL_PREFIX
4601 +AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
4602 +dnl aclocal-1.4 backwards compatibility:
4603 +dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
4610 # find a file program which can recognize a shared library
4611 -AC_DEFUN([AC_PATH_MAGIC],
4612 -[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
4613 +m4_defun([_LT_PATH_MAGIC],
4614 +[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
4615 if test -z "$lt_cv_path_MAGIC_CMD"; then
4616 if test -n "$ac_tool_prefix"; then
4617 - AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
4618 + _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
4630 # find the pathname to the GNU or non-GNU linker
4631 -AC_DEFUN([AC_PROG_LD],
4632 -[AC_ARG_WITH([gnu-ld],
4633 - [AC_HELP_STRING([--with-gnu-ld],
4634 - [assume the C compiler uses GNU ld @<:@default=no@:>@])],
4635 - [test "$withval" = no || with_gnu_ld=yes],
4637 -AC_REQUIRE([LT_AC_PROG_SED])dnl
4638 -AC_REQUIRE([AC_PROG_CC])dnl
4639 +AC_DEFUN([LT_PATH_LD],
4640 +[AC_REQUIRE([AC_PROG_CC])dnl
4641 AC_REQUIRE([AC_CANONICAL_HOST])dnl
4642 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
4643 +m4_require([_LT_DECL_SED])dnl
4644 +m4_require([_LT_DECL_EGREP])dnl
4646 +AC_ARG_WITH([gnu-ld],
4647 + [AS_HELP_STRING([--with-gnu-ld],
4648 + [assume the C compiler uses GNU ld @<:@default=no@:>@])],
4649 + [test "$withval" = no || with_gnu_ld=yes],
4650 + [with_gnu_ld=no])dnl
4653 if test "$GCC" = yes; then
4654 # Check if gcc -print-prog-name=ld gives a path.
4655 @@ -2190,9 +2840,9 @@
4656 [[\\/]]* | ?:[[\\/]]*)
4657 re_direlt='/[[^/]][[^/]]*/\.\./'
4658 # Canonicalize the pathname of ld
4659 - ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4660 - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4661 - ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4662 + ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4663 + while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4664 + ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4666 test -z "$LD" && LD="$ac_prog"
4668 @@ -2242,15 +2892,24 @@
4671 test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
4677 +_LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
4682 -AC_DEFUN([AC_PROG_LD_GNU],
4683 -[AC_REQUIRE([AC_PROG_EGREP])dnl
4684 -AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
4686 +AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
4687 +AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
4688 +dnl aclocal-1.4 backwards compatibility:
4689 +dnl AC_DEFUN([AM_PROG_LD], [])
4690 +dnl AC_DEFUN([AC_PROG_LD], [])
4695 +m4_defun([_LT_PATH_LD_GNU],
4696 +[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
4697 [# I'd rather use --version here, but apparently some GNU lds only accept -v.
4698 case `$LD -v 2>&1 </dev/null` in
4699 *GNU* | *'with BFD'*)
4700 @@ -2261,14 +2920,14 @@
4703 with_gnu_ld=$lt_cv_prog_gnu_ld
4705 +])# _LT_PATH_LD_GNU
4708 -# AC_PROG_LD_RELOAD_FLAG
4709 -# ----------------------
4712 # find reload flag for linker
4713 # -- PORTME Some linkers may need a different reload flag.
4714 -AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
4715 +m4_defun([_LT_CMD_RELOAD],
4716 [AC_CACHE_CHECK([for $LD option to reload object files],
4717 lt_cv_ld_reload_flag,
4718 [lt_cv_ld_reload_flag='-r'])
4719 @@ -2287,15 +2946,18 @@
4723 -])# AC_PROG_LD_RELOAD_FLAG
4724 +_LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
4725 +_LT_DECL([], [reload_cmds], [2])dnl
4729 -# AC_DEPLIBS_CHECK_METHOD
4730 -# -----------------------
4731 +# _LT_CHECK_MAGIC_METHOD
4732 +# ----------------------
4733 # how to check for library dependencies
4734 # -- PORTME fill in with the dynamic library characteristics
4735 -AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
4736 -[AC_CACHE_CHECK([how to recognize dependent libraries],
4737 +m4_defun([_LT_CHECK_MAGIC_METHOD],
4738 +[m4_require([_LT_DECL_EGREP])
4739 +AC_CACHE_CHECK([how to recognize dependent libraries],
4740 lt_cv_deplibs_check_method,
4741 [lt_cv_file_magic_cmd='$MAGIC_CMD'
4742 lt_cv_file_magic_test_file=
4743 @@ -2312,7 +2974,7 @@
4744 # whether `pass_all' will *always* work, you probably want this one.
4749 lt_cv_deplibs_check_method=pass_all
4752 @@ -2350,7 +3012,7 @@
4755 freebsd* | dragonfly*)
4756 - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4757 + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4760 # Not sure whether the presence of OpenBSD here was a mistake.
4761 @@ -2408,7 +3070,7 @@
4765 - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4766 + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4767 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
4769 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
4770 @@ -2421,12 +3083,12 @@
4771 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4775 - lt_cv_deplibs_check_method=unknown
4777 + lt_cv_deplibs_check_method=pass_all
4781 - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4782 + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4783 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
4785 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
4786 @@ -2445,6 +3107,10 @@
4787 lt_cv_deplibs_check_method=pass_all
4790 +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4791 + lt_cv_deplibs_check_method=pass_all
4795 case $host_vendor in
4797 @@ -2472,7 +3138,7 @@
4801 -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4803 lt_cv_deplibs_check_method=pass_all
4806 @@ -2480,14 +3146,20 @@
4807 file_magic_cmd=$lt_cv_file_magic_cmd
4808 deplibs_check_method=$lt_cv_deplibs_check_method
4809 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4810 -])# AC_DEPLIBS_CHECK_METHOD
4812 +_LT_DECL([], [deplibs_check_method], [1],
4813 + [Method to check whether dependent libraries are shared objects])
4814 +_LT_DECL([], [file_magic_cmd], [1],
4815 + [Command to use when deplibs_check_method == "file_magic"])
4816 +])# _LT_CHECK_MAGIC_METHOD
4822 -# find the pathname to a BSD-compatible name lister
4823 -AC_DEFUN([AC_PROG_NM],
4824 -[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
4825 +# find the pathname to a BSD- or MS-compatible name lister
4826 +AC_DEFUN([LT_PATH_NM],
4827 +[AC_REQUIRE([AC_PROG_CC])dnl
4828 +AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
4829 [if test -n "$NM"; then
4830 # Let the user override the test.
4832 @@ -2529,16 +3201,51 @@
4836 - test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4837 + : ${lt_cv_path_NM=no}
4839 -NM="$lt_cv_path_NM"
4841 +if test "$lt_cv_path_NM" != "no"; then
4842 + NM="$lt_cv_path_NM"
4844 + # Didn't find any BSD compatible name lister, look for dumpbin.
4845 + AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
4846 + AC_SUBST([DUMPBIN])
4847 + if test "$DUMPBIN" != ":"; then
4851 +test -z "$NM" && NM=nm
4853 +_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
4855 +AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
4856 + [lt_cv_nm_interface="BSD nm"
4857 + echo "int some_variable = 0;" > conftest.$ac_ext
4858 + (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
4859 + (eval "$ac_compile" 2>conftest.err)
4860 + cat conftest.err >&AS_MESSAGE_LOG_FD
4861 + (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
4862 + (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4863 + cat conftest.err >&AS_MESSAGE_LOG_FD
4864 + (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)
4865 + cat conftest.out >&AS_MESSAGE_LOG_FD
4866 + if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4867 + lt_cv_nm_interface="MS dumpbin"
4873 +AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
4874 +AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
4875 +dnl aclocal-1.4 backwards compatibility:
4876 +dnl AC_DEFUN([AM_PROG_NM], [])
4877 +dnl AC_DEFUN([AC_PROG_NM], [])
4884 # check for math library
4885 -AC_DEFUN([AC_CHECK_LIBM],
4886 +AC_DEFUN([LT_LIB_M],
4887 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
4890 @@ -2553,3986 +3260,3739 @@
4891 AC_CHECK_LIB(m, cos, LIBM="-lm")
4899 +AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
4900 +dnl aclocal-1.4 backwards compatibility:
4901 +dnl AC_DEFUN([AC_CHECK_LIBM], [])
4903 -# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
4904 -# -----------------------------------
4905 -# sets LIBLTDL to the link flags for the libltdl convenience library and
4906 -# LTDLINCL to the include flags for the libltdl header and adds
4907 -# --enable-ltdl-convenience to the configure arguments. Note that
4908 -# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
4909 -# it is assumed to be `libltdl'. LIBLTDL will be prefixed with
4910 -# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
4911 -# (note the single quotes!). If your package is not flat and you're not
4912 -# using automake, define top_builddir and top_srcdir appropriately in
4914 -AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
4915 -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
4916 - case $enable_ltdl_convenience in
4917 - no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
4918 - "") enable_ltdl_convenience=yes
4919 - ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
4921 - LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
4922 - LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
4923 - # For backwards non-gettext consistent compatibility...
4924 - INCLTDL="$LTDLINCL"
4925 -])# AC_LIBLTDL_CONVENIENCE
4927 +# _LT_COMPILER_NO_RTTI([TAGNAME])
4928 +# -------------------------------
4929 +m4_defun([_LT_COMPILER_NO_RTTI],
4930 +[m4_require([_LT_TAG_COMPILER])dnl
4932 -# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
4933 -# -----------------------------------
4934 -# sets LIBLTDL to the link flags for the libltdl installable library and
4935 -# LTDLINCL to the include flags for the libltdl header and adds
4936 -# --enable-ltdl-install to the configure arguments. Note that
4937 -# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
4938 -# and an installed libltdl is not found, it is assumed to be `libltdl'.
4939 -# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
4940 -# '${top_srcdir}/' (note the single quotes!). If your package is not
4941 -# flat and you're not using automake, define top_builddir and top_srcdir
4942 -# appropriately in the Makefiles.
4943 -# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
4944 -AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
4945 -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
4946 - AC_CHECK_LIB(ltdl, lt_dlinit,
4947 - [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
4948 - [if test x"$enable_ltdl_install" = xno; then
4949 - AC_MSG_WARN([libltdl not installed, but installation disabled])
4951 - enable_ltdl_install=yes
4954 - if test x"$enable_ltdl_install" = x"yes"; then
4955 - ac_configure_args="$ac_configure_args --enable-ltdl-install"
4956 - LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
4957 - LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
4959 - ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
4963 - # For backwards non-gettext consistent compatibility...
4964 - INCLTDL="$LTDLINCL"
4965 -])# AC_LIBLTDL_INSTALLABLE
4966 +_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
4968 +if test "$GCC" = yes; then
4969 + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
4973 -# enable support for C++ libraries
4974 -AC_DEFUN([AC_LIBTOOL_CXX],
4975 -[AC_REQUIRE([_LT_AC_LANG_CXX])
4977 + _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
4978 + lt_cv_prog_compiler_rtti_exceptions,
4979 + [-fno-rtti -fno-exceptions], [],
4980 + [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
4982 +_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
4983 + [Compiler flag to turn off builtin functions])
4984 +])# _LT_COMPILER_NO_RTTI
4989 -AC_DEFUN([_LT_AC_LANG_CXX],
4990 -[AC_REQUIRE([AC_PROG_CXX])
4991 -AC_REQUIRE([_LT_AC_PROG_CXXCPP])
4992 -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
4993 -])# _LT_AC_LANG_CXX
4994 +# _LT_CMD_GLOBAL_SYMBOLS
4995 +# ----------------------
4996 +m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
4997 +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
4998 +AC_REQUIRE([AC_PROG_CC])dnl
4999 +AC_REQUIRE([LT_PATH_NM])dnl
5000 +AC_REQUIRE([LT_PATH_LD])dnl
5001 +m4_require([_LT_DECL_SED])dnl
5002 +m4_require([_LT_DECL_EGREP])dnl
5003 +m4_require([_LT_TAG_COMPILER])dnl
5005 -# _LT_AC_PROG_CXXCPP
5006 -# ------------------
5007 -AC_DEFUN([_LT_AC_PROG_CXXCPP],
5008 +# Check for command to grab the raw symbol name followed by C symbol from nm.
5009 +AC_MSG_CHECKING([command to parse $NM output from $compiler object])
5010 +AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
5012 -AC_REQUIRE([AC_PROG_CXX])
5013 -if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5014 - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5015 - (test "X$CXX" != "Xg++"))) ; then
5018 -])# _LT_AC_PROG_CXXCPP
5022 -# enable support for Fortran 77 libraries
5023 -AC_DEFUN([AC_LIBTOOL_F77],
5024 -[AC_REQUIRE([_LT_AC_LANG_F77])
5030 -AC_DEFUN([_LT_AC_LANG_F77],
5031 -[AC_REQUIRE([AC_PROG_F77])
5032 -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
5033 -])# _LT_AC_LANG_F77
5038 -# enable support for GCJ libraries
5039 -AC_DEFUN([AC_LIBTOOL_GCJ],
5040 -[AC_REQUIRE([_LT_AC_LANG_GCJ])
5046 -AC_DEFUN([_LT_AC_LANG_GCJ],
5047 -[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
5048 - [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
5049 - [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
5050 - [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
5051 - [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
5052 - [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
5053 -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
5054 -])# _LT_AC_LANG_GCJ
5059 -# enable support for Windows resource files
5060 -AC_DEFUN([AC_LIBTOOL_RC],
5061 -[AC_REQUIRE([LT_AC_PROG_RC])
5062 -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
5066 -# AC_LIBTOOL_LANG_C_CONFIG
5067 -# ------------------------
5068 -# Ensure that the configuration vars for the C compiler are
5069 -# suitably defined. Those variables are subsequently used by
5070 -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
5071 -AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
5072 -AC_DEFUN([_LT_AC_LANG_C_CONFIG],
5076 -# Source file extension for C test sources.
5079 -# Object file extension for compiled C test sources.
5081 -_LT_AC_TAGVAR(objext, $1)=$objext
5083 -# Code to be used in simple compile tests
5084 -lt_simple_compile_test_code="int some_variable = 0;"
5086 -# Code to be used in simple link tests
5087 -lt_simple_link_test_code='int main(){return(0);}'
5089 -_LT_AC_SYS_COMPILER
5091 -# save warnings/boilerplate of simple test code
5092 -_LT_COMPILER_BOILERPLATE
5093 -_LT_LINKER_BOILERPLATE
5094 +# These are sane defaults that work on at least a few old systems.
5095 +# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5098 -## There is no encapsulation within the following macros, do not change
5099 -## the running order or otherwise move them around unless you know exactly
5100 -## what you are doing...
5101 -AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
5102 -AC_LIBTOOL_PROG_COMPILER_PIC($1)
5103 -AC_LIBTOOL_PROG_CC_C_O($1)
5104 -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
5105 -AC_LIBTOOL_PROG_LD_SHLIBS($1)
5106 -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
5107 -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
5108 -AC_LIBTOOL_SYS_LIB_STRIP
5109 -AC_LIBTOOL_DLOPEN_SELF
5111 -# Report which library types will actually be built
5112 -AC_MSG_CHECKING([if libtool supports shared libraries])
5113 -AC_MSG_RESULT([$can_build_shared])
5114 +# Character class describing NM global symbol codes.
5115 +symcode='[[BCDEGRST]]'
5117 -AC_MSG_CHECKING([whether to build shared libraries])
5118 -test "$can_build_shared" = "no" && enable_shared=no
5119 +# Regexp to match symbols that can be accessed directly from C.
5120 +sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
5122 -# On AIX, shared libraries and static libraries use the same namespace, and
5123 -# are all built from PIC.
5124 +# Define system-specific variables.
5127 - test "$enable_shared" = yes && enable_static=no
5128 - if test -n "$RANLIB"; then
5129 - archive_cmds="$archive_cmds~\$RANLIB \$lib"
5130 - postinstall_cmds='$RANLIB $lib'
5133 + symcode='[[BCDT]]'
5137 - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
5138 - test "$enable_shared" = yes && enable_static=no
5139 +cygwin* | mingw* | pw32*)
5140 + symcode='[[ABCDGISTW]]'
5143 + if test "$host_cpu" = ia64; then
5144 + symcode='[[ABCDEGRST]]'
5148 +irix* | nonstopux*)
5149 + symcode='[[BCDEGRST]]'
5152 + symcode='[[BCDEGQRST]]'
5155 + symcode='[[BDRT]]'
5163 +sysv5* | sco5v6* | unixware* | OpenUNIX*)
5164 + symcode='[[ABDT]]'
5167 + symcode='[[DFNSTU]]'
5170 -AC_MSG_RESULT([$enable_shared])
5172 -AC_MSG_CHECKING([whether to build static libraries])
5173 -# Make sure either enable_shared or enable_static is yes.
5174 -test "$enable_shared" = yes || enable_static=yes
5175 -AC_MSG_RESULT([$enable_static])
5177 -AC_LIBTOOL_CONFIG($1)
5181 -])# AC_LIBTOOL_LANG_C_CONFIG
5184 -# AC_LIBTOOL_LANG_CXX_CONFIG
5185 -# --------------------------
5186 -# Ensure that the configuration vars for the C compiler are
5187 -# suitably defined. Those variables are subsequently used by
5188 -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
5189 -AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
5190 -AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
5192 -AC_REQUIRE([AC_PROG_CXX])
5193 -AC_REQUIRE([_LT_AC_PROG_CXXCPP])
5195 -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5196 -_LT_AC_TAGVAR(allow_undefined_flag, $1)=
5197 -_LT_AC_TAGVAR(always_export_symbols, $1)=no
5198 -_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
5199 -_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
5200 -_LT_AC_TAGVAR(hardcode_direct, $1)=no
5201 -_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
5202 -_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
5203 -_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
5204 -_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
5205 -_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5206 -_LT_AC_TAGVAR(hardcode_automatic, $1)=no
5207 -_LT_AC_TAGVAR(module_cmds, $1)=
5208 -_LT_AC_TAGVAR(module_expsym_cmds, $1)=
5209 -_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
5210 -_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
5211 -_LT_AC_TAGVAR(no_undefined_flag, $1)=
5212 -_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5213 -_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
5214 +# If we're using GNU nm, then use its standard symbol codes.
5215 +case `$NM -V 2>&1` in
5216 +*GNU* | *'with BFD'*)
5217 + symcode='[[ABCDGIRSTW]]' ;;
5220 -# Dependencies to place before and after the object being linked:
5221 -_LT_AC_TAGVAR(predep_objects, $1)=
5222 -_LT_AC_TAGVAR(postdep_objects, $1)=
5223 -_LT_AC_TAGVAR(predeps, $1)=
5224 -_LT_AC_TAGVAR(postdeps, $1)=
5225 -_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
5226 +# Transform an extracted symbol line into a proper C declaration.
5227 +# Some systems (esp. on ia64) link data and code symbols differently,
5228 +# so use this general approach.
5229 +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5231 -# Source file extension for C++ test sources.
5233 +# Transform an extracted symbol line into symbol name and symbol address
5234 +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
5235 +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'"
5237 -# Object file extension for compiled C++ test sources.
5239 -_LT_AC_TAGVAR(objext, $1)=$objext
5240 +# Handle CRLF in mingw tool chain
5244 + opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5248 -# Code to be used in simple compile tests
5249 -lt_simple_compile_test_code="int some_variable = 0;"
5250 +# Try without a prefix underscore, then with it.
5251 +for ac_symprfx in "" "_"; do
5253 -# Code to be used in simple link tests
5254 -lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
5255 + # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5256 + symxfrm="\\1 $ac_symprfx\\2 \\2"
5258 -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
5259 -_LT_AC_SYS_COMPILER
5260 + # Write the raw and C identifiers.
5261 + if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5262 + # Fake it for dumpbin and say T for any non-static function
5263 + # and D for any global variable.
5264 + # Also find C++ and __fastcall symbols from MSVC++,
5265 + # which start with @ or ?.
5266 + lt_cv_sys_global_symbol_pipe="$AWK ['"\
5267 +" {last_section=section; section=\$ 3};"\
5268 +" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5269 +" \$ 0!~/External *\|/{next};"\
5270 +" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5271 +" {if(hide[section]) next};"\
5272 +" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5273 +" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5274 +" s[1]~/^[@?]/{print s[1], s[1]; next};"\
5275 +" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5276 +" ' prfx=^$ac_symprfx]"
5278 + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5281 -# save warnings/boilerplate of simple test code
5282 -_LT_COMPILER_BOILERPLATE
5283 -_LT_LINKER_BOILERPLATE
5284 + # Check to see that the pipe works correctly.
5287 -# Allow CC to be a program name with arguments.
5292 -lt_save_with_gnu_ld=$with_gnu_ld
5293 -lt_save_path_LD=$lt_cv_path_LD
5294 -if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
5295 - lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
5297 - $as_unset lt_cv_prog_gnu_ld
5299 -if test -n "${lt_cv_path_LDCXX+set}"; then
5300 - lt_cv_path_LD=$lt_cv_path_LDCXX
5302 - $as_unset lt_cv_path_LD
5304 -test -z "${LDCXX+set}" || LD=$LDCXX
5307 -_LT_AC_TAGVAR(compiler, $1)=$CC
5308 -_LT_CC_BASENAME([$compiler])
5310 + cat > conftest.$ac_ext <<_LT_EOF
5315 +void nm_test_func(void);
5316 +void nm_test_func(void){}
5320 +int main(){nm_test_var='a';nm_test_func();return(0);}
5323 -# We don't want -fno-exception wen compiling C++ code, so set the
5324 -# no_builtin_flag separately
5325 -if test "$GXX" = yes; then
5326 - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
5328 - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
5330 + if AC_TRY_EVAL(ac_compile); then
5331 + # Now try to grab the symbols.
5333 + if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
5334 + # Try sorting and uniquifying the output.
5335 + if sort "$nlist" | uniq > "$nlist"T; then
5336 + mv -f "$nlist"T "$nlist"
5341 -if test "$GXX" = yes; then
5342 - # Set up default GNU C++ configuration
5343 + # Make sure that we snagged all the symbols we need.
5344 + if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5345 + if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5346 + cat <<_LT_EOF > conftest.$ac_ext
5353 + # Now generate the symbol file.
5354 + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5356 - # Check if GNU C++ uses GNU ld as the underlying linker, since the
5357 - # archiving commands below assume that GNU ld is being used.
5358 - if test "$with_gnu_ld" = yes; then
5359 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5360 - _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'
5361 + cat <<_LT_EOF >> conftest.$ac_ext
5363 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
5364 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5365 +/* The mapping between symbol names and symbols. */
5370 +lt__PROGRAM__LTX_preloaded_symbols[[]] =
5372 + { "@PROGRAM@", (void *) 0 },
5374 + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5375 + cat <<\_LT_EOF >> conftest.$ac_ext
5379 - # If archive_cmds runs LD, not CC, wlarc should be empty
5380 - # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
5381 - # investigate it a little bit more. (MM)
5383 +/* This works around a problem in FreeBSD linker */
5384 +#ifdef FREEBSD_WORKAROUND
5385 +static const void *lt_preloaded_setup() {
5386 + return lt__PROGRAM__LTX_preloaded_symbols;
5390 - # ancient GNU ld didn't support --whole-archive et. al.
5391 - if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
5392 - grep 'no-whole-archive' > /dev/null; then
5393 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5398 + # Now try linking the two files.
5399 + mv conftest.$ac_objext conftstm.$ac_objext
5400 + lt_save_LIBS="$LIBS"
5401 + lt_save_CFLAGS="$CFLAGS"
5402 + LIBS="conftstm.$ac_objext"
5403 + CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
5404 + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
5407 + LIBS="$lt_save_LIBS"
5408 + CFLAGS="$lt_save_CFLAGS"
5410 + echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
5413 + echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
5416 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5417 + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
5423 - # A generic and very simple default shared library creation
5424 - # command for GNU C++ for the case where it uses the native
5425 - # linker, instead of GNU ld. If possible, this setting should
5426 - # overridden to take advantage of the native linker features on
5427 - # the platform it is being used on.
5428 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
5429 + echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
5430 + cat conftest.$ac_ext >&5
5432 + rm -rf conftest* conftst*
5434 - # Commands to make compiler produce verbose output that lists
5435 - # what "hidden" libraries, object files and flags are used when
5436 - # linking a shared library.
5437 - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
5439 + # Do not use the global_symbol_pipe unless it works.
5440 + if test "$pipe_works" = yes; then
5443 + lt_cv_sys_global_symbol_pipe=
5447 +if test -z "$lt_cv_sys_global_symbol_pipe"; then
5448 + lt_cv_sys_global_symbol_to_cdecl=
5450 +if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5451 + AC_MSG_RESULT(failed)
5459 -# PORTME: fill in a description of your system's C++ link characteristics
5460 -AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
5461 -_LT_AC_TAGVAR(ld_shlibs, $1)=yes
5464 - # FIXME: insert proper C++ library support
5465 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
5468 - if test "$host_cpu" = ia64; then
5469 - # On IA64, the linker does run time linking by default, so we don't
5470 - # have to do anything special.
5471 - aix_use_runtimelinking=no
5472 - exp_sym_flag='-Bexport'
5475 - aix_use_runtimelinking=no
5476 +_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
5477 + [Take the output of nm and produce a listing of raw symbols and C names])
5478 +_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
5479 + [Transform the output of nm in a proper C declaration])
5480 +_LT_DECL([global_symbol_to_c_name_address],
5481 + [lt_cv_sys_global_symbol_to_c_name_address], [1],
5482 + [Transform the output of nm in a C name address pair])
5483 +_LT_DECL([global_symbol_to_c_name_address_lib_prefix],
5484 + [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
5485 + [Transform the output of nm in a C name address pair when lib prefix is needed])
5486 +]) # _LT_CMD_GLOBAL_SYMBOLS
5488 - # Test if we are trying to use run time linking or normal
5489 - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5490 - # need to do runtime linking.
5491 - case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
5492 - for ld_flag in $LDFLAGS; do
5495 - aix_use_runtimelinking=yes
5503 - exp_sym_flag='-bexport'
5504 - no_entry_flag='-bnoentry'
5506 +# _LT_COMPILER_PIC([TAGNAME])
5507 +# ---------------------------
5508 +m4_defun([_LT_COMPILER_PIC],
5509 +[m4_require([_LT_TAG_COMPILER])dnl
5510 +_LT_TAGVAR(lt_prog_compiler_wl, $1)=
5511 +_LT_TAGVAR(lt_prog_compiler_pic, $1)=
5512 +_LT_TAGVAR(lt_prog_compiler_static, $1)=
5514 - # When large executables or shared objects are built, AIX ld can
5515 - # have problems creating the table of contents. If linking a library
5516 - # or program results in "error TOC overflow" add -mminimal-toc to
5517 - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5518 - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5520 - _LT_AC_TAGVAR(archive_cmds, $1)=''
5521 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5522 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
5523 - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5524 +AC_MSG_CHECKING([for $compiler option to produce PIC])
5525 +m4_if([$1], [CXX], [
5526 + # C++ specific cases for pic, static, wl, etc.
5527 + if test "$GXX" = yes; then
5528 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5529 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
5531 - if test "$GXX" = yes; then
5532 - case $host_os in aix4.[[012]]|aix4.[[012]].*)
5533 - # We only want to do this on AIX 4.2 and lower, the check
5534 - # below for broken collect2 doesn't work under 4.3+
5535 - collect2name=`${CC} -print-prog-name=collect2`
5536 - if test -f "$collect2name" && \
5537 - strings "$collect2name" | grep resolve_lib_name >/dev/null
5539 - # We have reworked collect2
5542 - # We have old collect2
5543 - _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
5544 - # It fails to find uninstalled libraries when the uninstalled
5545 - # path is not listed in the libpath. Setting hardcode_minus_L
5546 - # to unsupported forces relinking
5547 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5548 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5549 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
5553 - shared_flag='-shared'
5554 - if test "$aix_use_runtimelinking" = yes; then
5555 - shared_flag="$shared_flag "'${wl}-G'
5561 + # All AIX code is PIC.
5562 if test "$host_cpu" = ia64; then
5563 - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
5564 - # chokes on -Wl,-G. The following line is correct:
5567 - if test "$aix_use_runtimelinking" = yes; then
5568 - shared_flag='${wl}-G'
5570 - shared_flag='${wl}-bM:SRE'
5572 + # AIX 5 now supports IA64 processor
5573 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5577 - # It seems that -bexpall does not export symbols beginning with
5578 - # underscore (_), so it is better to generate a list of symbols to export.
5579 - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
5580 - if test "$aix_use_runtimelinking" = yes; then
5581 - # Warning - without using the other runtime loading flags (-brtl),
5582 - # -berok will link without error, but may produce a broken library.
5583 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
5584 - # Determine the default libpath from the value encoded in an empty executable.
5585 - _LT_AC_SYS_LIBPATH_AIX
5586 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5589 - _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"
5591 - if test "$host_cpu" = ia64; then
5592 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
5593 - _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
5594 - _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"
5596 - # Determine the default libpath from the value encoded in an empty executable.
5597 - _LT_AC_SYS_LIBPATH_AIX
5598 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5599 - # Warning - without using the other run time loading flags,
5600 - # -berok will link without error, but may produce a broken library.
5601 - _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
5602 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
5603 - # Exported symbols can be pulled into shared objects from archives
5604 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
5605 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
5606 - # This is similar to how AIX traditionally builds its shared libraries.
5607 - _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'
5613 - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5614 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5615 - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5616 - # support --undefined. This deserves some investigation. FIXME
5617 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5619 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
5624 - case $cc_basename in
5626 - # FIXME: insert proper C++ library support
5627 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
5632 - cygwin* | mingw* | pw32*)
5633 - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
5634 - # as there is no search path for DLLs.
5635 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5636 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5637 - _LT_AC_TAGVAR(always_export_symbols, $1)=no
5638 - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5640 - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
5641 - _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'
5642 - # If the export-symbols file already is a .def file (1st line
5643 - # is EXPORTS), use it as is; otherwise, prepend...
5644 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5645 - cp $export_symbols $output_objdir/$soname.def;
5647 - echo EXPORTS > $output_objdir/$soname.def;
5648 - cat $export_symbols >> $output_objdir/$soname.def;
5650 - $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'
5652 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
5655 - darwin* | rhapsody*)
5657 - rhapsody* | darwin1.[[012]])
5658 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
5660 - *) # Darwin 1.3 on
5661 - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
5662 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
5664 - case ${MACOSX_DEPLOYMENT_TARGET} in
5666 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
5669 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
5675 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5676 - _LT_AC_TAGVAR(hardcode_direct, $1)=no
5677 - _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
5678 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5679 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
5680 - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5682 - if test "$GXX" = yes ; then
5683 - lt_int_apple_cc_single_mod=no
5684 - output_verbose_link_cmd='echo'
5685 - if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
5686 - lt_int_apple_cc_single_mod=yes
5688 - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
5689 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
5691 - _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'
5693 - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
5694 - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
5695 - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
5696 - _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}'
5698 - _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}'
5700 - _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}'
5702 - case $cc_basename in
5704 - output_verbose_link_cmd='echo'
5705 - _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` $xlcverstring'
5706 - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
5707 - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
5708 - _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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5709 - _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}'
5712 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
5719 + # see comment about AmigaOS4 .so support
5720 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5723 + # FIXME: we need at least 68020 code to build shared libraries, but
5724 + # adding the `-m68020' flag to GCC prevents building anything better,
5726 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
5732 - case $cc_basename in
5734 - # FIXME: insert proper C++ library support
5735 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
5738 - # Green Hills C++ Compiler
5739 - # FIXME: insert proper C++ library support
5740 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
5743 - # FIXME: insert proper C++ library support
5744 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
5749 - # C++ shared libraries reported to be fairly broken before switch to ELF
5750 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
5753 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5755 - freebsd* | dragonfly*)
5756 - # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
5758 - _LT_AC_TAGVAR(ld_shlibs, $1)=yes
5763 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5764 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5765 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5766 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5767 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
5768 - # but as the default
5769 - # location of the library.
5771 - case $cc_basename in
5773 - # FIXME: insert proper C++ library support
5774 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
5775 + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5776 + # PIC is the default for these OSes.
5779 - _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'
5780 - # Commands to make compiler produce verbose output that lists
5781 - # what "hidden" libraries, object files and flags are used when
5782 - # linking a shared library.
5784 - # There doesn't appear to be a way to prevent this compiler from
5785 - # explicitly linking system object files so we need to strip them
5786 - # from the output so that they don't get included in the library
5788 - 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'
5789 + mingw* | cygwin* | os2* | pw32*)
5790 + # This hack is so that the source file can tell whether it is being
5791 + # built for inclusion in a dll (and should export symbols for example).
5792 + # Although the cygwin gcc ignores -fPIC, still need this for old-style
5793 + # (--disable-auto-import) libraries
5794 + m4_if([$1], [GCJ], [],
5795 + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
5798 - if test "$GXX" = yes; then
5799 - _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'
5801 - # FIXME: insert proper C++ library support
5802 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
5803 + darwin* | rhapsody*)
5804 + # PIC is the default on this platform
5805 + # Common symbols not allowed in MH_DYLIB files
5806 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
5809 + # DJGPP does not support shared libraries at all
5810 + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
5813 + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5814 + # Instead, we relocate shared libraries at runtime.
5817 + if test -d /usr/nec; then
5818 + _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
5824 - if test $with_gnu_ld = no; then
5825 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5826 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5829 + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5830 + # not for PA HP-UX.
5832 - hppa*64*|ia64*) ;;
5836 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5838 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5844 - _LT_AC_TAGVAR(hardcode_direct, $1)=no
5845 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5848 + # QNX uses GNU C++, but need to define -shared option too, otherwise
5849 + # it will coredump.
5850 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
5853 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5854 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
5855 - # but as the default
5856 - # location of the library.
5857 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5861 - case $cc_basename in
5863 - # FIXME: insert proper C++ library support
5864 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
5868 + # All AIX code is PIC.
5869 + if test "$host_cpu" = ia64; then
5870 + # AIX 5 now supports IA64 processor
5871 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5873 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
5879 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5882 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5885 - _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'
5887 + case $cc_basename in
5889 + # Green Hills C++ Compiler
5890 + # _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"
5893 - # Commands to make compiler produce verbose output that lists
5894 - # what "hidden" libraries, object files and flags are used when
5895 - # linking a shared library.
5897 - # There doesn't appear to be a way to prevent this compiler from
5898 - # explicitly linking system object files so we need to strip them
5899 - # from the output so that they don't get included in the library
5901 - 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'
5904 - if test "$GXX" = yes; then
5905 - if test $with_gnu_ld = no; then
5907 + case $cc_basename in
5909 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5912 + # Green Hills C++ Compiler
5913 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5919 + freebsd* | dragonfly*)
5920 + # FreeBSD uses GNU C++
5922 + hpux9* | hpux10* | hpux11*)
5923 + case $cc_basename in
5925 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5926 + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
5927 + if test "$host_cpu" != ia64; then
5928 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5932 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5933 + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
5936 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5939 - _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'
5944 - _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'
5945 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5950 - # FIXME: insert proper C++ library support
5951 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
5957 - _LT_AC_TAGVAR(hardcode_direct, $1)=no
5958 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5959 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5960 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5961 - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
5962 - # Instead, shared libraries are loaded at an image base (0x10000000 by
5963 - # default) and relocated if they conflict, which is a slow very memory
5964 - # consuming and fragmenting process. To avoid this, we pick a random,
5965 - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
5966 - # time. Moving up from 0x10000000 also allows more sbrk(2) space.
5967 - _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'
5968 - _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'
5971 - case $cc_basename in
5974 - _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'
5976 - # Archives containing C++ object files must be created using
5977 - # "CC -ar", where "CC" is the IRIX C++ compiler. This is
5978 - # necessary to make sure instantiated templates are included
5980 - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
5987 - if test "$GXX" = yes; then
5988 - if test "$with_gnu_ld" = no; then
5989 - _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'
5991 - _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'
5994 - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5996 + # This is c89, which is MS Visual C++ (no shared libs)
5997 + # Anyone wants to do a port?
6000 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6001 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6003 - linux* | k*bsd*-gnu)
6004 - case $cc_basename in
6006 - # Kuck and Associates, Inc. (KAI) C++ Compiler
6008 - # KCC will only create a shared library if the output file
6009 - # ends with ".so" (or ".sl" for HP-UX), so rename the library
6010 - # to its proper name (with version) after linking.
6011 - _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'
6012 - _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'
6013 - # Commands to make compiler produce verbose output that lists
6014 - # what "hidden" libraries, object files and flags are used when
6015 - # linking a shared library.
6017 - # There doesn't appear to be a way to prevent this compiler from
6018 - # explicitly linking system object files so we need to strip them
6019 - # from the output so that they don't get included in the library
6021 - 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'
6023 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
6024 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6026 - # Archives containing C++ object files must be created using
6027 - # "CC -Bstatic", where "CC" is the KAI C++ compiler.
6028 - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
6033 - # version 8.0 and above of icpc choke on multiply defined symbols
6034 - # if we add $predep_objects and $postdep_objects, however 7.1 and
6035 - # earlier do not add the objects themselves.
6036 - case `$CC -V 2>&1` in
6038 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6039 - _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'
6041 - *) # Version 8.0 or newer
6044 - ia64*) tmp_idyn=' -i_dynamic';;
6046 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6047 - _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'
6049 + irix5* | irix6* | nonstopux*)
6050 + case $cc_basename in
6052 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6053 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6054 + # CC pic flag -KPIC is the default.
6059 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6060 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6061 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6062 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
6065 - # Portland Group C++ compiler
6066 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
6067 - _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'
6069 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
6070 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6071 - _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'
6075 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6076 - _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'
6078 - runpath_var=LD_RUN_PATH
6079 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6080 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6082 - # Commands to make compiler produce verbose output that lists
6083 - # what "hidden" libraries, object files and flags are used when
6084 - # linking a shared library.
6086 - # There doesn't appear to be a way to prevent this compiler from
6087 - # explicitly linking system object files so we need to strip them
6088 - # from the output so that they don't get included in the library
6090 - 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'
6093 - case `$CC -V 2>&1 | sed 5q` in
6096 - _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
6097 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6098 - _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'
6099 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6100 - _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'
6102 - # Not sure whether something based on
6103 - # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
6104 - # would be better.
6105 - output_verbose_link_cmd='echo'
6107 - # Archives containing C++ object files must be created using
6108 - # "CC -xar", where "CC" is the Sun C++ compiler. This is
6109 - # necessary to make sure instantiated templates are included
6111 - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
6113 + linux* | k*bsd*-gnu)
6114 + case $cc_basename in
6116 + # KAI C++ Compiler
6117 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
6118 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6122 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6123 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6124 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
6127 + # Portland Group C++ compiler
6128 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6129 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
6130 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6134 + # Make sure the PIC flag is empty. It appears that all Alpha
6135 + # Linux and Compaq Tru64 Unix objects are PIC.
6136 + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
6137 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6140 + # IBM XL 8.0 on PPC
6141 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6142 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
6143 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
6146 + case `$CC -V 2>&1 | sed 5q` in
6149 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6150 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6151 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
6160 - # FIXME: insert proper C++ library support
6161 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
6164 - # FIXME: insert proper C++ library support
6165 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
6168 - case $cc_basename in
6170 - # FIXME: insert proper C++ library support
6171 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
6174 - # FIXME: insert proper C++ library support
6175 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
6180 - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6181 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
6183 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6184 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6185 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6187 - # Workaround some broken pre-1.5 toolchains
6188 - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
6191 - # C++ shared libraries are fairly broken
6192 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
6195 - if test -f /usr/libexec/ld.so; then
6196 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6197 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6198 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
6199 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6200 - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6201 - _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'
6202 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6203 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6205 - output_verbose_link_cmd='echo'
6207 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
6211 - case $cc_basename in
6213 - # Kuck and Associates, Inc. (KAI) C++ Compiler
6215 - # KCC will only create a shared library if the output file
6216 - # ends with ".so" (or ".sl" for HP-UX), so rename the library
6217 - # to its proper name (with version) after linking.
6218 - _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'
6220 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6221 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6223 - # Archives containing C++ object files must be created using
6224 - # "CC -Bstatic", where "CC" is the KAI C++ compiler.
6225 - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
6229 - # Rational C++ 2.4.1
6230 - # FIXME: insert proper C++ library support
6231 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
6234 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6235 - _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'
6237 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6238 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6240 - # Commands to make compiler produce verbose output that lists
6241 - # what "hidden" libraries, object files and flags are used when
6242 - # linking a shared library.
6244 - # There doesn't appear to be a way to prevent this compiler from
6245 - # explicitly linking system object files so we need to strip them
6246 - # from the output so that they don't get included in the library
6248 - 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'
6252 - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6253 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6254 - _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'
6256 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6257 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6259 - # Commands to make compiler produce verbose output that lists
6260 - # what "hidden" libraries, object files and flags are used when
6261 - # linking a shared library.
6262 - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
6265 - # FIXME: insert proper C++ library support
6266 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
6273 - case $cc_basename in
6275 - # Kuck and Associates, Inc. (KAI) C++ Compiler
6277 - # KCC will only create a shared library if the output file
6278 - # ends with ".so" (or ".sl" for HP-UX), so rename the library
6279 - # to its proper name (with version) after linking.
6280 - _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'
6282 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6283 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6285 - # Archives containing C++ object files must be created using
6286 - # the KAI C++ compiler.
6287 - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
6290 - # Rational C++ 2.4.1
6291 - # FIXME: insert proper C++ library support
6292 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
6295 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6296 - _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'
6297 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
6298 - echo "-hidden">> $lib.exp~
6299 - $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~
6302 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6303 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6305 - # Commands to make compiler produce verbose output that lists
6306 - # what "hidden" libraries, object files and flags are used when
6307 - # linking a shared library.
6309 - # There doesn't appear to be a way to prevent this compiler from
6310 - # explicitly linking system object files so we need to strip them
6311 - # from the output so that they don't get included in the library
6313 - 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'
6315 + case $cc_basename in
6317 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
6324 - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6325 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6326 - _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'
6328 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6329 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6331 - # Commands to make compiler produce verbose output that lists
6332 - # what "hidden" libraries, object files and flags are used when
6333 - # linking a shared library.
6334 - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
6337 - # FIXME: insert proper C++ library support
6338 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
6345 - # FIXME: insert proper C++ library support
6346 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
6349 - case $cc_basename in
6352 - # FIXME: insert proper C++ library support
6353 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
6357 - # FIXME: insert proper C++ library support
6358 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
6360 + # QNX uses GNU C++, but need to define -shared option too, otherwise
6361 + # it will coredump.
6362 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
6364 + osf3* | osf4* | osf5*)
6365 + case $cc_basename in
6367 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
6370 + # Rational C++ 2.4.1
6371 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
6374 + # Digital/Compaq C++
6375 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6376 + # Make sure the PIC flag is empty. It appears that all Alpha
6377 + # Linux and Compaq Tru64 Unix objects are PIC.
6378 + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
6379 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6386 - # FIXME: insert proper C++ library support
6387 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
6393 - case $cc_basename in
6395 - # Sun C++ 4.2, 5.x and Centerline C++
6396 - _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
6397 - _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
6398 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6399 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6400 - $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'
6402 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6403 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6405 - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6407 + case $cc_basename in
6409 + # Sun C++ 4.2, 5.x and Centerline C++
6410 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6411 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6412 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
6415 + # Green Hills C++ Compiler
6416 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
6419 - # The compiler driver will combine and reorder linker options,
6420 - # but understands `-z linker_flag'.
6421 - # Supported since Solaris 2.6 (maybe 2.5.1?)
6422 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
6425 - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6427 - output_verbose_link_cmd='echo'
6429 - # Archives containing C++ object files must be created using
6430 - # "CC -xar", where "CC" is the Sun C++ compiler. This is
6431 - # necessary to make sure instantiated templates are included
6433 - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
6436 - # Green Hills C++ Compiler
6437 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6439 - # The C++ compiler must be used to create the archive.
6440 - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
6443 - # GNU C++ compiler with Solaris linker
6444 - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6445 - _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
6446 - if $CC --version | grep -v '^2\.7' > /dev/null; then
6447 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6448 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6449 - $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
6451 - # Commands to make compiler produce verbose output that lists
6452 - # what "hidden" libraries, object files and flags are used when
6453 - # linking a shared library.
6454 - output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
6456 - # g++ 2.7 appears to require `-G' NOT `-shared' on this
6458 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6459 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6460 - $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
6462 - # Commands to make compiler produce verbose output that lists
6463 - # what "hidden" libraries, object files and flags are used when
6464 - # linking a shared library.
6465 - output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
6468 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
6470 - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6472 + case $cc_basename in
6475 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
6476 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6480 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
6483 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
6490 - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
6491 - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6492 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6493 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6494 - runpath_var='LD_RUN_PATH'
6496 - case $cc_basename in
6498 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6499 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6502 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6503 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6507 - sysv5* | sco3.2v5* | sco5v6*)
6508 - # Note: We can NOT use -z defs as we might desire, because we do not
6509 - # link with -lc, and that would cause any symbols used from libc to
6510 - # always be unresolved, which means just about no library would
6511 - # ever link correctly. If we're not using GNU ld we use -z text
6512 - # though, which does catch some bad symbols but isn't as heavy-handed
6514 - # For security reasons, it is highly recommended that you always
6515 - # use absolute paths for naming shared libraries, and exclude the
6516 - # DT_RUNPATH tag from executables and libraries. But doing so
6517 - # requires that you compile everything twice, which is a pain.
6518 - # So that behaviour is only enabled if SCOABSPATH is set to a
6519 - # non-empty value in the environment. Most likely only useful for
6520 - # creating official distributions of packages.
6521 - # This is a hack until libtool officially supports absolute path
6522 - # names for shared libraries.
6523 - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6524 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
6525 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6526 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6527 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
6528 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
6529 - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6530 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
6531 - runpath_var='LD_RUN_PATH'
6533 - case $cc_basename in
6535 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6536 - _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'
6540 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6541 - _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'
6542 + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6543 + case $cc_basename in
6545 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6546 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6547 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6554 - case $cc_basename in
6556 - # NonStop-UX NCC 3.20
6557 - # FIXME: insert proper C++ library support
6558 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
6560 + case $cc_basename in
6562 + # NonStop-UX NCC 3.20
6563 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6570 - # FIXME: insert proper C++ library support
6571 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
6577 - # FIXME: insert proper C++ library support
6578 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
6581 - # FIXME: insert proper C++ library support
6582 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
6585 -AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
6586 -test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
6588 -_LT_AC_TAGVAR(GCC, $1)="$GXX"
6589 -_LT_AC_TAGVAR(LD, $1)="$LD"
6592 -## There is no encapsulation within the following macros, do not change
6593 -## the running order or otherwise move them around unless you know exactly
6594 -## what you are doing...
6595 -AC_LIBTOOL_POSTDEP_PREDEP($1)
6596 -AC_LIBTOOL_PROG_COMPILER_PIC($1)
6597 -AC_LIBTOOL_PROG_CC_C_O($1)
6598 -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
6599 -AC_LIBTOOL_PROG_LD_SHLIBS($1)
6600 -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
6601 -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
6603 -AC_LIBTOOL_CONFIG($1)
6610 -with_gnu_ldcxx=$with_gnu_ld
6611 -with_gnu_ld=$lt_save_with_gnu_ld
6612 -lt_cv_path_LDCXX=$lt_cv_path_LD
6613 -lt_cv_path_LD=$lt_save_path_LD
6614 -lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
6615 -lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
6616 -])# AC_LIBTOOL_LANG_CXX_CONFIG
6618 -# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
6619 -# ------------------------------------
6620 -# Figure out "hidden" library dependencies from verbose
6621 -# compiler output when linking a shared library.
6622 -# Parse the compiler output and extract the necessary
6623 -# objects, libraries and library flags.
6624 -AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
6625 -dnl we can't use the lt_simple_compile_test_code here,
6626 -dnl because it contains code intended for an executable,
6627 -dnl not a library. It's possible we should let each
6628 -dnl tag define a new lt_????_link_test_code variable,
6629 -dnl but it's only used here...
6630 -ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
6632 -void foo (void) { a = 0; }
6634 -],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
6638 - Foo (void) { a = 0; }
6643 -],[$1],[F77],[cat > conftest.$ac_ext <<EOF
6651 -],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
6654 - public void bar (void) {
6660 -dnl Parse the compiler output and extract the necessary
6661 -dnl objects, libraries and library flags.
6662 -if AC_TRY_EVAL(ac_compile); then
6663 - # Parse the compiler output and extract the necessary
6664 - # objects, libraries and library flags.
6666 - # Sentinel used to keep track of whether or not we are before
6667 - # the conftest object file.
6668 - pre_test_object_deps_done=no
6670 - # The `*' in the case matches for architectures that use `case' in
6671 - # $output_verbose_cmd can trigger glob expansion during the loop
6672 - # eval without this substitution.
6673 - output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
6675 - for p in `eval $output_verbose_link_cmd`; do
6679 - # Some compilers place space between "-{L,R}" and the path.
6680 - # Remove the space.
6681 - if test $p = "-L" \
6682 - || test $p = "-R"; then
6689 - if test "$pre_test_object_deps_done" = no; then
6692 - # Internal compiler library paths should come after those
6693 - # provided the user. The postdeps already come after the
6694 - # user supplied libs so there is no need to process them.
6695 - if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
6696 - _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
6698 - _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
6701 - # The "-l" case would never come before the object being
6702 - # linked, so don't bother handling this case.
6705 - if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
6706 - _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
6708 - _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
6714 - # This assumes that the test object file only shows up
6715 - # once in the compiler output.
6716 - if test "$p" = "conftest.$objext"; then
6717 - pre_test_object_deps_done=yes
6721 - if test "$pre_test_object_deps_done" = no; then
6722 - if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
6723 - _LT_AC_TAGVAR(predep_objects, $1)="$p"
6725 - _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
6728 - if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
6729 - _LT_AC_TAGVAR(postdep_objects, $1)="$p"
6731 - _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
6736 - *) ;; # Ignore the rest.
6744 - echo "libtool.m4: error: problem compiling $1 test program"
6747 -$rm -f confest.$objext
6749 -# PORTME: override above test on systems where it is broken
6753 - # Interix 3.5 installs completely hosed .la files for C++, so rather than
6754 - # hack all around it, let's just trust "g++" to DTRT.
6755 - _LT_AC_TAGVAR(predep_objects,$1)=
6756 - _LT_AC_TAGVAR(postdep_objects,$1)=
6757 - _LT_AC_TAGVAR(postdeps,$1)=
6761 - case `$CC -V 2>&1 | sed 5q` in
6765 - # The more standards-conforming stlport4 library is
6766 - # incompatible with the Cstd library. Avoid specifying
6767 - # it if it's in CXXFLAGS. Ignore libCrun as
6768 - # -library=stlport4 depends on it.
6769 - case " $CXX $CXXFLAGS " in
6770 - *" -library=stlport4 "*)
6771 - solaris_use_stlport4=yes
6774 - if test "$solaris_use_stlport4" != yes; then
6775 - _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
6782 - case $cc_basename in
6784 - # The more standards-conforming stlport4 library is
6785 - # incompatible with the Cstd library. Avoid specifying
6786 - # it if it's in CXXFLAGS. Ignore libCrun as
6787 - # -library=stlport4 depends on it.
6788 - case " $CXX $CXXFLAGS " in
6789 - *" -library=stlport4 "*)
6790 - solaris_use_stlport4=yes
6794 - # Adding this requires a known-good setup of shared libraries for
6795 - # Sun compiler versions before 5.6, else PIC objects from an old
6796 - # archive will be linked into the output, leading to subtle bugs.
6797 - if test "$solaris_use_stlport4" != yes; then
6798 - _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
6806 -case " $_LT_AC_TAGVAR(postdeps, $1) " in
6807 -*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
6809 -])# AC_LIBTOOL_POSTDEP_PREDEP
6811 -# AC_LIBTOOL_LANG_F77_CONFIG
6812 -# --------------------------
6813 -# Ensure that the configuration vars for the C compiler are
6814 -# suitably defined. Those variables are subsequently used by
6815 -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
6816 -AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
6817 -AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
6818 -[AC_REQUIRE([AC_PROG_F77])
6819 -AC_LANG_PUSH(Fortran 77)
6821 -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6822 -_LT_AC_TAGVAR(allow_undefined_flag, $1)=
6823 -_LT_AC_TAGVAR(always_export_symbols, $1)=no
6824 -_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
6825 -_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
6826 -_LT_AC_TAGVAR(hardcode_direct, $1)=no
6827 -_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
6828 -_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
6829 -_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
6830 -_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
6831 -_LT_AC_TAGVAR(hardcode_automatic, $1)=no
6832 -_LT_AC_TAGVAR(module_cmds, $1)=
6833 -_LT_AC_TAGVAR(module_expsym_cmds, $1)=
6834 -_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
6835 -_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
6836 -_LT_AC_TAGVAR(no_undefined_flag, $1)=
6837 -_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
6838 -_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6840 -# Source file extension for f77 test sources.
6843 -# Object file extension for compiled f77 test sources.
6845 -_LT_AC_TAGVAR(objext, $1)=$objext
6847 -# Code to be used in simple compile tests
6848 -lt_simple_compile_test_code="\
6854 -# Code to be used in simple link tests
6855 -lt_simple_link_test_code="\
6860 -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
6861 -_LT_AC_SYS_COMPILER
6863 -# save warnings/boilerplate of simple test code
6864 -_LT_COMPILER_BOILERPLATE
6865 -_LT_LINKER_BOILERPLATE
6867 -# Allow CC to be a program name with arguments.
6871 -_LT_AC_TAGVAR(compiler, $1)=$CC
6872 -_LT_CC_BASENAME([$compiler])
6874 -AC_MSG_CHECKING([if libtool supports shared libraries])
6875 -AC_MSG_RESULT([$can_build_shared])
6877 -AC_MSG_CHECKING([whether to build shared libraries])
6878 -test "$can_build_shared" = "no" && enable_shared=no
6880 -# On AIX, shared libraries and static libraries use the same namespace, and
6881 -# are all built from PIC.
6884 - test "$enable_shared" = yes && enable_static=no
6885 - if test -n "$RANLIB"; then
6886 - archive_cmds="$archive_cmds~\$RANLIB \$lib"
6887 - postinstall_cmds='$RANLIB $lib'
6891 - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6892 - test "$enable_shared" = yes && enable_static=no
6896 -AC_MSG_RESULT([$enable_shared])
6898 -AC_MSG_CHECKING([whether to build static libraries])
6899 -# Make sure either enable_shared or enable_static is yes.
6900 -test "$enable_shared" = yes || enable_static=yes
6901 -AC_MSG_RESULT([$enable_static])
6903 -_LT_AC_TAGVAR(GCC, $1)="$G77"
6904 -_LT_AC_TAGVAR(LD, $1)="$LD"
6906 -AC_LIBTOOL_PROG_COMPILER_PIC($1)
6907 -AC_LIBTOOL_PROG_CC_C_O($1)
6908 -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
6909 -AC_LIBTOOL_PROG_LD_SHLIBS($1)
6910 -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
6911 -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
6913 -AC_LIBTOOL_CONFIG($1)
6917 -])# AC_LIBTOOL_LANG_F77_CONFIG
6920 + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
6926 + if test "$GCC" = yes; then
6927 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6928 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
6930 -# AC_LIBTOOL_LANG_GCJ_CONFIG
6931 -# --------------------------
6932 -# Ensure that the configuration vars for the C compiler are
6933 -# suitably defined. Those variables are subsequently used by
6934 -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
6935 -AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
6936 -AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
6940 + # All AIX code is PIC.
6941 + if test "$host_cpu" = ia64; then
6942 + # AIX 5 now supports IA64 processor
6943 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6947 -# Source file extension for Java test sources.
6952 + # see comment about AmigaOS4 .so support
6953 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6956 + # FIXME: we need at least 68020 code to build shared libraries, but
6957 + # adding the `-m68020' flag to GCC prevents building anything better,
6959 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
6964 -# Object file extension for compiled Java test sources.
6966 -_LT_AC_TAGVAR(objext, $1)=$objext
6967 + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6968 + # PIC is the default for these OSes.
6971 -# Code to be used in simple compile tests
6972 -lt_simple_compile_test_code="class foo {}"
6973 + mingw* | cygwin* | pw32* | os2*)
6974 + # This hack is so that the source file can tell whether it is being
6975 + # built for inclusion in a dll (and should export symbols for example).
6976 + # Although the cygwin gcc ignores -fPIC, still need this for old-style
6977 + # (--disable-auto-import) libraries
6978 + m4_if([$1], [GCJ], [],
6979 + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
6982 -# Code to be used in simple link tests
6983 -lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
6984 + darwin* | rhapsody*)
6985 + # PIC is the default on this platform
6986 + # Common symbols not allowed in MH_DYLIB files
6987 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
6990 -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
6991 -_LT_AC_SYS_COMPILER
6993 + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6994 + # not for PA HP-UX.
7000 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
7005 -# save warnings/boilerplate of simple test code
7006 -_LT_COMPILER_BOILERPLATE
7007 -_LT_LINKER_BOILERPLATE
7009 + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7010 + # Instead, we relocate shared libraries at runtime.
7013 -# Allow CC to be a program name with arguments.
7017 -_LT_AC_TAGVAR(compiler, $1)=$CC
7018 -_LT_CC_BASENAME([$compiler])
7020 + # Just because we use GCC doesn't mean we suddenly get shared libraries
7021 + # on systems that don't support them.
7022 + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
7026 -# GCJ did not exist at the time GCC didn't implicitly link libc in.
7027 -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
7029 + # QNX uses GNU C++, but need to define -shared option too, otherwise
7030 + # it will coredump.
7031 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
7034 -_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7036 + if test -d /usr/nec; then
7037 + _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
7042 -## There is no encapsulation within the following macros, do not change
7043 -## the running order or otherwise move them around unless you know exactly
7044 -## what you are doing...
7045 -AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
7046 -AC_LIBTOOL_PROG_COMPILER_PIC($1)
7047 -AC_LIBTOOL_PROG_CC_C_O($1)
7048 -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
7049 -AC_LIBTOOL_PROG_LD_SHLIBS($1)
7050 -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
7051 -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
7053 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
7057 + # PORTME Check for flag to pass linker flags through the system compiler.
7060 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7061 + if test "$host_cpu" = ia64; then
7062 + # AIX 5 now supports IA64 processor
7063 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7065 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
7069 -AC_LIBTOOL_CONFIG($1)
7070 + mingw* | cygwin* | pw32* | os2*)
7071 + # This hack is so that the source file can tell whether it is being
7072 + # built for inclusion in a dll (and should export symbols for example).
7073 + m4_if([$1], [GCJ], [],
7074 + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
7079 -])# AC_LIBTOOL_LANG_GCJ_CONFIG
7080 + hpux9* | hpux10* | hpux11*)
7081 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7082 + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7083 + # not for PA HP-UX.
7089 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
7092 + # Is there a better lt_prog_compiler_static that works with the bundled CC?
7093 + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
7096 + irix5* | irix6* | nonstopux*)
7097 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7098 + # PIC (with -KPIC) is the default.
7099 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
7102 -# AC_LIBTOOL_LANG_RC_CONFIG
7103 -# -------------------------
7104 -# Ensure that the configuration vars for the Windows resource compiler are
7105 -# suitably defined. Those variables are subsequently used by
7106 -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
7107 -AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
7108 -AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
7110 + linux* | k*bsd*-gnu)
7111 + case $cc_basename in
7112 + icc* | ecc* | ifort*)
7113 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7114 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
7115 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
7117 + pgcc* | pgf77* | pgf90* | pgf95*)
7118 + # Portland Group compilers (*not* the Pentium gcc compiler,
7119 + # which looks to be a dead project)
7120 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7121 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
7122 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7125 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7126 + # All Alpha code is PIC.
7127 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
7130 + # IBM XL C 8.0/Fortran 10.1 on PPC
7131 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7132 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
7133 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
7136 + case `$CC -V 2>&1 | sed 5q` in
7139 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
7140 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7141 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7144 + # Sun Fortran 8.3 passes all unrecognized flags to the linker
7145 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
7146 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7147 + _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
7154 -# Source file extension for RC test sources.
7157 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
7158 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7161 -# Object file extension for compiled RC test sources.
7163 -_LT_AC_TAGVAR(objext, $1)=$objext
7165 + # QNX uses GNU C++, but need to define -shared option too, otherwise
7166 + # it will coredump.
7167 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
7170 -# Code to be used in simple compile tests
7171 -lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
7172 + osf3* | osf4* | osf5*)
7173 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7174 + # All OSF/1 code is PIC.
7175 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
7178 -# Code to be used in simple link tests
7179 -lt_simple_link_test_code="$lt_simple_compile_test_code"
7181 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
7184 -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
7185 -_LT_AC_SYS_COMPILER
7187 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
7188 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7189 + case $cc_basename in
7190 + f77* | f90* | f95*)
7191 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
7193 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
7197 -# save warnings/boilerplate of simple test code
7198 -_LT_COMPILER_BOILERPLATE
7199 -_LT_LINKER_BOILERPLATE
7201 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
7202 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
7203 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7206 -# Allow CC to be a program name with arguments.
7210 -_LT_AC_TAGVAR(compiler, $1)=$CC
7211 -_LT_CC_BASENAME([$compiler])
7212 -_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
7213 + sysv4 | sysv4.2uw2* | sysv4.3*)
7214 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7215 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
7216 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7219 -AC_LIBTOOL_CONFIG($1)
7221 + if test -d /usr/nec ;then
7222 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
7223 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7229 -])# AC_LIBTOOL_LANG_RC_CONFIG
7230 + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7231 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7232 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
7233 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7237 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7238 + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
7241 -# AC_LIBTOOL_CONFIG([TAGNAME])
7242 -# ----------------------------
7243 -# If TAGNAME is not passed, then create an initial libtool script
7244 -# with a default configuration from the untagged config vars. Otherwise
7245 -# add code to config.status for appending the configuration named by
7246 -# TAGNAME from the matching tagged config vars.
7247 -AC_DEFUN([AC_LIBTOOL_CONFIG],
7248 -[# The else clause should only fire when bootstrapping the
7249 -# libtool distribution, otherwise you forgot to ship ltmain.sh
7250 -# with your package, and you will get complaints that there are
7251 -# no rules to generate ltmain.sh.
7252 -if test -f "$ltmain"; then
7253 - # See if we are running on zsh, and set the options which allow our commands through
7254 - # without removal of \ escapes.
7255 - if test -n "${ZSH_VERSION+set}" ; then
7256 - setopt NO_GLOB_SUBST
7258 - # Now quote all the things that may contain metacharacters while being
7259 - # careful not to overquote the AC_SUBSTed values. We take copies of the
7260 - # variables and quote the copies for generation of the libtool script.
7261 - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
7263 - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
7264 - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
7265 - deplibs_check_method reload_flag reload_cmds need_locks \
7266 - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
7267 - lt_cv_sys_global_symbol_to_c_name_address \
7268 - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7269 - old_postinstall_cmds old_postuninstall_cmds \
7270 - _LT_AC_TAGVAR(compiler, $1) \
7271 - _LT_AC_TAGVAR(CC, $1) \
7272 - _LT_AC_TAGVAR(LD, $1) \
7273 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
7274 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
7275 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
7276 - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
7277 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
7278 - _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
7279 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
7280 - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
7281 - _LT_AC_TAGVAR(old_archive_cmds, $1) \
7282 - _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
7283 - _LT_AC_TAGVAR(predep_objects, $1) \
7284 - _LT_AC_TAGVAR(postdep_objects, $1) \
7285 - _LT_AC_TAGVAR(predeps, $1) \
7286 - _LT_AC_TAGVAR(postdeps, $1) \
7287 - _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
7288 - _LT_AC_TAGVAR(archive_cmds, $1) \
7289 - _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
7290 - _LT_AC_TAGVAR(postinstall_cmds, $1) \
7291 - _LT_AC_TAGVAR(postuninstall_cmds, $1) \
7292 - _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
7293 - _LT_AC_TAGVAR(allow_undefined_flag, $1) \
7294 - _LT_AC_TAGVAR(no_undefined_flag, $1) \
7295 - _LT_AC_TAGVAR(export_symbols_cmds, $1) \
7296 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
7297 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
7298 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
7299 - _LT_AC_TAGVAR(hardcode_automatic, $1) \
7300 - _LT_AC_TAGVAR(module_cmds, $1) \
7301 - _LT_AC_TAGVAR(module_expsym_cmds, $1) \
7302 - _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
7303 - _LT_AC_TAGVAR(fix_srcfile_path, $1) \
7304 - _LT_AC_TAGVAR(exclude_expsyms, $1) \
7305 - _LT_AC_TAGVAR(include_expsyms, $1); do
7308 - _LT_AC_TAGVAR(old_archive_cmds, $1) | \
7309 - _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
7310 - _LT_AC_TAGVAR(archive_cmds, $1) | \
7311 - _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
7312 - _LT_AC_TAGVAR(module_cmds, $1) | \
7313 - _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
7314 - _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
7315 - _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
7316 - extract_expsyms_cmds | reload_cmds | finish_cmds | \
7317 - postinstall_cmds | postuninstall_cmds | \
7318 - old_postinstall_cmds | old_postuninstall_cmds | \
7319 - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7320 - # Double-quote double-evaled strings.
7321 - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7323 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
7324 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7328 - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7329 + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
7335 - *'\[$]0 --fallback-echo"')
7336 - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
7340 + # For platforms which do not support PIC, -DPIC is meaningless:
7342 + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
7347 - [cfgfile="${ofile}T"
7348 - trap "$rm \"$cfgfile\"; exit 1" 1 2 15
7350 - AC_MSG_NOTICE([creating $ofile])],
7351 - [cfgfile="$ofile"])
7353 - cat <<__EOF__ >> "$cfgfile"
7357 + _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
7360 +AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
7361 +_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
7362 + [How to pass a linker flag through the compiler])
7364 -# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7365 -# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7366 -# NOTE: Changes made to this file will be lost: look at ltmain.sh.
7368 -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
7369 -# Free Software Foundation, Inc.
7371 -# This file is part of GNU Libtool:
7372 -# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7374 -# This program is free software; you can redistribute it and/or modify
7375 -# it under the terms of the GNU General Public License as published by
7376 -# the Free Software Foundation; either version 2 of the License, or
7377 -# (at your option) any later version.
7378 +# Check to make sure the PIC flag actually works.
7380 -# This program is distributed in the hope that it will be useful, but
7381 -# WITHOUT ANY WARRANTY; without even the implied warranty of
7382 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7383 -# General Public License for more details.
7384 +if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
7385 + _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
7386 + [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
7387 + [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
7388 + [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
7390 + *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
7392 + [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
7393 + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
7395 +_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
7396 + [Additional compiler flags for building library objects])
7399 -# You should have received a copy of the GNU General Public License
7400 -# along with this program; if not, write to the Free Software
7401 -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
7402 +# Check to make sure the static flag actually works.
7404 -# As a special exception to the GNU General Public License, if you
7405 -# distribute this file as part of a program that contains a
7406 -# configuration script generated by Autoconf, you may include it under
7407 -# the same distribution terms that you use for the rest of that program.
7409 -# A sed program that does not truncate output.
7412 -# Sed that helps us avoid accidentally triggering echo(1) options like -n.
7413 -Xsed="$SED -e 1s/^X//"
7415 -# The HP-UX ksh and POSIX shell print the target directory to stdout
7416 -# if CDPATH is set.
7417 -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7419 -# The names of the tagged configurations supported by this script.
7422 -# ### BEGIN LIBTOOL CONFIG],
7423 -[# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
7425 -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7427 -# Shell to use when invoking shell scripts.
7430 -# Whether or not to build shared libraries.
7431 -build_libtool_libs=$enable_shared
7433 -# Whether or not to build static libraries.
7434 -build_old_libs=$enable_static
7436 -# Whether or not to add -lc for building shared libraries.
7437 -build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
7439 -# Whether or not to disallow shared libs when runtime libs are static
7440 -allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
7442 -# Whether or not to optimize for fast installation.
7443 -fast_install=$enable_fast_install
7446 -host_alias=$host_alias
7450 -# The build system.
7451 -build_alias=$build_alias
7455 -# An echo program that does not interpret backslashes.
7460 -AR_FLAGS=$lt_AR_FLAGS
7465 -# LTCC compiler flags.
7466 -LTCFLAGS=$lt_LTCFLAGS
7468 -# A language-specific compiler.
7469 -CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
7471 -# Is the compiler the GNU C compiler?
7472 -with_gcc=$_LT_AC_TAGVAR(GCC, $1)
7477 -# The linker used to build libraries.
7478 -LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
7480 -# Whether we need hard or soft links.
7483 -# A BSD-compatible nm program.
7486 -# A symbol stripping program
7489 -# Used to examine libraries when file_magic_cmd begins "file"
7490 -MAGIC_CMD=$MAGIC_CMD
7492 -# Used on cygwin: DLL creation program.
7495 -# Used on cygwin: object dumper.
7497 +wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
7498 +_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
7499 + _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
7500 + $lt_tmp_static_flag,
7502 + [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
7503 +_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
7504 + [Compiler flag to prevent dynamic linking])
7505 +])# _LT_COMPILER_PIC
7507 -# Used on cygwin: assembler.
7510 -# The name of the directory that contains temporary libtool files.
7512 +# _LT_LINKER_SHLIBS([TAGNAME])
7513 +# ----------------------------
7514 +# See if the linker supports building shared libraries.
7515 +m4_defun([_LT_LINKER_SHLIBS],
7516 +[AC_REQUIRE([LT_PATH_LD])dnl
7517 +AC_REQUIRE([LT_PATH_NM])dnl
7518 +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
7519 +m4_require([_LT_DECL_EGREP])dnl
7520 +m4_require([_LT_DECL_SED])dnl
7521 +m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
7522 +m4_require([_LT_TAG_COMPILER])dnl
7523 +AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
7524 +m4_if([$1], [CXX], [
7525 + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7528 + # If we're using GNU nm, then we don't want the "-C" option.
7529 + # -C means demangle to AIX nm, but means don't demangle with GNU nm
7530 + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7531 + _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'
7533 + _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'
7537 + _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
7540 + _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'
7543 + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7546 + _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
7549 + _LT_TAGVAR(allow_undefined_flag, $1)=
7550 + _LT_TAGVAR(always_export_symbols, $1)=no
7551 + _LT_TAGVAR(archive_cmds, $1)=
7552 + _LT_TAGVAR(archive_expsym_cmds, $1)=
7553 + _LT_TAGVAR(compiler_needs_object, $1)=no
7554 + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7555 + _LT_TAGVAR(export_dynamic_flag_spec, $1)=
7556 + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7557 + _LT_TAGVAR(hardcode_automatic, $1)=no
7558 + _LT_TAGVAR(hardcode_direct, $1)=no
7559 + _LT_TAGVAR(hardcode_direct_absolute, $1)=no
7560 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
7561 + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
7562 + _LT_TAGVAR(hardcode_libdir_separator, $1)=
7563 + _LT_TAGVAR(hardcode_minus_L, $1)=no
7564 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
7565 + _LT_TAGVAR(inherit_rpath, $1)=no
7566 + _LT_TAGVAR(link_all_deplibs, $1)=unknown
7567 + _LT_TAGVAR(module_cmds, $1)=
7568 + _LT_TAGVAR(module_expsym_cmds, $1)=
7569 + _LT_TAGVAR(old_archive_from_new_cmds, $1)=
7570 + _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
7571 + _LT_TAGVAR(thread_safe_flag_spec, $1)=
7572 + _LT_TAGVAR(whole_archive_flag_spec, $1)=
7573 + # include_expsyms should be a list of space-separated symbols to be *always*
7574 + # included in the symbol list
7575 + _LT_TAGVAR(include_expsyms, $1)=
7576 + # exclude_expsyms can be an extended regexp of symbols to exclude
7577 + # it will be wrapped by ` (' and `)$', so one must not match beginning or
7578 + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7579 + # as well as any symbol that contains `d'.
7580 + _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
7581 + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7582 + # platforms (ab)use it in PIC code, but their linkers get confused if
7583 + # the symbol is explicitly referenced. Since portable code cannot
7584 + # rely on this symbol name, it's probably fine to never include it in
7585 + # preloaded symbol tables.
7586 + # Exclude shared library initialization/finalization symbols.
7587 +dnl Note also adjust exclude_expsyms for C++ above.
7588 + extract_expsyms_cmds=
7590 -# How to create reloadable object files.
7591 -reload_flag=$lt_reload_flag
7592 -reload_cmds=$lt_reload_cmds
7594 + cygwin* | mingw* | pw32*)
7595 + # FIXME: the MSVC++ port hasn't been tested in a loooong time
7596 + # When not using gcc, we currently assume that we are using
7597 + # Microsoft Visual C++.
7598 + if test "$GCC" != yes; then
7603 + # we just hope/assume this is gcc and not c89 (= MSVC++)
7611 -# How to pass a linker flag through the compiler.
7612 -wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
7613 + _LT_TAGVAR(ld_shlibs, $1)=yes
7614 + if test "$with_gnu_ld" = yes; then
7615 + # If archive_cmds runs LD, not CC, wlarc should be empty
7618 -# Object file suffix (normally "o").
7619 -objext="$ac_objext"
7620 + # Set some defaults for GNU ld with shared library support. These
7621 + # are reset later if shared libraries are not supported. Putting them
7622 + # here allows them to be overridden if necessary.
7623 + runpath_var=LD_RUN_PATH
7624 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7625 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
7626 + # ancient GNU ld didn't support --whole-archive et. al.
7627 + if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7628 + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7630 + _LT_TAGVAR(whole_archive_flag_spec, $1)=
7632 + supports_anon_versioning=no
7633 + case `$LD -v 2>&1` in
7634 + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
7635 + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7636 + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7637 + *\ 2.11.*) ;; # other 2.11 versions
7638 + *) supports_anon_versioning=yes ;;
7641 -# Old archive suffix (normally "a").
7643 + # See if GNU ld supports shared libraries.
7646 + # On AIX/PPC, the GNU linker is very broken
7647 + if test "$host_cpu" != ia64; then
7648 + _LT_TAGVAR(ld_shlibs, $1)=no
7649 + cat <<_LT_EOF 1>&2
7651 -# Shared library suffix (normally ".so").
7652 -shrext_cmds='$shrext_cmds'
7653 +*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7654 +*** to be unable to reliably create shared libraries on AIX.
7655 +*** Therefore, libtool is disabling shared libraries support. If you
7656 +*** really care for shared libraries, you may want to modify your PATH
7657 +*** so that a non-GNU linker is found, and then restart.
7659 -# Executable file suffix (normally "").
7665 -# Additional compiler flags for building library objects.
7666 -pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
7671 + # see comment about AmigaOS4 .so support
7672 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7673 + _LT_TAGVAR(archive_expsym_cmds, $1)=''
7676 + _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)'
7677 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7678 + _LT_TAGVAR(hardcode_minus_L, $1)=yes
7683 -# What is the maximum length of a command?
7684 -max_cmd_len=$lt_cv_sys_max_cmd_len
7686 + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7687 + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
7688 + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7689 + # support --undefined. This deserves some investigation. FIXME
7690 + _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7692 + _LT_TAGVAR(ld_shlibs, $1)=no
7696 -# Does compiler simultaneously support -c and -o options?
7697 -compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
7698 + cygwin* | mingw* | pw32*)
7699 + # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
7700 + # as there is no search path for DLLs.
7701 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7702 + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
7703 + _LT_TAGVAR(always_export_symbols, $1)=no
7704 + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
7705 + _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'
7707 -# Must we lock files when doing compilation?
7708 -need_locks=$lt_need_locks
7709 + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7710 + _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'
7711 + # If the export-symbols file already is a .def file (1st line
7712 + # is EXPORTS), use it as is; otherwise, prepend...
7713 + _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7714 + cp $export_symbols $output_objdir/$soname.def;
7716 + echo EXPORTS > $output_objdir/$soname.def;
7717 + cat $export_symbols >> $output_objdir/$soname.def;
7719 + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7721 + _LT_TAGVAR(ld_shlibs, $1)=no
7725 -# Do we need the lib prefix for modules?
7726 -need_lib_prefix=$need_lib_prefix
7728 + _LT_TAGVAR(hardcode_direct, $1)=no
7729 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7730 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
7731 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
7732 + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7733 + # Instead, shared libraries are loaded at an image base (0x10000000 by
7734 + # default) and relocated if they conflict, which is a slow very memory
7735 + # consuming and fragmenting process. To avoid this, we pick a random,
7736 + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7737 + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7738 + _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'
7739 + _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'
7742 -# Do we need a version for libraries?
7743 -need_version=$need_version
7744 + gnu* | linux* | tpf* | k*bsd*-gnu)
7746 + if test "$host_os" = linux-dietlibc; then
7747 + case $cc_basename in
7748 + diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7751 + if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7752 + && test "$tmp_diet" = no
7755 + tmp_sharedflag='-shared'
7756 + case $cc_basename,$host_cpu in
7757 + pgcc*) # Portland Group C compiler
7758 + _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'
7759 + tmp_addflag=' $pic_flag'
7761 + pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7762 + _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'
7763 + tmp_addflag=' $pic_flag -Mnomain' ;;
7764 + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7765 + tmp_addflag=' -i_dynamic' ;;
7766 + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7767 + tmp_addflag=' -i_dynamic -nofor_main' ;;
7768 + ifc* | ifort*) # Intel Fortran compiler
7769 + tmp_addflag=' -nofor_main' ;;
7770 + xl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
7771 + tmp_sharedflag='-qmkshrobj'
7774 + case `$CC -V 2>&1 | sed 5q` in
7775 + *Sun\ C*) # Sun C 5.9
7776 + _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'
7777 + _LT_TAGVAR(compiler_needs_object, $1)=yes
7778 + tmp_sharedflag='-G' ;;
7779 + *Sun\ F*) # Sun Fortran 8.3
7780 + tmp_sharedflag='-G' ;;
7782 + _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7784 -# Whether dlopen is supported.
7785 -dlopen_support=$enable_dlopen
7786 + if test "x$supports_anon_versioning" = xyes; then
7787 + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
7788 + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7789 + echo "local: *; };" >> $output_objdir/$libname.ver~
7790 + $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7793 -# Whether dlopen of programs is supported.
7794 -dlopen_self=$enable_dlopen_self
7795 + case $cc_basename in
7797 + # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
7798 + _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
7799 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
7800 + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
7801 + _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
7802 + if test "x$supports_anon_versioning" = xyes; then
7803 + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
7804 + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7805 + echo "local: *; };" >> $output_objdir/$libname.ver~
7806 + $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
7811 + _LT_TAGVAR(ld_shlibs, $1)=no
7815 -# Whether dlopen of statically linked programs is supported.
7816 -dlopen_self_static=$enable_dlopen_self_static
7818 + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7819 + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7822 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7823 + _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'
7827 -# Compiler flag to prevent dynamic linking.
7828 -link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
7830 + if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7831 + _LT_TAGVAR(ld_shlibs, $1)=no
7832 + cat <<_LT_EOF 1>&2
7834 -# Compiler flag to turn off builtin functions.
7835 -no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
7836 +*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7837 +*** create shared libraries on Solaris systems. Therefore, libtool
7838 +*** is disabling shared libraries support. We urge you to upgrade GNU
7839 +*** binutils to release 2.9.1 or newer. Another option is to modify
7840 +*** your PATH or compiler configuration so that the native linker is
7841 +*** used, and then restart.
7843 -# Compiler flag to allow reflexive dlopens.
7844 -export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
7846 + elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7847 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7848 + _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'
7850 + _LT_TAGVAR(ld_shlibs, $1)=no
7854 -# Compiler flag to generate shared objects directly from archives.
7855 -whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
7856 + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7857 + case `$LD -v 2>&1` in
7858 + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
7859 + _LT_TAGVAR(ld_shlibs, $1)=no
7860 + cat <<_LT_EOF 1>&2
7862 -# Compiler flag to generate thread-safe objects.
7863 -thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
7864 +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7865 +*** reliably create shared libraries on SCO systems. Therefore, libtool
7866 +*** is disabling shared libraries support. We urge you to upgrade GNU
7867 +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7868 +*** your PATH or compiler configuration so that the native linker is
7869 +*** used, and then restart.
7871 -# Library versioning type.
7872 -version_type=$version_type
7876 + # For security reasons, it is highly recommended that you always
7877 + # use absolute paths for naming shared libraries, and exclude the
7878 + # DT_RUNPATH tag from executables and libraries. But doing so
7879 + # requires that you compile everything twice, which is a pain.
7880 + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7881 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7882 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7883 + _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'
7885 + _LT_TAGVAR(ld_shlibs, $1)=no
7891 -# Format of library name prefix.
7892 -libname_spec=$lt_libname_spec
7894 + _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7896 + _LT_TAGVAR(hardcode_direct, $1)=yes
7897 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7900 -# List of archive names. First name is the real one, the rest are links.
7901 -# The last name is the one that the linker finds with -lNAME.
7902 -library_names_spec=$lt_library_names_spec
7904 + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7905 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7906 + _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'
7908 + _LT_TAGVAR(ld_shlibs, $1)=no
7913 -# The coded name of the library, if different from the real name.
7914 -soname_spec=$lt_soname_spec
7915 + if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
7917 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
7918 + _LT_TAGVAR(export_dynamic_flag_spec, $1)=
7919 + _LT_TAGVAR(whole_archive_flag_spec, $1)=
7922 + # PORTME fill in a description of your system's linker (not GNU ld)
7925 + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
7926 + _LT_TAGVAR(always_export_symbols, $1)=yes
7927 + _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'
7928 + # Note: this linker hardcodes the directories in LIBPATH if there
7929 + # are no directories specified by -L.
7930 + _LT_TAGVAR(hardcode_minus_L, $1)=yes
7931 + if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7932 + # Neither direct hardcoding nor static linking is supported with a
7933 + # broken collect2.
7934 + _LT_TAGVAR(hardcode_direct, $1)=unsupported
7938 -# Commands used to build and install an old-style archive.
7940 -old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
7941 -old_postinstall_cmds=$lt_old_postinstall_cmds
7942 -old_postuninstall_cmds=$lt_old_postuninstall_cmds
7944 + if test "$host_cpu" = ia64; then
7945 + # On IA64, the linker does run time linking by default, so we don't
7946 + # have to do anything special.
7947 + aix_use_runtimelinking=no
7948 + exp_sym_flag='-Bexport'
7951 + # If we're using GNU nm, then we don't want the "-C" option.
7952 + # -C means demangle to AIX nm, but means don't demangle with GNU nm
7953 + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7954 + _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'
7956 + _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'
7958 + aix_use_runtimelinking=no
7960 -# Create an old-style archive from a shared archive.
7961 -old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
7962 + # Test if we are trying to use run time linking or normal
7963 + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7964 + # need to do runtime linking.
7965 + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
7966 + for ld_flag in $LDFLAGS; do
7967 + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7968 + aix_use_runtimelinking=yes
7975 -# Create a temporary old-style archive to link instead of a shared archive.
7976 -old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
7977 + exp_sym_flag='-bexport'
7978 + no_entry_flag='-bnoentry'
7981 -# Commands used to build and install a shared archive.
7982 -archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
7983 -archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
7984 -postinstall_cmds=$lt_postinstall_cmds
7985 -postuninstall_cmds=$lt_postuninstall_cmds
7986 + # When large executables or shared objects are built, AIX ld can
7987 + # have problems creating the table of contents. If linking a library
7988 + # or program results in "error TOC overflow" add -mminimal-toc to
7989 + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7990 + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7992 -# Commands used to build a loadable module (assumed same as above if empty)
7993 -module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
7994 -module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
7995 + _LT_TAGVAR(archive_cmds, $1)=''
7996 + _LT_TAGVAR(hardcode_direct, $1)=yes
7997 + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
7998 + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
7999 + _LT_TAGVAR(link_all_deplibs, $1)=yes
8000 + _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
8002 -# Commands to strip libraries.
8003 -old_striplib=$lt_old_striplib
8004 -striplib=$lt_striplib
8005 + if test "$GCC" = yes; then
8006 + case $host_os in aix4.[[012]]|aix4.[[012]].*)
8007 + # We only want to do this on AIX 4.2 and lower, the check
8008 + # below for broken collect2 doesn't work under 4.3+
8009 + collect2name=`${CC} -print-prog-name=collect2`
8010 + if test -f "$collect2name" &&
8011 + strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8013 + # We have reworked collect2
8016 + # We have old collect2
8017 + _LT_TAGVAR(hardcode_direct, $1)=unsupported
8018 + # It fails to find uninstalled libraries when the uninstalled
8019 + # path is not listed in the libpath. Setting hardcode_minus_L
8020 + # to unsupported forces relinking
8021 + _LT_TAGVAR(hardcode_minus_L, $1)=yes
8022 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
8023 + _LT_TAGVAR(hardcode_libdir_separator, $1)=
8027 + shared_flag='-shared'
8028 + if test "$aix_use_runtimelinking" = yes; then
8029 + shared_flag="$shared_flag "'${wl}-G'
8033 + if test "$host_cpu" = ia64; then
8034 + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8035 + # chokes on -Wl,-G. The following line is correct:
8038 + if test "$aix_use_runtimelinking" = yes; then
8039 + shared_flag='${wl}-G'
8041 + shared_flag='${wl}-bM:SRE'
8046 -# Dependencies to place before the objects being linked to create a
8048 -predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
8049 + # It seems that -bexpall does not export symbols beginning with
8050 + # underscore (_), so it is better to generate a list of symbols to export.
8051 + _LT_TAGVAR(always_export_symbols, $1)=yes
8052 + if test "$aix_use_runtimelinking" = yes; then
8053 + # Warning - without using the other runtime loading flags (-brtl),
8054 + # -berok will link without error, but may produce a broken library.
8055 + _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
8056 + # Determine the default libpath from the value encoded in an
8057 + # empty executable.
8058 + _LT_SYS_MODULE_PATH_AIX
8059 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
8060 + _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"
8062 + if test "$host_cpu" = ia64; then
8063 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
8064 + _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
8065 + _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"
8067 + # Determine the default libpath from the value encoded in an
8068 + # empty executable.
8069 + _LT_SYS_MODULE_PATH_AIX
8070 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
8071 + # Warning - without using the other run time loading flags,
8072 + # -berok will link without error, but may produce a broken library.
8073 + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
8074 + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
8075 + # Exported symbols can be pulled into shared objects from archives
8076 + _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
8077 + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
8078 + # This is similar to how AIX traditionally builds its shared libraries.
8079 + _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'
8084 -# Dependencies to place after the objects being linked to create a
8086 -postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
8090 + # see comment about AmigaOS4 .so support
8091 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8092 + _LT_TAGVAR(archive_expsym_cmds, $1)=''
8095 + _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)'
8096 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
8097 + _LT_TAGVAR(hardcode_minus_L, $1)=yes
8102 -# Dependencies to place before the objects being linked to create a
8104 -predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
8106 + _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
8109 -# Dependencies to place after the objects being linked to create a
8111 -postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
8112 + cygwin* | mingw* | pw32*)
8113 + # When not using gcc, we currently assume that we are using
8114 + # Microsoft Visual C++.
8115 + # hardcode_libdir_flag_spec is actually meaningless, as there is
8116 + # no search path for DLLs.
8117 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
8118 + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
8119 + # Tell ltmain to make .lib files, not .a files.
8121 + # Tell ltmain to make .dll files, not .so files.
8122 + shrext_cmds=".dll"
8123 + # FIXME: Setting linknames here is a bad hack.
8124 + _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8125 + # The linker will automatically build a .lib file if we build a DLL.
8126 + _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
8127 + # FIXME: Should let the user specify the lib program.
8128 + _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
8129 + _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
8130 + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
8133 -# The library search path used internally by the compiler when linking
8134 -# a shared library.
8135 -compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
8136 + darwin* | rhapsody*)
8137 + _LT_DARWIN_LINKER_FEATURES($1)
8140 -# Method to check whether dependent libraries are shared objects.
8141 -deplibs_check_method=$lt_deplibs_check_method
8143 + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8144 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
8145 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8148 -# Command to use when deplibs_check_method == file_magic.
8149 -file_magic_cmd=$lt_file_magic_cmd
8151 + _LT_TAGVAR(ld_shlibs, $1)=no
8154 -# Flag that allows shared libraries with undefined symbols to be built.
8155 -allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
8156 + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8157 + # support. Future versions do this automatically, but an explicit c++rt0.o
8158 + # does not break anything, and helps significantly (at the cost of a little
8161 + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8162 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
8163 + _LT_TAGVAR(hardcode_direct, $1)=yes
8164 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8167 -# Flag that forces no undefined symbols.
8168 -no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
8169 + # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8171 + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8172 + _LT_TAGVAR(hardcode_direct, $1)=yes
8173 + _LT_TAGVAR(hardcode_minus_L, $1)=yes
8174 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8177 -# Commands used to finish a libtool library installation in a directory.
8178 -finish_cmds=$lt_finish_cmds
8179 + # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8180 + freebsd* | dragonfly*)
8181 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8182 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
8183 + _LT_TAGVAR(hardcode_direct, $1)=yes
8184 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8187 -# Same as above, but a single script fragment to be evaled but not shown.
8188 -finish_eval=$lt_finish_eval
8190 + if test "$GCC" = yes; then
8191 + _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'
8193 + _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'
8195 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
8196 + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
8197 + _LT_TAGVAR(hardcode_direct, $1)=yes
8199 -# Take the output of nm and produce a listing of raw symbols and C names.
8200 -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
8201 + # hardcode_minus_L: Not really in the search PATH,
8202 + # but as the default location of the library.
8203 + _LT_TAGVAR(hardcode_minus_L, $1)=yes
8204 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
8207 -# Transform the output of nm in a proper C declaration
8208 -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
8210 + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8211 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8213 + _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8215 + if test "$with_gnu_ld" = no; then
8216 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
8217 + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
8218 + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
8219 + _LT_TAGVAR(hardcode_direct, $1)=yes
8220 + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
8221 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
8222 + # hardcode_minus_L: Not really in the search PATH,
8223 + # but as the default location of the library.
8224 + _LT_TAGVAR(hardcode_minus_L, $1)=yes
8228 -# Transform the output of nm in a C name address pair
8229 -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
8231 + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8234 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8237 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8240 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8246 + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8249 + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8252 + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8256 + if test "$with_gnu_ld" = no; then
8257 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
8258 + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
8260 -# This is the shared library runtime path variable.
8261 -runpath_var=$runpath_var
8264 + _LT_TAGVAR(hardcode_direct, $1)=no
8265 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8268 + _LT_TAGVAR(hardcode_direct, $1)=yes
8269 + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
8270 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
8272 -# This is the shared library path variable.
8273 -shlibpath_var=$shlibpath_var
8274 + # hardcode_minus_L: Not really in the search PATH,
8275 + # but as the default location of the library.
8276 + _LT_TAGVAR(hardcode_minus_L, $1)=yes
8282 -# Is shlibpath searched before the hard-coded library search path?
8283 -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8284 + irix5* | irix6* | nonstopux*)
8285 + if test "$GCC" = yes; then
8286 + _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'
8287 + # Try to use the -exported_symbol ld option, if it does not
8288 + # work, assume that -exports_file does not work either and
8289 + # implicitly export all symbols.
8290 + save_LDFLAGS="$LDFLAGS"
8291 + LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8292 + AC_LINK_IFELSE(int foo(void) {},
8293 + _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'
8295 + LDFLAGS="$save_LDFLAGS"
8297 + _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'
8298 + _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'
8300 + _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
8301 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
8302 + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
8303 + _LT_TAGVAR(inherit_rpath, $1)=yes
8304 + _LT_TAGVAR(link_all_deplibs, $1)=yes
8307 -# How to hardcode a shared library path into an executable.
8308 -hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
8310 + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8311 + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8313 + _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8315 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
8316 + _LT_TAGVAR(hardcode_direct, $1)=yes
8317 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8320 -# Whether we should hardcode library paths into libraries.
8321 -hardcode_into_libs=$hardcode_into_libs
8323 + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8324 + _LT_TAGVAR(hardcode_direct, $1)=yes
8325 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
8326 + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
8327 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8330 -# Flag to hardcode \$libdir into a binary during linking.
8331 -# This must work even if \$libdir does not exist.
8332 -hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
8336 -# If ld is used when linking, flag to hardcode \$libdir into
8337 -# a binary during linking. This must work even if \$libdir does
8339 -hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
8341 + if test -f /usr/libexec/ld.so; then
8342 + _LT_TAGVAR(hardcode_direct, $1)=yes
8343 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8344 + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
8345 + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8346 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8347 + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8348 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
8349 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
8352 + openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
8353 + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8354 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
8357 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8358 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
8363 + _LT_TAGVAR(ld_shlibs, $1)=no
8367 -# Whether we need a single -rpath flag with a separated argument.
8368 -hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
8370 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
8371 + _LT_TAGVAR(hardcode_minus_L, $1)=yes
8372 + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
8373 + _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'
8374 + _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8377 -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
8378 -# resulting binary.
8379 -hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
8381 + if test "$GCC" = yes; then
8382 + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
8383 + _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'
8385 + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
8386 + _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'
8388 + _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
8389 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
8390 + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
8393 -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8394 -# resulting binary.
8395 -hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
8396 + osf4* | osf5*) # as osf3* with the addition of -msym flag
8397 + if test "$GCC" = yes; then
8398 + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
8399 + _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'
8400 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
8402 + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
8403 + _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'
8404 + _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~
8405 + $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'
8407 -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8408 -# the resulting binary.
8409 -hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
8410 + # Both c and cxx compiler support -rpath directly
8411 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
8413 + _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
8414 + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
8417 -# Set to yes if building a shared library automatically hardcodes DIR into the library
8418 -# and all subsequent libraries and executables linked against it.
8419 -hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
8421 + _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
8422 + if test "$GCC" = yes; then
8424 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8425 + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8426 + $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8428 + case `$CC -V 2>&1` in
8429 + *"Compilers 5.0"*)
8431 + _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8432 + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8433 + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8437 + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8438 + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8439 + $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8443 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
8444 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8446 + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
8448 + # The compiler driver will combine and reorder linker options,
8449 + # but understands `-z linker_flag'. GCC discards it without `$wl',
8450 + # but is careful enough not to reorder.
8451 + # Supported since Solaris 2.6 (maybe 2.5.1?)
8452 + if test "$GCC" = yes; then
8453 + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8455 + _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
8459 + _LT_TAGVAR(link_all_deplibs, $1)=yes
8462 -# Variables whose values should be saved in libtool wrapper scripts and
8463 -# restored at relink time.
8464 -variables_saved_for_relink="$variables_saved_for_relink"
8466 + if test "x$host_vendor" = xsequent; then
8467 + # Use $CC to link under sequent, because it throws in some extra .o
8468 + # files that make .init and .fini sections work.
8469 + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8471 + _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8473 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
8474 + _LT_TAGVAR(hardcode_direct, $1)=yes
8475 + _LT_TAGVAR(hardcode_minus_L, $1)=yes
8476 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8479 -# Whether libtool must link a program against all its dependency libraries.
8480 -link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
8482 + case $host_vendor in
8484 + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8485 + _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
8488 + ## LD is ld it makes a PLAMLIB
8489 + ## CC just makes a GrossModule.
8490 + _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8491 + _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
8492 + _LT_TAGVAR(hardcode_direct, $1)=no
8495 + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8496 + _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
8499 + runpath_var='LD_RUN_PATH'
8500 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8503 -# Compile-time system search path for libraries
8504 -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8506 + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8507 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8508 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
8511 -# Run-time system search path for libraries
8512 -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8514 + if test -d /usr/nec; then
8515 + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8516 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8517 + runpath_var=LD_RUN_PATH
8518 + hardcode_runpath_var=yes
8519 + _LT_TAGVAR(ld_shlibs, $1)=yes
8523 -# Fix the shell variable \$srcfile for the compiler.
8524 -fix_srcfile_path=$lt_fix_srcfile_path
8525 + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
8526 + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
8527 + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
8528 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8529 + runpath_var='LD_RUN_PATH'
8531 -# Set to yes if exported symbols are required.
8532 -always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
8533 + if test "$GCC" = yes; then
8534 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8535 + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8537 + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8538 + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8542 -# The commands to list exported symbols.
8543 -export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
8544 + sysv5* | sco3.2v5* | sco5v6*)
8545 + # Note: We can NOT use -z defs as we might desire, because we do not
8546 + # link with -lc, and that would cause any symbols used from libc to
8547 + # always be unresolved, which means just about no library would
8548 + # ever link correctly. If we're not using GNU ld we use -z text
8549 + # though, which does catch some bad symbols but isn't as heavy-handed
8551 + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
8552 + _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
8553 + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
8554 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8555 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
8556 + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
8557 + _LT_TAGVAR(link_all_deplibs, $1)=yes
8558 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
8559 + runpath_var='LD_RUN_PATH'
8561 -# The commands to extract the exported symbol list from a shared archive.
8562 -extract_expsyms_cmds=$lt_extract_expsyms_cmds
8563 + if test "$GCC" = yes; then
8564 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8565 + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8567 + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8568 + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8572 -# Symbols that should not be listed in the preloaded symbols.
8573 -exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
8575 + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8576 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
8577 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8580 -# Symbols that must always be exported.
8581 -include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
8583 + _LT_TAGVAR(ld_shlibs, $1)=no
8588 -[# ### END LIBTOOL CONFIG],
8589 -[# ### END LIBTOOL TAG CONFIG: $tagname])
8590 + if test x$host_vendor = xsni; then
8592 + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8593 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
8599 +AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
8600 +test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
8603 +_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
8608 - cat <<\EOF >> "$cfgfile"
8609 +_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
8610 +_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
8611 +_LT_DECL([], [extract_expsyms_cmds], [2],
8612 + [The commands to extract the exported symbol list from a shared archive])
8614 -# AIX sometimes has problems with the GCC collect2 program. For some
8615 -# reason, if we set the COLLECT_NAMES environment variable, the problems
8616 -# vanish in a puff of smoke.
8617 -if test "X${COLLECT_NAMES+set}" != Xset; then
8619 - export COLLECT_NAMES
8625 +# Do we need to explicitly link libc?
8627 +case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
8629 + # Assume -lc should be added
8630 + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
8632 - # We use sed instead of cat because bash on DJGPP gets confused if
8633 - # if finds mixed CR/LF and LF-only lines. Since sed operates in
8634 - # text mode, it properly converts lines to CR/LF. This bash problem
8635 - # is reportedly fixed, but why not run on old versions too?
8636 - sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
8637 + if test "$enable_shared" = yes && test "$GCC" = yes; then
8638 + case $_LT_TAGVAR(archive_cmds, $1) in
8640 + # FIXME: we may have to deal with multi-command sequences.
8643 + # Test whether the compiler implicitly links with -lc since on some
8644 + # systems, -lgcc has to come before -lc. If gcc already passes -lc
8645 + # to ld, don't add -lc before -lgcc.
8646 + AC_MSG_CHECKING([whether -lc should be explicitly linked in])
8648 + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8650 - mv -f "$cfgfile" "$ofile" || \
8651 - (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
8655 - # If there is no Makefile yet, we rely on a make rule to execute
8656 - # `config.status --recheck' to rerun these tests and create the
8657 - # libtool script then.
8658 - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
8659 - if test -f "$ltmain_in"; then
8660 - test -f Makefile && make "$ltmain"
8661 + if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
8664 + libobjs=conftest.$ac_objext
8666 + wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
8667 + pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
8673 + lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
8674 + _LT_TAGVAR(allow_undefined_flag, $1)=
8675 + if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
8677 + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
8679 + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
8681 + _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
8683 + cat conftest.err 1>&5
8686 + AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
8691 -])# AC_LIBTOOL_CONFIG
8694 -# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
8695 -# -------------------------------------------
8696 -AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
8697 -[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
8701 -_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
8702 +_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
8703 + [Whether or not to add -lc for building shared libraries])
8704 +_LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
8705 + [enable_shared_with_static_runtimes], [0],
8706 + [Whether or not to disallow shared libs when runtime libs are static])
8707 +_LT_TAGDECL([], [export_dynamic_flag_spec], [1],
8708 + [Compiler flag to allow reflexive dlopens])
8709 +_LT_TAGDECL([], [whole_archive_flag_spec], [1],
8710 + [Compiler flag to generate shared objects directly from archives])
8711 +_LT_TAGDECL([], [compiler_needs_object], [1],
8712 + [Whether the compiler copes with passing no objects directly])
8713 +_LT_TAGDECL([], [old_archive_from_new_cmds], [2],
8714 + [Create an old-style archive from a shared archive])
8715 +_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
8716 + [Create a temporary old-style archive to link instead of a shared archive])
8717 +_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
8718 +_LT_TAGDECL([], [archive_expsym_cmds], [2])
8719 +_LT_TAGDECL([], [module_cmds], [2],
8720 + [Commands used to build a loadable module if different from building
8721 + a shared archive.])
8722 +_LT_TAGDECL([], [module_expsym_cmds], [2])
8723 +_LT_TAGDECL([], [with_gnu_ld], [1],
8724 + [Whether we are building with GNU ld or not])
8725 +_LT_TAGDECL([], [allow_undefined_flag], [1],
8726 + [Flag that allows shared libraries with undefined symbols to be built])
8727 +_LT_TAGDECL([], [no_undefined_flag], [1],
8728 + [Flag that enforces no undefined symbols])
8729 +_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
8730 + [Flag to hardcode $libdir into a binary during linking.
8731 + This must work even if $libdir does not exist])
8732 +_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
8733 + [[If ld is used when linking, flag to hardcode $libdir into a binary
8734 + during linking. This must work even if $libdir does not exist]])
8735 +_LT_TAGDECL([], [hardcode_libdir_separator], [1],
8736 + [Whether we need a single "-rpath" flag with a separated argument])
8737 +_LT_TAGDECL([], [hardcode_direct], [0],
8738 + [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
8739 + DIR into the resulting binary])
8740 +_LT_TAGDECL([], [hardcode_direct_absolute], [0],
8741 + [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
8742 + DIR into the resulting binary and the resulting library dependency is
8743 + "absolute", i.e impossible to change by setting ${shlibpath_var} if the
8744 + library is relocated])
8745 +_LT_TAGDECL([], [hardcode_minus_L], [0],
8746 + [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
8747 + into the resulting binary])
8748 +_LT_TAGDECL([], [hardcode_shlibpath_var], [0],
8749 + [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
8750 + into the resulting binary])
8751 +_LT_TAGDECL([], [hardcode_automatic], [0],
8752 + [Set to "yes" if building a shared library automatically hardcodes DIR
8753 + into the library and all subsequent libraries and executables linked
8755 +_LT_TAGDECL([], [inherit_rpath], [0],
8756 + [Set to yes if linker adds runtime paths of dependent libraries
8757 + to runtime path list])
8758 +_LT_TAGDECL([], [link_all_deplibs], [0],
8759 + [Whether libtool must link a program against all its dependency libraries])
8760 +_LT_TAGDECL([], [fix_srcfile_path], [1],
8761 + [Fix the shell variable $srcfile for the compiler])
8762 +_LT_TAGDECL([], [always_export_symbols], [0],
8763 + [Set to "yes" if exported symbols are required])
8764 +_LT_TAGDECL([], [export_symbols_cmds], [2],
8765 + [The commands to list exported symbols])
8766 +_LT_TAGDECL([], [exclude_expsyms], [1],
8767 + [Symbols that should not be listed in the preloaded symbols])
8768 +_LT_TAGDECL([], [include_expsyms], [1],
8769 + [Symbols that must always be exported])
8770 +_LT_TAGDECL([], [prelink_cmds], [2],
8771 + [Commands necessary for linking programs (against libraries) with templates])
8772 +_LT_TAGDECL([], [file_list_spec], [1],
8773 + [Specify filename containing input files])
8774 +dnl FIXME: Not yet implemented
8775 +dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
8776 +dnl [Compiler flag to generate thread safe objects])
8777 +])# _LT_LINKER_SHLIBS
8779 -if test "$GCC" = yes; then
8780 - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
8782 - AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
8783 - lt_cv_prog_compiler_rtti_exceptions,
8784 - [-fno-rtti -fno-exceptions], [],
8785 - [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
8787 -])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
8788 +# _LT_LANG_C_CONFIG([TAG])
8789 +# ------------------------
8790 +# Ensure that the configuration variables for a C compiler are suitably
8791 +# defined. These variables are subsequently used by _LT_CONFIG to write
8792 +# the compiler configuration to `libtool'.
8793 +m4_defun([_LT_LANG_C_CONFIG],
8794 +[m4_require([_LT_DECL_EGREP])dnl
8798 +# Source file extension for C test sources.
8801 -# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
8802 -# ---------------------------------
8803 -AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
8804 -[AC_REQUIRE([AC_CANONICAL_HOST])
8805 -AC_REQUIRE([LT_AC_PROG_SED])
8806 -AC_REQUIRE([AC_PROG_NM])
8807 -AC_REQUIRE([AC_OBJEXT])
8808 -# Check for command to grab the raw symbol name followed by C symbol from nm.
8809 -AC_MSG_CHECKING([command to parse $NM output from $compiler object])
8810 -AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
8812 -# These are sane defaults that work on at least a few old systems.
8813 -# [They come from Ultrix. What could be older than Ultrix?!! ;)]
8814 +# Object file extension for compiled C test sources.
8816 +_LT_TAGVAR(objext, $1)=$objext
8818 -# Character class describing NM global symbol codes.
8819 -symcode='[[BCDEGRST]]'
8820 +# Code to be used in simple compile tests
8821 +lt_simple_compile_test_code="int some_variable = 0;"
8823 -# Regexp to match symbols that can be accessed directly from C.
8824 -sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
8825 +# Code to be used in simple link tests
8826 +lt_simple_link_test_code='int main(){return(0);}'
8828 -# Transform an extracted symbol line into a proper C declaration
8829 -lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
8831 +# Save the default compiler, since it gets overwritten when the other
8832 +# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8833 +compiler_DEFAULT=$CC
8835 -# Transform an extracted symbol line into symbol name and symbol address
8836 -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'"
8837 +# save warnings/boilerplate of simple test code
8838 +_LT_COMPILER_BOILERPLATE
8839 +_LT_LINKER_BOILERPLATE
8841 -# Define system-specific variables.
8844 - symcode='[[BCDT]]'
8846 -cygwin* | mingw* | pw32*)
8847 - symcode='[[ABCDGISTW]]'
8849 -hpux*) # Its linker distinguishes data from code symbols
8850 - if test "$host_cpu" = ia64; then
8851 - symcode='[[ABCDEGRST]]'
8853 - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8854 - 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'"
8856 -linux* | k*bsd*-gnu)
8857 - if test "$host_cpu" = ia64; then
8858 - symcode='[[ABCDGIRSTW]]'
8859 - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8860 - 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'"
8863 -irix* | nonstopux*)
8864 - symcode='[[BCDEGRST]]'
8867 - symcode='[[BCDEGQRST]]'
8870 - symcode='[[BDRT]]'
8878 -sysv5* | sco5v6* | unixware* | OpenUNIX*)
8879 - symcode='[[ABDT]]'
8882 - symcode='[[DFNSTU]]'
8886 +## There is no encapsulation within the following macros, do not change
8887 +## the running order or otherwise move them around unless you know exactly
8888 +## what you are doing...
8889 +if test -n "$compiler"; then
8890 + _LT_COMPILER_NO_RTTI($1)
8891 + _LT_COMPILER_PIC($1)
8892 + _LT_COMPILER_C_O($1)
8893 + _LT_COMPILER_FILE_LOCKS($1)
8894 + _LT_LINKER_SHLIBS($1)
8895 + _LT_SYS_DYNAMIC_LINKER($1)
8896 + _LT_LINKER_HARDCODE_LIBPATH($1)
8897 + LT_SYS_DLOPEN_SELF
8900 + # Report which library types will actually be built
8901 + AC_MSG_CHECKING([if libtool supports shared libraries])
8902 + AC_MSG_RESULT([$can_build_shared])
8904 -# Handle CRLF in mingw tool chain
8908 - opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8911 + AC_MSG_CHECKING([whether to build shared libraries])
8912 + test "$can_build_shared" = "no" && enable_shared=no
8914 -# If we're using GNU nm, then use its standard symbol codes.
8915 -case `$NM -V 2>&1` in
8916 -*GNU* | *'with BFD'*)
8917 - symcode='[[ABCDGIRSTW]]' ;;
8919 + # On AIX, shared libraries and static libraries use the same namespace, and
8920 + # are all built from PIC.
8923 + test "$enable_shared" = yes && enable_static=no
8924 + if test -n "$RANLIB"; then
8925 + archive_cmds="$archive_cmds~\$RANLIB \$lib"
8926 + postinstall_cmds='$RANLIB $lib'
8930 -# Try without a prefix undercore, then with it.
8931 -for ac_symprfx in "" "_"; do
8933 + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8934 + test "$enable_shared" = yes && enable_static=no
8938 + AC_MSG_RESULT([$enable_shared])
8940 - # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8941 - symxfrm="\\1 $ac_symprfx\\2 \\2"
8942 + AC_MSG_CHECKING([whether to build static libraries])
8943 + # Make sure either enable_shared or enable_static is yes.
8944 + test "$enable_shared" = yes || enable_static=yes
8945 + AC_MSG_RESULT([$enable_static])
8947 - # Write the raw and C identifiers.
8948 - lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8953 +])# _LT_LANG_C_CONFIG
8955 - # Check to see that the pipe works correctly.
8959 - cat > conftest.$ac_ext <<EOF
8964 -void nm_test_func(){}
8968 -int main(){nm_test_var='a';nm_test_func();return(0);}
8972 +# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
8973 +# compiler, we have our own version here.
8974 +m4_defun([_LT_PROG_CXX],
8976 +pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
8978 +if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8979 + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8980 + (test "X$CXX" != "Xg++"))) ; then
8983 + _lt_caught_CXX_error=yes
8985 +popdef([AC_MSG_ERROR])
8988 - if AC_TRY_EVAL(ac_compile); then
8989 - # Now try to grab the symbols.
8991 - if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
8992 - # Try sorting and uniquifying the output.
8993 - if sort "$nlist" | uniq > "$nlist"T; then
8994 - mv -f "$nlist"T "$nlist"
8998 +dnl aclocal-1.4 backwards compatibility:
8999 +dnl AC_DEFUN([_LT_PROG_CXX], [])
9001 - # Make sure that we snagged all the symbols we need.
9002 - if grep ' nm_test_var$' "$nlist" >/dev/null; then
9003 - if grep ' nm_test_func$' "$nlist" >/dev/null; then
9004 - cat <<EOF > conftest.$ac_ext
9010 - # Now generate the symbol file.
9011 - eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9012 +# _LT_LANG_CXX_CONFIG([TAG])
9013 +# --------------------------
9014 +# Ensure that the configuration variables for a C++ compiler are suitably
9015 +# defined. These variables are subsequently used by _LT_CONFIG to write
9016 +# the compiler configuration to `libtool'.
9017 +m4_defun([_LT_LANG_CXX_CONFIG],
9018 +[AC_REQUIRE([_LT_PROG_CXX])dnl
9019 +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
9020 +m4_require([_LT_DECL_EGREP])dnl
9023 +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
9024 +_LT_TAGVAR(allow_undefined_flag, $1)=
9025 +_LT_TAGVAR(always_export_symbols, $1)=no
9026 +_LT_TAGVAR(archive_expsym_cmds, $1)=
9027 +_LT_TAGVAR(compiler_needs_object, $1)=no
9028 +_LT_TAGVAR(export_dynamic_flag_spec, $1)=
9029 +_LT_TAGVAR(hardcode_direct, $1)=no
9030 +_LT_TAGVAR(hardcode_direct_absolute, $1)=no
9031 +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
9032 +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
9033 +_LT_TAGVAR(hardcode_libdir_separator, $1)=
9034 +_LT_TAGVAR(hardcode_minus_L, $1)=no
9035 +_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
9036 +_LT_TAGVAR(hardcode_automatic, $1)=no
9037 +_LT_TAGVAR(inherit_rpath, $1)=no
9038 +_LT_TAGVAR(module_cmds, $1)=
9039 +_LT_TAGVAR(module_expsym_cmds, $1)=
9040 +_LT_TAGVAR(link_all_deplibs, $1)=unknown
9041 +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
9042 +_LT_TAGVAR(no_undefined_flag, $1)=
9043 +_LT_TAGVAR(whole_archive_flag_spec, $1)=
9044 +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
9046 - cat <<EOF >> conftest.$ac_ext
9047 -#if defined (__STDC__) && __STDC__
9048 -# define lt_ptr_t void *
9050 -# define lt_ptr_t char *
9053 +# Source file extension for C++ test sources.
9056 -/* The mapping between symbol names and symbols. */
9061 -lt_preloaded_symbols[[]] =
9064 - $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9065 - cat <<\EOF >> conftest.$ac_ext
9068 +# Object file extension for compiled C++ test sources.
9070 +_LT_TAGVAR(objext, $1)=$objext
9076 - # Now try linking the two files.
9077 - mv conftest.$ac_objext conftstm.$ac_objext
9078 - lt_save_LIBS="$LIBS"
9079 - lt_save_CFLAGS="$CFLAGS"
9080 - LIBS="conftstm.$ac_objext"
9081 - CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
9082 - if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
9085 - LIBS="$lt_save_LIBS"
9086 - CFLAGS="$lt_save_CFLAGS"
9088 - echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
9091 - echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
9094 - echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
9096 +# No sense in running all these tests if we already determined that
9097 +# the CXX compiler isn't working. Some variables (like enable_shared)
9098 +# are currently assumed to apply to all compilers on this platform,
9099 +# and will be corrupted by setting them based on a non-working compiler.
9100 +if test "$_lt_caught_CXX_error" != yes; then
9101 + # Code to be used in simple compile tests
9102 + lt_simple_compile_test_code="int some_variable = 0;"
9104 + # Code to be used in simple link tests
9105 + lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
9107 + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9110 + # save warnings/boilerplate of simple test code
9111 + _LT_COMPILER_BOILERPLATE
9112 + _LT_LINKER_BOILERPLATE
9114 + # Allow CC to be a program name with arguments.
9119 + lt_save_with_gnu_ld=$with_gnu_ld
9120 + lt_save_path_LD=$lt_cv_path_LD
9121 + if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9122 + lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9124 - echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
9125 - cat conftest.$ac_ext >&5
9126 + $as_unset lt_cv_prog_gnu_ld
9128 - rm -f conftest* conftst*
9130 - # Do not use the global_symbol_pipe unless it works.
9131 - if test "$pipe_works" = yes; then
9133 + if test -n "${lt_cv_path_LDCXX+set}"; then
9134 + lt_cv_path_LD=$lt_cv_path_LDCXX
9136 - lt_cv_sys_global_symbol_pipe=
9137 + $as_unset lt_cv_path_LD
9141 -if test -z "$lt_cv_sys_global_symbol_pipe"; then
9142 - lt_cv_sys_global_symbol_to_cdecl=
9144 -if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9145 - AC_MSG_RESULT(failed)
9149 -]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
9150 + test -z "${LDCXX+set}" || LD=$LDCXX
9153 + _LT_TAGVAR(compiler, $1)=$CC
9154 + _LT_CC_BASENAME([$compiler])
9156 + if test -n "$compiler"; then
9157 + # We don't want -fno-exception when compiling C++ code, so set the
9158 + # no_builtin_flag separately
9159 + if test "$GXX" = yes; then
9160 + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
9162 + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
9165 -# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
9166 -# ---------------------------------------
9167 -AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
9168 -[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
9169 -_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
9170 -_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
9171 + if test "$GXX" = yes; then
9172 + # Set up default GNU C++ configuration
9174 -AC_MSG_CHECKING([for $compiler option to produce PIC])
9175 - ifelse([$1],[CXX],[
9176 - # C++ specific cases for pic, static, wl, etc.
9177 - if test "$GXX" = yes; then
9178 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
9179 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
9184 - # All AIX code is PIC.
9185 - if test "$host_cpu" = ia64; then
9186 - # AIX 5 now supports IA64 processor
9187 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
9191 - # FIXME: we need at least 68020 code to build shared libraries, but
9192 - # adding the `-m68020' flag to GCC prevents building anything better,
9194 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
9196 - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9197 - # PIC is the default for these OSes.
9199 - mingw* | cygwin* | os2* | pw32*)
9200 - # This hack is so that the source file can tell whether it is being
9201 - # built for inclusion in a dll (and should export symbols for example).
9202 - # Although the cygwin gcc ignores -fPIC, still need this for old-style
9203 - # (--disable-auto-import) libraries
9204 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
9206 - darwin* | rhapsody*)
9207 - # PIC is the default on this platform
9208 - # Common symbols not allowed in MH_DYLIB files
9209 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
9212 - # DJGPP does not support shared libraries at all
9213 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
9216 - # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9217 - # Instead, we relocate shared libraries at runtime.
9220 - if test -d /usr/nec; then
9221 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
9222 + # Check if GNU C++ uses GNU ld as the underlying linker, since the
9223 + # archiving commands below assume that GNU ld is being used.
9224 + if test "$with_gnu_ld" = yes; then
9225 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9226 + _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'
9228 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
9229 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
9231 + # If archive_cmds runs LD, not CC, wlarc should be empty
9232 + # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9233 + # investigate it a little bit more. (MM)
9236 + # ancient GNU ld didn't support --whole-archive et. al.
9237 + if eval "`$CC -print-prog-name=ld` --help 2>&1" |
9238 + $GREP 'no-whole-archive' > /dev/null; then
9239 + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9241 + _LT_TAGVAR(whole_archive_flag_spec, $1)=
9247 + # A generic and very simple default shared library creation
9248 + # command for GNU C++ for the case where it uses the native
9249 + # linker, instead of GNU ld. If possible, this setting should
9250 + # overridden to take advantage of the native linker features on
9251 + # the platform it is being used on.
9252 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9256 - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9257 - # not for PA HP-UX.
9262 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
9267 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
9272 + # Commands to make compiler produce verbose output that lists
9273 + # what "hidden" libraries, object files and flags are used when
9274 + # linking a shared library.
9275 + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
9283 + # PORTME: fill in a description of your system's C++ link characteristics
9284 + AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
9285 + _LT_TAGVAR(ld_shlibs, $1)=yes
9288 - # All AIX code is PIC.
9289 - if test "$host_cpu" = ia64; then
9290 - # AIX 5 now supports IA64 processor
9291 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
9293 + # FIXME: insert proper C++ library support
9294 + _LT_TAGVAR(ld_shlibs, $1)=no
9297 + if test "$host_cpu" = ia64; then
9298 + # On IA64, the linker does run time linking by default, so we don't
9299 + # have to do anything special.
9300 + aix_use_runtimelinking=no
9301 + exp_sym_flag='-Bexport'
9304 + aix_use_runtimelinking=no
9306 + # Test if we are trying to use run time linking or normal
9307 + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9308 + # need to do runtime linking.
9309 + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
9310 + for ld_flag in $LDFLAGS; do
9313 + aix_use_runtimelinking=yes
9321 + exp_sym_flag='-bexport'
9322 + no_entry_flag='-bnoentry'
9325 + # When large executables or shared objects are built, AIX ld can
9326 + # have problems creating the table of contents. If linking a library
9327 + # or program results in "error TOC overflow" add -mminimal-toc to
9328 + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9329 + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9331 + _LT_TAGVAR(archive_cmds, $1)=''
9332 + _LT_TAGVAR(hardcode_direct, $1)=yes
9333 + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
9334 + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
9335 + _LT_TAGVAR(link_all_deplibs, $1)=yes
9336 + _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
9338 + if test "$GXX" = yes; then
9339 + case $host_os in aix4.[[012]]|aix4.[[012]].*)
9340 + # We only want to do this on AIX 4.2 and lower, the check
9341 + # below for broken collect2 doesn't work under 4.3+
9342 + collect2name=`${CC} -print-prog-name=collect2`
9343 + if test -f "$collect2name" &&
9344 + strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9346 + # We have reworked collect2
9349 + # We have old collect2
9350 + _LT_TAGVAR(hardcode_direct, $1)=unsupported
9351 + # It fails to find uninstalled libraries when the uninstalled
9352 + # path is not listed in the libpath. Setting hardcode_minus_L
9353 + # to unsupported forces relinking
9354 + _LT_TAGVAR(hardcode_minus_L, $1)=yes
9355 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
9356 + _LT_TAGVAR(hardcode_libdir_separator, $1)=
9359 + shared_flag='-shared'
9360 + if test "$aix_use_runtimelinking" = yes; then
9361 + shared_flag="$shared_flag "'${wl}-G'
9365 + if test "$host_cpu" = ia64; then
9366 + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9367 + # chokes on -Wl,-G. The following line is correct:
9370 + if test "$aix_use_runtimelinking" = yes; then
9371 + shared_flag='${wl}-G'
9373 + shared_flag='${wl}-bM:SRE'
9378 + # It seems that -bexpall does not export symbols beginning with
9379 + # underscore (_), so it is better to generate a list of symbols to
9381 + _LT_TAGVAR(always_export_symbols, $1)=yes
9382 + if test "$aix_use_runtimelinking" = yes; then
9383 + # Warning - without using the other runtime loading flags (-brtl),
9384 + # -berok will link without error, but may produce a broken library.
9385 + _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
9386 + # Determine the default libpath from the value encoded in an empty
9388 + _LT_SYS_MODULE_PATH_AIX
9389 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
9391 + _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"
9393 + if test "$host_cpu" = ia64; then
9394 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
9395 + _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
9396 + _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"
9398 + # Determine the default libpath from the value encoded in an
9399 + # empty executable.
9400 + _LT_SYS_MODULE_PATH_AIX
9401 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
9402 + # Warning - without using the other run time loading flags,
9403 + # -berok will link without error, but may produce a broken library.
9404 + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
9405 + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
9406 + # Exported symbols can be pulled into shared objects from archives
9407 + _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
9408 + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
9409 + # This is similar to how AIX traditionally builds its shared
9411 + _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'
9417 + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9418 + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
9419 + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9420 + # support --undefined. This deserves some investigation. FIXME
9421 + _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9423 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
9424 + _LT_TAGVAR(ld_shlibs, $1)=no
9429 - case $cc_basename in
9431 - # Green Hills C++ Compiler
9432 - # _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"
9433 + case $cc_basename in
9435 + # FIXME: insert proper C++ library support
9436 + _LT_TAGVAR(ld_shlibs, $1)=no
9442 + cygwin* | mingw* | pw32*)
9443 + # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
9444 + # as there is no search path for DLLs.
9445 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
9446 + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
9447 + _LT_TAGVAR(always_export_symbols, $1)=no
9448 + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
9450 + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9451 + _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'
9452 + # If the export-symbols file already is a .def file (1st line
9453 + # is EXPORTS), use it as is; otherwise, prepend...
9454 + _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9455 + cp $export_symbols $output_objdir/$soname.def;
9457 + echo EXPORTS > $output_objdir/$soname.def;
9458 + cat $export_symbols >> $output_objdir/$soname.def;
9460 + $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'
9462 + _LT_TAGVAR(ld_shlibs, $1)=no
9465 + darwin* | rhapsody*)
9466 + _LT_DARWIN_LINKER_FEATURES($1)
9469 - # PIC is the default on this platform
9470 - # Common symbols not allowed in MH_DYLIB files
9471 - case $cc_basename in
9473 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
9474 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
9480 - case $cc_basename in
9482 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
9483 + case $cc_basename in
9485 + # FIXME: insert proper C++ library support
9486 + _LT_TAGVAR(ld_shlibs, $1)=no
9490 # Green Hills C++ Compiler
9491 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
9492 + # FIXME: insert proper C++ library support
9493 + _LT_TAGVAR(ld_shlibs, $1)=no
9497 + # FIXME: insert proper C++ library support
9498 + _LT_TAGVAR(ld_shlibs, $1)=no
9506 + # C++ shared libraries reported to be fairly broken before
9508 + _LT_TAGVAR(ld_shlibs, $1)=no
9512 + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
9515 freebsd* | dragonfly*)
9516 - # FreeBSD uses GNU C++
9518 - hpux9* | hpux10* | hpux11*)
9519 - case $cc_basename in
9521 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
9522 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
9523 - if test "$host_cpu" != ia64; then
9524 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
9526 + # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9528 + _LT_TAGVAR(ld_shlibs, $1)=yes
9535 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
9536 + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
9537 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
9538 + _LT_TAGVAR(hardcode_direct, $1)=yes
9539 + _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
9540 + # but as the default
9541 + # location of the library.
9543 + case $cc_basename in
9545 + # FIXME: insert proper C++ library support
9546 + _LT_TAGVAR(ld_shlibs, $1)=no
9549 + _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'
9550 + # Commands to make compiler produce verbose output that lists
9551 + # what "hidden" libraries, object files and flags are used when
9552 + # linking a shared library.
9554 + # There doesn't appear to be a way to prevent this compiler from
9555 + # explicitly linking system object files so we need to strip them
9556 + # from the output so that they don't get included in the library
9558 + 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'
9561 + if test "$GXX" = yes; then
9562 + _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'
9564 + # FIXME: insert proper C++ library support
9565 + _LT_TAGVAR(ld_shlibs, $1)=no
9572 + if test $with_gnu_ld = no; then
9573 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
9574 + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
9580 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
9586 + _LT_TAGVAR(hardcode_direct, $1)=no
9587 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
9590 + _LT_TAGVAR(hardcode_direct, $1)=yes
9591 + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
9592 + _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
9593 + # but as the default
9594 + # location of the library.
9598 + case $cc_basename in
9600 + # FIXME: insert proper C++ library support
9601 + _LT_TAGVAR(ld_shlibs, $1)=no
9604 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
9605 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
9612 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
9615 + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9618 + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9621 + _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'
9624 + # Commands to make compiler produce verbose output that lists
9625 + # what "hidden" libraries, object files and flags are used when
9626 + # linking a shared library.
9628 + # There doesn't appear to be a way to prevent this compiler from
9629 + # explicitly linking system object files so we need to strip them
9630 + # from the output so that they don't get included in the library
9632 + 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'
9636 + if test "$GXX" = yes; then
9637 + if test $with_gnu_ld = no; then
9640 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9643 + _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'
9646 + _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'
9651 + # FIXME: insert proper C++ library support
9652 + _LT_TAGVAR(ld_shlibs, $1)=no
9658 - # This is c89, which is MS Visual C++ (no shared libs)
9659 - # Anyone wants to do a port?
9661 - irix5* | irix6* | nonstopux*)
9662 - case $cc_basename in
9664 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
9665 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
9666 - # CC pic flag -KPIC is the default.
9671 + _LT_TAGVAR(hardcode_direct, $1)=no
9672 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
9673 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
9674 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
9675 + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9676 + # Instead, shared libraries are loaded at an image base (0x10000000 by
9677 + # default) and relocated if they conflict, which is a slow very memory
9678 + # consuming and fragmenting process. To avoid this, we pick a random,
9679 + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9680 + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9681 + _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'
9682 + _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'
9685 + case $cc_basename in
9688 + _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'
9690 + # Archives containing C++ object files must be created using
9691 + # "CC -ar", where "CC" is the IRIX C++ compiler. This is
9692 + # necessary to make sure instantiated templates are included
9694 + _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
9698 + if test "$GXX" = yes; then
9699 + if test "$with_gnu_ld" = no; then
9700 + _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'
9702 + _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'
9705 + _LT_TAGVAR(link_all_deplibs, $1)=yes
9710 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
9711 + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
9712 + _LT_TAGVAR(inherit_rpath, $1)=yes
9715 linux* | k*bsd*-gnu)
9716 - case $cc_basename in
9718 - # KAI C++ Compiler
9719 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
9720 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
9721 + case $cc_basename in
9723 + # Kuck and Associates, Inc. (KAI) C++ Compiler
9725 + # KCC will only create a shared library if the output file
9726 + # ends with ".so" (or ".sl" for HP-UX), so rename the library
9727 + # to its proper name (with version) after linking.
9728 + _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'
9729 + _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'
9730 + # Commands to make compiler produce verbose output that lists
9731 + # what "hidden" libraries, object files and flags are used when
9732 + # linking a shared library.
9734 + # There doesn't appear to be a way to prevent this compiler from
9735 + # explicitly linking system object files so we need to strip them
9736 + # from the output so that they don't get included in the library
9738 + 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'
9740 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
9741 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
9743 + # Archives containing C++ object files must be created using
9744 + # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9745 + _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
9750 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
9751 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
9752 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
9755 - # Portland Group C++ compiler.
9756 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
9757 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
9758 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
9762 - # Make sure the PIC flag is empty. It appears that all Alpha
9763 - # Linux and Compaq Tru64 Unix objects are PIC.
9764 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
9765 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
9767 + # version 8.0 and above of icpc choke on multiply defined symbols
9768 + # if we add $predep_objects and $postdep_objects, however 7.1 and
9769 + # earlier do not add the objects themselves.
9770 + case `$CC -V 2>&1` in
9772 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9773 + _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'
9775 + *) # Version 8.0 or newer
9778 + ia64*) tmp_idyn=' -i_dynamic';;
9780 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9781 + _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'
9784 + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
9785 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
9786 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
9787 + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9790 - case `$CC -V 2>&1 | sed 5q` in
9793 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
9794 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
9795 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
9797 + # Portland Group C++ compiler
9799 + *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
9800 + _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
9802 + $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
9803 + compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
9804 + _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
9806 + $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
9807 + $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
9809 + _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
9811 + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
9812 + $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
9813 + _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
9815 + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
9816 + $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'
9818 + *) # Version 6 will use weak symbols
9819 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
9820 + _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'
9831 - case $cc_basename in
9833 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
9841 - osf3* | osf4* | osf5*)
9842 - case $cc_basename in
9844 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
9847 - # Rational C++ 2.4.1
9848 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
9851 - # Digital/Compaq C++
9852 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
9853 - # Make sure the PIC flag is empty. It appears that all Alpha
9854 - # Linux and Compaq Tru64 Unix objects are PIC.
9855 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
9856 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
9865 - case $cc_basename in
9867 - # Sun C++ 4.2, 5.x and Centerline C++
9868 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
9869 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
9870 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
9873 - # Green Hills C++ Compiler
9874 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
9881 - case $cc_basename in
9884 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
9885 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
9889 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
9896 - case $cc_basename in
9898 - # NonStop-UX NCC 3.20
9899 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
9905 - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9906 - case $cc_basename in
9908 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
9909 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
9910 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
9917 - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
9923 - if test "$GCC" = yes; then
9924 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
9925 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
9929 - # All AIX code is PIC.
9930 - if test "$host_cpu" = ia64; then
9931 - # AIX 5 now supports IA64 processor
9932 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
9937 - # FIXME: we need at least 68020 code to build shared libraries, but
9938 - # adding the `-m68020' flag to GCC prevents building anything better,
9940 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
9943 - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9944 - # PIC is the default for these OSes.
9947 - mingw* | cygwin* | pw32* | os2*)
9948 - # This hack is so that the source file can tell whether it is being
9949 - # built for inclusion in a dll (and should export symbols for example).
9950 - # Although the cygwin gcc ignores -fPIC, still need this for old-style
9951 - # (--disable-auto-import) libraries
9952 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
9955 - darwin* | rhapsody*)
9956 - # PIC is the default on this platform
9957 - # Common symbols not allowed in MH_DYLIB files
9958 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
9962 - # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9963 - # Instead, we relocate shared libraries at runtime.
9965 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
9966 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
9967 + _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'
9971 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9972 + _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'
9975 - # Just because we use GCC doesn't mean we suddenly get shared libraries
9976 - # on systems that don't support them.
9977 - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
9980 + runpath_var=LD_RUN_PATH
9981 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
9982 + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
9985 - if test -d /usr/nec; then
9986 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
9989 + # Commands to make compiler produce verbose output that lists
9990 + # what "hidden" libraries, object files and flags are used when
9991 + # linking a shared library.
9993 + # There doesn't appear to be a way to prevent this compiler from
9994 + # explicitly linking system object files so we need to strip them
9995 + # from the output so that they don't get included in the library
9997 + 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'
10000 + # IBM XL 8.0 on PPC, with GNU ld
10001 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
10002 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
10003 + _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10004 + if test "x$supports_anon_versioning" = xyes; then
10005 + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
10006 + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10007 + echo "local: *; };" >> $output_objdir/$libname.ver~
10008 + $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10012 + case `$CC -V 2>&1 | sed 5q` in
10015 + _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
10016 + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10017 + _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'
10018 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
10019 + _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'
10020 + _LT_TAGVAR(compiler_needs_object, $1)=yes
10022 + # Not sure whether something based on
10023 + # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
10024 + # would be better.
10025 + output_verbose_link_cmd='echo'
10027 + # Archives containing C++ object files must be created using
10028 + # "CC -xar", where "CC" is the Sun C++ compiler. This is
10029 + # necessary to make sure instantiated templates are included
10030 + # in the archive.
10031 + _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
10039 - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10040 - # not for PA HP-UX.
10041 - case $host_cpu in
10045 + # FIXME: insert proper C++ library support
10046 + _LT_TAGVAR(ld_shlibs, $1)=no
10049 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
10052 + # FIXME: insert proper C++ library support
10053 + _LT_TAGVAR(ld_shlibs, $1)=no
10059 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
10063 - # PORTME Check for flag to pass linker flags through the system compiler.
10066 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
10067 - if test "$host_cpu" = ia64; then
10068 - # AIX 5 now supports IA64 processor
10069 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
10071 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
10075 - # PIC is the default on this platform
10076 - # Common symbols not allowed in MH_DYLIB files
10077 - case $cc_basename in
10079 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
10080 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
10085 + case $cc_basename in
10087 + # FIXME: insert proper C++ library support
10088 + _LT_TAGVAR(ld_shlibs, $1)=no
10091 + # FIXME: insert proper C++ library support
10092 + _LT_TAGVAR(ld_shlibs, $1)=no
10097 - mingw* | cygwin* | pw32* | os2*)
10098 - # This hack is so that the source file can tell whether it is being
10099 - # built for inclusion in a dll (and should export symbols for example).
10100 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
10103 + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10104 + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10106 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
10107 + _LT_TAGVAR(hardcode_direct, $1)=yes
10108 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
10110 + # Workaround some broken pre-1.5 toolchains
10111 + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10114 - hpux9* | hpux10* | hpux11*)
10115 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
10116 - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10117 - # not for PA HP-UX.
10118 - case $host_cpu in
10122 + _LT_TAGVAR(ld_shlibs, $1)=yes
10125 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
10128 + # C++ shared libraries are fairly broken
10129 + _LT_TAGVAR(ld_shlibs, $1)=no
10133 + if test -f /usr/libexec/ld.so; then
10134 + _LT_TAGVAR(hardcode_direct, $1)=yes
10135 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
10136 + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
10137 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10138 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
10139 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10140 + _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'
10141 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
10142 + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10144 + output_verbose_link_cmd=echo
10146 + _LT_TAGVAR(ld_shlibs, $1)=no
10150 - # Is there a better lt_prog_compiler_static that works with the bundled CC?
10151 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
10154 - irix5* | irix6* | nonstopux*)
10155 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
10156 - # PIC (with -KPIC) is the default.
10157 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
10159 + osf3* | osf4* | osf5*)
10160 + case $cc_basename in
10162 + # Kuck and Associates, Inc. (KAI) C++ Compiler
10164 + # KCC will only create a shared library if the output file
10165 + # ends with ".so" (or ".sl" for HP-UX), so rename the library
10166 + # to its proper name (with version) after linking.
10167 + _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'
10169 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
10170 + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
10172 + # Archives containing C++ object files must be created using
10173 + # the KAI C++ compiler.
10175 + osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
10176 + *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
10180 + # Rational C++ 2.4.1
10181 + # FIXME: insert proper C++ library support
10182 + _LT_TAGVAR(ld_shlibs, $1)=no
10187 + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
10188 + _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'
10189 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
10192 + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
10193 + _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'
10194 + _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10195 + echo "-hidden">> $lib.exp~
10196 + $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~
10198 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
10203 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
10204 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
10206 + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
10208 - linux* | k*bsd*-gnu)
10209 - case $cc_basename in
10211 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
10212 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
10213 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
10214 + # Commands to make compiler produce verbose output that lists
10215 + # what "hidden" libraries, object files and flags are used when
10216 + # linking a shared library.
10218 + # There doesn't appear to be a way to prevent this compiler from
10219 + # explicitly linking system object files so we need to strip them
10220 + # from the output so that they don't get included in the library
10222 + 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'
10225 + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10226 + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
10229 + _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'
10232 + _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'
10236 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
10237 + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
10239 + # Commands to make compiler produce verbose output that lists
10240 + # what "hidden" libraries, object files and flags are used when
10241 + # linking a shared library.
10242 + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
10245 + # FIXME: insert proper C++ library support
10246 + _LT_TAGVAR(ld_shlibs, $1)=no
10251 - pgcc* | pgf77* | pgf90* | pgf95*)
10252 - # Portland Group compilers (*not* the Pentium gcc compiler,
10253 - # which looks to be a dead project)
10254 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
10255 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
10256 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
10259 + # FIXME: insert proper C++ library support
10260 + _LT_TAGVAR(ld_shlibs, $1)=no
10263 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
10264 - # All Alpha code is PIC.
10265 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
10268 + case $cc_basename in
10271 + # FIXME: insert proper C++ library support
10272 + _LT_TAGVAR(ld_shlibs, $1)=no
10276 + # FIXME: insert proper C++ library support
10277 + _LT_TAGVAR(ld_shlibs, $1)=no
10280 + # FIXME: insert proper C++ library support
10281 + _LT_TAGVAR(ld_shlibs, $1)=no
10286 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-lopt='
10289 + case $cc_basename in
10291 + # Sun C++ 4.2, 5.x and Centerline C++
10292 + _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
10293 + _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
10294 + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10295 + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10296 + $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'
10298 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
10299 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
10301 + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
10303 + # The compiler driver will combine and reorder linker options,
10304 + # but understands `-z linker_flag'.
10305 + # Supported since Solaris 2.6 (maybe 2.5.1?)
10306 + _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
10309 + _LT_TAGVAR(link_all_deplibs, $1)=yes
10311 + output_verbose_link_cmd='echo'
10313 + # Archives containing C++ object files must be created using
10314 + # "CC -xar", where "CC" is the Sun C++ compiler. This is
10315 + # necessary to make sure instantiated templates are included
10316 + # in the archive.
10317 + _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
10320 + # Green Hills C++ Compiler
10321 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10323 + # The C++ compiler must be used to create the archive.
10324 + _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10327 + # GNU C++ compiler with Solaris linker
10328 + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10329 + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
10330 + if $CC --version | $GREP -v '^2\.7' > /dev/null; then
10331 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10332 + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10333 + $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
10335 + # Commands to make compiler produce verbose output that lists
10336 + # what "hidden" libraries, object files and flags are used when
10337 + # linking a shared library.
10338 + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
10340 + # g++ 2.7 appears to require `-G' NOT `-shared' on this
10342 + _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10343 + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10344 + $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
10346 + # Commands to make compiler produce verbose output that lists
10347 + # what "hidden" libraries, object files and flags are used when
10348 + # linking a shared library.
10349 + output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
10352 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
10354 + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
10356 + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10364 - case `$CC -V 2>&1 | sed 5q` in
10367 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
10368 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
10369 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
10371 + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
10372 + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
10373 + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
10374 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
10375 + runpath_var='LD_RUN_PATH'
10377 + case $cc_basename in
10379 + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10380 + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10383 - # Sun Fortran 8.3 passes all unrecognized flags to the linker
10384 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
10385 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
10386 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=''
10388 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10389 + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10396 - osf3* | osf4* | osf5*)
10397 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
10398 - # All OSF/1 code is PIC.
10399 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
10401 + sysv5* | sco3.2v5* | sco5v6*)
10402 + # Note: We can NOT use -z defs as we might desire, because we do not
10403 + # link with -lc, and that would cause any symbols used from libc to
10404 + # always be unresolved, which means just about no library would
10405 + # ever link correctly. If we're not using GNU ld we use -z text
10406 + # though, which does catch some bad symbols but isn't as heavy-handed
10408 + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
10409 + _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
10410 + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
10411 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
10412 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
10413 + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
10414 + _LT_TAGVAR(link_all_deplibs, $1)=yes
10415 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
10416 + runpath_var='LD_RUN_PATH'
10419 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
10420 + case $cc_basename in
10422 + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10423 + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10426 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10427 + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10433 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
10434 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
10435 - case $cc_basename in
10436 - f77* | f90* | f95*)
10437 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
10439 + case $cc_basename in
10441 + # NonStop-UX NCC 3.20
10442 + # FIXME: insert proper C++ library support
10443 + _LT_TAGVAR(ld_shlibs, $1)=no
10446 + # FIXME: insert proper C++ library support
10447 + _LT_TAGVAR(ld_shlibs, $1)=no
10453 + # FIXME: insert proper C++ library support
10454 + _LT_TAGVAR(ld_shlibs, $1)=no
10458 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
10461 + # FIXME: insert proper C++ library support
10462 + _LT_TAGVAR(ld_shlibs, $1)=no
10467 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
10468 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
10469 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
10471 + AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
10472 + test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
10474 - sysv4 | sysv4.2uw2* | sysv4.3*)
10475 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
10476 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
10477 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
10479 + _LT_TAGVAR(GCC, $1)="$GXX"
10480 + _LT_TAGVAR(LD, $1)="$LD"
10483 - if test -d /usr/nec ;then
10484 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
10485 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
10488 + ## CAVEAT EMPTOR:
10489 + ## There is no encapsulation within the following macros, do not change
10490 + ## the running order or otherwise move them around unless you know exactly
10491 + ## what you are doing...
10492 + _LT_SYS_HIDDEN_LIBDEPS($1)
10493 + _LT_COMPILER_PIC($1)
10494 + _LT_COMPILER_C_O($1)
10495 + _LT_COMPILER_FILE_LOCKS($1)
10496 + _LT_LINKER_SHLIBS($1)
10497 + _LT_SYS_DYNAMIC_LINKER($1)
10498 + _LT_LINKER_HARDCODE_LIBPATH($1)
10501 + fi # test -n "$compiler"
10507 + with_gnu_ld=$lt_save_with_gnu_ld
10508 + lt_cv_path_LDCXX=$lt_cv_path_LD
10509 + lt_cv_path_LD=$lt_save_path_LD
10510 + lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
10511 + lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
10512 +fi # test "$_lt_caught_CXX_error" != yes
10514 - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10515 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
10516 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
10517 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
10520 +])# _LT_LANG_CXX_CONFIG
10523 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
10524 - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
10528 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
10529 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
10531 +# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
10532 +# ---------------------------------
10533 +# Figure out "hidden" library dependencies from verbose
10534 +# compiler output when linking a shared library.
10535 +# Parse the compiler output and extract the necessary
10536 +# objects, libraries and library flags.
10537 +m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
10538 +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
10539 +# Dependencies to place before and after the object being linked:
10540 +_LT_TAGVAR(predep_objects, $1)=
10541 +_LT_TAGVAR(postdep_objects, $1)=
10542 +_LT_TAGVAR(predeps, $1)=
10543 +_LT_TAGVAR(postdeps, $1)=
10544 +_LT_TAGVAR(compiler_lib_search_path, $1)=
10547 - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
10551 +dnl we can't use the lt_simple_compile_test_code here,
10552 +dnl because it contains code intended for an executable,
10553 +dnl not a library. It's possible we should let each
10554 +dnl tag define a new lt_????_link_test_code variable,
10555 +dnl but it's only used here...
10556 +m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
10558 +void foo (void) { a = 0; }
10560 +], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
10564 + Foo (void) { a = 0; }
10569 +], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
10577 +], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
10585 +], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
10586 +public class foo {
10588 + public void bar (void) {
10594 -AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
10595 +dnl Parse the compiler output and extract the necessary
10596 +dnl objects, libraries and library flags.
10597 +if AC_TRY_EVAL(ac_compile); then
10598 + # Parse the compiler output and extract the necessary
10599 + # objects, libraries and library flags.
10602 -# Check to make sure the PIC flag actually works.
10604 -if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
10605 - AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
10606 - _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
10607 - [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
10608 - [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
10610 - *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
10612 - [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
10613 - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
10616 - # For platforms which do not support PIC, -DPIC is meaningless:
10618 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
10621 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
10624 + # Sentinel used to keep track of whether or not we are before
10625 + # the conftest object file.
10626 + pre_test_object_deps_done=no
10629 -# Check to make sure the static flag actually works.
10631 -wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
10632 -AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
10633 - _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
10634 - $lt_tmp_static_flag,
10636 - [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
10638 + for p in `eval "$output_verbose_link_cmd"`; do
10642 + # Some compilers place space between "-{L,R}" and the path.
10643 + # Remove the space.
10644 + if test $p = "-L" ||
10645 + test $p = "-R"; then
10652 + if test "$pre_test_object_deps_done" = no; then
10655 + # Internal compiler library paths should come after those
10656 + # provided the user. The postdeps already come after the
10657 + # user supplied libs so there is no need to process them.
10658 + if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
10659 + _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
10661 + _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
10664 + # The "-l" case would never come before the object being
10665 + # linked, so don't bother handling this case.
10668 + if test -z "$_LT_TAGVAR(postdeps, $1)"; then
10669 + _LT_TAGVAR(postdeps, $1)="${prev}${p}"
10671 + _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
10676 -# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
10677 -# ------------------------------------
10678 -# See if the linker supports building shared libraries.
10679 -AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
10680 -[AC_REQUIRE([LT_AC_PROG_SED])dnl
10681 -AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
10682 -ifelse([$1],[CXX],[
10683 - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10686 - # If we're using GNU nm, then we don't want the "-C" option.
10687 - # -C means demangle to AIX nm, but means don't demangle with GNU nm
10688 - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10689 - _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'
10691 - _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'
10695 - _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
10697 - cygwin* | mingw*)
10698 - _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'
10701 - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10706 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=
10707 - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
10708 - _LT_AC_TAGVAR(archive_cmds, $1)=
10709 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
10710 - _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
10711 - _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
10712 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
10713 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
10714 - _LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
10715 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
10716 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
10717 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
10718 - _LT_AC_TAGVAR(hardcode_direct, $1)=no
10719 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
10720 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
10721 - _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
10722 - _LT_AC_TAGVAR(hardcode_automatic, $1)=no
10723 - _LT_AC_TAGVAR(module_cmds, $1)=
10724 - _LT_AC_TAGVAR(module_expsym_cmds, $1)=
10725 - _LT_AC_TAGVAR(always_export_symbols, $1)=no
10726 - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10727 - # include_expsyms should be a list of space-separated symbols to be *always*
10728 - # included in the symbol list
10729 - _LT_AC_TAGVAR(include_expsyms, $1)=
10730 - # exclude_expsyms can be an extended regexp of symbols to exclude
10731 - # it will be wrapped by ` (' and `)$', so one must not match beginning or
10732 - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10733 - # as well as any symbol that contains `d'.
10734 - _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
10735 - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10736 - # platforms (ab)use it in PIC code, but their linkers get confused if
10737 - # the symbol is explicitly referenced. Since portable code cannot
10738 - # rely on this symbol name, it's probably fine to never include it in
10739 - # preloaded symbol tables.
10740 - extract_expsyms_cmds=
10741 - # Just being paranoid about ensuring that cc_basename is set.
10742 - _LT_CC_BASENAME([$compiler])
10744 - cygwin* | mingw* | pw32*)
10745 - # FIXME: the MSVC++ port hasn't been tested in a loooong time
10746 - # When not using gcc, we currently assume that we are using
10747 - # Microsoft Visual C++.
10748 - if test "$GCC" != yes; then
10753 - # we just hope/assume this is gcc and not c89 (= MSVC++)
10761 + # This assumes that the test object file only shows up
10762 + # once in the compiler output.
10763 + if test "$p" = "conftest.$objext"; then
10764 + pre_test_object_deps_done=yes
10768 - _LT_AC_TAGVAR(ld_shlibs, $1)=yes
10769 - if test "$with_gnu_ld" = yes; then
10770 - # If archive_cmds runs LD, not CC, wlarc should be empty
10772 + if test "$pre_test_object_deps_done" = no; then
10773 + if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
10774 + _LT_TAGVAR(predep_objects, $1)="$p"
10776 + _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
10779 + if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
10780 + _LT_TAGVAR(postdep_objects, $1)="$p"
10782 + _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
10787 + *) ;; # Ignore the rest.
10789 - # Set some defaults for GNU ld with shared library support. These
10790 - # are reset later if shared libraries are not supported. Putting them
10791 - # here allows them to be overridden if necessary.
10792 - runpath_var=LD_RUN_PATH
10793 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
10794 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
10795 - # ancient GNU ld didn't support --whole-archive et. al.
10796 - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
10797 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10799 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
10801 - supports_anon_versioning=no
10802 - case `$LD -v 2>/dev/null` in
10803 - *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
10804 - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10805 - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10806 - *\ 2.11.*) ;; # other 2.11 versions
10807 - *) supports_anon_versioning=yes ;;
10811 - # See if GNU ld supports shared libraries.
10813 - aix3* | aix4* | aix5*)
10814 - # On AIX/PPC, the GNU linker is very broken
10815 - if test "$host_cpu" != ia64; then
10816 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
10819 + rm -f a.out a.exe
10821 + echo "libtool.m4: error: problem compiling $1 test program"
10824 -*** Warning: the GNU linker, at least up to release 2.9.1, is reported
10825 -*** to be unable to reliably create shared libraries on AIX.
10826 -*** Therefore, libtool is disabling shared libraries support. If you
10827 -*** really care for shared libraries, you may want to modify your PATH
10828 -*** so that a non-GNU linker is found, and then restart.
10829 +$RM -f confest.$objext
10834 +# PORTME: override above test on systems where it is broken
10835 +m4_if([$1], [CXX],
10838 + # Interix 3.5 installs completely hosed .la files for C++, so rather than
10839 + # hack all around it, let's just trust "g++" to DTRT.
10840 + _LT_TAGVAR(predep_objects,$1)=
10841 + _LT_TAGVAR(postdep_objects,$1)=
10842 + _LT_TAGVAR(postdeps,$1)=
10846 - _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)'
10847 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
10848 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
10850 - # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
10851 - # that the semantics of dynamic libraries on AmigaOS, at least up
10852 - # to version 4, is to share data among multiple programs linked
10853 - # with the same dynamic library. Since this doesn't match the
10854 - # behavior of shared libraries on other platforms, we can't use
10856 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
10859 + case `$CC -V 2>&1 | sed 5q` in
10864 - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10865 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
10866 - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10867 - # support --undefined. This deserves some investigation. FIXME
10868 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10870 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
10872 + # The more standards-conforming stlport4 library is
10873 + # incompatible with the Cstd library. Avoid specifying
10874 + # it if it's in CXXFLAGS. Ignore libCrun as
10875 + # -library=stlport4 depends on it.
10876 + case " $CXX $CXXFLAGS " in
10877 + *" -library=stlport4 "*)
10878 + solaris_use_stlport4=yes
10882 - cygwin* | mingw* | pw32*)
10883 - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
10884 - # as there is no search path for DLLs.
10885 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
10886 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
10887 - _LT_AC_TAGVAR(always_export_symbols, $1)=no
10888 - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
10889 - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
10890 + if test "$solaris_use_stlport4" != yes; then
10891 + _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
10897 - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10898 - _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'
10899 - # If the export-symbols file already is a .def file (1st line
10900 - # is EXPORTS), use it as is; otherwise, prepend...
10901 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10902 - cp $export_symbols $output_objdir/$soname.def;
10904 - echo EXPORTS > $output_objdir/$soname.def;
10905 - cat $export_symbols >> $output_objdir/$soname.def;
10907 - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10909 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
10912 + case $cc_basename in
10914 + # The more standards-conforming stlport4 library is
10915 + # incompatible with the Cstd library. Avoid specifying
10916 + # it if it's in CXXFLAGS. Ignore libCrun as
10917 + # -library=stlport4 depends on it.
10918 + case " $CXX $CXXFLAGS " in
10919 + *" -library=stlport4 "*)
10920 + solaris_use_stlport4=yes
10925 - _LT_AC_TAGVAR(hardcode_direct, $1)=no
10926 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
10927 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
10928 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
10929 - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10930 - # Instead, shared libraries are loaded at an image base (0x10000000 by
10931 - # default) and relocated if they conflict, which is a slow very memory
10932 - # consuming and fragmenting process. To avoid this, we pick a random,
10933 - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10934 - # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10935 - _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'
10936 - _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'
10938 + # Adding this requires a known-good setup of shared libraries for
10939 + # Sun compiler versions before 5.6, else PIC objects from an old
10940 + # archive will be linked into the output, leading to subtle bugs.
10941 + if test "$solaris_use_stlport4" != yes; then
10942 + _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
10950 - gnu* | linux* | k*bsd*-gnu)
10951 - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10953 - case $cc_basename,$host_cpu in
10954 - pgcc*) # Portland Group C compiler
10955 - _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'
10956 - tmp_addflag=' $pic_flag'
10958 - pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
10959 - _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'
10960 - tmp_addflag=' $pic_flag -Mnomain' ;;
10961 - ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10962 - tmp_addflag=' -i_dynamic' ;;
10963 - efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10964 - tmp_addflag=' -i_dynamic -nofor_main' ;;
10965 - ifc* | ifort*) # Intel Fortran compiler
10966 - tmp_addflag=' -nofor_main' ;;
10968 - case `$CC -V 2>&1 | sed 5q` in
10969 - *Sun\ C*) # Sun C 5.9
10970 - _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'
10971 - tmp_sharedflag='-G' ;;
10972 - *Sun\ F*) # Sun Fortran 8.3
10973 - tmp_sharedflag='-G' ;;
10975 - tmp_sharedflag='-shared' ;;
10977 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10978 +case " $_LT_TAGVAR(postdeps, $1) " in
10979 +*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
10981 + _LT_TAGVAR(compiler_lib_search_dirs, $1)=
10982 +if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
10983 + _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
10985 +_LT_TAGDECL([], [compiler_lib_search_dirs], [1],
10986 + [The directories searched by this compiler when creating a shared library])
10987 +_LT_TAGDECL([], [predep_objects], [1],
10988 + [Dependencies to place before and after the objects being linked to
10989 + create a shared library])
10990 +_LT_TAGDECL([], [postdep_objects], [1])
10991 +_LT_TAGDECL([], [predeps], [1])
10992 +_LT_TAGDECL([], [postdeps], [1])
10993 +_LT_TAGDECL([], [compiler_lib_search_path], [1],
10994 + [The library search path used internally by the compiler when linking
10995 + a shared library])
10996 +])# _LT_SYS_HIDDEN_LIBDEPS
11001 +# Since AC_PROG_F77 is broken, in that it returns the empty string
11002 +# if there is no fortran compiler, we have our own version here.
11003 +m4_defun([_LT_PROG_F77],
11005 +pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
11007 +if test -z "$F77" || test "X$F77" = "Xno"; then
11008 + _lt_disable_F77=yes
11010 +popdef([AC_MSG_ERROR])
11013 - if test $supports_anon_versioning = yes; then
11014 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
11015 - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11016 - $echo "local: *; };" >> $output_objdir/$libname.ver~
11017 - $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11020 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
11023 +dnl aclocal-1.4 backwards compatibility:
11024 +dnl AC_DEFUN([_LT_PROG_F77], [])
11027 - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11028 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11031 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11032 - _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'
11037 - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
11038 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
11040 +# _LT_LANG_F77_CONFIG([TAG])
11041 +# --------------------------
11042 +# Ensure that the configuration variables for a Fortran 77 compiler are
11043 +# suitably defined. These variables are subsequently used by _LT_CONFIG
11044 +# to write the compiler configuration to `libtool'.
11045 +m4_defun([_LT_LANG_F77_CONFIG],
11046 +[AC_REQUIRE([_LT_PROG_F77])dnl
11047 +AC_LANG_PUSH(Fortran 77)
11049 -*** Warning: The releases 2.8.* of the GNU linker cannot reliably
11050 -*** create shared libraries on Solaris systems. Therefore, libtool
11051 -*** is disabling shared libraries support. We urge you to upgrade GNU
11052 -*** binutils to release 2.9.1 or newer. Another option is to modify
11053 -*** your PATH or compiler configuration so that the native linker is
11054 -*** used, and then restart.
11055 +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
11056 +_LT_TAGVAR(allow_undefined_flag, $1)=
11057 +_LT_TAGVAR(always_export_symbols, $1)=no
11058 +_LT_TAGVAR(archive_expsym_cmds, $1)=
11059 +_LT_TAGVAR(export_dynamic_flag_spec, $1)=
11060 +_LT_TAGVAR(hardcode_direct, $1)=no
11061 +_LT_TAGVAR(hardcode_direct_absolute, $1)=no
11062 +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
11063 +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
11064 +_LT_TAGVAR(hardcode_libdir_separator, $1)=
11065 +_LT_TAGVAR(hardcode_minus_L, $1)=no
11066 +_LT_TAGVAR(hardcode_automatic, $1)=no
11067 +_LT_TAGVAR(inherit_rpath, $1)=no
11068 +_LT_TAGVAR(module_cmds, $1)=
11069 +_LT_TAGVAR(module_expsym_cmds, $1)=
11070 +_LT_TAGVAR(link_all_deplibs, $1)=unknown
11071 +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
11072 +_LT_TAGVAR(no_undefined_flag, $1)=
11073 +_LT_TAGVAR(whole_archive_flag_spec, $1)=
11074 +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
11077 - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11078 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11079 - _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'
11081 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
11084 +# Source file extension for f77 test sources.
11087 - sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11088 - case `$LD -v 2>&1` in
11089 - *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
11090 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
11091 - cat <<_LT_EOF 1>&2
11092 +# Object file extension for compiled f77 test sources.
11094 +_LT_TAGVAR(objext, $1)=$objext
11096 -*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11097 -*** reliably create shared libraries on SCO systems. Therefore, libtool
11098 -*** is disabling shared libraries support. We urge you to upgrade GNU
11099 -*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11100 -*** your PATH or compiler configuration so that the native linker is
11101 -*** used, and then restart.
11102 +# No sense in running all these tests if we already determined that
11103 +# the F77 compiler isn't working. Some variables (like enable_shared)
11104 +# are currently assumed to apply to all compilers on this platform,
11105 +# and will be corrupted by setting them based on a non-working compiler.
11106 +if test "$_lt_disable_F77" != yes; then
11107 + # Code to be used in simple compile tests
11108 + lt_simple_compile_test_code="\
11117 - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11118 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
11119 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
11120 - _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'
11122 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
11127 + # Code to be used in simple link tests
11128 + lt_simple_link_test_code="\
11134 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11136 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
11137 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
11139 + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11143 - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11144 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11145 - _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'
11147 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
11151 + # save warnings/boilerplate of simple test code
11152 + _LT_COMPILER_BOILERPLATE
11153 + _LT_LINKER_BOILERPLATE
11155 + # Allow CC to be a program name with arguments.
11160 + _LT_TAGVAR(compiler, $1)=$CC
11161 + _LT_CC_BASENAME([$compiler])
11163 + if test -n "$compiler"; then
11164 + AC_MSG_CHECKING([if libtool supports shared libraries])
11165 + AC_MSG_RESULT([$can_build_shared])
11167 - if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
11169 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
11170 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
11171 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
11174 - # PORTME fill in a description of your system's linker (not GNU ld)
11177 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
11178 - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
11179 - _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'
11180 - # Note: this linker hardcodes the directories in LIBPATH if there
11181 - # are no directories specified by -L.
11182 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
11183 - if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11184 - # Neither direct hardcoding nor static linking is supported with a
11185 - # broken collect2.
11186 - _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
11189 + AC_MSG_CHECKING([whether to build shared libraries])
11190 + test "$can_build_shared" = "no" && enable_shared=no
11193 - if test "$host_cpu" = ia64; then
11194 - # On IA64, the linker does run time linking by default, so we don't
11195 - # have to do anything special.
11196 - aix_use_runtimelinking=no
11197 - exp_sym_flag='-Bexport'
11200 - # If we're using GNU nm, then we don't want the "-C" option.
11201 - # -C means demangle to AIX nm, but means don't demangle with GNU nm
11202 - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11203 - _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'
11205 - _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'
11206 + # On AIX, shared libraries and static libraries use the same namespace, and
11207 + # are all built from PIC.
11210 + test "$enable_shared" = yes && enable_static=no
11211 + if test -n "$RANLIB"; then
11212 + archive_cmds="$archive_cmds~\$RANLIB \$lib"
11213 + postinstall_cmds='$RANLIB $lib'
11217 + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11218 + test "$enable_shared" = yes && enable_static=no
11220 - aix_use_runtimelinking=no
11222 - # Test if we are trying to use run time linking or normal
11223 - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11224 - # need to do runtime linking.
11225 - case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
11226 - for ld_flag in $LDFLAGS; do
11227 - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11228 - aix_use_runtimelinking=yes
11236 + AC_MSG_RESULT([$enable_shared])
11238 - exp_sym_flag='-bexport'
11239 - no_entry_flag='-bnoentry'
11241 + AC_MSG_CHECKING([whether to build static libraries])
11242 + # Make sure either enable_shared or enable_static is yes.
11243 + test "$enable_shared" = yes || enable_static=yes
11244 + AC_MSG_RESULT([$enable_static])
11246 + _LT_TAGVAR(GCC, $1)="$G77"
11247 + _LT_TAGVAR(LD, $1)="$LD"
11249 + ## CAVEAT EMPTOR:
11250 + ## There is no encapsulation within the following macros, do not change
11251 + ## the running order or otherwise move them around unless you know exactly
11252 + ## what you are doing...
11253 + _LT_COMPILER_PIC($1)
11254 + _LT_COMPILER_C_O($1)
11255 + _LT_COMPILER_FILE_LOCKS($1)
11256 + _LT_LINKER_SHLIBS($1)
11257 + _LT_SYS_DYNAMIC_LINKER($1)
11258 + _LT_LINKER_HARDCODE_LIBPATH($1)
11261 + fi # test -n "$compiler"
11265 +fi # test "$_lt_disable_F77" != yes
11267 - # When large executables or shared objects are built, AIX ld can
11268 - # have problems creating the table of contents. If linking a library
11269 - # or program results in "error TOC overflow" add -mminimal-toc to
11270 - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11271 - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11273 +])# _LT_LANG_F77_CONFIG
11275 - _LT_AC_TAGVAR(archive_cmds, $1)=''
11276 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
11277 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
11278 - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
11280 - if test "$GCC" = yes; then
11281 - case $host_os in aix4.[[012]]|aix4.[[012]].*)
11282 - # We only want to do this on AIX 4.2 and lower, the check
11283 - # below for broken collect2 doesn't work under 4.3+
11284 - collect2name=`${CC} -print-prog-name=collect2`
11285 - if test -f "$collect2name" && \
11286 - strings "$collect2name" | grep resolve_lib_name >/dev/null
11288 - # We have reworked collect2
11291 - # We have old collect2
11292 - _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
11293 - # It fails to find uninstalled libraries when the uninstalled
11294 - # path is not listed in the libpath. Setting hardcode_minus_L
11295 - # to unsupported forces relinking
11296 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
11297 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
11298 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
11302 - shared_flag='-shared'
11303 - if test "$aix_use_runtimelinking" = yes; then
11304 - shared_flag="$shared_flag "'${wl}-G'
11308 - if test "$host_cpu" = ia64; then
11309 - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11310 - # chokes on -Wl,-G. The following line is correct:
11313 - if test "$aix_use_runtimelinking" = yes; then
11314 - shared_flag='${wl}-G'
11316 - shared_flag='${wl}-bM:SRE'
11322 +# Since AC_PROG_FC is broken, in that it returns the empty string
11323 +# if there is no fortran compiler, we have our own version here.
11324 +m4_defun([_LT_PROG_FC],
11326 +pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
11328 +if test -z "$FC" || test "X$FC" = "Xno"; then
11329 + _lt_disable_FC=yes
11331 +popdef([AC_MSG_ERROR])
11334 - # It seems that -bexpall does not export symbols beginning with
11335 - # underscore (_), so it is better to generate a list of symbols to export.
11336 - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
11337 - if test "$aix_use_runtimelinking" = yes; then
11338 - # Warning - without using the other runtime loading flags (-brtl),
11339 - # -berok will link without error, but may produce a broken library.
11340 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
11341 - # Determine the default libpath from the value encoded in an empty executable.
11342 - _LT_AC_SYS_LIBPATH_AIX
11343 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
11344 - _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"
11346 - if test "$host_cpu" = ia64; then
11347 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
11348 - _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
11349 - _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"
11351 - # Determine the default libpath from the value encoded in an empty executable.
11352 - _LT_AC_SYS_LIBPATH_AIX
11353 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
11354 - # Warning - without using the other run time loading flags,
11355 - # -berok will link without error, but may produce a broken library.
11356 - _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
11357 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
11358 - # Exported symbols can be pulled into shared objects from archives
11359 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
11360 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
11361 - # This is similar to how AIX traditionally builds its shared libraries.
11362 - _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'
11366 +dnl aclocal-1.4 backwards compatibility:
11367 +dnl AC_DEFUN([_LT_PROG_FC], [])
11370 - _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)'
11371 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
11372 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
11373 - # see comment about different semantics on the GNU ld section
11374 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
11378 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
11380 +# _LT_LANG_FC_CONFIG([TAG])
11381 +# -------------------------
11382 +# Ensure that the configuration variables for a Fortran compiler are
11383 +# suitably defined. These variables are subsequently used by _LT_CONFIG
11384 +# to write the compiler configuration to `libtool'.
11385 +m4_defun([_LT_LANG_FC_CONFIG],
11386 +[AC_REQUIRE([_LT_PROG_FC])dnl
11387 +AC_LANG_PUSH(Fortran)
11389 +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
11390 +_LT_TAGVAR(allow_undefined_flag, $1)=
11391 +_LT_TAGVAR(always_export_symbols, $1)=no
11392 +_LT_TAGVAR(archive_expsym_cmds, $1)=
11393 +_LT_TAGVAR(export_dynamic_flag_spec, $1)=
11394 +_LT_TAGVAR(hardcode_direct, $1)=no
11395 +_LT_TAGVAR(hardcode_direct_absolute, $1)=no
11396 +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
11397 +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
11398 +_LT_TAGVAR(hardcode_libdir_separator, $1)=
11399 +_LT_TAGVAR(hardcode_minus_L, $1)=no
11400 +_LT_TAGVAR(hardcode_automatic, $1)=no
11401 +_LT_TAGVAR(inherit_rpath, $1)=no
11402 +_LT_TAGVAR(module_cmds, $1)=
11403 +_LT_TAGVAR(module_expsym_cmds, $1)=
11404 +_LT_TAGVAR(link_all_deplibs, $1)=unknown
11405 +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
11406 +_LT_TAGVAR(no_undefined_flag, $1)=
11407 +_LT_TAGVAR(whole_archive_flag_spec, $1)=
11408 +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
11410 - cygwin* | mingw* | pw32*)
11411 - # When not using gcc, we currently assume that we are using
11412 - # Microsoft Visual C++.
11413 - # hardcode_libdir_flag_spec is actually meaningless, as there is
11414 - # no search path for DLLs.
11415 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
11416 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
11417 - # Tell ltmain to make .lib files, not .a files.
11419 - # Tell ltmain to make .dll files, not .so files.
11420 - shrext_cmds=".dll"
11421 - # FIXME: Setting linknames here is a bad hack.
11422 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
11423 - # The linker will automatically build a .lib file if we build a DLL.
11424 - _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
11425 - # FIXME: Should let the user specify the lib program.
11426 - _LT_AC_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
11427 - _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
11428 - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
11430 +# Source file extension for fc test sources.
11431 +ac_ext=${ac_fc_srcext-f}
11433 - darwin* | rhapsody*)
11435 - rhapsody* | darwin1.[[012]])
11436 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
11438 - *) # Darwin 1.3 on
11439 - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11440 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11442 - case ${MACOSX_DEPLOYMENT_TARGET} in
11444 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11447 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
11453 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
11454 - _LT_AC_TAGVAR(hardcode_direct, $1)=no
11455 - _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
11456 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
11457 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
11458 - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
11459 - if test "$GCC" = yes ; then
11460 - output_verbose_link_cmd='echo'
11461 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11462 - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11463 - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11464 - _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}'
11465 - _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}'
11467 - case $cc_basename in
11469 - output_verbose_link_cmd='echo'
11470 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
11471 - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11472 - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11473 - _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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11474 - _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}'
11477 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
11482 +# Object file extension for compiled fc test sources.
11484 +_LT_TAGVAR(objext, $1)=$objext
11487 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11488 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
11489 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
11491 +# No sense in running all these tests if we already determined that
11492 +# the FC compiler isn't working. Some variables (like enable_shared)
11493 +# are currently assumed to apply to all compilers on this platform,
11494 +# and will be corrupted by setting them based on a non-working compiler.
11495 +if test "$_lt_disable_FC" != yes; then
11496 + # Code to be used in simple compile tests
11497 + lt_simple_compile_test_code="\
11504 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
11506 + # Code to be used in simple link tests
11507 + lt_simple_link_test_code="\
11512 - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11513 - # support. Future versions do this automatically, but an explicit c++rt0.o
11514 - # does not break anything, and helps significantly (at the cost of a little
11517 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11518 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
11519 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
11520 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
11522 + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11525 - # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11527 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11528 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
11529 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
11530 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
11532 + # save warnings/boilerplate of simple test code
11533 + _LT_COMPILER_BOILERPLATE
11534 + _LT_LINKER_BOILERPLATE
11536 + # Allow CC to be a program name with arguments.
11541 + GCC=$ac_cv_fc_compiler_gnu
11543 - # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11544 - freebsd* | dragonfly*)
11545 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
11546 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
11547 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
11548 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
11550 + _LT_TAGVAR(compiler, $1)=$CC
11551 + _LT_CC_BASENAME([$compiler])
11554 - if test "$GCC" = yes; then
11555 - _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'
11557 - _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'
11559 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
11560 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
11561 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
11562 + if test -n "$compiler"; then
11563 + AC_MSG_CHECKING([if libtool supports shared libraries])
11564 + AC_MSG_RESULT([$can_build_shared])
11566 - # hardcode_minus_L: Not really in the search PATH,
11567 - # but as the default location of the library.
11568 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
11569 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
11571 + AC_MSG_CHECKING([whether to build shared libraries])
11572 + test "$can_build_shared" = "no" && enable_shared=no
11575 - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
11576 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11578 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11580 - if test "$with_gnu_ld" = no; then
11581 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
11582 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
11583 + # On AIX, shared libraries and static libraries use the same namespace, and
11584 + # are all built from PIC.
11587 + test "$enable_shared" = yes && enable_static=no
11588 + if test -n "$RANLIB"; then
11589 + archive_cmds="$archive_cmds~\$RANLIB \$lib"
11590 + postinstall_cmds='$RANLIB $lib'
11594 + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11595 + test "$enable_shared" = yes && enable_static=no
11599 + AC_MSG_RESULT([$enable_shared])
11601 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
11602 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
11603 + AC_MSG_CHECKING([whether to build static libraries])
11604 + # Make sure either enable_shared or enable_static is yes.
11605 + test "$enable_shared" = yes || enable_static=yes
11606 + AC_MSG_RESULT([$enable_static])
11608 + _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
11609 + _LT_TAGVAR(LD, $1)="$LD"
11611 + ## CAVEAT EMPTOR:
11612 + ## There is no encapsulation within the following macros, do not change
11613 + ## the running order or otherwise move them around unless you know exactly
11614 + ## what you are doing...
11615 + _LT_SYS_HIDDEN_LIBDEPS($1)
11616 + _LT_COMPILER_PIC($1)
11617 + _LT_COMPILER_C_O($1)
11618 + _LT_COMPILER_FILE_LOCKS($1)
11619 + _LT_LINKER_SHLIBS($1)
11620 + _LT_SYS_DYNAMIC_LINKER($1)
11621 + _LT_LINKER_HARDCODE_LIBPATH($1)
11624 + fi # test -n "$compiler"
11628 +fi # test "$_lt_disable_FC" != yes
11630 - # hardcode_minus_L: Not really in the search PATH,
11631 - # but as the default location of the library.
11632 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
11636 +])# _LT_LANG_FC_CONFIG
11639 - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
11640 - case $host_cpu in
11642 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11645 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11648 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11652 - case $host_cpu in
11654 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11657 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11660 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11664 - if test "$with_gnu_ld" = no; then
11665 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
11666 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
11668 - case $host_cpu in
11670 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
11671 - _LT_AC_TAGVAR(hardcode_direct, $1)=no
11672 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
11675 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
11676 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
11677 +# _LT_LANG_GCJ_CONFIG([TAG])
11678 +# --------------------------
11679 +# Ensure that the configuration variables for the GNU Java Compiler compiler
11680 +# are suitably defined. These variables are subsequently used by _LT_CONFIG
11681 +# to write the compiler configuration to `libtool'.
11682 +m4_defun([_LT_LANG_GCJ_CONFIG],
11683 +[AC_REQUIRE([LT_PROG_GCJ])dnl
11686 - # hardcode_minus_L: Not really in the search PATH,
11687 - # but as the default location of the library.
11688 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
11693 +# Source file extension for Java test sources.
11696 - irix5* | irix6* | nonstopux*)
11697 - if test "$GCC" = yes; then
11698 - _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'
11700 - _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'
11701 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
11703 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
11704 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
11705 - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
11707 +# Object file extension for compiled Java test sources.
11709 +_LT_TAGVAR(objext, $1)=$objext
11712 - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11713 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11715 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11717 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
11718 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
11719 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
11721 +# Code to be used in simple compile tests
11722 +lt_simple_compile_test_code="class foo {}"
11725 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11726 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
11727 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
11728 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
11729 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
11731 +# Code to be used in simple link tests
11732 +lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
11735 - if test -f /usr/libexec/ld.so; then
11736 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
11737 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
11738 - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11739 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11740 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11741 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
11742 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
11745 - openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
11746 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11747 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
11750 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11751 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
11756 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
11759 +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11763 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
11764 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
11765 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
11766 - _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'
11767 - _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11769 +# save warnings/boilerplate of simple test code
11770 +_LT_COMPILER_BOILERPLATE
11771 +_LT_LINKER_BOILERPLATE
11774 - if test "$GCC" = yes; then
11775 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
11776 - _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'
11778 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
11779 - _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'
11781 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
11782 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
11784 +# Allow CC to be a program name with arguments.
11790 +_LT_TAGVAR(compiler, $1)=$CC
11791 +_LT_TAGVAR(LD, $1)="$LD"
11792 +_LT_CC_BASENAME([$compiler])
11794 - osf4* | osf5*) # as osf3* with the addition of -msym flag
11795 - if test "$GCC" = yes; then
11796 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
11797 - _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'
11798 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
11800 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
11801 - _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'
11802 - _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~
11803 - $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'
11804 +# GCJ did not exist at the time GCC didn't implicitly link libc in.
11805 +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
11807 - # Both c and cxx compiler support -rpath directly
11808 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
11810 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
11812 +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
11815 - _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
11816 - if test "$GCC" = yes; then
11818 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11819 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11820 - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
11823 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11824 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11825 - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
11827 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
11828 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
11830 - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
11832 - # The compiler driver will combine and reorder linker options,
11833 - # but understands `-z linker_flag'. GCC discards it without `$wl',
11834 - # but is careful enough not to reorder.
11835 - # Supported since Solaris 2.6 (maybe 2.5.1?)
11836 - if test "$GCC" = yes; then
11837 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11839 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
11843 - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
11846 +## There is no encapsulation within the following macros, do not change
11847 +## the running order or otherwise move them around unless you know exactly
11848 +## what you are doing...
11849 +if test -n "$compiler"; then
11850 + _LT_COMPILER_NO_RTTI($1)
11851 + _LT_COMPILER_PIC($1)
11852 + _LT_COMPILER_C_O($1)
11853 + _LT_COMPILER_FILE_LOCKS($1)
11854 + _LT_LINKER_SHLIBS($1)
11855 + _LT_LINKER_HARDCODE_LIBPATH($1)
11858 - if test "x$host_vendor" = xsequent; then
11859 - # Use $CC to link under sequent, because it throws in some extra .o
11860 - # files that make .init and .fini sections work.
11861 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11863 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11865 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
11866 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
11867 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
11868 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
11874 - case $host_vendor in
11876 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11877 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
11880 - ## LD is ld it makes a PLAMLIB
11881 - ## CC just makes a GrossModule.
11882 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11883 - _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
11884 - _LT_AC_TAGVAR(hardcode_direct, $1)=no
11887 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11888 - _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
11891 - runpath_var='LD_RUN_PATH'
11892 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
11897 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11898 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
11899 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
11903 +])# _LT_LANG_GCJ_CONFIG
11906 - if test -d /usr/nec; then
11907 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11908 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
11909 - runpath_var=LD_RUN_PATH
11910 - hardcode_runpath_var=yes
11911 - _LT_AC_TAGVAR(ld_shlibs, $1)=yes
11915 - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
11916 - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
11917 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
11918 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
11919 - runpath_var='LD_RUN_PATH'
11920 +# _LT_LANG_RC_CONFIG([TAG])
11921 +# -------------------------
11922 +# Ensure that the configuration variables for the Windows resource compiler
11923 +# are suitably defined. These variables are subsequently used by _LT_CONFIG
11924 +# to write the compiler configuration to `libtool'.
11925 +m4_defun([_LT_LANG_RC_CONFIG],
11926 +[AC_REQUIRE([LT_PROG_RC])dnl
11929 - if test "$GCC" = yes; then
11930 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11931 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11933 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11934 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11937 +# Source file extension for RC test sources.
11940 - sysv5* | sco3.2v5* | sco5v6*)
11941 - # Note: We can NOT use -z defs as we might desire, because we do not
11942 - # link with -lc, and that would cause any symbols used from libc to
11943 - # always be unresolved, which means just about no library would
11944 - # ever link correctly. If we're not using GNU ld we use -z text
11945 - # though, which does catch some bad symbols but isn't as heavy-handed
11947 - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
11948 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
11949 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
11950 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
11951 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11952 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
11953 - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
11954 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
11955 - runpath_var='LD_RUN_PATH'
11956 +# Object file extension for compiled RC test sources.
11958 +_LT_TAGVAR(objext, $1)=$objext
11960 - if test "$GCC" = yes; then
11961 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11962 - _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'
11964 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11965 - _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'
11968 +# Code to be used in simple compile tests
11969 +lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
11972 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11973 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
11974 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
11976 +# Code to be used in simple link tests
11977 +lt_simple_link_test_code="$lt_simple_compile_test_code"
11980 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
11985 -AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
11986 -test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
11987 +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11991 -# Do we need to explicitly link libc?
11993 -case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
11995 - # Assume -lc should be added
11996 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
11997 +# save warnings/boilerplate of simple test code
11998 +_LT_COMPILER_BOILERPLATE
11999 +_LT_LINKER_BOILERPLATE
12001 - if test "$enable_shared" = yes && test "$GCC" = yes; then
12002 - case $_LT_AC_TAGVAR(archive_cmds, $1) in
12004 - # FIXME: we may have to deal with multi-command sequences.
12007 - # Test whether the compiler implicitly links with -lc since on some
12008 - # systems, -lgcc has to come before -lc. If gcc already passes -lc
12009 - # to ld, don't add -lc before -lgcc.
12010 - AC_MSG_CHECKING([whether -lc should be explicitly linked in])
12012 - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12013 +# Allow CC to be a program name with arguments.
12017 +CC=${RC-"windres"}
12019 +_LT_TAGVAR(compiler, $1)=$CC
12020 +_LT_CC_BASENAME([$compiler])
12021 +_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
12023 - if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
12026 - libobjs=conftest.$ac_objext
12028 - wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
12029 - pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
12030 - compiler_flags=-v
12035 - lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
12036 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=
12037 - if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
12039 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
12041 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
12043 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
12045 - cat conftest.err 1>&5
12048 - AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
12054 -])# AC_LIBTOOL_PROG_LD_SHLIBS
12055 +if test -n "$compiler"; then
12063 +])# _LT_LANG_RC_CONFIG
12065 -# _LT_AC_FILE_LTDLL_C
12066 -# -------------------
12067 -# Be careful that the start marker always follows a newline.
12068 -AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
12069 -# /* ltdll.c starts here */
12070 -# #define WIN32_LEAN_AND_MEAN
12071 -# #include <windows.h>
12072 -# #undef WIN32_LEAN_AND_MEAN
12073 -# #include <stdio.h>
12075 -# #ifndef __CYGWIN__
12076 -# # ifdef __CYGWIN32__
12077 -# # define __CYGWIN__ __CYGWIN32__
12081 -# #ifdef __cplusplus
12084 -# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
12085 -# #ifdef __cplusplus
12089 -# #ifdef __CYGWIN__
12090 -# #include <cygwin/cygwin_dll.h>
12091 -# DECLARE_CYGWIN_DLL( DllMain );
12093 -# HINSTANCE __hDllInstance_base;
12096 -# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
12098 -# __hDllInstance_base = hInst;
12101 -# /* ltdll.c ends here */
12102 -])# _LT_AC_FILE_LTDLL_C
12106 +AC_DEFUN([LT_PROG_GCJ],
12107 +[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
12108 + [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
12109 + [AC_CHECK_TOOL(GCJ, gcj,)
12110 + test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
12111 + AC_SUBST(GCJFLAGS)])])[]dnl
12114 -# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
12115 -# ---------------------------------
12116 -AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
12118 +AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
12119 +dnl aclocal-1.4 backwards compatibility:
12120 +dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
12124 -AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
12125 -AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
12126 -AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
12127 -AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
12128 -AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
12129 -AC_DEFUN([AM_PROG_LD], [AC_PROG_LD])
12130 -AC_DEFUN([AM_PROG_NM], [AC_PROG_NM])
12132 -# This is just to silence aclocal about the macro not being used
12133 -ifelse([AC_DISABLE_FAST_INSTALL])
12135 -AC_DEFUN([LT_AC_PROG_GCJ],
12136 -[AC_CHECK_TOOL(GCJ, gcj, no)
12137 - test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
12138 - AC_SUBST(GCJFLAGS)
12141 +AC_DEFUN([LT_PROG_RC],
12142 +[AC_CHECK_TOOL(RC, windres,)
12145 -AC_DEFUN([LT_AC_PROG_RC],
12146 -[AC_CHECK_TOOL(RC, windres, no)
12149 +AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
12150 +dnl aclocal-1.4 backwards compatibility:
12151 +dnl AC_DEFUN([LT_AC_PROG_RC], [])
12154 -# Cheap backport of AS_EXECUTABLE_P and required macros
12155 -# from Autoconf 2.59; we should not use $as_executable_p directly.
12158 +# If we don't have a new enough Autoconf to choose the best grep
12159 +# available, choose the one first in the user's PATH.
12160 +m4_defun([_LT_DECL_EGREP],
12161 +[AC_REQUIRE([AC_PROG_EGREP])dnl
12162 +AC_REQUIRE([AC_PROG_FGREP])dnl
12163 +test -z "$GREP" && GREP=grep
12164 +_LT_DECL([], [GREP], [1], [A grep program that handles long lines])
12165 +_LT_DECL([], [EGREP], [1], [An ERE matcher])
12166 +_LT_DECL([], [FGREP], [1], [A literal string matcher])
12167 +dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
12171 -# _AS_TEST_PREPARE
12172 -# ----------------
12173 -m4_ifndef([_AS_TEST_PREPARE],
12174 -[m4_defun([_AS_TEST_PREPARE],
12175 -[if test -x / >/dev/null 2>&1; then
12176 - as_executable_p='test -x'
12178 - as_executable_p='test -f'
12180 -])])# _AS_TEST_PREPARE
12184 -# Check whether a file is executable.
12185 -m4_ifndef([AS_EXECUTABLE_P],
12186 -[m4_defun([AS_EXECUTABLE_P],
12187 -[AS_REQUIRE([_AS_TEST_PREPARE])dnl
12188 -$as_executable_p $1[]dnl
12189 -])])# AS_EXECUTABLE_P
12192 +# Check for a fully-functional sed program, that truncates
12193 +# as few characters as possible. Prefer GNU sed if found.
12194 +m4_defun([_LT_DECL_SED],
12196 +test -z "$SED" && SED=sed
12197 +Xsed="$SED -e 1s/^X//"
12198 +_LT_DECL([], [SED], [1], [A sed program that does not truncate output])
12199 +_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
12200 + [Sed that helps us avoid accidentally triggering echo(1) options like -n])
12203 +m4_ifndef([AC_PROG_SED], [
12204 ############################################################
12205 # NOTE: This macro has been submitted for inclusion into #
12206 # GNU Autoconf as AC_PROG_SED. When it is available in #
12207 # a released version of Autoconf we should remove this #
12208 # macro and use it instead. #
12209 ############################################################
12212 -# Check for a fully-functional sed program, that truncates
12213 -# as few characters as possible. Prefer GNU sed if found.
12214 -AC_DEFUN([LT_AC_PROG_SED],
12216 +m4_defun([AC_PROG_SED],
12217 [AC_MSG_CHECKING([for a sed that does not truncate output])
12218 AC_CACHE_VAL(lt_cv_path_SED,
12219 [# Loop through the user's path and test for sed and gsed.
12220 @@ -6544,7 +7004,7 @@
12221 test -z "$as_dir" && as_dir=.
12222 for lt_ac_prog in sed gsed; do
12223 for ac_exec_ext in '' $ac_executable_extensions; do
12224 - if AS_EXECUTABLE_P(["$as_dir/$lt_ac_prog$ac_exec_ext"]); then
12225 + if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12226 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12229 @@ -6585,4 +7045,266 @@
12230 SED=$lt_cv_path_SED
12232 AC_MSG_RESULT([$SED])
12237 +AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
12238 +dnl aclocal-1.4 backwards compatibility:
12239 +dnl AC_DEFUN([LT_AC_PROG_SED], [])
12242 +# _LT_CHECK_SHELL_FEATURES
12243 +# ------------------------
12244 +# Find out whether the shell is Bourne or XSI compatible,
12245 +# or has some other useful features.
12246 +m4_defun([_LT_CHECK_SHELL_FEATURES],
12247 +[AC_MSG_CHECKING([whether the shell understands some XSI constructs])
12248 +# Try some XSI features
12250 +( _lt_dummy="a/b/c"
12251 + test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12253 + && eval 'test $(( 1 + 1 )) -eq 2 \
12254 + && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12256 +AC_MSG_RESULT([$xsi_shell])
12257 +_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
12259 +AC_MSG_CHECKING([whether the shell understands "+="])
12260 +lt_shell_append=no
12261 +( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
12262 + >/dev/null 2>&1 \
12263 + && lt_shell_append=yes
12264 +AC_MSG_RESULT([$lt_shell_append])
12265 +_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
12267 +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12272 +_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
12274 +# test EBCDIC or ASCII
12275 +case `echo X|tr X '\101'` in
12276 + A) # ASCII based system
12277 + # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12278 + lt_SP2NL='tr \040 \012'
12279 + lt_NL2SP='tr \015\012 \040\040'
12281 + *) # EBCDIC based system
12282 + lt_SP2NL='tr \100 \n'
12283 + lt_NL2SP='tr \r\n \100\100'
12286 +_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
12287 +_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
12288 +])# _LT_CHECK_SHELL_FEATURES
12291 +# _LT_PROG_XSI_SHELLFNS
12292 +# ---------------------
12293 +# Bourne and XSI compatible variants of some useful shell functions.
12294 +m4_defun([_LT_PROG_XSI_SHELLFNS],
12295 +[case $xsi_shell in
12297 + cat << \_LT_EOF >> "$cfgfile"
12299 +# func_dirname file append nondir_replacement
12300 +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
12301 +# otherwise set result to NONDIR_REPLACEMENT.
12305 + */*) func_dirname_result="${1%/*}${2}" ;;
12306 + * ) func_dirname_result="${3}" ;;
12310 +# func_basename file
12313 + func_basename_result="${1##*/}"
12316 +# func_dirname_and_basename file append nondir_replacement
12317 +# perform func_basename and func_dirname in a single function
12319 +# dirname: Compute the dirname of FILE. If nonempty,
12320 +# add APPEND to the result, otherwise set result
12321 +# to NONDIR_REPLACEMENT.
12322 +# value returned in "$func_dirname_result"
12323 +# basename: Compute filename of FILE.
12324 +# value retuned in "$func_basename_result"
12325 +# Implementation must be kept synchronized with func_dirname
12326 +# and func_basename. For efficiency, we do not delegate to
12327 +# those functions but instead duplicate the functionality here.
12328 +func_dirname_and_basename ()
12331 + */*) func_dirname_result="${1%/*}${2}" ;;
12332 + * ) func_dirname_result="${3}" ;;
12334 + func_basename_result="${1##*/}"
12337 +# func_stripname prefix suffix name
12338 +# strip PREFIX and SUFFIX off of NAME.
12339 +# PREFIX and SUFFIX must not contain globbing or regex special
12340 +# characters, hashes, percent signs, but SUFFIX may contain a leading
12341 +# dot (in which case that matches only a dot).
12344 + # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
12345 + # positional parameters, so assign one to ordinary parameter first.
12346 + func_stripname_result=${3}
12347 + func_stripname_result=${func_stripname_result#"${1}"}
12348 + func_stripname_result=${func_stripname_result%"${2}"}
12354 + func_opt_split_opt=${1%%=*}
12355 + func_opt_split_arg=${1#*=}
12358 +# func_lo2o object
12362 + *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
12363 + *) func_lo2o_result=${1} ;;
12367 +# func_xform libobj-or-source
12370 + func_xform_result=${1%.*}.lo
12373 +# func_arith arithmetic-term...
12376 + func_arith_result=$(( $[*] ))
12380 +# STRING may not start with a hyphen.
12383 + func_len_result=${#1}
12388 + *) # Bourne compatible functions.
12389 + cat << \_LT_EOF >> "$cfgfile"
12391 +# func_dirname file append nondir_replacement
12392 +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
12393 +# otherwise set result to NONDIR_REPLACEMENT.
12396 + # Extract subdirectory from the argument.
12397 + func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
12398 + if test "X$func_dirname_result" = "X${1}"; then
12399 + func_dirname_result="${3}"
12401 + func_dirname_result="$func_dirname_result${2}"
12405 +# func_basename file
12408 + func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
12411 +dnl func_dirname_and_basename
12412 +dnl A portable version of this function is already defined in general.m4sh
12413 +dnl so there is no need for it here.
12415 +# func_stripname prefix suffix name
12416 +# strip PREFIX and SUFFIX off of NAME.
12417 +# PREFIX and SUFFIX must not contain globbing or regex special
12418 +# characters, hashes, percent signs, but SUFFIX may contain a leading
12419 +# dot (in which case that matches only a dot).
12420 +# func_strip_suffix prefix name
12424 + .*) func_stripname_result=`$ECHO "X${3}" \
12425 + | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
12426 + *) func_stripname_result=`$ECHO "X${3}" \
12427 + | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
12432 +my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
12433 +my_sed_long_arg='1s/^-[[^=]]*=//'
12438 + func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
12439 + func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
12442 +# func_lo2o object
12445 + func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
12448 +# func_xform libobj-or-source
12451 + func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
12454 +# func_arith arithmetic-term...
12457 + func_arith_result=`expr "$[@]"`
12461 +# STRING may not start with a hyphen.
12464 + func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
12470 +case $lt_shell_append in
12472 + cat << \_LT_EOF >> "$cfgfile"
12474 +# func_append var value
12475 +# Append VALUE to the end of shell variable VAR.
12478 + eval "$[1]+=\$[2]"
12483 + cat << \_LT_EOF >> "$cfgfile"
12485 +# func_append var value
12486 +# Append VALUE to the end of shell variable VAR.
12489 + eval "$[1]=\$$[1]\$[2]"
12496 Index: libiconv-1.12/m4/libtool.m4
12497 ===================================================================
12498 --- libiconv-1.12.orig/m4/libtool.m4 2007-10-27 02:46:10.000000000 +0200
12499 +++ libiconv-1.12/m4/libtool.m4 2008-06-06 23:00:22.883921710 +0200
12500 @@ -1,107 +1,186 @@
12501 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
12502 -## Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, 2007
12503 -## Free Software Foundation, Inc.
12504 -## Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
12506 -## This file is free software; the Free Software Foundation gives
12507 -## unlimited permission to copy and/or distribute it, with or without
12508 -## modifications, as long as this notice is preserved.
12510 -# serial 51 AC_PROG_LIBTOOL
12513 -# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
12514 -# -----------------------------------------------------------
12515 -# If this macro is not defined by Autoconf, define it here.
12516 -m4_ifdef([AC_PROVIDE_IFELSE],
12518 - [m4_define([AC_PROVIDE_IFELSE],
12519 - [m4_ifdef([AC_PROVIDE_$1],
12522 +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
12523 +# 2006, 2007, 2008 Free Software Foundation, Inc.
12524 +# Written by Gordon Matzigkeit, 1996
12526 +# This file is free software; the Free Software Foundation gives
12527 +# unlimited permission to copy and/or distribute it, with or without
12528 +# modifications, as long as this notice is preserved.
12530 +m4_define([_LT_COPYING], [dnl
12531 +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
12532 +# 2006, 2007, 2008 Free Software Foundation, Inc.
12533 +# Written by Gordon Matzigkeit, 1996
12535 +# This file is part of GNU Libtool.
12537 +# GNU Libtool is free software; you can redistribute it and/or
12538 +# modify it under the terms of the GNU General Public License as
12539 +# published by the Free Software Foundation; either version 2 of
12540 +# the License, or (at your option) any later version.
12542 +# As a special exception to the GNU General Public License,
12543 +# if you distribute this file as part of a program or library that
12544 +# is built using GNU Libtool, you may include this file under the
12545 +# same distribution terms that you use for the rest of that program.
12547 +# GNU Libtool is distributed in the hope that it will be useful,
12548 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
12549 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12550 +# GNU General Public License for more details.
12552 +# You should have received a copy of the GNU General Public License
12553 +# along with GNU Libtool; see the file COPYING. If not, a copy
12554 +# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
12555 +# obtained by writing to the Free Software Foundation, Inc.,
12556 +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12559 +# serial 56 LT_INIT
12563 -AC_DEFUN([AC_PROG_LIBTOOL],
12564 -[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
12565 -dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
12566 -dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
12567 - AC_PROVIDE_IFELSE([AC_PROG_CXX],
12568 - [AC_LIBTOOL_CXX],
12569 - [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
12571 -dnl And a similar setup for Fortran 77 support
12572 - AC_PROVIDE_IFELSE([AC_PROG_F77],
12573 - [AC_LIBTOOL_F77],
12574 - [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
12577 -dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
12578 -dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
12579 -dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
12580 - AC_PROVIDE_IFELSE([AC_PROG_GCJ],
12581 - [AC_LIBTOOL_GCJ],
12582 - [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
12583 - [AC_LIBTOOL_GCJ],
12584 - [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
12585 - [AC_LIBTOOL_GCJ],
12586 - [ifdef([AC_PROG_GCJ],
12587 - [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
12588 - ifdef([A][M_PROG_GCJ],
12589 - [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
12590 - ifdef([LT_AC_PROG_GCJ],
12591 - [define([LT_AC_PROG_GCJ],
12592 - defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
12593 -])])# AC_PROG_LIBTOOL
12595 +# LT_PREREQ(VERSION)
12596 +# ------------------
12597 +# Complain and exit if this libtool version is less that VERSION.
12598 +m4_defun([LT_PREREQ],
12599 +[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
12600 + [m4_default([$3],
12601 + [m4_fatal([Libtool version $1 or higher is required],
12605 -# _AC_PROG_LIBTOOL
12606 -# ----------------
12607 -AC_DEFUN([_AC_PROG_LIBTOOL],
12608 -[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
12609 -AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
12610 -AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
12611 -AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
12613 +# _LT_CHECK_BUILDDIR
12614 +# ------------------
12615 +# Complain if the absolute build directory name contains unusual characters
12616 +m4_defun([_LT_CHECK_BUILDDIR],
12619 + AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
12624 +# LT_INIT([OPTIONS])
12625 +# ------------------
12626 +AC_DEFUN([LT_INIT],
12627 +[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
12628 +AC_BEFORE([$0], [LT_LANG])dnl
12629 +AC_BEFORE([$0], [LT_OUTPUT])dnl
12630 +AC_BEFORE([$0], [LTDL_INIT])dnl
12631 +m4_require([_LT_CHECK_BUILDDIR])dnl
12633 +dnl Autoconf doesn't catch unexpanded LT_ macros by default:
12634 +m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
12635 +m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
12636 +dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
12637 +dnl unless we require an AC_DEFUNed macro:
12638 +AC_REQUIRE([LTOPTIONS_VERSION])dnl
12639 +AC_REQUIRE([LTSUGAR_VERSION])dnl
12640 +AC_REQUIRE([LTVERSION_VERSION])dnl
12641 +AC_REQUIRE([LTOBSOLETE_VERSION])dnl
12642 +m4_require([_LT_PROG_LTMAIN])dnl
12645 +_LT_SET_OPTIONS([$0], [$1])
12647 # This can be used to rebuild libtool when needed
12648 -LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
12649 +LIBTOOL_DEPS="$ltmain"
12651 # Always use our own libtool.
12652 -LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12653 +LIBTOOL='$(SHELL) $(top_builddir)'
12654 +LIBTOOL="$LIBTOOL/$host_alias-libtool"
12655 AC_SUBST(LIBTOOL)dnl
12657 -# Prevent multiple expansion
12658 -define([AC_PROG_LIBTOOL], [])
12659 -])# _AC_PROG_LIBTOOL
12662 +# Only expand once:
12663 +m4_define([LT_INIT])
12667 +AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
12668 +AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
12669 +dnl aclocal-1.4 backwards compatibility:
12670 +dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
12671 +dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
12673 -# AC_LIBTOOL_SETUP
12674 -# ----------------
12675 -AC_DEFUN([AC_LIBTOOL_SETUP],
12676 -[AC_PREREQ(2.50)dnl
12677 -AC_REQUIRE([AC_ENABLE_SHARED])dnl
12678 -AC_REQUIRE([AC_ENABLE_STATIC])dnl
12679 -AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
12680 -AC_REQUIRE([AC_CANONICAL_HOST])dnl
12682 +# _LT_CC_BASENAME(CC)
12683 +# -------------------
12684 +# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
12685 +m4_defun([_LT_CC_BASENAME],
12686 +[for cc_temp in $1""; do
12688 + compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
12689 + distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
12694 +cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12698 +# _LT_FILEUTILS_DEFAULTS
12699 +# ----------------------
12700 +# It is okay to use these file commands and assume they have been set
12701 +# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
12702 +m4_defun([_LT_FILEUTILS_DEFAULTS],
12706 +])# _LT_FILEUTILS_DEFAULTS
12711 +m4_defun([_LT_SETUP],
12712 +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
12713 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
12714 +_LT_DECL([], [host_alias], [0], [The host system])dnl
12715 +_LT_DECL([], [host], [0])dnl
12716 +_LT_DECL([], [host_os], [0])dnl
12718 +_LT_DECL([], [build_alias], [0], [The build system])dnl
12719 +_LT_DECL([], [build], [0])dnl
12720 +_LT_DECL([], [build_os], [0])dnl
12722 AC_REQUIRE([AC_PROG_CC])dnl
12723 -AC_REQUIRE([AC_PROG_LD])dnl
12724 -AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
12725 -AC_REQUIRE([AC_PROG_NM])dnl
12727 +AC_REQUIRE([LT_PATH_LD])dnl
12728 +AC_REQUIRE([LT_PATH_NM])dnl
12730 AC_REQUIRE([AC_PROG_LN_S])dnl
12731 -AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
12732 -# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
12733 -AC_REQUIRE([AC_OBJEXT])dnl
12734 -AC_REQUIRE([AC_EXEEXT])dnl
12735 +test -z "$LN_S" && LN_S="ln -s"
12736 +_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
12738 +AC_REQUIRE([LT_CMD_MAX_LEN])dnl
12739 +_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
12740 +_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
12742 +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
12743 +m4_require([_LT_CHECK_SHELL_FEATURES])dnl
12744 +m4_require([_LT_CMD_RELOAD])dnl
12745 +m4_require([_LT_CHECK_MAGIC_METHOD])dnl
12746 +m4_require([_LT_CMD_OLD_ARCHIVE])dnl
12747 +m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
12749 +_LT_CONFIG_LIBTOOL_INIT([
12750 +# See if we are running on zsh, and set the options which allow our
12751 +# commands through without removal of \ escapes INIT.
12752 +if test -n "\${ZSH_VERSION+set}" ; then
12753 + setopt NO_GLOB_SUBST
12756 +if test -n "${ZSH_VERSION+set}" ; then
12757 + setopt NO_GLOB_SUBST
12760 -AC_LIBTOOL_SYS_MAX_CMD_LEN
12761 -AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
12765 -AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
12766 -_LT_AC_PROG_ECHO_BACKSLASH
12767 +m4_require([_LT_TAG_COMPILER])dnl
12768 +_LT_PROG_ECHO_BACKSLASH
12772 @@ -117,1977 +196,2538 @@
12774 # Sed substitution that helps us do robust quoting. It backslashifies
12775 # metacharacters that are still active within double-quoted strings.
12776 -Xsed='sed -e 1s/^X//'
12777 -[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
12778 +sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
12780 # Same as above, but do not quote variable references.
12781 -[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
12782 +double_quote_subst='s/\([["`\\]]\)/\\\1/g'
12784 # Sed substitution to delay expansion of an escaped shell variable in a
12785 # double_quote_subst'ed string.
12786 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12788 +# Sed substitution to delay expansion of an escaped single quote.
12789 +delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
12791 # Sed substitution to avoid accidental globbing in evaled expressions
12792 no_glob_subst='s/\*/\\\*/g'
12797 # Global variables:
12798 -default_ofile=libtool
12799 +ofile=${host_alias}-libtool
12800 can_build_shared=yes
12802 # All known linkers require a `.a' archive for static linking (except MSVC,
12803 # which needs '.lib').
12805 -ltmain="$ac_aux_dir/ltmain.sh"
12806 -ofile="$default_ofile"
12807 -with_gnu_ld="$lt_cv_prog_gnu_ld"
12809 -AC_CHECK_TOOL(AR, ar, false)
12810 -AC_CHECK_TOOL(RANLIB, ranlib, :)
12811 -AC_CHECK_TOOL(STRIP, strip, :)
12812 +with_gnu_ld="$lt_cv_prog_gnu_ld"
12815 old_CFLAGS="$CFLAGS"
12817 # Set sane defaults for various variables
12818 -test -z "$AR" && AR=ar
12819 -test -z "$AR_FLAGS" && AR_FLAGS=cru
12820 -test -z "$AS" && AS=as
12821 test -z "$CC" && CC=cc
12822 test -z "$LTCC" && LTCC=$CC
12823 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
12824 -test -z "$DLLTOOL" && DLLTOOL=dlltool
12825 test -z "$LD" && LD=ld
12826 -test -z "$LN_S" && LN_S="ln -s"
12827 -test -z "$MAGIC_CMD" && MAGIC_CMD=file
12828 -test -z "$NM" && NM=nm
12829 -test -z "$SED" && SED=sed
12830 -test -z "$OBJDUMP" && OBJDUMP=objdump
12831 -test -z "$RANLIB" && RANLIB=:
12832 -test -z "$STRIP" && STRIP=:
12833 test -z "$ac_objext" && ac_objext=o
12835 -# Determine commands to create old-style static archives.
12836 -old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12837 -old_postinstall_cmds='chmod 644 $oldlib'
12838 -old_postuninstall_cmds=
12840 -if test -n "$RANLIB"; then
12843 - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
12846 - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
12849 - old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
12852 _LT_CC_BASENAME([$compiler])
12854 # Only perform the check for file, if the check method requires it
12855 +test -z "$MAGIC_CMD" && MAGIC_CMD=file
12856 case $deplibs_check_method in
12858 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
12865 -AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
12866 -AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
12867 -enable_win32_dll=yes, enable_win32_dll=no)
12869 -AC_ARG_ENABLE([libtool-lock],
12870 - [AC_HELP_STRING([--disable-libtool-lock],
12871 - [avoid locking (might break parallel builds)])])
12872 -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12873 +# Use C for the default configuration in the libtool script
12874 +LT_SUPPORTED_TAG([CC])
12876 +_LT_LANG_DEFAULT_CONFIG
12877 +_LT_CONFIG_COMMANDS
12880 -AC_ARG_WITH([pic],
12881 - [AC_HELP_STRING([--with-pic],
12882 - [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
12883 - [pic_mode="$withval"],
12884 - [pic_mode=default])
12885 -test -z "$pic_mode" && pic_mode=default
12887 -# Use C for the default configuration in the libtool script
12889 -AC_LIBTOOL_LANG_C_CONFIG
12891 -])# AC_LIBTOOL_SETUP
12894 +# Note that this code is called both from `configure', and `config.status'
12895 +# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
12896 +# `config.status' has no value for ac_aux_dir unless we are using Automake,
12897 +# so we pass a copy along to make sure it has a sensible value anyway.
12898 +m4_defun([_LT_PROG_LTMAIN],
12899 +[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
12900 +_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
12901 +ltmain="$ac_aux_dir/ltmain.sh"
12902 +])# _LT_PROG_LTMAIN
12905 -# _LT_AC_SYS_COMPILER
12906 -# -------------------
12907 -AC_DEFUN([_LT_AC_SYS_COMPILER],
12908 -[AC_REQUIRE([AC_PROG_CC])dnl
12909 +## ------------------------------------- ##
12910 +## Accumulate code for creating libtool. ##
12911 +## ------------------------------------- ##
12913 +# So that we can recreate a full libtool script including additional
12914 +# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
12915 +# in macros and then make a single call at the end using the `libtool'
12919 +# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
12920 +# ----------------------------------------
12921 +# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
12922 +m4_define([_LT_CONFIG_LIBTOOL_INIT],
12924 + [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
12929 +m4_define([_LT_OUTPUT_LIBTOOL_INIT])
12932 +# _LT_CONFIG_LIBTOOL([COMMANDS])
12933 +# ------------------------------
12934 +# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
12935 +m4_define([_LT_CONFIG_LIBTOOL],
12937 + [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
12942 +m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
12945 +# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
12946 +# -----------------------------------------------------
12947 +m4_defun([_LT_CONFIG_SAVE_COMMANDS],
12948 +[_LT_CONFIG_LIBTOOL([$1])
12949 +_LT_CONFIG_LIBTOOL_INIT([$2])
12952 -# If no C compiler was specified, use CC.
12953 -LTCC=${LTCC-"$CC"}
12955 -# If no C compiler flags were specified, use CFLAGS.
12956 -LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12957 +# _LT_FORMAT_COMMENT([COMMENT])
12958 +# -----------------------------
12959 +# Add leading comment marks to the start of each line, and a trailing
12960 +# full-stop to the whole comment if one is not present already.
12961 +m4_define([_LT_FORMAT_COMMENT],
12963 +m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
12964 + [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
12967 -# Allow CC to be a program name with arguments.
12969 -])# _LT_AC_SYS_COMPILER
12972 -# _LT_CC_BASENAME(CC)
12973 -# -------------------
12974 -# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
12975 -AC_DEFUN([_LT_CC_BASENAME],
12976 -[for cc_temp in $1""; do
12978 - compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
12979 - distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
12984 -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12985 +## ------------------------ ##
12986 +## FIXME: Eliminate VARNAME ##
12987 +## ------------------------ ##
12990 +# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
12991 +# -------------------------------------------------------------------
12992 +# CONFIGNAME is the name given to the value in the libtool script.
12993 +# VARNAME is the (base) name used in the configure script.
12994 +# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
12995 +# VARNAME. Any other value will be used directly.
12996 +m4_define([_LT_DECL],
12997 +[lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
12998 + [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
12999 + [m4_ifval([$1], [$1], [$2])])
13000 + lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
13002 + [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
13003 + lt_dict_add_subkey([lt_decl_dict], [$2],
13004 + [tagged?], [m4_ifval([$5], [yes], [no])])])
13008 -# _LT_COMPILER_BOILERPLATE
13009 -# ------------------------
13010 -# Check for compiler boilerplate output or warnings with
13011 -# the simple compiler test code.
13012 -AC_DEFUN([_LT_COMPILER_BOILERPLATE],
13013 -[AC_REQUIRE([LT_AC_PROG_SED])dnl
13014 -ac_outfile=conftest.$ac_objext
13015 -echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13016 -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13017 -_lt_compiler_boilerplate=`cat conftest.err`
13019 -])# _LT_COMPILER_BOILERPLATE
13021 +# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
13022 +# --------------------------------------------------------
13023 +m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
13026 +# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
13027 +# ------------------------------------------------
13028 +m4_define([lt_decl_tag_varnames],
13029 +[_lt_decl_filter([tagged?], [yes], $@)])
13032 +# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
13033 +# ---------------------------------------------------------
13034 +m4_define([_lt_decl_filter],
13036 + [0], [m4_fatal([$0: too few arguments: $#])],
13037 + [1], [m4_fatal([$0: too few arguments: $#: $1])],
13038 + [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
13039 + [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
13040 + [lt_dict_filter([lt_decl_dict], $@)])[]dnl
13043 -# _LT_LINKER_BOILERPLATE
13044 -# ----------------------
13045 -# Check for linker boilerplate output or warnings with
13046 -# the simple link test code.
13047 -AC_DEFUN([_LT_LINKER_BOILERPLATE],
13048 -[AC_REQUIRE([LT_AC_PROG_SED])dnl
13049 -ac_outfile=conftest.$ac_objext
13050 -echo "$lt_simple_link_test_code" >conftest.$ac_ext
13051 -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13052 -_lt_linker_boilerplate=`cat conftest.err`
13054 -])# _LT_LINKER_BOILERPLATE
13056 +# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
13057 +# --------------------------------------------------
13058 +m4_define([lt_decl_quote_varnames],
13059 +[_lt_decl_filter([value], [1], $@)])
13062 +# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
13063 +# ---------------------------------------------------
13064 +m4_define([lt_decl_dquote_varnames],
13065 +[_lt_decl_filter([value], [2], $@)])
13068 +# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
13069 +# ---------------------------------------------------
13070 +m4_define([lt_decl_varnames_tagged],
13071 +[_$0(m4_quote(m4_default([$1], [[, ]])),
13072 + m4_quote(m4_if([$2], [],
13073 + m4_quote(lt_decl_tag_varnames),
13074 + m4_quote(m4_shift($@)))),
13075 + m4_split(m4_normalize(m4_quote(_LT_TAGS))))])
13076 +m4_define([_lt_decl_varnames_tagged], [lt_combine([$1], [$2], [_], $3)])
13079 +# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
13080 +# ------------------------------------------------
13081 +m4_define([lt_decl_all_varnames],
13082 +[_$0(m4_quote(m4_default([$1], [[, ]])),
13084 + m4_quote(lt_decl_varnames),
13085 + m4_quote(m4_shift($@))))[]dnl
13087 +m4_define([_lt_decl_all_varnames],
13088 +[lt_join($@, lt_decl_varnames_tagged([$1],
13089 + lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
13092 -# _LT_AC_SYS_LIBPATH_AIX
13093 -# ----------------------
13094 -# Links a minimal program and checks the executable
13095 -# for the system default hardcoded library path. In most cases,
13096 -# this is /usr/lib:/lib, but when the MPI compilers are used
13097 -# the location of the communication and MPI libs are included too.
13098 -# If we don't find anything, use the default library path according
13099 -# to the aix ld manual.
13100 -AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
13101 -[AC_REQUIRE([LT_AC_PROG_SED])dnl
13102 -AC_LINK_IFELSE(AC_LANG_PROGRAM,[
13103 -lt_aix_libpath_sed='
13104 - /Import File Strings/,/^$/ {
13106 - s/^0 *\(.*\)$/\1/
13110 -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13111 -# Check for a 64-bit object if we didn't find anything.
13112 -if test -z "$aix_libpath"; then
13113 - aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13115 -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13116 -])# _LT_AC_SYS_LIBPATH_AIX
13118 +# _LT_CONFIG_STATUS_DECLARE([VARNAME])
13119 +# ------------------------------------
13120 +# Quote a variable value, and forward it to `config.status' so that its
13121 +# declaration there will have the same value as in `configure'. VARNAME
13122 +# must have a single quote delimited value for this to work.
13123 +m4_define([_LT_CONFIG_STATUS_DECLARE],
13124 +[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
13126 -# _LT_AC_SHELL_INIT(ARG)
13127 -# ----------------------
13128 -AC_DEFUN([_LT_AC_SHELL_INIT],
13129 -[ifdef([AC_DIVERSION_NOTICE],
13130 - [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
13131 - [AC_DIVERT_PUSH(NOTICE)])
13134 -])# _LT_AC_SHELL_INIT
13136 +# _LT_CONFIG_STATUS_DECLARATIONS
13137 +# ------------------------------
13138 +# We delimit libtool config variables with single quotes, so when
13139 +# we write them to config.status, we have to be sure to quote all
13140 +# embedded single quotes properly. In configure, this macro expands
13141 +# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
13143 +# <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
13144 +m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
13145 +[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
13146 + [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
13148 -# _LT_AC_PROG_ECHO_BACKSLASH
13149 -# --------------------------
13150 -# Add some code to the start of the generated configure script which
13151 -# will find an echo command which doesn't interpret backslashes.
13152 -AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
13153 -[_LT_AC_SHELL_INIT([
13154 -# Check that we are running under the correct shell.
13155 -SHELL=${CONFIG_SHELL-/bin/sh}
13158 -X*--fallback-echo)
13159 - # Remove one level of quotation (which was required for Make).
13160 - ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
13163 +# _LT_LIBTOOL_TAGS
13164 +# ----------------
13165 +# Output comment and list of tags supported by the script
13166 +m4_defun([_LT_LIBTOOL_TAGS],
13167 +[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
13168 +available_tags="_LT_TAGS"dnl
13172 -if test "X[$]1" = X--no-reexec; then
13173 - # Discard the --no-reexec flag, and continue.
13175 -elif test "X[$]1" = X--fallback-echo; then
13176 - # Avoid inline document here, it may be left over
13178 -elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
13179 - # Yippee, $echo works!
13182 - # Restart under the correct shell.
13183 - exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
13186 -if test "X[$]1" = X--fallback-echo; then
13187 - # used as fallback echo
13194 +# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
13195 +# -----------------------------------
13196 +# Extract the dictionary values for VARNAME (optionally with TAG) and
13197 +# expand to a commented shell variable setting:
13199 +# # Some comment about what VAR is for.
13200 +# visible_name=$lt_internal_name
13201 +m4_define([_LT_LIBTOOL_DECLARE],
13202 +[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
13203 + [description])))[]dnl
13204 +m4_pushdef([_libtool_name],
13205 + m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
13206 +m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
13207 + [0], [_libtool_name=[$]$1],
13208 + [1], [_libtool_name=$lt_[]$1],
13209 + [2], [_libtool_name=$lt_[]$1],
13210 + [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
13211 +m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
13214 -# The HP-UX ksh and POSIX shell print the target directory to stdout
13215 -# if CDPATH is set.
13216 -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13218 -if test -z "$ECHO"; then
13219 -if test "X${echo_test_string+set}" != Xset; then
13220 -# find a string as large as possible, as long as the shell can cope with it
13221 - for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
13222 - # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
13223 - if (echo_test_string=`eval $cmd`) 2>/dev/null &&
13224 - echo_test_string=`eval $cmd` &&
13225 - (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
13231 +# _LT_LIBTOOL_CONFIG_VARS
13232 +# -----------------------
13233 +# Produce commented declarations of non-tagged libtool config variables
13234 +# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
13235 +# script. Tagged libtool config variables (even for the LIBTOOL CONFIG
13236 +# section) are produced by _LT_LIBTOOL_TAG_VARS.
13237 +m4_defun([_LT_LIBTOOL_CONFIG_VARS],
13238 +[m4_foreach([_lt_var],
13239 + m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
13240 + [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
13242 -if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
13243 - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
13244 - test "X$echo_testing_string" = "X$echo_test_string"; then
13247 - # The Solaris, AIX, and Digital Unix default echo programs unquote
13248 - # backslashes. This makes it impossible to quote backslashes using
13249 - # echo "$something" | sed 's/\\/\\\\/g'
13251 - # So, first we look for a working echo in the user's PATH.
13253 - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13254 - for dir in $PATH /usr/ucb; do
13255 - IFS="$lt_save_ifs"
13256 - if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
13257 - test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
13258 - echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
13259 - test "X$echo_testing_string" = "X$echo_test_string"; then
13264 - IFS="$lt_save_ifs"
13265 +# _LT_LIBTOOL_TAG_VARS(TAG)
13266 +# -------------------------
13267 +m4_define([_LT_LIBTOOL_TAG_VARS],
13268 +[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
13269 + [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
13271 - if test "X$echo" = Xecho; then
13272 - # We didn't find a better echo, so look for alternatives.
13273 - if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
13274 - echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
13275 - test "X$echo_testing_string" = "X$echo_test_string"; then
13276 - # This shell has a builtin print -r that does the trick.
13278 - elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
13279 - test "X$CONFIG_SHELL" != X/bin/ksh; then
13280 - # If we have ksh, try running configure again with it.
13281 - ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
13282 - export ORIGINAL_CONFIG_SHELL
13283 - CONFIG_SHELL=/bin/ksh
13284 - export CONFIG_SHELL
13285 - exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
13287 - # Try using printf.
13288 - echo='printf %s\n'
13289 - if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
13290 - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
13291 - test "X$echo_testing_string" = "X$echo_test_string"; then
13292 - # Cool, printf works
13294 - elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
13295 - test "X$echo_testing_string" = 'X\t' &&
13296 - echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
13297 - test "X$echo_testing_string" = "X$echo_test_string"; then
13298 - CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
13299 - export CONFIG_SHELL
13300 - SHELL="$CONFIG_SHELL"
13302 - echo="$CONFIG_SHELL [$]0 --fallback-echo"
13303 - elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
13304 - test "X$echo_testing_string" = 'X\t' &&
13305 - echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
13306 - test "X$echo_testing_string" = "X$echo_test_string"; then
13307 - echo="$CONFIG_SHELL [$]0 --fallback-echo"
13309 - # maybe with a smaller string...
13312 - for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
13313 - if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
13319 +# _LT_TAGVAR(VARNAME, [TAGNAME])
13320 +# ------------------------------
13321 +m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
13323 - if test "$prev" != 'sed 50q "[$]0"'; then
13324 - echo_test_string=`eval $prev`
13325 - export echo_test_string
13326 - exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
13328 - # Oops. We lost completely, so just stick with echo.
13337 -# Copy echo and quote the copy suitably for passing to libtool from
13338 -# the Makefile, instead of quoting the original, which is used later.
13340 -if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
13341 - ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
13343 +# _LT_CONFIG_COMMANDS
13344 +# -------------------
13345 +# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
13346 +# variables for single and double quote escaping we saved from calls
13347 +# to _LT_DECL, we can put quote escaped variables declarations
13348 +# into `config.status', and then the shell code to quote escape them in
13349 +# for loops in `config.status'. Finally, any additional code accumulated
13350 +# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
13351 +m4_defun([_LT_CONFIG_COMMANDS],
13352 +[AC_PROVIDE_IFELSE([LT_OUTPUT],
13353 + dnl If the libtool generation code has been placed in $CONFIG_LT,
13354 + dnl instead of duplicating it all over again into config.status,
13355 + dnl then we will have config.status run $CONFIG_LT later, so it
13356 + dnl needs to know what name is stored there:
13357 + [AC_CONFIG_COMMANDS([libtool],
13358 + [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
13359 + dnl If the libtool generation code is destined for config.status,
13360 + dnl expand the accumulated commands and init code now:
13361 + [AC_CONFIG_COMMANDS([libtool],
13362 + [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
13363 +])#_LT_CONFIG_COMMANDS
13366 -])])# _LT_AC_PROG_ECHO_BACKSLASH
13369 +m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
13374 -AC_DEFUN([_LT_AC_LOCK],
13375 -[AC_ARG_ENABLE([libtool-lock],
13376 - [AC_HELP_STRING([--disable-libtool-lock],
13377 - [avoid locking (might break parallel builds)])])
13378 -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13379 +# The HP-UX ksh and POSIX shell print the target directory to stdout
13380 +# if CDPATH is set.
13381 +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13383 -# Some flags need to be propagated to the compiler or linker for good
13384 -# libtool support.
13387 - # Find out which ABI we are using.
13388 - echo 'int i;' > conftest.$ac_ext
13389 - if AC_TRY_EVAL(ac_compile); then
13390 - case `/usr/bin/file conftest.$ac_objext` in
13392 - HPUX_IA64_MODE="32"
13393 +sed_quote_subst='$sed_quote_subst'
13394 +double_quote_subst='$double_quote_subst'
13395 +delay_variable_subst='$delay_variable_subst'
13396 +_LT_CONFIG_STATUS_DECLARATIONS
13398 +LTCFLAGS='$LTCFLAGS'
13399 +compiler='$compiler_DEFAULT'
13401 +# Quote evaled strings.
13402 +for var in lt_decl_all_varnames([[ \
13403 +]], lt_decl_quote_varnames); do
13404 + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13405 + *[[\\\\\\\`\\"\\\$]]*)
13406 + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13409 - HPUX_IA64_MODE="64"
13411 + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13418 - # Find out which ABI we are using.
13419 - echo '[#]line __oline__ "configure"' > conftest.$ac_ext
13420 - if AC_TRY_EVAL(ac_compile); then
13421 - if test "$lt_cv_prog_gnu_ld" = yes; then
13422 - case `/usr/bin/file conftest.$ac_objext` in
13424 - LD="${LD-ld} -melf32bsmip"
13427 - LD="${LD-ld} -melf32bmipn32"
13430 +# Double-quote double-evaled strings.
13431 +for var in lt_decl_all_varnames([[ \
13432 +]], lt_decl_dquote_varnames); do
13433 + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13434 + *[[\\\\\\\`\\"\\\$]]*)
13435 + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13438 - LD="${LD-ld} -melf64bmip"
13440 + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13444 - case `/usr/bin/file conftest.$ac_objext` in
13446 - LD="${LD-ld} -32"
13449 - LD="${LD-ld} -n32"
13452 - LD="${LD-ld} -64"
13460 -x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
13461 -s390*-*linux*|sparc*-*linux*)
13462 - # Find out which ABI we are using.
13463 - echo 'int i;' > conftest.$ac_ext
13464 - if AC_TRY_EVAL(ac_compile); then
13465 - case `/usr/bin/file conftest.o` in
13468 - x86_64-*kfreebsd*-gnu)
13469 - LD="${LD-ld} -m elf_i386_fbsd"
13472 - LD="${LD-ld} -m elf_i386"
13474 - ppc64-*linux*|powerpc64-*linux*)
13475 - LD="${LD-ld} -m elf32ppclinux"
13478 - LD="${LD-ld} -m elf_s390"
13481 - LD="${LD-ld} -m elf32_sparc"
13487 - x86_64-*kfreebsd*-gnu)
13488 - LD="${LD-ld} -m elf_x86_64_fbsd"
13491 - LD="${LD-ld} -m elf_x86_64"
13493 - ppc*-*linux*|powerpc*-*linux*)
13494 - LD="${LD-ld} -m elf64ppc"
13497 - LD="${LD-ld} -m elf64_s390"
13500 - LD="${LD-ld} -m elf64_sparc"
13510 - # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13511 - SAVE_CFLAGS="$CFLAGS"
13512 - CFLAGS="$CFLAGS -belf"
13513 - AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
13515 - AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
13517 - if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13518 - # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13519 - CFLAGS="$SAVE_CFLAGS"
13523 - # Find out which ABI we are using.
13524 - echo 'int i;' > conftest.$ac_ext
13525 - if AC_TRY_EVAL(ac_compile); then
13526 - case `/usr/bin/file conftest.o` in
13528 - case $lt_cv_prog_gnu_ld in
13529 - yes*) LD="${LD-ld} -m elf64_sparc" ;;
13530 - *) LD="${LD-ld} -64" ;;
13539 -AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
13540 -[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
13541 - AC_CHECK_TOOL(DLLTOOL, dlltool, false)
13542 - AC_CHECK_TOOL(AS, as, false)
13543 - AC_CHECK_TOOL(OBJDUMP, objdump, false)
13544 +# Fix-up fallback echo if it was mangled by the above quoting rules.
13546 +*'\\\[$]0 --fallback-echo"')dnl "
13547 + lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
13552 -need_locks="$enable_libtool_lock"
13553 +_LT_OUTPUT_LIBTOOL_INIT
13560 +# This macro allows early generation of the libtool script (before
13561 +# AC_OUTPUT is called), incase it is used in configure for compilation
13563 +AC_DEFUN([LT_OUTPUT],
13564 +[: ${CONFIG_LT=./config.lt}
13565 +AC_MSG_NOTICE([creating $CONFIG_LT])
13566 +cat >"$CONFIG_LT" <<_LTEOF
13568 +# Generated by $as_me.
13569 +# Run this file to recreate a libtool stub with the current configuration.
13571 +lt_cl_silent=false
13572 +SHELL=\${CONFIG_SHELL-$SHELL}
13575 +cat >>"$CONFIG_LT" <<\_LTEOF
13579 -# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
13580 -# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
13581 -# ----------------------------------------------------------------
13582 -# Check whether the given compiler option works
13583 -AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
13584 -[AC_REQUIRE([LT_AC_PROG_SED])
13585 -AC_CACHE_CHECK([$1], [$2],
13587 - ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
13588 - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13589 - lt_compiler_flag="$3"
13590 - # Insert the option either (1) after the last *FLAGS variable, or
13591 - # (2) before a word containing "conftest.", or (3) at the end.
13592 - # Note that $ac_compile itself does not contain backslashes and begins
13593 - # with a dollar sign (not a hyphen), so the echo should work correctly.
13594 - # The option is referenced via a variable to avoid confusing sed.
13595 - lt_compile=`echo "$ac_compile" | $SED \
13596 - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13597 - -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
13598 - -e 's:$: $lt_compiler_flag:'`
13599 - (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
13600 - (eval "$lt_compile" 2>conftest.err)
13602 - cat conftest.err >&AS_MESSAGE_LOG_FD
13603 - echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
13604 - if (exit $ac_status) && test -s "$ac_outfile"; then
13605 - # The compiler can only warn and ignore the option if not recognized
13606 - # So say no if there are warnings other than the usual output.
13607 - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13608 - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13609 - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13615 +exec AS_MESSAGE_FD>&1
13616 +exec AS_MESSAGE_LOG_FD>>config.log
13619 + AS_BOX([Running $as_me.])
13620 +} >&AS_MESSAGE_LOG_FD
13623 +\`$as_me' creates a local libtool stub from the current configuration,
13624 +for use in further configure time tests before the real libtool is
13627 +Usage: $[0] [[OPTIONS]]
13629 + -h, --help print this help, then exit
13630 + -V, --version print version number, then exit
13631 + -q, --quiet do not print progress messages
13632 + -d, --debug don't remove temporary files
13634 +Report bugs to <bug-libtool@gnu.org>."
13637 +m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
13638 +m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
13639 +configured by $[0], generated by m4_PACKAGE_STRING.
13641 +Copyright (C) 2008 Free Software Foundation, Inc.
13642 +This config.lt script is free software; the Free Software Foundation
13643 +gives unlimited permision to copy, distribute and modify it."
13645 -if test x"[$]$2" = xyes; then
13646 - ifelse([$5], , :, [$5])
13648 - ifelse([$6], , :, [$6])
13650 -])# AC_LIBTOOL_COMPILER_OPTION
13651 +while test $[#] != 0
13654 + --version | --v* | -V )
13655 + echo "$lt_cl_version"; exit 0 ;;
13656 + --help | --h* | -h )
13657 + echo "$lt_cl_help"; exit 0 ;;
13658 + --debug | --d* | -d )
13660 + --quiet | --q* | --silent | --s* | -q )
13661 + lt_cl_silent=: ;;
13663 + -*) AC_MSG_ERROR([unrecognized option: $[1]
13664 +Try \`$[0] --help' for more information.]) ;;
13666 -# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
13667 -# [ACTION-SUCCESS], [ACTION-FAILURE])
13668 -# ------------------------------------------------------------
13669 -# Check whether the given compiler option works
13670 -AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
13671 -[AC_REQUIRE([LT_AC_PROG_SED])dnl
13672 -AC_CACHE_CHECK([$1], [$2],
13674 - save_LDFLAGS="$LDFLAGS"
13675 - LDFLAGS="$LDFLAGS $3"
13676 - echo "$lt_simple_link_test_code" > conftest.$ac_ext
13677 - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13678 - # The linker can only warn and ignore the option if not recognized
13679 - # So say no if there are warnings
13680 - if test -s conftest.err; then
13681 - # Append any errors to the config.log.
13682 - cat conftest.err 1>&AS_MESSAGE_LOG_FD
13683 - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13684 - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13685 - if diff conftest.exp conftest.er2 >/dev/null; then
13693 - LDFLAGS="$save_LDFLAGS"
13695 + *) AC_MSG_ERROR([unrecognized argument: $[1]
13696 +Try \`$[0] --help' for more information.]) ;;
13701 -if test x"[$]$2" = xyes; then
13702 - ifelse([$4], , :, [$4])
13704 - ifelse([$5], , :, [$5])
13705 +if $lt_cl_silent; then
13706 + exec AS_MESSAGE_FD>/dev/null
13708 -])# AC_LIBTOOL_LINKER_OPTION
13711 +cat >>"$CONFIG_LT" <<_LTEOF
13712 +_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
13715 +cat >>"$CONFIG_LT" <<\_LTEOF
13716 +AC_MSG_NOTICE([creating $ofile])
13717 +_LT_OUTPUT_LIBTOOL_COMMANDS
13720 +chmod +x "$CONFIG_LT"
13722 +# configure is writing to config.log, but config.lt does its own redirection,
13723 +# appending to config.log, which fails on DOS, as config.log is still kept
13724 +# open by configure. Here we exec the FD to /dev/null, effectively closing
13725 +# config.log, so it can be properly (re)opened and appended to by config.lt.
13726 +if test "$no_create" != yes; then
13728 + test "$silent" = yes &&
13729 + lt_config_lt_args="$lt_config_lt_args --quiet"
13730 + exec AS_MESSAGE_LOG_FD>/dev/null
13731 + $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
13732 + exec AS_MESSAGE_LOG_FD>>config.log
13733 + $lt_cl_success || AS_EXIT(1)
13737 -# AC_LIBTOOL_SYS_MAX_CMD_LEN
13738 -# --------------------------
13739 -AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
13740 -[# find the maximum length of command line arguments
13741 -AC_MSG_CHECKING([the maximum length of command line arguments])
13742 -AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
13744 - teststring="ABCD"
13746 - case $build_os in
13748 - # On DJGPP, this test can blow up pretty badly due to problems in libc
13749 - # (any single argument exceeding 2000 bytes causes a buffer overrun
13750 - # during glob expansion). Even if it were fixed, the result of this
13751 - # check would be larger than it should be.
13752 - lt_cv_sys_max_cmd_len=12288; # 12K is about right
13756 +# If TAG is the built-in tag, create an initial libtool script with a
13757 +# default configuration from the untagged config vars. Otherwise add code
13758 +# to config.status for appending the configuration named by TAG from the
13759 +# matching tagged config vars.
13760 +m4_defun([_LT_CONFIG],
13761 +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
13762 +_LT_CONFIG_SAVE_COMMANDS([
13763 + m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
13764 + m4_if(_LT_TAG, [C], [
13765 + # See if we are running on zsh, and set the options which allow our
13766 + # commands through without removal of \ escapes.
13767 + if test -n "${ZSH_VERSION+set}" ; then
13768 + setopt NO_GLOB_SUBST
13772 - # Under GNU Hurd, this test is not required because there is
13773 - # no limit to the length of command line arguments.
13774 - # Libtool will interpret -1 as no limit whatsoever
13775 - lt_cv_sys_max_cmd_len=-1;
13777 + cfgfile="${ofile}T"
13778 + trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13781 - cygwin* | mingw*)
13782 - # On Win9x/ME, this test blows up -- it succeeds, but takes
13783 - # about 5 minutes as the teststring grows exponentially.
13784 - # Worse, since 9x/ME are not pre-emptively multitasking,
13785 - # you end up with a "frozen" computer, even though with patience
13786 - # the test eventually succeeds (with a max line length of 256k).
13787 - # Instead, let's just punt: use the minimum linelength reported by
13788 - # all of the supported platforms: 8192 (on NT/2K/XP).
13789 - lt_cv_sys_max_cmd_len=8192;
13791 + cat <<_LT_EOF >> "$cfgfile"
13795 - # On AmigaOS with pdksh, this test takes hours, literally.
13796 - # So we just punt and use a minimum line length of 8192.
13797 - lt_cv_sys_max_cmd_len=8192;
13799 +# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13800 +# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13801 +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13802 +# NOTE: Changes made to this file will be lost: look at ltmain.sh.
13807 - netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13808 - # This has been around since 386BSD, at least. Likely further.
13809 - if test -x /sbin/sysctl; then
13810 - lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13811 - elif test -x /usr/sbin/sysctl; then
13812 - lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13814 - lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
13816 - # And add a safety zone
13817 - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13818 - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13820 +# ### BEGIN LIBTOOL CONFIG
13821 +_LT_LIBTOOL_CONFIG_VARS
13822 +_LT_LIBTOOL_TAG_VARS
13823 +# ### END LIBTOOL CONFIG
13826 - # We know the value 262144 and hardcode it with a safety zone (like BSD)
13827 - lt_cv_sys_max_cmd_len=196608
13832 - # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13833 - # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13834 - # nice to cause kernel panics so lets avoid the loop below.
13835 - # First set a reasonable default.
13836 - lt_cv_sys_max_cmd_len=16384
13838 - if test -x /sbin/sysconfig; then
13839 - case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13840 - *1*) lt_cv_sys_max_cmd_len=-1 ;;
13845 - lt_cv_sys_max_cmd_len=102400
13847 - sysv5* | sco5v6* | sysv4.2uw2*)
13848 - kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13849 - if test -n "$kargmax"; then
13850 - lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
13852 - lt_cv_sys_max_cmd_len=32768
13856 - lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
13857 - if test -n "$lt_cv_sys_max_cmd_len"; then
13858 - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13859 - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13861 - SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13862 - while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
13863 - = "XX$teststring") >/dev/null 2>&1 &&
13864 - new_result=`expr "X$teststring" : ".*" 2>&1` &&
13865 - lt_cv_sys_max_cmd_len=$new_result &&
13866 - test $i != 17 # 1/2 MB should be enough
13869 - teststring=$teststring$teststring
13872 - # Add a significant safety factor because C++ compilers can tack on massive
13873 - # amounts of additional arguments before passing them to the linker.
13874 - # It appears as though 1/2 is a usable value.
13875 - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13879 + cat <<\_LT_EOF >> "$cfgfile"
13880 +# AIX sometimes has problems with the GCC collect2 program. For some
13881 +# reason, if we set the COLLECT_NAMES environment variable, the problems
13882 +# vanish in a puff of smoke.
13883 +if test "X${COLLECT_NAMES+set}" != Xset; then
13885 + export COLLECT_NAMES
13891 -if test -n $lt_cv_sys_max_cmd_len ; then
13892 - AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
13894 - AC_MSG_RESULT(none)
13896 -])# AC_LIBTOOL_SYS_MAX_CMD_LEN
13900 -# _LT_AC_CHECK_DLFCN
13901 -# ------------------
13902 -AC_DEFUN([_LT_AC_CHECK_DLFCN],
13903 -[AC_CHECK_HEADERS(dlfcn.h)dnl
13904 -])# _LT_AC_CHECK_DLFCN
13905 + # We use sed instead of cat because bash on DJGPP gets confused if
13906 + # if finds mixed CR/LF and LF-only lines. Since sed operates in
13907 + # text mode, it properly converts lines to CR/LF. This bash problem
13908 + # is reportedly fixed, but why not run on old versions too?
13909 + sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13910 + || (rm -f "$cfgfile"; exit 1)
13912 + _LT_PROG_XSI_SHELLFNS
13914 -# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
13915 -# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
13916 -# ---------------------------------------------------------------------
13917 -AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
13918 -[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
13919 -if test "$cross_compiling" = yes; then :
13922 - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13923 - lt_status=$lt_dlunknown
13924 - cat > conftest.$ac_ext <<EOF
13925 -[#line __oline__ "configure"
13926 -#include "confdefs.h"
13927 + sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13928 + || (rm -f "$cfgfile"; exit 1)
13931 -#include <dlfcn.h>
13933 + mv -f "$cfgfile" "$ofile" ||
13934 + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13935 + chmod +x "$ofile"
13937 +[cat <<_LT_EOF >> "$ofile"
13939 -#include <stdio.h>
13940 +dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
13941 +dnl in a comment (ie after a #).
13942 +# ### BEGIN LIBTOOL TAG CONFIG: $1
13943 +_LT_LIBTOOL_TAG_VARS(_LT_TAG)
13944 +# ### END LIBTOOL TAG CONFIG: $1
13948 +[m4_if([$1], [], [
13949 + PACKAGE='$PACKAGE'
13950 + VERSION='$VERSION'
13951 + TIMESTAMP='$TIMESTAMP'
13953 + ofile='$ofile'], [])
13954 +])dnl /_LT_CONFIG_SAVE_COMMANDS
13958 +# LT_SUPPORTED_TAG(TAG)
13959 +# ---------------------
13960 +# Trace this macro to discover what tags are supported by the libtool
13961 +# --tag option, using:
13962 +# autoconf --trace 'LT_SUPPORTED_TAG:$1'
13963 +AC_DEFUN([LT_SUPPORTED_TAG], [])
13966 +# C support is built-in for now
13967 +m4_define([_LT_LANG_C_enabled], [])
13968 +m4_define([_LT_TAGS], [])
13970 -#ifdef RTLD_GLOBAL
13971 -# define LT_DLGLOBAL RTLD_GLOBAL
13974 -# define LT_DLGLOBAL DL_GLOBAL
13976 -# define LT_DLGLOBAL 0
13980 -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13981 - find out it does not work in some platform. */
13982 -#ifndef LT_DLLAZY_OR_NOW
13984 -# define LT_DLLAZY_OR_NOW RTLD_LAZY
13987 -# define LT_DLLAZY_OR_NOW DL_LAZY
13990 -# define LT_DLLAZY_OR_NOW RTLD_NOW
13993 -# define LT_DLLAZY_OR_NOW DL_NOW
13995 -# define LT_DLLAZY_OR_NOW 0
14003 +# Enable libtool support for the given language if not already enabled.
14004 +AC_DEFUN([LT_LANG],
14005 +[AC_BEFORE([$0], [LT_OUTPUT])dnl
14007 + [C], [_LT_LANG(C)],
14008 + [C++], [_LT_LANG(CXX)],
14009 + [Java], [_LT_LANG(GCJ)],
14010 + [Fortran 77], [_LT_LANG(F77)],
14011 + [Fortran], [_LT_LANG(FC)],
14012 + [Windows Resource], [_LT_LANG(RC)],
14013 + [m4_ifdef([_LT_LANG_]$1[_CONFIG],
14015 + [m4_fatal([$0: unsupported language: "$1"])])])dnl
14018 -#ifdef __cplusplus
14019 -extern "C" void exit (int);
14022 -void fnord() { int i=42;}
14025 - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14026 - int status = $lt_dlunknown;
14027 +# _LT_LANG(LANGNAME)
14028 +# ------------------
14029 +m4_defun([_LT_LANG],
14030 +[m4_ifdef([_LT_LANG_]$1[_enabled], [],
14031 + [LT_SUPPORTED_TAG([$1])dnl
14032 + m4_append([_LT_TAGS], [$1 ])dnl
14033 + m4_define([_LT_LANG_]$1[_enabled], [])dnl
14034 + _LT_LANG_$1_CONFIG($1)])dnl
14039 - if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14040 - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14041 - /* dlclose (self); */
14044 - puts (dlerror ());
14049 - if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
14050 - (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
14052 - case x$lt_status in
14053 - x$lt_dlno_uscore) $1 ;;
14054 - x$lt_dlneed_uscore) $2 ;;
14055 - x$lt_dlunknown|x*) $3 ;;
14058 - # compilation failed
14063 -])# _LT_AC_TRY_DLOPEN_SELF
14064 +# _LT_LANG_DEFAULT_CONFIG
14065 +# -----------------------
14066 +m4_defun([_LT_LANG_DEFAULT_CONFIG],
14067 +[AC_PROVIDE_IFELSE([AC_PROG_CXX],
14069 + [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
14071 +AC_PROVIDE_IFELSE([AC_PROG_F77],
14073 + [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
14075 +AC_PROVIDE_IFELSE([AC_PROG_FC],
14077 + [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
14079 +dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
14080 +dnl pulling things in needlessly.
14081 +AC_PROVIDE_IFELSE([AC_PROG_GCJ],
14083 + [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
14085 + [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
14087 + [m4_ifdef([AC_PROG_GCJ],
14088 + [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
14089 + m4_ifdef([A][M_PROG_GCJ],
14090 + [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
14091 + m4_ifdef([LT_PROG_GCJ],
14092 + [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
14094 +AC_PROVIDE_IFELSE([LT_PROG_RC],
14096 + [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
14097 +])# _LT_LANG_DEFAULT_CONFIG
14099 +# Obsolete macros:
14100 +AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
14101 +AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
14102 +AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
14103 +AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
14104 +dnl aclocal-1.4 backwards compatibility:
14105 +dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
14106 +dnl AC_DEFUN([AC_LIBTOOL_F77], [])
14107 +dnl AC_DEFUN([AC_LIBTOOL_FC], [])
14108 +dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
14111 -# AC_LIBTOOL_DLOPEN_SELF
14112 -# ----------------------
14113 -AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
14114 -[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
14115 -if test "x$enable_dlopen" != xyes; then
14116 - enable_dlopen=unknown
14117 - enable_dlopen_self=unknown
14118 - enable_dlopen_self_static=unknown
14121 - lt_cv_dlopen_libs=
14122 +# _LT_TAG_COMPILER
14123 +# ----------------
14124 +m4_defun([_LT_TAG_COMPILER],
14125 +[AC_REQUIRE([AC_PROG_CC])dnl
14129 - lt_cv_dlopen="load_add_on"
14130 - lt_cv_dlopen_libs=
14131 - lt_cv_dlopen_self=yes
14133 +_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
14134 +_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
14135 +_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
14136 +_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
14139 - lt_cv_dlopen="LoadLibrary"
14140 - lt_cv_dlopen_libs=
14142 +# If no C compiler was specified, use CC.
14143 +LTCC=${LTCC-"$CC"}
14146 - lt_cv_dlopen="dlopen"
14147 - lt_cv_dlopen_libs=
14149 +# If no C compiler flags were specified, use CFLAGS.
14150 +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14153 - # if libdl is installed we need to link against it
14154 - AC_CHECK_LIB([dl], [dlopen],
14155 - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
14156 - lt_cv_dlopen="dyld"
14157 - lt_cv_dlopen_libs=
14158 - lt_cv_dlopen_self=yes
14161 +# Allow CC to be a program name with arguments.
14163 +])# _LT_TAG_COMPILER
14166 - AC_CHECK_FUNC([shl_load],
14167 - [lt_cv_dlopen="shl_load"],
14168 - [AC_CHECK_LIB([dld], [shl_load],
14169 - [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
14170 - [AC_CHECK_FUNC([dlopen],
14171 - [lt_cv_dlopen="dlopen"],
14172 - [AC_CHECK_LIB([dl], [dlopen],
14173 - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
14174 - [AC_CHECK_LIB([svld], [dlopen],
14175 - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
14176 - [AC_CHECK_LIB([dld], [dld_link],
14177 - [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
14184 +# _LT_COMPILER_BOILERPLATE
14185 +# ------------------------
14186 +# Check for compiler boilerplate output or warnings with
14187 +# the simple compiler test code.
14188 +m4_defun([_LT_COMPILER_BOILERPLATE],
14189 +[m4_require([_LT_DECL_SED])dnl
14190 +ac_outfile=conftest.$ac_objext
14191 +echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14192 +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14193 +_lt_compiler_boilerplate=`cat conftest.err`
14195 +])# _LT_COMPILER_BOILERPLATE
14198 +# _LT_LINKER_BOILERPLATE
14199 +# ----------------------
14200 +# Check for linker boilerplate output or warnings with
14201 +# the simple link test code.
14202 +m4_defun([_LT_LINKER_BOILERPLATE],
14203 +[m4_require([_LT_DECL_SED])dnl
14204 +ac_outfile=conftest.$ac_objext
14205 +echo "$lt_simple_link_test_code" >conftest.$ac_ext
14206 +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14207 +_lt_linker_boilerplate=`cat conftest.err`
14209 +])# _LT_LINKER_BOILERPLATE
14211 +# _LT_REQUIRED_DARWIN_CHECKS
14212 +# -------------------------
14213 +m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
14215 + rhapsody* | darwin*)
14216 + AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
14217 + AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
14218 + AC_CHECK_TOOL([LIPO], [lipo], [:])
14219 + AC_CHECK_TOOL([OTOOL], [otool], [:])
14220 + AC_CHECK_TOOL([OTOOL64], [otool64], [:])
14221 + _LT_DECL([], [DSYMUTIL], [1],
14222 + [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
14223 + _LT_DECL([], [NMEDIT], [1],
14224 + [Tool to change global to local symbols on Mac OS X])
14225 + _LT_DECL([], [LIPO], [1],
14226 + [Tool to manipulate fat objects and archives on Mac OS X])
14227 + _LT_DECL([], [OTOOL], [1],
14228 + [ldd/readelf like tool for Mach-O binaries on Mac OS X])
14229 + _LT_DECL([], [OTOOL64], [1],
14230 + [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
14232 + AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
14233 + [lt_cv_apple_cc_single_mod=no
14234 + if test -z "${LT_MULTI_MODULE}"; then
14235 + # By default we will add the -single_module flag. You can override
14236 + # by either setting the environment variable LT_MULTI_MODULE
14237 + # non-empty at configure time, or by adding -multi_module to the
14239 + rm -rf libconftest.dylib*
14240 + echo "int foo(void){return 1;}" > conftest.c
14241 + echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14242 +-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
14243 + $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14244 + -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14246 + if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14247 + lt_cv_apple_cc_single_mod=yes
14249 + cat conftest.err >&AS_MESSAGE_LOG_FD
14251 + rm -rf libconftest.dylib*
14254 + AC_CACHE_CHECK([for -exported_symbols_list linker flag],
14255 + [lt_cv_ld_exported_symbols_list],
14256 + [lt_cv_ld_exported_symbols_list=no
14257 + save_LDFLAGS=$LDFLAGS
14258 + echo "_main" > conftest.sym
14259 + LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14260 + AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
14261 + [lt_cv_ld_exported_symbols_list=yes],
14262 + [lt_cv_ld_exported_symbols_list=no])
14263 + LDFLAGS="$save_LDFLAGS"
14266 + rhapsody* | darwin1.[[012]])
14267 + _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14269 + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14270 + darwin*) # darwin 5.x on
14271 + # if running on 10.5 or later, the deployment target defaults
14272 + # to the OS version, if on x86, and 10.4, the deployment
14273 + # target defaults to 10.4. Don't you love it?
14274 + case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14275 + 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
14276 + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14278 + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14280 + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14284 + if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14285 + _lt_dar_single_mod='$single_module'
14287 + if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14288 + _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14290 + _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14292 + if test "$DSYMUTIL" != ":"; then
14293 + _lt_dsymutil='~$DSYMUTIL $lib || :'
14301 - if test "x$lt_cv_dlopen" != xno; then
14302 - enable_dlopen=yes
14304 +# _LT_DARWIN_LINKER_FEATURES
14305 +# --------------------------
14306 +# Checks for linker and compiler features on darwin
14307 +m4_defun([_LT_DARWIN_LINKER_FEATURES],
14309 + m4_require([_LT_REQUIRED_DARWIN_CHECKS])
14310 + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
14311 + _LT_TAGVAR(hardcode_direct, $1)=no
14312 + _LT_TAGVAR(hardcode_automatic, $1)=yes
14313 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
14314 + _LT_TAGVAR(whole_archive_flag_spec, $1)=''
14315 + _LT_TAGVAR(link_all_deplibs, $1)=yes
14316 + _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
14317 + if test "$GCC" = "yes"; then
14318 + output_verbose_link_cmd=echo
14319 + _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}"
14320 + _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14321 + _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}"
14322 + _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}"
14323 + m4_if([$1], [CXX],
14324 +[ if test "$lt_cv_apple_cc_single_mod" != "yes"; then
14325 + _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}"
14326 + _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}"
14331 + _LT_TAGVAR(ld_shlibs, $1)=no
14335 - case $lt_cv_dlopen in
14337 - save_CPPFLAGS="$CPPFLAGS"
14338 - test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14339 +# _LT_SYS_MODULE_PATH_AIX
14340 +# -----------------------
14341 +# Links a minimal program and checks the executable
14342 +# for the system default hardcoded library path. In most cases,
14343 +# this is /usr/lib:/lib, but when the MPI compilers are used
14344 +# the location of the communication and MPI libs are included too.
14345 +# If we don't find anything, use the default library path according
14346 +# to the aix ld manual.
14347 +m4_defun([_LT_SYS_MODULE_PATH_AIX],
14348 +[m4_require([_LT_DECL_SED])dnl
14349 +AC_LINK_IFELSE(AC_LANG_PROGRAM,[
14350 +lt_aix_libpath_sed='
14351 + /Import File Strings/,/^$/ {
14353 + s/^0 *\(.*\)$/\1/
14357 +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14358 +# Check for a 64-bit object if we didn't find anything.
14359 +if test -z "$aix_libpath"; then
14360 + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14362 +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14363 +])# _LT_SYS_MODULE_PATH_AIX
14365 - save_LDFLAGS="$LDFLAGS"
14366 - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14368 - save_LIBS="$LIBS"
14369 - LIBS="$lt_cv_dlopen_libs $LIBS"
14370 +# _LT_SHELL_INIT(ARG)
14371 +# -------------------
14372 +m4_define([_LT_SHELL_INIT],
14373 +[ifdef([AC_DIVERSION_NOTICE],
14374 + [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
14375 + [AC_DIVERT_PUSH(NOTICE)])
14378 +])# _LT_SHELL_INIT
14380 - AC_CACHE_CHECK([whether a program can dlopen itself],
14381 - lt_cv_dlopen_self, [dnl
14382 - _LT_AC_TRY_DLOPEN_SELF(
14383 - lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
14384 - lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
14387 - if test "x$lt_cv_dlopen_self" = xyes; then
14388 - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14389 - AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
14390 - lt_cv_dlopen_self_static, [dnl
14391 - _LT_AC_TRY_DLOPEN_SELF(
14392 - lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
14393 - lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
14396 +# _LT_PROG_ECHO_BACKSLASH
14397 +# -----------------------
14398 +# Add some code to the start of the generated configure script which
14399 +# will find an echo command which doesn't interpret backslashes.
14400 +m4_defun([_LT_PROG_ECHO_BACKSLASH],
14402 +# Check that we are running under the correct shell.
14403 +SHELL=${CONFIG_SHELL-/bin/sh}
14405 - CPPFLAGS="$save_CPPFLAGS"
14406 - LDFLAGS="$save_LDFLAGS"
14407 - LIBS="$save_LIBS"
14411 +X*--fallback-echo)
14412 + # Remove one level of quotation (which was required for Make).
14413 + ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
14417 - case $lt_cv_dlopen_self in
14418 - yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14419 - *) enable_dlopen_self=unknown ;;
14421 +ECHO=${lt_ECHO-echo}
14422 +if test "X[$]1" = X--no-reexec; then
14423 + # Discard the --no-reexec flag, and continue.
14425 +elif test "X[$]1" = X--fallback-echo; then
14426 + # Avoid inline document here, it may be left over
14428 +elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
14429 + # Yippee, $ECHO works!
14432 + # Restart under the correct shell.
14433 + exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
14436 - case $lt_cv_dlopen_self_static in
14437 - yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14438 - *) enable_dlopen_self_static=unknown ;;
14440 +if test "X[$]1" = X--fallback-echo; then
14441 + # used as fallback echo
14448 -])# AC_LIBTOOL_DLOPEN_SELF
14450 +# The HP-UX ksh and POSIX shell print the target directory to stdout
14451 +# if CDPATH is set.
14452 +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14454 -# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
14455 -# ---------------------------------
14456 -# Check to see if options -c and -o are simultaneously supported by compiler
14457 -AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
14458 -[AC_REQUIRE([LT_AC_PROG_SED])dnl
14459 -AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
14460 -AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
14461 - [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
14462 - [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
14463 - $rm -r conftest 2>/dev/null
14467 - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14468 +if test -z "$lt_ECHO"; then
14469 + if test "X${echo_test_string+set}" != Xset; then
14470 + # find a string as large as possible, as long as the shell can cope with it
14471 + for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
14472 + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
14473 + if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
14474 + { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
14481 - lt_compiler_flag="-o out/conftest2.$ac_objext"
14482 + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
14483 + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
14484 + test "X$echo_testing_string" = "X$echo_test_string"; then
14487 + # The Solaris, AIX, and Digital Unix default echo programs unquote
14488 + # backslashes. This makes it impossible to quote backslashes using
14489 + # echo "$something" | sed 's/\\/\\\\/g'
14491 + # So, first we look for a working echo in the user's PATH.
14493 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14494 + for dir in $PATH /usr/ucb; do
14495 + IFS="$lt_save_ifs"
14496 + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
14497 + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
14498 + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
14499 + test "X$echo_testing_string" = "X$echo_test_string"; then
14504 + IFS="$lt_save_ifs"
14506 + if test "X$ECHO" = Xecho; then
14507 + # We didn't find a better echo, so look for alternatives.
14508 + if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
14509 + echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
14510 + test "X$echo_testing_string" = "X$echo_test_string"; then
14511 + # This shell has a builtin print -r that does the trick.
14513 + elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
14514 + test "X$CONFIG_SHELL" != X/bin/ksh; then
14515 + # If we have ksh, try running configure again with it.
14516 + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
14517 + export ORIGINAL_CONFIG_SHELL
14518 + CONFIG_SHELL=/bin/ksh
14519 + export CONFIG_SHELL
14520 + exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
14522 + # Try using printf.
14523 + ECHO='printf %s\n'
14524 + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
14525 + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
14526 + test "X$echo_testing_string" = "X$echo_test_string"; then
14527 + # Cool, printf works
14529 + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
14530 + test "X$echo_testing_string" = 'X\t' &&
14531 + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
14532 + test "X$echo_testing_string" = "X$echo_test_string"; then
14533 + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
14534 + export CONFIG_SHELL
14535 + SHELL="$CONFIG_SHELL"
14537 + ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
14538 + elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
14539 + test "X$echo_testing_string" = 'X\t' &&
14540 + echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
14541 + test "X$echo_testing_string" = "X$echo_test_string"; then
14542 + ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
14544 + # maybe with a smaller string...
14547 + for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
14548 + if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
14555 + if test "$prev" != 'sed 50q "[$]0"'; then
14556 + echo_test_string=`eval $prev`
14557 + export echo_test_string
14558 + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
14560 + # Oops. We lost completely, so just stick with echo.
14569 +# Copy echo and quote the copy suitably for passing to libtool from
14570 +# the Makefile, instead of quoting the original, which is used later.
14572 +if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
14573 + lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
14578 +_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
14579 +_LT_DECL([], [ECHO], [1],
14580 + [An echo program that does not interpret backslashes])
14581 +])# _LT_PROG_ECHO_BACKSLASH
14586 +m4_defun([_LT_ENABLE_LOCK],
14587 +[AC_ARG_ENABLE([libtool-lock],
14588 + [AS_HELP_STRING([--disable-libtool-lock],
14589 + [avoid locking (might break parallel builds)])])
14590 +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14592 +# Some flags need to be propagated to the compiler or linker for good
14593 +# libtool support.
14596 + # Find out which ABI we are using.
14597 + echo 'int i;' > conftest.$ac_ext
14598 + if AC_TRY_EVAL(ac_compile); then
14599 + case `/usr/bin/file conftest.$ac_objext` in
14601 + HPUX_IA64_MODE="32"
14604 + HPUX_IA64_MODE="64"
14611 + # Find out which ABI we are using.
14612 + echo '[#]line __oline__ "configure"' > conftest.$ac_ext
14613 + if AC_TRY_EVAL(ac_compile); then
14614 + if test "$lt_cv_prog_gnu_ld" = yes; then
14615 + case `/usr/bin/file conftest.$ac_objext` in
14617 + LD="${LD-ld} -melf32bsmip"
14620 + LD="${LD-ld} -melf32bmipn32"
14623 + LD="${LD-ld} -melf64bmip"
14627 + case `/usr/bin/file conftest.$ac_objext` in
14629 + LD="${LD-ld} -32"
14632 + LD="${LD-ld} -n32"
14635 + LD="${LD-ld} -64"
14643 +x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
14644 +s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
14645 + # Find out which ABI we are using.
14646 + echo 'int i;' > conftest.$ac_ext
14647 + if AC_TRY_EVAL(ac_compile); then
14648 + case `/usr/bin/file conftest.o` in
14651 + x86_64-*kfreebsd*-gnu)
14652 + LD="${LD-ld} -m elf_i386_fbsd"
14655 + LD="${LD-ld} -m elf_i386"
14657 + ppc64-*linux*|powerpc64-*linux*)
14658 + LD="${LD-ld} -m elf32ppclinux"
14661 + LD="${LD-ld} -m elf_s390"
14664 + LD="${LD-ld} -m elf32_sparc"
14670 + x86_64-*kfreebsd*-gnu)
14671 + LD="${LD-ld} -m elf_x86_64_fbsd"
14674 + LD="${LD-ld} -m elf_x86_64"
14676 + ppc*-*linux*|powerpc*-*linux*)
14677 + LD="${LD-ld} -m elf64ppc"
14679 + s390*-*linux*|s390*-*tpf*)
14680 + LD="${LD-ld} -m elf64_s390"
14683 + LD="${LD-ld} -m elf64_sparc"
14693 + # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14694 + SAVE_CFLAGS="$CFLAGS"
14695 + CFLAGS="$CFLAGS -belf"
14696 + AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
14698 + AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
14700 + if test x"$lt_cv_cc_needs_belf" != x"yes"; then
14701 + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14702 + CFLAGS="$SAVE_CFLAGS"
14706 + # Find out which ABI we are using.
14707 + echo 'int i;' > conftest.$ac_ext
14708 + if AC_TRY_EVAL(ac_compile); then
14709 + case `/usr/bin/file conftest.o` in
14711 + case $lt_cv_prog_gnu_ld in
14712 + yes*) LD="${LD-ld} -m elf64_sparc" ;;
14714 + if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14715 + LD="${LD-ld} -64"
14726 +need_locks="$enable_libtool_lock"
14727 +])# _LT_ENABLE_LOCK
14730 +# _LT_CMD_OLD_ARCHIVE
14731 +# -------------------
14732 +m4_defun([_LT_CMD_OLD_ARCHIVE],
14733 +[AC_CHECK_TOOL(AR, ar, false)
14734 +test -z "$AR" && AR=ar
14735 +test -z "$AR_FLAGS" && AR_FLAGS=cru
14736 +_LT_DECL([], [AR], [1], [The archiver])
14737 +_LT_DECL([], [AR_FLAGS], [1])
14739 +AC_CHECK_TOOL(STRIP, strip, :)
14740 +test -z "$STRIP" && STRIP=:
14741 +_LT_DECL([], [STRIP], [1], [A symbol stripping program])
14743 +AC_CHECK_TOOL(RANLIB, ranlib, :)
14744 +test -z "$RANLIB" && RANLIB=:
14745 +_LT_DECL([], [RANLIB], [1],
14746 + [Commands used to install an old-style archive])
14748 +# Determine commands to create old-style static archives.
14749 +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
14750 +old_postinstall_cmds='chmod 644 $oldlib'
14751 +old_postuninstall_cmds=
14753 +if test -n "$RANLIB"; then
14756 + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
14759 + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
14762 + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14764 +_LT_DECL([], [old_postinstall_cmds], [2])
14765 +_LT_DECL([], [old_postuninstall_cmds], [2])
14766 +_LT_TAGDECL([], [old_archive_cmds], [2],
14767 + [Commands used to build an old-style archive])
14768 +])# _LT_CMD_OLD_ARCHIVE
14771 +# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
14772 +# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
14773 +# ----------------------------------------------------------------
14774 +# Check whether the given compiler option works
14775 +AC_DEFUN([_LT_COMPILER_OPTION],
14776 +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
14777 +m4_require([_LT_DECL_SED])dnl
14778 +AC_CACHE_CHECK([$1], [$2],
14780 + m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
14781 + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14782 + lt_compiler_flag="$3"
14783 # Insert the option either (1) after the last *FLAGS variable, or
14784 # (2) before a word containing "conftest.", or (3) at the end.
14785 # Note that $ac_compile itself does not contain backslashes and begins
14786 # with a dollar sign (not a hyphen), so the echo should work correctly.
14787 + # The option is referenced via a variable to avoid confusing sed.
14788 lt_compile=`echo "$ac_compile" | $SED \
14789 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14790 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
14791 -e 's:$: $lt_compiler_flag:'`
14792 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
14793 - (eval "$lt_compile" 2>out/conftest.err)
14794 + (eval "$lt_compile" 2>conftest.err)
14796 - cat out/conftest.err >&AS_MESSAGE_LOG_FD
14797 + cat conftest.err >&AS_MESSAGE_LOG_FD
14798 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
14799 - if (exit $ac_status) && test -s out/conftest2.$ac_objext
14801 + if (exit $ac_status) && test -s "$ac_outfile"; then
14802 # The compiler can only warn and ignore the option if not recognized
14803 - # So say no if there are warnings
14804 - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14805 - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14806 - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14807 - _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
14808 + # So say no if there are warnings other than the usual output.
14809 + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14810 + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14811 + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14815 - chmod u+w . 2>&AS_MESSAGE_LOG_FD
14817 - # SGI C++ compiler will create directory out/ii_files/ for
14818 - # template instantiation
14819 - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14820 - $rm out/* && rmdir out
14826 -])# AC_LIBTOOL_PROG_CC_C_O
14829 -# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
14830 -# -----------------------------------------
14831 -# Check to see if we can do hard links to lock some files if needed
14832 -AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
14833 -[AC_REQUIRE([_LT_AC_LOCK])dnl
14835 -hard_links="nottested"
14836 -if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
14837 - # do not overwrite the value of need_locks provided by the user
14838 - AC_MSG_CHECKING([if we can lock with hard links])
14841 - ln conftest.a conftest.b 2>/dev/null && hard_links=no
14843 - ln conftest.a conftest.b 2>&5 || hard_links=no
14844 - ln conftest.a conftest.b 2>/dev/null && hard_links=no
14845 - AC_MSG_RESULT([$hard_links])
14846 - if test "$hard_links" = no; then
14847 - AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
14850 +if test x"[$]$2" = xyes; then
14851 + m4_if([$5], , :, [$5])
14854 + m4_if([$6], , :, [$6])
14856 -])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
14858 +])# _LT_COMPILER_OPTION
14860 -# AC_LIBTOOL_OBJDIR
14861 -# -----------------
14862 -AC_DEFUN([AC_LIBTOOL_OBJDIR],
14863 -[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
14864 -[rm -f .libs 2>/dev/null
14865 -mkdir .libs 2>/dev/null
14866 -if test -d .libs; then
14867 - lt_cv_objdir=.libs
14869 - # MS-DOS does not allow filenames that begin with a dot.
14870 - lt_cv_objdir=_libs
14872 -rmdir .libs 2>/dev/null])
14873 -objdir=$lt_cv_objdir
14874 -])# AC_LIBTOOL_OBJDIR
14876 +AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
14877 +dnl aclocal-1.4 backwards compatibility:
14878 +dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
14881 -# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
14882 -# ----------------------------------------------
14883 -# Check hardcoding attributes.
14884 -AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
14885 -[AC_MSG_CHECKING([how to hardcode library paths into programs])
14886 -_LT_AC_TAGVAR(hardcode_action, $1)=
14887 -if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
14888 - test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
14889 - test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
14890 +# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
14891 +# [ACTION-SUCCESS], [ACTION-FAILURE])
14892 +# ----------------------------------------------------
14893 +# Check whether the given linker option works
14894 +AC_DEFUN([_LT_LINKER_OPTION],
14895 +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
14896 +m4_require([_LT_DECL_SED])dnl
14897 +AC_CACHE_CHECK([$1], [$2],
14899 + save_LDFLAGS="$LDFLAGS"
14900 + LDFLAGS="$LDFLAGS $3"
14901 + echo "$lt_simple_link_test_code" > conftest.$ac_ext
14902 + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14903 + # The linker can only warn and ignore the option if not recognized
14904 + # So say no if there are warnings
14905 + if test -s conftest.err; then
14906 + # Append any errors to the config.log.
14907 + cat conftest.err 1>&AS_MESSAGE_LOG_FD
14908 + $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14909 + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14910 + if diff conftest.exp conftest.er2 >/dev/null; then
14918 + LDFLAGS="$save_LDFLAGS"
14921 - # We can hardcode non-existant directories.
14922 - if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
14923 - # If the only mechanism to avoid hardcoding is shlibpath_var, we
14924 - # have to relink, otherwise we might link with an installed library
14925 - # when we should be linking with a yet-to-be-installed one
14926 - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
14927 - test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
14928 - # Linking always hardcodes the temporary library directory.
14929 - _LT_AC_TAGVAR(hardcode_action, $1)=relink
14931 - # We can link without hardcoding, and we can hardcode nonexisting dirs.
14932 - _LT_AC_TAGVAR(hardcode_action, $1)=immediate
14934 +if test x"[$]$2" = xyes; then
14935 + m4_if([$4], , :, [$4])
14937 - # We cannot hardcode anything, or else we can only hardcode existing
14939 - _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
14940 + m4_if([$5], , :, [$5])
14942 -AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
14943 +])# _LT_LINKER_OPTION
14945 -if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
14946 - # Fast installation is not supported
14947 - enable_fast_install=no
14948 -elif test "$shlibpath_overrides_runpath" = yes ||
14949 - test "$enable_shared" = no; then
14950 - # Fast installation is not necessary
14951 - enable_fast_install=needless
14953 -])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
14955 +AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
14956 +dnl aclocal-1.4 backwards compatibility:
14957 +dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
14960 -# AC_LIBTOOL_SYS_LIB_STRIP
14961 -# ------------------------
14962 -AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
14965 -AC_MSG_CHECKING([whether stripping libraries is possible])
14966 -if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14967 - test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14968 - test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14969 - AC_MSG_RESULT([yes])
14971 -# FIXME - insert some real tests, host_os isn't really good enough
14974 - if test -n "$STRIP" ; then
14975 - striplib="$STRIP -x"
14976 - old_striplib="$STRIP -S"
14977 - AC_MSG_RESULT([yes])
14979 - AC_MSG_RESULT([no])
14983 - AC_MSG_RESULT([no])
14986 +AC_DEFUN([LT_CMD_MAX_LEN],
14987 +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
14988 +# find the maximum length of command line arguments
14989 +AC_MSG_CHECKING([the maximum length of command line arguments])
14990 +AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
14992 + teststring="ABCD"
14994 + case $build_os in
14996 + # On DJGPP, this test can blow up pretty badly due to problems in libc
14997 + # (any single argument exceeding 2000 bytes causes a buffer overrun
14998 + # during glob expansion). Even if it were fixed, the result of this
14999 + # check would be larger than it should be.
15000 + lt_cv_sys_max_cmd_len=12288; # 12K is about right
15004 -])# AC_LIBTOOL_SYS_LIB_STRIP
15007 + # Under GNU Hurd, this test is not required because there is
15008 + # no limit to the length of command line arguments.
15009 + # Libtool will interpret -1 as no limit whatsoever
15010 + lt_cv_sys_max_cmd_len=-1;
15013 -# AC_LIBTOOL_SYS_DYNAMIC_LINKER
15014 -# -----------------------------
15015 -# PORTME Fill in your ld.so characteristics
15016 -AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
15017 -[AC_REQUIRE([LT_AC_PROG_SED])dnl
15018 -AC_MSG_CHECKING([dynamic linker characteristics])
15019 -library_names_spec=
15020 -libname_spec='lib$name'
15024 -postuninstall_cmds=
15028 -shlibpath_overrides_runpath=unknown
15030 -dynamic_linker="$host_os ld.so"
15031 -sys_lib_dlsearch_path_spec="/lib /usr/lib"
15033 -if test "$GCC" = yes; then
15035 - darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
15036 - *) lt_awk_arg="/^libraries:/" ;;
15038 - lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15039 - if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
15040 - # if the path contains ";" then we assume it to be the separator
15041 - # otherwise default to the standard path separator (i.e. ":") - it is
15042 - # assumed that no part of a normal pathname contains ";" but that should
15043 - # okay in the real world where ";" in dirpaths is itself problematic.
15044 - lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
15046 - lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15048 - # Ok, now we have the path, separated by spaces, we can step through it
15049 - # and add multilib dir if necessary.
15050 - lt_tmp_lt_search_path_spec=
15051 - lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
15052 - for lt_sys_path in $lt_search_path_spec; do
15053 - if test -d "$lt_sys_path/$lt_multi_os_dir"; then
15054 - lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
15056 - test -d "$lt_sys_path" && \
15057 - lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
15060 - lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
15061 -BEGIN {RS=" "; FS="/|\n";} {
15064 - for (lt_i = NF; lt_i > 0; lt_i--) {
15065 - if ($lt_i != "" && $lt_i != ".") {
15066 - if ($lt_i == "..") {
15069 - if (lt_count == 0) {
15070 - lt_foo="/" $lt_i lt_foo;
15077 - if (lt_foo != "") { lt_freq[[lt_foo]]++; }
15078 - if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
15080 - sys_lib_search_path_spec=`echo $lt_search_path_spec`
15082 - sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15084 -need_lib_prefix=unknown
15085 -hardcode_into_libs=no
15086 + cygwin* | mingw*)
15087 + # On Win9x/ME, this test blows up -- it succeeds, but takes
15088 + # about 5 minutes as the teststring grows exponentially.
15089 + # Worse, since 9x/ME are not pre-emptively multitasking,
15090 + # you end up with a "frozen" computer, even though with patience
15091 + # the test eventually succeeds (with a max line length of 256k).
15092 + # Instead, let's just punt: use the minimum linelength reported by
15093 + # all of the supported platforms: 8192 (on NT/2K/XP).
15094 + lt_cv_sys_max_cmd_len=8192;
15097 -# when you set need_version to no, make sure it does not cause -set_version
15098 -# flags to be left without arguments
15099 -need_version=unknown
15101 + # On AmigaOS with pdksh, this test takes hours, literally.
15102 + # So we just punt and use a minimum line length of 8192.
15103 + lt_cv_sys_max_cmd_len=8192;
15108 - version_type=linux
15109 - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15110 - shlibpath_var=LIBPATH
15111 + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
15112 + # This has been around since 386BSD, at least. Likely further.
15113 + if test -x /sbin/sysctl; then
15114 + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
15115 + elif test -x /usr/sbin/sysctl; then
15116 + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
15118 + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
15120 + # And add a safety zone
15121 + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
15122 + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
15125 - # AIX 3 has no versioning support, so we append a major version to the name.
15126 - soname_spec='${libname}${release}${shared_ext}$major'
15129 + # We know the value 262144 and hardcode it with a safety zone (like BSD)
15130 + lt_cv_sys_max_cmd_len=196608
15134 - version_type=linux
15135 - need_lib_prefix=no
15137 - hardcode_into_libs=yes
15138 - if test "$host_cpu" = ia64; then
15139 - # AIX 5 supports IA64
15140 - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15141 - shlibpath_var=LD_LIBRARY_PATH
15143 - # With GCC up to 2.95.x, collect2 would create an import file
15144 - # for dependence libraries. The import file would start with
15145 - # the line `#! .'. This would cause the generated library to
15146 - # depend on `.', always an invalid library. This was fixed in
15147 - # development snapshots of GCC prior to 3.0.
15149 - aix4 | aix4.[[01]] | aix4.[[01]].*)
15150 - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15152 - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15155 - can_build_shared=no
15159 - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15160 - # soname into executable. Probably we can add versioning support to
15161 - # collect2, so additional links can be useful in future.
15162 - if test "$aix_use_runtimelinking" = yes; then
15163 - # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15164 - # instead of lib<name>.a to let people know that these are not
15165 - # typical AIX shared libraries.
15166 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15168 + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
15169 + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
15170 + # nice to cause kernel panics so lets avoid the loop below.
15171 + # First set a reasonable default.
15172 + lt_cv_sys_max_cmd_len=16384
15174 + if test -x /sbin/sysconfig; then
15175 + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
15176 + *1*) lt_cv_sys_max_cmd_len=-1 ;;
15181 + lt_cv_sys_max_cmd_len=102400
15183 + sysv5* | sco5v6* | sysv4.2uw2*)
15184 + kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
15185 + if test -n "$kargmax"; then
15186 + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
15188 - # We preserve .a as extension for shared libraries through AIX4.2
15189 - # and later when we are not doing run time linking.
15190 - library_names_spec='${libname}${release}.a $libname.a'
15191 - soname_spec='${libname}${release}${shared_ext}$major'
15192 + lt_cv_sys_max_cmd_len=32768
15194 - shlibpath_var=LIBPATH
15199 + lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
15200 + if test -n "$lt_cv_sys_max_cmd_len"; then
15201 + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
15202 + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
15204 + # Make teststring a little bigger before we do anything with it.
15205 + # a 1K string should be a reasonable start.
15206 + for i in 1 2 3 4 5 6 7 8 ; do
15207 + teststring=$teststring$teststring
15209 + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
15210 + # If test is not a shell built-in, we'll probably end up computing a
15211 + # maximum length that is only half of the actual maximum length, but
15213 + while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
15214 + = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
15215 + test $i != 17 # 1/2 MB should be enough
15218 + teststring=$teststring$teststring
15220 + # Only check the string length outside the loop.
15221 + lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
15223 + # Add a significant safety factor because C++ compilers can tack on
15224 + # massive amounts of additional arguments before passing them to the
15225 + # linker. It appears as though 1/2 is a usable value.
15226 + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
15231 +if test -n $lt_cv_sys_max_cmd_len ; then
15232 + AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
15234 + AC_MSG_RESULT(none)
15236 +max_cmd_len=$lt_cv_sys_max_cmd_len
15237 +_LT_DECL([], [max_cmd_len], [0],
15238 + [What is the maximum length of a command?])
15239 +])# LT_CMD_MAX_LEN
15242 - library_names_spec='$libname.ixlibrary $libname.a'
15243 - # Create ${libname}_ixlibrary.a entries in /sys/libs.
15244 - 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'
15247 +AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
15248 +dnl aclocal-1.4 backwards compatibility:
15249 +dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
15252 - library_names_spec='${libname}${shared_ext}'
15253 - dynamic_linker="$host_os ld.so"
15254 - shlibpath_var=LIBRARY_PATH
15258 - version_type=linux
15260 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15261 - soname_spec='${libname}${release}${shared_ext}$major'
15262 - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15263 - shlibpath_var=LD_LIBRARY_PATH
15264 - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15265 - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15266 - # the default ld.so.conf also contains /usr/contrib/lib and
15267 - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15268 - # libtool to hard-code these into programs
15270 +# _LT_HEADER_DLFCN
15271 +# ----------------
15272 +m4_defun([_LT_HEADER_DLFCN],
15273 +[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
15274 +])# _LT_HEADER_DLFCN
15276 -cygwin* | mingw* | pw32*)
15277 - version_type=windows
15278 - shrext_cmds=".dll"
15280 - need_lib_prefix=no
15282 - case $GCC,$host_os in
15283 - yes,cygwin* | yes,mingw* | yes,pw32*)
15284 - library_names_spec='$libname.dll.a'
15285 - # DLL is installed to $(libdir)/../bin by postinstall_cmds
15286 - postinstall_cmds='base_file=`basename \${file}`~
15287 - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15288 - dldir=$destdir/`dirname \$dlpath`~
15289 - test -d \$dldir || mkdir -p \$dldir~
15290 - $install_prog $dir/$dlname \$dldir/$dlname~
15291 - chmod a+x \$dldir/$dlname'
15292 - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15293 - dlpath=$dir/\$dldll~
15295 - shlibpath_overrides_runpath=yes
15296 +# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
15297 +# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
15298 +# ----------------------------------------------------------------
15299 +m4_defun([_LT_TRY_DLOPEN_SELF],
15300 +[m4_require([_LT_HEADER_DLFCN])dnl
15301 +if test "$cross_compiling" = yes; then :
15304 + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15305 + lt_status=$lt_dlunknown
15306 + cat > conftest.$ac_ext <<_LT_EOF
15307 +[#line __oline__ "configure"
15308 +#include "confdefs.h"
15312 - # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15313 - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
15314 - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15317 - # MinGW DLLs use traditional 'lib' prefix
15318 - soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
15319 - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15320 - if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
15321 - # It is most probably a Windows format PATH printed by
15322 - # mingw gcc, but we are running on Cygwin. Gcc prints its search
15323 - # path with ; separators, and with drive letters. We can handle the
15324 - # drive letters (cygwin fileutils understands them), so leave them,
15325 - # especially as we might pass files found there to a mingw objdump,
15326 - # which wouldn't understand a cygwinified path. Ahh.
15327 - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15329 - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15333 - # pw32 DLLs use 'pw' prefix rather than 'lib'
15334 - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
15339 +#include <dlfcn.h>
15343 - library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
15346 - dynamic_linker='Win32 ld.exe'
15347 - # FIXME: first we should search . and the directory the executable is in
15348 - shlibpath_var=PATH
15350 +#include <stdio.h>
15352 -darwin* | rhapsody*)
15353 - dynamic_linker="$host_os dyld"
15354 - version_type=darwin
15355 - need_lib_prefix=no
15357 - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15358 - soname_spec='${libname}${release}${major}$shared_ext'
15359 - shlibpath_overrides_runpath=yes
15360 - shlibpath_var=DYLD_LIBRARY_PATH
15361 - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15363 - sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
15364 - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15366 +#ifdef RTLD_GLOBAL
15367 +# define LT_DLGLOBAL RTLD_GLOBAL
15370 +# define LT_DLGLOBAL DL_GLOBAL
15372 +# define LT_DLGLOBAL 0
15377 - version_type=linux
15378 - need_lib_prefix=no
15380 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15381 - soname_spec='${libname}${release}${shared_ext}$major'
15382 - shlibpath_var=LD_LIBRARY_PATH
15384 +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15385 + find out it does not work in some platform. */
15386 +#ifndef LT_DLLAZY_OR_NOW
15388 +# define LT_DLLAZY_OR_NOW RTLD_LAZY
15391 +# define LT_DLLAZY_OR_NOW DL_LAZY
15394 +# define LT_DLLAZY_OR_NOW RTLD_NOW
15397 +# define LT_DLLAZY_OR_NOW DL_NOW
15399 +# define LT_DLLAZY_OR_NOW 0
15407 - dynamic_linker=no
15409 +#ifdef __cplusplus
15410 +extern "C" void exit (int);
15413 -freebsd* | dragonfly*)
15414 - # DragonFly does not have aout. When/if they implement a new
15415 - # versioning mechanism, adjust this.
15416 - if test -x /usr/bin/objformat; then
15417 - objformat=`/usr/bin/objformat`
15418 +void fnord() { int i=42;}
15421 + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15422 + int status = $lt_dlunknown;
15426 + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15427 + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15428 + /* dlclose (self); */
15432 - freebsd[[123]]*) objformat=aout ;;
15433 - *) objformat=elf ;;
15434 + puts (dlerror ());
15439 + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
15440 + (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
15442 + case x$lt_status in
15443 + x$lt_dlno_uscore) $1 ;;
15444 + x$lt_dlneed_uscore) $2 ;;
15445 + x$lt_dlunknown|x*) $3 ;;
15448 + # compilation failed
15451 - version_type=freebsd-$objformat
15452 - case $version_type in
15454 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15456 - need_lib_prefix=no
15459 - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15463 - shlibpath_var=LD_LIBRARY_PATH
15466 +])# _LT_TRY_DLOPEN_SELF
15469 +# LT_SYS_DLOPEN_SELF
15470 +# ------------------
15471 +AC_DEFUN([LT_SYS_DLOPEN_SELF],
15472 +[m4_require([_LT_HEADER_DLFCN])dnl
15473 +if test "x$enable_dlopen" != xyes; then
15474 + enable_dlopen=unknown
15475 + enable_dlopen_self=unknown
15476 + enable_dlopen_self_static=unknown
15479 + lt_cv_dlopen_libs=
15483 - shlibpath_overrides_runpath=yes
15485 - freebsd3.[[01]]* | freebsdelf3.[[01]]*)
15486 - shlibpath_overrides_runpath=yes
15487 - hardcode_into_libs=yes
15489 - freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
15490 - freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
15491 - shlibpath_overrides_runpath=no
15492 - hardcode_into_libs=yes
15494 + lt_cv_dlopen="load_add_on"
15495 + lt_cv_dlopen_libs=
15496 + lt_cv_dlopen_self=yes
15498 - *) # from 4.6 on, and DragonFly
15499 - shlibpath_overrides_runpath=yes
15500 - hardcode_into_libs=yes
15503 + lt_cv_dlopen="LoadLibrary"
15504 + lt_cv_dlopen_libs=
15510 - version_type=linux
15511 - need_lib_prefix=no
15513 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15514 - soname_spec='${libname}${release}${shared_ext}$major'
15515 - shlibpath_var=LD_LIBRARY_PATH
15516 - hardcode_into_libs=yes
15519 + lt_cv_dlopen="dlopen"
15520 + lt_cv_dlopen_libs=
15523 -hpux9* | hpux10* | hpux11*)
15524 - # Give a soname corresponding to the major version so that dld.sl refuses to
15525 - # link against other versions.
15526 - version_type=sunos
15527 - need_lib_prefix=no
15529 - case $host_cpu in
15531 - shrext_cmds='.so'
15532 - hardcode_into_libs=yes
15533 - dynamic_linker="$host_os dld.so"
15534 - shlibpath_var=LD_LIBRARY_PATH
15535 - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15536 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15537 - soname_spec='${libname}${release}${shared_ext}$major'
15538 - if test "X$HPUX_IA64_MODE" = X32; then
15539 - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15541 - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15543 - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15545 + # if libdl is installed we need to link against it
15546 + AC_CHECK_LIB([dl], [dlopen],
15547 + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
15548 + lt_cv_dlopen="dyld"
15549 + lt_cv_dlopen_libs=
15550 + lt_cv_dlopen_self=yes
15554 - shrext_cmds='.sl'
15555 - hardcode_into_libs=yes
15556 - dynamic_linker="$host_os dld.sl"
15557 - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15558 - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15559 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15560 - soname_spec='${libname}${release}${shared_ext}$major'
15561 - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15562 - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15565 - shrext_cmds='.sl'
15566 - dynamic_linker="$host_os dld.sl"
15567 - shlibpath_var=SHLIB_PATH
15568 - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15569 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15570 - soname_spec='${libname}${release}${shared_ext}$major'
15573 + AC_CHECK_FUNC([shl_load],
15574 + [lt_cv_dlopen="shl_load"],
15575 + [AC_CHECK_LIB([dld], [shl_load],
15576 + [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
15577 + [AC_CHECK_FUNC([dlopen],
15578 + [lt_cv_dlopen="dlopen"],
15579 + [AC_CHECK_LIB([dl], [dlopen],
15580 + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
15581 + [AC_CHECK_LIB([svld], [dlopen],
15582 + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
15583 + [AC_CHECK_LIB([dld], [dld_link],
15584 + [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
15592 - # HP-UX runs *really* slowly unless shared libraries are mode 555.
15593 - postinstall_cmds='chmod 555 $lib'
15597 - version_type=linux
15598 - need_lib_prefix=no
15600 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15601 - soname_spec='${libname}${release}${shared_ext}$major'
15602 - dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15603 - shlibpath_var=LD_LIBRARY_PATH
15604 - shlibpath_overrides_runpath=no
15605 - hardcode_into_libs=yes
15607 + if test "x$lt_cv_dlopen" != xno; then
15608 + enable_dlopen=yes
15613 -irix5* | irix6* | nonstopux*)
15615 - nonstopux*) version_type=nonstopux ;;
15617 - if test "$lt_cv_prog_gnu_ld" = yes; then
15618 - version_type=linux
15620 - version_type=irix
15623 - need_lib_prefix=no
15625 - soname_spec='${libname}${release}${shared_ext}$major'
15626 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15628 - irix5* | nonstopux*)
15629 - libsuff= shlibsuff=
15632 - case $LD in # libtool.m4 will add one of these switches to LD
15633 - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15634 - libsuff= shlibsuff= libmagic=32-bit;;
15635 - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15636 - libsuff=32 shlibsuff=N32 libmagic=N32;;
15637 - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15638 - libsuff=64 shlibsuff=64 libmagic=64-bit;;
15639 - *) libsuff= shlibsuff= libmagic=never-match;;
15641 + case $lt_cv_dlopen in
15643 + save_CPPFLAGS="$CPPFLAGS"
15644 + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15646 + save_LDFLAGS="$LDFLAGS"
15647 + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15649 + save_LIBS="$LIBS"
15650 + LIBS="$lt_cv_dlopen_libs $LIBS"
15652 + AC_CACHE_CHECK([whether a program can dlopen itself],
15653 + lt_cv_dlopen_self, [dnl
15654 + _LT_TRY_DLOPEN_SELF(
15655 + lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
15656 + lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
15659 + if test "x$lt_cv_dlopen_self" = xyes; then
15660 + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
15661 + AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
15662 + lt_cv_dlopen_self_static, [dnl
15663 + _LT_TRY_DLOPEN_SELF(
15664 + lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
15665 + lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
15669 + CPPFLAGS="$save_CPPFLAGS"
15670 + LDFLAGS="$save_LDFLAGS"
15671 + LIBS="$save_LIBS"
15674 - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15675 - shlibpath_overrides_runpath=no
15676 - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15677 - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15678 - hardcode_into_libs=yes
15681 -# No shared lib support for Linux oldld, aout, or coff.
15682 -linux*oldld* | linux*aout* | linux*coff*)
15683 - dynamic_linker=no
15685 + case $lt_cv_dlopen_self in
15686 + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15687 + *) enable_dlopen_self=unknown ;;
15690 -# This must be Linux ELF.
15691 -linux* | k*bsd*-gnu)
15692 - version_type=linux
15693 - need_lib_prefix=no
15695 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15696 - soname_spec='${libname}${release}${shared_ext}$major'
15697 - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15698 - shlibpath_var=LD_LIBRARY_PATH
15699 - shlibpath_overrides_runpath=no
15700 - # This implies no fast_install, which is unacceptable.
15701 - # Some rework will be needed to allow for fast_install
15702 - # before this can be enabled.
15703 - hardcode_into_libs=yes
15704 + case $lt_cv_dlopen_self_static in
15705 + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15706 + *) enable_dlopen_self_static=unknown ;;
15709 +_LT_DECL([dlopen_support], [enable_dlopen], [0],
15710 + [Whether dlopen is supported])
15711 +_LT_DECL([dlopen_self], [enable_dlopen_self], [0],
15712 + [Whether dlopen of programs is supported])
15713 +_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
15714 + [Whether dlopen of statically linked programs is supported])
15715 +])# LT_SYS_DLOPEN_SELF
15718 +AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
15719 +dnl aclocal-1.4 backwards compatibility:
15720 +dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
15722 - # Append ld.so.conf contents to the search path
15723 - if test -f /etc/ld.so.conf; then
15724 - 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' ' '`
15725 - sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15728 - # We used to test for /lib/ld.so.1 and disable shared libraries on
15729 - # powerpc, because MkLinux only supported shared libraries with the
15730 - # GNU dynamic linker. Since this was broken with cross compilers,
15731 - # most powerpc-linux boxes support dynamic linking these days and
15732 - # people can always --disable-shared, the test was removed, and we
15733 - # assume the GNU/Linux dynamic linker is in use.
15734 - dynamic_linker='GNU/Linux ld.so'
15736 +# _LT_COMPILER_C_O([TAGNAME])
15737 +# ---------------------------
15738 +# Check to see if options -c and -o are simultaneously supported by compiler.
15739 +# This macro does not hard code the compiler like AC_PROG_CC_C_O.
15740 +m4_defun([_LT_COMPILER_C_O],
15741 +[m4_require([_LT_DECL_SED])dnl
15742 +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
15743 +m4_require([_LT_TAG_COMPILER])dnl
15744 +AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
15745 + [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
15746 + [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
15747 + $RM -r conftest 2>/dev/null
15751 + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15754 - version_type=sunos
15755 - need_lib_prefix=no
15757 - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15758 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15759 - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15760 - dynamic_linker='NetBSD (a.out) ld.so'
15762 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15763 - soname_spec='${libname}${release}${shared_ext}$major'
15764 - dynamic_linker='NetBSD ld.elf_so'
15766 - shlibpath_var=LD_LIBRARY_PATH
15767 - shlibpath_overrides_runpath=yes
15768 - hardcode_into_libs=yes
15770 + lt_compiler_flag="-o out/conftest2.$ac_objext"
15771 + # Insert the option either (1) after the last *FLAGS variable, or
15772 + # (2) before a word containing "conftest.", or (3) at the end.
15773 + # Note that $ac_compile itself does not contain backslashes and begins
15774 + # with a dollar sign (not a hyphen), so the echo should work correctly.
15775 + lt_compile=`echo "$ac_compile" | $SED \
15776 + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15777 + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
15778 + -e 's:$: $lt_compiler_flag:'`
15779 + (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
15780 + (eval "$lt_compile" 2>out/conftest.err)
15782 + cat out/conftest.err >&AS_MESSAGE_LOG_FD
15783 + echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
15784 + if (exit $ac_status) && test -s out/conftest2.$ac_objext
15786 + # The compiler can only warn and ignore the option if not recognized
15787 + # So say no if there are warnings
15788 + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15789 + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15790 + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15791 + _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
15794 + chmod u+w . 2>&AS_MESSAGE_LOG_FD
15796 + # SGI C++ compiler will create directory out/ii_files/ for
15797 + # template instantiation
15798 + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15799 + $RM out/* && rmdir out
15804 +_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
15805 + [Does compiler simultaneously support -c and -o options?])
15806 +])# _LT_COMPILER_C_O
15809 - version_type=linux
15810 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15811 - shlibpath_var=LD_LIBRARY_PATH
15812 - shlibpath_overrides_runpath=yes
15816 - version_type=linux
15817 - need_lib_prefix=no
15819 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15820 - soname_spec='${libname}${release}${shared_ext}$major'
15821 - shlibpath_var=LD_LIBRARY_PATH
15822 - shlibpath_overrides_runpath=yes
15824 +# _LT_COMPILER_FILE_LOCKS([TAGNAME])
15825 +# ----------------------------------
15826 +# Check to see if we can do hard links to lock some files if needed
15827 +m4_defun([_LT_COMPILER_FILE_LOCKS],
15828 +[m4_require([_LT_ENABLE_LOCK])dnl
15829 +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
15830 +_LT_COMPILER_C_O([$1])
15833 - version_type=sunos
15834 - sys_lib_dlsearch_path_spec="/usr/lib"
15835 - need_lib_prefix=no
15836 - # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15838 - openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15839 - *) need_version=no ;;
15841 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15842 - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15843 - shlibpath_var=LD_LIBRARY_PATH
15844 - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15846 - openbsd2.[[89]] | openbsd2.[[89]].*)
15847 - shlibpath_overrides_runpath=no
15850 - shlibpath_overrides_runpath=yes
15854 - shlibpath_overrides_runpath=yes
15855 +hard_links="nottested"
15856 +if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
15857 + # do not overwrite the value of need_locks provided by the user
15858 + AC_MSG_CHECKING([if we can lock with hard links])
15861 + ln conftest.a conftest.b 2>/dev/null && hard_links=no
15863 + ln conftest.a conftest.b 2>&5 || hard_links=no
15864 + ln conftest.a conftest.b 2>/dev/null && hard_links=no
15865 + AC_MSG_RESULT([$hard_links])
15866 + if test "$hard_links" = no; then
15867 + AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
15874 +_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
15875 +])# _LT_COMPILER_FILE_LOCKS
15878 - libname_spec='$name'
15879 - shrext_cmds=".dll"
15880 - need_lib_prefix=no
15881 - library_names_spec='$libname${shared_ext} $libname.a'
15882 - dynamic_linker='OS/2 ld.exe'
15883 - shlibpath_var=LIBPATH
15886 -osf3* | osf4* | osf5*)
15888 - need_lib_prefix=no
15890 - soname_spec='${libname}${release}${shared_ext}$major'
15891 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15892 - shlibpath_var=LD_LIBRARY_PATH
15893 - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15894 - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15896 +# _LT_CHECK_OBJDIR
15897 +# ----------------
15898 +m4_defun([_LT_CHECK_OBJDIR],
15899 +[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
15900 +[rm -f .libs 2>/dev/null
15901 +mkdir .libs 2>/dev/null
15902 +if test -d .libs; then
15903 + lt_cv_objdir=.libs
15905 + # MS-DOS does not allow filenames that begin with a dot.
15906 + lt_cv_objdir=_libs
15908 +rmdir .libs 2>/dev/null])
15909 +objdir=$lt_cv_objdir
15910 +_LT_DECL([], [objdir], [0],
15911 + [The name of the directory that contains temporary libtool files])dnl
15912 +m4_pattern_allow([LT_OBJDIR])dnl
15913 +AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
15914 + [Define to the sub-directory in which libtool stores uninstalled libraries.])
15915 +])# _LT_CHECK_OBJDIR
15918 - dynamic_linker=no
15922 - version_type=linux
15923 - need_lib_prefix=no
15925 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15926 - soname_spec='${libname}${release}${shared_ext}$major'
15927 - shlibpath_var=LD_LIBRARY_PATH
15928 - shlibpath_overrides_runpath=yes
15929 - hardcode_into_libs=yes
15930 - # ldd complains unless libraries are executable
15931 - postinstall_cmds='chmod +x $lib'
15933 +# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
15934 +# --------------------------------------
15935 +# Check hardcoding attributes.
15936 +m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
15937 +[AC_MSG_CHECKING([how to hardcode library paths into programs])
15938 +_LT_TAGVAR(hardcode_action, $1)=
15939 +if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
15940 + test -n "$_LT_TAGVAR(runpath_var, $1)" ||
15941 + test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
15944 - version_type=sunos
15945 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15946 - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15947 - shlibpath_var=LD_LIBRARY_PATH
15948 - shlibpath_overrides_runpath=yes
15949 - if test "$with_gnu_ld" = yes; then
15950 - need_lib_prefix=no
15951 + # We can hardcode non-existent directories.
15952 + if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
15953 + # If the only mechanism to avoid hardcoding is shlibpath_var, we
15954 + # have to relink, otherwise we might link with an installed library
15955 + # when we should be linking with a yet-to-be-installed one
15956 + ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
15957 + test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
15958 + # Linking always hardcodes the temporary library directory.
15959 + _LT_TAGVAR(hardcode_action, $1)=relink
15961 + # We can link without hardcoding, and we can hardcode nonexisting dirs.
15962 + _LT_TAGVAR(hardcode_action, $1)=immediate
15967 + # We cannot hardcode anything, or else we can only hardcode existing
15969 + _LT_TAGVAR(hardcode_action, $1)=unsupported
15971 +AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
15974 - version_type=linux
15975 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15976 - soname_spec='${libname}${release}${shared_ext}$major'
15977 - shlibpath_var=LD_LIBRARY_PATH
15978 - case $host_vendor in
15980 - shlibpath_overrides_runpath=no
15981 - need_lib_prefix=no
15982 - export_dynamic_flag_spec='${wl}-Blargedynsym'
15983 - runpath_var=LD_RUN_PATH
15986 - need_lib_prefix=no
15989 - need_lib_prefix=no
15991 - shlibpath_overrides_runpath=no
15992 - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15994 +if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
15995 + test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
15996 + # Fast installation is not supported
15997 + enable_fast_install=no
15998 +elif test "$shlibpath_overrides_runpath" = yes ||
15999 + test "$enable_shared" = no; then
16000 + # Fast installation is not necessary
16001 + enable_fast_install=needless
16003 +_LT_TAGDECL([], [hardcode_action], [0],
16004 + [How to hardcode a shared library path into an executable])
16005 +])# _LT_LINKER_HARDCODE_LIBPATH
16008 +# _LT_CMD_STRIPLIB
16009 +# ----------------
16010 +m4_defun([_LT_CMD_STRIPLIB],
16011 +[m4_require([_LT_DECL_EGREP])
16014 +AC_MSG_CHECKING([whether stripping libraries is possible])
16015 +if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
16016 + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16017 + test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16018 + AC_MSG_RESULT([yes])
16020 +# FIXME - insert some real tests, host_os isn't really good enough
16023 + if test -n "$STRIP" ; then
16024 + striplib="$STRIP -x"
16025 + old_striplib="$STRIP -S"
16026 + AC_MSG_RESULT([yes])
16028 + AC_MSG_RESULT([no])
16032 + AC_MSG_RESULT([no])
16037 +_LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
16038 +_LT_DECL([], [striplib], [1])
16039 +])# _LT_CMD_STRIPLIB
16042 - if test -d /usr/nec ;then
16043 - version_type=linux
16044 - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16045 - soname_spec='$libname${shared_ext}.$major'
16046 - shlibpath_var=LD_LIBRARY_PATH
16048 +# _LT_SYS_DYNAMIC_LINKER([TAG])
16049 +# -----------------------------
16050 +# PORTME Fill in your ld.so characteristics
16051 +m4_defun([_LT_SYS_DYNAMIC_LINKER],
16052 +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
16053 +m4_require([_LT_DECL_EGREP])dnl
16054 +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
16055 +m4_require([_LT_DECL_SED])dnl
16056 +AC_MSG_CHECKING([dynamic linker characteristics])
16059 +if test "$GCC" = yes; then
16061 + darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16062 + *) lt_awk_arg="/^libraries:/" ;;
16064 + lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16065 + if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
16066 + # if the path contains ";" then we assume it to be the separator
16067 + # otherwise default to the standard path separator (i.e. ":") - it is
16068 + # assumed that no part of a normal pathname contains ";" but that should
16069 + # okay in the real world where ";" in dirpaths is itself problematic.
16070 + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
16072 + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16074 + # Ok, now we have the path, separated by spaces, we can step through it
16075 + # and add multilib dir if necessary.
16076 + lt_tmp_lt_search_path_spec=
16077 + lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16078 + for lt_sys_path in $lt_search_path_spec; do
16079 + if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16080 + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16082 + test -d "$lt_sys_path" && \
16083 + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16086 + lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
16087 +BEGIN {RS=" "; FS="/|\n";} {
16090 + for (lt_i = NF; lt_i > 0; lt_i--) {
16091 + if ($lt_i != "" && $lt_i != ".") {
16092 + if ($lt_i == "..") {
16095 + if (lt_count == 0) {
16096 + lt_foo="/" $lt_i lt_foo;
16103 + if (lt_foo != "") { lt_freq[[lt_foo]]++; }
16104 + if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
16106 + sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
16108 + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16110 +library_names_spec=
16111 +libname_spec='lib$name'
16115 +postuninstall_cmds=
16119 +shlibpath_overrides_runpath=unknown
16121 +dynamic_linker="$host_os ld.so"
16122 +sys_lib_dlsearch_path_spec="/lib /usr/lib"
16123 +need_lib_prefix=unknown
16124 +hardcode_into_libs=no
16126 +# when you set need_version to no, make sure it does not cause -set_version
16127 +# flags to be left without arguments
16128 +need_version=unknown
16132 + version_type=linux
16133 + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16134 + shlibpath_var=LIBPATH
16136 + # AIX 3 has no versioning support, so we append a major version to the name.
16137 + soname_spec='${libname}${release}${shared_ext}$major'
16140 -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16141 - version_type=freebsd-elf
16143 + version_type=linux
16146 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16147 - soname_spec='${libname}${release}${shared_ext}$major'
16148 - shlibpath_var=LD_LIBRARY_PATH
16149 hardcode_into_libs=yes
16150 - if test "$with_gnu_ld" = yes; then
16151 - sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16152 - shlibpath_overrides_runpath=no
16153 + if test "$host_cpu" = ia64; then
16154 + # AIX 5 supports IA64
16155 + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16156 + shlibpath_var=LD_LIBRARY_PATH
16158 - sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16159 - shlibpath_overrides_runpath=yes
16160 + # With GCC up to 2.95.x, collect2 would create an import file
16161 + # for dependence libraries. The import file would start with
16162 + # the line `#! .'. This would cause the generated library to
16163 + # depend on `.', always an invalid library. This was fixed in
16164 + # development snapshots of GCC prior to 3.0.
16167 - sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16169 + aix4 | aix4.[[01]] | aix4.[[01]].*)
16170 + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16172 + echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16175 + can_build_shared=no
16179 + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16180 + # soname into executable. Probably we can add versioning support to
16181 + # collect2, so additional links can be useful in future.
16182 + if test "$aix_use_runtimelinking" = yes; then
16183 + # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16184 + # instead of lib<name>.a to let people know that these are not
16185 + # typical AIX shared libraries.
16186 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16188 + # We preserve .a as extension for shared libraries through AIX4.2
16189 + # and later when we are not doing run time linking.
16190 + library_names_spec='${libname}${release}.a $libname.a'
16191 + soname_spec='${libname}${release}${shared_ext}$major'
16193 + shlibpath_var=LIBPATH
16195 - sys_lib_dlsearch_path_spec='/usr/lib'
16200 + case $host_cpu in
16202 + # Since July 2007 AmigaOS4 officially supports .so libraries.
16203 + # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16204 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16207 + library_names_spec='$libname.ixlibrary $libname.a'
16208 + # Create ${libname}_ixlibrary.a entries in /sys/libs.
16209 + 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'
16215 + library_names_spec='${libname}${shared_ext}'
16216 + dynamic_linker="$host_os ld.so"
16217 + shlibpath_var=LIBRARY_PATH
16223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16224 soname_spec='${libname}${release}${shared_ext}$major'
16225 + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16226 shlibpath_var=LD_LIBRARY_PATH
16227 + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16228 + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16229 + # the default ld.so.conf also contains /usr/contrib/lib and
16230 + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16231 + # libtool to hard-code these into programs
16235 - dynamic_linker=no
16238 -AC_MSG_RESULT([$dynamic_linker])
16239 -test "$dynamic_linker" = no && can_build_shared=no
16241 -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16242 -if test "$GCC" = yes; then
16243 - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16245 -])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
16246 +cygwin* | mingw* | pw32*)
16247 + version_type=windows
16248 + shrext_cmds=".dll"
16250 + need_lib_prefix=no
16252 + case $GCC,$host_os in
16253 + yes,cygwin* | yes,mingw* | yes,pw32*)
16254 + library_names_spec='$libname.dll.a'
16255 + # DLL is installed to $(libdir)/../bin by postinstall_cmds
16256 + postinstall_cmds='base_file=`basename \${file}`~
16257 + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16258 + dldir=$destdir/`dirname \$dlpath`~
16259 + test -d \$dldir || mkdir -p \$dldir~
16260 + $install_prog $dir/$dlname \$dldir/$dlname~
16261 + chmod a+x \$dldir/$dlname~
16262 + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16263 + eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16265 + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16266 + dlpath=$dir/\$dldll~
16268 + shlibpath_overrides_runpath=yes
16270 -# _LT_AC_TAGCONFIG
16271 -# ----------------
16272 -AC_DEFUN([_LT_AC_TAGCONFIG],
16273 -[AC_REQUIRE([LT_AC_PROG_SED])dnl
16274 -AC_ARG_WITH([tags],
16275 - [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
16276 - [include additional configurations @<:@automatic@:>@])],
16277 - [tagnames="$withval"])
16279 -if test -f "$ltmain" && test -n "$tagnames"; then
16280 - if test ! -f "${ofile}"; then
16281 - AC_MSG_WARN([output file `$ofile' does not exist])
16284 - if test -z "$LTCC"; then
16285 - eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
16286 - if test -z "$LTCC"; then
16287 - AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
16289 - AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
16292 - if test -z "$LTCFLAGS"; then
16293 - eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
16296 - # Extract list of available tagged configurations in $ofile.
16297 - # Note that this assumes the entire list is on one line.
16298 - available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
16300 - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16301 - for tagname in $tagnames; do
16302 - IFS="$lt_save_ifs"
16303 - # Check whether tagname contains only valid characters
16304 - case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
16306 - *) AC_MSG_ERROR([invalid tag name: $tagname])
16310 + # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16311 + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
16312 + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16315 + # MinGW DLLs use traditional 'lib' prefix
16316 + soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
16317 + sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16318 + if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
16319 + # It is most probably a Windows format PATH printed by
16320 + # mingw gcc, but we are running on Cygwin. Gcc prints its search
16321 + # path with ; separators, and with drive letters. We can handle the
16322 + # drive letters (cygwin fileutils understands them), so leave them,
16323 + # especially as we might pass files found there to a mingw objdump,
16324 + # which wouldn't understand a cygwinified path. Ahh.
16325 + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16327 + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16331 + # pw32 DLLs use 'pw' prefix rather than 'lib'
16332 + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
16337 - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
16339 - AC_MSG_ERROR([tag name \"$tagname\" already exists])
16342 - # Update the list of available tags.
16343 - if test -n "$tagname"; then
16344 - echo appending configuration tag \"$tagname\" to $ofile
16348 - if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
16349 - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
16350 - (test "X$CXX" != "Xg++"))) ; then
16351 - AC_LIBTOOL_LANG_CXX_CONFIG
16358 - if test -n "$F77" && test "X$F77" != "Xno"; then
16359 - AC_LIBTOOL_LANG_F77_CONFIG
16366 - if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16367 - AC_LIBTOOL_LANG_GCJ_CONFIG
16373 + library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
16376 + dynamic_linker='Win32 ld.exe'
16377 + # FIXME: first we should search . and the directory the executable is in
16378 + shlibpath_var=PATH
16382 - AC_LIBTOOL_LANG_RC_CONFIG
16384 +darwin* | rhapsody*)
16385 + dynamic_linker="$host_os dyld"
16386 + version_type=darwin
16387 + need_lib_prefix=no
16389 + library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16390 + soname_spec='${libname}${release}${major}$shared_ext'
16391 + shlibpath_overrides_runpath=yes
16392 + shlibpath_var=DYLD_LIBRARY_PATH
16393 + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16395 + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
16396 + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16400 - AC_MSG_ERROR([Unsupported tag name: $tagname])
16404 + version_type=linux
16405 + need_lib_prefix=no
16407 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16408 + soname_spec='${libname}${release}${shared_ext}$major'
16409 + shlibpath_var=LD_LIBRARY_PATH
16412 - # Append the new tag name to the list of available tags.
16413 - if test -n "$tagname" ; then
16414 - available_tags="$available_tags $tagname"
16418 - IFS="$lt_save_ifs"
16420 + dynamic_linker=no
16423 - # Now substitute the updated list of available tags.
16424 - if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
16425 - mv "${ofile}T" "$ofile"
16426 - chmod +x "$ofile"
16427 +freebsd* | dragonfly*)
16428 + # DragonFly does not have aout. When/if they implement a new
16429 + # versioning mechanism, adjust this.
16430 + if test -x /usr/bin/objformat; then
16431 + objformat=`/usr/bin/objformat`
16433 - rm -f "${ofile}T"
16434 - AC_MSG_ERROR([unable to update list of available tagged configurations.])
16436 + freebsd[[123]]*) objformat=aout ;;
16437 + *) objformat=elf ;;
16441 -])# _LT_AC_TAGCONFIG
16444 -# AC_LIBTOOL_DLOPEN
16445 -# -----------------
16446 -# enable checks for dlopen support
16447 -AC_DEFUN([AC_LIBTOOL_DLOPEN],
16448 - [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
16449 -])# AC_LIBTOOL_DLOPEN
16452 -# AC_LIBTOOL_WIN32_DLL
16453 -# --------------------
16454 -# declare package support for building win32 DLLs
16455 -AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
16456 -[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
16457 -])# AC_LIBTOOL_WIN32_DLL
16460 -# AC_ENABLE_SHARED([DEFAULT])
16461 -# ---------------------------
16462 -# implement the --enable-shared flag
16463 -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
16464 -AC_DEFUN([AC_ENABLE_SHARED],
16465 -[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
16466 -AC_ARG_ENABLE([shared],
16467 - [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
16468 - [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
16469 - [p=${PACKAGE-default}
16470 - case $enableval in
16471 - yes) enable_shared=yes ;;
16472 - no) enable_shared=no ;;
16475 - # Look at the argument we got. We use all the common list separators.
16476 - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16477 - for pkg in $enableval; do
16478 - IFS="$lt_save_ifs"
16479 - if test "X$pkg" = "X$p"; then
16480 - enable_shared=yes
16483 - IFS="$lt_save_ifs"
16484 + version_type=freebsd-$objformat
16485 + case $version_type in
16487 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16489 + need_lib_prefix=no
16492 + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16496 - [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
16497 -])# AC_ENABLE_SHARED
16499 + shlibpath_var=LD_LIBRARY_PATH
16502 + shlibpath_overrides_runpath=yes
16504 + freebsd3.[[01]]* | freebsdelf3.[[01]]*)
16505 + shlibpath_overrides_runpath=yes
16506 + hardcode_into_libs=yes
16508 + freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
16509 + freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
16510 + shlibpath_overrides_runpath=no
16511 + hardcode_into_libs=yes
16513 + *) # from 4.6 on, and DragonFly
16514 + shlibpath_overrides_runpath=yes
16515 + hardcode_into_libs=yes
16521 + version_type=linux
16522 + need_lib_prefix=no
16524 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16525 + soname_spec='${libname}${release}${shared_ext}$major'
16526 + shlibpath_var=LD_LIBRARY_PATH
16527 + hardcode_into_libs=yes
16530 -# AC_DISABLE_SHARED
16531 -# -----------------
16532 -# set the default shared flag to --disable-shared
16533 -AC_DEFUN([AC_DISABLE_SHARED],
16534 -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
16535 -AC_ENABLE_SHARED(no)
16536 -])# AC_DISABLE_SHARED
16537 +hpux9* | hpux10* | hpux11*)
16538 + # Give a soname corresponding to the major version so that dld.sl refuses to
16539 + # link against other versions.
16540 + version_type=sunos
16541 + need_lib_prefix=no
16543 + case $host_cpu in
16545 + shrext_cmds='.so'
16546 + hardcode_into_libs=yes
16547 + dynamic_linker="$host_os dld.so"
16548 + shlibpath_var=LD_LIBRARY_PATH
16549 + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16550 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16551 + soname_spec='${libname}${release}${shared_ext}$major'
16552 + if test "X$HPUX_IA64_MODE" = X32; then
16553 + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16555 + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16557 + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16560 + shrext_cmds='.sl'
16561 + hardcode_into_libs=yes
16562 + dynamic_linker="$host_os dld.sl"
16563 + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16564 + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16565 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16566 + soname_spec='${libname}${release}${shared_ext}$major'
16567 + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16568 + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16571 + shrext_cmds='.sl'
16572 + dynamic_linker="$host_os dld.sl"
16573 + shlibpath_var=SHLIB_PATH
16574 + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16575 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16576 + soname_spec='${libname}${release}${shared_ext}$major'
16579 + # HP-UX runs *really* slowly unless shared libraries are mode 555.
16580 + postinstall_cmds='chmod 555 $lib'
16584 + version_type=linux
16585 + need_lib_prefix=no
16587 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16588 + soname_spec='${libname}${release}${shared_ext}$major'
16589 + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16590 + shlibpath_var=LD_LIBRARY_PATH
16591 + shlibpath_overrides_runpath=no
16592 + hardcode_into_libs=yes
16595 -# AC_ENABLE_STATIC([DEFAULT])
16596 -# ---------------------------
16597 -# implement the --enable-static flag
16598 -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
16599 -AC_DEFUN([AC_ENABLE_STATIC],
16600 -[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
16601 -AC_ARG_ENABLE([static],
16602 - [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
16603 - [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
16604 - [p=${PACKAGE-default}
16605 - case $enableval in
16606 - yes) enable_static=yes ;;
16607 - no) enable_static=no ;;
16608 +irix5* | irix6* | nonstopux*)
16610 + nonstopux*) version_type=nonstopux ;;
16613 - # Look at the argument we got. We use all the common list separators.
16614 - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16615 - for pkg in $enableval; do
16616 - IFS="$lt_save_ifs"
16617 - if test "X$pkg" = "X$p"; then
16618 - enable_static=yes
16621 - IFS="$lt_save_ifs"
16624 - [enable_static=]AC_ENABLE_STATIC_DEFAULT)
16625 -])# AC_ENABLE_STATIC
16626 + if test "$lt_cv_prog_gnu_ld" = yes; then
16627 + version_type=linux
16629 + version_type=irix
16632 + need_lib_prefix=no
16634 + soname_spec='${libname}${release}${shared_ext}$major'
16635 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16637 + irix5* | nonstopux*)
16638 + libsuff= shlibsuff=
16641 + case $LD in # libtool.m4 will add one of these switches to LD
16642 + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16643 + libsuff= shlibsuff= libmagic=32-bit;;
16644 + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16645 + libsuff=32 shlibsuff=N32 libmagic=N32;;
16646 + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16647 + libsuff=64 shlibsuff=64 libmagic=64-bit;;
16648 + *) libsuff= shlibsuff= libmagic=never-match;;
16652 + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16653 + shlibpath_overrides_runpath=no
16654 + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16655 + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16656 + hardcode_into_libs=yes
16659 +# No shared lib support for Linux oldld, aout, or coff.
16660 +linux*oldld* | linux*aout* | linux*coff*)
16661 + dynamic_linker=no
16664 -# AC_DISABLE_STATIC
16665 -# -----------------
16666 -# set the default static flag to --disable-static
16667 -AC_DEFUN([AC_DISABLE_STATIC],
16668 -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
16669 -AC_ENABLE_STATIC(no)
16670 -])# AC_DISABLE_STATIC
16671 +# This must be Linux ELF.
16672 +linux* | k*bsd*-gnu)
16673 + version_type=linux
16674 + need_lib_prefix=no
16676 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16677 + soname_spec='${libname}${release}${shared_ext}$major'
16678 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16679 + shlibpath_var=LD_LIBRARY_PATH
16680 + shlibpath_overrides_runpath=no
16681 + # Some binutils ld are patched to set DT_RUNPATH
16682 + save_LDFLAGS=$LDFLAGS
16683 + save_libdir=$libdir
16684 + eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
16685 + LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
16686 + AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
16687 + [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
16688 + [shlibpath_overrides_runpath=yes])])
16689 + LDFLAGS=$save_LDFLAGS
16690 + libdir=$save_libdir
16692 + # This implies no fast_install, which is unacceptable.
16693 + # Some rework will be needed to allow for fast_install
16694 + # before this can be enabled.
16695 + hardcode_into_libs=yes
16697 -# AC_ENABLE_FAST_INSTALL([DEFAULT])
16698 -# ---------------------------------
16699 -# implement the --enable-fast-install flag
16700 -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
16701 -AC_DEFUN([AC_ENABLE_FAST_INSTALL],
16702 -[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
16703 -AC_ARG_ENABLE([fast-install],
16704 - [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
16705 - [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
16706 - [p=${PACKAGE-default}
16707 - case $enableval in
16708 - yes) enable_fast_install=yes ;;
16709 - no) enable_fast_install=no ;;
16711 - enable_fast_install=no
16712 - # Look at the argument we got. We use all the common list separators.
16713 - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16714 - for pkg in $enableval; do
16715 - IFS="$lt_save_ifs"
16716 - if test "X$pkg" = "X$p"; then
16717 - enable_fast_install=yes
16720 - IFS="$lt_save_ifs"
16721 + # Append ld.so.conf contents to the search path
16722 + if test -f /etc/ld.so.conf; then
16723 + 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' ' '`
16724 + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16727 + # We used to test for /lib/ld.so.1 and disable shared libraries on
16728 + # powerpc, because MkLinux only supported shared libraries with the
16729 + # GNU dynamic linker. Since this was broken with cross compilers,
16730 + # most powerpc-linux boxes support dynamic linking these days and
16731 + # people can always --disable-shared, the test was removed, and we
16732 + # assume the GNU/Linux dynamic linker is in use.
16733 + dynamic_linker='GNU/Linux ld.so'
16737 + version_type=sunos
16738 + need_lib_prefix=no
16740 + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16741 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16742 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16743 + dynamic_linker='NetBSD (a.out) ld.so'
16745 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16746 + soname_spec='${libname}${release}${shared_ext}$major'
16747 + dynamic_linker='NetBSD ld.elf_so'
16749 + shlibpath_var=LD_LIBRARY_PATH
16750 + shlibpath_overrides_runpath=yes
16751 + hardcode_into_libs=yes
16755 + version_type=linux
16756 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16757 + shlibpath_var=LD_LIBRARY_PATH
16758 + shlibpath_overrides_runpath=yes
16763 + need_lib_prefix=no
16765 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16766 + soname_spec='${libname}${release}${shared_ext}$major'
16767 + shlibpath_var=LD_LIBRARY_PATH
16768 + shlibpath_overrides_runpath=no
16769 + hardcode_into_libs=yes
16770 + dynamic_linker='ldqnx.so'
16774 + version_type=sunos
16775 + sys_lib_dlsearch_path_spec="/usr/lib"
16776 + need_lib_prefix=no
16777 + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16779 + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16780 + *) need_version=no ;;
16782 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16783 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16784 + shlibpath_var=LD_LIBRARY_PATH
16785 + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16787 + openbsd2.[[89]] | openbsd2.[[89]].*)
16788 + shlibpath_overrides_runpath=no
16791 + shlibpath_overrides_runpath=yes
16795 + shlibpath_overrides_runpath=yes
16800 + libname_spec='$name'
16801 + shrext_cmds=".dll"
16802 + need_lib_prefix=no
16803 + library_names_spec='$libname${shared_ext} $libname.a'
16804 + dynamic_linker='OS/2 ld.exe'
16805 + shlibpath_var=LIBPATH
16808 +osf3* | osf4* | osf5*)
16810 + need_lib_prefix=no
16812 + soname_spec='${libname}${release}${shared_ext}$major'
16813 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16814 + shlibpath_var=LD_LIBRARY_PATH
16815 + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16816 + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16820 + dynamic_linker=no
16824 + version_type=linux
16825 + need_lib_prefix=no
16827 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16828 + soname_spec='${libname}${release}${shared_ext}$major'
16829 + shlibpath_var=LD_LIBRARY_PATH
16830 + shlibpath_overrides_runpath=yes
16831 + hardcode_into_libs=yes
16832 + # ldd complains unless libraries are executable
16833 + postinstall_cmds='chmod +x $lib'
16837 + version_type=sunos
16838 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16839 + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16840 + shlibpath_var=LD_LIBRARY_PATH
16841 + shlibpath_overrides_runpath=yes
16842 + if test "$with_gnu_ld" = yes; then
16843 + need_lib_prefix=no
16849 + version_type=linux
16850 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16851 + soname_spec='${libname}${release}${shared_ext}$major'
16852 + shlibpath_var=LD_LIBRARY_PATH
16853 + case $host_vendor in
16855 + shlibpath_overrides_runpath=no
16856 + need_lib_prefix=no
16857 + runpath_var=LD_RUN_PATH
16860 + need_lib_prefix=no
16863 + need_lib_prefix=no
16865 + shlibpath_overrides_runpath=no
16866 + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16869 - [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
16870 -])# AC_ENABLE_FAST_INSTALL
16875 + if test -d /usr/nec ;then
16876 + version_type=linux
16877 + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16878 + soname_spec='$libname${shared_ext}.$major'
16879 + shlibpath_var=LD_LIBRARY_PATH
16883 -# AC_DISABLE_FAST_INSTALL
16884 -# -----------------------
16885 -# set the default to --disable-fast-install
16886 -AC_DEFUN([AC_DISABLE_FAST_INSTALL],
16887 -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
16888 -AC_ENABLE_FAST_INSTALL(no)
16889 -])# AC_DISABLE_FAST_INSTALL
16890 +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16891 + version_type=freebsd-elf
16892 + need_lib_prefix=no
16894 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16895 + soname_spec='${libname}${release}${shared_ext}$major'
16896 + shlibpath_var=LD_LIBRARY_PATH
16897 + shlibpath_overrides_runpath=yes
16898 + hardcode_into_libs=yes
16899 + if test "$with_gnu_ld" = yes; then
16900 + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16902 + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16905 + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16909 + sys_lib_dlsearch_path_spec='/usr/lib'
16913 + # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16914 + version_type=linux
16915 + need_lib_prefix=no
16917 + library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16918 + shlibpath_var=LD_LIBRARY_PATH
16919 + shlibpath_overrides_runpath=no
16920 + hardcode_into_libs=yes
16924 + version_type=linux
16925 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16926 + soname_spec='${libname}${release}${shared_ext}$major'
16927 + shlibpath_var=LD_LIBRARY_PATH
16930 -# AC_LIBTOOL_PICMODE([MODE])
16931 -# --------------------------
16932 -# implement the --with-pic flag
16933 -# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
16934 -AC_DEFUN([AC_LIBTOOL_PICMODE],
16935 -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
16936 -pic_mode=ifelse($#,1,$1,default)
16937 -])# AC_LIBTOOL_PICMODE
16939 + dynamic_linker=no
16942 +AC_MSG_RESULT([$dynamic_linker])
16943 +test "$dynamic_linker" = no && can_build_shared=no
16945 +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16946 +if test "$GCC" = yes; then
16947 + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16950 +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16951 + sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16953 +if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16954 + sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16959 -# This is predefined starting with Autoconf 2.54, so this conditional
16960 -# definition can be removed once we require Autoconf 2.54 or later.
16961 -m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
16962 -[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
16963 - [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
16964 - then ac_cv_prog_egrep='grep -E'
16965 - else ac_cv_prog_egrep='egrep'
16967 - EGREP=$ac_cv_prog_egrep
16968 - AC_SUBST([EGREP])
16970 +_LT_DECL([], [variables_saved_for_relink], [1],
16971 + [Variables whose values should be saved in libtool wrapper scripts and
16972 + restored at link time])
16973 +_LT_DECL([], [need_lib_prefix], [0],
16974 + [Do we need the "lib" prefix for modules?])
16975 +_LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
16976 +_LT_DECL([], [version_type], [0], [Library versioning type])
16977 +_LT_DECL([], [runpath_var], [0], [Shared library runtime path variable])
16978 +_LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
16979 +_LT_DECL([], [shlibpath_overrides_runpath], [0],
16980 + [Is shlibpath searched before the hard-coded library search path?])
16981 +_LT_DECL([], [libname_spec], [1], [Format of library name prefix])
16982 +_LT_DECL([], [library_names_spec], [1],
16983 + [[List of archive names. First name is the real one, the rest are links.
16984 + The last name is the one that the linker finds with -lNAME]])
16985 +_LT_DECL([], [soname_spec], [1],
16986 + [[The coded name of the library, if different from the real name]])
16987 +_LT_DECL([], [postinstall_cmds], [2],
16988 + [Command to use after installation of a shared archive])
16989 +_LT_DECL([], [postuninstall_cmds], [2],
16990 + [Command to use after uninstallation of a shared archive])
16991 +_LT_DECL([], [finish_cmds], [2],
16992 + [Commands used to finish a libtool library installation in a directory])
16993 +_LT_DECL([], [finish_eval], [1],
16994 + [[As "finish_cmds", except a single script fragment to be evaled but
16996 +_LT_DECL([], [hardcode_into_libs], [0],
16997 + [Whether we should hardcode library paths into libraries])
16998 +_LT_DECL([], [sys_lib_search_path_spec], [2],
16999 + [Compile-time system search path for libraries])
17000 +_LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
17001 + [Run-time system search path for libraries])
17002 +])# _LT_SYS_DYNAMIC_LINKER
17005 -# AC_PATH_TOOL_PREFIX
17006 -# -------------------
17007 +# _LT_PATH_TOOL_PREFIX(TOOL)
17008 +# --------------------------
17009 # find a file program which can recognize shared library
17010 -AC_DEFUN([AC_PATH_TOOL_PREFIX],
17011 -[AC_REQUIRE([AC_PROG_EGREP])dnl
17012 +AC_DEFUN([_LT_PATH_TOOL_PREFIX],
17013 +[m4_require([_LT_DECL_EGREP])dnl
17014 AC_MSG_CHECKING([for $1])
17015 AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
17016 [case $MAGIC_CMD in
17017 @@ -2100,7 +2740,7 @@
17018 dnl $ac_dummy forces splitting on constant user-supplied paths.
17019 dnl POSIX.2 word splitting is done only on the output of word expansions,
17020 dnl not every word. This closes a longstanding sh security hole.
17021 - ac_dummy="ifelse([$2], , $PATH, [$2])"
17022 + ac_dummy="m4_if([$2], , $PATH, [$2])"
17023 for ac_dir in $ac_dummy; do
17025 test -z "$ac_dir" && ac_dir=.
17026 @@ -2115,7 +2755,7 @@
17027 $EGREP "$file_magic_regex" > /dev/null; then
17031 + cat <<_LT_EOF 1>&2
17033 *** Warning: the command libtool uses to detect shared libraries,
17034 *** $file_magic_cmd, produces output that libtool cannot recognize.
17035 @@ -2126,7 +2766,7 @@
17036 *** may want to report the problem to your system manager and/or to
17037 *** bug-libtool@gnu.org
17044 @@ -2143,37 +2783,47 @@
17048 -])# AC_PATH_TOOL_PREFIX
17049 +_LT_DECL([], [MAGIC_CMD], [0],
17050 + [Used to examine libraries when file_magic_cmd begins with "file"])dnl
17051 +])# _LT_PATH_TOOL_PREFIX
17054 +AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
17055 +dnl aclocal-1.4 backwards compatibility:
17056 +dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
17063 # find a file program which can recognize a shared library
17064 -AC_DEFUN([AC_PATH_MAGIC],
17065 -[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
17066 +m4_defun([_LT_PATH_MAGIC],
17067 +[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
17068 if test -z "$lt_cv_path_MAGIC_CMD"; then
17069 if test -n "$ac_tool_prefix"; then
17070 - AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
17071 + _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
17077 +])# _LT_PATH_MAGIC
17083 # find the pathname to the GNU or non-GNU linker
17084 -AC_DEFUN([AC_PROG_LD],
17085 -[AC_ARG_WITH([gnu-ld],
17086 - [AC_HELP_STRING([--with-gnu-ld],
17087 - [assume the C compiler uses GNU ld @<:@default=no@:>@])],
17088 - [test "$withval" = no || with_gnu_ld=yes],
17089 - [with_gnu_ld=no])
17090 -AC_REQUIRE([LT_AC_PROG_SED])dnl
17091 -AC_REQUIRE([AC_PROG_CC])dnl
17092 +AC_DEFUN([LT_PATH_LD],
17093 +[AC_REQUIRE([AC_PROG_CC])dnl
17094 AC_REQUIRE([AC_CANONICAL_HOST])dnl
17095 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
17096 +m4_require([_LT_DECL_SED])dnl
17097 +m4_require([_LT_DECL_EGREP])dnl
17099 +AC_ARG_WITH([gnu-ld],
17100 + [AS_HELP_STRING([--with-gnu-ld],
17101 + [assume the C compiler uses GNU ld @<:@default=no@:>@])],
17102 + [test "$withval" = no || with_gnu_ld=yes],
17103 + [with_gnu_ld=no])dnl
17106 if test "$GCC" = yes; then
17107 # Check if gcc -print-prog-name=ld gives a path.
17108 @@ -2190,9 +2840,9 @@
17109 [[\\/]]* | ?:[[\\/]]*)
17110 re_direlt='/[[^/]][[^/]]*/\.\./'
17111 # Canonicalize the pathname of ld
17112 - ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
17113 - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
17114 - ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
17115 + ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
17116 + while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
17117 + ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
17119 test -z "$LD" && LD="$ac_prog"
17121 @@ -2242,15 +2892,24 @@
17124 test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
17130 +_LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
17135 -AC_DEFUN([AC_PROG_LD_GNU],
17136 -[AC_REQUIRE([AC_PROG_EGREP])dnl
17137 -AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
17139 +AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
17140 +AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
17141 +dnl aclocal-1.4 backwards compatibility:
17142 +dnl AC_DEFUN([AM_PROG_LD], [])
17143 +dnl AC_DEFUN([AC_PROG_LD], [])
17148 +m4_defun([_LT_PATH_LD_GNU],
17149 +[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
17150 [# I'd rather use --version here, but apparently some GNU lds only accept -v.
17151 case `$LD -v 2>&1 </dev/null` in
17152 *GNU* | *'with BFD'*)
17153 @@ -2261,14 +2920,14 @@
17156 with_gnu_ld=$lt_cv_prog_gnu_ld
17157 -])# AC_PROG_LD_GNU
17158 +])# _LT_PATH_LD_GNU
17161 -# AC_PROG_LD_RELOAD_FLAG
17162 -# ----------------------
17165 # find reload flag for linker
17166 # -- PORTME Some linkers may need a different reload flag.
17167 -AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
17168 +m4_defun([_LT_CMD_RELOAD],
17169 [AC_CACHE_CHECK([for $LD option to reload object files],
17170 lt_cv_ld_reload_flag,
17171 [lt_cv_ld_reload_flag='-r'])
17172 @@ -2287,15 +2946,18 @@
17176 -])# AC_PROG_LD_RELOAD_FLAG
17177 +_LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
17178 +_LT_DECL([], [reload_cmds], [2])dnl
17179 +])# _LT_CMD_RELOAD
17182 -# AC_DEPLIBS_CHECK_METHOD
17183 -# -----------------------
17184 +# _LT_CHECK_MAGIC_METHOD
17185 +# ----------------------
17186 # how to check for library dependencies
17187 # -- PORTME fill in with the dynamic library characteristics
17188 -AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
17189 -[AC_CACHE_CHECK([how to recognize dependent libraries],
17190 +m4_defun([_LT_CHECK_MAGIC_METHOD],
17191 +[m4_require([_LT_DECL_EGREP])
17192 +AC_CACHE_CHECK([how to recognize dependent libraries],
17193 lt_cv_deplibs_check_method,
17194 [lt_cv_file_magic_cmd='$MAGIC_CMD'
17195 lt_cv_file_magic_test_file=
17196 @@ -2312,7 +2974,7 @@
17197 # whether `pass_all' will *always* work, you probably want this one.
17202 lt_cv_deplibs_check_method=pass_all
17205 @@ -2350,7 +3012,7 @@
17208 freebsd* | dragonfly*)
17209 - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
17210 + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
17213 # Not sure whether the presence of OpenBSD here was a mistake.
17214 @@ -2408,7 +3070,7 @@
17218 - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
17219 + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
17220 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
17222 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
17223 @@ -2421,12 +3083,12 @@
17224 lt_cv_file_magic_test_file=/usr/lib/libnls.so
17228 - lt_cv_deplibs_check_method=unknown
17230 + lt_cv_deplibs_check_method=pass_all
17234 - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17235 + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17236 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
17238 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
17239 @@ -2445,6 +3107,10 @@
17240 lt_cv_deplibs_check_method=pass_all
17243 +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17244 + lt_cv_deplibs_check_method=pass_all
17248 case $host_vendor in
17250 @@ -2472,7 +3138,7 @@
17254 -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17256 lt_cv_deplibs_check_method=pass_all
17259 @@ -2480,14 +3146,20 @@
17260 file_magic_cmd=$lt_cv_file_magic_cmd
17261 deplibs_check_method=$lt_cv_deplibs_check_method
17262 test -z "$deplibs_check_method" && deplibs_check_method=unknown
17263 -])# AC_DEPLIBS_CHECK_METHOD
17265 +_LT_DECL([], [deplibs_check_method], [1],
17266 + [Method to check whether dependent libraries are shared objects])
17267 +_LT_DECL([], [file_magic_cmd], [1],
17268 + [Command to use when deplibs_check_method == "file_magic"])
17269 +])# _LT_CHECK_MAGIC_METHOD
17275 -# find the pathname to a BSD-compatible name lister
17276 -AC_DEFUN([AC_PROG_NM],
17277 -[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
17278 +# find the pathname to a BSD- or MS-compatible name lister
17279 +AC_DEFUN([LT_PATH_NM],
17280 +[AC_REQUIRE([AC_PROG_CC])dnl
17281 +AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
17282 [if test -n "$NM"; then
17283 # Let the user override the test.
17284 lt_cv_path_NM="$NM"
17285 @@ -2529,16 +3201,51 @@
17289 - test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
17290 + : ${lt_cv_path_NM=no}
17292 -NM="$lt_cv_path_NM"
17294 +if test "$lt_cv_path_NM" != "no"; then
17295 + NM="$lt_cv_path_NM"
17297 + # Didn't find any BSD compatible name lister, look for dumpbin.
17298 + AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
17299 + AC_SUBST([DUMPBIN])
17300 + if test "$DUMPBIN" != ":"; then
17304 +test -z "$NM" && NM=nm
17306 +_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
17308 +AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
17309 + [lt_cv_nm_interface="BSD nm"
17310 + echo "int some_variable = 0;" > conftest.$ac_ext
17311 + (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
17312 + (eval "$ac_compile" 2>conftest.err)
17313 + cat conftest.err >&AS_MESSAGE_LOG_FD
17314 + (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
17315 + (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
17316 + cat conftest.err >&AS_MESSAGE_LOG_FD
17317 + (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)
17318 + cat conftest.out >&AS_MESSAGE_LOG_FD
17319 + if $GREP 'External.*some_variable' conftest.out > /dev/null; then
17320 + lt_cv_nm_interface="MS dumpbin"
17322 + rm -f conftest*])
17326 +AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
17327 +AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
17328 +dnl aclocal-1.4 backwards compatibility:
17329 +dnl AC_DEFUN([AM_PROG_NM], [])
17330 +dnl AC_DEFUN([AC_PROG_NM], [])
17337 # check for math library
17338 -AC_DEFUN([AC_CHECK_LIBM],
17339 +AC_DEFUN([LT_LIB_M],
17340 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
17343 @@ -2553,3986 +3260,3739 @@
17344 AC_CHECK_LIB(m, cos, LIBM="-lm")
17352 +AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
17353 +dnl aclocal-1.4 backwards compatibility:
17354 +dnl AC_DEFUN([AC_CHECK_LIBM], [])
17356 -# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
17357 -# -----------------------------------
17358 -# sets LIBLTDL to the link flags for the libltdl convenience library and
17359 -# LTDLINCL to the include flags for the libltdl header and adds
17360 -# --enable-ltdl-convenience to the configure arguments. Note that
17361 -# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
17362 -# it is assumed to be `libltdl'. LIBLTDL will be prefixed with
17363 -# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
17364 -# (note the single quotes!). If your package is not flat and you're not
17365 -# using automake, define top_builddir and top_srcdir appropriately in
17367 -AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
17368 -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
17369 - case $enable_ltdl_convenience in
17370 - no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
17371 - "") enable_ltdl_convenience=yes
17372 - ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
17374 - LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
17375 - LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
17376 - # For backwards non-gettext consistent compatibility...
17377 - INCLTDL="$LTDLINCL"
17378 -])# AC_LIBLTDL_CONVENIENCE
17380 +# _LT_COMPILER_NO_RTTI([TAGNAME])
17381 +# -------------------------------
17382 +m4_defun([_LT_COMPILER_NO_RTTI],
17383 +[m4_require([_LT_TAG_COMPILER])dnl
17385 -# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
17386 -# -----------------------------------
17387 -# sets LIBLTDL to the link flags for the libltdl installable library and
17388 -# LTDLINCL to the include flags for the libltdl header and adds
17389 -# --enable-ltdl-install to the configure arguments. Note that
17390 -# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
17391 -# and an installed libltdl is not found, it is assumed to be `libltdl'.
17392 -# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
17393 -# '${top_srcdir}/' (note the single quotes!). If your package is not
17394 -# flat and you're not using automake, define top_builddir and top_srcdir
17395 -# appropriately in the Makefiles.
17396 -# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
17397 -AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
17398 -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
17399 - AC_CHECK_LIB(ltdl, lt_dlinit,
17400 - [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
17401 - [if test x"$enable_ltdl_install" = xno; then
17402 - AC_MSG_WARN([libltdl not installed, but installation disabled])
17404 - enable_ltdl_install=yes
17407 - if test x"$enable_ltdl_install" = x"yes"; then
17408 - ac_configure_args="$ac_configure_args --enable-ltdl-install"
17409 - LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
17410 - LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
17412 - ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
17416 - # For backwards non-gettext consistent compatibility...
17417 - INCLTDL="$LTDLINCL"
17418 -])# AC_LIBLTDL_INSTALLABLE
17419 +_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
17421 +if test "$GCC" = yes; then
17422 + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
17426 -# enable support for C++ libraries
17427 -AC_DEFUN([AC_LIBTOOL_CXX],
17428 -[AC_REQUIRE([_LT_AC_LANG_CXX])
17429 -])# AC_LIBTOOL_CXX
17430 + _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
17431 + lt_cv_prog_compiler_rtti_exceptions,
17432 + [-fno-rtti -fno-exceptions], [],
17433 + [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
17435 +_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
17436 + [Compiler flag to turn off builtin functions])
17437 +])# _LT_COMPILER_NO_RTTI
17442 -AC_DEFUN([_LT_AC_LANG_CXX],
17443 -[AC_REQUIRE([AC_PROG_CXX])
17444 -AC_REQUIRE([_LT_AC_PROG_CXXCPP])
17445 -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
17446 -])# _LT_AC_LANG_CXX
17447 +# _LT_CMD_GLOBAL_SYMBOLS
17448 +# ----------------------
17449 +m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
17450 +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
17451 +AC_REQUIRE([AC_PROG_CC])dnl
17452 +AC_REQUIRE([LT_PATH_NM])dnl
17453 +AC_REQUIRE([LT_PATH_LD])dnl
17454 +m4_require([_LT_DECL_SED])dnl
17455 +m4_require([_LT_DECL_EGREP])dnl
17456 +m4_require([_LT_TAG_COMPILER])dnl
17458 -# _LT_AC_PROG_CXXCPP
17459 -# ------------------
17460 -AC_DEFUN([_LT_AC_PROG_CXXCPP],
17461 +# Check for command to grab the raw symbol name followed by C symbol from nm.
17462 +AC_MSG_CHECKING([command to parse $NM output from $compiler object])
17463 +AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
17465 -AC_REQUIRE([AC_PROG_CXX])
17466 -if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17467 - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17468 - (test "X$CXX" != "Xg++"))) ; then
17471 -])# _LT_AC_PROG_CXXCPP
17475 -# enable support for Fortran 77 libraries
17476 -AC_DEFUN([AC_LIBTOOL_F77],
17477 -[AC_REQUIRE([_LT_AC_LANG_F77])
17478 -])# AC_LIBTOOL_F77
17483 -AC_DEFUN([_LT_AC_LANG_F77],
17484 -[AC_REQUIRE([AC_PROG_F77])
17485 -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
17486 -])# _LT_AC_LANG_F77
17491 -# enable support for GCJ libraries
17492 -AC_DEFUN([AC_LIBTOOL_GCJ],
17493 -[AC_REQUIRE([_LT_AC_LANG_GCJ])
17494 -])# AC_LIBTOOL_GCJ
17499 -AC_DEFUN([_LT_AC_LANG_GCJ],
17500 -[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
17501 - [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
17502 - [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
17503 - [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
17504 - [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
17505 - [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
17506 -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
17507 -])# _LT_AC_LANG_GCJ
17512 -# enable support for Windows resource files
17513 -AC_DEFUN([AC_LIBTOOL_RC],
17514 -[AC_REQUIRE([LT_AC_PROG_RC])
17515 -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
17519 -# AC_LIBTOOL_LANG_C_CONFIG
17520 -# ------------------------
17521 -# Ensure that the configuration vars for the C compiler are
17522 -# suitably defined. Those variables are subsequently used by
17523 -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
17524 -AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
17525 -AC_DEFUN([_LT_AC_LANG_C_CONFIG],
17529 -# Source file extension for C test sources.
17532 -# Object file extension for compiled C test sources.
17534 -_LT_AC_TAGVAR(objext, $1)=$objext
17536 -# Code to be used in simple compile tests
17537 -lt_simple_compile_test_code="int some_variable = 0;"
17539 -# Code to be used in simple link tests
17540 -lt_simple_link_test_code='int main(){return(0);}'
17542 -_LT_AC_SYS_COMPILER
17544 -# save warnings/boilerplate of simple test code
17545 -_LT_COMPILER_BOILERPLATE
17546 -_LT_LINKER_BOILERPLATE
17547 +# These are sane defaults that work on at least a few old systems.
17548 +# [They come from Ultrix. What could be older than Ultrix?!! ;)]
17551 -## There is no encapsulation within the following macros, do not change
17552 -## the running order or otherwise move them around unless you know exactly
17553 -## what you are doing...
17554 -AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
17555 -AC_LIBTOOL_PROG_COMPILER_PIC($1)
17556 -AC_LIBTOOL_PROG_CC_C_O($1)
17557 -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
17558 -AC_LIBTOOL_PROG_LD_SHLIBS($1)
17559 -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
17560 -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
17561 -AC_LIBTOOL_SYS_LIB_STRIP
17562 -AC_LIBTOOL_DLOPEN_SELF
17564 -# Report which library types will actually be built
17565 -AC_MSG_CHECKING([if libtool supports shared libraries])
17566 -AC_MSG_RESULT([$can_build_shared])
17567 +# Character class describing NM global symbol codes.
17568 +symcode='[[BCDEGRST]]'
17570 -AC_MSG_CHECKING([whether to build shared libraries])
17571 -test "$can_build_shared" = "no" && enable_shared=no
17572 +# Regexp to match symbols that can be accessed directly from C.
17573 +sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
17575 -# On AIX, shared libraries and static libraries use the same namespace, and
17576 -# are all built from PIC.
17577 +# Define system-specific variables.
17580 - test "$enable_shared" = yes && enable_static=no
17581 - if test -n "$RANLIB"; then
17582 - archive_cmds="$archive_cmds~\$RANLIB \$lib"
17583 - postinstall_cmds='$RANLIB $lib'
17586 + symcode='[[BCDT]]'
17590 - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17591 - test "$enable_shared" = yes && enable_static=no
17592 +cygwin* | mingw* | pw32*)
17593 + symcode='[[ABCDGISTW]]'
17596 + if test "$host_cpu" = ia64; then
17597 + symcode='[[ABCDEGRST]]'
17601 +irix* | nonstopux*)
17602 + symcode='[[BCDEGRST]]'
17605 + symcode='[[BCDEGQRST]]'
17608 + symcode='[[BDRT]]'
17616 +sysv5* | sco5v6* | unixware* | OpenUNIX*)
17617 + symcode='[[ABDT]]'
17620 + symcode='[[DFNSTU]]'
17623 -AC_MSG_RESULT([$enable_shared])
17625 -AC_MSG_CHECKING([whether to build static libraries])
17626 -# Make sure either enable_shared or enable_static is yes.
17627 -test "$enable_shared" = yes || enable_static=yes
17628 -AC_MSG_RESULT([$enable_static])
17630 -AC_LIBTOOL_CONFIG($1)
17634 -])# AC_LIBTOOL_LANG_C_CONFIG
17637 -# AC_LIBTOOL_LANG_CXX_CONFIG
17638 -# --------------------------
17639 -# Ensure that the configuration vars for the C compiler are
17640 -# suitably defined. Those variables are subsequently used by
17641 -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
17642 -AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
17643 -AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
17644 -[AC_LANG_PUSH(C++)
17645 -AC_REQUIRE([AC_PROG_CXX])
17646 -AC_REQUIRE([_LT_AC_PROG_CXXCPP])
17648 -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
17649 -_LT_AC_TAGVAR(allow_undefined_flag, $1)=
17650 -_LT_AC_TAGVAR(always_export_symbols, $1)=no
17651 -_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
17652 -_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
17653 -_LT_AC_TAGVAR(hardcode_direct, $1)=no
17654 -_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
17655 -_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
17656 -_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
17657 -_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
17658 -_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
17659 -_LT_AC_TAGVAR(hardcode_automatic, $1)=no
17660 -_LT_AC_TAGVAR(module_cmds, $1)=
17661 -_LT_AC_TAGVAR(module_expsym_cmds, $1)=
17662 -_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
17663 -_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
17664 -_LT_AC_TAGVAR(no_undefined_flag, $1)=
17665 -_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
17666 -_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
17667 +# If we're using GNU nm, then use its standard symbol codes.
17668 +case `$NM -V 2>&1` in
17669 +*GNU* | *'with BFD'*)
17670 + symcode='[[ABCDGIRSTW]]' ;;
17673 -# Dependencies to place before and after the object being linked:
17674 -_LT_AC_TAGVAR(predep_objects, $1)=
17675 -_LT_AC_TAGVAR(postdep_objects, $1)=
17676 -_LT_AC_TAGVAR(predeps, $1)=
17677 -_LT_AC_TAGVAR(postdeps, $1)=
17678 -_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
17679 +# Transform an extracted symbol line into a proper C declaration.
17680 +# Some systems (esp. on ia64) link data and code symbols differently,
17681 +# so use this general approach.
17682 +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
17684 -# Source file extension for C++ test sources.
17686 +# Transform an extracted symbol line into symbol name and symbol address
17687 +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
17688 +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'"
17690 -# Object file extension for compiled C++ test sources.
17692 -_LT_AC_TAGVAR(objext, $1)=$objext
17693 +# Handle CRLF in mingw tool chain
17697 + opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
17701 -# Code to be used in simple compile tests
17702 -lt_simple_compile_test_code="int some_variable = 0;"
17703 +# Try without a prefix underscore, then with it.
17704 +for ac_symprfx in "" "_"; do
17706 -# Code to be used in simple link tests
17707 -lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
17708 + # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
17709 + symxfrm="\\1 $ac_symprfx\\2 \\2"
17711 -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17712 -_LT_AC_SYS_COMPILER
17713 + # Write the raw and C identifiers.
17714 + if test "$lt_cv_nm_interface" = "MS dumpbin"; then
17715 + # Fake it for dumpbin and say T for any non-static function
17716 + # and D for any global variable.
17717 + # Also find C++ and __fastcall symbols from MSVC++,
17718 + # which start with @ or ?.
17719 + lt_cv_sys_global_symbol_pipe="$AWK ['"\
17720 +" {last_section=section; section=\$ 3};"\
17721 +" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
17722 +" \$ 0!~/External *\|/{next};"\
17723 +" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
17724 +" {if(hide[section]) next};"\
17725 +" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
17726 +" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
17727 +" s[1]~/^[@?]/{print s[1], s[1]; next};"\
17728 +" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
17729 +" ' prfx=^$ac_symprfx]"
17731 + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
17734 -# save warnings/boilerplate of simple test code
17735 -_LT_COMPILER_BOILERPLATE
17736 -_LT_LINKER_BOILERPLATE
17737 + # Check to see that the pipe works correctly.
17740 -# Allow CC to be a program name with arguments.
17745 -lt_save_with_gnu_ld=$with_gnu_ld
17746 -lt_save_path_LD=$lt_cv_path_LD
17747 -if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17748 - lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17750 - $as_unset lt_cv_prog_gnu_ld
17752 -if test -n "${lt_cv_path_LDCXX+set}"; then
17753 - lt_cv_path_LD=$lt_cv_path_LDCXX
17755 - $as_unset lt_cv_path_LD
17757 -test -z "${LDCXX+set}" || LD=$LDCXX
17760 -_LT_AC_TAGVAR(compiler, $1)=$CC
17761 -_LT_CC_BASENAME([$compiler])
17763 + cat > conftest.$ac_ext <<_LT_EOF
17764 +#ifdef __cplusplus
17768 +void nm_test_func(void);
17769 +void nm_test_func(void){}
17770 +#ifdef __cplusplus
17773 +int main(){nm_test_var='a';nm_test_func();return(0);}
17776 -# We don't want -fno-exception wen compiling C++ code, so set the
17777 -# no_builtin_flag separately
17778 -if test "$GXX" = yes; then
17779 - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
17781 - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
17783 + if AC_TRY_EVAL(ac_compile); then
17784 + # Now try to grab the symbols.
17785 + nlist=conftest.nm
17786 + if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
17787 + # Try sorting and uniquifying the output.
17788 + if sort "$nlist" | uniq > "$nlist"T; then
17789 + mv -f "$nlist"T "$nlist"
17794 -if test "$GXX" = yes; then
17795 - # Set up default GNU C++ configuration
17796 + # Make sure that we snagged all the symbols we need.
17797 + if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
17798 + if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
17799 + cat <<_LT_EOF > conftest.$ac_ext
17800 +#ifdef __cplusplus
17806 + # Now generate the symbol file.
17807 + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
17809 - # Check if GNU C++ uses GNU ld as the underlying linker, since the
17810 - # archiving commands below assume that GNU ld is being used.
17811 - if test "$with_gnu_ld" = yes; then
17812 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17813 - _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'
17814 + cat <<_LT_EOF >> conftest.$ac_ext
17816 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
17817 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
17818 +/* The mapping between symbol names and symbols. */
17820 + const char *name;
17823 +lt__PROGRAM__LTX_preloaded_symbols[[]] =
17825 + { "@PROGRAM@", (void *) 0 },
17827 + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
17828 + cat <<\_LT_EOF >> conftest.$ac_ext
17832 - # If archive_cmds runs LD, not CC, wlarc should be empty
17833 - # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17834 - # investigate it a little bit more. (MM)
17836 +/* This works around a problem in FreeBSD linker */
17837 +#ifdef FREEBSD_WORKAROUND
17838 +static const void *lt_preloaded_setup() {
17839 + return lt__PROGRAM__LTX_preloaded_symbols;
17843 - # ancient GNU ld didn't support --whole-archive et. al.
17844 - if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
17845 - grep 'no-whole-archive' > /dev/null; then
17846 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17847 +#ifdef __cplusplus
17851 + # Now try linking the two files.
17852 + mv conftest.$ac_objext conftstm.$ac_objext
17853 + lt_save_LIBS="$LIBS"
17854 + lt_save_CFLAGS="$CFLAGS"
17855 + LIBS="conftstm.$ac_objext"
17856 + CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
17857 + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
17860 + LIBS="$lt_save_LIBS"
17861 + CFLAGS="$lt_save_CFLAGS"
17863 + echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
17866 + echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
17869 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
17870 + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
17876 - # A generic and very simple default shared library creation
17877 - # command for GNU C++ for the case where it uses the native
17878 - # linker, instead of GNU ld. If possible, this setting should
17879 - # overridden to take advantage of the native linker features on
17880 - # the platform it is being used on.
17881 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17882 + echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
17883 + cat conftest.$ac_ext >&5
17885 + rm -rf conftest* conftst*
17887 - # Commands to make compiler produce verbose output that lists
17888 - # what "hidden" libraries, object files and flags are used when
17889 - # linking a shared library.
17890 - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
17892 + # Do not use the global_symbol_pipe unless it works.
17893 + if test "$pipe_works" = yes; then
17896 + lt_cv_sys_global_symbol_pipe=
17900 +if test -z "$lt_cv_sys_global_symbol_pipe"; then
17901 + lt_cv_sys_global_symbol_to_cdecl=
17903 +if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
17904 + AC_MSG_RESULT(failed)
17909 + AC_MSG_RESULT(ok)
17912 -# PORTME: fill in a description of your system's C++ link characteristics
17913 -AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
17914 -_LT_AC_TAGVAR(ld_shlibs, $1)=yes
17917 - # FIXME: insert proper C++ library support
17918 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
17921 - if test "$host_cpu" = ia64; then
17922 - # On IA64, the linker does run time linking by default, so we don't
17923 - # have to do anything special.
17924 - aix_use_runtimelinking=no
17925 - exp_sym_flag='-Bexport'
17928 - aix_use_runtimelinking=no
17929 +_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
17930 + [Take the output of nm and produce a listing of raw symbols and C names])
17931 +_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
17932 + [Transform the output of nm in a proper C declaration])
17933 +_LT_DECL([global_symbol_to_c_name_address],
17934 + [lt_cv_sys_global_symbol_to_c_name_address], [1],
17935 + [Transform the output of nm in a C name address pair])
17936 +_LT_DECL([global_symbol_to_c_name_address_lib_prefix],
17937 + [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
17938 + [Transform the output of nm in a C name address pair when lib prefix is needed])
17939 +]) # _LT_CMD_GLOBAL_SYMBOLS
17941 - # Test if we are trying to use run time linking or normal
17942 - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17943 - # need to do runtime linking.
17944 - case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
17945 - for ld_flag in $LDFLAGS; do
17948 - aix_use_runtimelinking=yes
17956 - exp_sym_flag='-bexport'
17957 - no_entry_flag='-bnoentry'
17959 +# _LT_COMPILER_PIC([TAGNAME])
17960 +# ---------------------------
17961 +m4_defun([_LT_COMPILER_PIC],
17962 +[m4_require([_LT_TAG_COMPILER])dnl
17963 +_LT_TAGVAR(lt_prog_compiler_wl, $1)=
17964 +_LT_TAGVAR(lt_prog_compiler_pic, $1)=
17965 +_LT_TAGVAR(lt_prog_compiler_static, $1)=
17967 - # When large executables or shared objects are built, AIX ld can
17968 - # have problems creating the table of contents. If linking a library
17969 - # or program results in "error TOC overflow" add -mminimal-toc to
17970 - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17971 - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17973 - _LT_AC_TAGVAR(archive_cmds, $1)=''
17974 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
17975 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
17976 - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
17977 +AC_MSG_CHECKING([for $compiler option to produce PIC])
17978 +m4_if([$1], [CXX], [
17979 + # C++ specific cases for pic, static, wl, etc.
17980 + if test "$GXX" = yes; then
17981 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
17982 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
17984 - if test "$GXX" = yes; then
17985 - case $host_os in aix4.[[012]]|aix4.[[012]].*)
17986 - # We only want to do this on AIX 4.2 and lower, the check
17987 - # below for broken collect2 doesn't work under 4.3+
17988 - collect2name=`${CC} -print-prog-name=collect2`
17989 - if test -f "$collect2name" && \
17990 - strings "$collect2name" | grep resolve_lib_name >/dev/null
17992 - # We have reworked collect2
17995 - # We have old collect2
17996 - _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
17997 - # It fails to find uninstalled libraries when the uninstalled
17998 - # path is not listed in the libpath. Setting hardcode_minus_L
17999 - # to unsupported forces relinking
18000 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
18001 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
18002 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
18006 - shared_flag='-shared'
18007 - if test "$aix_use_runtimelinking" = yes; then
18008 - shared_flag="$shared_flag "'${wl}-G'
18014 + # All AIX code is PIC.
18015 if test "$host_cpu" = ia64; then
18016 - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18017 - # chokes on -Wl,-G. The following line is correct:
18020 - if test "$aix_use_runtimelinking" = yes; then
18021 - shared_flag='${wl}-G'
18023 - shared_flag='${wl}-bM:SRE'
18025 + # AIX 5 now supports IA64 processor
18026 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
18030 - # It seems that -bexpall does not export symbols beginning with
18031 - # underscore (_), so it is better to generate a list of symbols to export.
18032 - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
18033 - if test "$aix_use_runtimelinking" = yes; then
18034 - # Warning - without using the other runtime loading flags (-brtl),
18035 - # -berok will link without error, but may produce a broken library.
18036 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
18037 - # Determine the default libpath from the value encoded in an empty executable.
18038 - _LT_AC_SYS_LIBPATH_AIX
18039 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
18042 - _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"
18044 - if test "$host_cpu" = ia64; then
18045 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
18046 - _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
18047 - _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"
18049 - # Determine the default libpath from the value encoded in an empty executable.
18050 - _LT_AC_SYS_LIBPATH_AIX
18051 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
18052 - # Warning - without using the other run time loading flags,
18053 - # -berok will link without error, but may produce a broken library.
18054 - _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
18055 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
18056 - # Exported symbols can be pulled into shared objects from archives
18057 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
18058 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
18059 - # This is similar to how AIX traditionally builds its shared libraries.
18060 - _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'
18066 - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18067 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
18068 - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18069 - # support --undefined. This deserves some investigation. FIXME
18070 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18072 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
18077 - case $cc_basename in
18079 - # FIXME: insert proper C++ library support
18080 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
18085 - cygwin* | mingw* | pw32*)
18086 - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
18087 - # as there is no search path for DLLs.
18088 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
18089 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
18090 - _LT_AC_TAGVAR(always_export_symbols, $1)=no
18091 - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
18093 - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18094 - _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'
18095 - # If the export-symbols file already is a .def file (1st line
18096 - # is EXPORTS), use it as is; otherwise, prepend...
18097 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18098 - cp $export_symbols $output_objdir/$soname.def;
18100 - echo EXPORTS > $output_objdir/$soname.def;
18101 - cat $export_symbols >> $output_objdir/$soname.def;
18103 - $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'
18105 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
18108 - darwin* | rhapsody*)
18110 - rhapsody* | darwin1.[[012]])
18111 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
18113 - *) # Darwin 1.3 on
18114 - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18115 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18117 - case ${MACOSX_DEPLOYMENT_TARGET} in
18119 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18122 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
18128 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
18129 - _LT_AC_TAGVAR(hardcode_direct, $1)=no
18130 - _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
18131 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
18132 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
18133 - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
18135 - if test "$GXX" = yes ; then
18136 - lt_int_apple_cc_single_mod=no
18137 - output_verbose_link_cmd='echo'
18138 - if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18139 - lt_int_apple_cc_single_mod=yes
18141 - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18142 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18144 - _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'
18146 - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18147 - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18148 - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18149 - _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}'
18151 - _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}'
18153 - _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}'
18155 - case $cc_basename in
18157 - output_verbose_link_cmd='echo'
18158 - _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` $xlcverstring'
18159 - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18160 - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18161 - _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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18162 - _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}'
18165 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
18170 + case $host_cpu in
18172 + # see comment about AmigaOS4 .so support
18173 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
18176 + # FIXME: we need at least 68020 code to build shared libraries, but
18177 + # adding the `-m68020' flag to GCC prevents building anything better,
18178 + # like `-m68040'.
18179 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
18185 - case $cc_basename in
18187 - # FIXME: insert proper C++ library support
18188 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
18191 - # Green Hills C++ Compiler
18192 - # FIXME: insert proper C++ library support
18193 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
18196 - # FIXME: insert proper C++ library support
18197 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
18202 - # C++ shared libraries reported to be fairly broken before switch to ELF
18203 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
18206 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
18208 - freebsd* | dragonfly*)
18209 - # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18211 - _LT_AC_TAGVAR(ld_shlibs, $1)=yes
18216 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
18217 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
18218 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
18219 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
18220 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
18221 - # but as the default
18222 - # location of the library.
18224 - case $cc_basename in
18226 - # FIXME: insert proper C++ library support
18227 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
18228 + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18229 + # PIC is the default for these OSes.
18232 - _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'
18233 - # Commands to make compiler produce verbose output that lists
18234 - # what "hidden" libraries, object files and flags are used when
18235 - # linking a shared library.
18237 - # There doesn't appear to be a way to prevent this compiler from
18238 - # explicitly linking system object files so we need to strip them
18239 - # from the output so that they don't get included in the library
18241 - 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'
18242 + mingw* | cygwin* | os2* | pw32*)
18243 + # This hack is so that the source file can tell whether it is being
18244 + # built for inclusion in a dll (and should export symbols for example).
18245 + # Although the cygwin gcc ignores -fPIC, still need this for old-style
18246 + # (--disable-auto-import) libraries
18247 + m4_if([$1], [GCJ], [],
18248 + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
18251 - if test "$GXX" = yes; then
18252 - _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'
18254 - # FIXME: insert proper C++ library support
18255 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
18256 + darwin* | rhapsody*)
18257 + # PIC is the default on this platform
18258 + # Common symbols not allowed in MH_DYLIB files
18259 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
18262 + # DJGPP does not support shared libraries at all
18263 + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
18266 + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18267 + # Instead, we relocate shared libraries at runtime.
18270 + if test -d /usr/nec; then
18271 + _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
18277 - if test $with_gnu_ld = no; then
18278 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
18279 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
18282 + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18283 + # not for PA HP-UX.
18285 - hppa*64*|ia64*) ;;
18289 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
18291 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
18295 - case $host_cpu in
18297 - _LT_AC_TAGVAR(hardcode_direct, $1)=no
18298 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
18301 + # QNX uses GNU C++, but need to define -shared option too, otherwise
18302 + # it will coredump.
18303 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
18306 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
18307 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
18308 - # but as the default
18309 - # location of the library.
18310 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
18314 - case $cc_basename in
18316 - # FIXME: insert proper C++ library support
18317 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
18321 + # All AIX code is PIC.
18322 + if test "$host_cpu" = ia64; then
18323 + # AIX 5 now supports IA64 processor
18324 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
18326 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
18330 - case $host_cpu in
18332 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18335 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18338 - _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'
18340 + case $cc_basename in
18342 + # Green Hills C++ Compiler
18343 + # _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"
18346 - # Commands to make compiler produce verbose output that lists
18347 - # what "hidden" libraries, object files and flags are used when
18348 - # linking a shared library.
18350 - # There doesn't appear to be a way to prevent this compiler from
18351 - # explicitly linking system object files so we need to strip them
18352 - # from the output so that they don't get included in the library
18354 - 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'
18357 - if test "$GXX" = yes; then
18358 - if test $with_gnu_ld = no; then
18360 + case $cc_basename in
18362 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
18365 + # Green Hills C++ Compiler
18366 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
18372 + freebsd* | dragonfly*)
18373 + # FreeBSD uses GNU C++
18375 + hpux9* | hpux10* | hpux11*)
18376 + case $cc_basename in
18378 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
18379 + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
18380 + if test "$host_cpu" != ia64; then
18381 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
18385 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
18386 + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
18389 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18392 - _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'
18397 - _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'
18398 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
18403 - # FIXME: insert proper C++ library support
18404 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
18410 - _LT_AC_TAGVAR(hardcode_direct, $1)=no
18411 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
18412 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
18413 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
18414 - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18415 - # Instead, shared libraries are loaded at an image base (0x10000000 by
18416 - # default) and relocated if they conflict, which is a slow very memory
18417 - # consuming and fragmenting process. To avoid this, we pick a random,
18418 - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18419 - # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18420 - _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'
18421 - _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'
18424 - case $cc_basename in
18427 - _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'
18429 - # Archives containing C++ object files must be created using
18430 - # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18431 - # necessary to make sure instantiated templates are included
18432 - # in the archive.
18433 - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
18440 - if test "$GXX" = yes; then
18441 - if test "$with_gnu_ld" = no; then
18442 - _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'
18444 - _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'
18447 - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
18449 + # This is c89, which is MS Visual C++ (no shared libs)
18450 + # Anyone wants to do a port?
18453 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
18454 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
18456 - linux* | k*bsd*-gnu)
18457 - case $cc_basename in
18459 - # Kuck and Associates, Inc. (KAI) C++ Compiler
18461 - # KCC will only create a shared library if the output file
18462 - # ends with ".so" (or ".sl" for HP-UX), so rename the library
18463 - # to its proper name (with version) after linking.
18464 - _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'
18465 - _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'
18466 - # Commands to make compiler produce verbose output that lists
18467 - # what "hidden" libraries, object files and flags are used when
18468 - # linking a shared library.
18470 - # There doesn't appear to be a way to prevent this compiler from
18471 - # explicitly linking system object files so we need to strip them
18472 - # from the output so that they don't get included in the library
18474 - 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'
18476 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
18477 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
18479 - # Archives containing C++ object files must be created using
18480 - # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18481 - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
18486 - # version 8.0 and above of icpc choke on multiply defined symbols
18487 - # if we add $predep_objects and $postdep_objects, however 7.1 and
18488 - # earlier do not add the objects themselves.
18489 - case `$CC -V 2>&1` in
18491 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18492 - _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'
18494 - *) # Version 8.0 or newer
18496 - case $host_cpu in
18497 - ia64*) tmp_idyn=' -i_dynamic';;
18499 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18500 - _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'
18502 + irix5* | irix6* | nonstopux*)
18503 + case $cc_basename in
18505 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
18506 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
18507 + # CC pic flag -KPIC is the default.
18512 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
18513 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
18514 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
18515 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18518 - # Portland Group C++ compiler
18519 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18520 - _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'
18522 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
18523 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
18524 - _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'
18528 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18529 - _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'
18531 - runpath_var=LD_RUN_PATH
18532 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
18533 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
18535 - # Commands to make compiler produce verbose output that lists
18536 - # what "hidden" libraries, object files and flags are used when
18537 - # linking a shared library.
18539 - # There doesn't appear to be a way to prevent this compiler from
18540 - # explicitly linking system object files so we need to strip them
18541 - # from the output so that they don't get included in the library
18543 - 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'
18546 - case `$CC -V 2>&1 | sed 5q` in
18549 - _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
18550 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18551 - _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'
18552 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
18553 - _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'
18555 - # Not sure whether something based on
18556 - # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
18557 - # would be better.
18558 - output_verbose_link_cmd='echo'
18560 - # Archives containing C++ object files must be created using
18561 - # "CC -xar", where "CC" is the Sun C++ compiler. This is
18562 - # necessary to make sure instantiated templates are included
18563 - # in the archive.
18564 - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
18566 + linux* | k*bsd*-gnu)
18567 + case $cc_basename in
18569 + # KAI C++ Compiler
18570 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
18571 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
18575 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
18576 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
18577 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
18580 + # Portland Group C++ compiler
18581 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
18582 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
18583 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
18587 + # Make sure the PIC flag is empty. It appears that all Alpha
18588 + # Linux and Compaq Tru64 Unix objects are PIC.
18589 + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
18590 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
18593 + # IBM XL 8.0 on PPC
18594 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
18595 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
18596 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
18599 + case `$CC -V 2>&1 | sed 5q` in
18602 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
18603 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
18604 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
18613 - # FIXME: insert proper C++ library support
18614 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
18617 - # FIXME: insert proper C++ library support
18618 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
18621 - case $cc_basename in
18623 - # FIXME: insert proper C++ library support
18624 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
18627 - # FIXME: insert proper C++ library support
18628 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
18633 - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18634 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18636 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
18637 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
18638 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
18640 - # Workaround some broken pre-1.5 toolchains
18641 - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18644 - # C++ shared libraries are fairly broken
18645 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
18648 - if test -f /usr/libexec/ld.so; then
18649 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
18650 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
18651 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18652 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
18653 - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18654 - _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'
18655 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
18656 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18658 - output_verbose_link_cmd='echo'
18660 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
18664 - case $cc_basename in
18666 - # Kuck and Associates, Inc. (KAI) C++ Compiler
18668 - # KCC will only create a shared library if the output file
18669 - # ends with ".so" (or ".sl" for HP-UX), so rename the library
18670 - # to its proper name (with version) after linking.
18671 - _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'
18673 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
18674 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
18676 - # Archives containing C++ object files must be created using
18677 - # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18678 - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
18682 - # Rational C++ 2.4.1
18683 - # FIXME: insert proper C++ library support
18684 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
18687 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
18688 - _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'
18690 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
18691 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
18693 - # Commands to make compiler produce verbose output that lists
18694 - # what "hidden" libraries, object files and flags are used when
18695 - # linking a shared library.
18697 - # There doesn't appear to be a way to prevent this compiler from
18698 - # explicitly linking system object files so we need to strip them
18699 - # from the output so that they don't get included in the library
18701 - 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'
18705 - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18706 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
18707 - _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'
18709 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
18710 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
18712 - # Commands to make compiler produce verbose output that lists
18713 - # what "hidden" libraries, object files and flags are used when
18714 - # linking a shared library.
18715 - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18718 - # FIXME: insert proper C++ library support
18719 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
18726 - case $cc_basename in
18728 - # Kuck and Associates, Inc. (KAI) C++ Compiler
18730 - # KCC will only create a shared library if the output file
18731 - # ends with ".so" (or ".sl" for HP-UX), so rename the library
18732 - # to its proper name (with version) after linking.
18733 - _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'
18735 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
18736 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
18738 - # Archives containing C++ object files must be created using
18739 - # the KAI C++ compiler.
18740 - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
18743 - # Rational C++ 2.4.1
18744 - # FIXME: insert proper C++ library support
18745 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
18748 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
18749 - _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'
18750 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18751 - echo "-hidden">> $lib.exp~
18752 - $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~
18755 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
18756 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
18758 - # Commands to make compiler produce verbose output that lists
18759 - # what "hidden" libraries, object files and flags are used when
18760 - # linking a shared library.
18762 - # There doesn't appear to be a way to prevent this compiler from
18763 - # explicitly linking system object files so we need to strip them
18764 - # from the output so that they don't get included in the library
18766 - 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'
18768 + case $cc_basename in
18770 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
18777 - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18778 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
18779 - _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'
18781 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
18782 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
18784 - # Commands to make compiler produce verbose output that lists
18785 - # what "hidden" libraries, object files and flags are used when
18786 - # linking a shared library.
18787 - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18790 - # FIXME: insert proper C++ library support
18791 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
18798 - # FIXME: insert proper C++ library support
18799 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
18802 - case $cc_basename in
18805 - # FIXME: insert proper C++ library support
18806 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
18810 - # FIXME: insert proper C++ library support
18811 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
18813 + # QNX uses GNU C++, but need to define -shared option too, otherwise
18814 + # it will coredump.
18815 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
18817 + osf3* | osf4* | osf5*)
18818 + case $cc_basename in
18820 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
18823 + # Rational C++ 2.4.1
18824 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
18827 + # Digital/Compaq C++
18828 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
18829 + # Make sure the PIC flag is empty. It appears that all Alpha
18830 + # Linux and Compaq Tru64 Unix objects are PIC.
18831 + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
18832 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
18839 - # FIXME: insert proper C++ library support
18840 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
18846 - case $cc_basename in
18848 - # Sun C++ 4.2, 5.x and Centerline C++
18849 - _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
18850 - _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
18851 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18852 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18853 - $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'
18855 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
18856 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
18858 - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
18860 + case $cc_basename in
18862 + # Sun C++ 4.2, 5.x and Centerline C++
18863 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
18864 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
18865 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
18868 + # Green Hills C++ Compiler
18869 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
18872 - # The compiler driver will combine and reorder linker options,
18873 - # but understands `-z linker_flag'.
18874 - # Supported since Solaris 2.6 (maybe 2.5.1?)
18875 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
18878 - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
18880 - output_verbose_link_cmd='echo'
18882 - # Archives containing C++ object files must be created using
18883 - # "CC -xar", where "CC" is the Sun C++ compiler. This is
18884 - # necessary to make sure instantiated templates are included
18885 - # in the archive.
18886 - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
18889 - # Green Hills C++ Compiler
18890 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18892 - # The C++ compiler must be used to create the archive.
18893 - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18896 - # GNU C++ compiler with Solaris linker
18897 - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18898 - _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
18899 - if $CC --version | grep -v '^2\.7' > /dev/null; then
18900 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18901 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18902 - $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
18904 - # Commands to make compiler produce verbose output that lists
18905 - # what "hidden" libraries, object files and flags are used when
18906 - # linking a shared library.
18907 - output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
18909 - # g++ 2.7 appears to require `-G' NOT `-shared' on this
18911 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18912 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18913 - $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
18915 - # Commands to make compiler produce verbose output that lists
18916 - # what "hidden" libraries, object files and flags are used when
18917 - # linking a shared library.
18918 - output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
18921 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
18923 - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
18925 + case $cc_basename in
18928 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
18929 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
18933 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
18936 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18943 - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
18944 - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
18945 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
18946 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
18947 - runpath_var='LD_RUN_PATH'
18949 - case $cc_basename in
18951 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18952 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18955 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18956 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18960 - sysv5* | sco3.2v5* | sco5v6*)
18961 - # Note: We can NOT use -z defs as we might desire, because we do not
18962 - # link with -lc, and that would cause any symbols used from libc to
18963 - # always be unresolved, which means just about no library would
18964 - # ever link correctly. If we're not using GNU ld we use -z text
18965 - # though, which does catch some bad symbols but isn't as heavy-handed
18967 - # For security reasons, it is highly recommended that you always
18968 - # use absolute paths for naming shared libraries, and exclude the
18969 - # DT_RUNPATH tag from executables and libraries. But doing so
18970 - # requires that you compile everything twice, which is a pain.
18971 - # So that behaviour is only enabled if SCOABSPATH is set to a
18972 - # non-empty value in the environment. Most likely only useful for
18973 - # creating official distributions of packages.
18974 - # This is a hack until libtool officially supports absolute path
18975 - # names for shared libraries.
18976 - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
18977 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
18978 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
18979 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
18980 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18981 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
18982 - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
18983 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
18984 - runpath_var='LD_RUN_PATH'
18986 - case $cc_basename in
18988 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18989 - _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'
18993 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18994 - _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'
18995 + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18996 + case $cc_basename in
18998 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
18999 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
19000 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
19007 - case $cc_basename in
19009 - # NonStop-UX NCC 3.20
19010 - # FIXME: insert proper C++ library support
19011 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
19013 + case $cc_basename in
19015 + # NonStop-UX NCC 3.20
19016 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
19023 - # FIXME: insert proper C++ library support
19024 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
19030 - # FIXME: insert proper C++ library support
19031 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
19034 - # FIXME: insert proper C++ library support
19035 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
19038 -AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
19039 -test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
19041 -_LT_AC_TAGVAR(GCC, $1)="$GXX"
19042 -_LT_AC_TAGVAR(LD, $1)="$LD"
19045 -## There is no encapsulation within the following macros, do not change
19046 -## the running order or otherwise move them around unless you know exactly
19047 -## what you are doing...
19048 -AC_LIBTOOL_POSTDEP_PREDEP($1)
19049 -AC_LIBTOOL_PROG_COMPILER_PIC($1)
19050 -AC_LIBTOOL_PROG_CC_C_O($1)
19051 -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
19052 -AC_LIBTOOL_PROG_LD_SHLIBS($1)
19053 -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
19054 -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
19056 -AC_LIBTOOL_CONFIG($1)
19063 -with_gnu_ldcxx=$with_gnu_ld
19064 -with_gnu_ld=$lt_save_with_gnu_ld
19065 -lt_cv_path_LDCXX=$lt_cv_path_LD
19066 -lt_cv_path_LD=$lt_save_path_LD
19067 -lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
19068 -lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
19069 -])# AC_LIBTOOL_LANG_CXX_CONFIG
19071 -# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
19072 -# ------------------------------------
19073 -# Figure out "hidden" library dependencies from verbose
19074 -# compiler output when linking a shared library.
19075 -# Parse the compiler output and extract the necessary
19076 -# objects, libraries and library flags.
19077 -AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
19078 -dnl we can't use the lt_simple_compile_test_code here,
19079 -dnl because it contains code intended for an executable,
19080 -dnl not a library. It's possible we should let each
19081 -dnl tag define a new lt_????_link_test_code variable,
19082 -dnl but it's only used here...
19083 -ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
19085 -void foo (void) { a = 0; }
19087 -],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
19091 - Foo (void) { a = 0; }
19096 -],[$1],[F77],[cat > conftest.$ac_ext <<EOF
19104 -],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
19105 -public class foo {
19107 - public void bar (void) {
19113 -dnl Parse the compiler output and extract the necessary
19114 -dnl objects, libraries and library flags.
19115 -if AC_TRY_EVAL(ac_compile); then
19116 - # Parse the compiler output and extract the necessary
19117 - # objects, libraries and library flags.
19119 - # Sentinel used to keep track of whether or not we are before
19120 - # the conftest object file.
19121 - pre_test_object_deps_done=no
19123 - # The `*' in the case matches for architectures that use `case' in
19124 - # $output_verbose_cmd can trigger glob expansion during the loop
19125 - # eval without this substitution.
19126 - output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19128 - for p in `eval $output_verbose_link_cmd`; do
19132 - # Some compilers place space between "-{L,R}" and the path.
19133 - # Remove the space.
19134 - if test $p = "-L" \
19135 - || test $p = "-R"; then
19142 - if test "$pre_test_object_deps_done" = no; then
19145 - # Internal compiler library paths should come after those
19146 - # provided the user. The postdeps already come after the
19147 - # user supplied libs so there is no need to process them.
19148 - if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
19149 - _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
19151 - _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
19154 - # The "-l" case would never come before the object being
19155 - # linked, so don't bother handling this case.
19158 - if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
19159 - _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
19161 - _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
19167 - # This assumes that the test object file only shows up
19168 - # once in the compiler output.
19169 - if test "$p" = "conftest.$objext"; then
19170 - pre_test_object_deps_done=yes
19174 - if test "$pre_test_object_deps_done" = no; then
19175 - if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
19176 - _LT_AC_TAGVAR(predep_objects, $1)="$p"
19178 - _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
19181 - if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
19182 - _LT_AC_TAGVAR(postdep_objects, $1)="$p"
19184 - _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
19189 - *) ;; # Ignore the rest.
19195 - rm -f a.out a.exe
19197 - echo "libtool.m4: error: problem compiling $1 test program"
19200 -$rm -f confest.$objext
19202 -# PORTME: override above test on systems where it is broken
19203 -ifelse([$1],[CXX],
19206 - # Interix 3.5 installs completely hosed .la files for C++, so rather than
19207 - # hack all around it, let's just trust "g++" to DTRT.
19208 - _LT_AC_TAGVAR(predep_objects,$1)=
19209 - _LT_AC_TAGVAR(postdep_objects,$1)=
19210 - _LT_AC_TAGVAR(postdeps,$1)=
19214 - case `$CC -V 2>&1 | sed 5q` in
19218 - # The more standards-conforming stlport4 library is
19219 - # incompatible with the Cstd library. Avoid specifying
19220 - # it if it's in CXXFLAGS. Ignore libCrun as
19221 - # -library=stlport4 depends on it.
19222 - case " $CXX $CXXFLAGS " in
19223 - *" -library=stlport4 "*)
19224 - solaris_use_stlport4=yes
19227 - if test "$solaris_use_stlport4" != yes; then
19228 - _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
19235 - case $cc_basename in
19237 - # The more standards-conforming stlport4 library is
19238 - # incompatible with the Cstd library. Avoid specifying
19239 - # it if it's in CXXFLAGS. Ignore libCrun as
19240 - # -library=stlport4 depends on it.
19241 - case " $CXX $CXXFLAGS " in
19242 - *" -library=stlport4 "*)
19243 - solaris_use_stlport4=yes
19247 - # Adding this requires a known-good setup of shared libraries for
19248 - # Sun compiler versions before 5.6, else PIC objects from an old
19249 - # archive will be linked into the output, leading to subtle bugs.
19250 - if test "$solaris_use_stlport4" != yes; then
19251 - _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
19259 -case " $_LT_AC_TAGVAR(postdeps, $1) " in
19260 -*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
19262 -])# AC_LIBTOOL_POSTDEP_PREDEP
19264 -# AC_LIBTOOL_LANG_F77_CONFIG
19265 -# --------------------------
19266 -# Ensure that the configuration vars for the C compiler are
19267 -# suitably defined. Those variables are subsequently used by
19268 -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
19269 -AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
19270 -AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
19271 -[AC_REQUIRE([AC_PROG_F77])
19272 -AC_LANG_PUSH(Fortran 77)
19274 -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
19275 -_LT_AC_TAGVAR(allow_undefined_flag, $1)=
19276 -_LT_AC_TAGVAR(always_export_symbols, $1)=no
19277 -_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
19278 -_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
19279 -_LT_AC_TAGVAR(hardcode_direct, $1)=no
19280 -_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
19281 -_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
19282 -_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
19283 -_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
19284 -_LT_AC_TAGVAR(hardcode_automatic, $1)=no
19285 -_LT_AC_TAGVAR(module_cmds, $1)=
19286 -_LT_AC_TAGVAR(module_expsym_cmds, $1)=
19287 -_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
19288 -_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
19289 -_LT_AC_TAGVAR(no_undefined_flag, $1)=
19290 -_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
19291 -_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
19293 -# Source file extension for f77 test sources.
19296 -# Object file extension for compiled f77 test sources.
19298 -_LT_AC_TAGVAR(objext, $1)=$objext
19300 -# Code to be used in simple compile tests
19301 -lt_simple_compile_test_code="\
19307 -# Code to be used in simple link tests
19308 -lt_simple_link_test_code="\
19313 -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19314 -_LT_AC_SYS_COMPILER
19316 -# save warnings/boilerplate of simple test code
19317 -_LT_COMPILER_BOILERPLATE
19318 -_LT_LINKER_BOILERPLATE
19320 -# Allow CC to be a program name with arguments.
19324 -_LT_AC_TAGVAR(compiler, $1)=$CC
19325 -_LT_CC_BASENAME([$compiler])
19327 -AC_MSG_CHECKING([if libtool supports shared libraries])
19328 -AC_MSG_RESULT([$can_build_shared])
19330 -AC_MSG_CHECKING([whether to build shared libraries])
19331 -test "$can_build_shared" = "no" && enable_shared=no
19333 -# On AIX, shared libraries and static libraries use the same namespace, and
19334 -# are all built from PIC.
19337 - test "$enable_shared" = yes && enable_static=no
19338 - if test -n "$RANLIB"; then
19339 - archive_cmds="$archive_cmds~\$RANLIB \$lib"
19340 - postinstall_cmds='$RANLIB $lib'
19344 - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
19345 - test "$enable_shared" = yes && enable_static=no
19349 -AC_MSG_RESULT([$enable_shared])
19351 -AC_MSG_CHECKING([whether to build static libraries])
19352 -# Make sure either enable_shared or enable_static is yes.
19353 -test "$enable_shared" = yes || enable_static=yes
19354 -AC_MSG_RESULT([$enable_static])
19356 -_LT_AC_TAGVAR(GCC, $1)="$G77"
19357 -_LT_AC_TAGVAR(LD, $1)="$LD"
19359 -AC_LIBTOOL_PROG_COMPILER_PIC($1)
19360 -AC_LIBTOOL_PROG_CC_C_O($1)
19361 -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
19362 -AC_LIBTOOL_PROG_LD_SHLIBS($1)
19363 -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
19364 -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
19366 -AC_LIBTOOL_CONFIG($1)
19370 -])# AC_LIBTOOL_LANG_F77_CONFIG
19373 + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
19379 + if test "$GCC" = yes; then
19380 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
19381 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
19383 -# AC_LIBTOOL_LANG_GCJ_CONFIG
19384 -# --------------------------
19385 -# Ensure that the configuration vars for the C compiler are
19386 -# suitably defined. Those variables are subsequently used by
19387 -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
19388 -AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
19389 -AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
19393 + # All AIX code is PIC.
19394 + if test "$host_cpu" = ia64; then
19395 + # AIX 5 now supports IA64 processor
19396 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
19400 -# Source file extension for Java test sources.
19403 + case $host_cpu in
19405 + # see comment about AmigaOS4 .so support
19406 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
19409 + # FIXME: we need at least 68020 code to build shared libraries, but
19410 + # adding the `-m68020' flag to GCC prevents building anything better,
19411 + # like `-m68040'.
19412 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
19417 -# Object file extension for compiled Java test sources.
19419 -_LT_AC_TAGVAR(objext, $1)=$objext
19420 + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19421 + # PIC is the default for these OSes.
19424 -# Code to be used in simple compile tests
19425 -lt_simple_compile_test_code="class foo {}"
19426 + mingw* | cygwin* | pw32* | os2*)
19427 + # This hack is so that the source file can tell whether it is being
19428 + # built for inclusion in a dll (and should export symbols for example).
19429 + # Although the cygwin gcc ignores -fPIC, still need this for old-style
19430 + # (--disable-auto-import) libraries
19431 + m4_if([$1], [GCJ], [],
19432 + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
19435 -# Code to be used in simple link tests
19436 -lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
19437 + darwin* | rhapsody*)
19438 + # PIC is the default on this platform
19439 + # Common symbols not allowed in MH_DYLIB files
19440 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
19443 -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19444 -_LT_AC_SYS_COMPILER
19446 + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19447 + # not for PA HP-UX.
19448 + case $host_cpu in
19453 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
19458 -# save warnings/boilerplate of simple test code
19459 -_LT_COMPILER_BOILERPLATE
19460 -_LT_LINKER_BOILERPLATE
19462 + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19463 + # Instead, we relocate shared libraries at runtime.
19466 -# Allow CC to be a program name with arguments.
19470 -_LT_AC_TAGVAR(compiler, $1)=$CC
19471 -_LT_CC_BASENAME([$compiler])
19473 + # Just because we use GCC doesn't mean we suddenly get shared libraries
19474 + # on systems that don't support them.
19475 + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
19479 -# GCJ did not exist at the time GCC didn't implicitly link libc in.
19480 -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
19482 + # QNX uses GNU C++, but need to define -shared option too, otherwise
19483 + # it will coredump.
19484 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
19487 -_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
19489 + if test -d /usr/nec; then
19490 + _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
19495 -## There is no encapsulation within the following macros, do not change
19496 -## the running order or otherwise move them around unless you know exactly
19497 -## what you are doing...
19498 -AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
19499 -AC_LIBTOOL_PROG_COMPILER_PIC($1)
19500 -AC_LIBTOOL_PROG_CC_C_O($1)
19501 -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
19502 -AC_LIBTOOL_PROG_LD_SHLIBS($1)
19503 -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
19504 -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
19506 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
19510 + # PORTME Check for flag to pass linker flags through the system compiler.
19513 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
19514 + if test "$host_cpu" = ia64; then
19515 + # AIX 5 now supports IA64 processor
19516 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
19518 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
19522 -AC_LIBTOOL_CONFIG($1)
19523 + mingw* | cygwin* | pw32* | os2*)
19524 + # This hack is so that the source file can tell whether it is being
19525 + # built for inclusion in a dll (and should export symbols for example).
19526 + m4_if([$1], [GCJ], [],
19527 + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
19532 -])# AC_LIBTOOL_LANG_GCJ_CONFIG
19533 + hpux9* | hpux10* | hpux11*)
19534 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
19535 + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19536 + # not for PA HP-UX.
19537 + case $host_cpu in
19542 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
19545 + # Is there a better lt_prog_compiler_static that works with the bundled CC?
19546 + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
19549 + irix5* | irix6* | nonstopux*)
19550 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
19551 + # PIC (with -KPIC) is the default.
19552 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
19555 -# AC_LIBTOOL_LANG_RC_CONFIG
19556 -# -------------------------
19557 -# Ensure that the configuration vars for the Windows resource compiler are
19558 -# suitably defined. Those variables are subsequently used by
19559 -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
19560 -AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
19561 -AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
19563 + linux* | k*bsd*-gnu)
19564 + case $cc_basename in
19565 + icc* | ecc* | ifort*)
19566 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
19567 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
19568 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
19570 + pgcc* | pgf77* | pgf90* | pgf95*)
19571 + # Portland Group compilers (*not* the Pentium gcc compiler,
19572 + # which looks to be a dead project)
19573 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
19574 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
19575 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
19578 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
19579 + # All Alpha code is PIC.
19580 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
19583 + # IBM XL C 8.0/Fortran 10.1 on PPC
19584 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
19585 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
19586 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
19589 + case `$CC -V 2>&1 | sed 5q` in
19592 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
19593 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
19594 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
19597 + # Sun Fortran 8.3 passes all unrecognized flags to the linker
19598 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
19599 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
19600 + _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
19607 -# Source file extension for RC test sources.
19610 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
19611 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
19614 -# Object file extension for compiled RC test sources.
19616 -_LT_AC_TAGVAR(objext, $1)=$objext
19618 + # QNX uses GNU C++, but need to define -shared option too, otherwise
19619 + # it will coredump.
19620 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
19623 -# Code to be used in simple compile tests
19624 -lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19625 + osf3* | osf4* | osf5*)
19626 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
19627 + # All OSF/1 code is PIC.
19628 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
19631 -# Code to be used in simple link tests
19632 -lt_simple_link_test_code="$lt_simple_compile_test_code"
19634 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
19637 -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19638 -_LT_AC_SYS_COMPILER
19640 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
19641 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
19642 + case $cc_basename in
19643 + f77* | f90* | f95*)
19644 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
19646 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
19650 -# save warnings/boilerplate of simple test code
19651 -_LT_COMPILER_BOILERPLATE
19652 -_LT_LINKER_BOILERPLATE
19654 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
19655 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
19656 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
19659 -# Allow CC to be a program name with arguments.
19661 -CC=${RC-"windres"}
19663 -_LT_AC_TAGVAR(compiler, $1)=$CC
19664 -_LT_CC_BASENAME([$compiler])
19665 -_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
19666 + sysv4 | sysv4.2uw2* | sysv4.3*)
19667 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
19668 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
19669 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
19672 -AC_LIBTOOL_CONFIG($1)
19674 + if test -d /usr/nec ;then
19675 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
19676 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
19682 -])# AC_LIBTOOL_LANG_RC_CONFIG
19683 + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19684 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
19685 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
19686 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
19690 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
19691 + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
19694 -# AC_LIBTOOL_CONFIG([TAGNAME])
19695 -# ----------------------------
19696 -# If TAGNAME is not passed, then create an initial libtool script
19697 -# with a default configuration from the untagged config vars. Otherwise
19698 -# add code to config.status for appending the configuration named by
19699 -# TAGNAME from the matching tagged config vars.
19700 -AC_DEFUN([AC_LIBTOOL_CONFIG],
19701 -[# The else clause should only fire when bootstrapping the
19702 -# libtool distribution, otherwise you forgot to ship ltmain.sh
19703 -# with your package, and you will get complaints that there are
19704 -# no rules to generate ltmain.sh.
19705 -if test -f "$ltmain"; then
19706 - # See if we are running on zsh, and set the options which allow our commands through
19707 - # without removal of \ escapes.
19708 - if test -n "${ZSH_VERSION+set}" ; then
19709 - setopt NO_GLOB_SUBST
19711 - # Now quote all the things that may contain metacharacters while being
19712 - # careful not to overquote the AC_SUBSTed values. We take copies of the
19713 - # variables and quote the copies for generation of the libtool script.
19714 - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19715 - SED SHELL STRIP \
19716 - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19717 - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19718 - deplibs_check_method reload_flag reload_cmds need_locks \
19719 - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19720 - lt_cv_sys_global_symbol_to_c_name_address \
19721 - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19722 - old_postinstall_cmds old_postuninstall_cmds \
19723 - _LT_AC_TAGVAR(compiler, $1) \
19724 - _LT_AC_TAGVAR(CC, $1) \
19725 - _LT_AC_TAGVAR(LD, $1) \
19726 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
19727 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
19728 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
19729 - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
19730 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
19731 - _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
19732 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
19733 - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
19734 - _LT_AC_TAGVAR(old_archive_cmds, $1) \
19735 - _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
19736 - _LT_AC_TAGVAR(predep_objects, $1) \
19737 - _LT_AC_TAGVAR(postdep_objects, $1) \
19738 - _LT_AC_TAGVAR(predeps, $1) \
19739 - _LT_AC_TAGVAR(postdeps, $1) \
19740 - _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
19741 - _LT_AC_TAGVAR(archive_cmds, $1) \
19742 - _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
19743 - _LT_AC_TAGVAR(postinstall_cmds, $1) \
19744 - _LT_AC_TAGVAR(postuninstall_cmds, $1) \
19745 - _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
19746 - _LT_AC_TAGVAR(allow_undefined_flag, $1) \
19747 - _LT_AC_TAGVAR(no_undefined_flag, $1) \
19748 - _LT_AC_TAGVAR(export_symbols_cmds, $1) \
19749 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
19750 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
19751 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
19752 - _LT_AC_TAGVAR(hardcode_automatic, $1) \
19753 - _LT_AC_TAGVAR(module_cmds, $1) \
19754 - _LT_AC_TAGVAR(module_expsym_cmds, $1) \
19755 - _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
19756 - _LT_AC_TAGVAR(fix_srcfile_path, $1) \
19757 - _LT_AC_TAGVAR(exclude_expsyms, $1) \
19758 - _LT_AC_TAGVAR(include_expsyms, $1); do
19761 - _LT_AC_TAGVAR(old_archive_cmds, $1) | \
19762 - _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
19763 - _LT_AC_TAGVAR(archive_cmds, $1) | \
19764 - _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
19765 - _LT_AC_TAGVAR(module_cmds, $1) | \
19766 - _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
19767 - _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
19768 - _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
19769 - extract_expsyms_cmds | reload_cmds | finish_cmds | \
19770 - postinstall_cmds | postuninstall_cmds | \
19771 - old_postinstall_cmds | old_postuninstall_cmds | \
19772 - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19773 - # Double-quote double-evaled strings.
19774 - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19776 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
19777 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
19781 - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19782 + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
19788 - *'\[$]0 --fallback-echo"')
19789 - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
19793 + # For platforms which do not support PIC, -DPIC is meaningless:
19795 + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
19800 - [cfgfile="${ofile}T"
19801 - trap "$rm \"$cfgfile\"; exit 1" 1 2 15
19802 - $rm -f "$cfgfile"
19803 - AC_MSG_NOTICE([creating $ofile])],
19804 - [cfgfile="$ofile"])
19806 - cat <<__EOF__ >> "$cfgfile"
19810 + _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
19813 +AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
19814 +_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
19815 + [How to pass a linker flag through the compiler])
19817 -# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19818 -# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
19819 -# NOTE: Changes made to this file will be lost: look at ltmain.sh.
19821 -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
19822 -# Free Software Foundation, Inc.
19824 -# This file is part of GNU Libtool:
19825 -# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
19827 -# This program is free software; you can redistribute it and/or modify
19828 -# it under the terms of the GNU General Public License as published by
19829 -# the Free Software Foundation; either version 2 of the License, or
19830 -# (at your option) any later version.
19831 +# Check to make sure the PIC flag actually works.
19833 -# This program is distributed in the hope that it will be useful, but
19834 -# WITHOUT ANY WARRANTY; without even the implied warranty of
19835 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19836 -# General Public License for more details.
19837 +if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
19838 + _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
19839 + [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
19840 + [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
19841 + [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
19843 + *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
19845 + [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
19846 + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
19848 +_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
19849 + [Additional compiler flags for building library objects])
19852 -# You should have received a copy of the GNU General Public License
19853 -# along with this program; if not, write to the Free Software
19854 -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19855 +# Check to make sure the static flag actually works.
19857 -# As a special exception to the GNU General Public License, if you
19858 -# distribute this file as part of a program that contains a
19859 -# configuration script generated by Autoconf, you may include it under
19860 -# the same distribution terms that you use for the rest of that program.
19862 -# A sed program that does not truncate output.
19865 -# Sed that helps us avoid accidentally triggering echo(1) options like -n.
19866 -Xsed="$SED -e 1s/^X//"
19868 -# The HP-UX ksh and POSIX shell print the target directory to stdout
19869 -# if CDPATH is set.
19870 -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19872 -# The names of the tagged configurations supported by this script.
19875 -# ### BEGIN LIBTOOL CONFIG],
19876 -[# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
19878 -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19880 -# Shell to use when invoking shell scripts.
19883 -# Whether or not to build shared libraries.
19884 -build_libtool_libs=$enable_shared
19886 -# Whether or not to build static libraries.
19887 -build_old_libs=$enable_static
19889 -# Whether or not to add -lc for building shared libraries.
19890 -build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
19892 -# Whether or not to disallow shared libs when runtime libs are static
19893 -allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
19895 -# Whether or not to optimize for fast installation.
19896 -fast_install=$enable_fast_install
19898 -# The host system.
19899 -host_alias=$host_alias
19903 -# The build system.
19904 -build_alias=$build_alias
19906 -build_os=$build_os
19908 -# An echo program that does not interpret backslashes.
19913 -AR_FLAGS=$lt_AR_FLAGS
19918 -# LTCC compiler flags.
19919 -LTCFLAGS=$lt_LTCFLAGS
19921 -# A language-specific compiler.
19922 -CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
19924 -# Is the compiler the GNU C compiler?
19925 -with_gcc=$_LT_AC_TAGVAR(GCC, $1)
19930 -# The linker used to build libraries.
19931 -LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
19933 -# Whether we need hard or soft links.
19936 -# A BSD-compatible nm program.
19939 -# A symbol stripping program
19942 -# Used to examine libraries when file_magic_cmd begins "file"
19943 -MAGIC_CMD=$MAGIC_CMD
19945 -# Used on cygwin: DLL creation program.
19946 -DLLTOOL="$DLLTOOL"
19948 -# Used on cygwin: object dumper.
19949 -OBJDUMP="$OBJDUMP"
19950 +wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
19951 +_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
19952 + _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
19953 + $lt_tmp_static_flag,
19955 + [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
19956 +_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
19957 + [Compiler flag to prevent dynamic linking])
19958 +])# _LT_COMPILER_PIC
19960 -# Used on cygwin: assembler.
19963 -# The name of the directory that contains temporary libtool files.
19965 +# _LT_LINKER_SHLIBS([TAGNAME])
19966 +# ----------------------------
19967 +# See if the linker supports building shared libraries.
19968 +m4_defun([_LT_LINKER_SHLIBS],
19969 +[AC_REQUIRE([LT_PATH_LD])dnl
19970 +AC_REQUIRE([LT_PATH_NM])dnl
19971 +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
19972 +m4_require([_LT_DECL_EGREP])dnl
19973 +m4_require([_LT_DECL_SED])dnl
19974 +m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
19975 +m4_require([_LT_TAG_COMPILER])dnl
19976 +AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
19977 +m4_if([$1], [CXX], [
19978 + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19981 + # If we're using GNU nm, then we don't want the "-C" option.
19982 + # -C means demangle to AIX nm, but means don't demangle with GNU nm
19983 + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
19984 + _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'
19986 + _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'
19990 + _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
19992 + cygwin* | mingw*)
19993 + _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'
19996 + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19999 + _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
20002 + _LT_TAGVAR(allow_undefined_flag, $1)=
20003 + _LT_TAGVAR(always_export_symbols, $1)=no
20004 + _LT_TAGVAR(archive_cmds, $1)=
20005 + _LT_TAGVAR(archive_expsym_cmds, $1)=
20006 + _LT_TAGVAR(compiler_needs_object, $1)=no
20007 + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
20008 + _LT_TAGVAR(export_dynamic_flag_spec, $1)=
20009 + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20010 + _LT_TAGVAR(hardcode_automatic, $1)=no
20011 + _LT_TAGVAR(hardcode_direct, $1)=no
20012 + _LT_TAGVAR(hardcode_direct_absolute, $1)=no
20013 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
20014 + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
20015 + _LT_TAGVAR(hardcode_libdir_separator, $1)=
20016 + _LT_TAGVAR(hardcode_minus_L, $1)=no
20017 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
20018 + _LT_TAGVAR(inherit_rpath, $1)=no
20019 + _LT_TAGVAR(link_all_deplibs, $1)=unknown
20020 + _LT_TAGVAR(module_cmds, $1)=
20021 + _LT_TAGVAR(module_expsym_cmds, $1)=
20022 + _LT_TAGVAR(old_archive_from_new_cmds, $1)=
20023 + _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
20024 + _LT_TAGVAR(thread_safe_flag_spec, $1)=
20025 + _LT_TAGVAR(whole_archive_flag_spec, $1)=
20026 + # include_expsyms should be a list of space-separated symbols to be *always*
20027 + # included in the symbol list
20028 + _LT_TAGVAR(include_expsyms, $1)=
20029 + # exclude_expsyms can be an extended regexp of symbols to exclude
20030 + # it will be wrapped by ` (' and `)$', so one must not match beginning or
20031 + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
20032 + # as well as any symbol that contains `d'.
20033 + _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
20034 + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
20035 + # platforms (ab)use it in PIC code, but their linkers get confused if
20036 + # the symbol is explicitly referenced. Since portable code cannot
20037 + # rely on this symbol name, it's probably fine to never include it in
20038 + # preloaded symbol tables.
20039 + # Exclude shared library initialization/finalization symbols.
20040 +dnl Note also adjust exclude_expsyms for C++ above.
20041 + extract_expsyms_cmds=
20043 -# How to create reloadable object files.
20044 -reload_flag=$lt_reload_flag
20045 -reload_cmds=$lt_reload_cmds
20047 + cygwin* | mingw* | pw32*)
20048 + # FIXME: the MSVC++ port hasn't been tested in a loooong time
20049 + # When not using gcc, we currently assume that we are using
20050 + # Microsoft Visual C++.
20051 + if test "$GCC" != yes; then
20056 + # we just hope/assume this is gcc and not c89 (= MSVC++)
20064 -# How to pass a linker flag through the compiler.
20065 -wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
20066 + _LT_TAGVAR(ld_shlibs, $1)=yes
20067 + if test "$with_gnu_ld" = yes; then
20068 + # If archive_cmds runs LD, not CC, wlarc should be empty
20071 -# Object file suffix (normally "o").
20072 -objext="$ac_objext"
20073 + # Set some defaults for GNU ld with shared library support. These
20074 + # are reset later if shared libraries are not supported. Putting them
20075 + # here allows them to be overridden if necessary.
20076 + runpath_var=LD_RUN_PATH
20077 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
20078 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
20079 + # ancient GNU ld didn't support --whole-archive et. al.
20080 + if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
20081 + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20083 + _LT_TAGVAR(whole_archive_flag_spec, $1)=
20085 + supports_anon_versioning=no
20086 + case `$LD -v 2>&1` in
20087 + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
20088 + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
20089 + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
20090 + *\ 2.11.*) ;; # other 2.11 versions
20091 + *) supports_anon_versioning=yes ;;
20094 -# Old archive suffix (normally "a").
20096 + # See if GNU ld supports shared libraries.
20099 + # On AIX/PPC, the GNU linker is very broken
20100 + if test "$host_cpu" != ia64; then
20101 + _LT_TAGVAR(ld_shlibs, $1)=no
20102 + cat <<_LT_EOF 1>&2
20104 -# Shared library suffix (normally ".so").
20105 -shrext_cmds='$shrext_cmds'
20106 +*** Warning: the GNU linker, at least up to release 2.9.1, is reported
20107 +*** to be unable to reliably create shared libraries on AIX.
20108 +*** Therefore, libtool is disabling shared libraries support. If you
20109 +*** really care for shared libraries, you may want to modify your PATH
20110 +*** so that a non-GNU linker is found, and then restart.
20112 -# Executable file suffix (normally "").
20118 -# Additional compiler flags for building library objects.
20119 -pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
20120 -pic_mode=$pic_mode
20122 + case $host_cpu in
20124 + # see comment about AmigaOS4 .so support
20125 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20126 + _LT_TAGVAR(archive_expsym_cmds, $1)=''
20129 + _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)'
20130 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
20131 + _LT_TAGVAR(hardcode_minus_L, $1)=yes
20136 -# What is the maximum length of a command?
20137 -max_cmd_len=$lt_cv_sys_max_cmd_len
20139 + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
20140 + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
20141 + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
20142 + # support --undefined. This deserves some investigation. FIXME
20143 + _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20145 + _LT_TAGVAR(ld_shlibs, $1)=no
20149 -# Does compiler simultaneously support -c and -o options?
20150 -compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
20151 + cygwin* | mingw* | pw32*)
20152 + # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
20153 + # as there is no search path for DLLs.
20154 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
20155 + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
20156 + _LT_TAGVAR(always_export_symbols, $1)=no
20157 + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
20158 + _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'
20160 -# Must we lock files when doing compilation?
20161 -need_locks=$lt_need_locks
20162 + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
20163 + _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'
20164 + # If the export-symbols file already is a .def file (1st line
20165 + # is EXPORTS), use it as is; otherwise, prepend...
20166 + _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
20167 + cp $export_symbols $output_objdir/$soname.def;
20169 + echo EXPORTS > $output_objdir/$soname.def;
20170 + cat $export_symbols >> $output_objdir/$soname.def;
20172 + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
20174 + _LT_TAGVAR(ld_shlibs, $1)=no
20178 -# Do we need the lib prefix for modules?
20179 -need_lib_prefix=$need_lib_prefix
20181 + _LT_TAGVAR(hardcode_direct, $1)=no
20182 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
20183 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
20184 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
20185 + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
20186 + # Instead, shared libraries are loaded at an image base (0x10000000 by
20187 + # default) and relocated if they conflict, which is a slow very memory
20188 + # consuming and fragmenting process. To avoid this, we pick a random,
20189 + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
20190 + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
20191 + _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'
20192 + _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'
20195 -# Do we need a version for libraries?
20196 -need_version=$need_version
20197 + gnu* | linux* | tpf* | k*bsd*-gnu)
20199 + if test "$host_os" = linux-dietlibc; then
20200 + case $cc_basename in
20201 + diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
20204 + if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
20205 + && test "$tmp_diet" = no
20208 + tmp_sharedflag='-shared'
20209 + case $cc_basename,$host_cpu in
20210 + pgcc*) # Portland Group C compiler
20211 + _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'
20212 + tmp_addflag=' $pic_flag'
20214 + pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
20215 + _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'
20216 + tmp_addflag=' $pic_flag -Mnomain' ;;
20217 + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
20218 + tmp_addflag=' -i_dynamic' ;;
20219 + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
20220 + tmp_addflag=' -i_dynamic -nofor_main' ;;
20221 + ifc* | ifort*) # Intel Fortran compiler
20222 + tmp_addflag=' -nofor_main' ;;
20223 + xl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
20224 + tmp_sharedflag='-qmkshrobj'
20227 + case `$CC -V 2>&1 | sed 5q` in
20228 + *Sun\ C*) # Sun C 5.9
20229 + _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'
20230 + _LT_TAGVAR(compiler_needs_object, $1)=yes
20231 + tmp_sharedflag='-G' ;;
20232 + *Sun\ F*) # Sun Fortran 8.3
20233 + tmp_sharedflag='-G' ;;
20235 + _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20237 -# Whether dlopen is supported.
20238 -dlopen_support=$enable_dlopen
20239 + if test "x$supports_anon_versioning" = xyes; then
20240 + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
20241 + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
20242 + echo "local: *; };" >> $output_objdir/$libname.ver~
20243 + $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
20246 -# Whether dlopen of programs is supported.
20247 -dlopen_self=$enable_dlopen_self
20248 + case $cc_basename in
20250 + # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
20251 + _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
20252 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
20253 + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
20254 + _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
20255 + if test "x$supports_anon_versioning" = xyes; then
20256 + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
20257 + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
20258 + echo "local: *; };" >> $output_objdir/$libname.ver~
20259 + $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
20264 + _LT_TAGVAR(ld_shlibs, $1)=no
20268 -# Whether dlopen of statically linked programs is supported.
20269 -dlopen_self_static=$enable_dlopen_self_static
20271 + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20272 + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
20275 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20276 + _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'
20280 -# Compiler flag to prevent dynamic linking.
20281 -link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
20283 + if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
20284 + _LT_TAGVAR(ld_shlibs, $1)=no
20285 + cat <<_LT_EOF 1>&2
20287 -# Compiler flag to turn off builtin functions.
20288 -no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
20289 +*** Warning: The releases 2.8.* of the GNU linker cannot reliably
20290 +*** create shared libraries on Solaris systems. Therefore, libtool
20291 +*** is disabling shared libraries support. We urge you to upgrade GNU
20292 +*** binutils to release 2.9.1 or newer. Another option is to modify
20293 +*** your PATH or compiler configuration so that the native linker is
20294 +*** used, and then restart.
20296 -# Compiler flag to allow reflexive dlopens.
20297 -export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
20299 + elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
20300 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20301 + _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'
20303 + _LT_TAGVAR(ld_shlibs, $1)=no
20307 -# Compiler flag to generate shared objects directly from archives.
20308 -whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
20309 + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
20310 + case `$LD -v 2>&1` in
20311 + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
20312 + _LT_TAGVAR(ld_shlibs, $1)=no
20313 + cat <<_LT_EOF 1>&2
20315 -# Compiler flag to generate thread-safe objects.
20316 -thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
20317 +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
20318 +*** reliably create shared libraries on SCO systems. Therefore, libtool
20319 +*** is disabling shared libraries support. We urge you to upgrade GNU
20320 +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
20321 +*** your PATH or compiler configuration so that the native linker is
20322 +*** used, and then restart.
20324 -# Library versioning type.
20325 -version_type=$version_type
20329 + # For security reasons, it is highly recommended that you always
20330 + # use absolute paths for naming shared libraries, and exclude the
20331 + # DT_RUNPATH tag from executables and libraries. But doing so
20332 + # requires that you compile everything twice, which is a pain.
20333 + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
20334 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
20335 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20336 + _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'
20338 + _LT_TAGVAR(ld_shlibs, $1)=no
20344 -# Format of library name prefix.
20345 -libname_spec=$lt_libname_spec
20347 + _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20349 + _LT_TAGVAR(hardcode_direct, $1)=yes
20350 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
20353 -# List of archive names. First name is the real one, the rest are links.
20354 -# The last name is the one that the linker finds with -lNAME.
20355 -library_names_spec=$lt_library_names_spec
20357 + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
20358 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20359 + _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'
20361 + _LT_TAGVAR(ld_shlibs, $1)=no
20366 -# The coded name of the library, if different from the real name.
20367 -soname_spec=$lt_soname_spec
20368 + if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
20370 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
20371 + _LT_TAGVAR(export_dynamic_flag_spec, $1)=
20372 + _LT_TAGVAR(whole_archive_flag_spec, $1)=
20375 + # PORTME fill in a description of your system's linker (not GNU ld)
20378 + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
20379 + _LT_TAGVAR(always_export_symbols, $1)=yes
20380 + _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'
20381 + # Note: this linker hardcodes the directories in LIBPATH if there
20382 + # are no directories specified by -L.
20383 + _LT_TAGVAR(hardcode_minus_L, $1)=yes
20384 + if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
20385 + # Neither direct hardcoding nor static linking is supported with a
20386 + # broken collect2.
20387 + _LT_TAGVAR(hardcode_direct, $1)=unsupported
20391 -# Commands used to build and install an old-style archive.
20393 -old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
20394 -old_postinstall_cmds=$lt_old_postinstall_cmds
20395 -old_postuninstall_cmds=$lt_old_postuninstall_cmds
20397 + if test "$host_cpu" = ia64; then
20398 + # On IA64, the linker does run time linking by default, so we don't
20399 + # have to do anything special.
20400 + aix_use_runtimelinking=no
20401 + exp_sym_flag='-Bexport'
20404 + # If we're using GNU nm, then we don't want the "-C" option.
20405 + # -C means demangle to AIX nm, but means don't demangle with GNU nm
20406 + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20407 + _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'
20409 + _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'
20411 + aix_use_runtimelinking=no
20413 -# Create an old-style archive from a shared archive.
20414 -old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
20415 + # Test if we are trying to use run time linking or normal
20416 + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
20417 + # need to do runtime linking.
20418 + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
20419 + for ld_flag in $LDFLAGS; do
20420 + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
20421 + aix_use_runtimelinking=yes
20428 -# Create a temporary old-style archive to link instead of a shared archive.
20429 -old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
20430 + exp_sym_flag='-bexport'
20431 + no_entry_flag='-bnoentry'
20434 -# Commands used to build and install a shared archive.
20435 -archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
20436 -archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
20437 -postinstall_cmds=$lt_postinstall_cmds
20438 -postuninstall_cmds=$lt_postuninstall_cmds
20439 + # When large executables or shared objects are built, AIX ld can
20440 + # have problems creating the table of contents. If linking a library
20441 + # or program results in "error TOC overflow" add -mminimal-toc to
20442 + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
20443 + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
20445 -# Commands used to build a loadable module (assumed same as above if empty)
20446 -module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
20447 -module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
20448 + _LT_TAGVAR(archive_cmds, $1)=''
20449 + _LT_TAGVAR(hardcode_direct, $1)=yes
20450 + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
20451 + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
20452 + _LT_TAGVAR(link_all_deplibs, $1)=yes
20453 + _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
20455 -# Commands to strip libraries.
20456 -old_striplib=$lt_old_striplib
20457 -striplib=$lt_striplib
20458 + if test "$GCC" = yes; then
20459 + case $host_os in aix4.[[012]]|aix4.[[012]].*)
20460 + # We only want to do this on AIX 4.2 and lower, the check
20461 + # below for broken collect2 doesn't work under 4.3+
20462 + collect2name=`${CC} -print-prog-name=collect2`
20463 + if test -f "$collect2name" &&
20464 + strings "$collect2name" | $GREP resolve_lib_name >/dev/null
20466 + # We have reworked collect2
20469 + # We have old collect2
20470 + _LT_TAGVAR(hardcode_direct, $1)=unsupported
20471 + # It fails to find uninstalled libraries when the uninstalled
20472 + # path is not listed in the libpath. Setting hardcode_minus_L
20473 + # to unsupported forces relinking
20474 + _LT_TAGVAR(hardcode_minus_L, $1)=yes
20475 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
20476 + _LT_TAGVAR(hardcode_libdir_separator, $1)=
20480 + shared_flag='-shared'
20481 + if test "$aix_use_runtimelinking" = yes; then
20482 + shared_flag="$shared_flag "'${wl}-G'
20486 + if test "$host_cpu" = ia64; then
20487 + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
20488 + # chokes on -Wl,-G. The following line is correct:
20491 + if test "$aix_use_runtimelinking" = yes; then
20492 + shared_flag='${wl}-G'
20494 + shared_flag='${wl}-bM:SRE'
20499 -# Dependencies to place before the objects being linked to create a
20501 -predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
20502 + # It seems that -bexpall does not export symbols beginning with
20503 + # underscore (_), so it is better to generate a list of symbols to export.
20504 + _LT_TAGVAR(always_export_symbols, $1)=yes
20505 + if test "$aix_use_runtimelinking" = yes; then
20506 + # Warning - without using the other runtime loading flags (-brtl),
20507 + # -berok will link without error, but may produce a broken library.
20508 + _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
20509 + # Determine the default libpath from the value encoded in an
20510 + # empty executable.
20511 + _LT_SYS_MODULE_PATH_AIX
20512 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
20513 + _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"
20515 + if test "$host_cpu" = ia64; then
20516 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
20517 + _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
20518 + _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"
20520 + # Determine the default libpath from the value encoded in an
20521 + # empty executable.
20522 + _LT_SYS_MODULE_PATH_AIX
20523 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
20524 + # Warning - without using the other run time loading flags,
20525 + # -berok will link without error, but may produce a broken library.
20526 + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
20527 + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
20528 + # Exported symbols can be pulled into shared objects from archives
20529 + _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
20530 + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
20531 + # This is similar to how AIX traditionally builds its shared libraries.
20532 + _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'
20537 -# Dependencies to place after the objects being linked to create a
20539 -postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
20541 + case $host_cpu in
20543 + # see comment about AmigaOS4 .so support
20544 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20545 + _LT_TAGVAR(archive_expsym_cmds, $1)=''
20548 + _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)'
20549 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
20550 + _LT_TAGVAR(hardcode_minus_L, $1)=yes
20555 -# Dependencies to place before the objects being linked to create a
20557 -predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
20559 + _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
20562 -# Dependencies to place after the objects being linked to create a
20564 -postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
20565 + cygwin* | mingw* | pw32*)
20566 + # When not using gcc, we currently assume that we are using
20567 + # Microsoft Visual C++.
20568 + # hardcode_libdir_flag_spec is actually meaningless, as there is
20569 + # no search path for DLLs.
20570 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
20571 + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
20572 + # Tell ltmain to make .lib files, not .a files.
20574 + # Tell ltmain to make .dll files, not .so files.
20575 + shrext_cmds=".dll"
20576 + # FIXME: Setting linknames here is a bad hack.
20577 + _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
20578 + # The linker will automatically build a .lib file if we build a DLL.
20579 + _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
20580 + # FIXME: Should let the user specify the lib program.
20581 + _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
20582 + _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
20583 + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
20586 -# The library search path used internally by the compiler when linking
20587 -# a shared library.
20588 -compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
20589 + darwin* | rhapsody*)
20590 + _LT_DARWIN_LINKER_FEATURES($1)
20593 -# Method to check whether dependent libraries are shared objects.
20594 -deplibs_check_method=$lt_deplibs_check_method
20596 + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20597 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
20598 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
20601 -# Command to use when deplibs_check_method == file_magic.
20602 -file_magic_cmd=$lt_file_magic_cmd
20604 + _LT_TAGVAR(ld_shlibs, $1)=no
20607 -# Flag that allows shared libraries with undefined symbols to be built.
20608 -allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
20609 + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
20610 + # support. Future versions do this automatically, but an explicit c++rt0.o
20611 + # does not break anything, and helps significantly (at the cost of a little
20614 + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
20615 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
20616 + _LT_TAGVAR(hardcode_direct, $1)=yes
20617 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
20620 -# Flag that forces no undefined symbols.
20621 -no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
20622 + # Unfortunately, older versions of FreeBSD 2 do not have this feature.
20624 + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20625 + _LT_TAGVAR(hardcode_direct, $1)=yes
20626 + _LT_TAGVAR(hardcode_minus_L, $1)=yes
20627 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
20630 -# Commands used to finish a libtool library installation in a directory.
20631 -finish_cmds=$lt_finish_cmds
20632 + # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
20633 + freebsd* | dragonfly*)
20634 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
20635 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
20636 + _LT_TAGVAR(hardcode_direct, $1)=yes
20637 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
20640 -# Same as above, but a single script fragment to be evaled but not shown.
20641 -finish_eval=$lt_finish_eval
20643 + if test "$GCC" = yes; then
20644 + _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'
20646 + _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'
20648 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
20649 + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
20650 + _LT_TAGVAR(hardcode_direct, $1)=yes
20652 -# Take the output of nm and produce a listing of raw symbols and C names.
20653 -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20654 + # hardcode_minus_L: Not really in the search PATH,
20655 + # but as the default location of the library.
20656 + _LT_TAGVAR(hardcode_minus_L, $1)=yes
20657 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
20660 -# Transform the output of nm in a proper C declaration
20661 -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20663 + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
20664 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
20666 + _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
20668 + if test "$with_gnu_ld" = no; then
20669 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
20670 + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
20671 + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
20672 + _LT_TAGVAR(hardcode_direct, $1)=yes
20673 + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
20674 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
20675 + # hardcode_minus_L: Not really in the search PATH,
20676 + # but as the default location of the library.
20677 + _LT_TAGVAR(hardcode_minus_L, $1)=yes
20681 -# Transform the output of nm in a C name address pair
20682 -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20684 + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
20685 + case $host_cpu in
20687 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20690 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
20693 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
20697 + case $host_cpu in
20699 + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20702 + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
20705 + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
20709 + if test "$with_gnu_ld" = no; then
20710 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
20711 + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
20713 -# This is the shared library runtime path variable.
20714 -runpath_var=$runpath_var
20715 + case $host_cpu in
20717 + _LT_TAGVAR(hardcode_direct, $1)=no
20718 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
20721 + _LT_TAGVAR(hardcode_direct, $1)=yes
20722 + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
20723 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
20725 -# This is the shared library path variable.
20726 -shlibpath_var=$shlibpath_var
20727 + # hardcode_minus_L: Not really in the search PATH,
20728 + # but as the default location of the library.
20729 + _LT_TAGVAR(hardcode_minus_L, $1)=yes
20735 -# Is shlibpath searched before the hard-coded library search path?
20736 -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20737 + irix5* | irix6* | nonstopux*)
20738 + if test "$GCC" = yes; then
20739 + _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'
20740 + # Try to use the -exported_symbol ld option, if it does not
20741 + # work, assume that -exports_file does not work either and
20742 + # implicitly export all symbols.
20743 + save_LDFLAGS="$LDFLAGS"
20744 + LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
20745 + AC_LINK_IFELSE(int foo(void) {},
20746 + _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'
20748 + LDFLAGS="$save_LDFLAGS"
20750 + _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'
20751 + _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'
20753 + _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
20754 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
20755 + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
20756 + _LT_TAGVAR(inherit_rpath, $1)=yes
20757 + _LT_TAGVAR(link_all_deplibs, $1)=yes
20760 -# How to hardcode a shared library path into an executable.
20761 -hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
20763 + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20764 + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
20766 + _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
20768 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
20769 + _LT_TAGVAR(hardcode_direct, $1)=yes
20770 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
20773 -# Whether we should hardcode library paths into libraries.
20774 -hardcode_into_libs=$hardcode_into_libs
20776 + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20777 + _LT_TAGVAR(hardcode_direct, $1)=yes
20778 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
20779 + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
20780 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
20783 -# Flag to hardcode \$libdir into a binary during linking.
20784 -# This must work even if \$libdir does not exist.
20785 -hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
20789 -# If ld is used when linking, flag to hardcode \$libdir into
20790 -# a binary during linking. This must work even if \$libdir does
20792 -hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
20794 + if test -f /usr/libexec/ld.so; then
20795 + _LT_TAGVAR(hardcode_direct, $1)=yes
20796 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
20797 + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
20798 + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20799 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
20800 + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
20801 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
20802 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
20805 + openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
20806 + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20807 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
20810 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
20811 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
20816 + _LT_TAGVAR(ld_shlibs, $1)=no
20820 -# Whether we need a single -rpath flag with a separated argument.
20821 -hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
20823 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
20824 + _LT_TAGVAR(hardcode_minus_L, $1)=yes
20825 + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
20826 + _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'
20827 + _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
20830 -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20831 -# resulting binary.
20832 -hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
20834 + if test "$GCC" = yes; then
20835 + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
20836 + _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'
20838 + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
20839 + _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'
20841 + _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
20842 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
20843 + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
20846 -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20847 -# resulting binary.
20848 -hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
20849 + osf4* | osf5*) # as osf3* with the addition of -msym flag
20850 + if test "$GCC" = yes; then
20851 + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
20852 + _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'
20853 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
20855 + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
20856 + _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'
20857 + _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~
20858 + $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'
20860 -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20861 -# the resulting binary.
20862 -hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
20863 + # Both c and cxx compiler support -rpath directly
20864 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
20866 + _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
20867 + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
20870 -# Set to yes if building a shared library automatically hardcodes DIR into the library
20871 -# and all subsequent libraries and executables linked against it.
20872 -hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
20874 + _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
20875 + if test "$GCC" = yes; then
20877 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20878 + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20879 + $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
20881 + case `$CC -V 2>&1` in
20882 + *"Compilers 5.0"*)
20884 + _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
20885 + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20886 + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
20890 + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
20891 + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20892 + $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
20896 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
20897 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
20899 + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
20901 + # The compiler driver will combine and reorder linker options,
20902 + # but understands `-z linker_flag'. GCC discards it without `$wl',
20903 + # but is careful enough not to reorder.
20904 + # Supported since Solaris 2.6 (maybe 2.5.1?)
20905 + if test "$GCC" = yes; then
20906 + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
20908 + _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
20912 + _LT_TAGVAR(link_all_deplibs, $1)=yes
20915 -# Variables whose values should be saved in libtool wrapper scripts and
20916 -# restored at relink time.
20917 -variables_saved_for_relink="$variables_saved_for_relink"
20919 + if test "x$host_vendor" = xsequent; then
20920 + # Use $CC to link under sequent, because it throws in some extra .o
20921 + # files that make .init and .fini sections work.
20922 + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
20924 + _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
20926 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
20927 + _LT_TAGVAR(hardcode_direct, $1)=yes
20928 + _LT_TAGVAR(hardcode_minus_L, $1)=yes
20929 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
20932 -# Whether libtool must link a program against all its dependency libraries.
20933 -link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
20935 + case $host_vendor in
20937 + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20938 + _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
20941 + ## LD is ld it makes a PLAMLIB
20942 + ## CC just makes a GrossModule.
20943 + _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
20944 + _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
20945 + _LT_TAGVAR(hardcode_direct, $1)=no
20948 + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20949 + _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
20952 + runpath_var='LD_RUN_PATH'
20953 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
20956 -# Compile-time system search path for libraries
20957 -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20959 + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20960 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
20961 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
20964 -# Run-time system search path for libraries
20965 -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20967 + if test -d /usr/nec; then
20968 + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20969 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
20970 + runpath_var=LD_RUN_PATH
20971 + hardcode_runpath_var=yes
20972 + _LT_TAGVAR(ld_shlibs, $1)=yes
20976 -# Fix the shell variable \$srcfile for the compiler.
20977 -fix_srcfile_path=$lt_fix_srcfile_path
20978 + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
20979 + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
20980 + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
20981 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
20982 + runpath_var='LD_RUN_PATH'
20984 -# Set to yes if exported symbols are required.
20985 -always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
20986 + if test "$GCC" = yes; then
20987 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20988 + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20990 + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20991 + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20995 -# The commands to list exported symbols.
20996 -export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
20997 + sysv5* | sco3.2v5* | sco5v6*)
20998 + # Note: We can NOT use -z defs as we might desire, because we do not
20999 + # link with -lc, and that would cause any symbols used from libc to
21000 + # always be unresolved, which means just about no library would
21001 + # ever link correctly. If we're not using GNU ld we use -z text
21002 + # though, which does catch some bad symbols but isn't as heavy-handed
21004 + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
21005 + _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
21006 + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
21007 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
21008 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
21009 + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
21010 + _LT_TAGVAR(link_all_deplibs, $1)=yes
21011 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
21012 + runpath_var='LD_RUN_PATH'
21014 -# The commands to extract the exported symbol list from a shared archive.
21015 -extract_expsyms_cmds=$lt_extract_expsyms_cmds
21016 + if test "$GCC" = yes; then
21017 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21018 + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21020 + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21021 + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21025 -# Symbols that should not be listed in the preloaded symbols.
21026 -exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
21028 + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21029 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
21030 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
21033 -# Symbols that must always be exported.
21034 -include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
21036 + _LT_TAGVAR(ld_shlibs, $1)=no
21041 -[# ### END LIBTOOL CONFIG],
21042 -[# ### END LIBTOOL TAG CONFIG: $tagname])
21043 + if test x$host_vendor = xsni; then
21045 + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21046 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
21052 +AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
21053 +test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
21056 +_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
21061 - cat <<\EOF >> "$cfgfile"
21062 +_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
21063 +_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
21064 +_LT_DECL([], [extract_expsyms_cmds], [2],
21065 + [The commands to extract the exported symbol list from a shared archive])
21067 -# AIX sometimes has problems with the GCC collect2 program. For some
21068 -# reason, if we set the COLLECT_NAMES environment variable, the problems
21069 -# vanish in a puff of smoke.
21070 -if test "X${COLLECT_NAMES+set}" != Xset; then
21072 - export COLLECT_NAMES
21078 +# Do we need to explicitly link libc?
21080 +case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
21082 + # Assume -lc should be added
21083 + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
21085 - # We use sed instead of cat because bash on DJGPP gets confused if
21086 - # if finds mixed CR/LF and LF-only lines. Since sed operates in
21087 - # text mode, it properly converts lines to CR/LF. This bash problem
21088 - # is reportedly fixed, but why not run on old versions too?
21089 - sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
21090 + if test "$enable_shared" = yes && test "$GCC" = yes; then
21091 + case $_LT_TAGVAR(archive_cmds, $1) in
21093 + # FIXME: we may have to deal with multi-command sequences.
21096 + # Test whether the compiler implicitly links with -lc since on some
21097 + # systems, -lgcc has to come before -lc. If gcc already passes -lc
21098 + # to ld, don't add -lc before -lgcc.
21099 + AC_MSG_CHECKING([whether -lc should be explicitly linked in])
21101 + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21103 - mv -f "$cfgfile" "$ofile" || \
21104 - (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21105 - chmod +x "$ofile"
21108 - # If there is no Makefile yet, we rely on a make rule to execute
21109 - # `config.status --recheck' to rerun these tests and create the
21110 - # libtool script then.
21111 - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21112 - if test -f "$ltmain_in"; then
21113 - test -f Makefile && make "$ltmain"
21114 + if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
21117 + libobjs=conftest.$ac_objext
21119 + wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
21120 + pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
21121 + compiler_flags=-v
21126 + lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
21127 + _LT_TAGVAR(allow_undefined_flag, $1)=
21128 + if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
21130 + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
21132 + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
21134 + _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
21136 + cat conftest.err 1>&5
21139 + AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
21144 -])# AC_LIBTOOL_CONFIG
21147 -# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
21148 -# -------------------------------------------
21149 -AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
21150 -[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
21154 -_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
21155 +_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
21156 + [Whether or not to add -lc for building shared libraries])
21157 +_LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
21158 + [enable_shared_with_static_runtimes], [0],
21159 + [Whether or not to disallow shared libs when runtime libs are static])
21160 +_LT_TAGDECL([], [export_dynamic_flag_spec], [1],
21161 + [Compiler flag to allow reflexive dlopens])
21162 +_LT_TAGDECL([], [whole_archive_flag_spec], [1],
21163 + [Compiler flag to generate shared objects directly from archives])
21164 +_LT_TAGDECL([], [compiler_needs_object], [1],
21165 + [Whether the compiler copes with passing no objects directly])
21166 +_LT_TAGDECL([], [old_archive_from_new_cmds], [2],
21167 + [Create an old-style archive from a shared archive])
21168 +_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
21169 + [Create a temporary old-style archive to link instead of a shared archive])
21170 +_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
21171 +_LT_TAGDECL([], [archive_expsym_cmds], [2])
21172 +_LT_TAGDECL([], [module_cmds], [2],
21173 + [Commands used to build a loadable module if different from building
21174 + a shared archive.])
21175 +_LT_TAGDECL([], [module_expsym_cmds], [2])
21176 +_LT_TAGDECL([], [with_gnu_ld], [1],
21177 + [Whether we are building with GNU ld or not])
21178 +_LT_TAGDECL([], [allow_undefined_flag], [1],
21179 + [Flag that allows shared libraries with undefined symbols to be built])
21180 +_LT_TAGDECL([], [no_undefined_flag], [1],
21181 + [Flag that enforces no undefined symbols])
21182 +_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
21183 + [Flag to hardcode $libdir into a binary during linking.
21184 + This must work even if $libdir does not exist])
21185 +_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
21186 + [[If ld is used when linking, flag to hardcode $libdir into a binary
21187 + during linking. This must work even if $libdir does not exist]])
21188 +_LT_TAGDECL([], [hardcode_libdir_separator], [1],
21189 + [Whether we need a single "-rpath" flag with a separated argument])
21190 +_LT_TAGDECL([], [hardcode_direct], [0],
21191 + [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
21192 + DIR into the resulting binary])
21193 +_LT_TAGDECL([], [hardcode_direct_absolute], [0],
21194 + [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
21195 + DIR into the resulting binary and the resulting library dependency is
21196 + "absolute", i.e impossible to change by setting ${shlibpath_var} if the
21197 + library is relocated])
21198 +_LT_TAGDECL([], [hardcode_minus_L], [0],
21199 + [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21200 + into the resulting binary])
21201 +_LT_TAGDECL([], [hardcode_shlibpath_var], [0],
21202 + [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21203 + into the resulting binary])
21204 +_LT_TAGDECL([], [hardcode_automatic], [0],
21205 + [Set to "yes" if building a shared library automatically hardcodes DIR
21206 + into the library and all subsequent libraries and executables linked
21208 +_LT_TAGDECL([], [inherit_rpath], [0],
21209 + [Set to yes if linker adds runtime paths of dependent libraries
21210 + to runtime path list])
21211 +_LT_TAGDECL([], [link_all_deplibs], [0],
21212 + [Whether libtool must link a program against all its dependency libraries])
21213 +_LT_TAGDECL([], [fix_srcfile_path], [1],
21214 + [Fix the shell variable $srcfile for the compiler])
21215 +_LT_TAGDECL([], [always_export_symbols], [0],
21216 + [Set to "yes" if exported symbols are required])
21217 +_LT_TAGDECL([], [export_symbols_cmds], [2],
21218 + [The commands to list exported symbols])
21219 +_LT_TAGDECL([], [exclude_expsyms], [1],
21220 + [Symbols that should not be listed in the preloaded symbols])
21221 +_LT_TAGDECL([], [include_expsyms], [1],
21222 + [Symbols that must always be exported])
21223 +_LT_TAGDECL([], [prelink_cmds], [2],
21224 + [Commands necessary for linking programs (against libraries) with templates])
21225 +_LT_TAGDECL([], [file_list_spec], [1],
21226 + [Specify filename containing input files])
21227 +dnl FIXME: Not yet implemented
21228 +dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
21229 +dnl [Compiler flag to generate thread safe objects])
21230 +])# _LT_LINKER_SHLIBS
21232 -if test "$GCC" = yes; then
21233 - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
21235 - AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
21236 - lt_cv_prog_compiler_rtti_exceptions,
21237 - [-fno-rtti -fno-exceptions], [],
21238 - [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
21240 -])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
21241 +# _LT_LANG_C_CONFIG([TAG])
21242 +# ------------------------
21243 +# Ensure that the configuration variables for a C compiler are suitably
21244 +# defined. These variables are subsequently used by _LT_CONFIG to write
21245 +# the compiler configuration to `libtool'.
21246 +m4_defun([_LT_LANG_C_CONFIG],
21247 +[m4_require([_LT_DECL_EGREP])dnl
21251 +# Source file extension for C test sources.
21254 -# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
21255 -# ---------------------------------
21256 -AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
21257 -[AC_REQUIRE([AC_CANONICAL_HOST])
21258 -AC_REQUIRE([LT_AC_PROG_SED])
21259 -AC_REQUIRE([AC_PROG_NM])
21260 -AC_REQUIRE([AC_OBJEXT])
21261 -# Check for command to grab the raw symbol name followed by C symbol from nm.
21262 -AC_MSG_CHECKING([command to parse $NM output from $compiler object])
21263 -AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
21265 -# These are sane defaults that work on at least a few old systems.
21266 -# [They come from Ultrix. What could be older than Ultrix?!! ;)]
21267 +# Object file extension for compiled C test sources.
21269 +_LT_TAGVAR(objext, $1)=$objext
21271 -# Character class describing NM global symbol codes.
21272 -symcode='[[BCDEGRST]]'
21273 +# Code to be used in simple compile tests
21274 +lt_simple_compile_test_code="int some_variable = 0;"
21276 -# Regexp to match symbols that can be accessed directly from C.
21277 -sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
21278 +# Code to be used in simple link tests
21279 +lt_simple_link_test_code='int main(){return(0);}'
21281 -# Transform an extracted symbol line into a proper C declaration
21282 -lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
21284 +# Save the default compiler, since it gets overwritten when the other
21285 +# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
21286 +compiler_DEFAULT=$CC
21288 -# Transform an extracted symbol line into symbol name and symbol address
21289 -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'"
21290 +# save warnings/boilerplate of simple test code
21291 +_LT_COMPILER_BOILERPLATE
21292 +_LT_LINKER_BOILERPLATE
21294 -# Define system-specific variables.
21297 - symcode='[[BCDT]]'
21299 -cygwin* | mingw* | pw32*)
21300 - symcode='[[ABCDGISTW]]'
21302 -hpux*) # Its linker distinguishes data from code symbols
21303 - if test "$host_cpu" = ia64; then
21304 - symcode='[[ABCDEGRST]]'
21306 - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
21307 - 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'"
21309 -linux* | k*bsd*-gnu)
21310 - if test "$host_cpu" = ia64; then
21311 - symcode='[[ABCDGIRSTW]]'
21312 - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
21313 - 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'"
21316 -irix* | nonstopux*)
21317 - symcode='[[BCDEGRST]]'
21320 - symcode='[[BCDEGQRST]]'
21323 - symcode='[[BDRT]]'
21331 -sysv5* | sco5v6* | unixware* | OpenUNIX*)
21332 - symcode='[[ABDT]]'
21335 - symcode='[[DFNSTU]]'
21339 +## There is no encapsulation within the following macros, do not change
21340 +## the running order or otherwise move them around unless you know exactly
21341 +## what you are doing...
21342 +if test -n "$compiler"; then
21343 + _LT_COMPILER_NO_RTTI($1)
21344 + _LT_COMPILER_PIC($1)
21345 + _LT_COMPILER_C_O($1)
21346 + _LT_COMPILER_FILE_LOCKS($1)
21347 + _LT_LINKER_SHLIBS($1)
21348 + _LT_SYS_DYNAMIC_LINKER($1)
21349 + _LT_LINKER_HARDCODE_LIBPATH($1)
21350 + LT_SYS_DLOPEN_SELF
21353 + # Report which library types will actually be built
21354 + AC_MSG_CHECKING([if libtool supports shared libraries])
21355 + AC_MSG_RESULT([$can_build_shared])
21357 -# Handle CRLF in mingw tool chain
21361 - opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
21364 + AC_MSG_CHECKING([whether to build shared libraries])
21365 + test "$can_build_shared" = "no" && enable_shared=no
21367 -# If we're using GNU nm, then use its standard symbol codes.
21368 -case `$NM -V 2>&1` in
21369 -*GNU* | *'with BFD'*)
21370 - symcode='[[ABCDGIRSTW]]' ;;
21372 + # On AIX, shared libraries and static libraries use the same namespace, and
21373 + # are all built from PIC.
21376 + test "$enable_shared" = yes && enable_static=no
21377 + if test -n "$RANLIB"; then
21378 + archive_cmds="$archive_cmds~\$RANLIB \$lib"
21379 + postinstall_cmds='$RANLIB $lib'
21383 -# Try without a prefix undercore, then with it.
21384 -for ac_symprfx in "" "_"; do
21386 + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21387 + test "$enable_shared" = yes && enable_static=no
21391 + AC_MSG_RESULT([$enable_shared])
21393 - # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
21394 - symxfrm="\\1 $ac_symprfx\\2 \\2"
21395 + AC_MSG_CHECKING([whether to build static libraries])
21396 + # Make sure either enable_shared or enable_static is yes.
21397 + test "$enable_shared" = yes || enable_static=yes
21398 + AC_MSG_RESULT([$enable_static])
21400 - # Write the raw and C identifiers.
21401 - lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
21406 +])# _LT_LANG_C_CONFIG
21408 - # Check to see that the pipe works correctly.
21412 - cat > conftest.$ac_ext <<EOF
21413 -#ifdef __cplusplus
21417 -void nm_test_func(){}
21418 -#ifdef __cplusplus
21421 -int main(){nm_test_var='a';nm_test_func();return(0);}
21425 +# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
21426 +# compiler, we have our own version here.
21427 +m4_defun([_LT_PROG_CXX],
21429 +pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
21431 +if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
21432 + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
21433 + (test "X$CXX" != "Xg++"))) ; then
21436 + _lt_caught_CXX_error=yes
21438 +popdef([AC_MSG_ERROR])
21441 - if AC_TRY_EVAL(ac_compile); then
21442 - # Now try to grab the symbols.
21443 - nlist=conftest.nm
21444 - if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
21445 - # Try sorting and uniquifying the output.
21446 - if sort "$nlist" | uniq > "$nlist"T; then
21447 - mv -f "$nlist"T "$nlist"
21451 +dnl aclocal-1.4 backwards compatibility:
21452 +dnl AC_DEFUN([_LT_PROG_CXX], [])
21454 - # Make sure that we snagged all the symbols we need.
21455 - if grep ' nm_test_var$' "$nlist" >/dev/null; then
21456 - if grep ' nm_test_func$' "$nlist" >/dev/null; then
21457 - cat <<EOF > conftest.$ac_ext
21458 -#ifdef __cplusplus
21463 - # Now generate the symbol file.
21464 - eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
21465 +# _LT_LANG_CXX_CONFIG([TAG])
21466 +# --------------------------
21467 +# Ensure that the configuration variables for a C++ compiler are suitably
21468 +# defined. These variables are subsequently used by _LT_CONFIG to write
21469 +# the compiler configuration to `libtool'.
21470 +m4_defun([_LT_LANG_CXX_CONFIG],
21471 +[AC_REQUIRE([_LT_PROG_CXX])dnl
21472 +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
21473 +m4_require([_LT_DECL_EGREP])dnl
21476 +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
21477 +_LT_TAGVAR(allow_undefined_flag, $1)=
21478 +_LT_TAGVAR(always_export_symbols, $1)=no
21479 +_LT_TAGVAR(archive_expsym_cmds, $1)=
21480 +_LT_TAGVAR(compiler_needs_object, $1)=no
21481 +_LT_TAGVAR(export_dynamic_flag_spec, $1)=
21482 +_LT_TAGVAR(hardcode_direct, $1)=no
21483 +_LT_TAGVAR(hardcode_direct_absolute, $1)=no
21484 +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
21485 +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
21486 +_LT_TAGVAR(hardcode_libdir_separator, $1)=
21487 +_LT_TAGVAR(hardcode_minus_L, $1)=no
21488 +_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
21489 +_LT_TAGVAR(hardcode_automatic, $1)=no
21490 +_LT_TAGVAR(inherit_rpath, $1)=no
21491 +_LT_TAGVAR(module_cmds, $1)=
21492 +_LT_TAGVAR(module_expsym_cmds, $1)=
21493 +_LT_TAGVAR(link_all_deplibs, $1)=unknown
21494 +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
21495 +_LT_TAGVAR(no_undefined_flag, $1)=
21496 +_LT_TAGVAR(whole_archive_flag_spec, $1)=
21497 +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
21499 - cat <<EOF >> conftest.$ac_ext
21500 -#if defined (__STDC__) && __STDC__
21501 -# define lt_ptr_t void *
21503 -# define lt_ptr_t char *
21506 +# Source file extension for C++ test sources.
21509 -/* The mapping between symbol names and symbols. */
21511 - const char *name;
21512 - lt_ptr_t address;
21514 -lt_preloaded_symbols[[]] =
21517 - $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
21518 - cat <<\EOF >> conftest.$ac_ext
21519 - {0, (lt_ptr_t) 0}
21521 +# Object file extension for compiled C++ test sources.
21523 +_LT_TAGVAR(objext, $1)=$objext
21525 -#ifdef __cplusplus
21529 - # Now try linking the two files.
21530 - mv conftest.$ac_objext conftstm.$ac_objext
21531 - lt_save_LIBS="$LIBS"
21532 - lt_save_CFLAGS="$CFLAGS"
21533 - LIBS="conftstm.$ac_objext"
21534 - CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
21535 - if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
21538 - LIBS="$lt_save_LIBS"
21539 - CFLAGS="$lt_save_CFLAGS"
21541 - echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
21544 - echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
21547 - echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
21549 +# No sense in running all these tests if we already determined that
21550 +# the CXX compiler isn't working. Some variables (like enable_shared)
21551 +# are currently assumed to apply to all compilers on this platform,
21552 +# and will be corrupted by setting them based on a non-working compiler.
21553 +if test "$_lt_caught_CXX_error" != yes; then
21554 + # Code to be used in simple compile tests
21555 + lt_simple_compile_test_code="int some_variable = 0;"
21557 + # Code to be used in simple link tests
21558 + lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
21560 + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21563 + # save warnings/boilerplate of simple test code
21564 + _LT_COMPILER_BOILERPLATE
21565 + _LT_LINKER_BOILERPLATE
21567 + # Allow CC to be a program name with arguments.
21572 + lt_save_with_gnu_ld=$with_gnu_ld
21573 + lt_save_path_LD=$lt_cv_path_LD
21574 + if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
21575 + lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
21577 - echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
21578 - cat conftest.$ac_ext >&5
21579 + $as_unset lt_cv_prog_gnu_ld
21581 - rm -f conftest* conftst*
21583 - # Do not use the global_symbol_pipe unless it works.
21584 - if test "$pipe_works" = yes; then
21586 + if test -n "${lt_cv_path_LDCXX+set}"; then
21587 + lt_cv_path_LD=$lt_cv_path_LDCXX
21589 - lt_cv_sys_global_symbol_pipe=
21590 + $as_unset lt_cv_path_LD
21594 -if test -z "$lt_cv_sys_global_symbol_pipe"; then
21595 - lt_cv_sys_global_symbol_to_cdecl=
21597 -if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
21598 - AC_MSG_RESULT(failed)
21600 - AC_MSG_RESULT(ok)
21602 -]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
21603 + test -z "${LDCXX+set}" || LD=$LDCXX
21606 + _LT_TAGVAR(compiler, $1)=$CC
21607 + _LT_CC_BASENAME([$compiler])
21609 + if test -n "$compiler"; then
21610 + # We don't want -fno-exception when compiling C++ code, so set the
21611 + # no_builtin_flag separately
21612 + if test "$GXX" = yes; then
21613 + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
21615 + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
21618 -# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
21619 -# ---------------------------------------
21620 -AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
21621 -[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
21622 -_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
21623 -_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
21624 + if test "$GXX" = yes; then
21625 + # Set up default GNU C++ configuration
21627 -AC_MSG_CHECKING([for $compiler option to produce PIC])
21628 - ifelse([$1],[CXX],[
21629 - # C++ specific cases for pic, static, wl, etc.
21630 - if test "$GXX" = yes; then
21631 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
21632 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
21637 - # All AIX code is PIC.
21638 - if test "$host_cpu" = ia64; then
21639 - # AIX 5 now supports IA64 processor
21640 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
21644 - # FIXME: we need at least 68020 code to build shared libraries, but
21645 - # adding the `-m68020' flag to GCC prevents building anything better,
21646 - # like `-m68040'.
21647 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
21649 - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21650 - # PIC is the default for these OSes.
21652 - mingw* | cygwin* | os2* | pw32*)
21653 - # This hack is so that the source file can tell whether it is being
21654 - # built for inclusion in a dll (and should export symbols for example).
21655 - # Although the cygwin gcc ignores -fPIC, still need this for old-style
21656 - # (--disable-auto-import) libraries
21657 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
21659 - darwin* | rhapsody*)
21660 - # PIC is the default on this platform
21661 - # Common symbols not allowed in MH_DYLIB files
21662 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
21665 - # DJGPP does not support shared libraries at all
21666 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
21669 - # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21670 - # Instead, we relocate shared libraries at runtime.
21673 - if test -d /usr/nec; then
21674 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
21675 + # Check if GNU C++ uses GNU ld as the underlying linker, since the
21676 + # archiving commands below assume that GNU ld is being used.
21677 + if test "$with_gnu_ld" = yes; then
21678 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
21679 + _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'
21681 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
21682 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
21684 + # If archive_cmds runs LD, not CC, wlarc should be empty
21685 + # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
21686 + # investigate it a little bit more. (MM)
21689 + # ancient GNU ld didn't support --whole-archive et. al.
21690 + if eval "`$CC -print-prog-name=ld` --help 2>&1" |
21691 + $GREP 'no-whole-archive' > /dev/null; then
21692 + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21694 + _LT_TAGVAR(whole_archive_flag_spec, $1)=
21700 + # A generic and very simple default shared library creation
21701 + # command for GNU C++ for the case where it uses the native
21702 + # linker, instead of GNU ld. If possible, this setting should
21703 + # overridden to take advantage of the native linker features on
21704 + # the platform it is being used on.
21705 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
21709 - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21710 - # not for PA HP-UX.
21711 - case $host_cpu in
21715 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
21720 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
21725 + # Commands to make compiler produce verbose output that lists
21726 + # what "hidden" libraries, object files and flags are used when
21727 + # linking a shared library.
21728 + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
21736 + # PORTME: fill in a description of your system's C++ link characteristics
21737 + AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
21738 + _LT_TAGVAR(ld_shlibs, $1)=yes
21741 - # All AIX code is PIC.
21742 - if test "$host_cpu" = ia64; then
21743 - # AIX 5 now supports IA64 processor
21744 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
21746 + # FIXME: insert proper C++ library support
21747 + _LT_TAGVAR(ld_shlibs, $1)=no
21750 + if test "$host_cpu" = ia64; then
21751 + # On IA64, the linker does run time linking by default, so we don't
21752 + # have to do anything special.
21753 + aix_use_runtimelinking=no
21754 + exp_sym_flag='-Bexport'
21757 + aix_use_runtimelinking=no
21759 + # Test if we are trying to use run time linking or normal
21760 + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21761 + # need to do runtime linking.
21762 + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
21763 + for ld_flag in $LDFLAGS; do
21766 + aix_use_runtimelinking=yes
21774 + exp_sym_flag='-bexport'
21775 + no_entry_flag='-bnoentry'
21778 + # When large executables or shared objects are built, AIX ld can
21779 + # have problems creating the table of contents. If linking a library
21780 + # or program results in "error TOC overflow" add -mminimal-toc to
21781 + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21782 + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21784 + _LT_TAGVAR(archive_cmds, $1)=''
21785 + _LT_TAGVAR(hardcode_direct, $1)=yes
21786 + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
21787 + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
21788 + _LT_TAGVAR(link_all_deplibs, $1)=yes
21789 + _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
21791 + if test "$GXX" = yes; then
21792 + case $host_os in aix4.[[012]]|aix4.[[012]].*)
21793 + # We only want to do this on AIX 4.2 and lower, the check
21794 + # below for broken collect2 doesn't work under 4.3+
21795 + collect2name=`${CC} -print-prog-name=collect2`
21796 + if test -f "$collect2name" &&
21797 + strings "$collect2name" | $GREP resolve_lib_name >/dev/null
21799 + # We have reworked collect2
21802 + # We have old collect2
21803 + _LT_TAGVAR(hardcode_direct, $1)=unsupported
21804 + # It fails to find uninstalled libraries when the uninstalled
21805 + # path is not listed in the libpath. Setting hardcode_minus_L
21806 + # to unsupported forces relinking
21807 + _LT_TAGVAR(hardcode_minus_L, $1)=yes
21808 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
21809 + _LT_TAGVAR(hardcode_libdir_separator, $1)=
21812 + shared_flag='-shared'
21813 + if test "$aix_use_runtimelinking" = yes; then
21814 + shared_flag="$shared_flag "'${wl}-G'
21818 + if test "$host_cpu" = ia64; then
21819 + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21820 + # chokes on -Wl,-G. The following line is correct:
21823 + if test "$aix_use_runtimelinking" = yes; then
21824 + shared_flag='${wl}-G'
21826 + shared_flag='${wl}-bM:SRE'
21831 + # It seems that -bexpall does not export symbols beginning with
21832 + # underscore (_), so it is better to generate a list of symbols to
21834 + _LT_TAGVAR(always_export_symbols, $1)=yes
21835 + if test "$aix_use_runtimelinking" = yes; then
21836 + # Warning - without using the other runtime loading flags (-brtl),
21837 + # -berok will link without error, but may produce a broken library.
21838 + _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
21839 + # Determine the default libpath from the value encoded in an empty
21841 + _LT_SYS_MODULE_PATH_AIX
21842 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
21844 + _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"
21846 + if test "$host_cpu" = ia64; then
21847 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
21848 + _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
21849 + _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"
21851 + # Determine the default libpath from the value encoded in an
21852 + # empty executable.
21853 + _LT_SYS_MODULE_PATH_AIX
21854 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
21855 + # Warning - without using the other run time loading flags,
21856 + # -berok will link without error, but may produce a broken library.
21857 + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
21858 + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
21859 + # Exported symbols can be pulled into shared objects from archives
21860 + _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
21861 + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
21862 + # This is similar to how AIX traditionally builds its shared
21864 + _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'
21870 + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
21871 + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
21872 + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21873 + # support --undefined. This deserves some investigation. FIXME
21874 + _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21876 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
21877 + _LT_TAGVAR(ld_shlibs, $1)=no
21882 - case $cc_basename in
21884 - # Green Hills C++ Compiler
21885 - # _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"
21886 + case $cc_basename in
21888 + # FIXME: insert proper C++ library support
21889 + _LT_TAGVAR(ld_shlibs, $1)=no
21895 + cygwin* | mingw* | pw32*)
21896 + # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
21897 + # as there is no search path for DLLs.
21898 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
21899 + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
21900 + _LT_TAGVAR(always_export_symbols, $1)=no
21901 + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
21903 + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
21904 + _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'
21905 + # If the export-symbols file already is a .def file (1st line
21906 + # is EXPORTS), use it as is; otherwise, prepend...
21907 + _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21908 + cp $export_symbols $output_objdir/$soname.def;
21910 + echo EXPORTS > $output_objdir/$soname.def;
21911 + cat $export_symbols >> $output_objdir/$soname.def;
21913 + $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'
21915 + _LT_TAGVAR(ld_shlibs, $1)=no
21918 + darwin* | rhapsody*)
21919 + _LT_DARWIN_LINKER_FEATURES($1)
21922 - # PIC is the default on this platform
21923 - # Common symbols not allowed in MH_DYLIB files
21924 - case $cc_basename in
21926 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
21927 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
21933 - case $cc_basename in
21935 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
21936 + case $cc_basename in
21938 + # FIXME: insert proper C++ library support
21939 + _LT_TAGVAR(ld_shlibs, $1)=no
21943 # Green Hills C++ Compiler
21944 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
21945 + # FIXME: insert proper C++ library support
21946 + _LT_TAGVAR(ld_shlibs, $1)=no
21950 + # FIXME: insert proper C++ library support
21951 + _LT_TAGVAR(ld_shlibs, $1)=no
21959 + # C++ shared libraries reported to be fairly broken before
21961 + _LT_TAGVAR(ld_shlibs, $1)=no
21965 + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
21968 freebsd* | dragonfly*)
21969 - # FreeBSD uses GNU C++
21971 - hpux9* | hpux10* | hpux11*)
21972 - case $cc_basename in
21974 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
21975 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
21976 - if test "$host_cpu" != ia64; then
21977 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
21979 + # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
21981 + _LT_TAGVAR(ld_shlibs, $1)=yes
21988 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
21989 + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
21990 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
21991 + _LT_TAGVAR(hardcode_direct, $1)=yes
21992 + _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
21993 + # but as the default
21994 + # location of the library.
21996 + case $cc_basename in
21998 + # FIXME: insert proper C++ library support
21999 + _LT_TAGVAR(ld_shlibs, $1)=no
22002 + _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'
22003 + # Commands to make compiler produce verbose output that lists
22004 + # what "hidden" libraries, object files and flags are used when
22005 + # linking a shared library.
22007 + # There doesn't appear to be a way to prevent this compiler from
22008 + # explicitly linking system object files so we need to strip them
22009 + # from the output so that they don't get included in the library
22011 + 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'
22014 + if test "$GXX" = yes; then
22015 + _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'
22017 + # FIXME: insert proper C++ library support
22018 + _LT_TAGVAR(ld_shlibs, $1)=no
22025 + if test $with_gnu_ld = no; then
22026 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
22027 + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
22029 + case $host_cpu in
22033 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
22037 + case $host_cpu in
22039 + _LT_TAGVAR(hardcode_direct, $1)=no
22040 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
22043 + _LT_TAGVAR(hardcode_direct, $1)=yes
22044 + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
22045 + _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
22046 + # but as the default
22047 + # location of the library.
22051 + case $cc_basename in
22053 + # FIXME: insert proper C++ library support
22054 + _LT_TAGVAR(ld_shlibs, $1)=no
22057 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
22058 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
22065 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
22068 + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22071 + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22074 + _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'
22077 + # Commands to make compiler produce verbose output that lists
22078 + # what "hidden" libraries, object files and flags are used when
22079 + # linking a shared library.
22081 + # There doesn't appear to be a way to prevent this compiler from
22082 + # explicitly linking system object files so we need to strip them
22083 + # from the output so that they don't get included in the library
22085 + 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'
22089 + if test "$GXX" = yes; then
22090 + if test $with_gnu_ld = no; then
22091 + case $host_cpu in
22093 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22096 + _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'
22099 + _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'
22104 + # FIXME: insert proper C++ library support
22105 + _LT_TAGVAR(ld_shlibs, $1)=no
22111 - # This is c89, which is MS Visual C++ (no shared libs)
22112 - # Anyone wants to do a port?
22114 - irix5* | irix6* | nonstopux*)
22115 - case $cc_basename in
22117 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
22118 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
22119 - # CC pic flag -KPIC is the default.
22124 + _LT_TAGVAR(hardcode_direct, $1)=no
22125 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
22126 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
22127 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
22128 + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
22129 + # Instead, shared libraries are loaded at an image base (0x10000000 by
22130 + # default) and relocated if they conflict, which is a slow very memory
22131 + # consuming and fragmenting process. To avoid this, we pick a random,
22132 + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
22133 + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
22134 + _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'
22135 + _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'
22138 + case $cc_basename in
22141 + _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'
22143 + # Archives containing C++ object files must be created using
22144 + # "CC -ar", where "CC" is the IRIX C++ compiler. This is
22145 + # necessary to make sure instantiated templates are included
22146 + # in the archive.
22147 + _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
22151 + if test "$GXX" = yes; then
22152 + if test "$with_gnu_ld" = no; then
22153 + _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'
22155 + _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'
22158 + _LT_TAGVAR(link_all_deplibs, $1)=yes
22163 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
22164 + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
22165 + _LT_TAGVAR(inherit_rpath, $1)=yes
22168 linux* | k*bsd*-gnu)
22169 - case $cc_basename in
22171 - # KAI C++ Compiler
22172 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
22173 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
22174 + case $cc_basename in
22176 + # Kuck and Associates, Inc. (KAI) C++ Compiler
22178 + # KCC will only create a shared library if the output file
22179 + # ends with ".so" (or ".sl" for HP-UX), so rename the library
22180 + # to its proper name (with version) after linking.
22181 + _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'
22182 + _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'
22183 + # Commands to make compiler produce verbose output that lists
22184 + # what "hidden" libraries, object files and flags are used when
22185 + # linking a shared library.
22187 + # There doesn't appear to be a way to prevent this compiler from
22188 + # explicitly linking system object files so we need to strip them
22189 + # from the output so that they don't get included in the library
22191 + 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'
22193 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
22194 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
22196 + # Archives containing C++ object files must be created using
22197 + # "CC -Bstatic", where "CC" is the KAI C++ compiler.
22198 + _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
22203 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
22204 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
22205 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
22208 - # Portland Group C++ compiler.
22209 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
22210 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
22211 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
22215 - # Make sure the PIC flag is empty. It appears that all Alpha
22216 - # Linux and Compaq Tru64 Unix objects are PIC.
22217 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
22218 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
22220 + # version 8.0 and above of icpc choke on multiply defined symbols
22221 + # if we add $predep_objects and $postdep_objects, however 7.1 and
22222 + # earlier do not add the objects themselves.
22223 + case `$CC -V 2>&1` in
22225 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
22226 + _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'
22228 + *) # Version 8.0 or newer
22230 + case $host_cpu in
22231 + ia64*) tmp_idyn=' -i_dynamic';;
22233 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22234 + _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'
22237 + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
22238 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
22239 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
22240 + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
22243 - case `$CC -V 2>&1 | sed 5q` in
22246 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
22247 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
22248 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
22250 + # Portland Group C++ compiler
22252 + *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
22253 + _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
22255 + $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
22256 + compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
22257 + _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
22259 + $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
22260 + $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
22262 + _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
22264 + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
22265 + $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
22266 + _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
22268 + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
22269 + $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'
22271 + *) # Version 6 will use weak symbols
22272 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
22273 + _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'
22284 - case $cc_basename in
22286 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
22294 - osf3* | osf4* | osf5*)
22295 - case $cc_basename in
22297 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
22300 - # Rational C++ 2.4.1
22301 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
22304 - # Digital/Compaq C++
22305 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
22306 - # Make sure the PIC flag is empty. It appears that all Alpha
22307 - # Linux and Compaq Tru64 Unix objects are PIC.
22308 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
22309 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
22318 - case $cc_basename in
22320 - # Sun C++ 4.2, 5.x and Centerline C++
22321 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
22322 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
22323 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
22326 - # Green Hills C++ Compiler
22327 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
22334 - case $cc_basename in
22337 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
22338 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
22342 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
22349 - case $cc_basename in
22351 - # NonStop-UX NCC 3.20
22352 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
22358 - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
22359 - case $cc_basename in
22361 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
22362 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
22363 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
22370 - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
22376 - if test "$GCC" = yes; then
22377 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
22378 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
22382 - # All AIX code is PIC.
22383 - if test "$host_cpu" = ia64; then
22384 - # AIX 5 now supports IA64 processor
22385 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
22390 - # FIXME: we need at least 68020 code to build shared libraries, but
22391 - # adding the `-m68020' flag to GCC prevents building anything better,
22392 - # like `-m68040'.
22393 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
22396 - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
22397 - # PIC is the default for these OSes.
22400 - mingw* | cygwin* | pw32* | os2*)
22401 - # This hack is so that the source file can tell whether it is being
22402 - # built for inclusion in a dll (and should export symbols for example).
22403 - # Although the cygwin gcc ignores -fPIC, still need this for old-style
22404 - # (--disable-auto-import) libraries
22405 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
22408 - darwin* | rhapsody*)
22409 - # PIC is the default on this platform
22410 - # Common symbols not allowed in MH_DYLIB files
22411 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
22415 - # Interix 3.x gcc -fpic/-fPIC options generate broken code.
22416 - # Instead, we relocate shared libraries at runtime.
22418 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
22419 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
22420 + _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'
22424 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
22425 + _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'
22428 - # Just because we use GCC doesn't mean we suddenly get shared libraries
22429 - # on systems that don't support them.
22430 - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
22433 + runpath_var=LD_RUN_PATH
22434 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
22435 + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
22438 - if test -d /usr/nec; then
22439 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
22442 + # Commands to make compiler produce verbose output that lists
22443 + # what "hidden" libraries, object files and flags are used when
22444 + # linking a shared library.
22446 + # There doesn't appear to be a way to prevent this compiler from
22447 + # explicitly linking system object files so we need to strip them
22448 + # from the output so that they don't get included in the library
22450 + 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'
22453 + # IBM XL 8.0 on PPC, with GNU ld
22454 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
22455 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
22456 + _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22457 + if test "x$supports_anon_versioning" = xyes; then
22458 + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
22459 + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22460 + echo "local: *; };" >> $output_objdir/$libname.ver~
22461 + $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
22465 + case `$CC -V 2>&1 | sed 5q` in
22468 + _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
22469 + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22470 + _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'
22471 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
22472 + _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'
22473 + _LT_TAGVAR(compiler_needs_object, $1)=yes
22475 + # Not sure whether something based on
22476 + # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
22477 + # would be better.
22478 + output_verbose_link_cmd='echo'
22480 + # Archives containing C++ object files must be created using
22481 + # "CC -xar", where "CC" is the Sun C++ compiler. This is
22482 + # necessary to make sure instantiated templates are included
22483 + # in the archive.
22484 + _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
22492 - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
22493 - # not for PA HP-UX.
22494 - case $host_cpu in
22498 + # FIXME: insert proper C++ library support
22499 + _LT_TAGVAR(ld_shlibs, $1)=no
22502 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
22505 + # FIXME: insert proper C++ library support
22506 + _LT_TAGVAR(ld_shlibs, $1)=no
22512 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
22516 - # PORTME Check for flag to pass linker flags through the system compiler.
22519 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
22520 - if test "$host_cpu" = ia64; then
22521 - # AIX 5 now supports IA64 processor
22522 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
22524 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
22528 - # PIC is the default on this platform
22529 - # Common symbols not allowed in MH_DYLIB files
22530 - case $cc_basename in
22532 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
22533 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
22538 + case $cc_basename in
22540 + # FIXME: insert proper C++ library support
22541 + _LT_TAGVAR(ld_shlibs, $1)=no
22544 + # FIXME: insert proper C++ library support
22545 + _LT_TAGVAR(ld_shlibs, $1)=no
22550 - mingw* | cygwin* | pw32* | os2*)
22551 - # This hack is so that the source file can tell whether it is being
22552 - # built for inclusion in a dll (and should export symbols for example).
22553 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
22556 + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
22557 + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
22559 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
22560 + _LT_TAGVAR(hardcode_direct, $1)=yes
22561 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
22563 + # Workaround some broken pre-1.5 toolchains
22564 + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
22567 - hpux9* | hpux10* | hpux11*)
22568 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
22569 - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
22570 - # not for PA HP-UX.
22571 - case $host_cpu in
22575 + _LT_TAGVAR(ld_shlibs, $1)=yes
22578 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
22581 + # C++ shared libraries are fairly broken
22582 + _LT_TAGVAR(ld_shlibs, $1)=no
22586 + if test -f /usr/libexec/ld.so; then
22587 + _LT_TAGVAR(hardcode_direct, $1)=yes
22588 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
22589 + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
22590 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
22591 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
22592 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22593 + _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'
22594 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
22595 + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
22597 + output_verbose_link_cmd=echo
22599 + _LT_TAGVAR(ld_shlibs, $1)=no
22603 - # Is there a better lt_prog_compiler_static that works with the bundled CC?
22604 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
22607 - irix5* | irix6* | nonstopux*)
22608 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
22609 - # PIC (with -KPIC) is the default.
22610 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
22612 + osf3* | osf4* | osf5*)
22613 + case $cc_basename in
22615 + # Kuck and Associates, Inc. (KAI) C++ Compiler
22617 + # KCC will only create a shared library if the output file
22618 + # ends with ".so" (or ".sl" for HP-UX), so rename the library
22619 + # to its proper name (with version) after linking.
22620 + _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'
22622 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
22623 + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
22625 + # Archives containing C++ object files must be created using
22626 + # the KAI C++ compiler.
22628 + osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
22629 + *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
22633 + # Rational C++ 2.4.1
22634 + # FIXME: insert proper C++ library support
22635 + _LT_TAGVAR(ld_shlibs, $1)=no
22640 + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
22641 + _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'
22642 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
22645 + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
22646 + _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'
22647 + _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
22648 + echo "-hidden">> $lib.exp~
22649 + $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~
22651 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
22656 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
22657 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
22659 + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
22661 - linux* | k*bsd*-gnu)
22662 - case $cc_basename in
22664 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
22665 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
22666 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
22667 + # Commands to make compiler produce verbose output that lists
22668 + # what "hidden" libraries, object files and flags are used when
22669 + # linking a shared library.
22671 + # There doesn't appear to be a way to prevent this compiler from
22672 + # explicitly linking system object files so we need to strip them
22673 + # from the output so that they don't get included in the library
22675 + 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'
22678 + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
22679 + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
22682 + _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'
22685 + _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'
22689 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
22690 + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
22692 + # Commands to make compiler produce verbose output that lists
22693 + # what "hidden" libraries, object files and flags are used when
22694 + # linking a shared library.
22695 + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
22698 + # FIXME: insert proper C++ library support
22699 + _LT_TAGVAR(ld_shlibs, $1)=no
22704 - pgcc* | pgf77* | pgf90* | pgf95*)
22705 - # Portland Group compilers (*not* the Pentium gcc compiler,
22706 - # which looks to be a dead project)
22707 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
22708 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
22709 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
22712 + # FIXME: insert proper C++ library support
22713 + _LT_TAGVAR(ld_shlibs, $1)=no
22716 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
22717 - # All Alpha code is PIC.
22718 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
22721 + case $cc_basename in
22724 + # FIXME: insert proper C++ library support
22725 + _LT_TAGVAR(ld_shlibs, $1)=no
22729 + # FIXME: insert proper C++ library support
22730 + _LT_TAGVAR(ld_shlibs, $1)=no
22733 + # FIXME: insert proper C++ library support
22734 + _LT_TAGVAR(ld_shlibs, $1)=no
22739 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-lopt='
22742 + case $cc_basename in
22744 + # Sun C++ 4.2, 5.x and Centerline C++
22745 + _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
22746 + _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
22747 + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22748 + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
22749 + $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'
22751 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
22752 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
22754 + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
22756 + # The compiler driver will combine and reorder linker options,
22757 + # but understands `-z linker_flag'.
22758 + # Supported since Solaris 2.6 (maybe 2.5.1?)
22759 + _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
22762 + _LT_TAGVAR(link_all_deplibs, $1)=yes
22764 + output_verbose_link_cmd='echo'
22766 + # Archives containing C++ object files must be created using
22767 + # "CC -xar", where "CC" is the Sun C++ compiler. This is
22768 + # necessary to make sure instantiated templates are included
22769 + # in the archive.
22770 + _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
22773 + # Green Hills C++ Compiler
22774 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
22776 + # The C++ compiler must be used to create the archive.
22777 + _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
22780 + # GNU C++ compiler with Solaris linker
22781 + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
22782 + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
22783 + if $CC --version | $GREP -v '^2\.7' > /dev/null; then
22784 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
22785 + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
22786 + $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
22788 + # Commands to make compiler produce verbose output that lists
22789 + # what "hidden" libraries, object files and flags are used when
22790 + # linking a shared library.
22791 + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
22793 + # g++ 2.7 appears to require `-G' NOT `-shared' on this
22795 + _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
22796 + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
22797 + $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
22799 + # Commands to make compiler produce verbose output that lists
22800 + # what "hidden" libraries, object files and flags are used when
22801 + # linking a shared library.
22802 + output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
22805 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
22807 + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
22809 + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
22817 - case `$CC -V 2>&1 | sed 5q` in
22820 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
22821 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
22822 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
22824 + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
22825 + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
22826 + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
22827 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
22828 + runpath_var='LD_RUN_PATH'
22830 + case $cc_basename in
22832 + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22833 + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22836 - # Sun Fortran 8.3 passes all unrecognized flags to the linker
22837 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
22838 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
22839 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=''
22841 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22842 + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22849 - osf3* | osf4* | osf5*)
22850 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
22851 - # All OSF/1 code is PIC.
22852 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
22854 + sysv5* | sco3.2v5* | sco5v6*)
22855 + # Note: We can NOT use -z defs as we might desire, because we do not
22856 + # link with -lc, and that would cause any symbols used from libc to
22857 + # always be unresolved, which means just about no library would
22858 + # ever link correctly. If we're not using GNU ld we use -z text
22859 + # though, which does catch some bad symbols but isn't as heavy-handed
22861 + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
22862 + _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
22863 + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
22864 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
22865 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
22866 + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
22867 + _LT_TAGVAR(link_all_deplibs, $1)=yes
22868 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
22869 + runpath_var='LD_RUN_PATH'
22872 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
22873 + case $cc_basename in
22875 + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22876 + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22879 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22880 + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22886 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
22887 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
22888 - case $cc_basename in
22889 - f77* | f90* | f95*)
22890 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
22892 + case $cc_basename in
22894 + # NonStop-UX NCC 3.20
22895 + # FIXME: insert proper C++ library support
22896 + _LT_TAGVAR(ld_shlibs, $1)=no
22899 + # FIXME: insert proper C++ library support
22900 + _LT_TAGVAR(ld_shlibs, $1)=no
22906 + # FIXME: insert proper C++ library support
22907 + _LT_TAGVAR(ld_shlibs, $1)=no
22911 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
22914 + # FIXME: insert proper C++ library support
22915 + _LT_TAGVAR(ld_shlibs, $1)=no
22920 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
22921 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
22922 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
22924 + AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
22925 + test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
22927 - sysv4 | sysv4.2uw2* | sysv4.3*)
22928 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
22929 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
22930 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
22932 + _LT_TAGVAR(GCC, $1)="$GXX"
22933 + _LT_TAGVAR(LD, $1)="$LD"
22936 - if test -d /usr/nec ;then
22937 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
22938 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
22941 + ## CAVEAT EMPTOR:
22942 + ## There is no encapsulation within the following macros, do not change
22943 + ## the running order or otherwise move them around unless you know exactly
22944 + ## what you are doing...
22945 + _LT_SYS_HIDDEN_LIBDEPS($1)
22946 + _LT_COMPILER_PIC($1)
22947 + _LT_COMPILER_C_O($1)
22948 + _LT_COMPILER_FILE_LOCKS($1)
22949 + _LT_LINKER_SHLIBS($1)
22950 + _LT_SYS_DYNAMIC_LINKER($1)
22951 + _LT_LINKER_HARDCODE_LIBPATH($1)
22954 + fi # test -n "$compiler"
22960 + with_gnu_ld=$lt_save_with_gnu_ld
22961 + lt_cv_path_LDCXX=$lt_cv_path_LD
22962 + lt_cv_path_LD=$lt_save_path_LD
22963 + lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
22964 + lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
22965 +fi # test "$_lt_caught_CXX_error" != yes
22967 - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
22968 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
22969 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
22970 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
22973 +])# _LT_LANG_CXX_CONFIG
22976 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
22977 - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
22981 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
22982 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
22984 +# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
22985 +# ---------------------------------
22986 +# Figure out "hidden" library dependencies from verbose
22987 +# compiler output when linking a shared library.
22988 +# Parse the compiler output and extract the necessary
22989 +# objects, libraries and library flags.
22990 +m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
22991 +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
22992 +# Dependencies to place before and after the object being linked:
22993 +_LT_TAGVAR(predep_objects, $1)=
22994 +_LT_TAGVAR(postdep_objects, $1)=
22995 +_LT_TAGVAR(predeps, $1)=
22996 +_LT_TAGVAR(postdeps, $1)=
22997 +_LT_TAGVAR(compiler_lib_search_path, $1)=
23000 - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
23004 +dnl we can't use the lt_simple_compile_test_code here,
23005 +dnl because it contains code intended for an executable,
23006 +dnl not a library. It's possible we should let each
23007 +dnl tag define a new lt_????_link_test_code variable,
23008 +dnl but it's only used here...
23009 +m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
23011 +void foo (void) { a = 0; }
23013 +], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
23017 + Foo (void) { a = 0; }
23022 +], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
23030 +], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
23038 +], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
23039 +public class foo {
23041 + public void bar (void) {
23047 -AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
23048 +dnl Parse the compiler output and extract the necessary
23049 +dnl objects, libraries and library flags.
23050 +if AC_TRY_EVAL(ac_compile); then
23051 + # Parse the compiler output and extract the necessary
23052 + # objects, libraries and library flags.
23055 -# Check to make sure the PIC flag actually works.
23057 -if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
23058 - AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
23059 - _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
23060 - [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
23061 - [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
23063 - *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
23065 - [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
23066 - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
23069 - # For platforms which do not support PIC, -DPIC is meaningless:
23071 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
23074 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
23077 + # Sentinel used to keep track of whether or not we are before
23078 + # the conftest object file.
23079 + pre_test_object_deps_done=no
23082 -# Check to make sure the static flag actually works.
23084 -wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
23085 -AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
23086 - _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
23087 - $lt_tmp_static_flag,
23089 - [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
23091 + for p in `eval "$output_verbose_link_cmd"`; do
23095 + # Some compilers place space between "-{L,R}" and the path.
23096 + # Remove the space.
23097 + if test $p = "-L" ||
23098 + test $p = "-R"; then
23105 + if test "$pre_test_object_deps_done" = no; then
23108 + # Internal compiler library paths should come after those
23109 + # provided the user. The postdeps already come after the
23110 + # user supplied libs so there is no need to process them.
23111 + if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
23112 + _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
23114 + _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
23117 + # The "-l" case would never come before the object being
23118 + # linked, so don't bother handling this case.
23121 + if test -z "$_LT_TAGVAR(postdeps, $1)"; then
23122 + _LT_TAGVAR(postdeps, $1)="${prev}${p}"
23124 + _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
23129 -# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
23130 -# ------------------------------------
23131 -# See if the linker supports building shared libraries.
23132 -AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
23133 -[AC_REQUIRE([LT_AC_PROG_SED])dnl
23134 -AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
23135 -ifelse([$1],[CXX],[
23136 - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
23139 - # If we're using GNU nm, then we don't want the "-C" option.
23140 - # -C means demangle to AIX nm, but means don't demangle with GNU nm
23141 - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
23142 - _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'
23144 - _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'
23148 - _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
23150 - cygwin* | mingw*)
23151 - _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'
23154 - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
23159 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=
23160 - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
23161 - _LT_AC_TAGVAR(archive_cmds, $1)=
23162 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
23163 - _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
23164 - _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
23165 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
23166 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
23167 - _LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
23168 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
23169 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
23170 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
23171 - _LT_AC_TAGVAR(hardcode_direct, $1)=no
23172 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
23173 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
23174 - _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
23175 - _LT_AC_TAGVAR(hardcode_automatic, $1)=no
23176 - _LT_AC_TAGVAR(module_cmds, $1)=
23177 - _LT_AC_TAGVAR(module_expsym_cmds, $1)=
23178 - _LT_AC_TAGVAR(always_export_symbols, $1)=no
23179 - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
23180 - # include_expsyms should be a list of space-separated symbols to be *always*
23181 - # included in the symbol list
23182 - _LT_AC_TAGVAR(include_expsyms, $1)=
23183 - # exclude_expsyms can be an extended regexp of symbols to exclude
23184 - # it will be wrapped by ` (' and `)$', so one must not match beginning or
23185 - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
23186 - # as well as any symbol that contains `d'.
23187 - _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
23188 - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
23189 - # platforms (ab)use it in PIC code, but their linkers get confused if
23190 - # the symbol is explicitly referenced. Since portable code cannot
23191 - # rely on this symbol name, it's probably fine to never include it in
23192 - # preloaded symbol tables.
23193 - extract_expsyms_cmds=
23194 - # Just being paranoid about ensuring that cc_basename is set.
23195 - _LT_CC_BASENAME([$compiler])
23197 - cygwin* | mingw* | pw32*)
23198 - # FIXME: the MSVC++ port hasn't been tested in a loooong time
23199 - # When not using gcc, we currently assume that we are using
23200 - # Microsoft Visual C++.
23201 - if test "$GCC" != yes; then
23206 - # we just hope/assume this is gcc and not c89 (= MSVC++)
23214 + # This assumes that the test object file only shows up
23215 + # once in the compiler output.
23216 + if test "$p" = "conftest.$objext"; then
23217 + pre_test_object_deps_done=yes
23221 - _LT_AC_TAGVAR(ld_shlibs, $1)=yes
23222 - if test "$with_gnu_ld" = yes; then
23223 - # If archive_cmds runs LD, not CC, wlarc should be empty
23225 + if test "$pre_test_object_deps_done" = no; then
23226 + if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
23227 + _LT_TAGVAR(predep_objects, $1)="$p"
23229 + _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
23232 + if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
23233 + _LT_TAGVAR(postdep_objects, $1)="$p"
23235 + _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
23240 + *) ;; # Ignore the rest.
23242 - # Set some defaults for GNU ld with shared library support. These
23243 - # are reset later if shared libraries are not supported. Putting them
23244 - # here allows them to be overridden if necessary.
23245 - runpath_var=LD_RUN_PATH
23246 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
23247 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
23248 - # ancient GNU ld didn't support --whole-archive et. al.
23249 - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
23250 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
23252 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
23254 - supports_anon_versioning=no
23255 - case `$LD -v 2>/dev/null` in
23256 - *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
23257 - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
23258 - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
23259 - *\ 2.11.*) ;; # other 2.11 versions
23260 - *) supports_anon_versioning=yes ;;
23264 - # See if GNU ld supports shared libraries.
23266 - aix3* | aix4* | aix5*)
23267 - # On AIX/PPC, the GNU linker is very broken
23268 - if test "$host_cpu" != ia64; then
23269 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
23272 + rm -f a.out a.exe
23274 + echo "libtool.m4: error: problem compiling $1 test program"
23277 -*** Warning: the GNU linker, at least up to release 2.9.1, is reported
23278 -*** to be unable to reliably create shared libraries on AIX.
23279 -*** Therefore, libtool is disabling shared libraries support. If you
23280 -*** really care for shared libraries, you may want to modify your PATH
23281 -*** so that a non-GNU linker is found, and then restart.
23282 +$RM -f confest.$objext
23287 +# PORTME: override above test on systems where it is broken
23288 +m4_if([$1], [CXX],
23291 + # Interix 3.5 installs completely hosed .la files for C++, so rather than
23292 + # hack all around it, let's just trust "g++" to DTRT.
23293 + _LT_TAGVAR(predep_objects,$1)=
23294 + _LT_TAGVAR(postdep_objects,$1)=
23295 + _LT_TAGVAR(postdeps,$1)=
23299 - _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)'
23300 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
23301 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
23303 - # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
23304 - # that the semantics of dynamic libraries on AmigaOS, at least up
23305 - # to version 4, is to share data among multiple programs linked
23306 - # with the same dynamic library. Since this doesn't match the
23307 - # behavior of shared libraries on other platforms, we can't use
23309 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
23312 + case `$CC -V 2>&1 | sed 5q` in
23317 - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23318 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
23319 - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
23320 - # support --undefined. This deserves some investigation. FIXME
23321 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23323 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
23325 + # The more standards-conforming stlport4 library is
23326 + # incompatible with the Cstd library. Avoid specifying
23327 + # it if it's in CXXFLAGS. Ignore libCrun as
23328 + # -library=stlport4 depends on it.
23329 + case " $CXX $CXXFLAGS " in
23330 + *" -library=stlport4 "*)
23331 + solaris_use_stlport4=yes
23335 - cygwin* | mingw* | pw32*)
23336 - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
23337 - # as there is no search path for DLLs.
23338 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
23339 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
23340 - _LT_AC_TAGVAR(always_export_symbols, $1)=no
23341 - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
23342 - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
23343 + if test "$solaris_use_stlport4" != yes; then
23344 + _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
23350 - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
23351 - _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'
23352 - # If the export-symbols file already is a .def file (1st line
23353 - # is EXPORTS), use it as is; otherwise, prepend...
23354 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
23355 - cp $export_symbols $output_objdir/$soname.def;
23357 - echo EXPORTS > $output_objdir/$soname.def;
23358 - cat $export_symbols >> $output_objdir/$soname.def;
23360 - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
23362 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
23365 + case $cc_basename in
23367 + # The more standards-conforming stlport4 library is
23368 + # incompatible with the Cstd library. Avoid specifying
23369 + # it if it's in CXXFLAGS. Ignore libCrun as
23370 + # -library=stlport4 depends on it.
23371 + case " $CXX $CXXFLAGS " in
23372 + *" -library=stlport4 "*)
23373 + solaris_use_stlport4=yes
23378 - _LT_AC_TAGVAR(hardcode_direct, $1)=no
23379 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
23380 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
23381 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
23382 - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
23383 - # Instead, shared libraries are loaded at an image base (0x10000000 by
23384 - # default) and relocated if they conflict, which is a slow very memory
23385 - # consuming and fragmenting process. To avoid this, we pick a random,
23386 - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
23387 - # time. Moving up from 0x10000000 also allows more sbrk(2) space.
23388 - _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'
23389 - _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'
23391 + # Adding this requires a known-good setup of shared libraries for
23392 + # Sun compiler versions before 5.6, else PIC objects from an old
23393 + # archive will be linked into the output, leading to subtle bugs.
23394 + if test "$solaris_use_stlport4" != yes; then
23395 + _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
23403 - gnu* | linux* | k*bsd*-gnu)
23404 - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23406 - case $cc_basename,$host_cpu in
23407 - pgcc*) # Portland Group C compiler
23408 - _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'
23409 - tmp_addflag=' $pic_flag'
23411 - pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
23412 - _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'
23413 - tmp_addflag=' $pic_flag -Mnomain' ;;
23414 - ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
23415 - tmp_addflag=' -i_dynamic' ;;
23416 - efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
23417 - tmp_addflag=' -i_dynamic -nofor_main' ;;
23418 - ifc* | ifort*) # Intel Fortran compiler
23419 - tmp_addflag=' -nofor_main' ;;
23421 - case `$CC -V 2>&1 | sed 5q` in
23422 - *Sun\ C*) # Sun C 5.9
23423 - _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'
23424 - tmp_sharedflag='-G' ;;
23425 - *Sun\ F*) # Sun Fortran 8.3
23426 - tmp_sharedflag='-G' ;;
23428 - tmp_sharedflag='-shared' ;;
23430 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23431 +case " $_LT_TAGVAR(postdeps, $1) " in
23432 +*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
23434 + _LT_TAGVAR(compiler_lib_search_dirs, $1)=
23435 +if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
23436 + _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
23438 +_LT_TAGDECL([], [compiler_lib_search_dirs], [1],
23439 + [The directories searched by this compiler when creating a shared library])
23440 +_LT_TAGDECL([], [predep_objects], [1],
23441 + [Dependencies to place before and after the objects being linked to
23442 + create a shared library])
23443 +_LT_TAGDECL([], [postdep_objects], [1])
23444 +_LT_TAGDECL([], [predeps], [1])
23445 +_LT_TAGDECL([], [postdeps], [1])
23446 +_LT_TAGDECL([], [compiler_lib_search_path], [1],
23447 + [The library search path used internally by the compiler when linking
23448 + a shared library])
23449 +])# _LT_SYS_HIDDEN_LIBDEPS
23454 +# Since AC_PROG_F77 is broken, in that it returns the empty string
23455 +# if there is no fortran compiler, we have our own version here.
23456 +m4_defun([_LT_PROG_F77],
23458 +pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
23460 +if test -z "$F77" || test "X$F77" = "Xno"; then
23461 + _lt_disable_F77=yes
23463 +popdef([AC_MSG_ERROR])
23466 - if test $supports_anon_versioning = yes; then
23467 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
23468 - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
23469 - $echo "local: *; };" >> $output_objdir/$libname.ver~
23470 - $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
23473 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
23476 +dnl aclocal-1.4 backwards compatibility:
23477 +dnl AC_DEFUN([_LT_PROG_F77], [])
23480 - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23481 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
23484 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23485 - _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'
23490 - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
23491 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
23493 +# _LT_LANG_F77_CONFIG([TAG])
23494 +# --------------------------
23495 +# Ensure that the configuration variables for a Fortran 77 compiler are
23496 +# suitably defined. These variables are subsequently used by _LT_CONFIG
23497 +# to write the compiler configuration to `libtool'.
23498 +m4_defun([_LT_LANG_F77_CONFIG],
23499 +[AC_REQUIRE([_LT_PROG_F77])dnl
23500 +AC_LANG_PUSH(Fortran 77)
23502 -*** Warning: The releases 2.8.* of the GNU linker cannot reliably
23503 -*** create shared libraries on Solaris systems. Therefore, libtool
23504 -*** is disabling shared libraries support. We urge you to upgrade GNU
23505 -*** binutils to release 2.9.1 or newer. Another option is to modify
23506 -*** your PATH or compiler configuration so that the native linker is
23507 -*** used, and then restart.
23508 +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
23509 +_LT_TAGVAR(allow_undefined_flag, $1)=
23510 +_LT_TAGVAR(always_export_symbols, $1)=no
23511 +_LT_TAGVAR(archive_expsym_cmds, $1)=
23512 +_LT_TAGVAR(export_dynamic_flag_spec, $1)=
23513 +_LT_TAGVAR(hardcode_direct, $1)=no
23514 +_LT_TAGVAR(hardcode_direct_absolute, $1)=no
23515 +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
23516 +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
23517 +_LT_TAGVAR(hardcode_libdir_separator, $1)=
23518 +_LT_TAGVAR(hardcode_minus_L, $1)=no
23519 +_LT_TAGVAR(hardcode_automatic, $1)=no
23520 +_LT_TAGVAR(inherit_rpath, $1)=no
23521 +_LT_TAGVAR(module_cmds, $1)=
23522 +_LT_TAGVAR(module_expsym_cmds, $1)=
23523 +_LT_TAGVAR(link_all_deplibs, $1)=unknown
23524 +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
23525 +_LT_TAGVAR(no_undefined_flag, $1)=
23526 +_LT_TAGVAR(whole_archive_flag_spec, $1)=
23527 +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
23530 - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23531 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23532 - _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'
23534 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
23537 +# Source file extension for f77 test sources.
23540 - sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
23541 - case `$LD -v 2>&1` in
23542 - *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
23543 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
23544 - cat <<_LT_EOF 1>&2
23545 +# Object file extension for compiled f77 test sources.
23547 +_LT_TAGVAR(objext, $1)=$objext
23549 -*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
23550 -*** reliably create shared libraries on SCO systems. Therefore, libtool
23551 -*** is disabling shared libraries support. We urge you to upgrade GNU
23552 -*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
23553 -*** your PATH or compiler configuration so that the native linker is
23554 -*** used, and then restart.
23555 +# No sense in running all these tests if we already determined that
23556 +# the F77 compiler isn't working. Some variables (like enable_shared)
23557 +# are currently assumed to apply to all compilers on this platform,
23558 +# and will be corrupted by setting them based on a non-working compiler.
23559 +if test "$_lt_disable_F77" != yes; then
23560 + # Code to be used in simple compile tests
23561 + lt_simple_compile_test_code="\
23570 - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23571 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
23572 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
23573 - _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'
23575 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
23580 + # Code to be used in simple link tests
23581 + lt_simple_link_test_code="\
23587 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
23589 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
23590 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
23592 + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
23596 - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23597 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23598 - _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'
23600 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
23604 + # save warnings/boilerplate of simple test code
23605 + _LT_COMPILER_BOILERPLATE
23606 + _LT_LINKER_BOILERPLATE
23608 + # Allow CC to be a program name with arguments.
23613 + _LT_TAGVAR(compiler, $1)=$CC
23614 + _LT_CC_BASENAME([$compiler])
23616 + if test -n "$compiler"; then
23617 + AC_MSG_CHECKING([if libtool supports shared libraries])
23618 + AC_MSG_RESULT([$can_build_shared])
23620 - if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
23622 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
23623 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
23624 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
23627 - # PORTME fill in a description of your system's linker (not GNU ld)
23630 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
23631 - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
23632 - _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'
23633 - # Note: this linker hardcodes the directories in LIBPATH if there
23634 - # are no directories specified by -L.
23635 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
23636 - if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
23637 - # Neither direct hardcoding nor static linking is supported with a
23638 - # broken collect2.
23639 - _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
23642 + AC_MSG_CHECKING([whether to build shared libraries])
23643 + test "$can_build_shared" = "no" && enable_shared=no
23646 - if test "$host_cpu" = ia64; then
23647 - # On IA64, the linker does run time linking by default, so we don't
23648 - # have to do anything special.
23649 - aix_use_runtimelinking=no
23650 - exp_sym_flag='-Bexport'
23653 - # If we're using GNU nm, then we don't want the "-C" option.
23654 - # -C means demangle to AIX nm, but means don't demangle with GNU nm
23655 - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
23656 - _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'
23658 - _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'
23659 + # On AIX, shared libraries and static libraries use the same namespace, and
23660 + # are all built from PIC.
23663 + test "$enable_shared" = yes && enable_static=no
23664 + if test -n "$RANLIB"; then
23665 + archive_cmds="$archive_cmds~\$RANLIB \$lib"
23666 + postinstall_cmds='$RANLIB $lib'
23670 + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
23671 + test "$enable_shared" = yes && enable_static=no
23673 - aix_use_runtimelinking=no
23675 - # Test if we are trying to use run time linking or normal
23676 - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
23677 - # need to do runtime linking.
23678 - case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
23679 - for ld_flag in $LDFLAGS; do
23680 - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
23681 - aix_use_runtimelinking=yes
23689 + AC_MSG_RESULT([$enable_shared])
23691 - exp_sym_flag='-bexport'
23692 - no_entry_flag='-bnoentry'
23694 + AC_MSG_CHECKING([whether to build static libraries])
23695 + # Make sure either enable_shared or enable_static is yes.
23696 + test "$enable_shared" = yes || enable_static=yes
23697 + AC_MSG_RESULT([$enable_static])
23699 + _LT_TAGVAR(GCC, $1)="$G77"
23700 + _LT_TAGVAR(LD, $1)="$LD"
23702 + ## CAVEAT EMPTOR:
23703 + ## There is no encapsulation within the following macros, do not change
23704 + ## the running order or otherwise move them around unless you know exactly
23705 + ## what you are doing...
23706 + _LT_COMPILER_PIC($1)
23707 + _LT_COMPILER_C_O($1)
23708 + _LT_COMPILER_FILE_LOCKS($1)
23709 + _LT_LINKER_SHLIBS($1)
23710 + _LT_SYS_DYNAMIC_LINKER($1)
23711 + _LT_LINKER_HARDCODE_LIBPATH($1)
23714 + fi # test -n "$compiler"
23718 +fi # test "$_lt_disable_F77" != yes
23720 - # When large executables or shared objects are built, AIX ld can
23721 - # have problems creating the table of contents. If linking a library
23722 - # or program results in "error TOC overflow" add -mminimal-toc to
23723 - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
23724 - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
23726 +])# _LT_LANG_F77_CONFIG
23728 - _LT_AC_TAGVAR(archive_cmds, $1)=''
23729 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
23730 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
23731 - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
23733 - if test "$GCC" = yes; then
23734 - case $host_os in aix4.[[012]]|aix4.[[012]].*)
23735 - # We only want to do this on AIX 4.2 and lower, the check
23736 - # below for broken collect2 doesn't work under 4.3+
23737 - collect2name=`${CC} -print-prog-name=collect2`
23738 - if test -f "$collect2name" && \
23739 - strings "$collect2name" | grep resolve_lib_name >/dev/null
23741 - # We have reworked collect2
23744 - # We have old collect2
23745 - _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
23746 - # It fails to find uninstalled libraries when the uninstalled
23747 - # path is not listed in the libpath. Setting hardcode_minus_L
23748 - # to unsupported forces relinking
23749 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
23750 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
23751 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
23755 - shared_flag='-shared'
23756 - if test "$aix_use_runtimelinking" = yes; then
23757 - shared_flag="$shared_flag "'${wl}-G'
23761 - if test "$host_cpu" = ia64; then
23762 - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
23763 - # chokes on -Wl,-G. The following line is correct:
23766 - if test "$aix_use_runtimelinking" = yes; then
23767 - shared_flag='${wl}-G'
23769 - shared_flag='${wl}-bM:SRE'
23775 +# Since AC_PROG_FC is broken, in that it returns the empty string
23776 +# if there is no fortran compiler, we have our own version here.
23777 +m4_defun([_LT_PROG_FC],
23779 +pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
23781 +if test -z "$FC" || test "X$FC" = "Xno"; then
23782 + _lt_disable_FC=yes
23784 +popdef([AC_MSG_ERROR])
23787 - # It seems that -bexpall does not export symbols beginning with
23788 - # underscore (_), so it is better to generate a list of symbols to export.
23789 - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
23790 - if test "$aix_use_runtimelinking" = yes; then
23791 - # Warning - without using the other runtime loading flags (-brtl),
23792 - # -berok will link without error, but may produce a broken library.
23793 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
23794 - # Determine the default libpath from the value encoded in an empty executable.
23795 - _LT_AC_SYS_LIBPATH_AIX
23796 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
23797 - _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"
23799 - if test "$host_cpu" = ia64; then
23800 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
23801 - _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
23802 - _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"
23804 - # Determine the default libpath from the value encoded in an empty executable.
23805 - _LT_AC_SYS_LIBPATH_AIX
23806 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
23807 - # Warning - without using the other run time loading flags,
23808 - # -berok will link without error, but may produce a broken library.
23809 - _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
23810 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
23811 - # Exported symbols can be pulled into shared objects from archives
23812 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
23813 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
23814 - # This is similar to how AIX traditionally builds its shared libraries.
23815 - _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'
23819 +dnl aclocal-1.4 backwards compatibility:
23820 +dnl AC_DEFUN([_LT_PROG_FC], [])
23823 - _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)'
23824 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
23825 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
23826 - # see comment about different semantics on the GNU ld section
23827 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
23831 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
23833 +# _LT_LANG_FC_CONFIG([TAG])
23834 +# -------------------------
23835 +# Ensure that the configuration variables for a Fortran compiler are
23836 +# suitably defined. These variables are subsequently used by _LT_CONFIG
23837 +# to write the compiler configuration to `libtool'.
23838 +m4_defun([_LT_LANG_FC_CONFIG],
23839 +[AC_REQUIRE([_LT_PROG_FC])dnl
23840 +AC_LANG_PUSH(Fortran)
23842 +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
23843 +_LT_TAGVAR(allow_undefined_flag, $1)=
23844 +_LT_TAGVAR(always_export_symbols, $1)=no
23845 +_LT_TAGVAR(archive_expsym_cmds, $1)=
23846 +_LT_TAGVAR(export_dynamic_flag_spec, $1)=
23847 +_LT_TAGVAR(hardcode_direct, $1)=no
23848 +_LT_TAGVAR(hardcode_direct_absolute, $1)=no
23849 +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
23850 +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
23851 +_LT_TAGVAR(hardcode_libdir_separator, $1)=
23852 +_LT_TAGVAR(hardcode_minus_L, $1)=no
23853 +_LT_TAGVAR(hardcode_automatic, $1)=no
23854 +_LT_TAGVAR(inherit_rpath, $1)=no
23855 +_LT_TAGVAR(module_cmds, $1)=
23856 +_LT_TAGVAR(module_expsym_cmds, $1)=
23857 +_LT_TAGVAR(link_all_deplibs, $1)=unknown
23858 +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
23859 +_LT_TAGVAR(no_undefined_flag, $1)=
23860 +_LT_TAGVAR(whole_archive_flag_spec, $1)=
23861 +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
23863 - cygwin* | mingw* | pw32*)
23864 - # When not using gcc, we currently assume that we are using
23865 - # Microsoft Visual C++.
23866 - # hardcode_libdir_flag_spec is actually meaningless, as there is
23867 - # no search path for DLLs.
23868 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
23869 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
23870 - # Tell ltmain to make .lib files, not .a files.
23872 - # Tell ltmain to make .dll files, not .so files.
23873 - shrext_cmds=".dll"
23874 - # FIXME: Setting linknames here is a bad hack.
23875 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
23876 - # The linker will automatically build a .lib file if we build a DLL.
23877 - _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
23878 - # FIXME: Should let the user specify the lib program.
23879 - _LT_AC_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
23880 - _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
23881 - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
23883 +# Source file extension for fc test sources.
23884 +ac_ext=${ac_fc_srcext-f}
23886 - darwin* | rhapsody*)
23888 - rhapsody* | darwin1.[[012]])
23889 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
23891 - *) # Darwin 1.3 on
23892 - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
23893 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
23895 - case ${MACOSX_DEPLOYMENT_TARGET} in
23897 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
23900 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
23906 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
23907 - _LT_AC_TAGVAR(hardcode_direct, $1)=no
23908 - _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
23909 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
23910 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
23911 - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
23912 - if test "$GCC" = yes ; then
23913 - output_verbose_link_cmd='echo'
23914 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
23915 - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
23916 - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
23917 - _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}'
23918 - _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}'
23920 - case $cc_basename in
23922 - output_verbose_link_cmd='echo'
23923 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
23924 - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
23925 - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
23926 - _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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
23927 - _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}'
23930 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
23935 +# Object file extension for compiled fc test sources.
23937 +_LT_TAGVAR(objext, $1)=$objext
23940 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23941 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
23942 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
23944 +# No sense in running all these tests if we already determined that
23945 +# the FC compiler isn't working. Some variables (like enable_shared)
23946 +# are currently assumed to apply to all compilers on this platform,
23947 +# and will be corrupted by setting them based on a non-working compiler.
23948 +if test "$_lt_disable_FC" != yes; then
23949 + # Code to be used in simple compile tests
23950 + lt_simple_compile_test_code="\
23957 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
23959 + # Code to be used in simple link tests
23960 + lt_simple_link_test_code="\
23965 - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
23966 - # support. Future versions do this automatically, but an explicit c++rt0.o
23967 - # does not break anything, and helps significantly (at the cost of a little
23970 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
23971 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
23972 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
23973 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
23975 + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
23978 - # Unfortunately, older versions of FreeBSD 2 do not have this feature.
23980 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
23981 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
23982 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
23983 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
23985 + # save warnings/boilerplate of simple test code
23986 + _LT_COMPILER_BOILERPLATE
23987 + _LT_LINKER_BOILERPLATE
23989 + # Allow CC to be a program name with arguments.
23994 + GCC=$ac_cv_fc_compiler_gnu
23996 - # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
23997 - freebsd* | dragonfly*)
23998 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
23999 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
24000 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
24001 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
24003 + _LT_TAGVAR(compiler, $1)=$CC
24004 + _LT_CC_BASENAME([$compiler])
24007 - if test "$GCC" = yes; then
24008 - _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'
24010 - _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'
24012 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
24013 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
24014 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
24015 + if test -n "$compiler"; then
24016 + AC_MSG_CHECKING([if libtool supports shared libraries])
24017 + AC_MSG_RESULT([$can_build_shared])
24019 - # hardcode_minus_L: Not really in the search PATH,
24020 - # but as the default location of the library.
24021 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
24022 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
24024 + AC_MSG_CHECKING([whether to build shared libraries])
24025 + test "$can_build_shared" = "no" && enable_shared=no
24028 - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24029 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24031 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24033 - if test "$with_gnu_ld" = no; then
24034 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
24035 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
24036 + # On AIX, shared libraries and static libraries use the same namespace, and
24037 + # are all built from PIC.
24040 + test "$enable_shared" = yes && enable_static=no
24041 + if test -n "$RANLIB"; then
24042 + archive_cmds="$archive_cmds~\$RANLIB \$lib"
24043 + postinstall_cmds='$RANLIB $lib'
24047 + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
24048 + test "$enable_shared" = yes && enable_static=no
24052 + AC_MSG_RESULT([$enable_shared])
24054 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
24055 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
24056 + AC_MSG_CHECKING([whether to build static libraries])
24057 + # Make sure either enable_shared or enable_static is yes.
24058 + test "$enable_shared" = yes || enable_static=yes
24059 + AC_MSG_RESULT([$enable_static])
24061 + _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
24062 + _LT_TAGVAR(LD, $1)="$LD"
24064 + ## CAVEAT EMPTOR:
24065 + ## There is no encapsulation within the following macros, do not change
24066 + ## the running order or otherwise move them around unless you know exactly
24067 + ## what you are doing...
24068 + _LT_SYS_HIDDEN_LIBDEPS($1)
24069 + _LT_COMPILER_PIC($1)
24070 + _LT_COMPILER_C_O($1)
24071 + _LT_COMPILER_FILE_LOCKS($1)
24072 + _LT_LINKER_SHLIBS($1)
24073 + _LT_SYS_DYNAMIC_LINKER($1)
24074 + _LT_LINKER_HARDCODE_LIBPATH($1)
24077 + fi # test -n "$compiler"
24081 +fi # test "$_lt_disable_FC" != yes
24083 - # hardcode_minus_L: Not really in the search PATH,
24084 - # but as the default location of the library.
24085 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
24089 +])# _LT_LANG_FC_CONFIG
24092 - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24093 - case $host_cpu in
24095 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24098 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24101 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24105 - case $host_cpu in
24107 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24110 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24113 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24117 - if test "$with_gnu_ld" = no; then
24118 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
24119 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
24121 - case $host_cpu in
24123 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
24124 - _LT_AC_TAGVAR(hardcode_direct, $1)=no
24125 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
24128 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
24129 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
24130 +# _LT_LANG_GCJ_CONFIG([TAG])
24131 +# --------------------------
24132 +# Ensure that the configuration variables for the GNU Java Compiler compiler
24133 +# are suitably defined. These variables are subsequently used by _LT_CONFIG
24134 +# to write the compiler configuration to `libtool'.
24135 +m4_defun([_LT_LANG_GCJ_CONFIG],
24136 +[AC_REQUIRE([LT_PROG_GCJ])dnl
24139 - # hardcode_minus_L: Not really in the search PATH,
24140 - # but as the default location of the library.
24141 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
24146 +# Source file extension for Java test sources.
24149 - irix5* | irix6* | nonstopux*)
24150 - if test "$GCC" = yes; then
24151 - _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'
24153 - _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'
24154 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
24156 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
24157 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
24158 - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
24160 +# Object file extension for compiled Java test sources.
24162 +_LT_TAGVAR(objext, $1)=$objext
24165 - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24166 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
24168 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
24170 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
24171 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
24172 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
24174 +# Code to be used in simple compile tests
24175 +lt_simple_compile_test_code="class foo {}"
24178 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24179 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
24180 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
24181 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
24182 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
24184 +# Code to be used in simple link tests
24185 +lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
24188 - if test -f /usr/libexec/ld.so; then
24189 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
24190 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
24191 - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24192 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24193 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
24194 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
24195 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
24198 - openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
24199 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24200 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
24203 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24204 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
24209 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
24212 +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
24216 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
24217 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
24218 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
24219 - _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'
24220 - _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
24222 +# save warnings/boilerplate of simple test code
24223 +_LT_COMPILER_BOILERPLATE
24224 +_LT_LINKER_BOILERPLATE
24227 - if test "$GCC" = yes; then
24228 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
24229 - _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'
24231 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
24232 - _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'
24234 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
24235 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
24237 +# Allow CC to be a program name with arguments.
24243 +_LT_TAGVAR(compiler, $1)=$CC
24244 +_LT_TAGVAR(LD, $1)="$LD"
24245 +_LT_CC_BASENAME([$compiler])
24247 - osf4* | osf5*) # as osf3* with the addition of -msym flag
24248 - if test "$GCC" = yes; then
24249 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
24250 - _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'
24251 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
24253 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
24254 - _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'
24255 - _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~
24256 - $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'
24257 +# GCJ did not exist at the time GCC didn't implicitly link libc in.
24258 +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
24260 - # Both c and cxx compiler support -rpath directly
24261 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
24263 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
24265 +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
24268 - _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
24269 - if test "$GCC" = yes; then
24271 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24272 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24273 - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
24276 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
24277 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24278 - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
24280 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
24281 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
24283 - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
24285 - # The compiler driver will combine and reorder linker options,
24286 - # but understands `-z linker_flag'. GCC discards it without `$wl',
24287 - # but is careful enough not to reorder.
24288 - # Supported since Solaris 2.6 (maybe 2.5.1?)
24289 - if test "$GCC" = yes; then
24290 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
24292 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
24296 - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
24299 +## There is no encapsulation within the following macros, do not change
24300 +## the running order or otherwise move them around unless you know exactly
24301 +## what you are doing...
24302 +if test -n "$compiler"; then
24303 + _LT_COMPILER_NO_RTTI($1)
24304 + _LT_COMPILER_PIC($1)
24305 + _LT_COMPILER_C_O($1)
24306 + _LT_COMPILER_FILE_LOCKS($1)
24307 + _LT_LINKER_SHLIBS($1)
24308 + _LT_LINKER_HARDCODE_LIBPATH($1)
24311 - if test "x$host_vendor" = xsequent; then
24312 - # Use $CC to link under sequent, because it throws in some extra .o
24313 - # files that make .init and .fini sections work.
24314 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
24316 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
24318 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
24319 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
24320 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
24321 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
24327 - case $host_vendor in
24329 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24330 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
24333 - ## LD is ld it makes a PLAMLIB
24334 - ## CC just makes a GrossModule.
24335 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
24336 - _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
24337 - _LT_AC_TAGVAR(hardcode_direct, $1)=no
24340 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24341 - _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
24344 - runpath_var='LD_RUN_PATH'
24345 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
24350 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24351 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
24352 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
24356 +])# _LT_LANG_GCJ_CONFIG
24359 - if test -d /usr/nec; then
24360 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24361 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
24362 - runpath_var=LD_RUN_PATH
24363 - hardcode_runpath_var=yes
24364 - _LT_AC_TAGVAR(ld_shlibs, $1)=yes
24368 - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
24369 - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
24370 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
24371 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
24372 - runpath_var='LD_RUN_PATH'
24373 +# _LT_LANG_RC_CONFIG([TAG])
24374 +# -------------------------
24375 +# Ensure that the configuration variables for the Windows resource compiler
24376 +# are suitably defined. These variables are subsequently used by _LT_CONFIG
24377 +# to write the compiler configuration to `libtool'.
24378 +m4_defun([_LT_LANG_RC_CONFIG],
24379 +[AC_REQUIRE([LT_PROG_RC])dnl
24382 - if test "$GCC" = yes; then
24383 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24384 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24386 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24387 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24390 +# Source file extension for RC test sources.
24393 - sysv5* | sco3.2v5* | sco5v6*)
24394 - # Note: We can NOT use -z defs as we might desire, because we do not
24395 - # link with -lc, and that would cause any symbols used from libc to
24396 - # always be unresolved, which means just about no library would
24397 - # ever link correctly. If we're not using GNU ld we use -z text
24398 - # though, which does catch some bad symbols but isn't as heavy-handed
24400 - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
24401 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
24402 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
24403 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
24404 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
24405 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
24406 - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
24407 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
24408 - runpath_var='LD_RUN_PATH'
24409 +# Object file extension for compiled RC test sources.
24411 +_LT_TAGVAR(objext, $1)=$objext
24413 - if test "$GCC" = yes; then
24414 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24415 - _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'
24417 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24418 - _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'
24421 +# Code to be used in simple compile tests
24422 +lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
24425 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24426 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
24427 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
24429 +# Code to be used in simple link tests
24430 +lt_simple_link_test_code="$lt_simple_compile_test_code"
24433 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
24438 -AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
24439 -test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
24440 +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
24444 -# Do we need to explicitly link libc?
24446 -case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
24448 - # Assume -lc should be added
24449 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
24450 +# save warnings/boilerplate of simple test code
24451 +_LT_COMPILER_BOILERPLATE
24452 +_LT_LINKER_BOILERPLATE
24454 - if test "$enable_shared" = yes && test "$GCC" = yes; then
24455 - case $_LT_AC_TAGVAR(archive_cmds, $1) in
24457 - # FIXME: we may have to deal with multi-command sequences.
24460 - # Test whether the compiler implicitly links with -lc since on some
24461 - # systems, -lgcc has to come before -lc. If gcc already passes -lc
24462 - # to ld, don't add -lc before -lgcc.
24463 - AC_MSG_CHECKING([whether -lc should be explicitly linked in])
24465 - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
24466 +# Allow CC to be a program name with arguments.
24470 +CC=${RC-"windres"}
24472 +_LT_TAGVAR(compiler, $1)=$CC
24473 +_LT_CC_BASENAME([$compiler])
24474 +_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
24476 - if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
24479 - libobjs=conftest.$ac_objext
24481 - wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
24482 - pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
24483 - compiler_flags=-v
24488 - lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
24489 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=
24490 - if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
24492 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
24494 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
24496 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
24498 - cat conftest.err 1>&5
24501 - AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
24507 -])# AC_LIBTOOL_PROG_LD_SHLIBS
24508 +if test -n "$compiler"; then
24516 +])# _LT_LANG_RC_CONFIG
24518 -# _LT_AC_FILE_LTDLL_C
24519 -# -------------------
24520 -# Be careful that the start marker always follows a newline.
24521 -AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
24522 -# /* ltdll.c starts here */
24523 -# #define WIN32_LEAN_AND_MEAN
24524 -# #include <windows.h>
24525 -# #undef WIN32_LEAN_AND_MEAN
24526 -# #include <stdio.h>
24528 -# #ifndef __CYGWIN__
24529 -# # ifdef __CYGWIN32__
24530 -# # define __CYGWIN__ __CYGWIN32__
24534 -# #ifdef __cplusplus
24537 -# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
24538 -# #ifdef __cplusplus
24542 -# #ifdef __CYGWIN__
24543 -# #include <cygwin/cygwin_dll.h>
24544 -# DECLARE_CYGWIN_DLL( DllMain );
24546 -# HINSTANCE __hDllInstance_base;
24549 -# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
24551 -# __hDllInstance_base = hInst;
24554 -# /* ltdll.c ends here */
24555 -])# _LT_AC_FILE_LTDLL_C
24559 +AC_DEFUN([LT_PROG_GCJ],
24560 +[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
24561 + [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
24562 + [AC_CHECK_TOOL(GCJ, gcj,)
24563 + test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
24564 + AC_SUBST(GCJFLAGS)])])[]dnl
24567 -# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
24568 -# ---------------------------------
24569 -AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
24571 +AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
24572 +dnl aclocal-1.4 backwards compatibility:
24573 +dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
24577 -AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
24578 -AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
24579 -AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
24580 -AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
24581 -AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
24582 -AC_DEFUN([AM_PROG_LD], [AC_PROG_LD])
24583 -AC_DEFUN([AM_PROG_NM], [AC_PROG_NM])
24585 -# This is just to silence aclocal about the macro not being used
24586 -ifelse([AC_DISABLE_FAST_INSTALL])
24588 -AC_DEFUN([LT_AC_PROG_GCJ],
24589 -[AC_CHECK_TOOL(GCJ, gcj, no)
24590 - test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
24591 - AC_SUBST(GCJFLAGS)
24594 +AC_DEFUN([LT_PROG_RC],
24595 +[AC_CHECK_TOOL(RC, windres,)
24598 -AC_DEFUN([LT_AC_PROG_RC],
24599 -[AC_CHECK_TOOL(RC, windres, no)
24602 +AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
24603 +dnl aclocal-1.4 backwards compatibility:
24604 +dnl AC_DEFUN([LT_AC_PROG_RC], [])
24607 -# Cheap backport of AS_EXECUTABLE_P and required macros
24608 -# from Autoconf 2.59; we should not use $as_executable_p directly.
24611 +# If we don't have a new enough Autoconf to choose the best grep
24612 +# available, choose the one first in the user's PATH.
24613 +m4_defun([_LT_DECL_EGREP],
24614 +[AC_REQUIRE([AC_PROG_EGREP])dnl
24615 +AC_REQUIRE([AC_PROG_FGREP])dnl
24616 +test -z "$GREP" && GREP=grep
24617 +_LT_DECL([], [GREP], [1], [A grep program that handles long lines])
24618 +_LT_DECL([], [EGREP], [1], [An ERE matcher])
24619 +_LT_DECL([], [FGREP], [1], [A literal string matcher])
24620 +dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
24624 -# _AS_TEST_PREPARE
24625 -# ----------------
24626 -m4_ifndef([_AS_TEST_PREPARE],
24627 -[m4_defun([_AS_TEST_PREPARE],
24628 -[if test -x / >/dev/null 2>&1; then
24629 - as_executable_p='test -x'
24631 - as_executable_p='test -f'
24633 -])])# _AS_TEST_PREPARE
24637 -# Check whether a file is executable.
24638 -m4_ifndef([AS_EXECUTABLE_P],
24639 -[m4_defun([AS_EXECUTABLE_P],
24640 -[AS_REQUIRE([_AS_TEST_PREPARE])dnl
24641 -$as_executable_p $1[]dnl
24642 -])])# AS_EXECUTABLE_P
24645 +# Check for a fully-functional sed program, that truncates
24646 +# as few characters as possible. Prefer GNU sed if found.
24647 +m4_defun([_LT_DECL_SED],
24649 +test -z "$SED" && SED=sed
24650 +Xsed="$SED -e 1s/^X//"
24651 +_LT_DECL([], [SED], [1], [A sed program that does not truncate output])
24652 +_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
24653 + [Sed that helps us avoid accidentally triggering echo(1) options like -n])
24656 +m4_ifndef([AC_PROG_SED], [
24657 ############################################################
24658 # NOTE: This macro has been submitted for inclusion into #
24659 # GNU Autoconf as AC_PROG_SED. When it is available in #
24660 # a released version of Autoconf we should remove this #
24661 # macro and use it instead. #
24662 ############################################################
24665 -# Check for a fully-functional sed program, that truncates
24666 -# as few characters as possible. Prefer GNU sed if found.
24667 -AC_DEFUN([LT_AC_PROG_SED],
24669 +m4_defun([AC_PROG_SED],
24670 [AC_MSG_CHECKING([for a sed that does not truncate output])
24671 AC_CACHE_VAL(lt_cv_path_SED,
24672 [# Loop through the user's path and test for sed and gsed.
24673 @@ -6544,7 +7004,7 @@
24674 test -z "$as_dir" && as_dir=.
24675 for lt_ac_prog in sed gsed; do
24676 for ac_exec_ext in '' $ac_executable_extensions; do
24677 - if AS_EXECUTABLE_P(["$as_dir/$lt_ac_prog$ac_exec_ext"]); then
24678 + if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
24679 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
24682 @@ -6585,4 +7045,266 @@
24683 SED=$lt_cv_path_SED
24685 AC_MSG_RESULT([$SED])
24690 +AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
24691 +dnl aclocal-1.4 backwards compatibility:
24692 +dnl AC_DEFUN([LT_AC_PROG_SED], [])
24695 +# _LT_CHECK_SHELL_FEATURES
24696 +# ------------------------
24697 +# Find out whether the shell is Bourne or XSI compatible,
24698 +# or has some other useful features.
24699 +m4_defun([_LT_CHECK_SHELL_FEATURES],
24700 +[AC_MSG_CHECKING([whether the shell understands some XSI constructs])
24701 +# Try some XSI features
24703 +( _lt_dummy="a/b/c"
24704 + test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
24706 + && eval 'test $(( 1 + 1 )) -eq 2 \
24707 + && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
24709 +AC_MSG_RESULT([$xsi_shell])
24710 +_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
24712 +AC_MSG_CHECKING([whether the shell understands "+="])
24713 +lt_shell_append=no
24714 +( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
24715 + >/dev/null 2>&1 \
24716 + && lt_shell_append=yes
24717 +AC_MSG_RESULT([$lt_shell_append])
24718 +_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
24720 +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24725 +_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
24727 +# test EBCDIC or ASCII
24728 +case `echo X|tr X '\101'` in
24729 + A) # ASCII based system
24730 + # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
24731 + lt_SP2NL='tr \040 \012'
24732 + lt_NL2SP='tr \015\012 \040\040'
24734 + *) # EBCDIC based system
24735 + lt_SP2NL='tr \100 \n'
24736 + lt_NL2SP='tr \r\n \100\100'
24739 +_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
24740 +_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
24741 +])# _LT_CHECK_SHELL_FEATURES
24744 +# _LT_PROG_XSI_SHELLFNS
24745 +# ---------------------
24746 +# Bourne and XSI compatible variants of some useful shell functions.
24747 +m4_defun([_LT_PROG_XSI_SHELLFNS],
24748 +[case $xsi_shell in
24750 + cat << \_LT_EOF >> "$cfgfile"
24752 +# func_dirname file append nondir_replacement
24753 +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
24754 +# otherwise set result to NONDIR_REPLACEMENT.
24758 + */*) func_dirname_result="${1%/*}${2}" ;;
24759 + * ) func_dirname_result="${3}" ;;
24763 +# func_basename file
24766 + func_basename_result="${1##*/}"
24769 +# func_dirname_and_basename file append nondir_replacement
24770 +# perform func_basename and func_dirname in a single function
24772 +# dirname: Compute the dirname of FILE. If nonempty,
24773 +# add APPEND to the result, otherwise set result
24774 +# to NONDIR_REPLACEMENT.
24775 +# value returned in "$func_dirname_result"
24776 +# basename: Compute filename of FILE.
24777 +# value retuned in "$func_basename_result"
24778 +# Implementation must be kept synchronized with func_dirname
24779 +# and func_basename. For efficiency, we do not delegate to
24780 +# those functions but instead duplicate the functionality here.
24781 +func_dirname_and_basename ()
24784 + */*) func_dirname_result="${1%/*}${2}" ;;
24785 + * ) func_dirname_result="${3}" ;;
24787 + func_basename_result="${1##*/}"
24790 +# func_stripname prefix suffix name
24791 +# strip PREFIX and SUFFIX off of NAME.
24792 +# PREFIX and SUFFIX must not contain globbing or regex special
24793 +# characters, hashes, percent signs, but SUFFIX may contain a leading
24794 +# dot (in which case that matches only a dot).
24797 + # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
24798 + # positional parameters, so assign one to ordinary parameter first.
24799 + func_stripname_result=${3}
24800 + func_stripname_result=${func_stripname_result#"${1}"}
24801 + func_stripname_result=${func_stripname_result%"${2}"}
24807 + func_opt_split_opt=${1%%=*}
24808 + func_opt_split_arg=${1#*=}
24811 +# func_lo2o object
24815 + *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
24816 + *) func_lo2o_result=${1} ;;
24820 +# func_xform libobj-or-source
24823 + func_xform_result=${1%.*}.lo
24826 +# func_arith arithmetic-term...
24829 + func_arith_result=$(( $[*] ))
24833 +# STRING may not start with a hyphen.
24836 + func_len_result=${#1}
24841 + *) # Bourne compatible functions.
24842 + cat << \_LT_EOF >> "$cfgfile"
24844 +# func_dirname file append nondir_replacement
24845 +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
24846 +# otherwise set result to NONDIR_REPLACEMENT.
24849 + # Extract subdirectory from the argument.
24850 + func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
24851 + if test "X$func_dirname_result" = "X${1}"; then
24852 + func_dirname_result="${3}"
24854 + func_dirname_result="$func_dirname_result${2}"
24858 +# func_basename file
24861 + func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
24864 +dnl func_dirname_and_basename
24865 +dnl A portable version of this function is already defined in general.m4sh
24866 +dnl so there is no need for it here.
24868 +# func_stripname prefix suffix name
24869 +# strip PREFIX and SUFFIX off of NAME.
24870 +# PREFIX and SUFFIX must not contain globbing or regex special
24871 +# characters, hashes, percent signs, but SUFFIX may contain a leading
24872 +# dot (in which case that matches only a dot).
24873 +# func_strip_suffix prefix name
24877 + .*) func_stripname_result=`$ECHO "X${3}" \
24878 + | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
24879 + *) func_stripname_result=`$ECHO "X${3}" \
24880 + | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
24885 +my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
24886 +my_sed_long_arg='1s/^-[[^=]]*=//'
24891 + func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
24892 + func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
24895 +# func_lo2o object
24898 + func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
24901 +# func_xform libobj-or-source
24904 + func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
24907 +# func_arith arithmetic-term...
24910 + func_arith_result=`expr "$[@]"`
24914 +# STRING may not start with a hyphen.
24917 + func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
24923 +case $lt_shell_append in
24925 + cat << \_LT_EOF >> "$cfgfile"
24927 +# func_append var value
24928 +# Append VALUE to the end of shell variable VAR.
24931 + eval "$[1]+=\$[2]"
24936 + cat << \_LT_EOF >> "$cfgfile"
24938 +# func_append var value
24939 +# Append VALUE to the end of shell variable VAR.
24942 + eval "$[1]=\$$[1]\$[2]"